/* ================================================================
   STRATUS PREMIUM STORE — Complete Design System
   Ultra-Luxury Dark/Light Theme with Glassmorphism
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* ----------------------------------------------------------------
   CSS Custom Properties — Design Tokens
---------------------------------------------------------------- */
:root {
    --font: 'Tajawal', sans-serif;

    /* Light Mode */
    --bg:           #f5f4f0;
    --bg2:          #eceae4;
    --surface:      rgba(255,255,255,0.72);
    --surface-s:    #ffffff;
    --text:         #0d0d0d;
    --muted:        #6b6b6b;
    --border:       rgba(0,0,0,0.09);
    --gold:         #ff4e00;
    --gold-light:   #ff7a40;
    --gold-glow:    rgba(255, 78, 0, 0.30);
    --red:          #dc2626;
    --red-light:    #ef4444;
    --red-glow:     rgba(220,38,38,0.25);
    --nav-bg:       rgba(245,244,240,0.82);
    --shadow:       0 4px 30px rgba(0,0,0,0.07);
    --shadow-xl:    0 20px 60px rgba(0,0,0,0.12);
    --card-hover:   0 24px 60px rgba(0,0,0,0.13);
    --radius:       16px;
    --radius-sm:    10px;

    /* Transitions */
    --t: 0.3s cubic-bezier(0.4,0,0.2,1);
}

.theme-dark {
    --bg:           #070709;
    --bg2:          #0f0f14;
    --surface:      rgba(255,255,255,0.04);
    --surface-s:    #111118;
    --text:         #f0f0f0;
    --muted:        #808080;
    --border:       rgba(255,255,255,0.07);
    --nav-bg:       rgba(7,7,9,0.88);
    --shadow:       0 4px 30px rgba(0,0,0,0.4);
    --shadow-xl:    0 20px 60px rgba(0,0,0,0.6);
    --card-hover:   0 24px 60px rgba(0,0,0,0.7);
}

/* ----------------------------------------------------------------
   Reset & Base
---------------------------------------------------------------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: clip;
    transition: background var(--t), color var(--t);
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; }

/* ----------------------------------------------------------------
   NAVBAR — Premium Frosted Glass
---------------------------------------------------------------- */
.premium-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background var(--t), box-shadow var(--t);
}
.premium-nav.scrolled { box-shadow: 0 2px 40px rgba(0,0,0,0.15); }

.nav-container {
    max-width: 1400px; margin: 0 auto;
    padding: 0 1.5rem; height: 72px;
    display: flex; align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

.brand-logo {
    font-size: 1.6rem; font-weight: 900; letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--text) 0%, var(--gold) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    text-decoration: none;
}
.brand-logo i { -webkit-text-fill-color: var(--gold); color: var(--gold); }

.nav-links {
    display: flex; gap: 0.15rem;
    align-items: center;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: 0;
}
.nav-link {
    font-weight: 600; font-size: 0.88rem; padding: 0.4rem 0.65rem;
    border-radius: 8px; position: relative;
    color: var(--muted); transition: color var(--t), background var(--t);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 2px; background: var(--gold); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; margin-inline-start: auto; }

.nav-icon-btn {
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    color: var(--text); font-size: 1rem;
    transition: background var(--t), border-color var(--t), transform var(--t);
}
.nav-icon-btn:hover { background: var(--surface-s); border-color: var(--gold); transform: translateY(-1px); }

/* Map old class names to nav-icon-btn styles */
.search-btn, .theme-toggle {
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    color: var(--text); font-size: 1rem;
    transition: background var(--t), border-color var(--t), transform var(--t);
}
.search-btn:hover, .theme-toggle:hover { background: var(--surface-s); border-color: var(--gold); transform: translateY(-1px); }

.cart-btn {
    position: relative; width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    color: var(--text); font-size: 1rem;
    transition: background var(--t), border-color var(--t), transform var(--t);
}
.cart-btn:hover { background: var(--surface-s); border-color: var(--gold); transform: translateY(-1px); }
.cart-counter {
    position: absolute; top: -6px; right: -6px;
    background: var(--gold); color: #000;
    font-size: 0.7rem; font-weight: 800;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.mobile-menu-btn {
    display: none; width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface);
    align-items: center; justify-content: center; color: var(--text); font-size: 1rem;
}

/* ----------------------------------------------------------------
   MOBILE MENU
---------------------------------------------------------------- */
.mobile-menu-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background: var(--bg2);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77,0,0.175,1);
    display: flex; flex-direction: column; padding: 6rem 2.5rem 3rem;
    gap: 0.5rem;
    overflow-y: auto;
}
.mobile-menu-overlay.active { transform: translateX(0); }
.close-menu {
    position: absolute; top: 1.5rem; left: 1.5rem;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface);
    font-size: 1.3rem; color: var(--text);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10;
    transition: background var(--t), border-color var(--t), transform var(--t);
}
.close-menu:hover { background: var(--surface-s); border-color: var(--gold); transform: scale(1.1); }
[dir="ltr"] .close-menu { left: auto; right: 1.5rem; }
.mobile-links { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-links a {
    font-size: 1.4rem; font-weight: 700; padding: 1rem 1.5rem;
    border-radius: var(--radius-sm); border: 1px solid transparent;
    transition: background var(--t), border-color var(--t);
}
.mobile-links a:hover { background: var(--surface); border-color: var(--border); }

/* ----------------------------------------------------------------
   SMART SEARCH OVERLAY
---------------------------------------------------------------- */
.search-overlay {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    display: flex; flex-direction: column; align-items: center;
    padding-top: 15vh;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.search-overlay.active { opacity: 1; pointer-events: all; }

.close-search {
    position: absolute; top: 2rem; left: 2rem;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem;
    color: white; display: flex; align-items: center; justify-content: center;
    transition: background var(--t);
}
.close-search:hover { background: rgba(255,255,255,0.2); }

.search-input-wrapper {
    width: 100%; max-width: 680px; padding: 0 2rem;
    margin-bottom: 2rem;
}
.search-input-wrapper input {
    width: 100%; padding: 1.25rem 2rem;
    font-size: 1.3rem; font-family: var(--font);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px; color: white; outline: none;
    transition: border-color var(--t), background var(--t);
}
.search-input-wrapper input::placeholder { color: rgba(255,255,255,0.4); }
.search-input-wrapper input:focus { border-color: var(--gold); background: rgba(255,255,255,0.15); }

.search-results {
    width: 100%; max-width: 680px; padding: 0 2rem;
    display: flex; flex-direction: column; gap: 0.75rem; max-height: 55vh; overflow-y: auto;
}
.search-item {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius); padding: 1rem 1.5rem;
    display: flex; align-items: center; gap: 1.2rem; color: white;
    transition: background var(--t), transform var(--t);
}
.search-item:hover { background: rgba(255,255,255,0.15); transform: translateX(-4px); }
.search-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.search-item h4 { font-weight: 700; margin-bottom: 4px; font-size: 1rem; color: #fff; }
.search-item p { color: var(--gold); font-weight: 800; }

/* ----------------------------------------------------------------
   MAIN LAYOUT
---------------------------------------------------------------- */
.main-content { min-height: 100vh; padding-top: 72px; } /* 72px nav (topbar is relative) */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }

/* ----------------------------------------------------------------
   BUTTONS
---------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2rem; border-radius: 50px;
    font-family: var(--font); font-weight: 700; font-size: 1rem;
    border: none; cursor: pointer; text-decoration: none;
    transition: transform var(--t), box-shadow var(--t), background var(--t);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--text); color: var(--bg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

.btn-secondary {
    background: transparent; color: var(--text);
    border: 1.5px solid var(--border); box-shadow: none;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #fff; font-weight: 700;
    box-shadow: 0 8px 24px var(--gold-glow);
}
.btn-gold:hover { box-shadow: 0 12px 36px var(--gold-glow); filter: brightness(1.06); }

.btn-cart {
    padding: 0.6rem 1.4rem; border-radius: 50px;
    background: var(--text); color: var(--bg); font-size: 0.9rem;
    border: none;
}
.btn-cart:hover { background: var(--gold); color: #000; transform: translateY(-2px); }

/* ----------------------------------------------------------------
   SECTION TITLE
---------------------------------------------------------------- */
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.5rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 1rem; }
.separator {
    width: 60px; height: 3px; margin: 0 auto;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px;
}

/* ----------------------------------------------------------------
   PRODUCT GRID & CARDS
---------------------------------------------------------------- */
.products-section { padding: 6rem 2.5rem; max-width: 1280px; margin: 0 auto; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--surface-s);
    border: 1px solid var(--border);
    border-radius: 20px; overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover);
    border-color: rgba(255,78,0,0.3);
}
.product-card.hidden { display: none; }

/* Products in the main grid are always visible (no scroll-triggered fade needed) */
#products-grid .product-card {
    opacity: 1 !important;
    transform: none !important;
}

.card-img-wrapper {
    position: relative; overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--bg2);
}
.card-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .card-img { transform: scale(1.07); }

.badge-category {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(0,0,0,0.7); color: white;
    backdrop-filter: blur(8px); padding: 4px 12px;
    border-radius: 20px; font-size: 0.8rem; font-weight: 700;
}

.scarcity-badge {
    position: relative; display: inline-block; vertical-align: middle; margin-right: 10px; margin-bottom: 5px;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    color: #fff; padding: 4px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 800;
}

.wishlist-overlay {
    position: absolute; top: 1rem; left: 1rem;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.9rem; cursor: pointer;
    transition: background var(--t), transform var(--t);
}
.wishlist-overlay:hover { background: rgba(220,53,69,0.8); transform: scale(1.1); }
.wishlist-overlay .fa-heart.active { color: #e74c3c; }

.card-body { padding: 1.5rem; }
.rating { display: flex; align-items: center; gap: 6px; color: var(--gold); font-size: 0.85rem; font-weight: 700; margin-bottom: 0.7rem; }
.reviews { color: var(--muted); font-weight: 400; }
.card-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.4; }
.card-desc {
    font-size: 0.9rem; color: var(--muted); margin-bottom: 1.2rem;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 1.25rem; font-weight: 900; color: var(--text); }
.price small { font-size: 0.8rem; font-weight: 400; opacity: 0.7; margin-inline-start: 2px; }

/* ----------------------------------------------------------------
   HERO SECTION
---------------------------------------------------------------- */
.hero-section {
    position: relative; min-height: 90vh;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero-video-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0; pointer-events: none;
}
.hero-video-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(135deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.hero-content {
    position: relative; z-index: 2;
    padding: 4rem 10vw; max-width: 700px;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900; line-height: 1.1;
    color: white; letter-spacing: -2px;
    margin-bottom: 1.5rem;
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--gold), var(--red-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.8); max-width: 520px; margin-bottom: 2.5rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--red));
    color: #fff; padding: 6px 20px; border-radius: 30px;
    font-weight: 900; font-size: 0.9rem; margin-bottom: 1.5rem;
}

/* ----------------------------------------------------------------
   DEAL COUNTDOWN BANNER
---------------------------------------------------------------- */
.deal-banner {
    background: linear-gradient(135deg, #1a0500, #0d0000); color: white;
    padding: 1.2rem 2rem; border-top: 1px solid rgba(255,107,0,0.4);
}
.deal-banner-inner {
    max-width: 960px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap;
}
.countdown-block { text-align: center; }
.countdown-block span { display: block; font-size: 2.2rem; font-weight: 900; color: var(--gold); line-height: 1; }
.countdown-block small { font-size: 0.7rem; color: rgba(255,255,255,0.5); letter-spacing: 1px; text-transform: uppercase; }
.cd-sep { font-size: 1.8rem; color: var(--gold); font-weight: 900; margin-top: -6px; }

/* ----------------------------------------------------------------
   MARQUEE
---------------------------------------------------------------- */
.marquee-wrapper { overflow: hidden; background: var(--bg2); padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee { display: flex; gap: 0; animation: marquee 25s linear infinite; white-space: nowrap; }
.marquee span { font-size: 0.9rem; font-weight: 700; color: var(--muted); letter-spacing: 1px; padding-left: 3rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* RTL marquee - scroll from left to right */
[dir="rtl"] .marquee { animation-name: marquee-rtl; }
@keyframes marquee-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ----------------------------------------------------------------
   FILTER BAR
---------------------------------------------------------------- */
.filter-bar {
    display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
    padding: 1.25rem 2rem; margin-bottom: 3rem;
    background: var(--surface-s); border: 1px solid var(--border);
    border-radius: 16px;
}
.filter-group { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.filter-group label { font-weight: 700; font-size: 0.95rem; color: var(--muted); white-space: nowrap; }
.filter-chips { display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 5px; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
    padding: 6px 18px; border-radius: 30px; font-size: 0.9rem; font-weight: 700;
    border: 1.5px solid var(--border); background: transparent;
    color: var(--muted); cursor: pointer; transition: all var(--t); font-family: var(--font);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter-select {
    padding: 8px 16px; border-radius: 10px;
    border: 1.5px solid var(--border); background: var(--bg);
    color: var(--text); font-family: var(--font); font-size: 0.9rem; outline: none;
}

/* ----------------------------------------------------------------
   FEATURES SECTION
---------------------------------------------------------------- */
.features-section { padding: 5rem 2.5rem; background: var(--bg2); }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 2rem; max-width: 1000px; margin: 0 auto;
}
.feature-box {
    text-align: center; padding: 3rem 2rem;
    background: var(--surface-s); border: 1px solid var(--border);
    border-radius: 20px; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.feature-box:hover { transform: translateY(-6px); box-shadow: var(--card-hover); border-color: rgba(255,78,0,0.3); }
.feature-icon {
    width: 64px; height: 64px; border-radius: 18px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #000; margin: 0 auto 1.5rem;
}
.feature-box h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.75rem; }
.feature-box p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* ----------------------------------------------------------------
   PRODUCT PAGE
---------------------------------------------------------------- */
.product-page-wrapper { max-width: 1280px; margin: 0 auto; padding: 3rem 2.5rem; }
.product-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}

/* Gallery */
.product-gallery { position: sticky; top: 100px; }
.main-image-container {
    border-radius: 24px; overflow: hidden; position: relative;
    background: var(--bg2); aspect-ratio: 1/1; cursor: zoom-in;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
}
.main-image { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s, filter 0.3s; display: block; }
.zoom-lens {
    position: absolute; width: 120px; height: 120px;
    border: 2px solid var(--gold); border-radius: 50%;
    pointer-events: none; display: none; z-index: 10;
    box-shadow: 0 0 0 3px rgba(255,78,0,0.2);
}

.gallery-thumbnails { display: flex; gap: 1rem; margin-top: 1.25rem; }
.thumb {
    width: 80px; height: 80px; border-radius: 12px; object-fit: cover;
    border: 2px solid var(--border); cursor: pointer;
    transition: border-color var(--t), transform var(--t);
    flex-shrink: 0;
}
.thumb:hover { border-color: var(--gold); transform: translateY(-2px); }
.active-thumb { border-color: var(--gold) !important; box-shadow: 0 0 0 3px var(--gold-glow); }

/* Product Details */
.breadcrumb { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: 0.7rem; }

.product-title { font-size: 2.2rem; font-weight: 900; letter-spacing: -1px; line-height: 1.2; margin-bottom: 1.25rem; }

.rating-box { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.stars { display: flex; gap: 3px; }
.stars i { color: var(--gold); font-size: 1rem; }
.rating-box span { color: var(--muted); font-size: 0.9rem; }

.price-box { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.price { font-size: 1.4rem; font-weight: 900; color: var(--text); }
.price-original { text-decoration: line-through; color: var(--muted); font-size: 1.2rem; }
.price-sale { color: #e74c3c; }
.scarcity-badge.pulse {
    position: relative; right: auto; bottom: auto; display: inline-block; vertical-align: middle; margin-right: 15px; margin-bottom: 5px;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    color: #fff; padding: 5px 16px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 800;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--red-glow); } 50% { box-shadow: 0 0 0 8px transparent; } }

.product-description { color: var(--muted); line-height: 1.8; margin-bottom: 2rem; font-size: 1rem; }
.product-description h2, .product-description h3 { color: var(--text); margin-top: 1.5rem; margin-bottom: 0.75rem; }
.product-description p { margin-bottom: 1rem; }
.product-description ul, .product-description ol { margin-bottom: 1.5rem; padding-inline-start: 1.5rem; }
.product-description li { margin-bottom: 0.5rem; }

.product-actions { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.qty-selector {
    display: flex; align-items: center; gap: 0;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: 50px; overflow: hidden;
}
.qty-selector button {
    width: 42px; height: 42px; font-size: 0.9rem;
    background: none; border: none; color: var(--text);
    transition: background var(--t);
}
.qty-selector button:hover { background: var(--border); }
.qty-selector input {
    width: 50px; text-align: center; background: none; border: none;
    font-size: 1rem; font-weight: 800; color: var(--text); font-family: var(--font);
}

.add-to-cart-large {
    flex: 1; padding: 1rem 2rem; border-radius: 50px; font-size: 1.05rem; font-weight: 800;
    background: var(--text); color: var(--bg); border: none;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: transform var(--t), box-shadow var(--t), background var(--t);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.add-to-cart-large:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); background: var(--gold); color: #fff; }

.btn-buy-now {
    flex: 0 0 auto; padding: 1rem 2rem; border-radius: 50px; font-size: 1.05rem; font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--red));
    color: #fff; border: none;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: transform var(--t), box-shadow var(--t);
    box-shadow: 0 8px 24px var(--gold-glow);
    white-space: nowrap;
}
.btn-buy-now:hover { transform: translateY(-3px); box-shadow: 0 12px 36px var(--red-glow); }

.wishlist-btn-large {
    width: 48px; height: 48px; border-radius: 50%;
    border: 1.5px solid var(--border); background: var(--surface-s);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 1.1rem;
    transition: all var(--t); flex-shrink: 0;
}
.wishlist-btn-large:hover, .wishlist-btn-large.active { background: rgba(231,76,60,0.1); border-color: #e74c3c; color: #e74c3c; }

/* Trust Badges */
.trust-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; padding: 1.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.trust-badges span { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 700; color: var(--muted); }
.trust-badges i { color: var(--gold); font-size: 1rem; }

/* Social Share */
.social-share { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
.social-share > span { font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.share-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; text-decoration: none; color: white;
    border: none; cursor: pointer; transition: transform var(--t), box-shadow var(--t);
}
.share-btn:hover { transform: scale(1.15); }
.share-btn.whatsapp { background: #25D366; }
.share-btn.twitter { background: #1a1a1a; }
.share-btn.copy { background: var(--text); color: var(--bg); }

/* Accordion */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.accordion-header {
    width: 100%; padding: 1.1rem 1.5rem;
    background: var(--surface-s); border: none;
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 700; font-size: 1rem; color: var(--text);
    cursor: pointer; transition: background var(--t);
}
.accordion-header:hover { background: var(--bg2); }
.accordion-content { display: none; padding: 1.25rem 1.5rem; background: var(--bg); color: var(--muted); line-height: 1.8; }
.accordion-content.active { display: block; }
.accordion-content ul { padding-right: 1.5rem; }
.accordion-content li { margin-bottom: 0.5rem; }

/* ----------------------------------------------------------------
   REVIEWS SECTION
---------------------------------------------------------------- */
.reviews-section { padding: 5rem 2.5rem; max-width: 1280px; margin: 0 auto; }
.reviews-summary { display: flex; gap: 4rem; align-items: center; margin-bottom: 3rem; flex-wrap: wrap; padding: 2.5rem; background: var(--surface-s); border: 1px solid var(--border); border-radius: 20px; }
.reviews-avg { text-align: center; }
.reviews-big-num { display: block; font-size: 5rem; font-weight: 900; line-height: 1; color: var(--text); }

.reviews-list { display: grid; gap: 1.5rem; }
.review-card { background: var(--surface-s); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; transition: transform var(--t), box-shadow var(--t); }
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.reviewer-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--red));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1rem; flex-shrink: 0;
}
.review-comment { color: var(--muted); line-height: 1.8; }

/* ----------------------------------------------------------------
   BUY NOW MODAL
---------------------------------------------------------------- */
.buy-now-modal {
    position: fixed; inset: 0; z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.buy-now-modal.active { opacity: 1; pointer-events: all; }
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
}
.modal-box {
    position: relative; z-index: 1;
    background: var(--surface-s); border: 1px solid var(--border);
    border-radius: 24px; padding: 3rem; max-width: 480px; width: 90%;
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.modal-close {
    position: absolute; top: 1.5rem; left: 1.5rem;
    width: 36px; height: 36px; border-radius: 50%; background: var(--bg2);
    border: 1px solid var(--border); font-size: 1rem; color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: color var(--t);
}
.modal-close:hover { color: var(--text); }

/* ----------------------------------------------------------------
   FORM CONTROLS
---------------------------------------------------------------- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: 0.6rem; font-size: 0.95rem; }
.form-control {
    width: 100%; padding: 1rem 1.25rem;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text);
    font-family: var(--font); font-size: 1rem; outline: none;
    transition: border-color var(--t), box-shadow var(--t);
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow); }

/* ----------------------------------------------------------------
   FOOTER — Premium Dark
---------------------------------------------------------------- */
.premium-footer { background: #0a0a0c; color: white; }

.newsletter-strip {
    padding: 2rem 2.5rem;
    background: #0a0005;
    border-top: 1px solid rgba(255,78,0,0.18);
    border-bottom: 1px solid rgba(255,78,0,0.1);
    position: relative;
    overflow: hidden;
}
.newsletter-strip::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255,78,0,0.08) 0%, transparent 70%);
}
.newsletter-strip > div { position: relative; z-index: 1; }
.newsletter-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter-inner i { font-size: 1.6rem; color: #ff4e00; margin-bottom: 0.5rem; display: block; }
.newsletter-inner h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 0.35rem; color: #fff; }
.newsletter-inner p { color: rgba(255,255,255,0.45); margin-bottom: 1rem; font-size: 0.88rem; line-height: 1.5; }
.newsletter-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter-form input {
    flex: 1; padding: 0.95rem 1.4rem; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 50px;
    color: white; font-family: var(--font); font-size: 0.95rem; outline: none;
    transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: #ff4e00; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form button {
    padding: 0.95rem 1.8rem; background: linear-gradient(135deg, #ff4e00, #cc1100);
    color: #fff; border: none; border-radius: 50px;
    font-family: var(--font); font-weight: 700; font-size: 0.95rem;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap; box-shadow: 0 4px 15px rgba(255,78,0,0.3);
}
.newsletter-form button:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(255,78,0,0.45); }

.footer-container { max-width: 1280px; margin: 0 auto; padding: 5rem 2.5rem 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 3rem; margin-bottom: 4rem; }
.footer-brand { font-size: 1.6rem; font-weight: 900; margin-bottom: 1rem; color: white; display: flex; align-items: center; gap: 10px; }
.footer-brand i { color: var(--gold); }
.brand-desc { color: rgba(255,255,255,0.4); line-height: 1.8; font-size: 0.95rem; margin-bottom: 1.5rem; }
.footer-col h4 { font-size: 0.85rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul a { color: rgba(255,255,255,0.45); font-size: 0.95rem; transition: color var(--t); }
.footer-col ul a:hover { color: white; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); font-size: 1rem;
    transition: all var(--t);
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 2rem; text-align: center;
    color: rgba(255,255,255,0.25); font-size: 0.9rem;
}

/* ----------------------------------------------------------------
   WHATSAPP FLOAT
---------------------------------------------------------------- */
.whatsapp-float {
    position: fixed; bottom: 2rem; left: 2rem; z-index: 999;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; text-decoration: none;
    box-shadow: 0 8px 30px rgba(37,211,102,0.5);
    transition: transform var(--t), box-shadow var(--t);
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 12px 40px rgba(37,211,102,0.65); }
.whatsapp-float::before {
    content: ''; position: absolute; width: 100%; height: 100%;
    background: #25D366; border-radius: 50%; z-index: -1;
    animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.2); opacity: 0; } }

/* ----------------------------------------------------------------
   TOAST NOTIFICATION
---------------------------------------------------------------- */
.toast-notification {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 10000;
    background: #0d0d0d; color: white;
    padding: 1rem 1.75rem; border-radius: 50px;
    font-size: 0.95rem; font-weight: 700;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    transform: translateY(30px); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), opacity 0.4s;
    pointer-events: none;
}
.toast-notification.show { transform: translateY(0); opacity: 1; }

/* ----------------------------------------------------------------
   SCROLL ANIMATIONS
---------------------------------------------------------------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-up { opacity: 0; transform: translateY(36px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.scroll-delay-1 { transition-delay: 0.12s !important; }
.scroll-delay-2 { transition-delay: 0.24s !important; }
.scroll-delay-3 { transition-delay: 0.36s !important; }

/* ----------------------------------------------------------------
   NO RESULTS
---------------------------------------------------------------- */
#no-results { text-align: center; padding: 4rem; color: var(--muted); }
#no-results i { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: 0.3; }

/* ----------------------------------------------------------------
   NEWSLETTER SUBSCRIBE MSG
---------------------------------------------------------------- */
#newsletter-msg { font-size: 0.9rem; margin-top: 1rem; min-height: 1.2em; }

/* ----------------------------------------------------------------
   PRINT
---------------------------------------------------------------- */
@media print {
    .premium-nav, .premium-footer, .whatsapp-float, .buy-now-modal,
    .toast-notification, .newsletter-strip, .btn { display: none !important; }
    body { background: white !important; color: #000 !important; }
}

/* ----------------------------------------------------------------
   PROFILE PAGE
---------------------------------------------------------------- */
.profile-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2.5rem 5rem;
    min-height: 100vh;
}

/* Profile Header Card */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 3rem;
    background: var(--surface-s);
    border: 1px solid var(--border);
    border-radius: 24px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.profile-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.profile-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 24px var(--gold-glow);
}

.profile-info h2 {
    font-size: 1.6rem; font-weight: 900;
    margin-bottom: 0.35rem; letter-spacing: -0.5px;
}
.profile-info p { color: var(--muted); font-size: 1rem; }

/* Layout: sidebar + panes */
.profile-content {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 2rem;
    align-items: start;
}

/* Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--surface-s);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1rem;
    position: sticky;
    top: 95px;
    order: 2;
}

.tab-btn {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    border: none; background: transparent;
    font-family: var(--font); font-weight: 700; font-size: 0.95rem;
    color: var(--muted); cursor: pointer;
    transition: background var(--t), color var(--t);
    text-align: right;
    width: 100%;
}
.tab-btn i { font-size: 1.05rem; width: 20px; text-align: center; }
.tab-btn:hover { background: var(--bg2); color: var(--text); }
.tab-btn.active { background: var(--text); color: var(--bg); }
.tab-btn.text-danger { color: #dc3545; }
.tab-btn.text-danger:hover { background: rgba(220,53,69,0.1); color: #dc3545; }

/* Content panes */
.profile-panes {
    background: var(--surface-s);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    min-height: 400px;
    order: 1;
}

.pane h3 {
    font-size: 1.4rem; font-weight: 900;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

/* Order Cards */
.order-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
    transition: box-shadow var(--t), border-color var(--t);
}
.order-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(255,107,0,0.25);
}

.order-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.order-header strong { font-size: 1rem; font-weight: 800; }
.order-date {
    display: inline-block; margin-right: 0.75rem;
    font-size: 0.88rem; color: var(--muted); font-weight: 500;
}
.order-total {
    font-size: 1.2rem; font-weight: 900;
    color: var(--gold);
    background: rgba(255,107,0,0.08);
    padding: 4px 14px; border-radius: 30px;
}

/* Order Progress */
.order-progress-container { margin-top: 0.5rem; }
.progress-track {
    height: 6px; background: var(--border);
    border-radius: 6px; overflow: hidden; margin-bottom: 0.75rem;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.progress-steps {
    display: flex; justify-content: space-between;
    gap: 0.5rem;
}
.step {
    font-size: 0.78rem; font-weight: 700;
    color: var(--muted); text-align: center; flex: 1;
    transition: color var(--t);
}
.step.active { color: var(--gold); }

/* Settings Form */
.settings-form {
    max-width: 480px;
}

/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */

/* Mid-range: compress nav */
@media (max-width: 1200px) {
    .nav-link { font-size: 0.82rem; padding: 0.35rem 0.45rem; }
    .nav-links { gap: 0; }
    .nav-container { padding: 0 1rem; }
}

/* Below 1024px: switch to hamburger menu */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
}

@media (max-width: 1024px) {
    .product-grid { grid-template-columns: 1fr; gap: 3rem; }
    .product-gallery { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .profile-content { grid-template-columns: 1fr 180px; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .hero-content { padding: 4rem 2rem; }
    .hero-title { font-size: 2.5rem; letter-spacing: -1px; }
    .products-section { padding: 4rem 1.5rem; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .filter-bar { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .newsletter-form { flex-direction: column; }
    .reviews-summary { gap: 2rem; }
    .product-actions { flex-wrap: wrap; }
    .add-to-cart-large, .btn-buy-now { flex: 1 1 calc(50% - 0.5rem); }
    /* Mobile: reduce main-content top padding */
    .main-content { padding-top: 72px; }
    .hero-scroll-indicator { display: none; }

    /* Profile page — stack sidebar on top */
    .profile-wrapper { padding: 1.5rem 1.25rem 4rem; }
    .profile-header { padding: 1.75rem 1.5rem; gap: 1.25rem; }
    .profile-avatar { width: 68px; height: 68px; font-size: 1.7rem; }
    .profile-info h2 { font-size: 1.25rem; }
    .profile-content { grid-template-columns: 1fr; }
    .profile-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        border-radius: 14px;
        padding: 0.75rem;
        gap: 0.4rem;
        order: 1;
    }
    .profile-panes { order: 2; }
    .tab-btn { flex: 1 1 auto; justify-content: center; font-size: 0.88rem; padding: 0.7rem 0.9rem; }
    .profile-panes { padding: 1.5rem 1.25rem; }
    .order-card { padding: 1.25rem 1.25rem; }
    .order-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-container { padding: 0 1.25rem; }
    .hero-title { font-size: 2rem; }
    .section-title h2 { font-size: 1.8rem; }
    .add-to-cart-large, .btn-buy-now { flex: 1 1 100%; }
    .tab-btn { flex: 1 1 100%; }
}

@media (max-width: 380px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .card-title { font-size: 0.8rem; }
    .card-price { font-size: 0.9rem; }
}

/* SLIDER FIXES */
.horizontal-products-slider { padding: 1rem 2rem !important; margin: 0 -2rem !important; }
.horizontal-products-slider .product-card { box-shadow: none !important; height: auto; min-height: 100%; }
.horizontal-products-slider .card-body { display: flex; flex-direction: column; flex: 1; }
.horizontal-products-slider .card-footer { margin-top: auto; }
.horizontal-products-slider .card-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: unset; }
.horizontal-products-slider .card-title { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3rem; }

/* SLIDER NAVIGATION BUTTONS */
.slider-wrapper { position: relative; }
.slider-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: var(--gold); color: #000; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.3s ease, background 0.3s ease; }
.slider-wrapper:hover .slider-nav-btn { opacity: 1; }
.slider-nav-btn:hover { background: #fff; }
.slider-nav-btn.slider-prev { right: 0.5rem; }
.slider-nav-btn.slider-next { left: 0.5rem; }

@media (max-width: 768px) { .slider-nav-btn { display: none; } /* Hide on mobile to favor touch swipe */ }

/* ----------------------------------------------------------------
   TRUST STATS STRIP
---------------------------------------------------------------- */
.trust-stats-strip {
    background: linear-gradient(135deg, var(--surface-s), var(--bg2));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 2rem;
    margin-bottom: 0;
}
.trust-stats-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    gap: 0; flex-wrap: wrap;
}
.trust-stat {
    flex: 1; min-width: 140px;
    text-align: center; padding: 1rem 1.5rem;
}
.trust-stat .trust-num {
    font-size: 2.8rem; font-weight: 900;
    color: var(--gold); line-height: 1;
    font-variant-numeric: tabular-nums;
}
.trust-stat .trust-plus { font-size: 2rem; font-weight: 900; color: var(--gold); }
.trust-stat p {
    font-size: 0.9rem; color: var(--muted);
    margin-top: 0.4rem; font-weight: 600;
}
.trust-divider {
    width: 1px; height: 60px;
    background: var(--border);
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .trust-stats-inner { gap: 0; }
    .trust-divider { display: none; }
    .trust-stat { min-width: 50%; padding: 0.75rem; }
    .trust-stat .trust-num { font-size: 2rem; }
}

/* ----------------------------------------------------------------
   SECTION HEADER FLEX (with view-all link)
---------------------------------------------------------------- */
.section-header-flex {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem; gap: 1rem;
}
.section-title-inline {
    font-size: 1.4rem; font-weight: 800;
    color: var(--text); margin: 0;
}
.section-view-all {
    font-size: 0.9rem; font-weight: 700;
    color: var(--gold); white-space: nowrap;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255,78,0,0.35);
    border-radius: 50px;
    transition: background var(--t), color var(--t);
    display: flex; align-items: center; gap: 0.4rem;
}
.section-view-all:hover {
    background: var(--gold); color: #000;
}

/* ----------------------------------------------------------------
   NEWSLETTER SECTION
---------------------------------------------------------------- */
.newsletter-section {
    background: linear-gradient(135deg, #0d1117 0%, #1a2235 100%);
    padding: 2.5rem 2rem;
    margin: 2rem 0 0;
    position: relative;
    overflow: hidden;
}
.newsletter-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,78,0,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.newsletter-inner {
    max-width: 680px; margin: 0 auto;
    text-align: center; position: relative; z-index: 1;
}
.newsletter-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,78,0,0.15); color: var(--gold);
    border: 1px solid rgba(255,78,0,0.3);
    padding: 0.35rem 1rem; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700;
    margin-bottom: 1.25rem;
}
.newsletter-inner h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900; color: #fff;
    margin-bottom: 0.75rem;
}
.newsletter-inner p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem; margin-bottom: 2rem;
    line-height: 1.7;
}
.newsletter-form {
    display: flex; gap: 0.75rem; max-width: 520px;
    margin: 0 auto 1rem;
}
.newsletter-form input {
    flex: 1; padding: 0.9rem 1.25rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50px; color: #fff;
    font-family: var(--font); font-size: 0.95rem;
    outline: none; transition: border-color var(--t);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form .btn-gold {
    white-space: nowrap; padding: 0.9rem 1.75rem;
    border-radius: 50px; font-weight: 700;
    flex-shrink: 0; transition: background var(--t), transform var(--t);
}
.newsletter-form .btn-gold:hover { transform: translateY(-2px); }
.newsletter-privacy {
    font-size: 0.8rem; color: rgba(255,255,255,0.4);
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
@media (max-width: 560px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-form input, .newsletter-form .btn-gold { border-radius: 14px; width: 100%; }
}

/* ----------------------------------------------------------------
   LATEST PRODUCTS GRID
---------------------------------------------------------------- */
.products-latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .products-latest-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (max-width: 400px) {
    .products-latest-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* ----------------------------------------------------------------
   COUNTER ANIMATION
---------------------------------------------------------------- */
@keyframes countUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }

/* ================================================================
   GLOBAL MOBILE — Prevent horizontal overflow on all pages
================================================================ */
body {
    overflow-x: clip;
    max-width: 100%;
}
html {
    max-width: 100%;
}
*, *::before, *::after {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    /* Reduce section horizontal padding */
    .products-section,
    .collections-section,
    .deals-section,
    .flash-section,
    .reviews-section,
    .best-sellers-section,
    .new-arrivals-section,
    .brands-section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Main content padding */
    .main-content { padding-left: 0; padding-right: 0; }

    /* Hero banner */
    .hero-content { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

    /* Products grid min card width on mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    /* Product cards text scaling */
    .product-card .card-title { font-size: 0.82rem; }
    .product-card .card-price { font-size: 0.9rem; }
    .product-card .card-body { padding: 0.65rem 0.75rem; }

    /* Fix add-to-cart button overflow on small cards */
    .card-footer { flex-wrap: wrap; gap: 0.4rem; }
    .card-footer .btn-cart {
        padding: 0.45rem 0.8rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    .card-footer .price { font-size: 1rem; }
    .card-footer .price small { font-size: 0.7rem; }

    /* Cart wrapper */
    .cart-page-wrapper { padding: 0 1rem !important; }
    .cart-items { padding: 1.25rem !important; }
    .cart-summary { padding: 1.25rem !important; }

    /* Checkout wrapper */
    .checkout-wrapper { padding: 0 1rem !important; }

    /* Track page */
    .track-container { padding: 0 1rem !important; }
    .track-form-grid { grid-template-columns: 1fr !important; }
    .track-form-grid button { width: 100%; height: auto !important; }

    /* Generic page wrappers */
    .page-wrapper,
    .products-page-wrapper,
    .product-page-wrapper { padding-left: 1rem !important; padding-right: 1rem !important; }

    /* Wishlist */
    .wishlist-container { padding: 0 1rem !important; }

    /* Contact / About / Terms */
    .contact-wrapper,
    .about-wrapper,
    .terms-wrapper { padding: 0 1rem !important; }

    /* Footer */
    .footer-container { padding-left: 1rem !important; padding-right: 1rem !important; }

    /* Section titles */
    .section-title h2 { font-size: 1.5rem; }

    /* Filter bar scrollable on mobile */
    .single-row-filter {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.85rem 1rem;
        gap: 0.75rem;
        border-radius: 14px;
        margin: 1rem 0 2rem;
    }

    /* Checkout two-column layout → single column */
    .checkout-cols {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Form two-column rows → single column */
    .form-2col {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Payment options → stack */
    .payment-2col {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem;
    }
    .card-add-btn { font-size: 0.78rem; padding: 0.55rem 0.6rem; }
    .badge-sale, .badge-new, .badge-out { font-size: 0.65rem; padding: 3px 7px; }
}
