/* Layout: sticky header + trust bar, full-bleed hero banner, feature strip,
   product grid with spec tags, trust-building footer. Single dark theme by
   deliberate brand choice (teal filament accent on near-black). */
:root {
  --bg: #0a1412;
  --bg-elevated: #0f1c19;
  --card: #122320;
  --card-hover: #16302a;
  --border: #1f3a34;
  --text: #e9f5f1;
  --muted: #8fada5;
  --accent: #2dd4bf;
  --accent-dim: #1c8f80;
  --accent-ink: #052119;
  --secondary: #3a5a63;
  --danger: #ff6b6b;
  --success: #3ddc84;
  --gold: #e8b64a;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  color-scheme: dark;
  font-variant-numeric: tabular-nums;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  margin: 0 0 .4em;
  letter-spacing: -0.01em;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* Utility trust bar */
.utility-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: .78rem;
  color: var(--muted);
}
.utility-bar .wrap {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 7px 20px;
  flex-wrap: wrap;
}
.utility-bar span { display: inline-flex; align-items: center; gap: 6px; }
.utility-bar svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--accent); }

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 16, 14, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand span.by { color: var(--muted); font-weight: 600; }
.brand span.hand { color: var(--accent); }

nav.main { display: flex; gap: 22px; align-items: center; }
nav.main a { color: var(--muted); text-decoration: none; font-size: .92rem; }
nav.main a:hover { color: var(--text); }

.cart-btn {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  cursor: pointer;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}
.cart-btn:hover { background: var(--card-hover); border-color: var(--accent-dim); }
.cart-btn svg { width: 16px; height: 16px; }
.cart-count {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: .72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-family: var(--font-mono);
}

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(8,16,14,0.65) 0%, rgba(8,16,14,0.88) 55%, var(--bg) 100%),
    var(--hero-image, none);
  background-size: cover;
  background-position: center 30%;
  filter: saturate(0.85);
}
.hero .wrap { position: relative; max-width: 760px; text-align: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--accent-dim);
  background: rgba(45,212,191,0.08);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; }
.hero p { color: var(--muted); max-width: 46ch; margin: 0 auto; font-size: 1.08rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { background: #3ee5cf; }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.secondary:hover { background: var(--card); border-color: var(--accent-dim); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; justify-content: center; }

/* Feature strip */
section.features { padding: 52px 0; border-bottom: 1px solid var(--border); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature-item { text-align: center; }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-item h3 { font-size: .98rem; margin-bottom: 6px; }
.feature-item p { color: var(--muted); font-size: .85rem; margin: 0; line-height: 1.5; }

/* Product grid */
section.products { padding: 60px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 { font-size: 1.5rem; }
.section-head p { color: var(--muted); margin: 0; font-size: .9rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  position: relative;
}
.product-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.product-media {
  aspect-ratio: 1;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.product-body h3 { font-size: 1.02rem; margin: 0; }
.product-body p { color: var(--muted); font-size: .87rem; margin: 0; flex: 1; line-height: 1.5; }
.spec-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.spec-tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
}
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.price { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--accent); }
.add-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  cursor: pointer;
  font-size: .85rem;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.add-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(45,212,191,0.08); }
.add-btn svg { width: 14px; height: 14px; }

.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

/* Cart drawer */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(5, 10, 9, .65);
  z-index: 40;
  display: none;
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(400px, 100vw);
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  z-index: 41;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .2s ease;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cart-head strong { font-family: var(--font-display); }
.cart-head button { background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 14px; }
.cart-line { display: flex; gap: 12px; align-items: center; }
.cart-line img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--card); }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info .name { font-size: .9rem; font-weight: 600; }
.cart-line-info .meta { font-size: .8rem; color: var(--muted); font-family: var(--font-mono); }
.qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty-controls button {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer;
}
.cart-foot { border-top: 1px solid var(--border); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.cart-ship-line { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; padding-top: 10px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; font-family: var(--font-mono); }
.cart-secure { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .76rem; justify-content: center; }
.cart-secure svg { width: 12px; height: 12px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--card);
  border: 1px solid var(--accent-dim);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* Legal placeholder banner */
.legal-banner {
  background: rgba(232, 182, 74, .1);
  border: 1px solid #c99a3a;
  color: #e9c27a;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .9rem;
  margin-bottom: 28px;
}

.legal-page { padding: 48px 0; max-width: 780px; margin: 0 auto; }
.legal-page dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; }
.legal-page dt { color: var(--muted); }
.legal-page .fillme { color: var(--danger); font-style: italic; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; padding: 52px 0; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.panel h2 { font-size: 1.15rem; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .85rem; color: var(--muted); }
.field input, .field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: .95rem;
  font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.pay-options { display: flex; gap: 12px; margin-top: 18px; }
.pay-option {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
}
.pay-option.active { border-color: var(--accent); color: var(--accent); background: rgba(45,212,191,0.06); }
.summary-ship { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; color: var(--muted); }
.summary-total-row { display: flex; justify-content: space-between; margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; font-weight: 700; font-size: 1.1rem; font-family: var(--font-mono); }

footer.site {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.footer-trust {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-trust span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; }
.footer-trust svg { width: 18px; height: 18px; color: var(--accent); }
footer.site .wrap.foot-main { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 22px 20px; color: var(--muted); font-size: .85rem; }
footer.site a { color: var(--muted); text-decoration: none; margin-right: 16px; }
footer.site a:hover { color: var(--text); }

@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .utility-bar .wrap { gap: 14px; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
}
