/* shop.css: the storefront template's one stylesheet. Mobile first, system fonts only (the CSP allows no third-party
   fonts), no inline styles anywhere (the CSP forbids them too). The visual device is the product label: a charcoal
   panel with an amber rule along its top edge, used on product cards, the product header, the basket total and the
   call bar. Everything around it stays quiet. */

:root {
  --stock: #e2ded7;   /* warm grey page */
  --paper: #f4f2ee;   /* image wells, tables, panels */
  --label: #2b2d30;   /* charcoal label */
  --label-2: #3d4044; /* label hover */
  --ink: #26282b;     /* text */
  --muted: #505357;   /* secondary text, AA on stock and paper */
  --rule: #c4beb4;    /* hairlines */
  --amber: #e9a63b;   /* the label rule; text only ever on charcoal */
  --notice: #f7e7c4;  /* warnings */
  --notice-edge: #9a6a1f;
  --on-label-muted: #c9c4bc;
  --head: "DIN Alternate", Bahnschrift, "DIN Next LT Pro", "Arial Narrow", "Liberation Sans Narrow", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: 16px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stock);
  color: var(--ink);
  font: 1rem/1.55 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--head); font-stretch: semi-condensed; font-weight: 700; line-height: 1.12; letter-spacing: 0.005em; }
h1 { font-size: clamp(2rem, 7vw, 3rem); margin: 1.5rem 0 1rem; }
h2 { font-size: 1.375rem; margin: 2rem 0 0.75rem; }
p { margin: 0 0 0.85rem; }
a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--label); outline-offset: 3px; border-radius: 2px; }
.masthead :focus-visible, .footer :focus-visible, .fallback :focus-visible, .card-link:focus-visible { outline-color: var(--amber); }
.card-link:focus-visible { outline-color: var(--label); }
code { font-family: var(--mono); font-size: 0.875em; background: var(--stock); padding: 0.05em 0.3em; border-radius: 2px; overflow-wrap: anywhere; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 20; background: var(--paper); color: var(--ink); padding: 0.6rem 1rem; }
.skip:focus { top: 0.5rem; }

/* Masthead ---------------------------------------------------------------------------------------------------- */
.masthead { background: var(--label); color: var(--paper); }
.demo-badge { margin: 0; background: var(--amber); color: var(--label); text-align: center; font-weight: 700; font-size: 0.9375rem; padding: 0.5rem var(--gutter); }
.masthead-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.wordmark { font-family: var(--head); font-stretch: semi-condensed; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em; color: var(--paper); text-decoration: none; padding-block: 0.2rem; border-bottom: 3px solid var(--amber); line-height: 1.15; }
.topnav ul { display: flex; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.topnav a { color: var(--paper); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.topnav a:hover, .topnav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.basket-count { display: inline-block; min-width: 1.6em; margin-left: 0.15rem; padding: 0 0.4em; border-radius: 999px; background: var(--amber); color: var(--label); font-weight: 700; font-size: 0.875rem; text-align: center; line-height: 1.5; }

/* Home ---------------------------------------------------------------------------------------------------------- */
.intro { padding-block: 2rem 0.5rem; }
.intro h1 { font-size: clamp(2.5rem, 11vw, 4.5rem); line-height: 0.98; margin: 0 0 1rem; }
.lede { font-size: 1.125rem; max-width: 36rem; }
.facts { list-style: none; margin: 1.25rem 0 0; padding: 0.9rem 0 0; border-top: 2px solid var(--label); display: grid; gap: 0.5rem; }
.facts li { position: relative; padding-left: 1.1rem; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; background: var(--label); }
.range-title { font-size: 1.375rem; margin: 2.25rem 0 1rem; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; border-radius: var(--radius); }
.card-well { display: block; aspect-ratio: 1 / 1; background: var(--paper); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-well img { width: 100%; height: 100%; object-fit: cover; }
.card-label { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 0.5rem; background: var(--label); color: var(--paper); border-top: 3px solid var(--amber); border-radius: 0 0 var(--radius) var(--radius); padding: 0.7rem 0.75rem 0.8rem; }
.card-name { font-family: var(--head); font-stretch: semi-condensed; font-weight: 700; font-size: 1rem; line-height: 1.2; }
.card-price { font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--amber); font-variant-numeric: tabular-nums; }
.card-link:hover .card-name { text-decoration: underline; text-underline-offset: 0.18em; }

/* Product ------------------------------------------------------------------------------------------------------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 1rem 0 0.75rem; font-size: 0.875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; }
.product { display: grid; gap: 1.25rem; }
.product-media { background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.product-media img { width: 100%; }
.product-label { background: var(--label); color: var(--paper); border-top: 4px solid var(--amber); border-radius: 0 0 var(--radius) var(--radius); padding: 1rem 1.1rem 1.1rem; }
.product-label h1 { margin: 0 0 0.6rem; font-size: clamp(1.75rem, 6vw, 2.5rem); }
.product-price { margin: 0; font-family: var(--head); font-weight: 700; font-size: 2rem; color: var(--amber); font-variant-numeric: tabular-nums; line-height: 1.1; }
.product-tax { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted); }
.product-desc { font-size: 1.0625rem; max-width: 36rem; }
.add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; margin: 1.25rem 0 0.5rem; }
.add-qty { display: grid; gap: 0.25rem; }
.add-qty label { font-weight: 600; font-size: 0.9375rem; }
select { font: inherit; min-height: 48px; min-width: 5rem; padding: 0 0.6rem; color: var(--ink); background: var(--paper); border: 2px solid var(--label); border-radius: 3px; }
.add-status { min-height: 1.6em; font-weight: 600; }
.product-notes { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.9375rem; }
.product-notes li { margin-bottom: 0.3rem; }
.product-notes a { color: var(--ink); }

/* Buttons ------------------------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 3px; background: var(--label); color: var(--paper); font: 700 1.0625rem/1.2 var(--head); letter-spacing: 0.02em; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--label-2); text-decoration: none; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-quiet { background: transparent; color: var(--label); border: 2px solid var(--label); }
.btn-quiet:hover { background: var(--paper); }
.btn-pay { width: 100%; min-height: 56px; font-size: 1.25rem; border-bottom: 4px solid var(--amber); }
.link-btn { background: none; border: 0; padding: 0.3rem 0; min-height: 24px; color: var(--ink); font: inherit; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* Basket -------------------------------------------------------------------------------------------------------- */
.before-pay { background: var(--paper); border-left: 4px solid var(--label); padding: 0.9rem 1rem 0.4rem; border-radius: 0 var(--radius) var(--radius) 0; }
.before-pay h2 { font-size: 1.125rem; margin: 0 0 0.5rem; }
.before-pay ul { margin: 0 0 0.5rem; padding-left: 1.1rem; }
.before-pay li { margin-bottom: 0.35rem; }
.notice { background: var(--notice); border-left: 4px solid var(--notice-edge); padding: 0.8rem 1rem 0.1rem; margin-top: 1rem; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 600; }
.basket-empty { font-size: 1.125rem; padding-block: 1.5rem; }
.basket h2 { font-size: 1.25rem; }
.basket-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.basket-table th { text-align: left; font-size: 0.875rem; color: var(--muted); padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--label); }
.basket-table td { padding: 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.basket-table select { min-height: 44px; min-width: 4.25rem; }
.item-link { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 600; text-decoration: none; }
.item-link:hover .item-name { text-decoration: underline; }
.item-link img { width: 56px; height: 56px; object-fit: cover; flex: none; background: var(--stock); border-radius: 3px; }
.item-unit { display: block; font-size: 0.875rem; color: var(--muted); font-weight: 400; margin-top: 0.15rem; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.basket-table th.num { text-align: right; }
.sum { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.8rem 0.75rem; background: var(--paper); font-variant-numeric: tabular-nums; font-weight: 600; }
.sum-total { background: var(--label); color: var(--paper); border-top: 3px solid var(--amber); font-family: var(--head); font-size: 1.25rem; border-radius: 0 0 var(--radius) var(--radius); }
.sum-total span:last-child { color: var(--amber); }
.sum-note { margin: 0.5rem 0 0; font-size: 0.9375rem; color: var(--muted); }
.delivery { margin-block: 1.5rem; }
.free-hint { font-weight: 600; }
.ship-list { list-style: none; margin: 0 0 0.75rem; padding: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.ship-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--rule); }
.ship-list li:last-child { border-bottom: 0; }
.ship-first { font-weight: 600; }
.ship-amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ship-tag { display: inline-block; margin-left: 0.3rem; padding: 0 0.4rem; border-radius: 2px; background: var(--label); color: var(--paper); font-size: 0.8125rem; font-weight: 600; }
.ship-note, .pay-note { font-size: 0.9375rem; color: var(--muted); }
.ship-note a, .pay-note a { color: var(--ink); }
.pay { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.cf-turnstile { min-height: 65px; }
.pay-status { min-height: 1.6em; font-weight: 600; margin: 0; }
.fallback { margin-top: 1.5rem; background: var(--label); color: var(--paper); border-top: 4px solid var(--amber); border-radius: 0 0 var(--radius) var(--radius); padding: 1rem 1.1rem 0.6rem; }
.fallback h2 { margin-top: 0; }
.fallback .btn { background: var(--amber); color: var(--label); margin: 0 0.5rem 0.5rem 0; }
.fallback .btn-quiet { background: transparent; color: var(--paper); border-color: var(--paper); }
.fallback-actions { display: flex; flex-wrap: wrap; }

/* Thanks -------------------------------------------------------------------------------------------------------- */
.thanks-state h2 { margin-top: 0.5rem; }
.summary { margin-block: 1.5rem; max-width: 42rem; }
.summary-note { font-size: 0.9375rem; color: var(--muted); }

/* Prose and legal pages ----------------------------------------------------------------------------------------- */
.prose { max-width: 42rem; }
.prose li { margin-bottom: 0.4rem; }
.lettered { list-style: lower-alpha; }
.plain-table { width: 100%; border-collapse: collapse; background: var(--paper); margin-bottom: 1rem; font-size: 0.9375rem; }
.plain-table caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; font-family: var(--head); font-size: 1.125rem; }
.plain-table th, .plain-table td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.plain-table th { border-bottom: 2px solid var(--label); }
.plain-table .num { text-align: right; }
.plain-table tfoot td, .plain-table tfoot th { font-weight: 700; border-bottom: 0; }
.table-scroll { overflow-x: auto; max-width: 64rem; }
.storage-table { min-width: 40rem; }
.contact-list div { padding-block: 0.6rem; border-bottom: 1px solid var(--rule); }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; }
.cancel-form { max-width: 42rem; margin-block: 2rem 0; background: var(--paper); border: 2px solid var(--label); border-radius: var(--radius); padding: 1rem 1.2rem 0.5rem; }
.cancel-form h2 { margin-top: 0.25rem; }
.cancel-form-note { font-size: 0.9375rem; color: var(--muted); }
.fill::after { content: ""; display: block; height: 1.9rem; border-bottom: 1px solid var(--ink); }

/* Footer and call bar ------------------------------------------------------------------------------------------- */
/* Bottom padding clears the fixed call bar on phones, so the footer, not the page, runs behind it. */
.footer { margin-top: 3.5rem; background: var(--label); color: var(--stock); padding-block: 2rem calc(1rem + 56px + env(safe-area-inset-bottom, 0px)); font-size: 0.9375rem; }
.footer a { color: var(--paper); }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-name { margin: 0 0 0.6rem; font-size: 1.25rem; color: var(--paper); }
.footer address { font-style: normal; }
.footer address p { margin: 0 0 0.2rem; }
.footer-tax { margin-top: 0.75rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.2rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 32px; }
.credit { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--label-2); font-size: 0.8125rem; color: var(--on-label-muted); }
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: 1fr 1fr; background: var(--label); border-top: 3px solid var(--amber); padding-bottom: env(safe-area-inset-bottom, 0px); }
.callbar a { display: flex; align-items: center; justify-content: center; min-height: 52px; color: var(--paper); font: 700 1.0625rem/1 var(--head); text-decoration: none; }
.callbar a + a { border-left: 1px solid var(--label-2); }
.callbar a:hover { text-decoration: underline; text-decoration-color: var(--amber); }

/* Wider screens ------------------------------------------------------------------------------------------------- */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .footer-grid { grid-template-columns: 2fr 1fr; }
  .wordmark { font-size: 1.4rem; }
}
@media (min-width: 900px) {
  .footer { padding-bottom: 1rem; }
  .callbar { display: none; }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .product-label { border-radius: 0 0 var(--radius) var(--radius); }
  .page-basket main { max-width: 48rem; }
}
@media (min-width: 1040px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Print: the returns page puts the model cancellation form on a sheet of its own. */
@media print {
  body { background: #fff; color: #000; padding: 0; }
  .masthead-bar, .footer, .skip, .callbar, .crumbs { display: none !important; }
  .demo-badge { border: 1px solid #000; }
  a { color: #000; }
  .page-returns .cancel-form { break-before: page; border: 0; background: #fff; padding: 0; }
}
