/*
 * app.css — the whole stylesheet.
 *
 * One file on purpose: a dozen pages and no build step. Splitting it would buy
 * nothing and cost a bundler.
 *
 * Structure: tokens → base → layout → components → pages → responsive.
 * Colours are defined once on :root and overridden as a block for dark mode,
 * so no component ever hardcodes a colour.
 *
 * Gotcha: the type scale is fluid (clamp) but the *spacing* scale is not.
 * Fluid spacing on top of fluid type makes small screens collapse unevenly,
 * and the order list has to stay readable one-handed on a phone above all else.
 */

/* ---- tokens --------------------------------------------------------------- */

:root {
  /* Warm neutrals — paper, not grey. */
  --paper:      #f7f4ee;
  --paper-2:    #efe9df;
  --surface:    #ffffff;
  --surface-2:  #f4efe6;
  --ink:        #1c1a17;
  --ink-soft:   #57514a;
  --ink-faint:  #8a8177;
  --line:       #e6ded1;
  --line-soft:  #f0e9de;

  --brand:      #2f5741;
  --brand-deep: #22402f;
  --brand-soft: #e8efe9;
  --accent:     #c05a2a;
  --accent-soft:#fbeadf;
  --warn:       #8a6100;
  --warn-soft:  #fdf4dc;
  --danger:     #a83232;
  --ok:         #2c6b46;
  --ok-soft:    #e7f2ea;

  /* Radii: generous, but a pill only where something is tappable. */
  --r-lg:  20px;
  --r-md:  14px;
  --r-sm:  10px;
  --r-pill: 999px;

  /* Layered, low-opacity shadows — one contact shadow plus one soft spread. */
  --shadow-sm: 0 1px 2px rgba(28, 26, 23, .05);
  --shadow:    0 1px 2px rgba(28, 26, 23, .05), 0 6px 20px -8px rgba(28, 26, 23, .12);
  --shadow-lg: 0 1px 2px rgba(28, 26, 23, .06), 0 18px 44px -16px rgba(28, 26, 23, .22);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --nav-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #14130f;
    --paper-2:    #191713;
    --surface:    #1e1c18;
    --surface-2:  #272420;
    --ink:        #f2ece2;
    --ink-soft:   #bab2a6;
    --ink-faint:  #8b8377;
    --line:       #35312b;
    --line-soft:  #2a2721;

    --brand:      #9cc7a8;
    --brand-deep: #b6d8bf;
    --brand-soft: #1f2a22;
    --accent:     #e08a58;
    --accent-soft:#2c1e16;
    --warn:       #e0b76a;
    --warn-soft:  #2a2416;
    --danger:     #e58888;
    --ok:         #8ecfa3;
    --ok-soft:    #1c2a21;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow:    0 1px 2px rgba(0, 0, 0, .5), 0 6px 20px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 44px -16px rgba(0, 0, 0, .7);
  }
}

/* ---- base ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchored order rows must not hide under the sticky header. */
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.1;
  margin: 0 0 .45em;
  font-weight: 600;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); }
h3 { font-size: 1.16rem; letter-spacing: -.005em; }

p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--surface-2); padding: .12em .45em; border-radius: 6px; font-size: .88em;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- layout --------------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 780px); }
.page { padding: 3rem 0 5rem; }
.center { text-align: center; }

.site-header {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--nav-h);
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 10px; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.18rem; line-height: 1.1; letter-spacing: -.01em; }
.brand small { display: block; color: var(--ink-faint); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .94rem;
  padding: .45rem .8rem; border-radius: var(--r-pill); transition: background .15s, color .15s;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a.here { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 5rem; padding: 3rem 0;
  font-size: .94rem; color: var(--ink-soft);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; }
.site-footer h3 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-faint); font-family: var(--sans); font-weight: 600;
}
.contact { line-height: 1.85; }

/* ---- banners -------------------------------------------------------------- */

.banner {
  border-radius: var(--r-md); padding: .9rem 1.15rem; margin: 1.5rem 0;
  border: 1px solid transparent; font-size: .96rem;
}
.banner.ok   { background: var(--ok-soft);     border-color: color-mix(in srgb, var(--ok) 35%, transparent);     color: var(--ok); }
.banner.err  { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); }
.banner.warn { background: var(--warn-soft);   border-color: color-mix(in srgb, var(--warn) 35%, transparent);   color: var(--warn); }
.inline-banner { margin: 1.25rem 0 0; }

/* ---- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid var(--brand); background: var(--brand); color: #fff;
  padding: .6rem 1.25rem; border-radius: var(--r-pill);
  font: inherit; font-size: .94rem; font-weight: 550; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); box-shadow: var(--shadow-sm); }
.btn.big { padding: .9rem 1.9rem; font-size: 1.04rem; }
.btn.small { padding: .35rem .85rem; font-size: .84rem; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-soft); box-shadow: none; }
.btn.danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); box-shadow: none; }
.btn.danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.tick { background: var(--ok); border-color: var(--ok); }
.btn.tick:hover { background: color-mix(in srgb, var(--ok) 82%, #000); border-color: transparent; }

/* The tick glyph is drawn, not a font character, so it never depends on which
   emoji set the phone happens to ship. */
.check {
  width: .78em; height: .42em; display: inline-block;
  border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg) translate(1px, -2px);
}

.link-btn {
  background: none; border: 0; padding: .45rem .8rem; font: inherit; font-size: .94rem;
  color: var(--ink-soft); cursor: pointer; border-radius: var(--r-pill);
}
.link-btn:hover { color: var(--ink); background: var(--surface-2); }
.quiet-link { font-size: .86rem; color: var(--ink-faint); text-decoration: none; }
.quiet-link:hover { color: var(--brand); text-decoration: underline; }
.inline { display: inline; }

@media (prefers-color-scheme: dark) {
  .btn, .btn:hover { color: #14201a; }
  .btn.ghost, .btn.danger { color: var(--brand); }
  .btn.danger { color: var(--danger); }
  .btn.danger:hover { color: #180f0f; }
}

/* ---- hero ----------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(900px 420px at 88% -8%, var(--brand-soft), transparent 62%),
    linear-gradient(var(--surface), var(--surface));
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 3.5rem;
  align-items: center; padding: 4.5rem 0;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  color: var(--accent); font-weight: 650; margin-bottom: .9rem;
  padding: .3rem .75rem; border-radius: var(--r-pill);
  background: var(--accent-soft);
}
.ok-eyebrow { color: var(--ok); background: var(--ok-soft); }
.hero h1 { margin-bottom: .38em; }
.lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 54ch; }
.deadline { font-size: .94rem; color: var(--ink-soft); }
.hero-img img {
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
}

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem; padding: 3rem 0 1rem;
}
.fact {
  padding: 1.3rem 1.4rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.fact strong { display: block; margin-bottom: .25rem; }
.fact span { color: var(--ink-soft); font-size: .92rem; }

/* ---- product cards -------------------------------------------------------- */

.category { padding-top: 4rem; }
.category-head { max-width: 62ch; margin-bottom: 1.75rem; }
.category-head p { color: var(--ink-soft); margin-bottom: .3em; }
.hint { color: var(--ink-faint); font-size: .91rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 1.5rem; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-soft); }
.card.is-out { opacity: .72; }
.card.is-out:hover { transform: none; }
.card-img { position: relative; background: var(--surface-2); }
.card-img img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.badge {
  position: absolute; left: .8rem; top: .8rem; padding: .28rem .7rem;
  border-radius: var(--r-pill); font-size: .75rem; font-weight: 650; letter-spacing: .01em;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(6px);
  color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.badge.out { background: var(--accent); color: #fff; }
.badge.left { color: var(--brand); }

.card-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3rem; }
.price { margin-bottom: .6rem; display: flex; align-items: baseline; gap: .35rem; }
.price strong { font-size: 1.3rem; font-family: var(--serif); }
.price span { color: var(--ink-faint); font-size: .9rem; }
.open-price { color: var(--warn); font-size: 1.02rem; }
.desc { color: var(--ink-soft); font-size: .93rem; }
.note { color: var(--ink-faint); font-size: .85rem; margin-bottom: .5rem; }

.qty { margin-top: auto; padding-top: 1rem; }
.qty label { display: flex; align-items: center; gap: .55rem; }
.qty input[type="number"] { width: 6.5rem; font-variant-numeric: tabular-nums; }
.qty .unit, .wl-qty span { color: var(--ink-faint); font-size: .9rem; }
.waitlist { font-size: .92rem; color: var(--accent); margin-bottom: .55rem; }
.wl-qty { font-size: .88rem; color: var(--ink-faint); gap: .45rem; }
.wl-qty input { width: 5rem; }
.sold-note { color: var(--ink-faint); font-size: .89rem; margin: 0; }

/* ---- forms ---------------------------------------------------------------- */

input[type="text"], input[type="tel"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="date"], select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .6rem .8rem; width: 100%; max-width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-faint); }
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
  outline: none;
}
textarea { resize: vertical; }

.form label, .contact-fields label {
  display: block; margin-bottom: 1.2rem; font-size: .92rem; font-weight: 550; color: var(--ink-soft);
}
.form label input, .form label select, .form label textarea,
.contact-fields label input, .contact-fields label textarea { margin-top: .4rem; font-weight: 400; }
.form small, .contact-fields small, .upload small {
  display: block; margin-top: .35rem; color: var(--ink-faint); font-weight: 400; font-size: .84rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.label-like { display: block; font-size: .92rem; font-weight: 550; color: var(--ink-soft); margin-bottom: .4rem; }
.req { color: var(--accent); }
.opt { color: var(--ink-faint); font-weight: 400; }

label.checkbox { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; }
label.checkbox input { width: auto; margin-top: .3rem; accent-color: var(--brand); }
.big-check { background: var(--surface-2); padding: 1.1rem 1.25rem; border-radius: var(--r-md); }

.upload { margin-bottom: 1.3rem; }
.upload input[type="file"] { font-size: .88rem; }
.current-photo { display: flex; gap: 1rem; align-items: center; margin-bottom: .8rem; }
.current-photo img { width: 140px; border-radius: var(--r-sm); }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.75rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.panel h2 { font-size: 1.15rem; }
.warn-panel { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); }
.pre { white-space: pre-line; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
.inline-form label { margin-bottom: 0; }
.inline-form .btn { margin-top: 1.65rem; }

/* ---- checkout ------------------------------------------------------------- */

.checkout { padding-top: 4rem; }
.checkout-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }

.summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.75rem; position: sticky; top: calc(var(--nav-h) + 1rem); box-shadow: var(--shadow);
}
.summary ul { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.summary li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--line-soft); font-size: .94rem;
}
.summary li.empty { color: var(--ink-faint); border: 0; }
.summary li span:last-child { white-space: nowrap; color: var(--ink-soft); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; margin-bottom: 1.1rem; }
.sum-total strong { font-size: 1.6rem; font-family: var(--serif); }
.fineprint { font-size: .8rem; color: var(--ink-faint); margin: 1rem 0 0; line-height: 1.5; }

/* ---- order overview ------------------------------------------------------- */

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.page-head h1 { margin-bottom: .15em; }
.page-head .lead { margin: 0; font-size: 1.02rem; }

.progress {
  height: 8px; border-radius: var(--r-pill); background: var(--surface-2);
  overflow: hidden; margin-bottom: 1.75rem; border: 1px solid var(--line-soft);
}
.progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--brand), var(--ok));
  border-radius: var(--r-pill); transition: width .4s ease;
}

/* Segmented control — one tap target per state, counts inline so nothing
   looks hidden behind a filter. */
.segmented {
  display: inline-flex; gap: .25rem; padding: .3rem;
  background: var(--surface-2); border-radius: var(--r-pill);
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.segmented a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1.1rem; border-radius: var(--r-pill);
  text-decoration: none; color: var(--ink-soft); font-size: .93rem; font-weight: 550;
  transition: background .15s, color .15s;
}
.segmented a:hover { color: var(--ink); }
.segmented a.here { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented a span {
  font-size: .78rem; font-variant-numeric: tabular-nums;
  background: var(--paper-2); color: var(--ink-faint);
  padding: .05rem .45rem; border-radius: var(--r-pill);
}
.segmented a.here span { background: var(--brand-soft); color: var(--brand); }

.searchbar, .filterbar, .exports {
  display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.75rem;
}
.searchbar input[type="search"], .filterbar input[type="search"] { flex: 1 1 240px; width: auto; }
.searchbar select, .filterbar select { width: auto; }
.exports span { color: var(--ink-faint); font-size: .87rem; }

.orderlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }

.order-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem; display: flex; gap: 1.5rem; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.order-card:hover { box-shadow: var(--shadow); }
.order-card:target { border-color: var(--brand); }
.order-card.is-done { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.order-card.is-cancelled { opacity: .55; }

.order-main { flex: 1 1 340px; min-width: 0; }
.order-top { display: flex; align-items: baseline; gap: .65rem; flex-wrap: wrap; margin-bottom: .1rem; }
.order-top h2 { font-size: 1.28rem; margin: 0; }
.order-top .ref {
  font-size: .78rem; color: var(--ink-faint); font-weight: 500;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.order-meta { color: var(--ink-faint); font-size: .88rem; margin-bottom: .75rem; }
.order-meta a { color: var(--ink-soft); }
.order-meta .dot { margin: 0 .35rem; opacity: .6; }

.order-items { list-style: none; padding: 0; margin: 0 0 .5rem; }
.order-items li { padding: .1rem 0; font-size: .96rem; }
.order-items li.wl { color: var(--ink-faint); }
.order-items strong { font-variant-numeric: tabular-nums; }

.order-note {
  font-style: italic; color: var(--ink-soft); margin: .6rem 0 0;
  padding-left: .8rem; border-left: 2px solid var(--line);
}
.done-stamp { font-size: .84rem; color: var(--ok); margin: .7rem 0 0; }

.order-actions {
  display: flex; flex-direction: column; align-items: stretch; gap: .5rem;
}
/* Big tap target: used one-handed, on a phone, in a cold room. */
.order-actions .btn { padding: .85rem 1.8rem; font-size: 1rem; }
.order-actions .quiet-link { text-align: center; }

.admin-extras {
  margin-top: 3.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem;
}
.admin-extras > summary {
  cursor: pointer; font-weight: 600; color: var(--ink-soft);
  padding: .5rem 0; list-style-position: outside;
}
.admin-extras > summary:hover { color: var(--ink); }
.admin-extras[open] > summary { margin-bottom: 1.25rem; }

/* ---- tables --------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface);
}
table.data { width: 100%; border-collapse: collapse; font-size: .91rem; }
table.data th, table.data td {
  padding: .8rem .9rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top;
}
table.data thead th {
  background: var(--surface-2); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-faint); font-weight: 650;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.row-inactive td { opacity: .55; }
.is-zero { color: var(--accent); }

table.lines { width: 100%; border-collapse: collapse; }
table.lines td, table.lines th { padding: .55rem 0; border-bottom: 1px solid var(--line-soft); text-align: left; }
table.lines tfoot th { border-bottom: 0; border-top: 2px solid var(--line); padding-top: .8rem; }
table.lines tr.wl td { color: var(--ink-faint); }

.thumb-cell { width: 64px; }
.thumb { width: 54px; height: 54px; border-radius: var(--r-sm); object-fit: cover; }
.thumb-empty { display: grid; place-items: center; background: var(--surface-2); color: var(--ink-faint); }

.tag {
  display: inline-block; padding: .18rem .6rem; border-radius: var(--r-pill);
  font-size: .74rem; font-weight: 650; background: var(--surface-2); color: var(--ink-soft);
  vertical-align: middle;
}
.tag-done { background: var(--ok-soft); color: var(--ok); }
.tag-off  { background: var(--accent-soft); color: var(--accent); }
.tag-wl   { background: var(--warn-soft); color: var(--warn); }

.ref { font-variant-numeric: tabular-nums; font-weight: 600; }
.crumb { font-size: .89rem; margin-bottom: .6rem; }
.section-head { margin-top: 3.5rem; }
.empty-state {
  color: var(--ink-faint); padding: 3.5rem 1rem; text-align: center;
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.2rem; }
.stat strong { display: block; font-size: 1.7rem; font-family: var(--serif); line-height: 1.15; letter-spacing: -.02em; }
.stat span { color: var(--ink-faint); font-size: .82rem; }

/* ---- responsive ----------------------------------------------------------- */

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.25rem; padding: 3rem 0; }
  .hero-img { order: -1; }
  .checkout-grid { grid-template-columns: 1fr; gap: 2rem; }
  .summary { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 1.75rem, var(--wrap)); }
  .page { padding: 2rem 0 3.5rem; }
  .field-row { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; padding: .55rem 0; min-height: 0; }
  .site-nav { gap: .15rem; }
  .site-nav a, .link-btn { padding: .4rem .6rem; font-size: .88rem; }
  .cards { grid-template-columns: 1fr; }
  .panel { padding: 1.35rem; }
  .segmented { display: flex; width: 100%; }
  .segmented a { flex: 1; justify-content: center; padding: .55rem .5rem; }
  .order-card { padding: 1.15rem 1.2rem; gap: 1rem; }
  .order-actions { width: 100%; }
  .order-actions .btn { width: 100%; }
  .inline-form { grid-template-columns: 1fr; }
  .inline-form .btn { margin-top: 0; }
  .page-head { gap: 1rem; }
}
