﻿.stores-body,
.stores-body * {
    box-sizing: border-box;
}

.stores-body {
    background: #ffffff;
    height: auto;
    position: relative;
    overflow: visible;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center !important;
}

#main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 70px;
    position: relative;
    z-index: 1;
    margin: 0;
    width: 1334px;
    min-height: calc(100vh - 70px - 120px);
    align-items: center !important;
    margin: 0 auto;
}

.left-section {
    padding: 30px;
    width: 400px;
    position: absolute;
    left: 0;
    top: 70px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 20;
}

    .left-section .roadmap {
        font-size: 16px;
        color: #333333;
        margin-left: 0;
    }

        .left-section .roadmap a {
            color: #333333;
            text-decoration: none;
            font-weight: 500;
            position: relative;
        }

            .left-section .roadmap a:hover {
                color: #dc3545;
            }

                .left-section .roadmap a:hover::after {
                    content: '';
                    position: absolute;
                    left: 0;
                    bottom: -3px;
                    width: 100%;
                    height: 2px;
                    background-color: #dc3545;
                }

.store-container {
    display: flex;
    justify-content: center;
    align-items: center !important;
    width: 100%;
    height: 100%;
}

.store-section {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    gap: 10px;
    align-items: center;
    max-width: 1200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #f5f5f5;
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    margin-top: 35px;
    justify-content: center;
}

.filter-bar {
    display: flex;
    align-items: center;
    position: relative;
}

.filter-input {
    display: flex;
    align-items: center;
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 20px;
    z-index: 1000;
    transition: width 0.3s ease-in-out, background 0.3s ease-in-out;
}

    .filter-input.expanded {
        width: 200px;
        height: 40px;
        background: #ffffff;
        border: 2px solid #000000;
        border-radius: 20px;
    }

.filter-field {
    flex: 1;
    height: 100%;
    padding: 0 10px 0 40px;
    background: transparent;
    border: none;
    font-size: 14px;
    color: #333333;
    outline: none;
    width: 0;
    opacity: 0;
    transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.filter-input.expanded .filter-field {
    width: 100%;
    opacity: 1;
}

.filter-field::placeholder {
    color: #666666;
    opacity: 0.5;
    font-size: 14px;
}

.search-icon {
    font-size: 16px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #000000;
    background: #ffffff;
}

.filter-input.expanded .search-icon {
    border: none;
    background: none;
}

.filter-category, .filter-price, .filter-preference, .filter-reset {
    position: relative;
    cursor: pointer;
}

.filter-label {
    width: 200px;
    padding: 6px 15px;
    color: #444444;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    display: inline-block;
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 200px;
    border-radius: 6px;
}

    .filter-dropdown .dropdown-item {
        padding: 10px 15px;
        color: #333333;
        font-size: 14px;
        font-weight: 400;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 200px;
    }

        .filter-dropdown .dropdown-item:last-child {
            border-bottom: none;
        }

        .filter-dropdown .dropdown-item:hover {
            background: #f5f5f5;
            border-radius: 8px;
        }

.filter-reset {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #000000;
}

    .filter-reset .filter-icon {
        font-size: 16px;
        color: #333333;
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .filter-reset .bi-funnel-fill {
        color: #333333;
    }

.products {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product-item {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #ffffff;
    padding: 10px;
}

.product {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    width: 100%;
    height: 230px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.discount-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: #ffffff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

.product .view {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 10px;
}

.heart.favorited i {
    color: #ff0000;
}

    .product .view .heart,
    .product .view .eye {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        width: 40px;
        height: 40px;
        background: #ffffff;
        border: 2px solid #000000;
        border-radius: 50%;
    }

        .product .view .heart i,
        .product .view .eye i {
            font-size: 16px;
        }

        .product .view .heart:hover,
        .product .view .eye:hover {
            background: #e0e0e0;
        }

.product-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #ffffff;
    border-radius: 5px;
}

.product-actions {
    display: flex;
    justify-content: center;
    width: 100%;
}

.add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 8px 0;
    background: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    line-height: 1;
}

    .add-to-cart:hover {
        background: #333333;
    }

.cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

    .cart-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: brightness(0) invert(1);
    }

.info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.product-name {
    color: #333333;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.price {
    color: #dc3545;
    font-size: 16px;
    text-align: center;
}

.original-price {
    text-decoration: line-through;
    color: #666666;
    font-size: 14px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-stars {
    display: flex;
}

    .rating-stars i {
        font-size: 20px;
    }

    .rating-stars .bi-star {
        color: #ccc;
    }

    .rating-stars .bi-star-fill {
        color: #ffca08;
    }

    .rating-stars .bi-star-half {
        color: #ffca08;
    }

.rating-value {
    font-size: 16px;
}

.review-count {
    display: block;
    text-align: center;
    font-size: 16px;
    color: #dc3545;
    font-weight: normal;
}

a, button, input, select, h1, h2, h3, h4, h5, * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    text-decoration: none;
    background: none;
    -webkit-font-smoothing: antialiased;
}

menu, ol, ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.suggestion-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 200px;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 8px;
}

    .suggestion-dropdown .suggestion-item {
        padding: 10px 15px;
        color: #333333;
        font-size: 14px;
        font-weight: 400;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .suggestion-dropdown .suggestion-item:last-child {
            border-bottom: none;
        }

        .suggestion-dropdown .suggestion-item:hover {
            background: #f5f5f5;
            border-radius: 8px;
        }

#notification {
    display: none;
    position: absolute;
    text-align: center;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
}

@media (max-width: 750px) {
    #main-content {
        padding-top: 0 !important;
        gap: 0;
        width: 100%;
    }

    .info {
        gap: 5px;
    }

    .left-section {
        width: 100%;
        position: static;
        left: auto;
        top: auto;
        padding: 20px;
    }

    .store-section {
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        width: 100%;
        padding: 0;
        gap: 0;
    }

    .filter-options {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        align-items: center;
    }

    .filter-bar {
        width: 100%;
    }

    .filter-input.expanded {
        width: 200px;
    }

    .filter-label {
        width: 200px;
        text-align: center;
        font-size: 12px;
    }

    .filter-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }

    .product-grid {
        gap: 10px;
    }

    .product-item {
        width: 45%;
        padding: 5px;
        gap: 5px;
    }

    .product {
        height: 150px;
    }

    .product-image {
        width: 130px;
        height: 130px;
    }

    .discount-tag {
        top: 5px;
        left: 5px;
        padding: 3px 6px;
        font-size: 10px;
    }

    .product .view {
        right: 5px;
        top: 5px;
    }

        .product .view .heart,
        .product .view .eye {
            width: 30px;
            height: 30px;
        }

            .product .view .heart i,
            .product .view .eye i {
                font-size: 12px;
            }

    .product-actions .add-to-cart {
        padding: 6px 0;
        font-size: 12px;
    }

        .product-actions .add-to-cart .cart-icon img {
            width: 12px;
            height: 12px;
        }

    .product-name {
        font-size: 12px;
    }

    .price {
        font-size: 12px;
        text-align: center;
    }

    .original-price {
        font-size: 12px;
    }

    .rating-stars i {
        font-size: 16px;
    }

    .rating-value {
        font-size: 12px;
        margin-top: 2px;
    }

    .review-count {
        font-size: 12px;
    }

    .pagination {
        font-size: 14px;
        margin-top: 20px !important;
    }
}

@media (max-width: 375px) {
    .filter-options {
        gap: 5px;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .filter-category .filter-label,
    .filter-price .filter-label,
    .filter-preference .filter-label {
        width: 200px !important;
        height: 30px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 12px !important;
        text-align: center !important;
    }

    .filter-category,
    .filter-price,
    .filter-preference {
        display: flex !important;
        justify-content: center !important;
        width: 200px !important;
    }

    .filter-dropdown {
        width: 200px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

        .filter-dropdown .dropdown-item {
            height: 30px !important;
            padding: 0 15px !important;
            display: flex !important;
            align-items: center !important;
            font-size: 12px !important;
        }

    .filter-bar .filter-input {
        width: 30px !important;
        height: 30px !important;
        border-radius: 50% !important;
    }

        .filter-bar .filter-input.expanded {
            width: 100% !important;
            height: 30px !important;
            border-radius: 15px !important;
        }

    .filter-field {
        height: 100% !important;
        padding: 0 10px 0 35px !important;
        font-size: 12px !important;
    }

    .filter-input .search-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
        border-radius: 50% !important;
    }

    .filter-reset {
        width: 30px !important;
        height: 30px !important;
        border-radius: 50% !important;
    }

        .filter-reset .filter-icon {
            font-size: 12px !important;
        }

    .product-item {
        width: 100%;
    }

    .product {
        height: 150px;
    }

    .product-image {
        width: 120px;
        height: 120px;
    }

    .add-to-cart {
        font-size: 11px;
    }
}
