/* Main Layout */
.browse-content{
    display: flex;
    margin-top: 120px;
    width: 100%;
    min-height: 100vh;
    transition: 0.2s ease-in-out;
    gap: 30px;
    padding: 20px clamp(15px, 3vw, 40px);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle{
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span{
    width: 25px;
    height: 3px;
    background-color: #ee0652;
    transition: all 0.3s;
    border-radius: 2px;
}

/* Filter Section */
.filter-section{
    width: 280px;
    flex-shrink: 0;
}

.filter-sticky{
    position: sticky;
    top: 140px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.filter-title{
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
    font-family: "League Spartan", sans-serif;
}

.filter-group{
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-group:last-child{
    border-bottom: none;
}

.filter-group-title{
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    font-family: "League Spartan", sans-serif;
}

/* Price Filter */
.price-filter{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-slider{
    width: 100%;
    height: 6px;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    background: linear-gradient(to right, #ee0652 0%, #ee0652 100%, #e0e0e0 100%);
}

.price-slider::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ee0652;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(238, 6, 82, 0.3);
}

.price-slider::-moz-range-thumb{
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ee0652;
    cursor: pointer;
    border: none;
}

.price-display{
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    font-family: "League Spartan", sans-serif;
}

/* Filter Options */
.filter-options{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox{
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: "League Spartan", sans-serif;
    font-size: 14px;
    color: #666;
    transition: color 0.3s;
}

.filter-checkbox:hover{
    color: #ee0652;
}

.filter-checkbox input[type="checkbox"]{
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ee0652;
}

.size-options{
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.size-options .filter-checkbox{
    flex: 0 0 calc(33.333% - 6px);
    justify-content: center;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.size-options .filter-checkbox:hover{
    border-color: #ee0652;
    background-color: #fff5f8;
}

.size-options .filter-checkbox input{
    display: none;
}

.size-options .filter-checkbox input:checked + span{
    color: white;
}

.size-options .filter-checkbox:has(input:checked){
    background-color: #ee0652;
    border-color: #ee0652;
    color: white;
}

/* Sort Select */
.sort-select{
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: "League Spartan", sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.sort-select:focus{
    outline: none;
    border-color: #ee0652;
}

/* Clear Filters Button */
.clear-filters-btn{
    width: 100%;
    padding: 12px;
    background-color: white;
    border: 2px solid #ee0652;
    color: #ee0652;
    border-radius: 8px;
    font-family: "League Spartan", sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.clear-filters-btn:hover{
    background-color: #ee0652;
    color: white;
}

/* Products Main */
.products-main{
    flex: 1;
    min-width: 0;
}

.products-header{
    margin-bottom: 30px;
}

.products-title{
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.products-count{
    font-size: 16px;
    color: #666;
    font-family: "League Spartan", sans-serif;
}

/* Browsing Section */
.browsing-section{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.browse-card{
    font-size: 14px;
    height: fit-content;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
    cursor: pointer;
}

.browse-card:hover{
    box-shadow: 0 8px 25px rgba(238, 6, 82, 0.15);
    border-color: #ee0652;
}

.browse-card-img{
    width: 100%;
    height: 320px;
    overflow: hidden;
    background-color: #f8f8f8;
}

.browse-card-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.browse-card:hover .browse-card-img img{
    transform: none;
}

.browse-card-information{
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
}

.browse-card-information-area{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.browse-card-information-area-text{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.browse-card-information-text{
    font-family: "League Spartan", sans-serif;
    color: #666;
    line-height: 1.4;
}

.browse-card-information-text:first-child{
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.browse-card-information-price{
    font-weight: 600;
    color: #ee0652;
    font-size: 18px;
}

.browse-card-information-area-wishlist{
    flex-shrink: 0;
    margin-left: 10px;
}

.browse-card-wishlist{
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.3s;
}

.browse-card-wishlist:hover{
    transform: none;
}

/* Related Products Section */
.related-products-section{
    margin-top: 80px;
    margin-bottom: 60px;
}

.section-title{
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    font-family: "League Spartan", sans-serif;
}

.related-products-slider{
    position: relative;
    padding: 0 50px;
}

.related-products-container{
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.related-products-container::-webkit-scrollbar{
    display: none;
}

.related-product-card{
    flex: 0 0 280px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
    cursor: pointer;
}

.related-product-card:hover{
    box-shadow: 0 8px 25px rgba(238, 6, 82, 0.15);
    border-color: #ee0652;
    transform: translateY(-5px);
}

.related-product-img{
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #f8f8f8;
}

.related-product-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-info{
    padding: 15px;
}

.related-product-info h4{
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-family: "League Spartan", sans-serif;
}

.related-product-info p{
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-family: "League Spartan", sans-serif;
}

.related-product-price{
    font-size: 18px;
    font-weight: 600;
    color: #ee0652;
    font-family: "League Spartan", sans-serif;
}

.slider-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: 2px solid #ee0652;
    color: #ee0652;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slider-btn:hover{
    background-color: #ee0652;
    color: white;
}

.prev-btn{
    left: 0;
}

.next-btn{
    right: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .browsing-section{
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .filter-section{
        width: 240px;
    }
    
    .browse-content{
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .browse-content{
        flex-direction: column;
        margin-top: 70px;
        padding: 15px;
    }
    
    .filter-section{
        width: 100%;
    }
    
    .filter-sticky{
        position: relative;
        top: 0;
    }
    
    .browsing-section{
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .related-products-slider{
        padding: 0 40px;
    }
    
    .slider-btn{
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    .mobile-menu-toggle{
        display: flex;
    }
}

@media (max-width: 480px) {
    .browsing-section{
        grid-template-columns: 1fr;
    }
    
    .related-product-card{
        flex: 0 0 240px;
    }
    
    .related-products-slider{
        padding: 0 35px;
    }
    .nav-components > a:first-child{
        display: none;
    }
}