/* Cast & Carve: Slate & Sage (dark).
   Layout idea: a maker's workbench at night. Slate surfaces, darker bands, one pale-sage signal colour.
   Variable names are historic: --oat = page, --oat-light = cards, --tangerine = accent, --burnt = accent text.
   Texture: faint 3D-print layer lines + CNC toolpath rings, both drawn in CSS (no images). */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }

/* hidden always hides, even on elements whose class sets a display (e.g. label.field) */
[hidden] { display: none !important; }
:root {
  --oat: #14171A;
  --oat-light: #1D2125;
  --sage: #181C1F;
  --sage-mid: #2B3136;
  --line: #2C3237;
  --forest: #0F1214;
  --forest-text: #B4BBBF;
  --ink: #E4E5E1;
  --ink-head: #F1F2EE;
  --ink-2: #B4BBBF;
  --ink-3: #979FA4;
  --tangerine: #A9C3A0;
  --burnt: #BBD3B2;
  --on-accent: #14171A;
  --danger: #E8978A;
  --ok: #9CCB9F;
  --display: "Space Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --wrap: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background-color: var(--oat);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 5px);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--burnt); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink-head); letter-spacing: -0.03em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; font-family: var(--body); letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--burnt); }
.lede { font-size: 19px; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; color: #fff; }

/* Workbench texture */
.texture { position: relative; isolation: isolate; overflow: hidden; }
.texture::before { content: ""; position: absolute; z-index: -1; pointer-events: none; top: 0; left: 0; right: 0; height: 900px;
  background: radial-gradient(ellipse 50% 60% at 22% 18%, rgba(169,195,160,.09), transparent 70%); }
.texture::after { content: ""; position: absolute; z-index: -1; pointer-events: none; top: -240px; right: -260px; width: 1100px; height: 1100px;
  background: repeating-radial-gradient(circle at 70% 30%, transparent 0 34px, rgba(255,255,255,.035) 34px 35px);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 62%); mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 62%); }

/* Promo bar + header */
.promo { background: var(--forest); color: var(--forest-text); text-align: center; font-size: 14px; padding: 9px 16px; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-head); font: 700 22px/1 var(--display); letter-spacing: -0.02em; }
.logo svg { flex: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--burnt); }
.basket-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px !important; border: 1.5px solid var(--line); border-radius: 999px; }
.basket-count { min-width: 22px; height: 22px; border-radius: 999px; background: var(--tangerine); color: var(--on-accent); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.basket-count[data-empty="true"] { background: var(--sage-mid); }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--tangerine); color: var(--on-accent); font: 700 17px/1 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: #BED5B5; color: var(--on-accent); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-dark { background: var(--forest); color: var(--forest-text); }
.btn-dark:hover { background: #1A1F23; color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--oat-light); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--oat-light); color: var(--ink);
  font: 600 14px/1 var(--body); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--tangerine); border-color: var(--tangerine); color: var(--on-accent); }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 28px; padding-bottom: 56px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hero-actions a.text-link { font-weight: 600; color: var(--ink); }
.carousel { order: -1; flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.carousel-frame { position: relative; aspect-ratio: 4 / 3.4; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--sage-mid); }
.carousel-track { display: flex; height: 100%; transition: transform .8s cubic-bezier(.65,0,.35,1); }
.slide { flex: 0 0 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; text-decoration: none; color: var(--ink-head); position: relative; }
.slide .art { position: absolute; inset: 0; z-index: 0; }
.slide .art img { width: 100%; height: 100%; object-fit: cover; }
.slide > *:not(.art) { position: relative; z-index: 1; }
.slide .badge { align-self: flex-start; }
.slide-caption { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--oat-light); }
.slide-caption strong { font: 700 18px/1.2 var(--display); display: block; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .3s ease; }
.dot[aria-current="true"] { width: 28px; background: var(--tangerine); }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--oat-light); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

/* Badges and prices */
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--tangerine); color: var(--on-accent); }
.price { font: 700 18px/1 var(--display); color: var(--ink-head); }

/* Sections */
.section { padding-top: 80px; padding-bottom: 80px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-head > div { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.band { background: var(--sage); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deep { background: var(--forest); color: var(--forest-text); }
.deep h2, .deep h3 { color: var(--ink-head); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--oat-light); padding: 12px; text-decoration: none; color: var(--ink); transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--ink-3); color: var(--ink); }
.card-media { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--sage-mid); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .badge { position: absolute; top: 10px; left: 10px; }
.card-body { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; }
.card-foot .go { font-size: 14px; font-weight: 600; color: var(--burnt); }
.empty { border: 2px dashed var(--line); border-radius: var(--radius); padding: 36px 24px; text-align: center; color: var(--ink-2); }

/* Placeholder art (used until real photos are uploaded) */
.ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 18px, rgba(255,255,255,.035) 18px 19px), var(--sage-mid); }
.ph span { font: 600 13px/1.3 var(--body); color: var(--ink-2); background: var(--oat-light); padding: 6px 10px; border-radius: 999px; }

/* Strip / callouts */
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 24px 28px; border-radius: 18px; background: var(--sage); border: 1px solid var(--line); margin-top: 28px; }
.strip strong { font: 700 22px/1.2 var(--display); color: var(--ink-head); display: block; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; margin-top: 40px; }
.step { border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.step .n { font: 700 15px/1 var(--display); color: var(--tangerine); }
.step h3 { font: 600 23px/1.2 var(--display); }

/* Two-column layouts */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; background: var(--oat-light); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row > * { flex: 1 1 200px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.field small { font-weight: 400; color: var(--ink-3); }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
  min-height: 48px; padding: 0 14px; border: 1px solid #3A4248; border-radius: 10px; background: #171B1E; color: var(--ink); font: 400 16px/1.4 var(--body); width: 100%; }
textarea { padding: 12px 14px; resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(169,195,160,.45); outline-offset: 0; border-color: var(--tangerine); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.notice.error { background: #3A2421; color: var(--danger); }
.notice.ok { background: #1E2E22; color: var(--ok); }
.turnstile-slot { min-height: 0; }

/* FAQ */
.faq { max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; color: var(--ink-head); }
.faq details p { margin-top: 8px; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--forest); color: var(--forest-text); padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: var(--forest-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 44px; }
.footer-grid nav div { display: flex; flex-direction: column; gap: 8px; }
.footer-grid .h { color: var(--ink-head); font-weight: 600; }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 18px; font-size: 13px; }

/* Shop page */
.shop-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.filters { flex: 1 1 220px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sage); }
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.filters legend { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--burnt); margin-bottom: 6px; }
.filters label { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.filters input[type="radio"] { accent-color: var(--tangerine); width: 18px; height: 18px; }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.toolbar input[type="search"] { max-width: 360px; }
.toolbar select { width: auto; }
.crumbs { font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }

/* Product page */
.product { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.gallery { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.stage { position: relative; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--sage-mid); display: flex; align-items: center; justify-content: center; }
.stage > img { width: 100%; height: 100%; object-fit: cover; }
.stage .badge { position: absolute; top: 16px; left: 16px; }
.stage .photo-label { position: absolute; left: 12px; bottom: 12px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--forest); color: var(--ink-head); border: 1px solid var(--line); }
.stage .tag { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--forest); color: var(--oat); }
.preview-caption { text-align: center; font-weight: 600; color: var(--ink-head); }
.buy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.buy .price { font-size: 28px; color: var(--burnt); }
.opt { border: 0; margin: 0; padding: 0; }
.opt legend { padding: 0; margin-bottom: 6px; font-size: 13px; color: var(--ink-3); }
.opt legend b { color: var(--ink); font-weight: 600; }
/* Option controls are Kit Maker's: named colour pills and a segmented bar */
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--forest); color: var(--ink); font: 400 14px/1.2 var(--body); cursor: pointer; transition: transform .12s ease, border-color .12s ease; }
.swatch:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.swatch[aria-pressed="true"] { border-color: var(--tangerine); box-shadow: 0 0 0 1px var(--tangerine); }
.dot { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--dot, transparent); border: 1px solid rgba(228,229,225,.22); box-shadow: inset 0 -2px 4px rgba(0,0,0,.18); }
.dot-same { background: repeating-linear-gradient(45deg, transparent 0 4px, var(--line) 4px 5px); }
.dot-none { background: linear-gradient(45deg, transparent 45%, var(--ink-3) 45% 55%, transparent 55%); }
.cards { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.opt-card { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border: 0; background: transparent; color: var(--ink-3); font: inherit; font-size: 15px; cursor: pointer; }
.opt-card:hover { color: var(--ink); }
.opt-card[aria-pressed="true"] { background: var(--tangerine); color: var(--on-accent); }
.opt-card small { font-size: 12px; opacity: .85; }
.opt-card strong { font-weight: 600; } /* older layout: label over small print */
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field-row .field { flex: 1 1 220px; }
.field-row .field.short { flex: 0 1 110px; }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; color: var(--ink-2); }
.toggle input { width: 20px; height: 20px; flex: none; accent-color: var(--tangerine); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--oat-light); }
.qty button { width: 46px; height: 50px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--ink); }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }
.buy-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.buy-row .btn { flex: 1 1 240px; }
.facts { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 14px; background: var(--sage); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.facts b { color: var(--ink-head); }

/* Designer: Kit Maker's two cards (preview, options) */
.kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kcard { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--oat-light); }
.kpanel { gap: 14px; }
.kpanel label.field { gap: 4px; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.kpanel .field-row .field.short { flex: 0 1 96px; }
.kpanel input.big { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: .04em; }
.krow { display: flex; flex-wrap: wrap; gap: 8px; }
.kbtn { min-height: 38px; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--forest); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.kbtn:hover { border-color: var(--ink-3); }
.kbtn[aria-pressed="true"] { border-color: var(--tangerine); color: var(--tangerine); }
.kmuted { margin: 0; font-size: 13px; color: var(--ink-3); }
@media (max-width: 860px) { .kit { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .cards { display: flex; flex-wrap: nowrap; }
  .opt-card { flex: 1 1 0; flex-direction: column; align-items: center; gap: 0; padding: 8px 6px; text-align: center; }
}

/* Live 3D view: CSS 3D layers (see viewer() in product.js) */
.view3d { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--forest); perspective: 1400px; container-type: inline-size; cursor: grab; touch-action: none; user-select: none; }
.view3d.dragging { cursor: grabbing; }
.view3d.flat { cursor: default; }
.view3d:focus-visible { outline: 2px solid var(--tangerine); outline-offset: 2px; }
.scene { position: relative; transform-style: preserve-3d; transform: scale(var(--zoom, 1)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s ease; }
.view3d.dragging .scene, .view3d.zooming .scene { transition: none; } /* drag and scroll-zoom follow the hand; buttons animate */
.model { position: relative; transform-style: preserve-3d; transition: transform .45s ease; }
.model.face-down { transform: rotateY(180deg); }
.model > *, .bed { position: absolute; inset: 0; transform: translateZ(calc(var(--z, 0) * var(--u))); transition: transform .45s ease; }
.scene:has(.shirt) { --u: .4cqw; }
.scene:has(.coaster) { --u: .5cqw; }
.scene:has(.name-tag) { --u: .7cqw; }
/* side walls (sideWalls() in product.js): a strip from each outline point, turned along its segment and stood back into the depth */
.model > .wall { inset: auto; height: calc(var(--t, 6) * var(--u)); transform-origin: 0 0; transform: rotateZ(var(--a)) rotateX(-90deg); border-radius: 0; transition: none; }
.name-tag svg { width: 100%; height: 100%; display: block; overflow: visible; }
.name-tag text { font-synthesis: none; text-rendering: geometricPrecision; } /* no hinting: letters scale smoothly when zooming */
.bed { display: none; inset: -55%; border-radius: 6px; background: repeating-linear-gradient(0deg, rgba(127,138,144,.35) 0 1px, transparent 1px 12.5%), repeating-linear-gradient(90deg, rgba(127,138,144,.35) 0 1px, transparent 1px 12.5%), var(--sage); }
.view3d.printed .bed { display: block; }
@media (prefers-reduced-motion: reduce) { .scene, .model, .model > *, .swatch, .font-tile, .icon-tile { transition: none; } }
.shirt { width: 40cqw; aspect-ratio: 120 / 126; } /* height set from Kit Maker's tab in product.js */
.shirt svg { width: 100%; height: 100%; display: block; }
.shirt text { font-synthesis: none; text-rendering: geometricPrecision; } /* letters are SVG, laid out in product.js like Kit Maker's; no hinting, so they don't wobble when zooming */
.coaster { width: 50cqw; aspect-ratio: 1 / 1; }
.coaster > * { border-radius: 50%; }
.c-edge, .c-base { background: var(--p-base, var(--forest)); } /* the back and the face */
.c-ring { background: radial-gradient(closest-side, transparent 84%, var(--p-ring, var(--tangerine)) 84.5% 99%, transparent 100%); }
.coaster.no-ring .c-ring { display: none; }
.c-sheen { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,.05) 45%, transparent); opacity: 0; }
.coaster.gloss .c-sheen { opacity: 1; }
.c-text { display: flex; align-items: center; justify-content: center; container-type: inline-size; }
.kit-host { display: block; min-height: 240px; } /* Kit Maker's designer renders inside (shadow root); its own styles apply there */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { width: 68px; height: 68px; padding: 0; border-radius: 12px; border: 2px solid var(--line); background: var(--oat-light); color: var(--ink); font: 600 11px/1.2 var(--body); overflow: hidden; cursor: pointer; }
.thumb[aria-pressed="true"] { border-color: var(--tangerine); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.photo-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.photo-grid figure { position: relative; margin: 0; }
.photo-grid .badge { position: absolute; top: 8px; left: 8px; }
.font-tiles { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
/* fonts are loaded and set by product.js (fontStack); each file is already its own weight, so never fake bold */
.font-tile { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--forest); color: var(--ink); font: 400 22px/1.3 var(--display); font-synthesis: none; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: transform .2s ease, border-color .2s ease; }
.font-tile:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.font-tile[aria-pressed="true"] { border-color: var(--tangerine); box-shadow: 0 0 0 1px var(--tangerine); }
.icon-tiles { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.icon-tile { display: grid; place-items: center; min-height: 58px; padding: 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--forest); color: var(--ink); font-size: 12px; line-height: 1.2; cursor: pointer; transition: transform .2s ease, border-color .2s ease; }
.icon-tile img { width: 32px; height: 32px; object-fit: contain; }
.icon-tile:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.icon-tile[aria-pressed="true"] { border-color: var(--tangerine); box-shadow: 0 0 0 1px var(--tangerine); }
.coaster span { font: 400 calc(var(--p-tag-size, 12cqw) * var(--fit, 1))/1.15 var(--display); font-synthesis: none; text-rendering: geometricPrecision; color: var(--p-text, var(--ink)); letter-spacing: .03em; white-space: pre; }

/* Basket */
.basket { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.basket-lines { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.line { display: flex; flex-wrap: wrap; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--oat-light); }
.line .thumb { width: 96px; height: 96px; flex: none; border-radius: 12px; background: var(--sage-mid); overflow: hidden; position: relative; }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .info { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.line .top { display: flex; justify-content: space-between; gap: 12px; }
.line .summary { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.line .actions { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--burnt); font: 600 14px/1.4 var(--body); cursor: pointer; text-decoration: underline; }
.summary-box { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--sage); position: sticky; top: 16px; }
.local-order { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.local-text { width: 100%; font-size: 13px; }
.delivery { display: flex; flex-direction: column; gap: 8px; }
.delivery label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--oat-light); cursor: pointer; } /* name, with its price on the line below */
.delivery label:has(input:checked) { border-color: var(--tangerine); }
.delivery input { grid-row: span 2; accent-color: var(--tangerine); width: 18px; height: 18px; }
.delivery .d-name { font-weight: 600; }
.delivery .small { grid-column: 2; color: var(--ink-2); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0; font-size: 15px; }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand { font: 700 22px/1.2 var(--display); color: var(--ink-head); border-top: 1px solid var(--line); padding-top: 10px; }

/* Legal pages */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 26px; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose p, .prose li { color: var(--ink-2); }
.table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.prose th { color: var(--ink-head); font-weight: 600; background: var(--sage); }
.prose td:first-child { min-width: 150px; }
.form-copy { padding: 16px 18px; border-radius: 14px; background: var(--sage); border: 1px solid var(--line); }

@media (max-width: 700px) {
  .section { padding-top: 56px; padding-bottom: 56px; }
  .gallery, .summary-box { position: static; }
  .form { padding: 20px; }
}

/* Utilities (no inline styles anywhere: the Content-Security-Policy forbids them) */
.mt { margin-top: 22px; }
.mb { margin-bottom: 12px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { max-width: 320px; display: flex; flex-direction: column; gap: 8px; }
.logo-light { color: var(--ink-head); }
.h-sm { font-size: 22px; }
.h-md { font-size: clamp(28px, 4vw, 40px); }
.center { text-align: center; }
.center-card { max-width: 640px; margin: 40px auto; text-align: center; align-items: center; }
.h-xs { font: 600 17px/1.3 var(--body); letter-spacing: 0; }
.line .thumb .badge { display: none; }
.stage-media { display: contents; }

/* Brand lockup: name with a small "by CC" underneath */
.logo-text { display: inline-flex; flex-direction: column; line-height: 1; }
.logo-text small { font: 500 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; opacity: .65; margin-top: 4px; }
