:root {
  color-scheme: light;
  --ink: #17181c;
  --muted: #626a76;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e7e9ee;
  --accent: #e8500e;
  --accent-press: #c44108;
  --save: #0a7d33;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  font-size: 16px;
  /* clear the fixed sticky CTA bar */
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.site-header .brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

main { max-width: 680px; margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  padding: 16px 16px 20px;
  text-align: center;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.hero-media {
  background: #fff;
  border-radius: 16px;
  max-width: 300px;
  margin: 0 auto 14px;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.hero h1 {
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 800;
}
.hero-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 auto 16px;
  max-width: 420px;
}

/* ---------- CTA buttons ---------- */
.cta {
  display: block;
  text-align: center;
  padding: 15px 16px;
  min-height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
}
.cta:active { background: var(--accent-press); }
.cta-primary {
  max-width: 320px;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(232, 80, 14, 0.30);
}

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px 12px;
}
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.card:active { border-color: var(--accent); }
.card-media {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.card-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 8px;
}
.save-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--save);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
}
.card-body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-title {
  font-size: 0.82rem;
  line-height: 1.3;
  margin: 0;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.price-row { display: flex; align-items: baseline; gap: 6px; }
.price { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.price-was { font-size: 0.8rem; color: var(--muted); text-decoration: line-through; }
.note { font-size: 0.78rem; color: var(--muted); margin: 0; }
.fit-note { font-size: 0.74rem; color: var(--muted); margin: 0; }
.fit-note strong { color: var(--ink); font-weight: 600; }
.card-cta { margin-top: auto; padding: 11px 12px; min-height: 42px; font-size: 0.9rem; }

/* ---------- Editorial ---------- */
.editorial { padding: 18px 16px; }
.editorial h2 { font-size: 1.02rem; margin: 0 0 6px; }
.editorial p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ---------- Sticky bottom CTA (thumb zone) ---------- */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(245, 246, 248, 0.98) 70%, rgba(245, 246, 248, 0));
  z-index: 90;
}
.cta-sticky {
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(232, 80, 14, 0.35);
}

/* ---------- Hub ---------- */
.hub-intro { padding: 20px 16px 6px; }
.hub-intro h1 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.hub-intro p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px 12px;
}
.hub-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
}
.hub-card:active { border-color: var(--accent); }
.hub-card img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; padding: 10px; border-bottom: 1px solid var(--line); }
.hub-card h2 { font-size: 0.95rem; margin: 9px 11px 2px; }
.hub-card p { font-size: 0.78rem; color: var(--muted); margin: 0 11px 11px; }

/* ---------- Footer ---------- */
.site-footer { padding: 20px 16px 24px; text-align: center; }
.footer-nav a { margin: 0 8px; font-size: 0.84rem; color: var(--muted); text-decoration: none; }
.footer-note { font-size: 0.74rem; color: var(--muted); max-width: 460px; margin: 12px auto 0; }

/* ---------- Cookie banner (top, non-blocking) ---------- */
.cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  z-index: 100;
}
.cookie-banner p { margin: 0; }
.cookie-banner a { color: #ffc9a8; }
.cookie-banner button {
  background: #fff;
  color: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.8rem;
  min-height: 36px;
  flex-shrink: 0;
}
.not-found { padding: 40px 16px; text-align: center; }
