/* ==================== ZAMN MOBILES — Multi-Theme System ==================== */
/* Base (Cyber Blue). Themes override via [data-theme] on <html>. */
:root {
    --bg: #0A0E17;
    --bg-2: #0D1220;
    --surface: #121a2b;
    --card: #151d30;
    --border: rgba(148, 163, 200, 0.14);
    --azure: #3B82F6;
    --cyan: #22D3EE;
    --gold: #F5B841;
    --green: #25D366;
    --text: #E6EAF2;
    --muted: #8A94A8;
    --gradient: linear-gradient(135deg, #3B82F6, #22D3EE);
    --gradient-gold: linear-gradient(135deg, #F5B841, #F59E0B);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    --radius: 16px;
    --radius-sm: 10px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Theme plumbing */
    --on-accent: #ffffff;
    --azure-rgb: 59, 130, 246;
    --cyan-rgb: 34, 211, 238;
    --gold-rgb: 245, 184, 65;
    --bg-rgb: 10, 14, 23;
    --bg2-rgb: 13, 18, 32;
    --card-rgb: 21, 29, 48;
    --border-strong: #27314d;
    --notch: #060a13;
    --announce-bg: linear-gradient(90deg, #101a33, #0d1a2e);
    --phone-body: linear-gradient(160deg, #1a2338, #0e1424);
}

/* Royal Gold — matches the ZAMN brand logo (site default) */
[data-theme="gold"] {
    --bg: #0A0805; --bg-2: #0F0C07; --surface: #181307; --card: #1C160B;
    --border: rgba(212, 175, 55, 0.16);
    --azure: #D4AF37; --cyan: #F1CE6E; --gold: #E8C55F;
    --text: #F2EAD8; --muted: #A89B7E;
    --gradient: linear-gradient(135deg, #B8912F, #F1CE6E);
    --gradient-gold: linear-gradient(135deg, #E8C55F, #C99B2E);
    --on-accent: #191204;
    --azure-rgb: 212, 175, 55; --cyan-rgb: 241, 206, 110; --gold-rgb: 232, 197, 95;
    --bg-rgb: 10, 8, 5; --bg2-rgb: 15, 12, 7; --card-rgb: 28, 22, 11;
    --border-strong: #3d3014; --notch: #050402;
    --announce-bg: linear-gradient(90deg, #1c1608, #171106);
    --phone-body: linear-gradient(160deg, #2a2210, #141006);
}

/* Cyber Blue — explicit selector (same as base) */
[data-theme="blue"] { }

/* Emerald */
[data-theme="emerald"] {
    --bg: #05100C; --bg-2: #071510; --surface: #0C2018; --card: #0E251C;
    --border: rgba(110, 231, 183, 0.14);
    --azure: #10B981; --cyan: #34D399; --gold: #FBBF24;
    --text: #E4F2EB; --muted: #86A597;
    --gradient: linear-gradient(135deg, #059669, #34D399);
    --on-accent: #04150D;
    --azure-rgb: 16, 185, 129; --cyan-rgb: 52, 211, 153; --gold-rgb: 251, 191, 36;
    --bg-rgb: 5, 16, 12; --bg2-rgb: 7, 21, 16; --card-rgb: 14, 37, 28;
    --border-strong: #164a37; --notch: #030a07;
    --announce-bg: linear-gradient(90deg, #0a2418, #081d14);
    --phone-body: linear-gradient(160deg, #123326, #081812);
}

/* Crimson */
[data-theme="crimson"] {
    --bg: #130607; --bg-2: #180A0C; --surface: #241014; --card: #2A1318;
    --border: rgba(251, 113, 133, 0.15);
    --azure: #EF4444; --cyan: #FB7185; --gold: #FBBF24;
    --text: #F5E6E8; --muted: #B08A90;
    --gradient: linear-gradient(135deg, #DC2626, #FB7185);
    --on-accent: #ffffff;
    --azure-rgb: 239, 68, 68; --cyan-rgb: 251, 113, 133; --gold-rgb: 251, 191, 36;
    --bg-rgb: 19, 6, 7; --bg2-rgb: 24, 10, 12; --card-rgb: 42, 19, 24;
    --border-strong: #4d2027; --notch: #0a0304;
    --announce-bg: linear-gradient(90deg, #2a1015, #220d11);
    --phone-body: linear-gradient(160deg, #3a1a21, #1a0a0d);
}

/* Amethyst */
[data-theme="amethyst"] {
    --bg: #0C0716; --bg-2: #110A1E; --surface: #1A1029; --card: #1E1330;
    --border: rgba(192, 132, 252, 0.15);
    --azure: #8B5CF6; --cyan: #C084FC; --gold: #F5B841;
    --text: #EDE6F7; --muted: #9D8FB8;
    --gradient: linear-gradient(135deg, #7C3AED, #C084FC);
    --on-accent: #ffffff;
    --azure-rgb: 139, 92, 246; --cyan-rgb: 192, 132, 252; --gold-rgb: 245, 184, 65;
    --bg-rgb: 12, 7, 22; --bg2-rgb: 17, 10, 30; --card-rgb: 30, 19, 48;
    --border-strong: #3b2760; --notch: #070310;
    --announce-bg: linear-gradient(90deg, #1e1233, #180e29);
    --phone-body: linear-gradient(160deg, #2c1c4a, #130b22);
}

/* Pearl (light) */
[data-theme="pearl"] {
    --bg: #F4F6FA; --bg-2: #FFFFFF; --surface: #EDF0F7; --card: #FFFFFF;
    --border: rgba(30, 41, 59, 0.13);
    --azure: #2563EB; --cyan: #0891B2; --gold: #D97706;
    --text: #1B2437; --muted: #5C6A82;
    --gradient: linear-gradient(135deg, #2563EB, #0891B2);
    --gradient-gold: linear-gradient(135deg, #F59E0B, #D97706);
    --shadow: 0 10px 34px rgba(30, 41, 59, 0.14);
    --on-accent: #ffffff;
    --azure-rgb: 37, 99, 235; --cyan-rgb: 8, 145, 178; --gold-rgb: 217, 119, 6;
    --bg-rgb: 244, 246, 250; --bg2-rgb: 255, 255, 255; --card-rgb: 255, 255, 255;
    --border-strong: #c9d2e2; --notch: #1B2437;
    --announce-bg: linear-gradient(90deg, #e8edf6, #eef2f9);
    --phone-body: linear-gradient(160deg, #ffffff, #dfe6f2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth; scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
    overflow-x: clip;
}
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.w-100 { width: 100%; }

/* ==================== LIVE BACKGROUND ==================== */
#liveBg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}
.announcement-bar, .header, section, .footer { position: relative; z-index: 1; }

/* ==================== PRELOADER ==================== */
.preloader {
    position: fixed; inset: 0; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; transition: opacity 0.6s ease, visibility 0.6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-content { text-align: center; }
.preloader-logo { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; letter-spacing: 2px; }
.logo-zamn { color: var(--text); }
.logo-mobiles {
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.preloader-tagline { color: var(--muted); font-size: 0.85rem; margin: 8px 0 28px; letter-spacing: 3px; text-transform: uppercase; }
.preloader-progress { width: 220px; height: 3px; background: var(--surface); border-radius: 3px; margin: 0 auto; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--gradient); border-radius: 3px; transition: width 0.2s ease; }
.preloader-percent { margin-top: 12px; color: var(--cyan); font-size: 0.85rem; font-family: var(--font-display); }

/* ==================== ANNOUNCEMENT ==================== */
.announcement-bar {
    background: var(--announce-bg);
    border-bottom: 1px solid var(--border);
    padding: 9px 0; font-size: 0.8rem; color: var(--muted);
    overflow: hidden; white-space: nowrap;
}
.announce-track { display: flex; width: max-content; }
.announce-group { display: flex; align-items: center; gap: 14px; padding-right: 14px; }
.announce-group span { display: inline-flex; align-items: center; gap: 7px; }
.announce-group i { color: var(--gold); }
.announce-group .fa-whatsapp { color: var(--green); }
.separator { color: var(--border); }
/* Desktop: static & centered (second copy hidden) */
@media (min-width: 769px) {
    .announce-track { width: 100%; justify-content: center; }
    .announce-group[aria-hidden="true"] { display: none; }
}
/* Mobile: gentle marquee so nothing is cut off */
@media (max-width: 768px) {
    .announce-track { animation: announceScroll 22s linear infinite; }
}
@keyframes announceScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==================== HEADER ==================== */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(var(--bg-rgb), 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}
.header.scrolled { border-bottom-color: var(--border); background: rgba(var(--bg-rgb), 0.92); }
.header.nav-open { z-index: 1700; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 44px; height: 44px; border-radius: 12px;
    box-shadow: 0 4px 18px rgba(var(--cyan-rgb), 0.35);
    flex-shrink: 0; display: block;
}
img.logo-icon { background: none; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 1px; line-height: 1.1; }
.logo-text small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.62rem; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

.nav { display: flex; gap: 26px; }
.nav-link { color: var(--muted); font-size: 0.92rem; font-weight: 500; position: relative; transition: color 0.3s; padding: 4px 0; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gradient); border-radius: 2px; transition: width 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
/* Drawer-only elements, hidden on desktop */
.nav-drawer-header, .nav-drawer-footer, .nav-link-icon { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.action-btn {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 0.95rem; position: relative;
    transition: all 0.3s;
}
.action-btn:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); }
.cart-count {
    position: absolute; top: -6px; right: -6px;
    min-width: 19px; height: 19px; padding: 0 5px;
    background: var(--gradient-gold); color: #14100a;
    border-radius: 10px; font-size: 0.68rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.menu-toggle { display: none; }

.search-bar {
    display: flex; gap: 0; max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, margin 0.4s ease;
}
.search-bar.active { max-height: 70px; margin-bottom: 14px; }
.search-bar input {
    flex: 1; padding: 13px 18px;
    background: var(--surface); border: 1px solid var(--border);
    border-right: none; border-radius: 12px 0 0 12px;
    color: var(--text); font-size: 0.95rem; outline: none;
}
.search-bar input:focus { border-color: var(--azure); }
.search-bar button {
    padding: 0 22px; background: var(--gradient); color: var(--on-accent);
    border-radius: 0 12px 12px 0; font-size: 1rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 26px; border-radius: 12px;
    font-weight: 600; font-size: 0.93rem;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--gradient); color: var(--on-accent); box-shadow: 0 6px 24px rgba(var(--azure-rgb), 0.35); }
.btn-primary:hover { box-shadow: 0 10px 32px rgba(var(--cyan-rgb), 0.45); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-whatsapp { background: var(--green); color: #06240f; box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { box-shadow: 0 10px 32px rgba(37, 211, 102, 0.45); }

/* ==================== HERO ==================== */
.hero { padding: 70px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 30px;
    background: rgba(var(--gold-rgb), 0.1); border: 1px solid rgba(var(--gold-rgb), 0.35);
    color: var(--gold); font-size: 0.8rem; font-weight: 600; margin-bottom: 22px;
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700; line-height: 1.12; margin-bottom: 20px; letter-spacing: -1px;
}
.hero-description { color: var(--muted); font-size: 1.02rem; max-width: 520px; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.stat-item h3 { font-family: var(--font-display); font-size: 1.9rem; color: var(--cyan); }
.stat-item p { color: var(--muted); font-size: 0.82rem; }

/* Hero phone mockup */
.hero-visual { display: flex; justify-content: center; }
.hero-image-wrapper { position: relative; width: 100%; max-width: 400px; display: flex; justify-content: center; }
.hero-phone {
    width: 230px; height: 460px;
    background: var(--phone-body);
    border: 3px solid var(--border-strong); border-radius: 40px;
    padding: 14px; position: relative;
    box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 60px rgba(var(--azure-rgb),0.18);
    animation: phoneFloat 6s ease-in-out infinite;
}
.phone-notch {
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 90px; height: 24px; background: var(--notch); border-radius: 14px; z-index: 2;
}
.phone-screen {
    width: 100%; height: 100%; border-radius: 28px;
    background: radial-gradient(120% 90% at 50% 0%, rgba(var(--azure-rgb),0.35), rgba(var(--bg-rgb),0.9) 60%), var(--bg-2);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; overflow: hidden; border: 1px solid var(--border);
}
.phone-screen i { font-size: 2.4rem; margin-bottom: 12px; color: var(--cyan); filter: drop-shadow(0 0 14px rgba(var(--cyan-rgb),0.6)); }
.phone-screen h2 { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 4px; }
.phone-screen p { font-size: 0.8rem; letter-spacing: 6px; color: var(--cyan); }
.phone-since { margin-top: 16px; font-size: 0.65rem; color: var(--muted); letter-spacing: 1.5px; }

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-16px) rotate(1.5deg); }
}

.floating-card {
    position: absolute; z-index: 3;
    display: flex; align-items: center; gap: 11px;
    background: rgba(var(--card-rgb), 0.9); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 14px;
    padding: 11px 15px; box-shadow: var(--shadow);
    animation: cardFloat 5s ease-in-out infinite;
}
.floating-card i { font-size: 1.3rem; color: var(--cyan); }
.floating-card .fa-whatsapp { color: var(--green); }
.floating-card .fa-tag { color: var(--gold); }
.floating-card h4 { font-size: 0.82rem; }
.floating-card p { font-size: 0.7rem; color: var(--muted); }
.card-1 { top: 8%; left: -8%; animation-delay: 0s; }
.card-2 { top: 42%; right: -12%; animation-delay: 1.5s; }
.card-3 { bottom: 8%; left: -4%; animation-delay: 3s; }
@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ==================== SECTIONS ==================== */
section { padding: 80px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 30px;
    background: rgba(var(--azure-rgb), 0.1); border: 1px solid rgba(var(--azure-rgb), 0.3);
    color: var(--azure); font-size: 0.78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px;
}
.section-title { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.5px; }
.section-desc { color: var(--muted); font-size: 0.98rem; }

/* ==================== FEATURES ==================== */
.features { padding: 30px 0 70px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 24px; transition: transform 0.3s, border-color 0.3s;
}
.feature-card:hover { border-color: rgba(var(--cyan-rgb), 0.4); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(var(--azure-rgb), 0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--cyan); margin-bottom: 18px;
}
.feature-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.86rem; }

/* ==================== CATEGORIES ==================== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.category-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px 18px; text-align: center;
    transition: transform 0.3s, border-color 0.3s; cursor: pointer;
}
.category-card:hover { border-color: var(--gold); transform: translateY(-5px); }
.category-icon {
    width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--azure-rgb),0.15), rgba(var(--cyan-rgb),0.15));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--cyan);
}
.category-card h3 { font-family: var(--font-display); font-size: 0.98rem; margin-bottom: 4px; }
.category-card p { color: var(--muted); font-size: 0.8rem; }

/* ==================== FILTER TABS ==================== */
.filter-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-tab {
    padding: 9px 22px; border-radius: 30px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--muted); font-size: 0.86rem; font-weight: 500;
    transition: all 0.3s;
}
.filter-tab:hover { color: var(--text); border-color: var(--azure); }
.filter-tab.active { background: var(--gradient); color: var(--on-accent); border-color: transparent; box-shadow: 0 4px 18px rgba(var(--azure-rgb), 0.35); }

/* ==================== PRODUCTS ==================== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
}
.product-card:hover { border-color: rgba(var(--cyan-rgb), 0.45); box-shadow: 0 14px 44px rgba(0,0,0,0.45); }
.product-image {
    position: relative; height: 190px;
    background: radial-gradient(100% 100% at 50% 0%, rgba(var(--azure-rgb),0.14), rgba(var(--bg2-rgb),0.6));
    display: flex; align-items: center; justify-content: center;
    font-size: 3.2rem; color: var(--muted);
    overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 4px 12px; border-radius: 20px;
    background: var(--gradient); color: var(--on-accent);
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px;
}
.product-badge.hot { background: var(--gradient-gold); color: #14100a; }
.product-badge.new { background: rgba(37, 211, 102, 0.9); color: #06240f; }
.product-info { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--azure); font-weight: 600; margin-bottom: 6px; }
.product-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.product-rating { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); margin-bottom: 14px; }
.product-rating .stars { color: var(--gold); letter-spacing: 1px; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price-current { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text); }
.price-old { font-size: 0.8rem; color: var(--muted); text-decoration: line-through; margin-left: 8px; }
.add-to-cart-btn {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--gradient); color: var(--on-accent); font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.25s, box-shadow 0.25s;
}
.add-to-cart-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(var(--cyan-rgb), 0.4); }
.stock-note { font-size: 0.72rem; color: var(--gold); margin-bottom: 10px; }
.out-of-stock { color: #f87171; }

/* ==================== ABOUT ==================== */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-img {
    aspect-ratio: 1; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    font-size: 2rem; color: var(--cyan);
}
.about-img span { font-size: 0.8rem; color: var(--muted); font-weight: 600; letter-spacing: 1px; }
.about-img.img-2 { margin-top: 24px; }
.about-img.img-3 { margin-top: -24px; }
.about-content .section-tag { margin-bottom: 16px; }
.about-content > p { color: var(--muted); margin: 16px 0 24px; font-size: 0.96rem; }
.about-list { list-style: none; margin-bottom: 30px; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 0.92rem; }
.about-list i { color: var(--green); margin-top: 3px; }

/* ==================== WHATSAPP CTA ==================== */
.newsletter { padding: 40px 0 80px; }
.newsletter-card {
    background: linear-gradient(135deg, rgba(var(--azure-rgb),0.14), rgba(var(--cyan-rgb),0.08));
    border: 1px solid rgba(var(--azure-rgb), 0.3); border-radius: 22px;
    padding: 46px; display: flex; align-items: center; justify-content: space-between;
    gap: 30px; flex-wrap: wrap;
}
.newsletter-content h2 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 8px; }
.newsletter-content p { color: var(--muted); font-size: 0.94rem; }

/* ==================== CONTACT ==================== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-bottom: 44px; }
.contact-info-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 22px; text-align: center;
}
.contact-icon {
    width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 14px;
    background: rgba(var(--gold-rgb), 0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: var(--gold);
}
.contact-info-card h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 8px; }
.contact-info-card p { color: var(--muted); font-size: 0.85rem; word-break: break-word; }

.contact-form-wrapper { max-width: 680px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 18px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    color: var(--text); font-size: 0.93rem; outline: none; resize: vertical;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--azure); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }

/* ==================== FOOTER ==================== */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr 1.4fr; gap: 32px; padding-bottom: 44px; }
.footer-logo { margin-bottom: 16px; }
.footer-col > p { color: var(--muted); font-size: 0.86rem; margin-bottom: 20px; }
.footer-col h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--muted); font-size: 0.86rem; transition: color 0.3s; }
.footer-col ul a:hover { color: var(--cyan); }
.contact-list li { display: flex; gap: 10px; color: var(--muted); font-size: 0.84rem; align-items: flex-start; }
.contact-list i { color: var(--gold); margin-top: 3px; }
.social-links { display: flex; gap: 10px; }
.social-link {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 0.9rem; transition: all 0.3s;
}
.social-link:hover { color: var(--on-accent); background: var(--gradient); border-color: transparent; transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid var(--border); padding: 20px 0; text-align: center;
    color: var(--muted); font-size: 0.8rem;
}
.footer-legal { margin-top: 6px; font-size: 0.74rem; opacity: 0.85; }

/* ==================== CART SIDEBAR ==================== */
.cart-sidebar {
    position: fixed; top: 0; right: -420px;
    width: min(400px, 92vw); height: 100dvh;
    background: var(--bg-2); border-left: 1px solid var(--border);
    z-index: 2000; display: flex; flex-direction: column;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-sidebar.active { right: 0; }
.cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 22px; border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-family: var(--font-display); font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.close-cart { font-size: 1.1rem; color: var(--muted); transition: color 0.3s; }
.close-cart:hover { color: var(--text); }
.cart-items { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--muted); }
.cart-empty i { font-size: 2.6rem; margin-bottom: 16px; opacity: 0.4; }
.cart-item {
    display: flex; gap: 14px; align-items: center;
    padding: 14px 0; border-bottom: 1px solid var(--border);
}
.cart-item-img {
    width: 58px; height: 58px; border-radius: 12px; flex-shrink: 0;
    background: var(--surface); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--muted);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 0.85rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-info .price { color: var(--cyan); font-size: 0.85rem; font-weight: 600; }
.cart-qty { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cart-qty button {
    width: 24px; height: 24px; border-radius: 7px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
}
.cart-qty span { font-size: 0.85rem; min-width: 18px; text-align: center; }
.cart-item-remove { color: #f87171; opacity: 0.7; font-size: 0.88rem; transition: opacity 0.3s; }
.cart-item-remove:hover { opacity: 1; }
.cart-footer { padding: 20px 22px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.overlay {
    position: fixed; inset: 0; background: rgba(4, 7, 14, 0.7);
    backdrop-filter: blur(3px); z-index: 1500;
    opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}
.overlay.active { opacity: 1; visibility: visible; }

/* ==================== FLOATING WHATSAPP ==================== */
.wa-float {
    position: fixed; bottom: 24px; left: 24px; z-index: 1200;
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--green); color: #06240f; font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.1); }

/* ==================== TOAST / BACK TO TOP ==================== */
.toast {
    position: fixed; bottom: 26px; left: 50%;
    transform: translate(-50%, 90px);
    background: var(--card); border: 1px solid rgba(37, 211, 102, 0.5);
    color: var(--text); padding: 13px 24px; border-radius: 14px;
    display: flex; align-items: center; gap: 10px; font-size: 0.88rem;
    z-index: 3000; box-shadow: var(--shadow);
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast i { color: var(--green); }
.toast.show { transform: translate(-50%, 0); }
.back-to-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 1200;
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--muted); font-size: 0.95rem;
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: all 0.35s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { color: var(--cyan); border-color: var(--cyan); }

/* ==================== ANIMATIONS ==================== */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ==================== THEME SWITCHER ==================== */
.theme-fab {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%);
    z-index: 1200;
    width: 44px; height: 52px;
    border-radius: 14px 0 0 14px;
    background: var(--card); border: 1px solid var(--border); border-right: none;
    color: var(--cyan); font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
    transition: width 0.25s, color 0.25s;
}
.theme-fab:hover { width: 52px; color: var(--gold); }
.theme-panel {
    position: fixed; top: 0; right: -360px;
    width: min(340px, 92vw); height: 100dvh;
    background: var(--bg-2); border-left: 1px solid var(--border);
    z-index: 2000; display: flex; flex-direction: column;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.theme-panel.active { right: 0; }
.theme-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 22px; border-bottom: 1px solid var(--border);
}
.theme-panel-header h3 { font-family: var(--font-display); font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.theme-panel-header h3 i { color: var(--gold); }
.theme-panel-close { font-size: 1.1rem; color: var(--muted); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.theme-panel-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.theme-panel-note { font-size: 0.76rem; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.theme-option {
    width: 100%; display: flex; align-items: center; gap: 14px;
    padding: 13px 14px; margin-bottom: 10px;
    background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px;
    text-align: left; transition: border-color 0.25s, transform 0.2s;
}
.theme-option:active { transform: scale(0.98); }
.theme-option.active { border-color: var(--cyan); }
.theme-dots { display: flex; }
.theme-dot {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--bg-2); margin-left: -7px;
}
.theme-dot:first-child { margin-left: 0; }
.theme-option-name { flex: 1; font-weight: 600; font-size: 0.92rem; color: var(--text); }
.theme-option-name small { display: block; font-weight: 400; font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.theme-option .fa-check { color: var(--cyan); opacity: 0; transition: opacity 0.25s; }
.theme-option.active .fa-check { opacity: 1; }
.theme-panel-footer { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.theme-reset-btn {
    width: 100%; padding: 12px; border-radius: 12px;
    background: transparent; border: 1.5px solid var(--border);
    color: var(--muted); font-size: 0.85rem; font-weight: 600;
    transition: color 0.25s, border-color 0.25s;
}
.theme-reset-btn:hover { color: var(--text); border-color: var(--cyan); }
@media (max-width: 768px) {
    .theme-fab { top: auto; bottom: calc(146px + env(safe-area-inset-bottom)); transform: none; width: 40px; height: 48px; font-size: 1rem; }
}

/* ==================== BOTTOM NAV (mobile) ==================== */
.bottom-nav {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300;
    background: rgba(var(--bg2-rgb), 0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.bnav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 7px 2px; border-radius: 12px; position: relative;
    color: var(--muted); font-size: 1.05rem; min-height: 52px;
    transition: color 0.25s, background 0.25s;
}
.bnav-item span { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.4px; }
.bnav-item.active { color: var(--cyan); background: rgba(var(--cyan-rgb), 0.09); }
.bnav-item:active { background: rgba(148, 163, 200, 0.1); }
.bnav-wa { color: var(--green); }
.bnav-badge {
    position: absolute; top: 3px; right: calc(50% - 22px);
    min-width: 17px; height: 17px; padding: 0 4px;
    background: var(--gradient-gold); color: #14100a;
    border-radius: 9px; font-size: 0.6rem !important; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 56px; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-buttons, .hero-stats { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; gap: 44px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    /* keep floating cards fully inside the viewport */
    .hero-image-wrapper { max-width: 360px; }
    .card-1 { left: 0; } .card-2 { right: 0; } .card-3 { left: 4%; }
    .newsletter-card { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 76px; }
    section { padding: 52px 0; }
    .container { padding: 0 16px; }

    /* --- Header --- */
    .header-inner { padding: 10px 0; gap: 10px; }
    .logo-icon { width: 40px; height: 40px; border-radius: 11px; }
    .logo-text { font-size: 1.1rem; }
    .action-btn { width: 44px; height: 44px; }
    .menu-toggle { display: flex; }
    .admin-btn { display: none; }

    /* --- Nav drawer --- */
    .nav {
        position: fixed; top: 0; right: -320px;
        width: min(300px, 86vw); height: 100dvh;
        background: var(--bg-2); border-left: 1px solid var(--border);
        flex-direction: column; padding: 0 20px calc(20px + env(safe-area-inset-bottom));
        gap: 4px; overflow-y: auto;
        transition: right 0.38s cubic-bezier(0.22, 1, 0.36, 1); z-index: 1600;
        box-shadow: -20px 0 60px rgba(0,0,0,0.5);
    }
    .nav.active { right: 0; }
    .nav-drawer-header {
        display: flex; align-items: center; gap: 10px;
        padding: 18px 0 14px; margin-bottom: 10px;
        border-bottom: 1px solid var(--border);
        position: sticky; top: 0; background: var(--bg-2); z-index: 2;
    }
    .nav-drawer-header .logo-icon { width: 36px; height: 36px; border-radius: 10px; box-shadow: none; }
    .nav-drawer-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 1px; flex: 1; }
    .nav-close {
        width: 40px; height: 40px; border-radius: 11px;
        background: var(--surface); border: 1px solid var(--border);
        color: var(--muted); font-size: 1rem;
        display: flex; align-items: center; justify-content: center;
    }
    .nav-link {
        display: flex; align-items: center; gap: 14px;
        padding: 13px 12px; border-radius: 12px;
        font-size: 0.98rem; color: var(--text);
    }
    .nav-link::after { display: none; }
    .nav-link.active { background: rgba(var(--azure-rgb), 0.12); color: var(--cyan); }
    .nav-link:active { background: rgba(148, 163, 200, 0.08); }
    .nav-link-icon { display: inline-flex; width: 20px; justify-content: center; color: var(--azure); font-size: 0.95rem; }
    .nav-link.active .nav-link-icon { color: var(--cyan); }
    .nav-drawer-footer {
        display: flex; flex-direction: column; gap: 14px;
        margin-top: auto; padding-top: 22px;
    }
    .nav-admin-link {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        color: var(--muted); font-size: 0.82rem; padding: 8px;
    }

    /* --- Bottom nav on, floaters adjusted --- */
    .bottom-nav { display: flex; }
    body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
    .wa-float { display: none; }
    .back-to-top { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; }
    .toast { bottom: calc(84px + env(safe-area-inset-bottom)); width: max-content; max-width: 92vw; }
    .cart-count { top: -4px; right: -4px; }

    /* --- Hero --- */
    .hero { padding: 36px 0 56px; }
    .hero-badge { font-size: 0.72rem; padding: 6px 13px; }
    .hero-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
    .hero-description { font-size: 0.94rem; }
    .hero-buttons { gap: 10px; margin-bottom: 36px; }
    .hero-buttons .btn { flex: 1; min-width: 150px; padding: 13px 16px; font-size: 0.88rem; }
    .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
    .stat-item h3 { font-size: 1.5rem; }
    .stat-item p { font-size: 0.72rem; }
    .hero-image-wrapper { max-width: 300px; }
    .hero-phone { width: 180px; height: 360px; border-radius: 34px; }
    .phone-screen h2 { font-size: 1.5rem; }
    .floating-card { padding: 8px 11px; gap: 8px; border-radius: 12px; }
    .floating-card i { font-size: 1.05rem; }
    .floating-card h4 { font-size: 0.7rem; }
    .floating-card p { font-size: 0.6rem; }

    /* --- Sections / cards --- */
    .section-header { margin-bottom: 32px; }
    .section-desc { font-size: 0.88rem; }
    .features { padding: 20px 0 48px; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .feature-card { padding: 20px 16px; }
    .feature-icon { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 13px; border-radius: 12px; }
    .feature-card h3 { font-size: 0.92rem; }
    .feature-card p { font-size: 0.78rem; }

    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .category-card { padding: 20px 10px; border-radius: 14px; }
    .category-icon { width: 48px; height: 48px; font-size: 1.2rem; margin-bottom: 12px; border-radius: 13px; }
    .category-card h3 { font-size: 0.82rem; }
    .category-card p { font-size: 0.7rem; }

    /* --- Filter tabs: swipeable row --- */
    .filter-tabs {
        justify-content: flex-start; flex-wrap: nowrap;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; gap: 8px;
        margin: 0 -16px 28px; padding: 4px 16px;
        scroll-snap-type: x proximity;
    }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tab { flex-shrink: 0; scroll-snap-align: start; padding: 9px 18px; font-size: 0.82rem; }

    /* --- Products: guaranteed 2-up grid --- */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-image { height: 148px; font-size: 2.4rem; }
    .product-info { padding: 12px; }
    .product-category { font-size: 0.62rem; margin-bottom: 4px; }
    .product-name { font-size: 0.85rem; margin-bottom: 6px; }
    .product-rating { font-size: 0.7rem; gap: 6px; margin-bottom: 10px; }
    .price-current { font-size: 0.95rem; }
    .price-old { font-size: 0.7rem; margin-left: 0; display: block; }
    .add-to-cart-btn { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; }
    .product-badge { top: 8px; left: 8px; padding: 3px 9px; font-size: 0.6rem; }

    /* --- About / CTA / contact --- */
    .about-image-grid { gap: 12px; max-width: 420px; margin: 0 auto; }
    .newsletter { padding: 20px 0 56px; }
    .newsletter-card { padding: 30px 20px; border-radius: 18px; }
    .newsletter-content h2 { font-size: 1.35rem; }
    .newsletter-card .btn { width: 100%; }
    .contact-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
    .contact-info-card { padding: 20px 14px; }
    .contact-icon { width: 46px; height: 46px; font-size: 1.05rem; margin-bottom: 12px; }
    .contact-info-card h3 { font-size: 0.88rem; }
    .contact-info-card p { font-size: 0.76rem; }
    .form-row { grid-template-columns: 1fr; }
    /* 16px inputs prevent iOS/Android focus zoom — this was the "zoomed" bug */
    .form-group input, .form-group textarea, .search-bar input { font-size: 16px; }

    /* --- Cart sidebar --- */
    .cart-sidebar { width: min(400px, 100vw); border-left: none; }
    .cart-footer { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); }
    .cart-footer .btn { padding: 15px 22px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .logo-text small { display: none; }
    .hero-title { font-size: clamp(1.75rem, 8.5vw, 2.2rem); }
    .hero-buttons .btn { min-width: 0; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .footer { padding-top: 44px; }
    .footer-bottom { font-size: 0.72rem; padding: 16px 0; }
}

@media (max-width: 370px) {
    .products-grid { gap: 9px; }
    .product-image { height: 128px; }
    .features-grid, .contact-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .logo-text { font-size: 1rem; }
    .header-actions { gap: 6px; }
    .action-btn { width: 41px; height: 41px; }
}

/* Touch devices: replace hover lifts with press feedback */
@media (hover: none) {
    .btn:hover, .action-btn:hover, .social-link:hover, .category-card:hover,
    .add-to-cart-btn:hover, .wa-float:hover { transform: none; }
    .btn:active { transform: scale(0.97); }
    .add-to-cart-btn:active { transform: scale(0.92); }
    .category-card:active, .product-card:active { border-color: rgba(var(--cyan-rgb), 0.45); }
    .filter-tab:active { color: var(--text); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.15s !important; }
    #liveBg { display: none; }
    .announce-track { animation: none; }
}
