/* ============================================================
   GadgetHub — design tokens
   Subject: precision tech gadgets. Signature: the "spec-strip" —
   product cards carry a monospace datasheet line, like a real
   gadget's spec sheet, instead of a plain caption.
   ============================================================ */
:root {
    --bg: #0F1115;
    --surface: #171A21;
    --surface-2: #1E222B;
    --border: #2A2F3A;
    --text: #EDEFF4;
    --text-dim: #9AA1AF;
    --accent: #C6F135;
    --accent-ink: #0F1115;
    --danger: #FF6B6B;
    --success: #3DDC97;
    --radius: 10px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .4em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-dim); }
.mono { font-family: var(--font-mono); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: 14px;
    padding: 12px 22px; border-radius: 8px; border: 1px solid transparent;
    cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #d4fb4c; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #1a0303; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15,17,21,.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.logo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.cart-pill {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 13px;
}
.cart-pill .count {
    background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono);
    font-size: 11px; min-width: 18px; height: 18px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 56px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; top: -200px; right: -160px; width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(198,241,53,.15), transparent 70%); pointer-events: none;
}
.eyebrow {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent); display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); }
.hero h1 { font-size: 52px; max-width: 680px; line-height: 1.05; }
.hero p.lead { font-size: 17px; max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.hero-stats .stat b { display: block; font-family: var(--font-mono); font-size: 24px; color: var(--accent); }
.hero-stats .stat span { font-size: 12px; color: var(--text-dim); }

/* ---------- Product grid & spec-strip card ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 { font-size: 26px; }
.grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: border-color .15s ease, transform .15s ease;
    display: flex; flex-direction: column;
}
.card:hover { border-color: #3a4150; transform: translateY(-2px); }
.card-media { aspect-ratio: 1 / 1; background: var(--surface-2); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .badge {
    position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--accent-ink);
    font-family: var(--font-mono); font-size: 10px; padding: 3px 8px; border-radius: 4px; letter-spacing: .04em;
}
.card-body { padding: 16px 16px 0; flex: 1; }
.card-body h3 { font-size: 15px; font-weight: 600; }
.card-price { font-family: var(--font-mono); font-size: 17px; color: var(--accent); margin-top: 4px; }
.card-price .was { color: var(--text-dim); text-decoration: line-through; font-size: 13px; margin-left: 6px; }
/* the spec-strip: signature datasheet line along the card bottom */
.spec-strip {
    margin-top: 14px; border-top: 1px dashed var(--border); padding: 10px 16px;
    font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
    display: flex; justify-content: space-between; letter-spacing: .02em;
}
.card-cta { padding: 12px 16px 16px; }

/* ---------- Forms ---------- */
label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
input, select, textarea {
    width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    padding: 12px 14px; border-radius: 8px; font-family: var(--font-body); font-size: 14px; margin-bottom: 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.alert-error { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.3); color: var(--danger); }
.alert-ok { background: rgba(61,220,151,.1); border: 1px solid rgba(61,220,151,.3); color: var(--success); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-mono); }

/* ---------- Status pill / tracking timeline ---------- */
.status-pill { font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.status-pending { background: rgba(154,161,175,.15); color: var(--text-dim); }
.status-paid { background: rgba(198,241,53,.15); color: var(--accent); }
.status-processing { background: rgba(255,193,7,.15); color: #FFC107; }
.status-shipped { background: rgba(87,155,255,.15); color: #579BFF; }
.status-delivered { background: rgba(61,220,151,.15); color: var(--success); }
.status-cancelled { background: rgba(255,107,107,.15); color: var(--danger); }

.timeline { display: flex; justify-content: space-between; position: relative; margin: 40px 0; }
.timeline::before { content: ''; position: absolute; top: 11px; left: 0; right: 0; height: 2px; background: var(--border); }
.timeline-step { position: relative; text-align: center; flex: 1; }
.timeline-step .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border); margin: 0 auto 10px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.timeline-step.done .dot { background: var(--accent); border-color: var(--accent); }
.timeline-step.done .dot::after { content: '✓'; font-size: 12px; color: var(--accent-ink); font-weight: 700; }
.timeline-step span { font-size: 12px; color: var(--text-dim); }
.timeline-step.done span { color: var(--text); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 48px 0; margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; color: var(--text-dim); font-size: 13px; }

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-dim); }
.referral-box { background: var(--surface-2); border: 1px dashed var(--accent); border-radius: 8px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 14px; }

@media (max-width: 720px) {
    .hero h1 { font-size: 34px; }
    .field-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .nav-links { display: none; }
}
