*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
    font-family: 'Cairo', sans-serif;
}

:root {
    --primary-color: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #4a3dc7;
    --secondary-color: #00d2d3;
    --accent-color: #00d2d3;
    --success-color: #10b981;
    --danger-color: #e71c24;
    --text-color: #404553;
    --text-light: #6b7280;
    --bg-color: #f7f7fa;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --header-bg-solid: #1a1a3e;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Screen reader only — visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   ANIMATED GRADIENT — Spectrum Wave
   ============================================ */
/* Accessibility: Disable animation for motion-sensitive users */
@media (prefers-reduced-motion: reduce) {

    .main-header,
    .desktop-nav,
    .sidebar-header {
        animation: none !important;
        will-change: auto !important;
    }

    .main-header {
        background:
            radial-gradient(130% 180% at 8% -70%, rgba(125, 211, 252, 0.7) 0%, rgba(125, 211, 252, 0.3) 28%, rgba(125, 211, 252, 0) 58%),
            radial-gradient(95% 130% at 76% -55%, rgba(56, 189, 248, 0.55) 0%, rgba(56, 189, 248, 0.2) 45%, rgba(56, 189, 248, 0) 70%),
            linear-gradient(120deg, #0c1445 0%, #0e2a6e 28%, #f77c03 52%, #787d80 72%, #787d80 88%, #64b5f6 100%) !important;
        background-size: 100% 100% !important;
    }

    .desktop-nav {
        background: #FCFBF4 !important;
    }
}

/* Ultra Soft variant — add class "ultra-soft" to .sticky-header-wrapper */
.ultra-soft .main-header {
    animation: none;
}

.ultra-soft .desktop-nav {
    /* No animation needed — solid background */
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    padding-bottom: 70px;
}

@media (min-width: 993px) {
    body {
        padding-bottom: 0;
    }
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    background:
        radial-gradient(130% 180% at 8% -70%, rgba(125, 211, 252, 0.7) 0%, rgba(125, 211, 252, 0.3) 28%, rgba(125, 211, 252, 0) 58%),
        radial-gradient(95% 130% at 76% -55%, rgba(56, 189, 248, 0.55) 0%, rgba(56, 189, 248, 0.2) 45%, rgba(56, 189, 248, 0) 70%),
        linear-gradient(120deg, #0c1445 0%, #0e2a6e 28%, #f77c03 52%, #787d80 72%, #787d80 88%, #64b5f6 100%);
    background-size: 100% 100%;
    animation: none;
    isolation: isolate;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 24px rgba(6, 25, 75, 0.35);
}

.main-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(140% 190% at 16% -95%, rgba(144, 224, 255, 0.5) 0%, rgba(144, 224, 255, 0) 52%),
        linear-gradient(168deg, rgba(100, 181, 246, 0.3) 8%, rgba(30, 136, 229, 0.15) 32%, rgba(14, 42, 110, 0) 64%),
        repeating-linear-gradient(-10deg,
            rgba(125, 211, 252, 0.12) 0 2px,
            rgba(125, 211, 252, 0) 2px 10px);
    opacity: 0.72;
}

.main-header>* {
    position: relative;
    z-index: 1;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.logo img,
.logo-img {
    height: 45px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
}

.logo i {
    font-size: 32px;
}

.logo-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #333 0%, #000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-header .logo-text,
.admin-sidebar .logo-text {
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-header .logo-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 32px;
    letter-spacing: 3px;
    color: #fff;
    background: none;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: #fff;
    background-clip: border-box;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72), 0 0 1px rgba(0, 0, 0, 0.95);
    -webkit-text-stroke: 0.4px rgba(4, 6, 20, 0.85);
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#page-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.header-search {
    flex: 1;
    max-width: 600px;
}

.header-search form {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.header-search input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
}

.header-search input::placeholder {
    color: var(--text-light);
}

.header-search button {
    padding: 12px 18px;
    background: linear-gradient(135deg, #00d2d3, #6c5ce7);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.header-search button:hover {
    background: linear-gradient(135deg, #f77c03, #f37a03);
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.4);
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-actions a {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s;
}

.header-actions a:hover {
    color: #00d2d3;
    text-shadow: 0 0 8px rgba(0, 210, 211, 0.4);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: var(--white);
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.desktop-nav {
    background: #FCFBF4;
    border-bottom: 1px solid #EBEBEB;
    display: none;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (min-width: 993px) {
    .desktop-nav {
        display: block;
    }

    /* Sticky header wrapper for desktop */
    .sticky-header-wrapper {
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }
}

.desktop-nav .container {
    display: flex;
    justify-content: center;
}

/* ============================================
   NEW MEGA MENU SYSTEM - Row-Based Like Noon
   ============================================ */

/* Nav Wrapper - Contains everything */
.nav-wrapper {
    position: relative;
    width: 100%;
}

/* Category Rows */
.cats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 6px 0;
}

.cats-row-1 {
    border-bottom: 1px solid #EBEBEB;
}

/* Nav Items */
.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.25s ease;
    white-space: nowrap;
    background: linear-gradient(135deg, #787d80, #787d80);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.2);
    cursor: pointer;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(135deg, #f77c03, #787d80);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.35);
    transform: translateY(-1px);
}

.nav-item .nav-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.nav-item.active .nav-arrow {
    transform: rotate(180deg);
}

.nav-home {
    background: linear-gradient(135deg, #f77c03, #f77c03);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-home i {
    font-size: 14px;
}

/* ============================================
   MEGA PANEL - Single Dynamic Element
   ============================================ */
.mega-panel {
    position: absolute;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) !important;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
    display: flex;
    flex-direction: row-reverse;
    min-height: 280px;
    /* Will be positioned dynamically via JS */
    top: auto !important;
}

.mega-panel.visible {
     transform: translateY(0) !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-panel-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: var(--primary-color);
}

.mega-panel.loading .mega-panel-loader {
    display: block;
}

.mega-panel.loading .mega-panel-content {
    opacity: 0.3;
}

.mega-panel-content {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    transition: opacity 0.2s;
}

/* Category Image Section */
.mega-menu-image {
    width: 280px;
    min-height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-shrink: 0;
}

.mega-menu-image img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 8px;
}

/* Subcategories Content - Adaptive Grid Layout */
.mega-menu-content {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    align-content: start;
    justify-items: center;
    padding: 25px;
    gap: 15px;
    min-height: 280px;
}

/* Subcategory Items - Card Style with Image */
.mega-menu-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 180px;
    padding: 15px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    text-align: center;
}

.mega-menu-column:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Subcategory Image - Larger and Prominent */
.subcategory-image {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategory-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.subcategory-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.mega-menu-column:hover .subcategory-image img {
    transform: scale(1.08);
}

/* Subcategory Title - Button Style */
.mega-menu-column h4 {
    margin: 0;
    padding: 0;
    width: 100%;
}

.mega-menu-column h4 a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    background: var(--primary-color);
    border-radius: 8px;
    text-align: center;
}

.mega-menu-column h4 a:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* Hide sub-subcategory lists */
.mega-menu-column ul {
    display: none;
}

/* Empty Mega Menu - Categories without subcategories */
.mega-menu-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
    padding: 30px;
}

.mega-menu-empty .view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.mega-menu-empty .view-all-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mega-menu-empty .view-all-btn i {
    font-size: 18px;
}

/* Regular Dropdown (fallback) */
.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-menu li.has-dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown-menu li {
    margin: 0;
}

.nav-menu .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    border-bottom: none;
    transition: all 0.2s;
}

.nav-menu .dropdown-menu li a:hover {
    background: rgba(108, 92, 231, 0.06);
    color: var(--primary-dark);
    padding-right: 25px;
}

/* Sub-dropdown styles for multilevel menus */
.nav-menu .dropdown-menu li.has-dropdown {
    position: relative;
}

.nav-menu .dropdown-menu li.has-dropdown>a::after {
    content: '\f104';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-menu .dropdown-menu li.has-dropdown:hover>a::after {
    transform: translateY(-50%) rotate(-90deg);
}

.nav-menu .dropdown-menu .sub-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    right: auto;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 101;
}

/* RTL adjustment - show on right side */
[dir="rtl"] .nav-menu .dropdown-menu .sub-dropdown {
    left: auto;
    right: 100%;
    transform: translateX(10px);
}

.nav-menu .dropdown-menu li.has-dropdown:hover>.sub-dropdown,
.nav-menu .sub-dropdown li.has-dropdown:hover>.sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Ensure nested sub-dropdowns are hidden by default */
.nav-menu .sub-dropdown .sub-dropdown {
    opacity: 0;
    visibility: hidden;
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 200;
    display: none;
    justify-content: space-around;
    padding: 8px 0;
    direction: ltr;
}

.mobile-bottom-nav ul {
    flex-direction: row;
}

@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: flex !important;
    }
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

body .mobile-bottom-nav,
body .mobile-bottom-nav ul,
body .mobile-bottom-nav li,
body .mobile-bottom-nav a,
body .mobile-bottom-nav a i,
body .mobile-bottom-nav a span {
    direction: ltr !important;
}

.mobile-bottom-nav {
    min-height: 68px;
    padding: 0;
    justify-content: space-between;
}

.mobile-bottom-nav ul {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-bottom-nav li {
    flex: 1 1 20%;
    text-align: center;
}

.mobile-bottom-nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 12px;
    padding: 10px 0;
    min-height: 68px;
    transition: color 0.3s;
}

.mobile-bottom-nav a .cart-count {
    position: absolute;
    top: 6px;
    right: 20px;
    transform: translateX(50%);
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 9px;
    background: var(--danger-color);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.mobile-bottom-nav a i {
    font-size: 22px;
}

.mobile-bottom-nav a span {
    display: block !important;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 992px) {
    body {
        padding-bottom: 84px !important;
    }
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: var(--primary-color);
}

.mobile-bottom-nav a i {
    font-size: 20px;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .mobile-bottom-nav.visible-xs,
    .mobile-bottom-nav.visible-sm {
        display: flex !important;
    }
}

.mobile-bottom-nav .sale-icon {
    position: relative;
}

.mobile-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 210;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mobile-search-overlay.open {
    display: flex;
}

.mobile-search-panel {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border-radius: 50px;
    padding: 12px 12px 12px 12px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    gap: 0;
}

.mobile-search-panel form {
    display: flex;
    gap: 0;
    align-items: center;
    width: 100%;
}

.mobile-search-panel input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: none;
    border-radius: 0;
    padding: 0 16px;
    font-size: 14px;
    color: #1f2937;
    background: transparent;
    outline: none;
}

.mobile-search-panel input::placeholder {
    color: #9ca3af;
}

.mobile-search-panel button {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 18px;
}

.mobile-search-panel form button:first-of-type {
    background: #4f46e5;
    color: #fff;
    margin-right: 8px;
}

.mobile-search-panel form button[type="submit"] {
    background: #7c3aed;
    color: #fff;
}

.close-mobile-search {
    margin-bottom: 10px;
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-size: 22px;
    cursor: pointer;
}

@media (max-width: 992px) {
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .mobile-bottom-nav a span {
        display: none;
    }
}

@media (min-width: 993px) {
    .mobile-search-overlay {
        display: none !important;
    }
}

/* Final mobile bottom navigation override for RTL theme */
body.rtl .mobile-bottom-nav,
body.rtl .mobile-bottom-nav li,
body.rtl .mobile-bottom-nav a,
body.rtl .mobile-bottom-nav a i,
body.rtl .mobile-bottom-nav a span {
    direction: ltr !important;
    text-align: center !important;
}

/* Reverse visual order of items for RTL while keeping link internals LTR */
body.rtl .mobile-bottom-nav ul {
    flex-direction: row-reverse !important;
}

.mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 72px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #ececec !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06) !important;
    z-index: 99999 !important;
}

.mobile-bottom-nav ul {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

.mobile-bottom-nav li {
    flex: 1 1 0 !important;
}

.mobile-bottom-nav a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    color: #0c4d72 !important;
    text-decoration: none !important;
    font-size: 11px !important;
    padding: 10px 0 !important;
    min-height: 72px !important;
}

.mobile-bottom-nav a i {
    font-size: 22px !important;
    margin: 0 !important;
}

.mobile-bottom-nav a span {
    display: block !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: var(--primary-color) !important;
}

@media (max-width: 992px) {
    body {
        padding-bottom: 86px !important;
    }
}

.mobile-bottom-nav .sale-icon i {
    color: var(--danger-color);
}

/* mobile sidebar overlay styles */
.mobile-sidebar-overlay,
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar-overlay.open,
.sidebar-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: var(--white);
    z-index: 400;
    transition: transform 0.3s ease;
    overflow-y: auto;
    transform: translateX(110%);
}

.mobile-sidebar.open,
.mobile-sidebar.active {
    transform: translateX(0) !important;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a3e, #302b63);
    color: var(--white);
}

.sidebar-header h3 {
    margin: 0;
    color: var(--white);
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.sidebar-menu li a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.main-content {
    min-height: calc(100vh - 200px);
}

.hero-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slide-content {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    color: var(--white);
    max-width: 400px;
}

.slide-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slide-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: transform 0.3s;
}

.slide-btn:hover {
    transform: scale(1.05);
}

.promo-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.promo-banner .promo-text {
    color: var(--white);
    font-size: 16px;
}

.promo-banner .promo-highlight {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 20px;
}

.banner-slider {
    border-radius: 16px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
    height: auto;
    aspect-ratio: 1200 / 350;
}

/* ============================================
   BANNER ANIMATED GRADIENT OVERLAY
   Glow pulse + gradient shift effect
   ============================================ */
@keyframes bannerGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes bannerGlow {
    0% {
        opacity: 0.06;
    }

    50% {
        opacity: 0.26;
    }

    100% {
        opacity: 0.06;
    }
}

.banner-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg,
            #00d2d3,
            #6c5ce7,
            #a855f7,
            #4f46e5,
            #6c5ce7,
            #00d2d3);
    background-size: 600% 600%;
    animation:
        bannerGradientShift 14s ease-in-out infinite,
        bannerGlow 4s ease-in-out infinite;
    opacity: 0.06;
    mix-blend-mode: soft-light;
    will-change: background-position, opacity;
}

/* Ultra Soft banner — add class "ultra-soft-banner" to .banner-slider */
.banner-slider.ultra-soft-banner::after {
    animation:
        bannerGradientShift 22s ease-in-out infinite,
        bannerGlow 6s ease-in-out infinite;
    opacity: 0.04;
}

/* Accessibility: disable animation for motion-sensitive users */
@media (prefers-reduced-motion: reduce) {
    .banner-slider::after {
        animation: none;
        will-change: auto;
        opacity: 0.12;
        background-size: 100% 100%;
    }
}

@media (min-width: 576px) {
    .banner-slider {
        height: 300px;
        aspect-ratio: unset;
    }
}

@media (min-width: 768px) {
    .banner-slider {
        height: 380px;
    }
}

@media (min-width: 992px) {
    .banner-slider {
        height: 450px;
    }
}

.banner-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    position: relative;
}

.banner-slide img,
.banner-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 576px) {

    .banner-slide img,
    .banner-slide video {
        object-fit: contain;
        object-position: center;
    }
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.banner-placeholder h2 {
    font-size: 24px;
    text-align: center;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
}

.banner-nav:hover {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner-prev {
    right: 15px;
}

.banner-next {
    left: 15px;
}

.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: var(--white);
    width: 24px;
    border-radius: 5px;
}

.banner-countdown-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.95), rgba(185, 28, 28, 0.95));
    padding: 8px 15px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    backdrop-filter: blur(3px);
}

.banner-countdown-bar .countdown-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
}

.countdown-timer-smart {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #fff;
    font-family: 'Segoe UI', monospace;
}

.countdown-timer-smart span:not(.sep):not(.seconds-wrap) {
    font-size: 18px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.countdown-timer-smart small {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 2px;
    margin-right: 4px;
}

.countdown-timer-smart .sep {
    font-size: 16px;
    font-weight: 800;
    margin: 0 2px;
}

.countdown-timer-smart .seconds-wrap {
    display: inline-flex;
    align-items: center;
}

.banner-countdown-cta {
    background: #fff;
    color: #dc2626;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.banner-countdown-cta:hover {
    background: #fef2f2;
    transform: scale(1.03);
}

@media (max-width: 576px) {
    .banner-countdown-bar {
        padding: 6px 10px;
        gap: 8px;
    }

    .banner-countdown-bar .countdown-text {
        font-size: 10px;
    }

    .countdown-timer-smart span:not(.sep):not(.seconds-wrap) {
        font-size: 14px;
        padding: 2px 6px;
    }

    .countdown-timer-smart small {
        font-size: 8px;
    }

    .countdown-timer-smart .sep {
        font-size: 12px;
    }

    .banner-countdown-cta {
        padding: 5px 10px;
        font-size: 10px;
    }
}

.product-offer-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    z-index: 5;
}

.product-offer-badge .offer-discount {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.product-offer-badge .offer-time {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
}

/* Urgency-based badge colors */
.product-offer-badge .offer-time.offer-badge-critical {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
    animation: pulse-badge 1.5s ease-in-out infinite;
    will-change: transform, opacity;
}

.product-offer-badge .offer-time.offer-badge-high {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: 0 2px 5px rgba(234, 88, 12, 0.35);
}

.product-offer-badge .offer-time.offer-badge-medium {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
}

.product-offer-badge .offer-time.offer-badge-low {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    box-shadow: 0 2px 4px rgba(8, 145, 178, 0.3);
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
}

.quick-view-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 25px;
    padding: 8px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-view-btn i {
    font-size: 14px;
    color: var(--primary-color, #00b894);
}

.quick-view-btn:hover {
    background: var(--primary-color, #00b894);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.35);
}

.quick-view-btn:hover i {
    color: #fff;
}
.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#quickviewModal .modal-dialog.modal-lg,
#quickviewModal .modal-dialog {
    max-width: 1024px;
    width: 780px;
}

#quickviewModal .modal-dialog {
    margin: 24px auto;
}

#quickviewModal .modal-content {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.2);
}

#quickviewModal .quickview-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

#quickviewModal .product-gallery,
#quickviewModal .product-summary {
    min-width: 240px;
    padding: 24px;
}

#quickviewModal .product-gallery {
    flex: 0 0 46%;
    border-right: 1px solid #e9ecef;
}

#quickviewModal .product-summary {
    flex: 1 1 54%;
}

@media (max-width: 1199px) {
    #quickviewModal .modal-dialog {
        max-width: 720px;
    }
}

@media (max-width: 991px) {
    #quickviewModal .modal-dialog {
        max-width: 100%;
        margin: 16px;
    }

    #quickviewModal .quickview-inner {
        flex-direction: column;
    }

    #quickviewModal .product-gallery,
    #quickviewModal .product-summary {
        flex: 1 1 100%;
        border-right: none;
        padding: 20px;
    }
}

.product-countdown-bar {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px 12px 0 0;
}

.product-countdown-bar .countdown-text {
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
}

.product-countdown-bar .countdown-time {
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    font-family: 'Segoe UI', monospace;
    letter-spacing: 1px;
}

.product-card:has(.product-countdown-bar) .product-image {
    border-radius: 0 0 12px 12px;
}

.offer-countdown {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    direction: rtl;
    margin: 15px 0;
}

.offer-countdown__icon {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 2s ease-in-out infinite;
    will-change: transform, box-shadow;
}

.offer-countdown__icon i {
    color: #fff;
    font-size: 18px;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.2);
    }
}

.offer-countdown__content {
    flex: 1;
}

.offer-countdown__label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

.offer-countdown__timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-countdown__unit {
    text-align: center;
}

.offer-countdown__value {
    background: rgba(255, 255, 255, 0.95);
    color: #e63946;
    font-size: 20px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 8px;
    min-width: 42px;
    display: inline-block;
    font-family: 'Segoe UI', monospace;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.offer-countdown__name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    display: block;
    margin-top: 3px;
}

.offer-countdown__sep {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
}

.offer-countdown__expired {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.offer-countdown__expired i {
    font-size: 20px;
}

.offer-countdown--inline {
    margin-bottom: 20px;
}

.offer-countdown--sticky {
    display: none;
    position: fixed;
    bottom: 130px;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    z-index: 999;
    padding: 10px 15px;
    justify-content: center;
}

.offer-countdown--sticky .offer-countdown__icon {
    width: 32px;
    height: 32px;
}

.offer-countdown--sticky .offer-countdown__icon i {
    font-size: 14px;
}

.offer-countdown--sticky .offer-countdown__label {
    margin-bottom: 0;
    font-size: 12px;
}

.offer-countdown__timer--compact {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    font-family: 'Segoe UI', monospace;
    letter-spacing: 1px;
}

.offer-countdown__timer--compact .offer-countdown__value {
    background: transparent;
    color: #fff;
    padding: 0;
    min-width: auto;
    font-size: 18px;
    box-shadow: none;
}

@media (max-width: 768px) {
    .offer-countdown--sticky {
        display: flex;
    }

    .offer-countdown__value {
        font-size: 16px;
        padding: 5px 8px;
        min-width: 36px;
    }

    .offer-countdown__sep {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .offer-countdown__icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .offer-countdown {
        padding: 12px 14px;
        gap: 10px;
    }
    #quickviewModal .modal-dialog.modal-lg, #quickviewModal .modal-dialog {
     
    width: auto;
}
    .offer-countdown__value {
        font-size: 14px;
        padding: 4px 6px;
        min-width: 30px;
    }

    .offer-countdown__name {
        font-size: 9px;
    }

    .offer-countdown__label {
        font-size: 11px;
    }
}

.banner-slide-content {
    color: var(--white);
}

.banner-slide-content .discount-tag {
    display: inline-block;
    background: var(--danger-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.banner-slide-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.banner-slide-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.banner-slide-content .shop-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
}

.banner-slide-icon {
    font-size: 100px;
    color: rgba(255, 255, 255, 0.2);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 5px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
}

.section-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   CATEGORY SECTION - Horizontal Slider
   ============================================ */
.categories-section {
    padding: 30px 0;
}

.categories-slider-wrapper {
    position: relative;
    overflow: visible;
}

/* Slider Arrows */
.cat-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cat-slider-arrow:hover {
    background: var(--white);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.25);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.08);
}

.cat-arrow-prev {
    right: -22px;
}

.cat-arrow-next {
    left: -22px;
}

.cat-slider-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Scrollable Container */
.categories-scroll {
    display: flex;
    gap: 18px;
    padding: 20px 5px 25px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

/* Category Card - Large Rounded Style */
.category-card {
    flex-shrink: 0;
    width: 170px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: var(--white);
    border-radius: 16px;
    padding: 22px 14px 18px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    scroll-snap-align: start;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.12);
    border-color: var(--primary-light);
}

/* Category Icon Container */
.category-icon {
    width: 110px;
    height: 110px;
    background: #f5f3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 18px;
    box-sizing: border-box;
}

.category-card:hover .category-icon {
    background: rgba(108, 92, 231, 0.1);
    transform: scale(1.05);
}

/* FontAwesome Icon */
.category-icon i {
    font-size: 34px;
    color: var(--primary-color);
    transition: all 0.3s;
}

.category-card:hover .category-icon i {
    color: var(--primary-dark);
    transform: scale(1.1);
}

/* Category Image */
.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: all 0.3s;
}

/* For icon/transparent images */
.category-icon.is-icon img {
    object-fit: contain;
    padding: 0;
}

.category-card:hover .category-icon img {
    transform: scale(1.08);
}

/* Category Name */
.category-card h3 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #333;
    margin: 0;
    padding: 0;
    transition: color 0.3s;
}

.category-card:hover h3 {
    color: var(--primary-color);
}

/* Responsive - Tablet */
@media (min-width: 768px) {
    .categories-scroll {
        gap: 20px;
        padding: 22px 5px 28px;
    }

    .category-card {
        width: 185px;
        padding: 24px 16px 20px;
    }

    .category-icon {
        width: 120px;
        height: 120px;
        padding: 20px;
    }

    .category-icon i {
        font-size: 38px;
    }

    .category-card h3 {
        font-size: 14px;
    }
}

/* Responsive - Desktop */
@media (min-width: 992px) {
    .categories-scroll {
        gap: 22px;
    }

    .category-card {
        width: 200px;
        padding: 26px 18px 22px;
    }

    .category-icon {
        width: 130px;
        height: 130px;
        padding: 22px;
    }

    .category-icon i {
        font-size: 44px;
    }

    .category-card h3 {
        font-size: 15px;
    }
}

/* Mobile - Arrows smaller */
@media (max-width: 767px) {
    .cat-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .cat-arrow-prev {
        right: -8px;
    }

    .cat-arrow-next {
        left: -8px;
    }

    .categories-scroll {
        gap: 12px;
        padding: 15px 2px 20px;
    }

    .category-card {
        width: 120px;
        padding: 15px 10px 12px;
    }

    .category-icon {
        width: 75px;
        height: 75px;
        padding: 14px;
    }

    .slideshow,
    .slideshow .swiper-viewport,
    .slideshow .swiper-container,
    .slideshow .swiper-wrapper,
    .slideshow .swiper-slide {
        min-height: 180px !important;
        max-height: 180px !important;
    }

    .slideshow .swiper-wrapper {
        align-items: stretch !important;
    }

    .slideshow .swiper-slide {
        display: flex !important;
        align-items: stretch !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .slideshow .swiper-slide img,
    .slideshow img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .slideshow {
        margin-bottom: 8px !important;
    }

    .home-categories {
        margin-top: 8px !important;
        padding-top: 0 !important;
    }

    .section-title h2 {
        font-size: 22px !important;
        line-height: 1.1 !important;
    }

    .slideshow .swiper-button-next,
    .slideshow .swiper-button-prev {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        pointer-events: none !important;
    }

    .slideshow .swiper-button-next::after,
    .slideshow .swiper-button-prev::after {
        content: none !important;
        display: none !important;
    }
}

.show-more-categories-wrapper {
    display: none;
    justify-content: center;
    padding: 10px 0 20px;
}

@media (max-width: 767px) {
    .show-more-categories-wrapper {
        display: flex;
    }

    .show-more-categories-wrapper.hidden {
        display: none;
    }
}

.show-more-categories-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #1a1a1a;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(254, 238, 0, 0.3);
    font-family: inherit;
}

.show-more-categories-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 238, 0, 0.4);
}

.show-more-categories-btn i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.show-more-categories-btn.expanded i {
    transform: rotate(180deg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px 0;
}

@media (min-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

/* HTML Content module video layout for homepage */
#common-home .home-module > div:has(iframe) {
    display: inline-flex;
    flex-direction: column;
    width: calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    min-width: 240px;
    margin: 26px 7px 18px;
    box-sizing: border-box;
    vertical-align: top;
    background: #f7fbff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(20, 67, 121, 0.10);
    border: 1px solid rgba(29, 102, 214, 0.12);
    padding: 0;
}

#common-home .home-module > div:has(iframe) h2,
#common-home .home-module > div:has(iframe) h3 {
    display: none !important;
}

#common-home .home-module > div:has(iframe) iframe {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    min-height: 220px;
    border: none !important;
    display: block !important;
}

#common-home .home-module > div:has(iframe) {
    padding: 10px !important;
}

#common-home .home-module > div:has(iframe) iframe {
    border-radius: 12px !important;
}

@media (max-width: 991px) {
    #common-home .home-module > div:has(iframe) {
        width: calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 767px) {
    #common-home .home-module > div:has(iframe) {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 18px !important;
    }
}

/* End HTML Content module video layout */

/* Featured home module grid overrides to avoid legacy row/flex styles from the theme */
.home-module.home-module-featured .products-grid.home-featured.home-featured-grid,
.home-module.home-module-featured .products-grid.home-featured,
.home-module.home-module-featured .products-grid.home-featured-grid,
.row.products-grid.home-featured,
.home-featured.products-grid,
.home-featured-grid.products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    grid-auto-rows: auto !important;
    align-items: stretch !important;
}

@media (min-width: 576px) {
    .home-module.home-module-featured .products-grid.home-featured.home-featured-grid,
    .home-module.home-module-featured .products-grid.home-featured,
    .home-module.home-module-featured .products-grid.home-featured-grid,
    .row.products-grid.home-featured,
    .home-featured.products-grid,
    .home-featured-grid.products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 768px) {
    .home-module.home-module-featured .products-grid.home-featured.home-featured-grid,
    .home-module.home-module-featured .products-grid.home-featured,
    .home-module.home-module-featured .products-grid.home-featured-grid,
    .row.products-grid.home-featured,
    .home-featured.products-grid,
    .home-featured-grid.products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 992px) {
    .home-module.home-module-featured .products-grid.home-featured.home-featured-grid,
    .home-module.home-module-featured .products-grid.home-featured,
    .home-module.home-module-featured .products-grid.home-featured-grid,
    .row.products-grid.home-featured,
    .home-featured.products-grid,
    .home-featured-grid.products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 1200px) {
    .home-module.home-module-featured .products-grid.home-featured.home-featured-grid,
    .home-module.home-module-featured .products-grid.home-featured,
    .home-module.home-module-featured .products-grid.home-featured-grid,
    .row.products-grid.home-featured,
    .home-featured.products-grid,
    .home-featured-grid.products-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

.home-module.home-module-featured .products-grid.home-featured.home-featured-grid > .product-card,
.home-module.home-module-featured .products-grid.home-featured > .product-card,
.home-module.home-module-featured .products-grid.home-featured-grid > .product-card,
.row.products-grid.home-featured > .product-card,
.home-featured.products-grid > .product-card,
.home-featured-grid.products-grid > .product-card {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 220px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .product-image {
        height: 260px;
    }
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Lazy loading: skeleton shimmer + fade-in */
@keyframes skeletonShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.product-image .lazy-img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-image .lazy-img.loaded {
    opacity: 1;
}

/* Skeleton placeholder while image loads */
.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    will-change: background-position;
    z-index: 0;
}

/* Hide shimmer when image is loaded OR when any img is present */
.product-image:has(.loaded)::before,
.product-image:has(img)::before {
    display: none;
}

.product-image i {
    font-size: 60px;
    color: #ddd;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--danger-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-info h3 a {
    color: inherit;
    text-decoration: none;
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-rating {
    color: #f5a623;
    margin-bottom: 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating span {
    color: var(--text-light);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}

.moq-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #7232e8, #4e3875);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 18px;
    margin-top: 6px;
}

.moq-badge i {
    font-size: 10px;
}

/* Add to Cart Section in Product Card */
.product-add-to-cart {
     padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-to-cart-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    order: 1;
}

.add-to-cart-btn:hover {
    background: #0a9c6f;
    transform: scale(1.02);
}

.add-to-cart-btn i {
    font-size: 16px;
}

.add-to-cart-btn.added {
    background: var(--primary-color);
}

.add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.add-to-cart-btn.out-of-stock-btn {
    background: #9e9e9e;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.85;
    width: 100%;
}

.quantity-selector {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    order: 2;
}

.quantity-selector .qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
}

.quantity-selector .qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-selector .qty-btn.qty-minus {
    border-radius: 0 8px 8px 0;
}

.quantity-selector .qty-btn.qty-plus {
    border-radius: 8px 0 0 8px;
}

.quantity-selector .qty-input {
    width: 50px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background: white;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    font-family: inherit;
}

.quantity-selector .qty-input::-webkit-outer-spin-button,
.quantity-selector .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media (max-width: 480px) {
    .product-add-to-cart {
        flex-direction: column;
        gap: 8px;
    }

    .quantity-selector {
        width: 100%;
        justify-content: center;
    }

    .add-to-cart-btn {
        width: 100%;
        padding: 10px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #0a3d8f;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-yellow {
    background: #ffc107;
    color: #333;
}

.btn-yellow:hover {
    background: #ffca2c;
}

/* ========================================
   NOON-STYLE FOOTER
   ======================================== */
.main-footer {
    background: #fff;
    margin-top: 40px;
    border-top: 1px solid #e5e7eb;
}

/* Categories Section */
.footer-categories-section {
    padding: 40px 0 30px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.footer-categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
}

.footer-category-column {
    text-align: center;
}

.footer-category-column a {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    padding: 8px 15px;
    display: inline-block;
}

.footer-category-column a:hover {
    color: var(--primary-color);
}

.footer-category-column h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-category-column h4 a:hover {
    color: var(--primary-color);
}

.footer-category-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-category-column ul li {
    margin-bottom: 10px;
}

.footer-category-column ul li a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-category-column ul li a:hover {
    color: var(--primary-color);
}

/* Contact & Social Section */
.footer-contact-section {
    padding: 25px 0;
    border-bottom: 1px solid #e5e7eb;
}

.footer-contact-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-social-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: #f7e017;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #e6d015;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(247, 224, 23, 0.4);
}

/* Inline Links */
.footer-inline-links {
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-inline-links li a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-inline-links li a:hover {
    color: var(--primary-color);
}

/* Contact Items */
.footer-info-column {
    display: flex;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 3px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.contact-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

/* Copyright Section */
.footer-copyright {
    padding: 20px 0;
    background: #f9fafb;
}

.footer-copyright-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.footer-copyright p {
    color: #666;
    font-size: 12px;
    margin: 0;
}

.developer-credit a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
}

.developer-credit a:hover {
    color: var(--primary-color);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-categories-grid {
        justify-content: center;
        gap: 15px 25px;
    }

    .footer-contact-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-social-column {
        text-align: center;
    }

    .footer-social-column h4 {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links-column {
        text-align: center;
    }

    .footer-inline-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-info-column {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-item i {
        margin-top: 0;
    }

    .contact-details {
        align-items: center;
    }

    .footer-copyright-content {
        flex-direction: column;
        text-align: center;
    }
}


.page-header {
    background: var(--white);
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    margin: 0;
    font-size: 20px;
    color: var(--text-color);
}

.breadcrumb {
    display: flex;
    gap: 8px;
    list-style: none;
    margin-top: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}

.breadcrumb li a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb li::after {
    content: '>';
    margin-right: 8px;
    color: var(--text-light);
}

.breadcrumb li:last-child::after {
    display: none;
}

.category-page {
    display: flex;
    gap: 25px;
    padding: 20px 0;
}

.filters-sidebar {
    width: 260px;
    flex-shrink: 0;
    display: none;
}

@media (min-width: 993px) {
    .filters-sidebar {
        display: block;
    }
}

.filter-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.filter-card h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.price-range {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.price-range input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
}

.rating-filter label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
}

.rating-filter input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.products-section {
    flex: 1;
}

.product-single {
    padding: 20px 0;
    padding-bottom: 100px;
}

@media (min-width: 993px) {
    .product-single {
        padding-bottom: 20px;
    }
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
        padding: 30px;
    }
}

.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 300px;
    background: #fafafa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .main-image {
        height: 400px;
    }
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main-image i {
    font-size: 100px;
    color: #ddd;
}

.product-details h1 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .product-details h1 {
        font-size: 26px;
    }
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}


.product-meta .meta-model {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(39, 50, 111, 0.06);
    border: 1px solid rgba(39, 50, 111, 0.12);
    color: var(--text-dark);
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
}

.product-meta .meta-model strong {
    color: var(--primary-color);
    font-weight: 700;
}




.rating-stars {
    color: #f5a623;
    font-size: 16px;
}

.rating-count {
    color: var(--text-light);
    font-size: 14px;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.price-box .current-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-box .old-price {
    font-size: 18px;
}

.price-box .discount-percent {
    background: var(--danger-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.product-description {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 14px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector label {
    font-weight: 600;
    font-size: 14px;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-input button {
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.quantity-input button:hover {
    background: var(--border-color);
}

.quantity-input input {
    width: 70px;
    height: 40px;
    text-align: center;
    border: none;
    font-family: inherit;
    font-size: 16px;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.action-buttons {
    display: none;
    gap: 15px;
}

@media (min-width: 993px) {
    .action-buttons {
        display: flex;
    }

    .action-buttons .btn {
        flex: 1;
        padding: 15px;
        font-size: 16px;
    }
}

.mobile-product-actions {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 998;
    align-items: center;
}

@media (min-width: 993px) {
    .mobile-product-actions {
        display: none;
    }
}

.mobile-product-actions .qty-display {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 8px;
    background: var(--bg-color);
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
    height: 40px;
}

.mobile-product-actions .qty-display button {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--white);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-product-actions .qty-display span {
    min-width: 20px;
    text-align: center;
}

.mobile-product-actions .btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 13px;
    white-space: nowrap;
}

.mobile-product-actions .btn i {
    margin-left: 4px;
}

.product-specs {
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.product-specs h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 16px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item .spec-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.spec-item .spec-info {
    flex: 1;
}

.spec-item .spec-label {
    font-size: 12px;
    color: var(--text-light);
}

.spec-item .spec-value {
    font-weight: 600;
    color: var(--text-color);
}

.video-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
}

.video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
}

.video-btn i {
    font-size: 20px;
}

.reviews-section {
    margin-top: 30px;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.reviews-section h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 18px;
}

.review-card {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.review-card:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 600;
    font-size: 14px;
}

.review-date {
    color: var(--text-light);
    font-size: 12px;
}

.review-rating {
    color: #f5a623;
    margin-bottom: 8px;
    font-size: 14px;
}

.review-form {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 15px;
}

.register-page {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
}

.register-card {
    max-width: 560px;
    margin: 0 auto 30px;
    padding: 32px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.register-card__header {
    margin-bottom: 28px;
    text-align: center;
}

.register-card__title {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.register-card__footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.register-card__footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.register-form .form-group {
    margin-bottom: 18px;
}

.register-form .form-group .control-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.register-form .form-control {
    width: 100%;
}

.register-form .form-group .text-danger {
    margin-top: 8px;
}

.buttons .pull-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.register-submit {
    min-width: 170px;
}

@media (max-width: 767px) {
    .register-card {
        padding: 24px;
        border-radius: 16px;
    }

    .register-card__title {
        font-size: 26px;
    }

    .buttons .pull-right {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
    }

    .register-submit {
        width: 100%;
    }
}

.login-page {
    padding: 40px 0;
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
}

.login-card {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.login-card__header {
    margin-bottom: 28px;
    text-align: center;
}

.login-card__title {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 8px;
}

.login-forgot {
    color: var(--text-dark);
    font-weight: 600;
}

.login-submit {
    min-width: 170px;
}

.login-card__footer {
    margin-top: 26px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.login-card__footer a {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 767px) {
    .login-page {
        padding: 24px 0;
    }

    .login-card {
        padding: 24px;
        border-radius: 16px;
    }

    .login-card__title {
        font-size: 26px;
    }

    .login-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .login-submit {
        width: 100%;
    }
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.star-rating {
    display: flex;
    gap: 5px;
    direction: ltr;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
    color: #f5a623;
}

.cart-page {
    padding: 20px 0;
    padding-bottom: 100px;
}

@media (min-width: 993px) {
    .cart-page {
        padding-bottom: 40px;
    }
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 993px) {
    .cart-container {
        grid-template-columns: 1fr 350px;
    }
}

.cart-items {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #fafafa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-image i {
    font-size: 30px;
    color: #ddd;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-details h4 {
    margin-bottom: 5px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.remove-item {
    color: var(--danger-color);
    cursor: pointer;
    font-size: 13px;
}

.cart-summary {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: fit-content;
}

@media (min-width: 993px) {
    .cart-summary {
        position: sticky;
        top: 120px;
    }
}

.cart-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
    margin-top: 15px;
}

.checkout-page {
    padding: 20px 0;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 993px) {
    .checkout-container {
        grid-template-columns: 1fr 380px;
    }
}

.checkout-form {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.checkout-form h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 576px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option.selected {
    border-color: var(--primary-color);
    background: #e3f2fd;
}

.payment-option input {
    width: 20px;
    height: 20px;
}

.payment-option i {
    font-size: 22px;
    color: var(--primary-color);
}

.order-summary {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: fit-content;
}

@media (min-width: 993px) {
    .order-summary {
        position: sticky;
        top: 120px;
    }
}

.order-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item-image {
    width: 50px;
    height: 50px;
    background: #fafafa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-item-image i {
    font-size: 20px;
    color: #ddd;
}

.order-item-details h4 {
    font-size: 13px;
    margin-bottom: 4px;
}

.order-item-details span {
    color: var(--text-light);
    font-size: 12px;
}

.track-page {
    padding: 80px 0;
}

.track-form {
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.track-form h1 {
    margin-bottom: 12px;
    font-size: 28px;
}

.track-form h1 i {
    margin-left: 10px;
}

.track-form p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.track-form .form-group {
    text-align: right;
    margin-bottom: 22px;
}

.track-form .form-group label {
    margin-bottom: 10px;
    font-weight: 600;
}

.track-form .form-control {
    border-radius: 12px;
    padding: 14px 16px;
}

.track-form .btn {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 767px) {
    .track-page {
        padding: 40px 0;
    }

    .track-form {
        max-width: 100%;
        padding: 28px 20px;
    }
}

.track-result {
    max-width: 550px;
    margin: 25px auto 0;
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.status-timeline {
    position: relative;
    padding-right: 30px;
}

.status-step {
    position: relative;
    padding-bottom: 25px;
    padding-right: 35px;
}

.status-step::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border-color);
}

.status-step::after {
    content: '';
    position: absolute;
    right: 9px;
    top: 20px;
    width: 2px;
    height: calc(100% - 20px);
    background: var(--border-color);
}

.status-step:last-child::after {
    display: none;
}

.status-step.completed::before {
    background: var(--success-color);
}

.status-step.completed::after {
    background: var(--success-color);
}

.status-step.current::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.2);
}

.status-step h4 {
    margin-bottom: 4px;
    font-size: 15px;
}

.status-step p {
    color: var(--text-light);
    font-size: 13px;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state i {
    font-size: 70px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 14px;
}

.success-message {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.success-message i {
    font-size: 70px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-message h1 {
    margin-bottom: 12px;
    font-size: 22px;
}

.success-message p {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 14px;
}

.tracking-code {
    background: var(--bg-color);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
    display: inline-block;
}

.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .logo {
        order: 1;
    }

    .main-header .logo-text {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .header-actions {
        order: 2;
        gap: 15px;
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 10px;
    }

    .cart-items {
        padding: 10px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }

    .cart-item-details {
        width: 100%;
    }

    .cart-item-total {
        width: 100%;
        text-align: left;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
    }

    .checkout-container {
        flex-direction: column;
    }

    .order-summary {
        order: -1;
        margin-bottom: 20px;
    }

    .banner-slide-content h2 {
        font-size: 20px;
    }

    .banner-slide-content p {
        font-size: 14px;
    }

    .page-header h1 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
        .header-top {
        position: relative;
        height: 60px;
    }

    .header-top .logo {
        position: absolute;
        right: 0px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .header-top .header-actions {
        position: absolute;
        left: 0px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        gap: 10px;
        z-index: 2;
    }
    
    
    .header-search {
        display: none;
    }

    .main-header .logo-text {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-info h3 {
        font-size: 12px;
        min-height: 36px;
    }

    .product-info {
        padding: 10px;
    }

    .current-price {
        font-size: 14px;
    }

    .cart-items {
        padding: 12px;
    }

    .cart-item {
        flex-direction: row !important;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 0;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    .cart-item-details {
        flex: 1;
        min-width: 0;
    }

    .cart-item-details h4 {
        font-size: 13px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
        margin-bottom: 6px;
    }

    .cart-item-price {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .cart-item-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cart-item-total {
        width: 100%;
        text-align: right !important;
        padding-top: 10px;
        margin-top: 5px;
        border-top: 1px dashed var(--border-color);
    }

    .quantity-input {
        transform: scale(0.9);
        transform-origin: right center;
    }

    .quantity-controls button {
        width: 32px;
        height: 32px;
    }

    .quantity-controls span {
        width: 35px;
        font-size: 14px;
    }

    .cart-summary {
        padding: 15px;
    }

    .cart-summary h3 {
        font-size: 15px;
    }
}

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast-notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-notification i {
    font-size: 18px;
}

@media (max-width: 576px) {
    .toast-notification {
        width: 90%;
        max-width: 350px;
        bottom: 80px;
    }
}

/* ========================================
   CATEGORY PAGE - ADVANCED FILTERS
   ======================================== */

.category-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    padding: 25px 0;
}

@media (max-width: 992px) {
    .category-page {
        grid-template-columns: 1fr;
    }
}

/* Filters Sidebar Placeholder (for desktop grid) */
.filters-sidebar-placeholder {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow);
}

@media (max-width: 992px) {
    .filters-sidebar-placeholder {
        display: none !important;
    }
}

/* Filters Sidebar (mobile only - outside grid) */
.filters-sidebar {
    display: none;
}

@media (max-width: 992px) {
    .filters-sidebar {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 85% !important;
        max-width: 350px !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 9999 !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        padding: 20px !important;
        padding-bottom: 100px !important;
        background: #ffffff !important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2) !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
    }

    .filters-sidebar.active {
        transform: translateX(0) !important;
    }
}

.filters-header-mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.filters-header-mobile h3 {
    font-size: 18px;
    color: var(--text-color);
}

.close-filters {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-light);
    cursor: pointer;
}

@media (max-width: 992px) {
    .filters-header-mobile {
        display: flex;
    }
}

/* Filter Toggle Button (Mobile) */
.filter-toggle-btn {
    display: none;
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    font-family: 'Cairo', sans-serif;
}

.filter-toggle-btn i {
    margin-left: 8px;
}

@media (max-width: 992px) {
    .filter-toggle-btn {
        display: block;
    }
}

/* Filter Overlay */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.filter-overlay.active {
    display: block;
}

body.no-scroll {
    overflow: hidden;
}

/* Filter Cards */
.filter-card {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.filter-card:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-card h4 i {
    color: var(--primary-color);
    font-size: 13px;
}

/* Filter Select (Sorting) */
.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Price Range */
.price-range-display {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    text-align: center;
}

.price-range {
    display: flex;
    gap: 10px;
}

.price-range input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    text-align: center;
}

.price-range input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Collapsible Filters */
.filter-collapsible .filter-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.filter-collapsible .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: var(--text-light);
}

.filter-collapsible .toggle-icon.rotated {
    transform: rotate(180deg);
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-content.show {
    max-height: 300px;
    overflow-y: auto;
}

/* Filter Checkboxes & Radios */
.filter-checkbox,
.filter-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    transition: color 0.2s;
}

.filter-checkbox:hover,
.filter-radio:hover {
    color: var(--primary-color);
}

.filter-checkbox input,
.filter-radio input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.filter-count {
    margin-right: auto;
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-color);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Products Section */
.products-section {
    min-height: 400px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.products-count {
    font-size: 14px;
    color: var(--text-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 12px;
}

.empty-state i {
    font-size: 60px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-light);
}

/* Sidebar Navigation (Off-Canvas) */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    /* Changed from -320px */
    width: 320px;
    height: 100%;
    background: var(--white);
    z-index: 1001;
    /* Lifted layer */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Transform transition */
    overflow-y: auto;
    transform: translateX(110%);
    /* Move off-screen right */
    will-change: transform;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 300;
}

.sidebar-overlay.active {
    display: block;
}

/* Mega Panel Fixes */
.mega-panel {
    max-width: 100%;
    overflow: hidden;
}

/* Product Zoom Effect */
.zoom-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: zoom-in;
    background: #fff;
    width: 100%;
    height: 100%;
}

.zoom-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease-out;
    will-change: transform;
}

@media (max-width: 991px) {
    .zoom-container {
        cursor: default;
    }
}

/* ============================================
   TOP PROMO BANNER — Marquee Style
   ============================================ */
.top-promo-banner {
    position: relative;
    overflow: hidden;
    height: 90px;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 2px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Animated shimmer overlay */
.top-promo-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.04) 40%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.04) 60%,
            transparent 100%);
    animation: topPromoShimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes topPromoShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Scrolling track */
.top-promo-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    animation: topPromoMarquee 25s linear infinite;
    will-change: transform;
}

.top-promo-banner:hover .top-promo-track {
    animation-play-state: paused;
}

@keyframes topPromoMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(33.3333%);
    }
}

/* Individual items */
.top-promo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    flex-shrink: 0;
    padding: 0 4px;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.top-promo-item:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.top-promo-item img,
.top-promo-item video {
    height: 100%;
    max-height: 90px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    pointer-events: none;
}

/* Close button */
.top-promo-close {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 5;
}

.top-promo-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* Hide on mobile */
@media (max-width: 768px) {
    .top-promo-banner {
        height: 60px;
    }

    .top-promo-item {
        height: 60px;
    }

    .top-promo-item img,
    .top-promo-item video {
        max-height: 60px;
    }

    .top-promo-close {
        width: 24px;
        height: 24px;
        font-size: 10px;
        left: 6px;
    }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .top-promo-track {
        animation: none !important;
    }

    .top-promo-shimmer {
        animation: none !important;
        display: none;
    }
}