/* Gadgetrix hub — dark, minimalist, mobile-first. No external requests. */

:root {
  --bg: #0b0f14;
  --surface: #11161d;
  --surface-2: #161c25;
  --border: #222c38;
  --text: #e6edf3;
  --muted: #8b98a5;
  --accent: #58a6ff;
  --accent-ink: #041022;
  --success: #3fb950;
  --danger: #f85149;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1080px;
  --gap: 20px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 18px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 15, 20, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; }
.brand-name { font-size: 1.12rem; letter-spacing: -0.02em; }

.nav { margin-left: auto; min-width: 0; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-link {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 8px 12px; min-height: 40px;
  color: var(--muted); font-size: .93rem; font-weight: 500;
  border-radius: 999px; border: 1px solid transparent;
}
.nav-link:hover { color: var(--text); text-decoration: none; background: var(--surface); }
.nav-link.is-active { color: var(--text); background: var(--surface); border-color: var(--border); }
.nav-track {
  color: var(--text); background: var(--surface-2); border-color: var(--border);
}
.nav-track:hover { border-color: var(--accent); }

/* ---------- Layout helpers ---------- */
main { flex: 1 0 auto; }
.section { padding-block: 42px; }
.section-head { margin-bottom: 22px; }
.section-head .eyebrow { color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding-block: 48px 34px; }
.hero h1 { max-width: 15ch; }
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 52ch; margin-bottom: 20px; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; font-size: .85rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
.chip svg { flex: none; color: var(--success); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font-size: 1rem; font-weight: 600; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #79b8ff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--text); }
.btn-block { width: 100%; }

/* ---------- Featured product ---------- */
.feature-card {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.feature-media { position: relative; background: var(--surface-2); aspect-ratio: 4 / 3; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.feature-body { padding: 22px; }
.feature-body h3 { font-size: 1.35rem; margin-bottom: 4px; }
.feature-tagline { color: var(--muted); margin-bottom: 14px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.price { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.mrp { color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.save { color: var(--success); font-size: .85rem; font-weight: 600; }
.feature-note { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }

/* ---------- Category tiles ---------- */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile {
  display: block; padding: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text);
  transition: border-color .15s ease, background-color .15s ease;
}
.tile:hover { text-decoration: none; border-color: var(--accent); background: var(--surface-2); }
.tile h3 { margin-bottom: 4px; }
.tile p { color: var(--muted); font-size: .88rem; margin: 0; }
.tile .tile-cta { display: inline-block; margin-top: 12px; color: var(--accent); font-size: .85rem; font-weight: 600; }

/* ---------- Why buy direct ---------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.why-item {
  padding: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.why-item .why-icon { color: var(--accent); margin-bottom: 8px; }
.why-item h3 { font-size: 1rem; margin-bottom: 4px; }
.why-item p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Product grid (category pages) ---------- */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s ease;
}
.product-card:hover { border-color: var(--accent); }
.product-card a.pc-link { color: inherit; }
.product-card a.pc-link:hover { text-decoration: none; }
.pc-media { background: var(--surface-2); aspect-ratio: 1 / 1; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.pc-body h3 { font-size: 1.05rem; margin: 0; }
.pc-tagline { color: var(--muted); font-size: .85rem; margin: 0; }
.pc-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.pc-price { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pc-badge {
  align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.pc-badge.is-soldout { color: var(--danger); }
.pc-badge.is-coming { color: var(--accent); }
.pc-cta { margin-top: 10px; }

/* ---------- Empty state ---------- */
.empty {
  text-align: center; padding: 46px 20px;
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0 auto 18px; max-width: 44ch; }

/* ---------- Prose (about / policy shells) ---------- */
.prose { max-width: 68ch; margin-inline: auto; padding: 28px 18px 48px; }
.prose h1 { margin-bottom: .5em; }
.prose h2 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--text); }
.prose a { text-decoration: underline; }
.prose ul { padding-left: 1.2em; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { padding-block: 34px 24px; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 24px; }
.footer-brand .footer-tagline { color: var(--muted); font-size: .9rem; margin-top: 8px; max-width: 40ch; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav .footer-h { color: var(--text); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.footer-nav a { color: var(--muted); font-size: .9rem; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; align-items: center;
}
.footer-legal { color: var(--muted); font-size: .85rem; margin: 0; }
.footer-legal strong { color: var(--text); font-weight: 600; }
.footer-contact { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 860px) {
  .feature-card { grid-template-columns: 1.05fr 1fr; }
  .feature-media { aspect-ratio: auto; min-height: 100%; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
