/* ===========================
   PREMIUM PRODUCTS PAGE STYLES
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #e6f0ff;
    --secondary: #00d4ff;
    --text-dark: #1a1a2e;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #e8e8f0;
    --bg-white: #ffffff;
    --bg-light: #f8f9fc;
    --bg-lighter: #f0f2f8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f5f7fc;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===========================
   HEADER SECTION
   =========================== */

.products-container {
    width: 100%;
    min-height: 100vh;
    background-color: #f5f7fc;
}

.header-section {
    background: var(--gradient-primary);
    color: white;
    padding: 50px 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.header-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.header-left h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
    font-family: 'Segoe UI', sans-serif;
}

.tagline {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 1px;
}

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

/* ===========================
   RESULTS INFO
   =========================== */

.results-info {
    background: transparent;
    padding: 16px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    display: block;
}

.results-info p {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    text-align: center;
}

.results-info span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

/* ===========================
   SORT CONTROLS
   =========================== */

.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    padding: 12px 18px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sort-controls label {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.sort-select {
    padding: 8px 14px;
    border: 1.5px solid white;
    border-radius: 8px;
    background-color: white;
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    min-width: 180px;
}

.sort-select:hover {
    background-color: #f8f9fc;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.15);
}

.sort-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    border-color: white;
}

/* ===========================
   FILTER TOGGLE MOBILE - HAMBURGER STYLE
   =========================== */

.filter-toggle-mobile {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);

    /* 🔥 CRITICAL FIX */
    position: relative;
    z-index: 5;
}


.filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1.5px solid white;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.filter-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.toggle-icon {
    width: 24px;
    height: 16px;
   
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.toggle-icon span {
    height: 3px;
    width: 100%;
    background: #ffffff;
    border-radius: 2px;
    display: block;
}




.toggle-text {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.result-count {
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 6px;
}

/* ===========================
   MAIN CONTENT LAYOUT
   =========================== */

.main-content {
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 20px;
    padding-bottom: 60px;
    display: grid;
    grid-template-columns: 360px 1fr !important;
    gap: 36px !important;
}

/* ============================================
   MOBILE FILTER SIDEBAR HEADER & BACKDROP
   ============================================ */

/* Backdrop Overlay */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Filter Sidebar Header (Mobile Only) */
.filters-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 20px 24px;
    border-bottom: 2px solid #e5e7eb;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filters-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Close Button (X) */
.close-filters {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    font-family: Arial, sans-serif;
}

.close-filters:hover {
    background: #f3f4f6;
    color: #111827;
    transform: rotate(90deg);
}

.close-filters:active {
    background: #e5e7eb;
    transform: scale(0.95) rotate(90deg);
}

/* Filter Content Area */
.filters-content {
    padding: 16px 24px 24px;
}

/* Filters Sidebar Base */
.filters-sidebar {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* ===========================
   FILTER GROUPS
   =========================== */

.filter-group {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    margin: -8px -8px 0;
    border-radius: 8px;
    transition: var(--transition);
    user-select: none;
}

.filter-title h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.toggle-arrow {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
}

.filter-group.collapsed .toggle-arrow {
    transform: rotate(180deg);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding-left: 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-group.collapsed .filter-options {
    display: none;
}

/* ===========================
   CHECKBOX LABELS
   =========================== */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    user-select: none;
    padding: 10px 12px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background-color: var(--bg-white);
    flex-shrink: 0;
    position: relative;
}

.checkmark::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 3px solid white;
    border-top: 3px solid white;
    transform: rotate(-45deg) translate(2px, -2px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

.checkbox-label span:last-child {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    flex: 1;
}

.checkbox-label input[type="checkbox"]:checked ~ span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===========================
   PRICE RANGE FILTER
   =========================== */

.price-range-container {
    padding: 12px 0;
}

.price-slider {
    width: 100%;
    height: 7px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary-light) 0%, var(--primary-color) 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 18px;
    cursor: pointer;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.35), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 3px solid white;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 24px rgba(0, 102, 204, 0.45), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.price-slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.price-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.35);
    transition: var(--transition);
}

.price-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 24px rgba(0, 102, 204, 0.45);
}

.price-slider::-moz-range-track {
    background: transparent;
    border: none;
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    padding: 8px 0;
    background: var(--bg-lighter);
    padding: 12px 12px;
    border-radius: 8px;
}

#price-value {
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 800;
}

/* ===========================
   RESET BUTTON
   =========================== */

.reset-btn {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 100%);
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.reset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.reset-btn:hover {
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.reset-btn:hover::before {
    left: 0;
}

.reset-btn:active {
    transform: scale(0.98);
}

/* ===========================
   PRODUCTS SECTION
   =========================== */

.products-section {
    min-height: 500px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease-out;
    align-items: stretch !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   PRODUCT CARD
   =========================== */

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-image {
    width: 100%;
    height: 155px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-lighter) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.12);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.product-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.2;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: var(--bg-lighter);
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-label {
    font-weight: 600;
    color: var(--text-light);
}

.spec-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    min-height: 35px;
    margin-top: auto;
    padding: 10px 16px;
}

.product-price {
    display: flex;
    align-items: center;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-view {
    padding: 0px 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}

.btn-view:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
}

.btn-view:active {
    transform: scale(0.95);
}

/* ===========================
   LOADING STATE
   =========================== */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    grid-column: 1 / -1;
}

.loader {
    border: 4px solid var(--primary-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.2s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.2);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===========================
   NO RESULTS STATE
   =========================== */

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    color: var(--text-light);
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* ===========================
   PAGINATION SECTION
   =========================== */

.pagination-section {
    margin-top: -3%;
    padding: 8px 20px;
    display: flex;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 48px;
    height: 48px;
    border: none;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border-color);
}

.page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.page-btn span {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.page-btn:hover:not(.active):not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3);
    border-color: var(--primary-color);
}

.page-btn:hover:not(.active):not(:disabled)::before {
    opacity: 0.12;
}

.page-btn:active:not(:disabled) {
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.08);
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    border-color: var(--primary-dark);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.nav-btn {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    border-color: var(--primary-dark);
}

.nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #003d7a 100%);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.5);
    transform: translateY(-4px);
}

.nav-btn:disabled {
    background: #e9ecef;
    color: #adb5bd;
    border-color: var(--border-color);
}

.dots {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 2px;
}

.page-info-bottom {
    text-align: center;
    margin-top: 8px;
    padding: 8px;
}

.page-info-bottom p {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
}

.page-info-bottom .current-page {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.page-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.page-btn:active::after {
    width: 80px;
    height: 80px;
}
/* Product Card Link */
.product-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.product-card-link:hover {
    text-decoration: none;
}

/* Make the View button look like a button but act as part of the link */
.product-card-link .btn-view {
    pointer-events: none; /* Prevents double-click handling */
}
/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* EXTRA SMALL (320px - 424px) */
@media (max-width: 424px) {
    .header-section {
        padding: 25px 12px;
        margin-bottom: 20px;
    }

    .header-left h1 {
        font-size: 1.4rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .main-content {
        grid-template-columns: 1fr !important;
        padding: 0 10px 30px;
    }

    .filter-toggle-mobile {
        display: flex;
    }

    .filters-sidebar {
        max-width: 280px;
        padding: 0;
    }

    .results-info p {
        font-size: 0.95rem;
    }

    .results-info span {
        font-size: 1.05rem;
    }

    .products-grid {
        grid-template-columns: 1fr !important;
        max-width: 100%;
        gap: 14px;
    }

    .product-image {
        height: 135px;
    }

    .product-price {
        font-size: 1.3rem;
    }

    .btn-view {
        height: 34px;
        font-size: 0.7rem;
    }
}

/* SMALL PHONES (425px - 599px) */
@media (min-width: 425px) and (max-width: 599px) {
    .header-section {
        padding: 28px 15px;
    }

    .main-content {
        grid-template-columns: 1fr !important;
        padding: 0 15px 30px !important;
        max-width: 100%;
    }

    .filter-toggle-mobile {
        display: flex;
    }

    .products-section {
        width: 100%;
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr !important;
        max-width: 380px !important;
        margin: 0 auto !important;
        gap: 16px;
    }

    .product-card {
        width: 100%;
        max-width: 100%;
    }

    .product-image {
        height: 170px;
    }

    .product-price {
        font-size: 1.4rem;
    }
}

/* TABLETS (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .main-content {
        grid-template-columns: 1fr !important;
        padding: 0 20px 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 100%;
        gap: 18px;
    }

    .product-image {
        height: 180px;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .filter-toggle-mobile {
        display: flex;
    }
}

/* TABLETS LANDSCAPE (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .main-content {
        grid-template-columns: 1fr !important;
        padding: 0 25px 45px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 100% !important;
        gap: 20px;
    }

    .product-image {
        height: 200px;
    }

    .product-content {
        padding: 10px;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 1.65rem;
    }

    .btn-view {
        height: 38px;
        font-size: 0.8rem;
    }

    .filter-toggle-mobile {
        display: flex;
    }

    .filters-sidebar {
        position: fixed;
        max-width: 340px;
        padding: 0;
    }
}

/* SMALL LAPTOPS (992px - 1023px) */
@media (min-width: 992px) and (max-width: 1023px) {
    .main-content {
        grid-template-columns: 1fr !important;
        padding: 0 30px 50px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 100%;
        gap: 22px;
    }

    .product-image {
        height: 210px;
    }

    .product-price {
        font-size: 1.7rem;
    }

    .filter-toggle-mobile {
        display: flex;
    }

    .filters-sidebar {
        position: fixed;
        max-width: 360px;
        padding: 0;
    }
}

/* CRITICAL MOBILE SIDEBAR FIX */
@media (max-width: 1023px) {

    .main-content {
        grid-template-columns: 1fr !important;
    }

    .filters-content {
        padding-top: 0;
    }

    .filter-toggle-mobile {
        display: flex !important;
        z-index: 1002;
    }

    /* Backdrop */
    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
    }

    .sidebar-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    /* Sidebar */
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: #fff;
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 0;
        overflow-y: auto;
        border-radius: 0;
        border: none;
    }

    .filters-sidebar.open {
        transform: translateX(0);
    }

    /* Header */
    .filters-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 20px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        position:relative;
        top: 0;
        z-index: 10;
    }

    body.sidebar-open {
        overflow: hidden;
    }
}


/* Small Mobile - Full Width */
@media (max-width: 480px) {
    .filters-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .filters-header {
        padding: 16px 18px !important;
    }

    .filters-header h2 {
        font-size: 17px !important;
    }
}

/* Small Mobile - Full Width */
@media (max-width: 480px) {
    .filters-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .filters-header {
        padding: 16px 18px !important;
    }

    .filters-header h2 {
        font-size: 17px !important;
    }
}

/* LAPTOPS (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .main-content {
        grid-template-columns: 300px 1fr !important;
        gap: 28px !important;
        padding: 0 30px 50px;
    }

    .filters-sidebar {
        position: sticky;
        margin-left: 0 !important;
        padding: 24px;
        max-height:300vh !important;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 100% !important;
        gap: 20px;
    }

    .product-image {
        height: 200px;
    }

    .product-price {
        font-size: 1.7rem;
    }

    .btn-view {
        height: 38px;
    }

    .filter-toggle-mobile {
        display: none;
    }
}

/* LARGE LAPTOPS (1280px - 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
    .main-content {
        grid-template-columns: 320px 1fr !important;
        gap: 32px !important;
        padding: 0 35px 55px;
    }

    .filters-sidebar {
        margin-left: 0 !important;
        padding: 24px;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 100% !important;
        gap: 22px;
    }

    .product-image {
        height: 220px;
    }

    .product-price {
        font-size: 1.8rem;
    }
}

/* FULL HD (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .main-content {
        grid-template-columns: 340px 1fr !important;
        gap: 36px !important;
        max-width: 1600px;
        margin: 0 auto;
        padding: 0 40px 60px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px;
    }

    .product-image {
        height: 230px;
    }

    .product-price {
        font-size: 1.85rem;
    }
}

/* 2K+ DISPLAYS (1920px+) */
@media (min-width: 1920px) {
    .main-content {
        grid-template-columns: 360px 1fr !important;
        gap: 40px !important;
        max-width: 1800px;
        margin: 0 auto;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 28px;
    }

    .product-image {
        height: 200px;
    }

    .product-price {
        font-size: 2rem;
    }
}


@media print {
    .pagination-section,
    .page-info-bottom {
        display: none;
    }
}
.header-section::before,
.header-section::after {
    pointer-events: none;
}
/* FIX: Sidebar header hidden behind main navbar */
@media (max-width: 1023px) {
    .filters-sidebar {
        top: 80px; /* same height as site header */
        height: calc(100vh - 64px);
    }
}
/* SHOW filter title on ALL desktop widths (1024px and above) */
@media (min-width: 1024px) {

    .filters-header {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        position: relative;
        top: 0;
        background: #ffffff;
        z-index: 5;
        padding: 16px 20px;
        border-bottom: 1px solid #e5e7eb;
          max-height:none;
    }

    /* Desktop: hide close button */
    .filters-header .close-filters {
        display: none !important;
    }
}
/* ===========================
   SERIES FILTER CHIPS
   =========================== */

.series-chip {
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 100%);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.series-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: 0;
}



.series-chip:hover::before {
    left: 0;
}

.series-chip:hover span {
    color: white;
    position: relative;
    z-index: 1;
}

.series-chip.active {
    background: var(--gradient-primary);
    border-color: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3);
}

.series-chip.active span {
    color: white;
    font-weight: 700;
}

.series-chip.active .checkmark {
    background: white;
    border-color: white;
}

.series-chip.active .checkmark::after {
    border-color: var(--primary-color);
}
   /* ===========================
   EQUAL HEIGHT SIDEBAR & PRODUCTS GRID (1024px+)
   =========================== */
@media (min-width: 1024px) {

    /* Main layout */
    .main-content {
        display: grid !important;
        grid-template-columns: 360px 1fr !important;
        align-items: start !important;
        gap: 36px !important;
    }

    /* Sidebar */
    .filters-sidebar {
        position: sticky;
        top: 20px;

        /* Key fix: let grid define height */
        align-self: stretch;

        /* Scroll only if content exceeds */
        overflow-y: auto;

        display: flex;
        flex-direction: column;
    }

    /* Sidebar inner content */
    .filters-content {
        flex: 1;
        overflow-y: auto;
    }
}
/* ========================================
   PREMIUM FILTER SIDEBAR
   Professional Filtering Component
   ======================================== */

:root {
    /* Reuse existing color variables */
    --filter-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   FILTER CONTAINER WRAPPER
   ======================================== */

.filter-wrapper {
    display: flex;
    gap: 2rem;
    position: relative;
    min-height: 100vh;
}

/* ========================================
   FILTER SIDEBAR
   ======================================== */

.filter-sidebar {
    width: 320px;
    background: linear-gradient(135deg, var(--white) 0%, var(--premium-pale-blue) 100%);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    height: fit-content;
    position: sticky;
    top: 20px;
    box-shadow: 0 6px 20px var(--shadow-blue);
    animation: slideUp 0.6s var(--filter-transition) backwards;
}

/* ========================================
   FILTER HEADER
   ======================================== */

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-light);
}

.filter-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.3px;
}

.filter-reset-btn {
    background: transparent;
    border: 2px solid var(--border-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--filter-transition);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.filter-reset-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.filter-reset-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   FILTER GROUP
   ======================================== */

.filter-group {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    animation: fadeIn 0.5s var(--filter-transition);
}

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

.filter-group-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    letter-spacing: -0.2px;
}

.filter-group-toggle {
    font-size: 1.2rem;
    color: var(--primary-blue);
    transition: transform var(--filter-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.filter-group.collapsed .filter-group-toggle {
    transform: rotate(-90deg);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    transition: all var(--filter-transition);
    max-height: 500px;
    overflow-y: auto;
}

.filter-group.collapsed .filter-options {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

/* ========================================
   FILTER CHECKBOX & RADIO
   ======================================== */

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--filter-transition);
    user-select: none;
}

.filter-option:hover {
    background: var(--premium-light-blue);
}

.filter-option input:checked ~ .filter-label {
    color: var(--primary-blue);
    font-weight: 700;
}

.filter-option input:checked {
    background: var(--premium-light-blue);
}

.filter-option:has(input:checked) {
    background: var(--premium-light-blue);
    border-radius: var(--radius-md);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-blue);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--filter-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--white);
    position: relative;
}

.filter-option input[type="radio"] {
    border-radius: 50%;
}

.filter-option input[type="checkbox"]:checked,
.filter-option input[type="radio"]:checked {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.filter-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--premium-light-blue);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    flex-shrink: 0;
}

/* ========================================
   FILTER RANGE SLIDER
   ======================================== */

.filter-range {
    padding: 0.5rem 0;
}

.range-inputs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.range-input {
    flex: 1;
    padding: 0.6rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all var(--filter-transition);
}

.range-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-light);
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    cursor: pointer;
    transition: all var(--filter-transition);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(0, 82, 204, 0.4);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    cursor: pointer;
    border: none;
    transition: all var(--filter-transition);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ========================================
   FILTER BUTTONS
   ======================================== */

.filter-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border-light);
}

.filter-apply-btn,
.filter-clear-btn {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--filter-transition);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.filter-apply-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 82, 204, 0.35);
}

.filter-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 82, 204, 0.45);
}

.filter-apply-btn:active {
    transform: translateY(0);
}

.filter-clear-btn {
    background: var(--premium-light-blue);
    color: var(--primary-blue);
    border: 2px solid var(--border-blue);
}

.filter-clear-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* ========================================
   FILTER BADGE/ACTIVE INDICATOR
   ======================================== */

.filter-active-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ========================================
   TOGGLE FILTER BUTTON (MOBILE)
   ======================================== */

.filter-toggle-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 82, 204, 0.4);
    transition: all var(--filter-transition);
    z-index: 998;
}

.filter-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 82, 204, 0.5);
}

.filter-toggle-btn:active {
    transform: scale(0.95);
}

/* ========================================
   RESPONSIVE DESIGN - TABLET & MOBILE
   ======================================== */

@media (max-width: 1024px) {
    .filter-sidebar {
        width: 280px;
        padding: var(--spacing-md);
    }

    .filter-title {
        font-size: 1.2rem;
    }

    .filter-group-title {
        font-size: 1rem;
    }

    .filter-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .filter-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .filter-sidebar {
        width: 100%;
        position: sticky;
        top: 0;
        z-index: 99;
        max-height: 60vh;
        overflow-y: auto;
    }

    .filter-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .filter-sidebar::-webkit-scrollbar-track {
        background: var(--premium-light-blue);
        border-radius: 10px;
    }

    .filter-sidebar::-webkit-scrollbar-thumb {
        background: var(--accent-blue);
        border-radius: 10px;
    }

    .filter-title {
        font-size: 1.2rem;
    }

    .filter-reset-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .filter-group {
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-sm);
    }

    .filter-group-title {
        font-size: 0.95rem;
    }

    .filter-label {
        font-size: 0.85rem;
    }

    .filter-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .filter-apply-btn,
    .filter-clear-btn {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .filter-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        border: none;
        z-index: 998;
        transform: translateX(-100%);
        transition: transform var(--filter-transition);
        overflow-y: auto;
        padding: var(--spacing-lg);
    }

    .filter-sidebar.active {
        transform: translateX(0);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .filter-sidebar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity var(--filter-transition);
    }

    .filter-sidebar.active::before {
        opacity: 1;
    }

    .filter-header {
        margin-bottom: var(--spacing-lg);
    }

    .filter-title {
        font-size: 1.1rem;
    }

    .filter-group {
        margin-bottom: var(--spacing-md);
    }

    .filter-group-title {
        font-size: 0.9rem;
    }

    .filter-label {
        font-size: 0.8rem;
    }

    .filter-count {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .filter-apply-btn,
    .filter-clear-btn {
        padding: 0.6rem;
        font-size: 0.75rem;
    }

    .range-input {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: var(--premium-light-blue);
    border-radius: 10px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: var(--accent-light);
    border-radius: 10px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}
/* ========================================
   SERIES CHECKBOX LABEL - LIGHT BLUE PREMIUM
   ======================================== */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    user-select: none;
    padding: 12px 14px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--primary-light);
    border: 2px solid transparent;
}


.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2.5px solid #80b3ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f0f5ff;
    flex-shrink: 0;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0, 102, 204, 0.08);
}

.checkmark::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 3px solid var(--primary-color);
    border-top: 3px solid var(--primary-color);
    transform: rotate(-45deg) translate(2px, -2px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.checkbox-label span:last-child {
    font-size: 0.95rem;
    color: #1a3a5c;
    font-weight: 600;
    flex: 1;
    letter-spacing: 0.2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.35), inset 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: scale(1.08);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

.checkbox-label input[type="checkbox"]:checked ~ span:last-child {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.checkbox-label input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #e6f0ff 0%, #d9e8ff 100%);
}
/* ========================================
   SERIES FILTER CHECKBOX LABEL - LIGHT BLUE PREMIUM
   Dynamic checkboxes styling (same as Category)
   ======================================== */

/* Target Series Filter Group */
#series-filter-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    user-select: none;
    padding: 12px 14px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--primary-light);
    border: 2px solid transparent;
}


#series-filter-group .checkbox-label input[type="checkbox"] {
    display: none;
}

#series-filter-group .checkmark {
    width: 22px;
    height: 22px;
    border: 2.5px solid #80b3ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f0f5ff;
    flex-shrink: 0;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0, 102, 204, 0.08);
}

#series-filter-group .checkmark::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 3px solid var(--primary-color);
    border-top: 3px solid var(--primary-color);
    transform: rotate(-45deg) translate(2px, -2px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

#series-filter-group .checkbox-label span:last-child {
    font-size: 0.95rem;
    color: #1a3a5c;
    font-weight: 600;
    flex: 1;
    letter-spacing: 0.2px;
}

/* CHECKED STATE - Series Filter */
#series-filter-group .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.35), inset 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: scale(1.08);
}

#series-filter-group .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

#series-filter-group .checkbox-label input[type="checkbox"]:checked ~ span:last-child {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.3px;
}

#series-filter-group .checkbox-label input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #e6f0ff 0%, #d9e8ff 100%);
}