: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); }

a[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.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);
  min-width: 0;
  overflow-wrap: break-word;
}

.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; min-width: 0; }
.card .purchase-handoff { margin-top: 6px; gap: 6px; width: 100%; }
.card .purchase-handoff .btn-buy { min-height: var(--tap); font-size: 0.98rem; }
.card .purchase-handoff > .fine { margin: 0; }
.card .partner-direct-label { margin: 4px 0 0; }
.card .partner-buy-secondary {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  width: 100%;
}
.card .partner-direct {
  padding-inline: 2px;
}
.card .partner-buy .note,
.card .partner-buy p:not(.note) { display: 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-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 18px 16px;
  align-self: start;
  box-shadow: var(--shadow);
  min-width: 0;
  width: 100%;
  gap: 10px;
}
.buybox h2 { margin: 0; font-size: 1.35rem; overflow-wrap: break-word; }
.buybox-lead { margin: 0; color: var(--muted); }
.partner-buy { gap: 10px; margin: 4px 0 2px; min-width: 0; width: 100%; }
.purchase-handoff { gap: 10px; margin: 4px 0 2px; min-width: 0; width: 100%; }
.purchase-handoff > .fine { margin: 0; }
.partner-buy-secondary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  min-width: 0;
  width: 100%;
}
.partner-direct {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  max-width: 100%;
  padding: 4px 0;
  overflow-wrap: anywhere;
}
.partner-direct:hover { color: var(--red-dark); }
.partner-direct-label { margin: 6px 0 0; }
.buybox .btn, .stack .btn, .purchase-handoff > .btn { width: 100%; max-width: 100%; }
.buybox .link-row {
  width: 100%;
  gap: 8px;
  margin: 2px 0 0;
}
.buybox .link-row .btn {
  flex: 1 1 140px;
  min-width: 0;
}
.btn-buy {
  min-height: 48px;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  padding-block: 10px;
  overflow-wrap: anywhere;
}

.confirm-layout {
  display: grid;
  gap: 20px;
  padding-top: 28px;
  margin-bottom: 28px;
  min-width: 0;
}
.confirm-summary {
  display: grid;
  gap: 16px;
  align-items: start;
  min-width: 0;
}
.confirm-summary > div { min-width: 0; }
.confirm-media {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--card);
}
.confirm-panel { width: 100%; min-width: 0; }
.confirm-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 10px;
}
.confirm-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
  min-width: 0;
}
.confirm-option:has(input:checked) {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}
.confirm-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--red);
}
.confirm-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.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); }
  .confirm-layout { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr); align-items: start; }
  .confirm-summary { grid-column: 1; }
  .confirm-panel { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 16px; }
  .buybox { position: sticky; top: 16px; max-width: 100%; }
  .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: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .list-link span:not(.count) { display: none; }
  .product-layout,
  .confirm-layout {
    gap: 16px;
    padding-top: 20px;
    margin-bottom: 20px;
  }
  .buybox { padding: 16px 14px; }
  .confirm-media { max-width: min(100%, 280px); }
  .confirm-summary { gap: 12px; }
  .confirm-options { gap: 8px; margin: 4px 0 8px; }
  .confirm-option { padding: 12px; }
  .partner-buy-secondary { gap: 0; }
  .card .partner-buy-secondary { gap: 2px 12px; }
  .btn-buy { min-height: var(--tap); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Holiday / seasonal list — extends existing brand tokens */
.holiday-home {
  margin: 8px auto 28px;
  padding: 20px 18px;
  background:
    linear-gradient(135deg, rgba(200, 16, 46, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(30, 78, 150, 0.1), transparent 40%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.holiday-hero .holiday-count { margin-top: 4px; }

.holiday-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
  max-width: 100%;
}

.holiday-jump a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.holiday-jump a:hover {
  border-color: var(--red);
  color: var(--red);
}

.holiday-section {
  scroll-margin-top: 16px;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.holiday-section-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.holiday-section-head .icon {
  flex: 0 0 auto;
  color: var(--red);
}

.holiday-section-head h2 { margin: 0 0 0.25em; }

.holiday-section .grid { margin-bottom: 12px; }

.shop-band .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.shop-band .btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: no-preference) {
  .holiday-home,
  .holiday-hero,
  .holiday-section {
    animation: holiday-rise 0.55s ease both;
  }
  .holiday-section:nth-of-type(odd) { animation-delay: 0.04s; }
  .holiday-jump a {
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
  }
  .holiday-section .card {
    transition: border-color 0.15s ease, transform 0.18s ease;
  }
  .holiday-section .card:hover {
    border-color: var(--red);
    transform: translateY(-2px);
  }
}

@keyframes holiday-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media print {
  .topbar, .search, .nav-toggle, .site-nav, .tabbar, .stripe, .header-actions,
  #site-footer, .actions, .purchase-handoff, .list-remove, .qty button { display: none !important; }
  body { background: white; padding: 0; }
  .card, .buybox { box-shadow: none; }
  .list-row .qty span::before { content: "Qty: "; }
}
