/* =======================================
   VAVUNIYA STORE — STYLES.CSS
   Aesthetic: Clean & Premium Retail
   ======================================= */

/* --- Google Fonts: Syne + DM Sans --- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
    --primary:       #0D0D0E;
    --primary-light: #18181B;
    --accent:        #E5C158;
    --accent-hover:  #D4AF37;
    --accent-light:  rgba(229, 193, 88, 0.08);
    --gold:          #F59E0B;
    --success:       #10B981;
    --danger:        #DC2626;
    --bg:            #060606;
    --bg-gradient:   linear-gradient(135deg, #0A0A0A 0%, #161002 40%, #2B1F00 70%, #3D2C00 100%);
    --surface:       #151518;
    --text-main:     #F3F4F6;
    --text-muted:    #9CA3AF;
    --text-title:    #FFFFFF;
    --border:        rgba(255, 255, 255, 0.08);
    --shadow-sm:     0 1px 3px rgba(0,0,0,.4);
    --shadow-md:     0 4px 12px rgba(0,0,0,.5);
    --shadow-lg:     0 10px 30px rgba(0,0,0,.6);
    --radius:        12px;
    --radius-lg:     20px;
    --font-display:  'Syne', sans-serif;
    --font-body:     'DM Sans', sans-serif;
    --transition:    0.22s cubic-bezier(.4,0,.2,1);
}

/* Emerald Eclipse (Dark Green Luxury) */
[data-theme="emerald"] {
    --bg:            #050C0A;
    --bg-gradient:   radial-gradient(circle at 50% 0%, #03140F 0%, #050C0A 100%);
    --surface:       #0C1613;
    --primary:       #030706;
    --primary-light: #0D221D;
    --accent:        #10B981;
    --accent-hover:  #059669;
    --accent-light:  rgba(16, 185, 129, 0.08);
    --text-main:     #E6F4EA;
    --text-muted:    #82C2A6;
    --text-title:    #FFFFFF;
    --border:        rgba(16, 185, 129, 0.12);
    --shadow-sm:     0 1px 3px rgba(0,0,0,.5);
    --shadow-md:     0 4px 12px rgba(0,0,0,.6);
    --shadow-lg:     0 10px 30px rgba(0,0,0,.7);
}

/* Nordic Light (Clean Slate Light) */
[data-theme="nordic"] {
    --bg:            #F8FAFC;
    --bg-gradient:   radial-gradient(circle at 50% 0%, #F1F5F9 0%, #E2E8F0 100%);
    --surface:       #FFFFFF;
    --primary:       #0F172A;
    --primary-light: #F1F5F9;
    --accent:        #2563EB;
    --accent-hover:  #1D4ED8;
    --accent-light:  rgba(37, 99, 235, 0.08);
    --text-main:     #334155;
    --text-muted:    #64748B;
    --text-title:    var(--primary);
    --border:        #E2E8F0;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.05);
    --shadow-md:     0 4px 12px rgba(0,0,0,.08);
    --shadow-lg:     0 10px 30px rgba(0,0,0,.12);
}

/* Rose & Pearl (Warm Editorial Light) */
[data-theme="rose"] {
    --bg:            #FAF6F0;
    --bg-gradient:   radial-gradient(circle at 50% 0%, #FAF1E6 0%, #FAF6F0 100%);
    --surface:       #FDFBFA;
    --primary:       #3A120A;
    --primary-light: #F5EAE1;
    --accent:        #C2410C;
    --accent-hover:  #9A3412;
    --accent-light:  rgba(194, 65, 12, 0.08);
    --text-main:     #4A2E2B;
    --text-muted:    #8C6E6A;
    --text-title:    #2C0D08;
    --border:        #EEDCC8;
    --shadow-sm:     0 1px 3px rgba(139,92,26,.05);
    --shadow-md:     0 4px 12px rgba(139,92,26,.08);
    --shadow-lg:     0 10px 30px rgba(139,92,26,.12);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-gradient, var(--bg));
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

img { display: block; max-width: 100%; }

button { font-family: var(--font-body); cursor: pointer; }

/* --- Layout Utility --- */
.section-wrap {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =====================================================
   ANNOUNCEMENT BAR
   ===================================================== */
.announcement-bar {
    background: var(--primary);
    color: #CBD5E1;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
    font-family: var(--font-body);
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
}

/* =====================================================
   HEADER
   ===================================================== */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
    transition: box-shadow var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-title);
    white-space: nowrap;
    user-select: none;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.logo strong { color: var(--accent); }

/* Search Bar */
.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 9999px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
    max-width: 520px;
}

.search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
    color: var(--text-main);
}

.search-btn {
    background: var(--accent);
    border: none;
    padding: 0.65rem 1rem;
    color: white;
    display: flex;
    align-items: center;
    transition: background var(--transition);
}

.search-btn:hover { background: var(--accent-hover); }

/* Nav Links */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
}

.nav-links a:hover { color: var(--accent); }

/* Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    color: var(--text-title);
    transition: transform var(--transition);
    display: flex;
    align-items: center;
}

.cart-icon:hover { transform: scale(1.08); }

.cart-count {
    position: absolute;
    top: -7px;
    right: -9px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    animation: popIn .2s ease;
}

@keyframes popIn {
    0% { transform: scale(0.5); }
    80% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
    background: transparent;
    color: white;
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 90% at 75% 50%, rgba(229, 193, 88, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(229, 193, 88, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: #93C5FD;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: white;
}

.gradient-text {
    background: linear-gradient(90deg, #F59E0B, #E5C158);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: #94A3B8;
    font-size: 1.1rem;
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.cta-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: background var(--transition), transform var(--transition);
    display: inline-flex;
    align-items: center;
}

.cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.cta-outline {
    background: transparent;
    color: #CBD5E1;
    border: 1.5px solid rgba(255,255,255,.2);
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition);
}

.cta-outline:hover {
    border-color: rgba(255,255,255,.5);
    color: white;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat { display: flex; flex-direction: column; gap: 0; }
.stat strong { font-family: var(--font-display); font-size: 1.3rem; color: white; line-height: 1; }
.stat span { font-size: 0.8rem; color: #64748B; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 32px; background: rgba(255,255,255,.12); }

/* Hero Visual — Floating Cards */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-stack {
    position: relative;
    width: 300px;
    height: 300px;
}

.hero-big-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    opacity: 0.08;
    user-select: none;
}

.floating-card {
    position: absolute;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    min-width: 155px;
}

.fc-icon { font-size: 2rem; }
.fc-name { font-size: 0.85rem; color: #CBD5E1; font-weight: 500; }
.fc-price { font-size: 1rem; color: white; font-weight: 700; font-family: var(--font-display); }

.fc1 { top: 15px; left: 10px; animation: float1 4s ease-in-out infinite; }
.fc2 { top: 50%; right: 0; transform: translateY(-50%); animation: float2 5s ease-in-out infinite; }
.fc3 { bottom: 15px; left: 30px; animation: float1 4.5s ease-in-out infinite reverse; }

@keyframes float1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 10px)); }
}

/* =====================================================
   CATEGORIES SECTION
   ===================================================== */
.categories-section {
    padding: 5rem 0 3rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 1.75rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.cat-card {
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1.5px solid var(--border);
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(229, 193, 88, 0.12);
    border-color: var(--accent);
}

.cat-groceries { background: linear-gradient(135deg, #1E1E22, #151518); }
.cat-electronics { background: linear-gradient(135deg, #1E1E22, #151518); }
.cat-fashion { background: linear-gradient(135deg, #242429, #151518); }
.cat-home { background: linear-gradient(135deg, #1E1E22, #151518); }

.cat-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.cat-label { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-title); }
.cat-sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

/* =====================================================
   PRODUCTS SECTION
   ===================================================== */
.products-section {
    padding: 2rem 0 5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pill {
    padding: 0.45rem 1.1rem;
    border: 1.5px solid var(--border);
    background: var(--surface);
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.pill:hover, .pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.sort-select-wrap select {
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 9999px;
    font-size: 0.88rem;
    font-family: var(--font-body);
    color: var(--text-muted);
    background: var(--surface);
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition);
}

.sort-select-wrap select:focus { border-color: var(--accent); }

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: #111;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .badge.new {
    background: var(--success);
    color: white;
}

.product-img {
    height: 200px;
    background: #1C1C1E;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-info {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.product-category {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.product-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.stars { color: var(--gold); }

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-title);
}

.product-price-original {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.add-to-cart {
    margin-top: auto;
    padding: 0.75rem;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-title);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all var(--transition);
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.add-to-cart:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: none;
}

.add-to-cart.added {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* =====================================================
   TRUST BANNER
   ===================================================== */
.trust-banner {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
    margin-bottom: 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.trust-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 0.2rem;
}

.trust-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    background: var(--primary);
    color: #94A3B8;
    padding-top: 3.5rem;
}

.footer-inner {
    display: flex;
    gap: 4rem;
    padding-bottom: 3rem;
}

.footer-brand {
    flex: 2;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #64748B;
    max-width: 280px;
    line-height: 1.7;
}

.footer-links {
    flex: 1;
    display: flex;
    gap: 3rem;
}

.footer-col h4 {
    font-family: var(--font-display);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: #64748B;
    transition: color var(--transition);
}

.footer-col ul li a:hover { color: #CBD5E1; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1.25rem 0;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: #374151;
    text-align: center;
}

/* =====================================================
   CART OVERLAY
   ===================================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    backdrop-filter: blur(2px);
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 420px;
    height: 100%;
    background: var(--surface);
    box-shadow: -8px 0 32px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.cart-overlay.active .cart-panel {
    transform: translateX(0);
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
}

.close-cart {
    background: var(--bg);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background var(--transition);
}

.close-cart:hover { background: var(--border); }

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0.75rem;
    color: var(--text-muted);
}

.cart-empty span { font-size: 3.5rem; }
.cart-empty p { font-size: 1rem; font-weight: 500; }

.cart-item {
    display: flex;
    gap: 0.9rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg);
    flex-shrink: 0;
}

.cart-item-details { flex-grow: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.cart-item-title { font-weight: 600; font-size: 0.95rem; }
.cart-item-unit { font-size: 0.8rem; color: var(--text-muted); }
.cart-item-price { color: var(--accent); font-weight: 700; font-family: var(--font-display); }

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    border-radius: 6px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-title);
    transition: all var(--transition);
}

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

.qty-value { font-weight: 700; font-size: 0.95rem; min-width: 20px; text-align: center; }

.remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
    transition: opacity var(--transition);
}

.remove-btn:hover { opacity: 0.7; }

.cart-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.delivery-note {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: background var(--transition), transform var(--transition);
}

.checkout-btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

/* =====================================================
   CHECKOUT MODAL
   ===================================================== */
.checkout-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    backdrop-filter: blur(4px);
}

.checkout-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp .3s ease;
}

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

.modal-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: var(--bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background var(--transition);
}

.modal-close-btn:hover { background: var(--border); }

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

/* Steps Indicator */
.checkout-steps {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.step.active { color: var(--accent); }

.step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all var(--transition);
}

.step.active span, .step.done span {
    background: var(--accent);
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 0.75rem;
}

/* Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--surface);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.readonly-field {
    background: var(--bg) !important;
    color: var(--text-muted) !important;
    cursor: default;
}

/* Payment Method */
.payment-method-block {
    margin: 1.5rem 0;
}

.payment-method-block h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--accent);
    border-radius: 10px;
    background: var(--accent-light);
}

.payment-radio-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    position: relative;
    flex-shrink: 0;
}

.payment-radio-circle.checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--accent);
    border-radius: 50%;
}

.payment-text { flex: 1; }
.payment-text strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text-title); }
.payment-text span { font-size: 0.8rem; color: var(--text-muted); }

.payment-badge {
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Buttons */
.btn-next, .btn-confirm {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-body);
    margin-top: 0.5rem;
    transition: background var(--transition), transform var(--transition);
}

.btn-next:hover, .btn-confirm:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.btn-confirm {
    background: var(--success);
}

.btn-confirm:hover { background: #047857; }

.cancel-btn {
    width: 100%;
    padding: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-body);
    margin-top: 0.5rem;
    transition: color var(--transition);
}

.cancel-btn:hover { color: var(--text-main); }

/* Review Step */
.review-section {
    margin-bottom: 1.5rem;
}

.review-section h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.review-address {
    background: var(--bg);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.review-items { display: flex; flex-direction: column; gap: 0.75rem; }

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border);
}

.review-item:last-child { border-bottom: none; }

.review-total-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    padding: 1rem 0;
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.25rem;
}

/* =====================================================
   TOAST NOTIFICATION
   ===================================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--primary);
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s;
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* =====================================================
   FREE DELIVERY TAG & CARD HOVER OVERLAY
   ===================================================== */
.free-delivery-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    margin-top: 0.25rem;
    margin-bottom: 0.1rem;
}

.clickable-card { cursor: pointer; }

.view-details-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 26, 0.65);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.clickable-card:hover .view-details-overlay { opacity: 1; }

/* =====================================================
   PRODUCT DETAIL MODAL
   ===================================================== */
.product-detail-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.product-detail-modal.active {
    opacity: 1;
    pointer-events: all;
}

.pd-panel {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 860px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,.2);
    position: relative;
    animation: slideUp .3s ease;
}

.pd-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: var(--bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--transition);
}
.pd-close:hover { background: var(--border); }

.pd-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.pd-image-side {
    background: #1C1C1E;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.pd-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-info-side {
    padding: 2rem 2rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
}

.pd-category {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--accent);
}

.pd-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-title);
    line-height: 1.25;
}

.pd-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pd-price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pd-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-title);
}

.detail-free-delivery {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
}

.pd-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

/* Size Selector */
.detail-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-btn {
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-title);
    cursor: pointer;
    transition: all var(--transition);
}

.size-btn:hover { border-color: var(--accent); color: var(--accent); }
.size-btn.selected { background: var(--primary); color: white; border-color: var(--primary); }

/* Highlights */
.pd-highlights, .highlights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0;
}

.pd-highlights li, .highlights-list li {
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

/* Specs table */
.pd-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 0.25rem;
}

.pd-specs-table thead tr th {
    text-align: left;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.pd-specs-table tbody tr td {
    padding: 0.5rem 0.5rem 0.5rem 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text-muted);
}

.pd-specs-table tbody tr td:first-child {
    font-weight: 600;
    color: var(--text-main);
    width: 40%;
}

.pd-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.pd-add-cart-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.pd-add-cart-btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

/* =====================================================
   HAMBURGER MENU (Mobile Nav)
   ===================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    border: none;
    background: transparent;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-title);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--surface);
    padding: 2rem 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav.open .mobile-nav-panel {
    transform: translateX(0);
}

.mobile-nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-logo strong { color: var(--accent); }

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: background var(--transition);
}

.mobile-nav-link:hover, .mobile-nav-link.active-link {
    background: var(--accent-light);
    color: var(--accent);
}

.mobile-nav-link span { font-size: 1.25rem; }

.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* =====================================================
   PRODUCTS PAGE — standalone page
   ===================================================== */
.products-page-hero {
    background: var(--primary);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.products-page-hero h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.products-page-hero p {
    color: #94A3B8;
    font-size: 1rem;
}

.products-page-main {
    max-width: 1220px;
    margin: 0 auto;
    padding: 2.5rem 2rem 5rem;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--surface);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.products-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.products-count strong {
    color: var(--text-main);
    font-weight: 700;
}

/* =====================================================
   RESPONSIVE — Full Mobile Overhaul
   ===================================================== */

/* Large tablets */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-visual { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .pd-body { grid-template-columns: 1fr; }
    .pd-image-side {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        min-height: 280px;
        max-height: 320px;
    }
}

/* Tablets & large phones */
@media (max-width: 768px) {
    /* Header */
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: block; }
    .search-bar { max-width: 100%; }
    .nav-container { gap: 0.75rem; }

    /* Cart panel */
    .cart-panel { width: 100%; }

    /* Checkout */
    .modal-content { padding: 1.5rem 1rem; max-height: 95vh; }
    .form-row { grid-template-columns: 1fr; }

    /* Hero */
    .hero { padding: 3rem 1.25rem 2.5rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 0.95rem; }
    .hero-stats { gap: 1rem; }
    .stat strong { font-size: 1.1rem; }

    /* Categories */
    .category-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .cat-card { padding: 1.25rem 1rem; display: flex; align-items: center; gap: 1rem; text-align: left; }
    .cat-icon { font-size: 2rem; margin: 0; }
    .cat-label { font-size: 1rem; }

    /* Products */
    .section-header { flex-direction: column; align-items: flex-start; }
    .filter-row { width: 100%; overflow-x: auto; padding-bottom: 0.5rem; }
    .filter-pills { flex-wrap: nowrap; min-width: max-content; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }

    /* Product detail modal */
    .pd-panel { max-height: 100vh; border-radius: 0; }
    .pd-info-side { padding: 1.25rem; }
    .pd-name { font-size: 1.35rem; }
    .pd-price { font-size: 1.6rem; }

    /* Footer */
    .footer-inner { flex-direction: column; gap: 2rem; padding-bottom: 2rem; }
    .footer-links { flex-wrap: wrap; gap: 1.5rem; }

    /* Trust */
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .trust-item { flex-direction: column; gap: 0.5rem; text-align: center; }
    .trust-icon { align-self: center; }

    /* Announcement */
    .announcement-bar { font-size: 0.76rem; }

    /* Products page */
    .products-page-hero { padding: 2rem 1.25rem; }
    .products-page-hero h1 { font-size: 1.8rem; }
    .products-page-main { padding: 1.5rem 1rem 4rem; }
    .products-toolbar { flex-direction: column; align-items: flex-start; }
}

/* Small phones */
@media (max-width: 480px) {
    /* Header */
    .logo span { display: none; }
    .logo-icon { width: 32px; height: 32px; font-size: 1rem; }

    /* Hero */
    .hero-btns { flex-direction: column; }
    .cta-btn, .cta-outline { text-align: center; justify-content: center; width: 100%; }
    .hero-stats { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
    .stat-divider { display: none; }

    /* Products grid: 1 column on tiny screens */
    .product-grid { grid-template-columns: 1fr; }

    /* Trust */
    .trust-grid { grid-template-columns: 1fr; }

    /* Announcement bar — scrolling marquee effect */
    .announcement-bar span { display: inline-block; animation: marquee 18s linear infinite; }
    @keyframes marquee {
        0% { transform: translateX(100vw); }
        100% { transform: translateX(-100%); }
    }

    /* Checkout modal */
    .checkout-steps { gap: 0.5rem; }
    .step { font-size: 0.78rem; }
    .step-line { margin: 0 0.4rem; }

    /* Product detail modal */
    .pd-image-side { min-height: 240px; }
    .pd-info-side { padding: 1rem; gap: 0.6rem; }
    .pd-name { font-size: 1.2rem; }

    /* Section wrap padding */
    .section-wrap { padding: 0 1rem; }
}

/* Extra tiny */
@media (max-width: 360px) {
    .product-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
}

/* =====================================================
   THEME SWITCHER
   ===================================================== */
.theme-switcher {
    position: relative;
    display: inline-block;
}

.theme-btn {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-title);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.theme-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 0.6rem;
    min-width: 190px;
    box-shadow: var(--shadow-lg);
    z-index: 300;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.theme-option {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    border-radius: 8px;
    transition: background var(--transition);
    cursor: pointer;
}

.theme-option:hover {
    background: var(--primary-light);
    color: var(--text-title);
}

.theme-option.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.theme-preview {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--preview-bg, #000);
    position: relative;
    flex-shrink: 0;
}

.theme-preview::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    border-top-right-radius: 9px;
    border-bottom-right-radius: 9px;
    background: var(--preview-accent, #fff);
}

