/* ═══════════════════════════════════════════════════
   R E T R O M O N K E Y
   Neon Noir Luxury — Porsche meets Blade Runner
   ═══════════════════════════════════════════════════ */

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

:root {
    --bg: #050508;
    --bg-elevated: #0a0a10;
    --surface: #0e0e16;
    --surface-2: #14141e;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-dim: #55556a;
    --accent: #00ff88;
    --accent-soft: #00cc6e;
    --accent-glow: rgba(0,255,136,0.08);
    --accent-glow-strong: rgba(0,255,136,0.25);
    --purple: #8b5cf6;
    --purple-dim: #6d28d9;
    --purple-glow: rgba(139,92,246,0.12);
    --pink: #ec4899;
    --yellow: #eab308;
    --red: #ef4444;
    --success: #22c55e;
    --font: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ── Page Reveal Animation ── */
body { animation: pageReveal 0.8s var(--ease-out-expo) both; }
@keyframes pageReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ── Selection ── */
::selection {
    background: var(--accent);
    color: #000;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ══════════════════════
   GLASS NAVIGATION
   ══════════════════════ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(5,5,8,0.6);
    backdrop-filter: blur(40px) saturate(1.4);
    -webkit-backdrop-filter: blur(40px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(5,5,8,0.85);
    border-bottom-color: var(--border-hover);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo:hover { text-decoration: none; }

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #000;
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.3));
    border-radius: inherit;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
}
.logo-text .accent { color: var(--accent); }

nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out-quart);
    letter-spacing: 0.01em;
}
nav a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}

.cart-link {
    background: rgba(0,255,136,0.08) !important;
    border: 1px solid rgba(0,255,136,0.15);
    color: var(--accent) !important;
}
.cart-link:hover {
    background: rgba(0,255,136,0.15) !important;
    border-color: rgba(0,255,136,0.3) !important;
}

.cart-badge {
    background: var(--accent);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 100px;
    margin-left: 4px;
    font-family: var(--font-mono);
}

/* ══════════════════════
   MAIN CONTAINER
   ══════════════════════ */
main {
    flex: 1;
    width: 100%;
    padding-top: 72px; /* header height */
}

/* ══════════════════════
   CINEMATIC HERO
   ══════════════════════ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 40px 80px;
}

/* Particle canvas */
.hero canvas#hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    height: 80vh;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,255,136,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 30% 50%, rgba(139,92,246,0.05) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0,255,136,0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Animated grid background */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: gridFloat 20s linear infinite;
}

/* Hero device showcase */
.hero-device {
    position: relative;
    z-index: 1;
    margin-bottom: -40px;
    animation: fadeInUp 1.2s var(--ease-out-expo) 0s both;
}

.hero-device-img {
    width: 420px;
    max-width: 70vw;
    filter: drop-shadow(0 40px 80px rgba(0,255,136,0.2)) drop-shadow(0 20px 40px rgba(0,0,0,0.6));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes gridFloat {
    from { transform: translateY(0); }
    to { transform: translateY(80px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content .hero-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    padding: 6px 16px;
    border: 1px solid rgba(0,255,136,0.2);
    border-radius: 100px;
    background: rgba(0,255,136,0.04);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-content h1 .accent-word {
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

.hero-content .btn { animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both; }

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s both;
}

.hero-scroll-indicator .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ══════════════════════
   REVEAL ANIMATIONS
   ══════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════
   SECTIONS & TITLES
   ══════════════════════ */
.featured, .all-products {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-top: 12px;
    border-radius: 2px;
}

.cat-title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 48px 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ══════════════════════
   PRODUCT CARDS
   ══════════════════════ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: all 0.5s var(--ease-out-expo);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card:hover {
    border-color: rgba(0,255,136,0.2);
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.4),
        0 0 0 1px rgba(0,255,136,0.1),
        0 0 80px rgba(0,255,136,0.05);
    text-decoration: none;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,255,136,0.02) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover::before { opacity: 1; }

/* Shimmer glare sweep on hover */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transition: none;
    pointer-events: none;
    z-index: 2;
}
.product-card:hover::after {
    animation: shimmerSweep 0.8s ease-out forwards;
}
@keyframes shimmerSweep {
    from { left: -100%; }
    to { left: 200%; }
}

.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    z-index: 5;
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px rgba(0,255,136,0.3);
}

.product-image {
    height: 260px;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--surface) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Ambient glow behind product placeholder */
.product-image::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0,255,136,0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
}

.product-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--purple-dim), var(--accent-soft));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #000;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.5s var(--ease-out-expo);
}

.product-card:hover .product-placeholder {
    transform: translateY(-4px) scale(1.05);
}

.product-placeholder-lg {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--purple-dim), var(--accent-soft));
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    color: #000;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.product-placeholder-sm {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--purple-dim), var(--accent-soft));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #000;
}

/* Product real images */
.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    position: relative;
    z-index: 1;
    transition: transform 0.5s var(--ease-out-expo);
}

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

.product-img-lg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 32px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

.product-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.tagline {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 16px;
    font-weight: 400;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
}

.price {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.compare-price {
    font-size: 14px;
    color: var(--text-dim);
    text-decoration: line-through;
}

.price-row.big { margin: 16px 0; }
.price-row.big .price { font-size: 32px; }

.save-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    background: rgba(239,68,68,0.15);
    color: var(--red);
    padding: 3px 8px;
    border-radius: 100px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ══════════════════════
   BUTTONS — PREMIUM
   ══════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    text-decoration: none;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--accent);
    color: #000;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    background: #1aff99;
    box-shadow:
        0 0 40px rgba(0,255,136,0.25),
        0 8px 32px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,255,136,0.04);
}
.btn-ghost.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,255,136,0.06);
}

.btn-lg { padding: 18px 40px; font-size: 15px; }
.btn-block { width: 100%; text-align: center; }

.btn-icon {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}
.btn-icon:hover {
    color: var(--red);
    border-color: rgba(239,68,68,0.3);
    background: rgba(239,68,68,0.06);
}

/* ══════════════════════
   PRODUCT DETAIL PAGE
   ══════════════════════ */
.product-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 32px;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.back-link:hover {
    color: var(--accent);
    border-color: rgba(0,255,136,0.2);
    background: rgba(0,255,136,0.04);
    text-decoration: none;
}

.product-detail {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
    align-items: start;
}

.product-gallery {
    position: relative;
}

.product-image-large {
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--surface) 100%);
    border: 1px solid var(--border);
    border-radius: 28px;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Ambient light effect */
.product-image-large::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,255,136,0.06) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
}

.product-meta {
    padding-top: 20px;
    position: sticky;
    top: 100px;
}

.product-meta .badge {
    position: static;
    display: inline-block;
    margin-bottom: 16px;
}

.product-meta h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.product-meta .tagline {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 300;
}

.stock {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    margin: 12px 0;
    padding: 6px 14px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.in-stock {
    color: var(--accent);
    background: rgba(0,255,136,0.06);
    border: 1px solid rgba(0,255,136,0.15);
}
.in-stock::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}
.out-of-stock {
    color: var(--red);
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.15);
}

.shipping-note {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 16px;
}

.add-to-cart-form {
    margin: 24px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.qty-row label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
}
.qty-row select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2355556a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.product-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.product-description h2,
.product-specs h2 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.product-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
    font-weight: 300;
}

/* Specs as elegant grid */
.product-specs .specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.specs-table tr:hover {
    background: rgba(255,255,255,0.02);
}
.specs-table td {
    padding: 14px 0;
    font-size: 14px;
}
.spec-key {
    color: var(--text-dim);
    width: 35%;
    font-weight: 400;
}

/* ══════════════════════
   CART — MINIMAL LUXURY
   ══════════════════════ */
.cart-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.cart-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 40px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}
.cart-item:hover { border-color: var(--border-hover); }

.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 15px; font-weight: 600; }
.cart-item-price { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.cart-item-qty {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 13px;
}
.cart-item-total {
    font-family: var(--font-mono);
    font-weight: 600;
    min-width: 80px;
    text-align: right;
    font-size: 15px;
}

.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    margin-top: 32px;
    max-width: 420px;
    margin-left: auto;
}

.cart-total, .cart-shipping, .cart-grand-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-grand-total {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 16px 0 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.cart-shipping.free span:last-child { color: var(--accent); }

.cart-summary .btn { margin-bottom: 10px; }

/* ══════════════════════
   CHECKOUT
   ══════════════════════ */
.checkout-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.checkout-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 48px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.checkout-items {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
}

.checkout-items h2 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: 700;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

.checkout-action {
    position: sticky;
    top: 100px;
}

.checkout-action h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.checkout-action p {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ══════════════════════
   ORDER SUCCESS
   ══════════════════════ */
.success-page, .empty-state {
    text-align: center;
    padding: 120px 40px;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(0,255,136,0.08);
    border: 1px solid rgba(0,255,136,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.1); }
    50% { box-shadow: 0 0 0 20px rgba(0,255,136,0); }
}

.success-page h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.success-page p { color: var(--text-secondary); }

.session-id code {
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 8px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

/* ══════════════════════
   KNOWLEDGE BASE
   ══════════════════════ */
.kb-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.kb-header {
    text-align: center;
    margin-bottom: 60px;
}
.kb-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.search-bar {
    display: flex;
    max-width: 540px;
    margin: 0 auto;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px;
    transition: border-color 0.3s;
}
.search-bar:focus-within {
    border-color: rgba(0,255,136,0.3);
    box-shadow: 0 0 0 4px rgba(0,255,136,0.05);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 20px;
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    outline: none;
}

.search-bar .btn {
    border-radius: 100px !important;
}

.kb-category { margin-bottom: 48px; }

.kb-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.kb-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s var(--ease-out-expo);
    text-decoration: none;
    color: var(--text);
}
.kb-card:hover {
    border-color: rgba(0,255,136,0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    text-decoration: none;
}

.kb-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.kb-cat-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--purple);
    background: var(--purple-glow);
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.kb-contact {
    text-align: center;
    margin-top: 60px;
    padding: 48px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
}
.kb-contact h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.kb-contact .btn { margin: 0 6px; }

.kb-article { margin-bottom: 48px; }

.kb-article-header { margin-bottom: 32px; }
.kb-article-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.kb-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    line-height: 1.8;
    font-size: 15px;
    color: var(--text-secondary);
}
.kb-content h1 { font-size: 1.5rem; margin: 32px 0 16px; color: var(--text); font-weight: 700; }
.kb-content h2 { font-size: 1.3rem; margin: 28px 0 12px; color: var(--text); font-weight: 700; }
.kb-content h3 { font-size: 1.1rem; margin: 20px 0 8px; color: var(--text); font-weight: 600; }
.kb-content p { margin-bottom: 16px; }
.kb-content ul { padding-left: 24px; margin-bottom: 16px; }
.kb-content li { margin-bottom: 6px; }
.kb-content strong { color: var(--text); font-weight: 600; }
.kb-content a { color: var(--accent); border-bottom: 1px solid rgba(0,255,136,0.2); }
.kb-content a:hover { border-bottom-color: var(--accent); }
.kb-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
}
.kb-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
.kb-content hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

.kb-related { margin-top: 48px; }
.kb-related h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }

/* ══════════════════════
   TICKETS
   ══════════════════════ */
.ticket-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}
.ticket-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}
.ticket-page > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 300;
}

.ticket-form, .lookup-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(0,255,136,0.3);
    box-shadow: 0 0 0 4px rgba(0,255,136,0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lookup-form .form-row {
    display: flex;
    gap: 8px;
}

.lookup-input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 14px 20px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}
.lookup-input:focus { border-color: rgba(0,255,136,0.3); }

.ticket-key {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 12px;
    color: var(--accent);
}

.ticket-detail {
    margin-top: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ticket-header h2 { font-size: 1.3rem; font-weight: 700; }

.ticket-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-dim);
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.status-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-open { background: rgba(234,179,8,0.1); color: var(--yellow); border: 1px solid rgba(234,179,8,0.2); }
.status-pending { background: rgba(234,179,8,0.1); color: var(--yellow); border: 1px solid rgba(234,179,8,0.2); }
.status-paid { background: rgba(34,197,94,0.1); color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.status-answered { background: rgba(139,92,246,0.1); color: var(--purple); border: 1px solid rgba(139,92,246,0.2); }
.status-shipped { background: rgba(0,255,136,0.08); color: var(--accent); border: 1px solid rgba(0,255,136,0.15); }
.status-delivered { background: rgba(34,197,94,0.1); color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.status-closed { background: rgba(85,85,106,0.1); color: var(--text-dim); border: 1px solid rgba(85,85,106,0.2); }
.status-refunded { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.status-cancelled { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }

.ticket-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-msg {
    padding: 16px;
    border-radius: 16px;
    max-width: 85%;
}

.from-customer {
    background: var(--surface-2);
    border: 1px solid var(--border);
    align-self: flex-start;
}

.from-admin {
    background: rgba(0,255,136,0.03);
    border: 1px solid rgba(0,255,136,0.12);
    align-self: flex-end;
}

.msg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}
.msg-header strong { color: var(--accent); font-weight: 600; }
.msg-time { color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; }
.msg-body { font-size: 14px; white-space: pre-wrap; line-height: 1.7; color: var(--text-secondary); }

/* ══════════════════════
   ADMIN
   ══════════════════════ */
.admin-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
}

.admin-section h2 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.admin-section h3 {
    font-size: 0.9rem;
    margin: 20px 0 12px;
    color: var(--text-dim);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.3s;
}
.stat-card:hover { border-color: var(--border-hover); }

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.admin-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.admin-table a { color: var(--accent); }
.admin-table a:hover { text-decoration: underline; }

.detail-table {
    width: 100%;
    font-size: 14px;
    margin-bottom: 24px;
}
.detail-table td {
    padding: 10px 0;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}
.detail-table td:first-child {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.5px;
    width: 160px;
    text-transform: uppercase;
}
.detail-table code {
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 6px;
    word-break: break-all;
}

.status-buttons { display: flex; gap: 8px; }

.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}
.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 400px;
}
.login-card h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
}

/* ══════════════════════
   FOOTER — GRAND CLOSING
   ══════════════════════ */
footer {
    background: var(--bg-elevated);
    border-top: none;
    margin-top: auto;
    padding: 0 0 40px;
    position: relative;
}

.footer-strip {
    position: relative;
    width: 100%;
    line-height: 0;
    margin-bottom: -1px;
}

.footer-strip img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.footer-strip-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, var(--bg-elevated) 0%, transparent 25%, transparent 50%, var(--bg-elevated) 85%, var(--bg-elevated) 100%),
        linear-gradient(135deg, rgba(0,0,0,0.3) 0%, transparent 50%, rgba(0,0,0,0.3) 100%);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    padding: 48px 40px;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 20px;
}
.footer-col p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    font-weight: 300;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 10px;
    transition: color 0.3s;
    font-weight: 400;
}
.footer-col a:hover { color: var(--accent); text-decoration: none; }

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    margin: 0 40px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-dim);
    max-width: 1400px;
    margin: 0 auto;
}

/* ══════════════════════
   CHAT FAB
   ══════════════════════ */
.chat-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 32px rgba(0,255,136,0.25),
        0 0 0 0 rgba(0,255,136,0.1);
    transition: all 0.4s var(--ease-out-expo);
    z-index: 1000;
}
.chat-fab:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0,255,136,0.35),
        0 0 0 8px rgba(0,255,136,0.05);
}

/* ══════════════════════
   FLASH MESSAGES
   ══════════════════════ */
.flash-messages {
    max-width: 600px;
    margin: 24px auto 0;
    padding: 0 40px;
}

.flash {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.flash-success {
    background: rgba(0,255,136,0.06);
    color: var(--accent);
    border: 1px solid rgba(0,255,136,0.15);
}

.flash-error {
    background: rgba(239,68,68,0.06);
    color: var(--red);
    border: 1px solid rgba(239,68,68,0.15);
}

/* ══════════════════════
   RESPONSIVE
   ══════════════════════ */
@media (max-width: 1024px) {
    .product-detail { grid-template-columns: 1fr; gap: 40px; }
    .product-sections { grid-template-columns: 1fr; gap: 40px; }
    .product-image-large { height: 400px; }
    .product-meta { position: static; }
    .checkout-layout { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    header { padding: 0 20px; height: 64px; }
    main { padding-top: 64px; }

    .hero { min-height: 80vh; padding: 100px 24px 60px; }
    .hero-content h1 { letter-spacing: -1px; }
    .hero-device-img { width: 280px; }

    .featured, .all-products { padding: 60px 20px; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .product-image { height: 200px; }
    .product-placeholder { width: 72px; height: 72px; font-size: 24px; }

    .product-page { padding: 24px 20px 60px; }
    .product-image-large { height: 300px; }

    .cart-page { padding: 40px 20px 60px; }
    .checkout-page { padding: 40px 20px 60px; }
    .kb-page { padding: 40px 20px 60px; }
    .ticket-page { padding: 40px 20px 60px; }
    .admin-page { padding: 24px 20px 60px; }
    .admin-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }

    nav a:not(.cart-link) { display: none; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
}

/* ── Batch Pricing ── */
.batch-phase-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.phase-note {
    font-size: 0.9em;
    margin: 4px 0 8px;
}

.batch-stock {
    font-size: 0.85em;
    color: #888;
    margin: 4px 0;
}

.soldout-notice {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
}

/* ── Legal Pages ── */

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.legal-page h1 {
    font-size: 2em;
    margin-bottom: 8px;
}

.legal-page .legal-updated {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 32px;
}

.legal-page section {
    margin-bottom: 28px;
}

.legal-page h2 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--accent);
}

.legal-page h3 {
    font-size: 1.1em;
    margin: 12px 0 6px;
}

.legal-page ul {
    padding-left: 20px;
    margin: 8px 0;
}

.legal-page li {
    margin-bottom: 6px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-page p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-page a {
    color: var(--accent);
}

/* ── Error Pages ── */

.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    font-size: 6em;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.error-page h2 {
    font-size: 1.5em;
    margin-bottom: 12px;
}

.error-page p {
    color: #888;
    margin-bottom: 24px;
}

/* ── Footer ABN ── */

.footer-col .abn {
    font-size: 0.8em;
    color: #666;
    margin-top: 8px;
}

/* ── Nav Search ── */

.nav-search {
    display: inline-block;
    margin-right: 8px;
}

.nav-search input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    color: var(--text);
    padding: 6px 14px;
    font-size: 0.85em;
    width: 160px;
    transition: all 0.2s;
}

.nav-search input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
    width: 220px;
}

.nav-search input::placeholder {
    color: #666;
}

/* ── Search Results ── */

.search-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.search-page h1 {
    font-size: 1.8em;
    margin-bottom: 4px;
}

.search-page .result-count {
    color: #888;
    margin-bottom: 24px;
}

/* ── Track Order ── */

.track-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.track-page h1 {
    font-size: 1.8em;
    margin-bottom: 8px;
}

.track-page > p {
    color: #888;
    margin-bottom: 24px;
}

.track-form .form-row {
    display: flex;
    gap: 8px;
}

.track-input {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 12px 16px;
    font-size: 1em;
}

.track-input:focus {
    outline: none;
    border-color: var(--accent);
}

.track-result {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.track-header h2 {
    margin: 0;
}

.track-details {
    margin-bottom: 16px;
}

.track-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: var(--text-secondary);
}

.track-detail-row span:first-child {
    color: #888;
}

.tracking-num {
    color: var(--accent) !important;
    font-family: var(--font-mono);
}

.track-status-msg {
    margin-top: 16px;
    padding: 12px;
    background: rgba(0,255,136,0.05);
    border: 1px solid rgba(0,255,136,0.15);
    border-radius: 8px;
    color: var(--text-secondary);
}

/* ── Admin Table Footer ── */

.admin-table tfoot td {
    padding: 10px 12px;
    border-top: 2px solid rgba(255,255,255,0.1);
}

/* ── Admin Form ── */

.admin-form {
    max-width: 700px;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-form small {
    display: block;
    color: #666;
    margin-top: 4px;
    font-size: 0.8em;
}

.admin-form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.admin-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* ── Auth Pages ── */

.auth-page {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    font-size: 1.6em;
    margin-bottom: 4px;
}

.auth-subtitle {
    color: #888;
    margin-bottom: 24px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.auth-form input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 10px 14px;
    font-size: 1em;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 0.9em;
}

.auth-link a {
    color: var(--accent);
}

/* ── Account Page ── */

.account-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.account-header h1 {
    font-size: 1.8em;
}

.address-display p {
    margin: 2px 0;
    color: var(--text-secondary);
}

/* ── Nav Account ── */

.nav-account {
    font-size: 0.85em;
    color: var(--text-secondary) !important;
}

/* ── Hamburger ── */

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-quart);
}

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

/* ── Mobile Nav ── */

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-out-expo);
    overflow-y: auto;
    padding: 80px 24px 40px;
}

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

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-search input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 10px 14px;
    font-size: 1em;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.mobile-search input:focus {
    outline: none;
    border-color: var(--accent);
}

.mobile-nav-inner a {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 1em;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-nav-inner a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.mobile-cart {
    color: var(--accent) !important;
    border: 1px solid rgba(0,255,136,0.15);
    margin-top: 8px;
}

.mobile-signout {
    color: var(--red) !important;
    font-size: 0.9em;
}

/* ── Image Lightbox ── */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Newsletter ── */

.newsletter-section {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(0,255,136,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-section h2 {
    font-size: 1.8em;
    margin-bottom: 8px;
    position: relative;
}

.newsletter-section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 12px 16px;
    font-size: 1em;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.newsletter-form button {
    white-space: nowrap;
}

.newsletter-msg {
    margin-top: 12px;
    font-size: 0.9em;
    color: var(--accent);
}

/* ── Social Proof ── */

.trust-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 32px 20px;
    flex-wrap: wrap;
    background: linear-gradient(180deg, transparent 0%, rgba(0,255,136,0.02) 50%, transparent 100%);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9em;
    padding: 10px 20px;
    border-radius: 100px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.trust-item:hover {
    border-color: rgba(0,255,136,0.15);
    background: rgba(0,255,136,0.03);
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.sold-counter {
    display: inline-block;
    background: rgba(0,255,136,0.08);
    border: 1px solid rgba(0,255,136,0.15);
    color: var(--accent);
    font-size: 0.8em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 8px;
}

/* ── Cart Recovery Prompt ── */

.cart-recovery-banner {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--surface-2);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 900;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transition: transform 0.4s var(--ease-out-expo);
    max-width: 90vw;
}

.cart-recovery-banner.visible {
    transform: translateX(-50%) translateY(0);
}

.cart-recovery-banner p {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin: 0;
}

.cart-recovery-banner .btn {
    font-size: 0.85em;
    padding: 8px 16px;
    white-space: nowrap;
}

.cart-recovery-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2em;
    padding: 4px;
    line-height: 1;
}

/* ── Responsive: Mobile nav ── */

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .mobile-nav-inner { gap: 2px; }
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
    .trust-bar {
        gap: 16px;
    }
}

/* ══════════════════════
   CRT SCAN-LINE OVERLAY
   ══════════════════════ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.015) 2px,
        rgba(0, 0, 0, 0.015) 4px
    );
    opacity: 0.4;
}

/* ══════════════════════
   ENHANCED BUTTON GLOW
   ══════════════════════ */
.btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px rgba(0,255,136,0.1);
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    background: #1aff99;
    box-shadow:
        0 0 60px rgba(0,255,136,0.3),
        0 0 120px rgba(0,255,136,0.1),
        0 8px 32px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

/* ══════════════════════
   FOOTER ENHANCED ACCENT
   ══════════════════════ */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--purple), transparent);
}

/* ══════════════════════
   SECTION DIVIDER GLOW
   ══════════════════════ */
.featured::before, .all-products::before {
    content: '';
    display: block;
    max-width: 200px;
    height: 1px;
    margin: 0 auto 80px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

/* ══════════════════════
   HERO ACCENT ANIMATION
   ══════════════════════ */
.hero-content h1 .accent-word {
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 50%, var(--accent) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ══════════════════════
   ENHANCED CARD AMBIENT
   ══════════════════════ */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: all 0.5s var(--ease-out-expo);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card:hover {
    border-color: rgba(0,255,136,0.25);
    transform: translateY(-8px);
    box-shadow:
        0 24px 80px rgba(0,0,0,0.5),
        0 0 0 1px rgba(0,255,136,0.15),
        0 0 120px rgba(0,255,136,0.06);
    text-decoration: none;
}

/* ══════════════════════
   CHAT FAB PULSE
   ══════════════════════ */
.chat-fab {
    animation: chatPulse 3s ease-in-out infinite;
}

@keyframes chatPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(0,255,136,0.25), 0 0 0 0 rgba(0,255,136,0.1); }
    50% { box-shadow: 0 8px 32px rgba(0,255,136,0.25), 0 0 0 12px rgba(0,255,136,0); }
}
