/*
  theme.css — the bundled default storefront theme: "Editorial Atelier".

  A warm, boutique-editorial aesthetic: cream paper ground, warm near-black ink,
  a single clay accent, a high-contrast optical serif (Fraunces) for display
  paired with a humanist grotesque (Hanken Grotesk) for text. Hairline rules,
  generous negative space, a faint paper grain, and restrained CSS motion.

  Self-hosted fonts (no external request) live in static/fonts and are served at
  /_theme/fonts. Built on design tokens so a store can retint by overriding a
  handful of custom properties. Uploaded Go themes serve their own assets.

  All class names used by the Go templates and the island bundle are preserved.
*/

/* ── Fonts (self-hosted, latin subset covers EN + Western European incl. DA) ── */
@font-face {
  font-family: 'Fraunces';
  src: url('/_theme/fonts/fraunces.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/_theme/fonts/hanken-grotesk.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f2e8;
  --paper-2: #efe7d6;
  --ink: #1d1812;
  --ink-soft: #4c4438;
  --muted: #8c8273;
  --line: #e2d8c5;
  --accent: #ad4a2c;
  --accent-deep: #8c3920;
  --accent-fg: #f7f2e8;
  --sale: #ad4a2c;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4.5rem;
  --space-12: 6.5rem;

  --radius: 4px;
  --radius-sm: 2px;
  --maxw: 1240px;
  --header-h: 76px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Faint paper grain over everything for atmosphere (ultra-subtle). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 var(--space-4); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-6); }

/* Eyebrow / small-caps label utility used via CSS on section titles. */
.eyebrow, .footer-col h2, .announce-item {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.85rem 1.7rem; border-radius: var(--radius-sm);
  border: 1px solid var(--ink); background: var(--ink); color: var(--accent-fg);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--accent-fg); transform: translateY(-1px); }

/* Animated underline for inline/editorial links. */
.nav-link, .section-link, .footer-col a, .rich-text a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .3s var(--ease), color .2s var(--ease);
}
.nav-link:hover, .section-link:hover, .footer-col a:hover, .rich-text a:hover { background-size: 100% 1px; }

/* ── Announcement bar ── */
.announce {
  background: var(--ink); color: var(--accent-fg);
  text-align: center; padding: var(--space-3) var(--space-4);
  display: flex; gap: var(--space-8); justify-content: center; flex-wrap: wrap;
}
.announce-item { color: color-mix(in srgb, var(--accent-fg) 88%, transparent); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(130%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--space-6); height: var(--header-h); }
.brand {
  font-family: var(--font-display); font-weight: 500; font-size: 1.5rem;
  letter-spacing: -0.02em; white-space: nowrap; font-optical-sizing: auto;
}
.primary-nav { display: flex; gap: var(--space-6); margin-inline: auto; }
.nav-link {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-soft); padding-block: var(--space-2);
}
.nav-link:hover { color: var(--ink); }
.nav-sale { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 50%;
  transition: background .2s var(--ease);
}
.icon-btn:hover { background: var(--paper-2); }
.menu-toggle { display: none; }

/* ── Cart badge (header icon) ── */
.cart-badge {
  position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-fg);
  font-family: var(--font-sans); font-size: 0.66rem; font-weight: 700; line-height: 18px; text-align: center;
}

/* ── Hero ── */
.hero { background: var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { padding-block: clamp(var(--space-10), 10vw, var(--space-12)); max-width: 18ch; }
.hero-inner { max-width: min(760px, 100%); }
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
}
.hero-title::before {
  content: ""; display: block; width: 46px; height: 3px; background: var(--accent);
  margin-bottom: var(--space-6);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 48ch;
  margin-bottom: var(--space-6); line-height: 1.5;
}

/* ── Sections ── */
.section-title { margin-bottom: var(--space-8); position: relative; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-8); }
.section-head .section-title { margin-bottom: 0; }
.section-link {
  font-family: var(--font-sans); font-size: 0.74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); white-space: nowrap;
}
.collections, .bestsellers { padding-block: var(--space-10); }

/* ── Trust band (numbered, hairline) ── */
.trust { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: trust; }
.trust-item { padding: var(--space-8) var(--space-6) var(--space-8) 0; position: relative; }
.trust-item + .trust-item { padding-left: var(--space-6); border-left: 1px solid var(--line); }
.trust-item::before {
  counter-increment: trust; content: "0" counter(trust);
  font-family: var(--font-display); font-size: 1.1rem; color: var(--accent);
  display: block; margin-bottom: var(--space-3); font-optical-sizing: auto;
}
.trust-item h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.trust-item p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ── Collection tiles ── */
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.collection-card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); border-radius: var(--radius-sm); }
.collection-card-img, .collection-card-noimg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.collection-card-noimg { display: block; background: linear-gradient(150deg, var(--paper-2), var(--line)); }
.collection-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29,24,18,0.55), transparent 55%); opacity: .9; transition: opacity .3s var(--ease); }
.collection-card:hover .collection-card-img { transform: scale(1.05); }
.collection-card-name {
  position: absolute; left: var(--space-5); bottom: var(--space-5); z-index: 1;
  font-family: var(--font-display); font-size: 1.25rem; color: #fff; font-optical-sizing: auto;
}

/* ── Product grid + cards ── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6) var(--space-5); }
.product-card { display: block; }
.product-card-media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); margin-bottom: var(--space-4); border-radius: var(--radius-sm); }
.product-card-img, .product-card-noimg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card-noimg { display: block; background: linear-gradient(150deg, var(--paper-2), var(--line)); }
.product-card:hover .product-card-img { transform: scale(1.05); }
.product-card-name { font-size: 1rem; font-weight: 500; line-height: 1.35; margin: 0 0 var(--space-1); }
.product-card:hover .product-card-name { color: var(--accent); }
.product-card-price { font-size: 0.98rem; display: flex; gap: var(--space-2); align-items: baseline; color: var(--ink-soft); }
.price-now { color: var(--accent); font-weight: 600; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 0.9em; }

/* ── Newsletter band ── */
.signup { background: var(--ink); color: var(--accent-fg); }
.signup-inner { padding-block: var(--space-10); text-align: center; max-width: 620px; margin-inline: auto; }
.signup-title { color: var(--accent-fg); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.signup-body { color: color-mix(in srgb, var(--accent-fg) 72%, transparent); margin-bottom: var(--space-6); }

/* ── Newsletter form (footer + band) ── */
.newsletter { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); max-width: 380px; }
.newsletter input {
  flex: 1; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: var(--paper); color: var(--ink);
}
.newsletter input::placeholder { color: var(--muted); }
.newsletter button {
  padding: 0.7rem 1.1rem; border: 1px solid var(--ink); background: var(--ink); color: var(--accent-fg);
  border-radius: var(--radius-sm); font-family: var(--font-sans); font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; transition: background .2s var(--ease);
}
.newsletter button:hover { background: var(--accent); border-color: var(--accent); }
.newsletter-lg { max-width: 480px; margin-inline: auto; }
.newsletter-lg input, .newsletter-lg button { padding-block: 0.85rem; }
.newsletter-lg input { background: color-mix(in srgb, var(--accent-fg) 12%, transparent); border-color: color-mix(in srgb, var(--accent-fg) 28%, transparent); color: var(--accent-fg); }
.newsletter-lg input::placeholder { color: color-mix(in srgb, var(--accent-fg) 55%, transparent); }
.newsletter-lg button { background: var(--accent-fg); color: var(--ink); border-color: var(--accent-fg); }
.newsletter-lg button:hover { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

/* ── Footer ── */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: var(--space-12); }
.footer-grid { display: grid; gap: var(--space-8); padding-block: var(--space-10); grid-template-columns: 1.6fr 1fr 1fr; }
.footer-store { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin-bottom: var(--space-3); font-optical-sizing: auto; }
.footer-news { color: var(--muted); font-size: 0.92rem; max-width: 42ch; }
.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: var(--space-1); color: var(--muted); font-size: 0.9rem; }
.footer-col h2 { color: var(--muted); margin-bottom: var(--space-4); }
.footer-col a { display: block; padding-block: var(--space-1); color: var(--ink-soft); font-size: 0.95rem; width: fit-content; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { padding-bottom: var(--space-8); color: var(--muted); font-size: 0.82rem; }

/* ── Prose / rich text (policy + static) ── */
.prose { max-width: 720px; padding-block: var(--space-10); }
.page-hero { padding-block: var(--space-10) var(--space-8); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: var(--space-4); }
.page-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink-soft); max-width: 58ch; margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.4; }
.values { padding-block: var(--space-10); }
.rich-text { color: var(--ink-soft); font-size: 1.02rem; }
.rich-text h2 { margin-top: var(--space-8); color: var(--ink); }
.rich-text h3 { margin-top: var(--space-5); color: var(--ink); }
.rich-text ul, .rich-text ol { padding-left: 1.3em; margin-bottom: var(--space-4); }
.rich-text li { margin-bottom: var(--space-2); }
.rich-text a { color: var(--accent); }

/* ── FAQ accordion (native <details>) ── */
.faq { padding-block: var(--space-10); }
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question {
  cursor: pointer; list-style: none; padding: var(--space-5) 0;
  font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; font-optical-sizing: auto;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; font-family: var(--font-sans); font-size: 1.5rem; color: var(--accent); transition: transform .25s var(--ease); }
.faq-item[open] .faq-question::after { content: "−"; }
.faq-answer { padding-bottom: var(--space-5); color: var(--muted); max-width: 64ch; }
.faq-answer p { margin: 0; }

/* ── CTA band ── */
.cta-band { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: var(--space-10); }
.cta-inner { padding-block: var(--space-10); text-align: center; }
.cta-title { margin-bottom: var(--space-6); }

/* ── Collection / search listing ── */
.list-page { padding-block: var(--space-6) var(--space-10); }
.list-header { margin-bottom: var(--space-8); }
.list-title { margin-bottom: var(--space-3); }
.list-desc { color: var(--ink-soft); max-width: 60ch; }
.list-empty { color: var(--muted); padding-block: var(--space-10); font-size: 1.05rem; }
.search-form { display: flex; gap: var(--space-3); max-width: 560px; margin-top: var(--space-4); }
.search-form input {
  flex: 1; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: var(--paper); color: var(--ink);
}
.search-form input::placeholder { color: var(--muted); }
.list-layout { display: grid; grid-template-columns: 230px 1fr; gap: var(--space-8); align-items: start; }
.list-filters { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
.filters-title { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: var(--space-5); }
.facet-group { margin-bottom: var(--space-6); }
.facet-name { font-size: 0.95rem; margin-bottom: var(--space-3); }
.facet-options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.facet-option { display: flex; align-items: center; gap: var(--space-2); font-size: 0.9rem; color: var(--ink-soft); padding-block: var(--space-1); }
.facet-option:hover { color: var(--ink); }
.facet-check { width: 15px; height: 15px; border: 1px solid var(--muted); border-radius: 3px; flex: none; }
.facet-option.active { color: var(--ink); font-weight: 600; }
.facet-option.active .facet-check { background: var(--accent); border-color: var(--accent); }
.facet-count { margin-left: auto; color: var(--muted); font-size: 0.82rem; }
.list-count { color: var(--muted); font-size: 0.88rem; margin-bottom: var(--space-5); }
.pager { display: flex; align-items: center; justify-content: center; gap: var(--space-6); margin-top: var(--space-10); }
.pager-link { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.pager-link.disabled { color: var(--line); pointer-events: none; }
.pager-status { color: var(--muted); font-size: 0.85rem; }

/* ── Product detail ── */
.product-page { padding-block: var(--space-6) var(--space-10); }
.breadcrumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.breadcrumbs a:hover { color: var(--ink); }
.bc-sep { color: var(--line); }
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-10); align-items: start; }
.product-gallery { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
.gallery-main { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.gallery-main img, .gallery-noimg { width: 100%; height: 100%; object-fit: cover; }
.gallery-noimg { display: block; background: linear-gradient(150deg, var(--paper-2), var(--line)); }
.gallery-thumbs { display: flex; gap: var(--space-3); margin-top: var(--space-3); flex-wrap: wrap; }
.gallery-thumb { width: 72px; height: 90px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--ink); }

.product-title { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: var(--space-4); }
.product-info .product-price { font-size: 1.5rem; display: flex; gap: var(--space-3); align-items: baseline; margin-bottom: var(--space-6); }
.product-info .price-now { color: var(--accent); font-weight: 600; }
.product-info .price-was { color: var(--muted); text-decoration: line-through; font-size: 0.8em; }
.product-info .price { color: var(--ink); }
.product-form { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-8); max-width: 360px; }
.opt-group { display: flex; flex-direction: column; gap: var(--space-2); }
.opt-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.opt-select { padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--paper); color: var(--ink); }
.add-to-cart { width: 100%; padding-block: 1rem; }
.add-to-cart:disabled { opacity: 0.45; cursor: not-allowed; }
.add-to-cart:disabled:hover { background: var(--ink); border-color: var(--ink); transform: none; }
.product-section-title { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: var(--space-3); }
.product-desc { border-top: 1px solid var(--line); padding-top: var(--space-6); margin-bottom: var(--space-6); }
.product-specs { border-top: 1px solid var(--line); padding-top: var(--space-6); }
.specs-list { margin: 0; }
.spec-row { display: grid; grid-template-columns: 40% 1fr; gap: var(--space-4); padding-block: var(--space-2); border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.spec-row dt { color: var(--muted); margin: 0; }
.spec-row dd { margin: 0; }

/* ── Cart drawer (island) ── */
.cart-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.cart-drawer.open { visibility: visible; }
.cart-drawer-overlay { position: absolute; inset: 0; background: rgba(29,24,18,0.45); opacity: 0; transition: opacity .3s var(--ease); }
.cart-drawer.open .cart-drawer-overlay { opacity: 1; }
.cart-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(430px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s var(--ease);
  box-shadow: -16px 0 50px rgba(29,24,18,0.18);
}
.cart-drawer.open .cart-drawer-panel { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--line); }
.cart-drawer-head h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; }
.cart-drawer-close { border: 0; background: transparent; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--muted); }
.cart-drawer-close:hover { color: var(--ink); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: var(--space-4) var(--space-6); }
.cart-empty { color: var(--muted); text-align: center; padding-block: var(--space-10); }
.cart-line { display: grid; grid-template-columns: 68px 1fr auto; gap: var(--space-4); padding-block: var(--space-5); border-bottom: 1px solid var(--line); align-items: start; }
.cart-line-media { width: 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); }
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-name { font-size: 0.98rem; font-weight: 500; display: block; margin-bottom: var(--space-3); }
.cart-line-name:hover { color: var(--accent); }
.cart-line-controls { display: flex; align-items: center; gap: var(--space-4); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.qty button { border: 0; background: transparent; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; color: var(--ink); }
.qty-val { min-width: 26px; text-align: center; font-size: 0.9rem; }
.cart-line-remove { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.cart-line-remove:hover { color: var(--accent); }
.cart-line-price { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.cart-drawer-foot { border-top: 1px solid var(--line); padding: var(--space-6); }
.cart-drawer-subtotal { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.05rem; margin-bottom: var(--space-4); }
.cart-checkout { width: 100%; }

/* ── Motion ── */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero load reveal (staggered). */
  .hero-title, .hero-sub, .hero-cta { opacity: 0; animation: fade-up 0.8s var(--ease) both; }
  .hero-sub { animation-delay: 0.1s; }
  .hero-cta { animation-delay: 0.2s; }

  /* Scroll-reveal sections — only where the modern scroll-timeline API exists,
     so unsupported browsers always show content (no opacity:0 trap). */
  @supports (animation-timeline: view()) {
    .collections, .bestsellers, .values, .signup-inner, .page-hero, .prose {
      opacity: 0; animation: fade-up 0.7s var(--ease) both;
      animation-timeline: view(); animation-range: entry 0% cover 18%;
    }
    .product-card, .collection-card, .trust-item {
      opacity: 0; animation: fade-up 0.6s var(--ease) both;
      animation-timeline: view(); animation-range: entry 0% cover 12%;
    }
  }
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-layout { grid-template-columns: 1fr; gap: var(--space-6); }
  .product-gallery { position: static; }
  .product-form { max-width: none; }
}
@media (max-width: 860px) {
  .primary-nav { display: none; }
  .site-header.nav-open .primary-nav {
    display: flex; flex-direction: column; gap: var(--space-1);
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    padding: var(--space-5) var(--space-6);
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(29,24,18,0.12);
  }
  .site-header.nav-open .nav-link { padding-block: var(--space-3); }
  body.nav-lock { overflow: hidden; }
  .menu-toggle { display: inline-grid; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .list-layout { grid-template-columns: 1fr; gap: var(--space-6); }
  .list-filters { position: static; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); padding: var(--space-5) 0; }
  .trust-item:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .container { padding-inline: var(--space-5); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .announce { gap: var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ── Order confirmation ── */
.confirm { padding-block: var(--space-8) var(--space-10); }
.confirm-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-10); align-items: start; }
.confirm-head { display: flex; gap: var(--space-4); align-items: flex-start; margin-bottom: var(--space-6); }
.confirm-check { width: 44px; height: 44px; color: var(--accent); flex-shrink: 0; }
.confirm-ordernum { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-bottom: var(--space-1); }
.confirm-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.confirm-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-5); margin-bottom: var(--space-5); }
.confirm-card h2 { font-size: 1.1rem; margin-bottom: var(--space-3); }
.confirm-confirmed p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.confirm-meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.confirm-meta-wide { grid-column: 1 / -1; }
.confirm-meta-item h3 { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); margin-bottom: var(--space-2); }
.confirm-meta-item p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.confirm-addr { color: var(--muted); font-size: 0.92rem; display: flex; flex-direction: column; gap: 2px; }
.confirm-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); }
.confirm-help { color: var(--muted); font-size: 0.88rem; margin: 0; }
.confirm-help a { color: var(--accent); }

.confirm-summary { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-6); position: sticky; top: calc(var(--header-h) + var(--space-4)); }
.confirm-lines { display: flex; flex-direction: column; gap: var(--space-4); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.confirm-line { display: flex; align-items: center; gap: var(--space-4); }
.confirm-thumb { position: relative; width: 60px; height: 60px; flex-shrink: 0; }
.confirm-thumb img, .confirm-thumb-ph { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); display: block; }
.confirm-qty { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--accent-fg); font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600; border-radius: 999px; }
.confirm-line-info { flex: 1; min-width: 0; }
.confirm-line-name { margin: 0; font-size: 0.92rem; color: var(--ink); }
.confirm-line-variant { margin: 0; font-size: 0.8rem; color: var(--muted); }
.confirm-line-price { margin: 0; font-size: 0.92rem; white-space: nowrap; }
.confirm-totals { display: flex; flex-direction: column; gap: var(--space-2); padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.confirm-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--ink-soft); }
.confirm-savings { color: var(--accent); }
.confirm-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: var(--space-4); }
.confirm-total-label, .confirm-total-value { font-family: var(--font-display); font-size: 1.3rem; }
.confirm-cur { font-family: var(--font-sans); font-size: 0.75rem; color: var(--muted); }
.confirm-tax { color: var(--muted); font-size: 0.8rem; margin: var(--space-2) 0 0; text-align: right; }

@media (max-width: 860px) {
  .confirm-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .confirm-summary { position: static; }
  .confirm-meta { grid-template-columns: 1fr; }
}

/* ── Checkout ─────────────────────────────────────────────────────────────
   The checkout surface uses its own focused chrome (logo-only header, no nav
   or footer). The body is a skeleton the checkout island hydrates from the
   embedded bootstrap; styles cover the header, the two-column layout, the
   shimmer placeholders, the resume banner and the empty-cart state. */
/* The checkout neutralises the theme's warm beige tints to a near-neutral grey
   (the summary column, selected rows, panels, subcards, borders all derive from
   these) — the operator wants no beige on the checkout. Warmth stays in the ink
   text + accent (clay) actions + the theme fonts. */
.checkout-page { background: #fff; --paper: #f6f6f5; --paper-2: #f0f0ee; --line: #e5e4e2; }
/* Header mirrors the body split so the logo aligns with the form content and the
   secure mark aligns with the summary content (same widths/paddings). */
.co-header { border-bottom: 1px solid var(--line); background: #fff; }
.co-header-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 64px; }
.co-header-left { display: flex; justify-content: flex-end; }
.co-header-right { display: flex; justify-content: flex-start; }
.co-header-pad { width: 100%; max-width: 600px; box-sizing: border-box; padding: 0 var(--space-8); display: flex; align-items: center; }
.co-header-pad-right { max-width: 480px; padding: 0 var(--space-5); justify-content: flex-end; }
.co-logo { display: inline-flex; align-items: center; }
.co-logo-img { height: 30px; width: auto; display: block; }
.co-logo-text { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.01em; color: var(--ink); }
.co-secure { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.co-secure svg { color: var(--accent); }

.checkout { width: 100%; }
.co-noscript { margin: var(--space-5) auto 0; max-width: 600px; padding: var(--space-3) var(--space-4); border: 1px solid var(--accent); border-radius: 8px; background: var(--paper-2); color: var(--accent-deep); font-size: 0.9rem; }

/* Full-bleed split: white form half (right-aligned, max 600px, divider) + tinted
   summary half (a white card on the tint) — the legacy checkout structure in the
   theme palette. The columns stretch to equal height and fill the viewport so
   the tint never stops short and leave a white gap below the summary. */
.co-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: calc(100vh - 65px); }
.co-split-form { background: #fff; display: flex; justify-content: flex-end; }
.co-split-summary { background: var(--paper-2); }
.co-form { width: 100%; max-width: 600px; box-sizing: border-box; border-right: 1px solid var(--line); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-6); }
.co-summary { width: 480px; max-width: 100%; box-sizing: border-box; padding: var(--space-5); position: sticky; top: var(--space-5); }
.co-summary-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); }
.co-section { display: flex; flex-direction: column; gap: var(--space-3); }
.co-section-title { font-family: var(--font-sans); font-weight: 600; font-size: 1.25rem; color: var(--ink); margin: 0; }
.co-skel-row { display: flex; gap: var(--space-3); }
.co-skel-row .co-skel { flex: 1; }
.co-loading { color: var(--muted); font-size: 0.85rem; margin: var(--space-2) 0 0; }

/* Shimmer placeholders — shown until the island hydrates. */
.co-skel { display: block; border-radius: 8px; background: linear-gradient(100deg, var(--paper-2) 30%, var(--line) 50%, var(--paper-2) 70%); background-size: 200% 100%; animation: co-shimmer 1.4s var(--ease) infinite; }
.co-skel-input { height: 46px; }
.co-skel-block { height: 120px; }
.co-skel-line { height: 16px; }
.co-skel-short { width: 55%; }
.co-skel-total { height: 28px; margin-top: var(--space-2); }
@keyframes co-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .co-skel { animation: none; } }

.co-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); text-align: center; min-height: 55vh; }
.co-empty-text { font-size: 1.05rem; color: var(--ink); margin: 0; }
.co-empty-link { color: var(--accent); text-decoration: underline; font-size: 0.9rem; }

/* ── Checkout form (hydrated by the checkout island) ───────────────────────
   Structure mirrors the legacy nordic checkout (connected radio/payment lists,
   floating-label fields, soft USP/support cards) in the theme palette + fonts. */
.co-section-title-sm { font-size: 1rem; }
.co-section-sub { color: var(--muted); font-size: 0.85rem; line-height: 1.45; margin: calc(-1 * var(--space-1)) 0 var(--space-1); }

/* Floating-label fields. */
.co-field { display: block; }
.co-input-wrap { position: relative; display: block; }
.co-input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 1.1rem 0.85rem 0.3rem; font-family: var(--font-sans); font-size: 0.92rem; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); box-sizing: border-box; }
.co-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.co-label { position: absolute; left: 0.9rem; top: 0.4rem; font-size: 0.66rem; color: var(--muted); pointer-events: none; transition: top .15s var(--ease), font-size .15s var(--ease); }
.co-input:placeholder-shown:not(:focus) + .co-label { top: 50%; transform: translateY(-50%); font-size: 0.92rem; }
.co-input:focus + .co-label { top: 0.4rem; transform: none; font-size: 0.66rem; }
.co-field.is-invalid .co-input { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.co-error { color: var(--accent); font-size: 0.74rem; margin: 0.3rem 0 0; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.co-select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer; }
.co-select-caret { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.co-label-fixed { top: 0.4rem; transform: none; font-size: 0.66rem; }

/* Checkbox (custom square, ink check). */
.co-check { display: flex; align-items: flex-start; gap: var(--space-2); font-size: 0.82rem; line-height: 1.4; color: var(--ink-soft); cursor: pointer; }
.co-check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; flex-shrink: 0; position: relative; transition: background .12s var(--ease), border-color .12s var(--ease); }
.co-check input:checked { background: var(--ink); border-color: var(--ink); }
.co-check input:checked::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f2e8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

.co-note { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: var(--space-4); color: var(--muted); font-size: 0.85rem; }

/* Connected radio/payment lists: children collapse borders into 1px dividers;
   only the OUTER corners round. The selected row gets the ink border + tint. */
.co-radiogroup { border-radius: 10px; }
.co-radiogroup > * { border: 1px solid var(--line); margin-top: -1px; }
.co-radiogroup > *:first-child { margin-top: 0; border-top-left-radius: 10px; border-top-right-radius: 10px; }
.co-radiogroup > *:last-child { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
.co-radio { position: relative; display: flex; align-items: center; gap: var(--space-3); padding: 0.85rem 1.15rem; background: #fff; cursor: pointer; transition: border-color .12s var(--ease), background .12s var(--ease); }
.co-radio.is-selected { border-color: var(--ink); background: var(--paper-2); z-index: 1; }
.co-radio-input { position: absolute; opacity: 0; width: 0; height: 0; }
.co-radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--ink); background: #fff; flex-shrink: 0; box-sizing: border-box; transition: border-width .13s var(--ease); }
.co-radio.is-selected .co-radio-dot { border-width: 6px; }
.co-radio-label { flex: 1; font-size: 0.9rem; color: var(--ink); }
.co-radio-label strong { font-weight: 600; }
.co-radio-trailing { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 0.9rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.co-pay-icon { display: block; border-radius: 3px; }

/* Payment expansion panels (flat siblings of the connected list). */
.co-pay-panel { background: var(--paper-2); padding: var(--space-4) var(--space-5); }
.co-pay-note { margin: 0; color: var(--muted); font-size: 0.83rem; text-align: center; line-height: 1.5; }

/* Card-entry fields. The number/expiry/cvc mounts are empty bordered boxes the
   PCI SDK (Stripe Elements, T4.5) hydrates into via [data-stripe]; they read as
   inputs with a floating-style top label until then. */
.co-card-panel { background: #fff; display: flex; flex-direction: column; gap: var(--space-3); }
.co-card-field { position: relative; }
.co-card-label { position: absolute; left: 0.9rem; top: 0.4rem; font-size: 0.66rem; color: var(--muted); pointer-events: none; z-index: 1; }
.co-card-mount-el { height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 1.25rem 0.85rem 0.35rem; box-sizing: border-box; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.co-card-mount-el.is-focused { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* Billing fields (separate panel below the radios). */
.co-billing-fields { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }

.co-pay-btn { width: 100%; height: 52px; border: none; border-radius: 10px; background: var(--ink); color: var(--accent-fg); font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; cursor: pointer; transition: background .2s var(--ease); }
.co-pay-btn:hover:not(:disabled) { background: #3a342c; }
.co-pay-btn:disabled { opacity: 0.55; cursor: default; }
.co-error-banner { border: 1px solid var(--accent); border-radius: 10px; background: rgba(173,74,44,0.08); color: var(--accent-deep); padding: var(--space-3) var(--space-4); font-size: 0.85rem; }
.co-policies { display: flex; flex-wrap: wrap; gap: var(--space-4); border-top: 1px solid var(--line); padding-top: var(--space-5); }
.co-policy-link { background: none; border: none; padding: 0; color: var(--ink-soft); font-size: 0.82rem; text-decoration: underline; cursor: pointer; }
.co-policy-link:hover { color: var(--ink); }

/* Order summary content. */
.co-summary-lines { display: flex; flex-direction: column; gap: var(--space-4); }
.co-line { display: flex; gap: var(--space-4); }
.co-line-thumb { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.co-line-thumb img, .co-line-noimg { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: block; padding: 5px; box-sizing: border-box; }
.co-line-qty { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--accent-fg); font-family: var(--font-sans); font-size: 0.68rem; font-weight: 700; border-radius: 8px; border: 2px solid #fff; box-sizing: border-box; }
.co-line-info { flex: 1; min-width: 0; }
.co-line-name { font-size: 0.88rem; color: var(--ink); }
.co-line-variant { font-size: 0.76rem; color: var(--muted); margin-top: 1px; }
.co-line-discount { font-size: 0.76rem; color: var(--accent); margin-top: 3px; }
.co-line-edit { background: none; border: none; padding: 0; margin-top: 5px; font-size: 0.78rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.co-line-edit:hover { color: var(--ink); }
.co-line-editor { display: flex; align-items: center; gap: var(--space-3); margin-top: 7px; flex-wrap: wrap; }
.co-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.co-qty-btn { width: 28px; height: 28px; border: none; background: #fff; font-size: 1rem; color: var(--ink); cursor: pointer; }
.co-qty-btn:hover:not(:disabled) { background: var(--paper-2); }
.co-qty-btn:disabled { opacity: 0.3; cursor: default; }
.co-qty-val { min-width: 28px; text-align: center; font-size: 0.8rem; }
.co-line-remove { background: none; border: none; padding: 0; font-size: 0.78rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.co-line-remove:hover:not(:disabled) { color: var(--accent); }
.co-line-remove:disabled { opacity: 0.5; }
.co-line-done { background: none; border: none; padding: 0; margin-left: auto; font-size: 0.78rem; color: var(--ink); cursor: pointer; }
.co-line-price { text-align: right; font-size: 0.88rem; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.co-line-price s { color: var(--muted); font-size: 0.76rem; }
.co-line-price span { font-weight: 500; }

.co-coupon-row { display: flex; gap: var(--space-2); }
.co-coupon-input { flex: 1; }
.co-coupon-apply { height: 46px; padding: 0 var(--space-5); border: none; border-radius: 8px; background: var(--ink); color: var(--accent-fg); font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease); }
.co-coupon-apply:hover { background: #3a342c; }
.co-coupon-apply:disabled { opacity: 0.5; cursor: default; }

.co-summary-pricing { display: flex; flex-direction: column; gap: var(--space-2); }
.co-price-row { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--ink); }
.co-savings { color: var(--accent); }
.co-price-shipping { padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.co-price-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: var(--space-1); }
.co-price-total > span:first-child, .co-price-total-val { font-family: var(--font-sans); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.co-cur { font-family: var(--font-sans); font-weight: 400; font-size: 0.72rem; color: var(--muted); }
.co-price-tax { color: var(--muted); font-size: 0.74rem; margin: 0; text-align: right; }

.co-summary-applied:empty { display: none; }
.co-coupon-chip { display: flex; align-items: center; gap: var(--space-2); font-size: 0.85rem; }
.co-coupon-code { font-weight: 600; color: var(--ink); }
.co-coupon-amt { color: var(--accent); font-weight: 600; }
.co-coupon-remove { margin-left: auto; background: none; border: none; font-size: 1.15rem; line-height: 1; color: var(--muted); cursor: pointer; }
.co-coupon-remove:hover { color: var(--ink); }

/* USP / support / Trustpilot sub-sections (soft tinted blocks). */
.co-reassure { display: flex; flex-direction: column; gap: var(--space-3); }
.co-subcard { border-radius: 12px; background: var(--paper); padding: var(--space-4); }
.co-usp { display: flex; flex-direction: column; gap: 0.6rem; }
.co-usp-row { display: flex; align-items: center; gap: var(--space-3); font-size: 0.84rem; color: var(--ink); }
.co-usp-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-soft); }
.co-support h3 { font-size: 0.84rem; font-weight: 700; color: var(--ink); margin: 0 0 var(--space-1); }
.co-support p { font-size: 0.78rem; line-height: 1.5; color: var(--muted); margin: 0; }
.co-support a { color: var(--ink); text-decoration: none; }
.co-support a:hover { text-decoration: underline; }
.co-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem; font-size: 0.8rem; }
.co-trust-word { font-weight: 600; color: var(--ink); }
.co-trust-stars { color: #00b67a; letter-spacing: 1px; }

/* Policy modal. */
.co-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: var(--space-4); background: rgba(29,24,18,0.5); }
.co-modal[hidden] { display: none; }
.co-modal-card { background: var(--paper); border-radius: 14px; max-width: 600px; width: 100%; max-height: 80vh; display: flex; flex-direction: column; }
.co-modal-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5); border-bottom: 1px solid var(--line); }
.co-modal-head h2 { margin: 0; font-size: 1.1rem; }
.co-modal-close { background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; }
.co-modal-close:hover { color: var(--ink); }
.co-modal-body { padding: var(--space-5); overflow-y: auto; }

/* Post-redirect payment-return page (hosted by the poll island). */
.co-return { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 65px); padding: var(--space-6); text-align: center; }
.co-return-card { max-width: 420px; }
.co-return-card h1 { font-family: var(--font-sans); font-weight: 600; font-size: 1.3rem; color: var(--ink); margin: 0 0 var(--space-2); }
.co-return-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin: 0 0 var(--space-4); }
.co-return-spinner { display: inline-block; width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; margin-bottom: var(--space-4); animation: co-spin 0.8s linear infinite; }
@keyframes co-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .co-return-spinner { animation-duration: 2s; } }
.co-return-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.co-return-retry, .co-return-back-btn { width: auto; height: 44px; padding: 0 var(--space-5); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.co-return-back { display: inline-flex; align-items: center; height: 44px; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.co-return-back:hover { background: var(--paper-2); }

@media (max-width: 900px) {
  .co-header-split { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--space-6); min-height: 60px; }
  .co-header-pad, .co-header-pad-right { max-width: none; padding: 0; }
  .co-split { grid-template-columns: 1fr; min-height: 0; }
  .co-split-form { justify-content: center; }
  .co-form { max-width: 600px; border-right: none; padding: var(--space-6); }
  .co-summary { width: 100%; position: static; padding: 0 var(--space-6) var(--space-6); }
}

/* ── Contact ───────────────────────────────────────────────────────────────
   A presentation page (hero + triage cards + prominent phone/email), reusing
   the shared .page-hero / .page-lead / .eyebrow chrome. */
.contact-hero .eyebrow { display: block; margin-bottom: var(--space-3); }
.eyebrow-muted { color: var(--muted); }
.contact-triage { padding-block: var(--space-8); border-bottom: 1px solid var(--line); }
.contact-triage .eyebrow { display: block; margin-bottom: var(--space-5); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.contact-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.contact-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.contact-card-icon { color: var(--accent); }
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card-label { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.contact-card-sub { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.contact-reach { padding-block: var(--space-10); background: var(--paper-2); }
.contact-reach .eyebrow { display: block; margin-bottom: var(--space-3); }
.contact-reach-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 var(--space-4); }
.contact-reach-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-8); }
.contact-reach-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color .2s var(--ease); }
.contact-reach-card:hover { border-color: var(--accent); }
.contact-reach-eyebrow { font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
.contact-reach-value { font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 1.9rem); color: var(--ink); word-break: break-word; }
.contact-hours-note { margin-top: var(--space-6); font-size: 0.85rem; color: var(--muted); }
@media (max-width: 760px) {
  .contact-cards { grid-template-columns: 1fr; }
  .contact-reach-cards { grid-template-columns: 1fr; }
}

/* ── Tracking ──────────────────────────────────────────────────────────────
   Self-serve tracking portal (/tracking) + live timeline (/tracking/<code>).
   The tracking.js island renders the form/timeline; these styles dress it in
   the Editorial-Atelier palette — dark ink = a completed step, accent = where
   the order is now. */
.tracking-portal { padding-block: var(--space-8) var(--space-10); }
.tracking-portal-inner, .tracking-detail-inner { max-width: 640px; }
.tracking-detail { padding-block: var(--space-8) var(--space-10); }
.tr-noscript { color: var(--muted); font-size: 0.9rem; }

/* Lookup form */
.tr-form-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: var(--space-6); }
.tr-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: var(--space-5); }
.tr-tab { appearance: none; background: none; border: none; border-bottom: 2px solid var(--line); padding-bottom: var(--space-3); font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease); }
.tr-tab:hover { color: var(--ink-soft); }
.tr-tab.is-active { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.tr-form { display: flex; flex-direction: column; gap: var(--space-3); }
.tr-input { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 0.7rem var(--space-4); font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink); outline: none; transition: border-color .2s var(--ease); }
.tr-input:focus { border-color: var(--ink); }
.tr-input::placeholder { color: var(--muted); }
.tr-submit { margin-top: var(--space-1); border: none; border-radius: var(--radius-sm); background: var(--ink); color: var(--accent-fg); padding: 0.8rem var(--space-4); font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.tr-submit:hover { background: var(--accent); transform: translateY(-1px); }
.tr-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.tr-form-error { margin-top: var(--space-4); border-radius: var(--radius-sm); background: rgba(173, 74, 44, 0.08); color: var(--accent-deep); padding: var(--space-3) var(--space-4); font-size: 0.85rem; line-height: 1.5; }
.tr-form-hint { margin-top: var(--space-5); text-align: center; font-size: 0.78rem; color: var(--muted); line-height: 1.55; }

/* Preparing (verified-but-unshipped) */
.tr-prepare { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: var(--space-8) var(--space-6); text-align: center; }
.tr-bike { width: fit-content; margin: 0 auto; color: var(--ink); }
.tr-bike svg { display: block; width: 168px; height: auto; margin: 0 auto; }
.tr-bike-box { stroke: var(--accent); }
.tr-bike-ground { height: 6px; margin-top: var(--space-2); stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.tr-bike-ground line { animation: tr-drift 1.4s linear infinite; }
.tr-prepare-eyebrow { margin-top: var(--space-5); font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); }
.tr-prepare-title { font-size: clamp(1.3rem, 2.5vw, 1.7rem); margin: var(--space-2) 0 0; }
.tr-prepare-lead { max-width: 40ch; margin: var(--space-3) auto 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.tr-prepare-order { display: inline-block; margin-top: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: var(--space-3) var(--space-4); }
.tr-prepare-order-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.tr-prepare-order-code { margin-top: 2px; font-family: var(--font-sans); font-weight: 600; color: var(--ink); }
.tr-prepare-back { appearance: none; background: none; border: none; margin-top: var(--space-6); font-size: 0.78rem; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; transition: color .2s var(--ease); }
.tr-prepare-back:hover { color: var(--accent); }

/* Live timeline */
.tr-loading { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: var(--space-6); color: var(--muted); font-size: 0.9rem; }
.tr-empty { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: var(--space-5) var(--space-6); color: var(--muted); font-style: italic; }
.tr-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.tr-panel-head { padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--line); }
.tr-order { font-size: 0.78rem; color: var(--muted); }
.tr-status { margin-top: var(--space-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.tr-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.25rem var(--space-3); font-size: 0.72rem; font-weight: 600; }
.tr-pill-pre_shipping { background: var(--paper-2); color: var(--ink-soft); }
.tr-pill-shipped { background: rgba(173, 74, 44, 0.12); color: var(--accent-deep); }
.tr-pill-delivered { background: var(--ink); color: var(--paper); }
.tr-eta { font-size: 0.85rem; color: var(--ink-soft); }
.tr-code { margin-top: var(--space-2); font-size: 0.78rem; color: var(--muted); }
.tr-code-val { font-family: var(--font-sans); font-weight: 600; color: var(--ink); }
.tr-timeline { list-style: none; margin: 0; padding: var(--space-4) var(--space-6); }
.tr-row { display: flex; gap: var(--space-4); }
.tr-row:not(.tr-row-last) { padding-bottom: var(--space-4); }
.tr-marker { position: relative; display: flex; flex-direction: column; align-items: center; }
.tr-dot { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; flex-shrink: 0; }
.tr-dot svg { width: 17px; height: 17px; }
.tr-dot-complete { background: var(--ink); color: var(--paper); }
.tr-dot-current { background: var(--accent); color: var(--accent-fg); box-shadow: 0 0 0 4px rgba(173, 74, 44, 0.16); animation: tr-pulse 2s var(--ease) infinite; }
.tr-dot-pending { background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); }
.tr-line { margin-top: 4px; width: 1.5px; flex: 1; min-height: 1.5rem; background: var(--line); }
.tr-line-complete { background: var(--ink); }
.tr-body { flex: 1; min-width: 0; padding-bottom: 2px; }
.tr-step-header { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.tr-step-pending { color: var(--muted); font-weight: 500; }
.tr-step-time { margin-top: 2px; font-size: 0.75rem; color: var(--muted); }
.tr-step-desc { margin-top: var(--space-2); font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; }
.tr-details { margin-top: var(--space-4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.tr-detail { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); padding: var(--space-3) var(--space-4); }
.tr-detail-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.tr-detail-value { margin-top: 2px; font-size: 0.85rem; color: var(--ink); }
.tr-mono { font-family: var(--font-sans); font-weight: 600; }
.tr-refresh-note { margin-top: var(--space-5); font-size: 0.75rem; color: var(--muted); }
.tr-notfound { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: var(--space-8) var(--space-6); text-align: center; }
.tr-notfound-title { font-size: clamp(1.3rem, 2.5vw, 1.7rem); margin: 0; }
.tr-notfound-lead { max-width: 44ch; margin: var(--space-3) auto var(--space-5); font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.tr-notfound-link { display: inline-block; border: 1px solid var(--ink); border-radius: var(--radius-sm); padding: 0.6rem var(--space-5); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); transition: background .2s var(--ease), color .2s var(--ease); }
.tr-notfound-link:hover { background: var(--ink); color: var(--accent-fg); }
@keyframes tr-drift { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -20; } }
@keyframes tr-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(173, 74, 44, 0.16); } 50% { box-shadow: 0 0 0 7px rgba(173, 74, 44, 0.06); } }
@media (prefers-reduced-motion: reduce) { .tr-bike-ground line, .tr-dot-current { animation: none; } }
@media (max-width: 760px) {
  .tr-details { grid-template-columns: 1fr; }
}

/* ── Store lock (pre-launch gate) ────────────────────────────────────────────
   /password renders through the focused "password-shell" (no chrome), so this
   styles a full-viewport centred card that stands in for the whole store. */
.lock-page { background: var(--paper); }
.lock-overlay { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: var(--space-6); }
.lock-card { width: 100%; max-width: 360px; text-align: center; }
.lock-store { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--ink); margin: 0; }
.lock-sub { margin: var(--space-2) 0 0; font-size: 0.9rem; color: var(--muted); }
.lock-form { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.lock-input { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 0.7rem var(--space-4); font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink); outline: none; transition: border-color .2s var(--ease); }
.lock-input:focus { border-color: var(--ink); }
.lock-input::placeholder { color: var(--muted); }
.lock-btn { border: none; border-radius: var(--radius-sm); background: var(--ink); color: var(--accent-fg); padding: 0.8rem var(--space-4); font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.lock-btn:hover { background: var(--accent); transform: translateY(-1px); }
.lock-error { margin: 0; font-size: 0.82rem; color: var(--accent-deep); }
