/* ============================================
   PRODUCT LIST PAGE STYLES
   ============================================ */

/* Product List Section */
.product-list-section {
    padding: 40px 0 60px;
    background: var(--white);
}

.btn-add-cart {
    position: static;
}

/* ============================================
   FILTER SIDEBAR
   ============================================ */
.filter-sidebar {
    background: #F8F9FA;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 120px;
    overflow: auto;
    max-height: 82vh;
}

.filter-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-pink);
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* Price Range Filter */
.price-range-filter {
    margin-bottom: 20px;
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.price-slider {
    accent-color: var(--primary-pink);
}

/* Filter Checkboxes */
.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s;
}

.filter-checkbox:hover {
    color: var(--primary-pink);
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-pink);
    cursor: pointer;
}

.filter-checkbox .text-warning {
    color: #FFD700 !important;
    margin-right: 5px;
}

/* ============================================
   PRODUCT LIST HEADER
   ============================================ */
.product-list-header {
    margin-bottom: 20px;
}

.product-list-header .page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.product-list-header .results-count {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   PRODUCT LIST CONTROLS
   ============================================ */
.product-list-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
}

.controls-left .pagination-info {
    font-size: 14px;
    color: var(--text-light);
}

.controls-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-group label {
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
    white-space: nowrap;
}

.control-group .form-select {
    min-width: 120px;
    border-radius: 8px;
    border: 2px solid #E0E0E0;
    font-size: 14px;
}

.control-group .form-select:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
}

/* View Toggle */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-toggle label {
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
}

.view-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #E0E0E0;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn:hover {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
}

.view-btn.active {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: var(--white);
}

/* ============================================
   PRODUCT LIST CATEGORIES
   ============================================ */
.product-list-categories {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.product-list-categories::-webkit-scrollbar {
    height: 6px;
}

.product-list-categories::-webkit-scrollbar-thumb {
    background: var(--primary-pink-light);
    border-radius: 3px;
}

.product-list-categories .cheer-category-card {
    flex: 0 0 180px;
    min-width: 150px;
    text-decoration: none;
    color: inherit;
}

.product-list-categories .cheer-category-image {
    height: 150px;
}

/* ============================================
   PRODUCT LIST GRID
   ============================================ */
.product-list-grid {
    margin-bottom: 40px;
}

.product-list-grid .section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

/* Product Card - List Page Variant */
.product-list-grid .product-card {
    margin-bottom: 0;
}

.product-list-grid .product-actions {
    display: flex;
    gap: 10px;
    padding: 0 15px 15px;
    margin-top: auto;
}

.product-list-grid .btn-wishlist,
.product-list-grid a.btn-wishlist {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--bg-light);
    border: 2px solid #E0E0E0;
    color: var(--text-light);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}


.product-list-grid .btn-wishlist:hover {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
}

.product-list-grid .btn-add-cart,
.product-list-grid a.btn-add-cart {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: auto !important;
    margin: 0 !important;
    background: var(--primary-pink);
    border: none;
    color: var(--white);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.product-list-grid .btn-add-cart:hover,
.product-list-grid a.btn-add-cart:hover {
    background: var(--primary-pink-dark);
    color: var(--white);
}

.product-list-grid h5 a {
    color: inherit;
    text-decoration: none;
}

.product-list-grid h5 a:hover {
    color: var(--primary-pink);
}

.product-list-grid .product-image {
    height: 220px;
}

/* ============================================
   PRODUCT LIST BANNER
   ============================================ */
.product-list-banner {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
    border-radius: 15px;
    padding: 50px 40px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-hover);
}

.product-list-banner h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-list-banner p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 992px) {
    .filter-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .product-list-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .controls-right {
        width: 100%;
    }

    .product-list-grid .col-lg-2 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 768px) {
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        max-height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
        margin: 0;
        border-radius: 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }

    .filter-sidebar.filter-active {
        left: 0;
    }

    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }

    .filter-overlay.active {
        display: block;
    }

    .product-list-header .page-title {
        font-size: 24px;
    }

    .product-list-categories .cheer-category-card {
        flex: 0 0 140px;
        min-width: 120px;
    }

    .product-list-categories .cheer-category-image {
        height: 120px;
    }

    .product-list-grid .col-lg-2,
    .product-list-grid .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .product-list-banner {
        padding: 30px 20px;
    }

    .product-list-banner h2 {
        font-size: 24px;
    }

    .product-list-banner p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .filter-sidebar {
        padding: 20px 15px;
    }

    .product-list-controls {
        flex-direction: column;
        gap: 15px;
    }

    .control-group {
        width: 100%;
    }

    .control-group .form-select {
        flex: 1;
        min-width: 0;
    }

    .product-list-grid .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .product-list-grid .product-image {
        height: 180px;
    }
}