/* ═══════════════════════════════════════════════════════════════
   Cloud Buy Or Sell — Premium E-Commerce Stylesheet
   Version  : 3.0
   Structure : 22 organised sections, mobile-first
   ═══════════════════════════════════════════════════════════════
   01. CSS Variables
   02. Reset & Base
   03. Container System
   04. Premium Header (Desktop)
   05. Mobile Header & Drawer
   06. Hero Section (Video)
   07. Trust Bar
   08. Section Headers
   09. Brands
   10. Category Cards
   11. Product Cards
   12. Product Slider
   13. Promotional Banners
   14. CTA Section
   15. Filter & Sort System
   16. Breadcrumb
   17. Pagination
   18. Footer
   19. Toast Notification
   20. Utility Classes
   21. Animations & Keyframes
   22. Performance & Accessibility
═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   01. CSS VARIABLES
═══════════════════════════════════════════════════════════════ */
:root {
    /* ── Brand Colors ── */
    --primary-red:      #E63946;
    --dark-red:         #C1121F;
    --accent-gold:      #FFD166;
    --primary-color:    #E63946;
    --secondary-color:  #FFD166;

    /* ── Header / Hero Palette ── */
    --header-gold:          #c49a6c;
    --header-gold-dark:     #a57c52;
    --header-gold-light:    #dbb88c;
    --header-hero-cream:    #EED3B1;
    --header-green-deep:    #2c5e2e;
    --header-green-dark:    #1a3d1a;

    /* ── Semantic Colors ── */
    --success-color:    #28a745;
    --danger-color:     #dc3545;
    --warning-color:    #FFD166;
    --info-color:       #17a2b8;

    /* ── Neutrals ── */
    --white:            #ffffff;
    --light-gray:       #f8f9fa;
    --border-gray:      #e5e5e5;
    --dark-gray:        #333333;
    --text-muted:       #6c757d;
    --text-dark:        #1a1a2e;
    --text-white:       #ffffff;

    /* ── Header Drawer ── */
    --drawer-bg:        #0f0f1a;
    --drawer-surface:   #1a1a2e;
    --drawer-border:    rgba(255,255,255,.1);

    /* ── Shadows ── */
    --shadow-sm:        0 2px 6px  rgba(0,0,0,.06);
    --shadow-md:        0 4px 12px rgba(0,0,0,.08);
    --shadow-lg:        0 8px 24px rgba(0,0,0,.12);
    --shadow-hover:     0 12px 28px rgba(230,57,70,.15);
    --shadow-gold:      0 5px 20px rgba(0,0,0,.2);

    /* ── Border Radius ── */
    --radius-sm:    8px;
    --radius-md:    12px;
    --radius-lg:    16px;
    --radius-xl:    20px;
    --radius-pill:  50px;

    /* ── Transitions ── */
    --transition-fast:  all .2s ease;
    --transition-base:  all .3s ease;
    --transition-slow:  all .4s ease;

    /* ── Spacing ── */
    --container-padding:    0.75rem;
    --section-spacing:      1rem;

    /* ── Typography ── */
    --font-heading: 'Playfair Display', serif;
    --font-body:    'Poppins', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}


/* ═══════════════════════════════════════════════════════════════
   02. RESET & BASE
═══════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: #f4f6f9;
    color: var(--dark-gray);
    overflow-x: hidden;
    width: 100%;
    line-height: 1.5;

    /* Default: fixed header pushes content down */
    padding-top: 90px;
}

/* Hero pages: header floats over hero, no padding needed */
body.has-hero {
    padding-top: 0;
}

@media (max-width: 991px) { body { padding-top: 70px; } }
@media (max-width: 480px)  { body { padding-top: 60px; } }
body.has-hero { padding-top: 0 !important; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ═══════════════════════════════════════════════════════════════
   03. CONTAINER SYSTEM
═══════════════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--container-padding);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

/* ── Grid Columns ── */
.col-6                      { width: 50%;     padding: 0 .5rem; }
.col-sm-6                   { width: 50%;     padding: 0 .5rem; }

@media (min-width: 640px) {
    .col-sm-6               { width: 50%;   }
}

@media (min-width: 768px) {
    .col-md-3               { width: 33.333%; padding: 0 .5rem; }
    .col-md-4               { width: 33.333%; padding: 0 .5rem; }
}

@media (min-width: 1024px) {
    .col-lg-3               { width: 25%;   padding: 0 .5rem; }
    .col-md-4               { width: 25%;   padding: 0 .5rem; }
    .container              { padding: 0 1.5rem; }
}


/* ═══════════════════════════════════════════════════════════════
   04. PREMIUM HEADER — DESKTOP
═══════════════════════════════════════════════════════════════ */

/* ── Base State (transparent over hero) ── */
.premium-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-base);
    background: rgba(0,0,0,.2);
    backdrop-filter: blur(0px);
}

/* ── Sticky State (solid on scroll) ── */
.premium-header.header-sticky {
    background: rgba(255,255,255,.98);
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    border-bottom: 1px solid rgba(0,0,0,.05);
}

/* ── Text recolouring when sticky ── */
.premium-header.header-sticky .logo-text,
.premium-header.header-sticky .nav-link,
.premium-header.header-sticky .action-link span,
.premium-header.header-sticky .action-link i,
.premium-header.header-sticky .mobile-action-link i,
.premium-header.header-sticky .mobile-quick-links a,
.premium-header.header-sticky .hamburger-menu span {
    color: var(--text-dark);
}

.premium-header.header-sticky .logo-text {
    background: linear-gradient(135deg, var(--header-gold) 0%, var(--header-gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.premium-header.header-sticky .search-input-wrapper input {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: var(--text-dark);
}

.premium-header.header-sticky .search-input-wrapper input::placeholder { color: #aaa; }
.premium-header.header-sticky .search-icon-prefix                       { color: #999; }
.premium-header.header-sticky .nav-link::after                          { background: var(--header-gold); }

/* ── Header outer box ── */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 32px;
}

/* ── Desktop row ── */
.desktop-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* ── Logo ── */
.header-logo   { flex-shrink: 0; }

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.logo-link:hover { transform: scale(1.02); }

.logo-img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.1));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff 0%, #e0d5c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition-base);
}

/* ── Desktop Nav ── */
.header-nav { flex: 1; }

.nav-menu-list {
    display: flex;
    align-items: center;
    gap: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item { position: relative; }

.nav-link {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .5px;
    color: var(--text-white);
    text-decoration: none;
    padding: 8px 0;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--header-gold-light);
    transition: width var(--transition-base);
}

.nav-link:hover::after  { width: 100%; }
.nav-link:hover         { color: var(--header-gold-light); }

/* ── Header Actions ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ── Search ── */
.header-search-form   { position: relative; }
.search-input-wrapper { position: relative; display: flex; align-items: center; }

.search-icon-prefix {
    position: absolute;
    left: 16px;
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.search-input-wrapper input {
    width: 220px;
    padding: 10px 16px 10px 40px;
    font-family: var(--font-body);
    font-size: .9rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-pill);
    color: var(--text-white);
    transition: var(--transition-fast);
}

.search-input-wrapper input:focus {
    outline: none;
    width: 280px;
    background: rgba(255,255,255,.25);
    border-color: rgba(255,255,255,.4);
}

.search-input-wrapper input::placeholder { color: rgba(255,255,255,.6); }
.search-submit { display: none; }

/* ── Action Items (Account, Cart) ── */
.action-item   { position: relative; }

.action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-white);
    transition: color var(--transition-fast);
    padding: 6px 0;
}

.action-link:hover { color: var(--header-gold-light); }
.action-link i     { font-size: 1.2rem; }
.cart-link         { position: relative; }

.cart-badge {
    position: absolute;
    top: -8px; right: -12px;
    background: var(--header-gold);
    color: white;
    font-size: .7rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.cart-badge.hidden { display: none; }

/* ── Account Dropdown ── */
.account-dropdown { position: relative; }

.dropdown-menu-custom {
    position: absolute;
    top: 100%; right: 0;
    margin-top: 12px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    z-index: 100;
}

.dropdown-menu-custom::before {
    content: '';
    position: absolute;
    top: -6px; right: 20px;
    width: 12px; height: 12px;
    background: white;
    transform: rotate(45deg);
}

.account-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-custom a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: .85rem;
    transition: background var(--transition-fast);
}

.dropdown-menu-custom a:hover { background: #f5f5f5; }
.dropdown-menu-custom hr      { margin: 0; border-color: #eee; }

/* ── Category Menu Bar (Desktop) ── */
.navbar-category-menu {
    background: white;
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
    box-shadow: var(--shadow-sm);
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-menu-list {
    display: flex;
    list-style: none;
    margin: 0; padding: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.category-menu-item {
    flex-shrink: 0;
    padding: .7rem 1rem;
    border-right: 1px solid #f0f0f0;
    transition: var(--transition-fast);
}

.category-menu-item:hover        { background: #fafafa; }
.category-menu-item:last-child   { border-right: none; }

.category-menu-link {
    color: #212121;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}

.category-menu-link:hover      { color: var(--primary-red); transform: translateX(3px); }
.category-menu-link i          { font-size: .9rem; color: var(--primary-red); }

/* ── Header Spacer ── */
.header-spacer { height: 90px; display: none; }
.header-spacer.spacer-visible { display: block; }

/* ── Responsive Visibility ── */
@media (min-width: 992px) {
    .desktop-header-wrapper { display: flex; }
    .mobile-header-wrapper  { display: none !important; }
    .mobile-quick-links     { display: none !important; }
}

@media (max-width: 991px) {
    .desktop-header-wrapper { display: none; }
    .header-container       { padding: 12px 16px; }
    .header-spacer          { height: 110px; }
    .navbar-category-menu   { display: none; }
}


/* ═══════════════════════════════════════════════════════════════
   05. MOBILE HEADER & DRAWER
═══════════════════════════════════════════════════════════════ */

/* ── Mobile Header Row ── */
.mobile-header-wrapper {
    display: none;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 991px) { .mobile-header-wrapper { display: flex; } }

/* ── Hamburger ── */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px; height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.hamburger-menu span {
    width: 100%; height: 2px;
    background: var(--text-white);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.premium-header.header-sticky .hamburger-menu span { background: var(--text-dark); }

/* Three-dots variant */
.hamburger-menu.dots-style {
    width: 28px;
    gap: 0;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.hamburger-menu.dots-style span {
    width: 5px; height: 5px;
    border-radius: 50%;
}

.hamburger-menu.dots-style span:not(:last-child) { margin-right: 4px; }

/* ── Mobile Logo ── */
.mobile-logo .logo-img  { height: 36px; }
.mobile-logo .logo-text { font-size: 1.2rem; }

/* ── Mobile Action Icons ── */
.mobile-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-action-link {
    position: relative;
    color: var(--text-white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.mobile-action-link:hover { color: var(--header-gold-light); }

.cart-badge-mobile {
    position: absolute;
    top: -8px; right: -10px;
    background: var(--header-gold);
    color: white;
    font-size: .65rem;
    font-weight: 600;
    min-width: 16px; height: 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cart-badge-mobile.hidden { display: none; }

/* ── Mobile Quick Links (below header row) ── */
.mobile-quick-links {
    display: none;
    justify-content: space-around;
    padding: 12px 16px 8px;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 12px;
    background: rgba(0,0,0,.3);
    border-radius: 0 0 12px 12px;
    animation: fadeInUp .3s ease;
}

.mobile-quick-links.active { display: flex; }

.mobile-quick-links a {
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 500;
    padding: 8px 12px;
    transition: var(--transition-fast);
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.1);
}

.mobile-quick-links a:hover {
    background: rgba(255,255,255,.2);
    color: var(--header-gold-light);
}

/* Sticky state for quick links */
.premium-header.header-sticky .mobile-quick-links {
    background: rgba(255,255,255,.95);
    border-top-color: #eee;
}

.premium-header.header-sticky .mobile-quick-links a {
    color: var(--text-dark);
    background: #f0f0f0;
}

.premium-header.header-sticky .mobile-quick-links a:hover {
    background: var(--header-gold-light);
    color: white;
}

/* ── Sidebar Drawer ── */
.mobile-drawer {
    position: fixed;
    top: 0; left: -100%;
    width: 85%; max-width: 360px;
    height: 100vh;
    background: var(--drawer-bg);
    z-index: 1100;
    transition: left var(--transition-slow);
    box-shadow: 2px 0 30px rgba(0,0,0,.3);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-drawer.drawer-open { left: 0; }

/* Drawer Header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
    border-bottom: 1px solid var(--drawer-border);
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
}

.drawer-logo { display: flex; align-items: center; gap: 10px; }
.drawer-logo img  { height: 40px; width: auto; }
.drawer-logo span {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.drawer-close {
    background: rgba(255,255,255,.1);
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.drawer-close i    { color: white; font-size: 1.1rem; }
.drawer-close:hover {
    background: rgba(255,255,255,.2);
    transform: rotate(90deg);
}

/* Drawer Content */
.drawer-content { flex: 1; padding: 20px 0 40px; }

.drawer-user-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--drawer-border);
}

.drawer-user-card i { font-size: 3rem; color: var(--header-gold-light); }

.user-greeting {
    color: white;
    font-family: var(--font-body);
    font-weight: 500;
    margin: 0 0 4px;
}

.user-profile-link { color: var(--header-gold-light); text-decoration: none; font-size: .8rem; font-weight: 500; }

.drawer-login-prompt {
    padding: 0 20px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--drawer-border);
}

.drawer-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--header-gold) 0%, var(--header-gold-dark) 100%);
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition-fast);
}

.drawer-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196,154,108,.3);
}

/* Drawer Menu Links */
.drawer-menu {
    list-style: none;
    padding: 0; margin: 0;
}

.drawer-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.drawer-menu li a:hover {
    background: rgba(255,255,255,.05);
    color: white;
    border-left-color: var(--header-gold);
    padding-left: 24px;
}

.drawer-menu li a i { width: 24px; color: var(--header-gold-light); }

.drawer-divider {
    color: rgba(255,255,255,.4);
    font-size: .7rem;
    letter-spacing: 1px;
    padding: 20px 20px 10px;
    margin-top: 10px;
}

.view-all-cats a  { color: var(--header-gold-light) !important; font-weight: 600; }
.view-all-cats a i { transition: transform var(--transition-fast); }
.view-all-cats a:hover i { transform: translateX(5px); }

/* Drawer Overlay */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.drawer-overlay.overlay-visible { opacity: 1; visibility: visible; }

/* Staggered menu animation */
.drawer-menu li { animation: fadeInUp .4s ease forwards; opacity: 0; }
.drawer-menu li:nth-child(1) { animation-delay: .05s; }
.drawer-menu li:nth-child(2) { animation-delay: .10s; }
.drawer-menu li:nth-child(3) { animation-delay: .15s; }
.drawer-menu li:nth-child(4) { animation-delay: .20s; }
.drawer-menu li:nth-child(5) { animation-delay: .25s; }
.drawer-menu li:nth-child(6) { animation-delay: .30s; }
.drawer-menu li:nth-child(7) { animation-delay: .35s; }
.drawer-menu li:nth-child(8) { animation-delay: .40s; }
.drawer-menu li:nth-child(9) { animation-delay: .45s; }

/* ── Small Mobile ── */
@media (max-width: 480px) {
    .header-container   { padding: 10px 12px; }
    .mobile-actions     { gap: 14px; }
    .mobile-logo .logo-text { display: none; }
    .mobile-logo .logo-img  { height: 32px; }
    .mobile-quick-links a   { font-size: .7rem; padding: 6px 10px; }
    .mobile-drawer      { width: 85%; max-width: 300px; }
    .header-spacer      { height: 100px; }
}


/* ═══════════════════════════════════════════════════════════════
   06. HERO SECTION (VIDEO BACKGROUND)
═══════════════════════════════════════════════════════════════ */
.video-hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

/* Dark gradient overlay */
.video-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, #455727 0%, rgba(255,255,255,.15) 100%);
    z-index: 1;
}

/* Background Video */
.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video-container video {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Content */
.hero-wrapper {
    position: relative;
    z-index: 2;
    padding: 100px 5% 100px;
    width: 100%;
}

.hero-main-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 20px rgba(0,0,0,.3);
    max-width: 700px;
}

/* Typing cursor */
#typing-text {
    color: var(--header-hero-cream);
    border-right: 3px solid var(--header-hero-cream);
    animation: blink .7s infinite;
}

#typing-text::after {
    content: '|';
    animation: blink .7s infinite;
    color: var(--header-hero-cream);
}

/* CTA Button */
.btn-capsule {
    display: inline-block;
    padding: clamp(8px, 2vw, 14px) clamp(20px, 4vw, 40px);
    background: linear-gradient(135deg, var(--header-hero-cream), #d4b896);
    color: #39542B;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius-pill);
    font-size: clamp(.75rem, 1.5vw, 1rem);
    transition: var(--transition-base);
    box-shadow: var(--shadow-gold);
}

.btn-capsule:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
    color: var(--header-green-dark);
}

/* Award badge + button row */
.hero-actions-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.hero-badge {
    width: clamp(100px, 15vw, 180px);
    margin-bottom: 0;
}

/* Animated trust logo marquee */
.trust-logos-flow {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
    padding: 10px 0;
    white-space: nowrap;
}

.logos-track {
    display: inline-flex;
    gap: 50px;
    animation: scrollLogos 20s linear infinite;
}

.logos-track img {
    height: 30px;
    filter: brightness(0) invert(1);
}

/* Curved bottom divider */
.hero-curve {
    position: absolute;
    bottom: -1px; left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.hero-curve svg {
    width: 100%;
    height: clamp(40px, 10vw, 100px);
}

/* ── Hero slide counter ── */
.hero-counter {
    position: absolute;
    top: 30px; left: 30px;
    z-index: 10;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255,255,255,.8);
    font-size: .9rem;
}

#current-count { color: var(--header-hero-cream); }

/* ── Mobile Hero ── */
@media (max-width: 767px) {
    .video-hero {
        height: 60vh;
        min-height: 480px;
        text-align: left;
    }

    .hero-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 60px;
    }

    .hero-actions-row { gap: 15px; }
    .logos-track      { gap: 30px; animation-duration: 15s; }
    .logos-track img  { height: 20px; }

    .hero-counter {
        top: 20px; left: 20px;
        font-size: .8rem;
    }
}


/* ═══════════════════════════════════════════════════════════════
   07. TRUST BAR
═══════════════════════════════════════════════════════════════ */
.trust-bar {
    background: var(--header-green-deep);
    padding: 18px 0;
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.88);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.trust-item i { color: #d4af37; font-size: 1rem; }

@media (max-width: 767px) {
    .trust-bar-inner {
        gap: 14px 24px;
        justify-content: flex-start;
        padding: 0 16px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   08. SECTION HEADERS
═══════════════════════════════════════════════════════════════ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--header-green-deep), var(--header-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.section-header .section-subtitle {
    font-size: .9rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (min-width: 1024px) {
    .section-header h2            { font-size: 1.5rem; }
    .section-header .section-subtitle { font-size: .85rem; }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: .3rem;
    }

    .section-header h2 { font-size: .9rem; }
}


/* ═══════════════════════════════════════════════════════════════
   09. BRANDS
═══════════════════════════════════════════════════════════════ */
.brands-section {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.brands-carousel {
    display: flex;
    gap: .8rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: .5rem 0;
    -webkit-overflow-scrolling: touch;
}

.brands-carousel::-webkit-scrollbar       { height: 3px; }
.brands-carousel::-webkit-scrollbar-track { background: var(--light-gray); border-radius: 3px; }
.brands-carousel::-webkit-scrollbar-thumb { background: var(--primary-red); border-radius: 3px; }

.brand-item {
    flex-shrink: 0;
    width: 90px; height: 90px;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    border-radius: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.brand-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-red);
    box-shadow: 0 8px 25px rgba(230,57,70,.2);
    background: var(--white);
}

.brand-item i           { font-size: 1.3rem; margin-bottom: .2rem; }
.brand-item-name        { font-size: .55rem; font-weight: 600; text-align: center; }

@media (min-width: 769px) and (max-width: 1023px) {
    .brands-carousel { gap: 1.5rem; justify-content: center; flex-wrap: wrap; overflow-x: visible; }
    .brand-item { width: 90px; height: 90px; }
    .brand-item i { font-size: 1.8rem; }
    .brand-item-name { font-size: .7rem; }
}

@media (min-width: 1024px) {
    .brands-section { padding: 2rem; margin-bottom: 2rem; }
    .brands-carousel { gap: 2rem; justify-content: center; flex-wrap: wrap; overflow-x: visible; }
    .brand-item { width: 120px; height: 120px; }
    .brand-item i { font-size: 2.5rem; margin-bottom: .5rem; }
    .brand-item-name { font-size: .85rem; }
}


/* ═══════════════════════════════════════════════════════════════
   10. CATEGORY CARDS
═══════════════════════════════════════════════════════════════ */

/* ── Homepage Popular Category Grid ── */
.popular-category-section {
    background: var(--white);
    padding: 1.2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.popular-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.popular-category-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    transition: var(--transition-base);
}

.popular-category-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.popular-category-card:hover img    { transform: scale(1.1); }
.popular-category-card:hover        { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.2); }

.popular-category-card .overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
    color: white;
}

.popular-category-card h5 { font-size: 1rem; font-weight: 700; margin: 0; }

/* ── Shop/Filter page category section ── */
.category-section {
    background: var(--white);
    padding: .8rem;
    margin-bottom: .8rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
}

@media (min-width: 640px)  { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }

.category-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: .8rem .5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
}

.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.category-card-icon  { font-size: 1.3rem; margin-bottom: .3rem; color: var(--white); }
.category-card-name  { font-size: .7rem; font-weight: 700; color: var(--white); margin-bottom: .3rem; }

.category-card a {
    text-decoration: none;
    color: var(--accent-gold);
    font-size: .6rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.category-card a:hover { color: var(--white); letter-spacing: .5px; }

/* ── Responsive Popular Grid ── */
@media (max-width: 992px) {
    .popular-category-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

@media (max-width: 768px) {
    .popular-category-grid { gap: 12px; }
    .popular-category-card h5 { font-size: .85rem; }
}


/* ═══════════════════════════════════════════════════════════════
   11. PRODUCT CARDS & PRODUCT GRID
═══════════════════════════════════════════════════════════════ */
.products-section {
    background: var(--white);
    padding: .8rem;
    margin-bottom: .8rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

/* ── Responsive Grid ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
}

@media (min-width: 640px) and (max-width: 767px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
}

@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

@media (min-width: 1400px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

/* ── Product Card Base ── */
.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    border: 1px solid var(--border-gray);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
    border-color: var(--primary-red);
}

/* ── Product Image ── */
.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-card:hover .product-image img { transform: scale(1.08); }

/* ── Badge ── */
.product-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    z-index: 2;
}

.badge-new     { background: linear-gradient(135deg, var(--success-color), #1e7e34); }
.badge-popular { background: linear-gradient(135deg, var(--header-gold), var(--header-gold-dark)); }

/* ── Card Body ── */
.product-card-body,
.product-info {
    padding: 12px 15px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: .7rem;
    color: var(--header-gold);
    font-weight: 600;
    margin-bottom: .3rem;
    text-transform: uppercase;
}

.product-title,
.product-name {
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .5rem;
    line-height: 1.35;
    color: var(--dark-gray);
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Price ── */
.product-price {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .8rem;
    flex-wrap: wrap;
}

.product-price-current,
.current-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-red);
}

.product-price-old,
.old-price {
    font-size: .7rem;
    color: #aaa;
    text-decoration: line-through;
}

.discount-badge {
    background: rgba(40,167,69,.12);
    color: var(--success-color);
    font-size: .6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 12px;
}

/* ── Actions ── */
.product-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-add-cart {
    flex: 1;
    background: linear-gradient(135deg, var(--header-gold), var(--header-gold-dark));
    color: white;
    border: none;
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--header-gold-dark), #8b6843);
    transform: translateY(-2px);
}

.btn-view-details,
.btn-view-product {
    flex: 1;
    background: var(--light-gray);
    color: var(--dark-gray);
    border: none;
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition-fast);
    display: block;
}

.btn-view-details:hover,
.btn-view-product:hover {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    transform: translateY(-2px);
}

/* ── No Products State ── */
.no-products {
    text-align: center;
    padding: 50px;
    grid-column: 1 / -1;
}

.no-products i { font-size: 3rem; color: #ccc; margin-bottom: 15px; }
.no-products p { color: var(--text-muted); font-size: .9rem; }

/* ── Mobile Product Card ── */
@media (max-width: 768px) {
    .products-grid   { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-title,
    .product-name    { font-size: .75rem; }
    .current-price,
    .product-price-current { font-size: .85rem; }
    .btn-add-cart,
    .btn-view-details { padding: 7px; font-size: .7rem; }
    .products-section { padding: .6rem; margin-bottom: .6rem; }
}


/* ═══════════════════════════════════════════════════════════════
   12. PRODUCT SLIDER
═══════════════════════════════════════════════════════════════ */
.product-slider-section {
    background: var(--white);
    padding: .8rem;
    margin-bottom: .8rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .6rem;
    flex-wrap: wrap;
    gap: .5rem;
}

.slider-header h2 {
    font-size: .9rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.product-slider-wrapper {
    position: relative;
    padding: 0 40px;
}

.product-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 15px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.product-slider::-webkit-scrollbar       { height: 6px; }
.product-slider::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.product-slider::-webkit-scrollbar-thumb { background: var(--header-gold); border-radius: 10px; }

.product-slider .product-card {
    flex: 0 0 auto;
    width: 260px;
    scroll-snap-align: start;
}

/* Slider Nav Buttons */
.slider-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
    transition: var(--transition-fast);
    z-index: 10;
    font-size: 1.2rem;
    color: var(--header-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--header-gold);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

@media (max-width: 768px) {
    .product-slider-wrapper { padding: 0 20px; }
    .product-slider .product-card { width: 180px; }
    .product-slider-section { padding: .6rem; }
    .slider-btn { width: 28px; height: 28px; font-size: .8rem; }
    .slider-btn.prev { left: -5px; }
    .slider-btn.next { right: -5px; }
}

@media (min-width: 1024px) {
    .product-slider .product-card { width: 200px; }
}


/* ═══════════════════════════════════════════════════════════════
   13. PROMOTIONAL BANNERS
═══════════════════════════════════════════════════════════════ */
.banners-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
    margin-bottom: .8rem;
}

@media (min-width: 640px)  { .banners-section { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .banners-section { grid-template-columns: repeat(3, 1fr); } }

.promo-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    min-height: 70px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.promo-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.promo-banner.beauty { background: linear-gradient(135deg, #FF1493, #FF69B4); }
.promo-banner.deals  { background: linear-gradient(135deg, #FF8C00, #FFD700); }
.promo-banner.fresh  { background: linear-gradient(135deg, #00b894, #55efc4); }

.promo-content {
    padding: .5rem .8rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.promo-content h3 { font-size: .7rem; font-weight: 800; margin-bottom: .1rem; }
.promo-content p  { font-size: .55rem; margin-bottom: .3rem; }

.promo-btn {
    background: var(--white);
    color: var(--dark-gray);
    padding: .15rem .5rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    width: fit-content;
    font-size: .55rem;
    transition: var(--transition-fast);
}

.promo-btn:hover { transform: translateX(3px); background: var(--accent-gold); }


/* ═══════════════════════════════════════════════════════════════
   14. CTA SECTION
═══════════════════════════════════════════════════════════════ */
.cta-section {
    background: linear-gradient(135deg, #1a472a, #2c5e2e);
    border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) var(--radius-xl);
    padding: 50px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: var(--header-hero-cream);
    margin-bottom: 25px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.cta-section .btn {
    background: var(--header-hero-cream);
    color: #2c5e2e;
    padding: 15px 35px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition-base);
    position: relative;
    z-index: 1;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

@media (max-width: 768px) {
    .cta-section { padding: 30px 20px; }
    .cta-section h2 { font-size: 1.3rem; }
    .cta-section p  { font-size: .95rem; }
}


/* ═══════════════════════════════════════════════════════════════
   15. FILTER & SORT SYSTEM
═══════════════════════════════════════════════════════════════ */

/* ── Mobile Filter Button Bar ── */
.mobile-filter-bar,
.mobile-filter-btn {
    display: none;
    background: var(--white);
    padding: .6rem .75rem;
    position: sticky;
    top: 60px;
    z-index: 98;
    gap: .75rem;
    border-bottom: 1px solid var(--border-gray);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.filter-toggle-btn,
.sort-toggle-btn,
.btn-filter-toggle,
.btn-sort-toggle {
    flex: 1;
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    padding: .7rem;
    border-radius: var(--radius-pill);
    font-size: .8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--dark-gray);
}

.filter-toggle-btn i, .sort-toggle-btn i,
.btn-filter-toggle i, .btn-sort-toggle i { font-size: .9rem; color: var(--primary-red); }

.filter-toggle-btn:hover, .sort-toggle-btn:hover,
.btn-filter-toggle:hover, .btn-sort-toggle:hover {
    background: #fff5f5;
    border-color: var(--primary-red);
}

.filter-toggle-btn.active, .sort-toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
}

.filter-toggle-btn.active i, .sort-toggle-btn.active i { color: var(--white); }
.filter-active-badge { display: inline-block; width: 8px; height: 8px; background: var(--primary-red); border-radius: 50%; margin-left: 5px; }

/* ── Filter Drawer (slides up from bottom) ── */
.filter-drawer {
    position: fixed;
    bottom: -100%; left: 0; right: 0;
    background: var(--white);
    border-radius: 24px 24px 0 0;
    z-index: 1001;
    transition: bottom .35s cubic-bezier(.2,.9,.4,1.1);
    box-shadow: 0 -5px 30px rgba(0,0,0,.2);
    max-height: 85vh;
    overflow-y: auto;
}

.filter-drawer.open { bottom: 0; }

.filter-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    position: sticky;
    top: 0; z-index: 10;
}

.filter-drawer-header h4 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.filter-drawer-header h4 i { margin-right: .5rem; }

.close-filter-drawer {
    background: rgba(255,255,255,.2);
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.close-filter-drawer:hover { background: rgba(255,255,255,.3); }
.filter-drawer-body { padding: 1rem 1.2rem; }

/* ── Filter Sections ── */
.filter-section, .filter-group {
    background: var(--white);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.filter-section:last-child, .filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.filter-section-title,
.filter-group h6 {
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: .8rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.filter-section-title i,
.filter-group h6 i { color: var(--primary-red); width: 20px; font-size: 14px; }

/* ── Price Range ── */
.price-range-container { margin-top: .5rem; }
.price-input-group,
.price-inputs { display: flex; gap: 1rem; margin-bottom: 1rem; }

.price-input-box,
.price-input { flex: 1; }

.price-input-box label,
.price-input label { font-size: .7rem; color: #666; display: block; margin-bottom: 4px; }

.price-input-box input,
.price-input-field {
    width: 100%;
    padding: .6rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    font-size: .8rem;
    transition: var(--transition-fast);
}

.price-input-box input:focus,
.price-input-field:focus { outline: none; border-color: var(--primary-red); }

.price-slider { position: relative; height: 4px; margin: 20px 0; }

.price-slider input {
    position: absolute;
    width: 100%;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
}

.price-slider input::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 16px; height: 16px;
    background: var(--primary-red);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.price-slider input::-webkit-slider-runnable-track { height: 4px; background: #ddd; border-radius: 2px; }

.price-labels,
.price-range-values {
    display: flex;
    justify-content: space-between;
    font-size: .7rem;
    color: #888;
    margin-top: .5rem;
}

/* ── Category Filter List ── */
.category-filter-list,
.category-list { display: flex; flex-direction: column; gap: .6rem; }

.category-filter-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.category-filter-item:hover { background: var(--light-gray); }
.category-filter-item input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary-red); }
.category-filter-item label { flex: 1; font-size: .8rem; cursor: pointer; color: var(--dark-gray); }
.category-filter-item .count { font-size: .7rem; color: var(--text-muted); }

/* Category sidebar links */
.category-filter-link {
    text-decoration: none;
    font-size: 14px;
    color: #444;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    background: #f9f9f9;
    border: 1px solid transparent;
    display: block;
}

.category-filter-link:hover   { background: #f1f1f1; color: var(--primary-red); padding-left: 14px; }
.category-filter-link.active  { background: var(--primary-red); color: #fff; font-weight: 600; border-color: var(--primary-red); }

/* ── Rating Filter ── */
.rating-filter-list { display: flex; flex-direction: column; gap: .6rem; }

.rating-option {
    display: flex;
    align-items: center;
    gap: .7rem;
    cursor: pointer;
    padding: .4rem;
    border-radius: var(--radius-sm);
}

.rating-option:hover { background: var(--light-gray); }
.rating-option input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary-red); }
.rating-stars        { display: flex; align-items: center; gap: 2px; color: #ffc107; }
.rating-stars i      { font-size: .7rem; }
.rating-text         { font-size: .7rem; color: var(--text-muted); margin-left: .3rem; }

/* ── Stock Filter ── */
.stock-filter-option {
    display: flex;
    align-items: center;
    gap: .7rem;
    cursor: pointer;
    padding: .5rem;
}

.stock-filter-option input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary-red); }
.stock-filter-option label { font-size: .8rem; cursor: pointer; }

/* ── Filter Action Buttons ── */
.filter-actions { display: flex; gap: 1rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border-gray); }

.btn-apply-filter,
.btn-apply-filters {
    flex: 1;
    padding: .8rem;
    border-radius: var(--radius-pill);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
}

.btn-apply-filter:hover,
.btn-apply-filters:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-reset-filter,
.btn-clear-filters,
.btn-reset-filter {
    flex: 1;
    padding: .8rem;
    border-radius: var(--radius-pill);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid var(--border-gray);
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn-reset-filter:hover,
.btn-clear-filters:hover { background: var(--border-gray); }

/* ── Sort Drawer ── */
.sort-drawer {
    position: fixed;
    bottom: -100%; left: 0; right: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    transition: bottom .3s ease;
    box-shadow: 0 -2px 20px rgba(0,0,0,.15);
}

.sort-drawer.open { bottom: 0; }

.sort-drawer-header,
.sort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-gray);
}

.sort-drawer-header h4,
.sort-header h5 { margin: 0; font-size: 1rem; font-weight: 600; }

.close-sort-drawer,
.close-sort {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark-gray);
}

.sort-options-list,
.sort-body {
    padding: .5rem 0;
    display: flex;
    flex-direction: column;
}

.sort-option {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .9rem 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: .85rem;
    text-decoration: none;
    color: var(--dark-gray);
    border-radius: var(--radius-sm);
}

.sort-option:hover         { background: var(--light-gray); }
.sort-option i             { width: 22px; color: var(--primary-red); font-size: .9rem; }
.sort-option.active        { background: rgba(230,57,70,.08); color: var(--primary-red); font-weight: 600; }
.sort-option.active i      { color: var(--primary-red); }

/* ── Desktop Sidebar Filter ── */
.filter-sidebar-desktop,
.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.filter-sidebar-header {
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
}

.filter-sidebar-header h5 { margin: 0; font-size: .95rem; font-weight: 600; }
.filter-sidebar-header h5 i { margin-right: .5rem; }

.filter-sidebar-body,
.filter-body { padding: 1rem; }

.filter-sidebar-section { margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-gray); }
.filter-sidebar-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.filter-sidebar-title { font-size: .8rem; font-weight: 700; margin-bottom: .8rem; color: var(--dark-gray); }
.filter-sidebar-title i { color: var(--primary-red); margin-right: .3rem; }

/* ── Desktop Sort Bar ── */
.sort-bar-desktop,
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: .5rem 0;
}

.result-count  { font-size: .8rem; color: var(--text-muted); }

.sort-select-desktop,
.sort-select {
    padding: .5rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-pill);
    font-size: .75rem;
    background: var(--white);
    cursor: pointer;
}

/* ── Active Filter Tags ── */
.active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }

.filter-tag {
    background: rgba(230,57,70,.1);
    padding: .3rem .7rem;
    border-radius: 20px;
    font-size: .7rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--primary-red);
}

.filter-tag i { cursor: pointer; font-size: .6rem; }
.filter-tag i:hover { opacity: .7; }
.clear-all-filters { font-size: .7rem; color: var(--text-muted); text-decoration: none; }

/* ── Filter Overlay ── */
.filter-overlay,
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.filter-overlay.active,
.sidebar-overlay.active { display: block; opacity: 1; visibility: visible; }

/* ── Responsive Filter/Sort ── */
@media (max-width: 767px) {
    .mobile-filter-bar,
    .mobile-filter-btn   { display: flex; }
    .filter-sidebar-desktop,
    .sort-bar-desktop,
    .desktop-sort,
    .sort-bar            { display: none; }

    .filter-sidebar {
        position: fixed;
        top: 0; left: -100%;
        width: 85%; max-width: 320px;
        height: 100%;
        z-index: 1000;
        border-radius: 0;
        transition: left .3s ease;
        overflow-y: auto;
    }

    .filter-sidebar.open { left: 0; }
}

@media (min-width: 768px) {
    .mobile-filter-bar,
    .mobile-filter-btn { display: none; }
    .filter-drawer,
    .sort-drawer,
    .filter-overlay    { display: none !important; }
}


/* ═══════════════════════════════════════════════════════════════
   16. BREADCRUMB
═══════════════════════════════════════════════════════════════ */
.breadcrumb {
    background: var(--light-gray);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.breadcrumb-item { display: inline-flex; align-items: center; }
.breadcrumb-item a { color: var(--dark-red); text-decoration: none; font-weight: 500; transition: var(--transition-base); }
.breadcrumb-item a:hover { color: #b71c1c; text-decoration: underline; }
.breadcrumb-item.active { color: #555; font-weight: 600; }

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #999;
    padding: 0 8px;
    font-size: 16px;
}

@media (max-width: 576px) {
    .breadcrumb { font-size: 12px; padding: 8px 10px; }
    .breadcrumb-item + .breadcrumb-item::before { padding: 0 5px; }
}


/* ═══════════════════════════════════════════════════════════════
   17. PAGINATION
═══════════════════════════════════════════════════════════════ */
.pagination-container { margin-top: 2rem; display: flex; justify-content: center; }

.pagination {
    display: flex;
    gap: .5rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 .8rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--dark-gray);
    font-size: .8rem;
    transition: var(--transition-fast);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    border-color: var(--primary-red);
}

.page-item.disabled .page-link { opacity: .5; pointer-events: none; }
.page-item .page-link:hover:not(.disabled) { background: var(--light-gray); border-color: var(--primary-red); }


/* ═══════════════════════════════════════════════════════════════
   18. FOOTER
═══════════════════════════════════════════════════════════════ */
footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 1rem 0 .8rem;
    margin-top: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

footer h5 { font-size: .7rem; font-weight: 700; margin-bottom: .4rem; color: var(--accent-gold); }

footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: .3rem; }

footer a { color: #bdbdbd; text-decoration: none; font-size: .6rem; transition: var(--transition-fast); }
footer a:hover { color: var(--primary-red); transform: translateX(3px); display: inline-block; }


/* ═══════════════════════════════════════════════════════════════
   19. TOAST NOTIFICATION
═══════════════════════════════════════════════════════════════ */
.toast-notification {
    position: fixed;
    bottom: 30px; right: 30px;
    background: var(--success-color);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform .3s ease;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0,0,0,.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-notification.show { transform: translateX(0); }

@media (max-width: 768px) {
    .toast-notification {
        bottom: 20px; right: 20px; left: 20px;
        text-align: center;
        transform: translateY(100px);
    }

    .toast-notification.show { transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════════════
   20. UTILITY CLASSES
═══════════════════════════════════════════════════════════════ */
.text-center   { text-align: center; }
.mt-1          { margin-top: .3rem; }
.mt-2          { margin-top: .5rem; }
.mb-1          { margin-bottom: .3rem; }
.mb-2          { margin-bottom: .5rem; }
.p-1           { padding: .3rem; }
.p-2           { padding: .5rem; }
.w-100         { width: 100%; }
.fade-in       { animation: fadeIn .3s ease; }
.main-content  { min-height: calc(100vh - 120px); }


/* ═══════════════════════════════════════════════════════════════
   21. ANIMATIONS & KEYFRAMES
═══════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    50% { opacity: 0; border-color: transparent; }
}

@keyframes scrollLogos {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1);   opacity: .5; }
    50%       { transform: scale(1.1); opacity: .8; }
}

@keyframes shimmer {
    0%   { background-position: -1000px 0; }
    100% { background-position:  1000px 0; }
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* Loading skeleton */
.product-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 1.5s infinite;
}


/* ═══════════════════════════════════════════════════════════════
   22. PERFORMANCE & ACCESSIBILITY
═══════════════════════════════════════════════════════════════ */

/* GPU-hint for animated elements */
.product-card,
.category-card,
.popular-category-card,
.promo-banner,
.brand-item,
.slider-btn,
.premium-header {
    will-change: transform;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}