:root {
  --ink: #161616;
  --muted: #4e4a45;
  --paper: #f6f3ec;
  --card: #fffdf8;
  --line: #e3dcd0;
  --red: #c8102e;
  --red-dark: #8e0b1f;
  --blue: #1e4e96;
  --blue-dark: #14366a;
  --black: #0e0e0e;
  --white: #ffffff;
  --warn-bg: #fff4d8;
  --warn: #6d4a00;
  --note-bg: #eef3f8;
  --shadow: 0 12px 30px rgba(20, 16, 12, 0.06);
  --radius: 16px;
  --max: 1120px;
  --tap: 44px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: var(--blue-dark); }

a:hover { color: var(--red); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; }

h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 0.4em; }

h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); }

p { margin: 0 0 0.8em; }

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 50;
}

.skip:focus { top: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

#site-header { background: var(--black); color: var(--white); }

.topbar {
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.92rem;
}

.topbar p { display: inline; margin: 0; }

.topbar a { color: var(--white); }

.header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}

.brand img { width: 168px; height: auto; display: block; }

.brand-text { display: flex; flex-direction: column; }

.brand-text strong { font-size: 1.05rem; }

.brand-text small { color: #d9d3c7; }

.search { display: flex; gap: 8px; min-width: 0; }

.search input,
.contact-form input,
.contact-form textarea,
.filters select,
.share-box {
  width: 100%;
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
}

.header-actions { display: flex; gap: 8px; align-items: center; }

.list-link,
.site-nav a,
.nav-toggle {
  color: var(--white);
  text-decoration: none;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
}

.list-link { background: var(--red); font-weight: 700; }

.count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4em;
  margin-left: 6px;
  background: var(--white);
  color: var(--red);
  border-radius: 999px;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  padding: 0 0 12px;
}

.site-nav a[aria-current="page"] { outline: 2px solid var(--white); }

.stripe { height: 6px; background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%); }

.hero { padding: 48px 0 12px; }

.lede { font-size: 1.15rem; max-width: 42rem; }

.kicker, .eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
}

.eyebrow { color: var(--blue); }

.actions, .link-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  background: transparent;
}

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-secondary { background: var(--blue); color: var(--white); }
.btn-secondary:hover { background: var(--blue-dark); color: var(--white); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.cats, .grid, .reasons, .footer-grid {
  display: grid;
  gap: 16px;
}

.cats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 8px 0 28px; }

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.cat-card:hover { border-color: var(--red); color: var(--ink); }

.icon { width: 42px; height: 42px; color: var(--blue); }
.icon svg { width: 42px; height: 42px; display: block; }

.grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 28px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}

.card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f3efe6;
  border-radius: calc(var(--radius) - 4px);
  display: block;
}

.product-hero {
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f3efe6;
  border-radius: var(--radius);
  display: block;
  margin: 0 0 12px;
}

.card h2, .card h3 { margin: 0; font-size: 1.15rem; }
.card h2 a, .card h3 a { color: inherit; text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--red); }
.summary { color: var(--muted); flex: 1; }
.fine { color: var(--muted); font-size: 0.92rem; }
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.card-actions .btn { text-decoration: none; }

.page-intro { padding-top: 28px; }

.crumbs { font-size: 0.92rem; margin-bottom: 12px; }
.crumbs a { text-decoration: none; }

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
  margin: 8px auto 18px;
}

.filters label, .contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.check { flex-direction: row; align-items: center; min-height: var(--tap); }

.note {
  background: var(--note-bg);
  border-radius: 12px;
  padding: 12px 14px;
}

.note-warn { background: var(--warn-bg); color: var(--warn); }

.product-layout {
  display: grid;
  gap: 20px;
  padding-top: 28px;
  margin-bottom: 20px;
}

.buybox, .stack { display: flex; flex-direction: column; gap: 8px; }
.buybox {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  align-self: start;
}
.buybox .btn, .stack .btn { width: 100%; }

.specs { width: 100%; border-collapse: collapse; margin: 12px 0 18px; }
.specs th, .specs td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 34%; }

.reasons { margin-bottom: 28px; }
.reasons article, .shop-band { background: var(--card); border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }
.shop-band { background: var(--black); color: var(--white); border: 0; border-radius: 0; margin-top: 12px; }
.shop-band a { color: var(--white); }

.prose { padding-top: 28px; padding-bottom: 36px; max-width: 860px; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35em 0; }

details { border-bottom: 1px solid var(--line); padding: 8px 0; }
summary { cursor: pointer; font-weight: 700; min-height: var(--tap); display: flex; align-items: center; }

.list-row { border-bottom: 1px solid var(--line); padding: 16px 0; }
.qty { display: flex; gap: 8px; align-items: center; }
.qty button { min-width: var(--tap); min-height: var(--tap); border-radius: 10px; border: 1px solid var(--line); background: var(--card); }

.empty { padding: 12px 0 20px; }

.footer-grid { padding: 28px 0; }
.footer-grid h2 { font-size: 1rem; }
.footer-grid a { text-decoration: none; }
#site-footer { border-top: 1px solid var(--line); margin-top: 12px; }
#site-footer .fine { padding-bottom: 24px; }

.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--black);
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar a {
  flex: 1;
  color: var(--white);
  text-decoration: none;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.tabbar a[aria-current="page"] { color: #ffd0d6; }

.noscript {
  margin: 16px;
  padding: 12px;
  background: var(--warn-bg);
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.topbar :focus-visible,
.header-main :focus-visible,
.site-nav :focus-visible,
.tabbar :focus-visible,
.shop-band :focus-visible { outline-color: var(--white); }

@media (min-width: 901px) {
  .product-layout { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr); }
  .buybox { position: sticky; top: 16px; }
  .reasons { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .hero { padding: 72px 0 20px; }
}

@media (max-width: 900px) {
  .header-main { grid-template-columns: minmax(0, 1fr) auto; width: min(var(--max), calc(100% - 24px)); }
  .search { grid-column: 1 / -1; }
  .brand img { width: 120px; }
  .brand-text small { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; flex-direction: column; width: min(var(--max), calc(100% - 24px)); padding-bottom: 16px; }
  .site-nav.is-open { display: flex; }
  .tabbar { display: flex; }
  body { padding-bottom: 64px; }
  .list-link span:not(.count) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .topbar, .search, .nav-toggle, .site-nav, .tabbar, .stripe, .header-actions { display: none !important; }
  body { background: white; padding: 0; }
  .card, .buybox { box-shadow: none; }
}
