/* Nori Supermarket - colours taken from the logo and shop-front signage. */
:root {
  --green-900: #172a20;
  --green-800: #23392d;   /* logo "nori" */
  --green-700: #2f4a3b;
  --sage-400: #9bb3a2;    /* shop-front wave lines */
  --sage-100: #e3ebe4;
  --terracotta: #b85b32;  /* logo dot + "SUPERMARKET" */
  --terracotta-dark: #9a4a27;
  --cream: #f7f2e9;       /* shop-front lettering */
  --cream-200: #efe7d8;
  --white: #ffffff;
  --ink: #1f2a24;
  --muted: #5d6a62;
  --line: #e2dccf;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(23, 42, 32, .06), 0 6px 20px rgba(23, 42, 32, .07);
  --shadow-hover: 0 2px 4px rgba(23, 42, 32, .08), 0 14px 32px rgba(23, 42, 32, .12);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
}
/* Outfit has no Chinese characters - name good Chinese system fonts rather than leave it to chance. */
:lang(zh) { --font: "Outfit", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif; }
/* Wide letter-spacing suits capitals, not Chinese characters. */
:lang(zh) .eyebrow, :lang(zh) .product-category, :lang(zh) .catalog-sidebar h2, :lang(zh) .footer-col h2 { letter-spacing: .08em; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-800); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--green-800); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.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; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--green-800); color: var(--cream); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Echoes the letter-spaced "SUPERMARKET" in the logo */
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--terracotta); margin: 0 0 .6em;
}
.eyebrow-light { color: #e3a07f; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  padding: .75em 1.4em; border-radius: 999px; border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-800); color: var(--cream); }
.btn-primary:hover { background: var(--green-700); }
.btn-accent { background: var(--terracotta); color: var(--white); }
.btn-accent:hover { background: var(--terracotta-dark); }
.btn-outline { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn-outline:hover { background: var(--green-800); color: var(--cream); }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin .15s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---- Location bar (top of every page) ---- */
.location-bar { background: var(--green-800); color: var(--cream); font-size: .85rem; }
.location-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; min-height: 36px; padding-block: 6px; }
.location-bar a { display: inline-flex; align-items: center; gap: 6px; color: var(--cream); text-decoration: none; }
.location-bar a:hover strong { text-decoration: underline; }
.location-bar svg { color: #e3a07f; flex: none; }
.location-bar-extra { color: var(--sage-400); }
.location-bar-name { color: var(--sage-400); }
.location-bar a.location-bar-parking { font-weight: 600; }
.location-bar-parking .parking-badge { background: var(--cream); color: var(--green-800); }
.location-bar-end { display: flex; align-items: center; gap: 14px; }
.location-bar a.lang-switch {
  padding: 2px 12px; border: 1px solid var(--sage-400); border-radius: 999px;
  font-weight: 600; white-space: nowrap;
}
.location-bar a.lang-switch svg { color: var(--cream); }
.location-bar a.lang-switch:hover { background: var(--cream); color: var(--green-800); }
.location-bar a.lang-switch:hover svg { color: var(--green-800); }
@media (max-width: 700px) {
  .location-bar-inner { justify-content: center; text-align: center; }
  .location-bar-name { display: none; }
}

/* Only shown to logged-in managers while maintenance mode is on */
.preview-bar { background: var(--terracotta); color: var(--white); text-align: center; padding: 8px var(--gutter); font-size: .9rem; }
.preview-bar a { color: var(--white); font-weight: 600; margin-left: 6px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 233, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { width: 120px; height: auto; }

/* Courier logos next to the logo on the home page (header.php), linking to courier.php. */
.brand, .header-couriers { flex: none; }
.header-couriers { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); }
.header-courier { display: grid; place-items: center; height: 30px; padding: 0 7px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; transition: box-shadow .2s, transform .2s; }
.header-courier img { height: 18px; width: auto; display: block; }
.header-courier-dhl { background: #ffcc00; border-color: #ffcc00; padding: 0 3px; }
.header-couriers:hover .header-courier { box-shadow: var(--shadow); transform: translateY(-1px); }
@media (min-width: 861px) and (max-width: 1060px) {
  .header-inner { gap: 16px; }
  .site-nav > a { padding: .5em .7em; white-space: nowrap; }
  .site-header .header-search input { width: 110px; }
}
/* Not enough room for the courier logos and the header search: the home page has its own
   big search box, so drop the header one there. */
@media (min-width: 861px) and (max-width: 1000px) {
  .header-inner:has(.header-couriers) .header-search { display: none; }
}
/* Phones: the logos get their own row under the logo and menu button. */
@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; row-gap: 0; }
  .header-couriers { order: 3; width: 100%; justify-content: center; padding-bottom: 10px; }
  .header-courier { height: 26px; }
  .header-courier img { height: 15px; }
}
.site-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-nav > a {
  text-decoration: none; font-weight: 500; padding: .5em .9em; border-radius: 999px; color: var(--green-800);
}
.site-nav > a:hover { background: var(--cream-200); }
.site-nav > a[aria-current="page"] { background: var(--green-800); color: var(--cream); }

.header-search { display: flex; align-items: center; margin-left: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 14px; }
.header-search input { border: 0; background: transparent; font: inherit; font-size: .9rem; width: 170px; padding: 6px 0; color: var(--ink); }
.header-search input:focus { outline: none; }
.header-search:focus-within { border-color: var(--green-800); }
.header-search button { border: 0; background: var(--green-800); color: var(--cream); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius-sm); position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--green-800); border-radius: 2px; content: ""; transition: transform .2s, top .2s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: .75em 1em; }
  .header-search { margin: 8px 0 0; }
  .header-search input { width: 100%; flex: 1; }
}

/* ---- Hero ---- */
.hero { padding-block: clamp(32px, 6vw, 72px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.lede { font-size: 1.125rem; color: var(--muted); max-width: 34em; }
.hero-search { display: flex; gap: 8px; background: var(--white); padding: 6px; border-radius: 999px; box-shadow: var(--shadow); max-width: 480px; margin-top: 8px; }
.hero-search input { flex: 1; min-width: 0; border: 0; font: inherit; padding: 0 16px; background: transparent; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 2px var(--green-800), var(--shadow); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-tags span { font-size: .85rem; font-weight: 500; color: var(--green-800); background: var(--sage-100); padding: .35em .9em; border-radius: 999px; }
.hero-location {
  display: inline-flex; align-items: center; gap: 12px; margin: 4px 0 18px; padding: 10px 18px 10px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  color: var(--green-800); line-height: 1.35; transition: border-color .15s, box-shadow .15s;
}
.hero-location:hover { border-color: var(--green-800); box-shadow: var(--shadow); }
.hero-location svg { color: var(--terracotta); flex: none; }
.hero-location strong { display: block; font-weight: 600; }
.hero-location small { display: block; font-size: .85rem; color: var(--muted); }
.parking-badge {
  display: inline-grid; place-items: center; flex: none; width: 1.5em; height: 1.5em; border-radius: 5px;
  background: #1f5fae; color: #fff; font-weight: 800; font-size: .9em; line-height: 1;
}
.parking-badge-lg { width: 44px; height: 44px; border-radius: 10px; font-size: 1.6rem; }
.hero-parking {
  display: flex; align-items: center; gap: 10px; width: fit-content; margin: -8px 0 18px; padding: 8px 16px 8px 10px;
  background: var(--sage-100); border-radius: 999px; color: var(--green-800); text-decoration: none; font-size: .95rem;
}
.hero-parking:hover strong { text-decoration: underline; }
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%;
  background: var(--terracotta); top: -26px; right: -18px; z-index: 0;
}
.hero-photo { position: relative; z-index: 1; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-hover); aspect-ratio: 5 / 4; background: var(--green-800); }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 3D Nori peeking over the photo (assets/js/fun/hero.js adds .is-live) - the photo (z-index 1)
   hides the bottom of its canvas. Hidden during a Nori Hunt (hunt.js sets .nori-hunting) so the
   only Noris to find are the game's. */
.hero-peek { display: none; position: absolute; z-index: 0; top: -84px; right: 92px; width: 124px; height: 124px; cursor: pointer; }
.hero-peek.is-live { display: block; }
.nori-hunting .hero-peek { display: none; }
.hero-peek canvas { display: block; width: 100%; height: 100%; }
.hero-media:has(.hero-peek.is-live) { margin-top: 48px; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-peek { top: -72px; right: 72px; width: 108px; height: 108px; }
  .hero-media { order: -1; }
  .hero-media::before { width: 60px; height: 60px; top: -14px; right: -6px; }
}

/* ---- Meet Nori: 3D mascot + falling groceries (assets/js/fun/playground.js adds .is-live) ---- */
.playground { padding-block: clamp(24px, 4vw, 48px); }
.playground-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.playground-copy p:not(.eyebrow) { color: var(--muted); }
.playground-drop { display: none; margin-top: 4px; }
.playground.is-live .playground-drop { display: inline-flex; }
.playground-stage {
  position: relative; height: clamp(340px, 40vw, 500px); border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 60% 15%, var(--white) 0%, var(--sage-100) 75%); box-shadow: inset 0 0 0 1px var(--line);
}
.playground-stage::before {
  content: ""; position: absolute; inset: auto 0 0; height: 45%; pointer-events: none;
  background: var(--flow-lines) bottom / 100% 100% no-repeat; opacity: .7;
}
.playground-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.playground-fallback { position: absolute; left: 50%; bottom: 12%; width: 34%; max-width: 170px; height: auto; transform: translateX(-50%); }
.playground.is-live .playground-fallback { display: none; }
.playground-pill {
  position: absolute; z-index: 2; transform: translate(-50%, -100%); white-space: nowrap; text-decoration: none;
  background: var(--green-800); color: var(--cream); font-weight: 600; font-size: .9rem; padding: .45em 1em;
  border-radius: 999px; box-shadow: var(--shadow-hover);
}
.playground-pill:hover { background: var(--terracotta); color: var(--white); }
.playground-pill[hidden] { display: none; }
@media (max-width: 860px) {
  .playground-inner { grid-template-columns: 1fr; }
  .playground-stage { height: 380px; }
}

/* ---- Build a bowl: scroll-driven instant noodles (assets/js/fun/ramen.js adds .is-live) ----
   Japanese style in the site's colours: washi cream, a terracotta sun
   behind the bowl, a big vertical ラーメン. Static: a grid of step cards. Live: a tall section
   whose sticky panel shows one step at a time beside the 3D bowl. */
.ramen {
  position: relative; padding-block: clamp(40px, 7vw, 80px);
  background: #f6efe2;
}
.ramen h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -.02em; }
.ramen-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ramen-step {
  padding: 20px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .82); box-shadow: var(--shadow);
  border-top: 3px solid var(--terracotta); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ramen-step-num { display: block; font-weight: 300; font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; color: var(--terracotta); }
.ramen-step h3 { margin: .35em 0 .25em; font-size: 1.3rem; }
.ramen-step p { margin: 0 0 .8em; color: var(--muted); }
.ramen-stage, .ramen-progress, .ramen-sun { display: none; }
.ramen.is-live { height: 520vh; padding: 0; }
.ramen.is-live .ramen-sticky {
  position: sticky; top: var(--header-h, 72px); overflow: hidden;
  height: calc(100vh - var(--header-h, 72px)); height: calc(100svh - var(--header-h, 72px));
}
/* The sun behind the bowl, and the text side faded to plain washi so the steps read cleanly. */
.ramen.is-live .ramen-sticky::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: min(62vh, 46vw); aspect-ratio: 1; left: 61%; top: 44%; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #d9774a, #b85b32 70%);
  box-shadow: 0 0 0 18px rgba(184, 91, 50, .08), 0 0 0 40px rgba(184, 91, 50, .05);
}
.ramen.is-live .ramen-sticky::after {
  content: "ラーメン"; position: absolute; z-index: 0; right: 2.5%; top: 50%; transform: translateY(-50%); pointer-events: none;
  writing-mode: vertical-rl; font-weight: 700; font-size: clamp(4rem, 11vh, 8rem); letter-spacing: .1em; line-height: 1;
  color: rgba(35, 57, 45, .07);
}
.ramen.is-live .ramen-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; height: 100%; }
.ramen.is-live .ramen-copy { position: relative; z-index: 2; }
.ramen.is-live .ramen-copy::before {
  content: ""; position: absolute; z-index: -1; inset: -40% -30% -40% -60vw; pointer-events: none;
  background: radial-gradient(ellipse at 35% 50%, rgba(246, 239, 226, .95) 45%, rgba(246, 239, 226, 0) 72%);
}
.ramen.is-live .ramen-steps { display: block; position: relative; min-height: 240px; }
.ramen.is-live .ramen-step {
  position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(22px); filter: blur(4px); pointer-events: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), filter .6s ease;
}
.ramen.is-live .ramen-step.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
/* The canvas fills the whole panel (ramen.js frames the bowl right of the text). */
.ramen.is-live .ramen-stage { display: block; position: absolute; inset: 0; z-index: 1; }
.ramen-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ramen.is-live .ramen-progress { display: block; max-width: 320px; height: 3px; margin-top: 12px; border-radius: 3px; background: rgba(35, 57, 45, .12); overflow: hidden; }
.ramen-progress span { display: block; height: 100%; background: var(--terracotta); transform-origin: left; transform: scaleX(var(--ramen-p, 0)); }
@media (max-width: 860px) {
  .ramen.is-live .ramen-inner { grid-template-columns: 1fr; align-items: end; gap: 0; }
  .ramen.is-live .ramen-sticky::before { width: 70vw; left: 50%; top: 32%; }
  .ramen.is-live .ramen-sticky::after { font-size: 3rem; top: 6%; transform: none; }
  .ramen.is-live .ramen-copy { padding-bottom: 16px; }
  .ramen.is-live .ramen-copy::before { inset: -20% -10vw -10% -10vw; background: linear-gradient(transparent, rgba(246, 239, 226, .95) 30%); }
  .ramen.is-live .ramen-copy h2 { display: none; }
  .ramen.is-live .ramen-copy .eyebrow { margin-bottom: 8px; }
  .ramen.is-live .ramen-steps { margin-top: 0; min-height: 200px; }
  .ramen-step-num { font-size: 2rem; }
}

/* ---- Sections ---- */
.section { padding-block: clamp(40px, 7vw, 80px); }
.section-tight { padding-top: 24px; }
.section-tint { background: var(--white); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.page-head { background: var(--green-800); color: var(--cream); padding-block: 40px 88px; position: relative; overflow: hidden; }
.page-head h1 { color: var(--cream); margin: 0; }
.page-head .eyebrow { color: #e3a07f; }
/* Three flowing lines (sage, plus a thin terracotta one from the logo dot), stretched across
   the page-head banner and the footer, fading in from the left. */
:root { --flow-lines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none' fill='none' stroke-linecap='round'%3E%3Cpath d='M-20 118C200 58 420 152 700 104S1180 34 1460 92' stroke='%239bb3a2' stroke-opacity='.45' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M-20 146C260 108 500 170 820 132S1260 74 1460 120' stroke='%239bb3a2' stroke-opacity='.25' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M-20 92C300 150 600 40 900 88S1300 146 1460 64' stroke='%23e3a07f' stroke-opacity='.6' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
/* page-head: in a band under the text (the banner's bottom padding). */
.page-head::after {
  content: ""; position: absolute; inset: auto 0 4px 0; height: 84px; pointer-events: none;
  background: var(--flow-lines) no-repeat center bottom / 100% 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%);
  mask-image: linear-gradient(to right, transparent 0, #000 35%);
}
@media (min-width: 861px) {
  .page-head { padding-bottom: 104px; }
  .page-head::after { height: 104px; }
}

/* ---- Category tiles ---- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.category-tile {
  display: flex; flex-direction: column; text-decoration: none; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  min-height: 190px;
}
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.category-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sage-100) url("../../images/placeholder.svg") center / 60% no-repeat; }
/* Stacked photos that home.js fades between (.is-shown is the visible one). */
.category-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; background: var(--white);
  opacity: 0; transition: opacity .7s ease;
}
.category-media img.is-shown { opacity: 1; }
.category-name { font-weight: 600; color: var(--green-800); padding: 12px 16px 0; line-height: 1.3; }
.category-count { font-size: .85rem; color: var(--muted); padding: 2px 16px 14px; }

/* ---- Product cards ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.product-card {
  display: flex; flex-direction: column; text-align: left; font: inherit; color: inherit; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; padding: 0; transition: transform .2s, box-shadow .2s, border-color .2s;
  min-height: 290px;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.product-media { aspect-ratio: 1; overflow: hidden; background: var(--white); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product-media img.is-placeholder, .dialog-media img.is-placeholder { object-fit: contain; padding: 22%; background: var(--sage-100); }
.product-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 16px; flex: 1; }
.product-category { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); }
.product-name { font-weight: 600; color: var(--green-800); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-alt { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.product-price { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.product-media { position: relative; }
.stock-badge { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 600; padding: .25em .75em; border-radius: 999px; }
.product-media .stock-badge { position: absolute; top: 10px; left: 10px; }
.stock-low { background: #fdf0c8; color: #7a5a00; }
.stock-out { background: var(--green-800); color: var(--cream); }
.product-card.is-sold-out .product-media img { opacity: .45; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.product-card.is-sold-out:hover .product-media img, .product-card.is-sold-out:focus-visible .product-media img { opacity: 1; filter: none; }
.product-card.is-sold-out .product-price { color: var(--muted); }
.price-sale {
  display: inline-block; padding: .05em .4em; border-radius: 6px; background: #f2c14e; color: var(--green-900);
  box-shadow: 0 2px 6px rgba(23, 42, 32, .18);
}
.price-was { margin-left: 2px; font-size: .8em; font-weight: 500; color: var(--muted); }
.sale-badge {
  position: absolute; top: 10px; right: 10px; padding: .3em .6em; border-radius: 999px; transform: rotate(6deg);
  background: #f2c14e; color: var(--green-900); font-size: .75rem; font-weight: 800; letter-spacing: .03em;
  box-shadow: 0 2px 8px rgba(23, 42, 32, .18);
}
.product-card.is-sold-out .price-sale { background: var(--cream-200); color: var(--muted); box-shadow: none; }
.product-card.is-sold-out .sale-badge { display: none; }

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { min-height: 250px; }
  .product-body { padding: 10px 12px 12px; }
  .product-price { font-size: 1rem; }
}

/* Loading placeholders */
.skeleton { background: linear-gradient(90deg, var(--cream-200) 25%, #f5efe4 50%, var(--cream-200) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-color: transparent; box-shadow: none; cursor: default; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---- About band ---- */
.about { background: var(--green-800); color: var(--cream); padding-block: clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.about h2 { color: var(--cream); }
.about p { color: #d5dfd8; max-width: 38em; font-size: 1.075rem; }
.about-inner { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.about-icon { width: 100%; max-width: 220px; height: auto; background: var(--cream); border-radius: 50%; padding: 28px; aspect-ratio: 1; object-fit: contain; }
@media (max-width: 700px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-icon { max-width: 140px; padding: 18px; }
}

/* ---- Visit ---- */
.visit-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.visit-address { font-size: 1.2rem; font-weight: 500; color: var(--green-800); }
.visit-landmark { color: var(--muted); }
.visit-inner .hours-card { margin-top: 28px; }
.parking-card {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 20px 24px;
  background: var(--sage-100); border-left: 4px solid #1f5fae; border-radius: var(--radius); scroll-margin-top: 120px;
}
.parking-card h3 { margin: 0 0 4px; color: var(--green-800); }
.parking-card p { margin: 0; }
.parking-card .parking-note { margin-top: 6px; font-size: .9em; font-weight: 600; color: var(--green-800); }
.visit-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sage-100); aspect-ratio: 4 / 3; }
.visit-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.hours-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; }
.hours-card dl { margin: 0; }
.hours-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-card dl > div:last-child { border-bottom: 0; }
.hours-card dt { font-weight: 500; }
.hours-card dd { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .visit-inner { grid-template-columns: 1fr; } }

/* ---- Courier service (home section + courier.php) ---- */
/* Partner logos sit on plates; G'day Mailbox's lettering is white, so its plate is dark. */
.logo-plate {
  display: grid; place-items: center; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; min-height: 96px;
}
.logo-plate img { max-width: 100%; max-height: 52px; width: auto; height: auto; }
.logo-plate-dark { background: var(--green-800); border-color: var(--green-800); }
.logo-plate-lg { min-height: 150px; padding: 28px 36px; }
.logo-plate-lg img { max-height: 84px; }

.courier-promo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.courier-promo p { color: var(--muted); max-width: 34em; }
.courier-promo-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-decoration: none; }
.courier-promo-logos .logo-plate { box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.courier-promo-logos:hover .logo-plate { box-shadow: var(--shadow-hover); }

.page-head-lede { color: #d5dfd8; max-width: 36em; margin: 12px 0 0; font-size: 1.075rem; position: relative; z-index: 1; }
.service { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.service-logos { display: grid; gap: 12px; }
.logo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.service-steps li {
  counter-increment: step; position: relative; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 18px 18px 64px;
}
.service-steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--terracotta); color: var(--white); font-weight: 600;
}
.service-steps strong { display: block; color: var(--green-800); }
.service-steps span { display: block; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.service-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  background: var(--sage-100); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
}
.service-cta h2 { margin-bottom: .3em; }
.service-cta p { margin: 0; color: var(--muted); max-width: 36em; }
.service-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.service-copy .service-cta-actions { margin-top: 20px; }
.courier-address { margin: 20px 0 0; line-height: 1.6; }
/* One card per carrier on courier.php, linking to its own page (dhl-geelong.php, fedex-geelong.php). */
.carrier-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.carrier-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; transition: box-shadow .2s; }
.carrier-card:hover { box-shadow: var(--shadow-hover); }
.carrier-card h3 { margin: 0 0 .35em; color: var(--green-800); }
.carrier-card h3::after { content: " →"; color: var(--terracotta); }
.page-head .eyebrow a { color: inherit; text-decoration: none; }
.page-head .eyebrow a:hover { text-decoration: underline; }
.carrier-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
/* Courier FAQ - native <details>, so it works without JS and the answers are in the page. */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; color: var(--green-800); }
.faq details[open] summary { padding-bottom: 6px; }
.faq details p { margin: 0 0 16px; color: var(--muted); }
@media (max-width: 860px) {
  .courier-promo, .service { grid-template-columns: 1fr; }
  .service-logos { order: -1; }
}
@media (max-width: 480px) {
  .service-steps, .carrier-cards { grid-template-columns: 1fr; }
  .logo-plate { padding: 14px; min-height: 80px; }
}

/* ---- Catalog page ---- */
.catalog { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; }
.catalog-main { min-width: 0; }
.catalog-sidebar { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 4px; }
.catalog-sidebar h2 { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 10px; }
.category-list { list-style: none; margin: 0; padding: 0; }
.category-list a {
  width: 100%; text-decoration: none; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font: inherit; font-size: .95rem; text-align: left; color: var(--ink); background: transparent;
  border: 0; border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer;
}
.category-list a:hover { background: var(--cream-200); }
.category-list a[aria-current] { background: var(--green-800); color: var(--cream); font-weight: 500; }
.category-list .count { font-size: .8rem; color: var(--muted); }
.category-list a[aria-current] .count { color: var(--sage-400); }
/* Clearance: every discounted product, at the top of the list - meant to grab the eye. */
.category-list a.category-clearance {
  position: relative; overflow: hidden; margin-bottom: 10px; padding: 12px 14px;
  background: linear-gradient(120deg, var(--terracotta) 0%, #d9773f 55%, #f2a14e 100%); color: var(--white);
  font-size: 1.02rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(184, 91, 50, .35); transition: transform .2s, box-shadow .2s;
}
.category-list a.category-clearance::after {   /* a sheen sweeping across now and then */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  animation: clearance-shine 3.5s ease-in-out infinite;
}
@keyframes clearance-shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.category-list a.category-clearance:hover { background: linear-gradient(120deg, var(--terracotta-dark) 0%, var(--terracotta) 55%, #e58a45 100%); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(184, 91, 50, .45); }
.category-list a.category-clearance[aria-current] { outline: 3px solid var(--green-800); outline-offset: 2px; }
.category-list a.category-clearance .count {
  position: relative; z-index: 1; padding: .1em .55em; border-radius: 999px;
  background: #f2c14e; color: var(--green-900); font-weight: 800; letter-spacing: 0;
}
.category-list a.category-clearance[aria-current] .count { color: var(--green-900); }
.clearance-label { position: relative; z-index: 1; }
:lang(zh) .category-list a.category-clearance { letter-spacing: .12em; }

.catalog-toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.field { display: flex; }
.field-search { flex: 1 1 260px; }
.field-category { display: none; }
.catalog-toolbar input, .catalog-toolbar select {
  font: inherit; width: 100%; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink);
}
.catalog-toolbar select { padding-right: 36px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2323392d' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.catalog-toolbar input:focus, .catalog-toolbar select:focus { outline: none; border-color: var(--green-800); box-shadow: 0 0 0 3px var(--sage-100); }
.result-count { color: var(--muted); font-size: .95rem; min-height: 1.6em; margin-bottom: 16px; }
[aria-busy="true"] { opacity: .55; transition: opacity .2s; }

.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pagination a, .pagination .page-off {
  display: inline-grid; place-items: center; text-decoration: none; font: inherit; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--green-800); font-weight: 500;
}
.pagination a:hover { border-color: var(--green-800); }
.pagination [aria-current="page"] { background: var(--green-800); color: var(--cream); border-color: var(--green-800); }
.pagination .page-off { opacity: .4; cursor: default; }
.pagination .gap { color: var(--muted); padding: 0 4px; }

@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr; }
  .catalog-sidebar { display: none; }
  .field-category { display: flex; flex: 1 1 180px; }
  .field:not(.field-search):not(.field-category) { flex: 1 1 160px; }
}

/* ---- Product dialog ---- */
.product-dialog {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0;
  border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.3);
  display: grid; grid-template-columns: 1fr 1fr; overflow: auto;
}
.product-dialog:not([open]) { display: none; }
.product-dialog::backdrop { background: rgba(23, 42, 32, .55); backdrop-filter: blur(3px); }
.dialog-media { background: var(--white); display: grid; place-items: center; border-right: 1px solid var(--line); min-height: 280px; }
.dialog-media img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; padding: 24px; }
.dialog-body { padding: 36px 32px 32px; }
.dialog-body h2 { font-size: 1.6rem; margin-bottom: .25em; }
.dialog-price { font-size: 1.75rem; font-weight: 700; color: var(--green-800); margin: 12px 0 8px; }
.dialog-barcode { margin-top: 18px; padding: 12px 12px 8px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-sm); text-align: center; }
.dialog-barcode .voucher-barcode { height: 72px; }
.dialog-barcode-text { margin: 4px 0 0; font: 600 .95rem/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; }
.dialog-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--cream-200); color: var(--green-800); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2;
}
.dialog-close:hover { background: var(--line); }
@media (max-width: 640px) {
  .product-dialog { grid-template-columns: 1fr; }
  .dialog-media { border-right: 0; border-bottom: 1px solid var(--line); min-height: 220px; }
  .dialog-media img { max-height: 280px; }
  .dialog-body { padding: 24px 22px 26px; }
}

/* ---- Product page (product.php) ---- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--green-800); }
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
}
.product-detail-media { display: grid; place-items: center; border-right: 1px solid var(--line); min-height: 320px; }
.product-detail-media img { width: 100%; max-height: 480px; object-fit: contain; padding: 28px; }
.product-detail-media img.is-placeholder { padding: 22%; background: var(--sage-100); height: 100%; }
.product-detail.is-sold-out .product-detail-media img { opacity: .6; filter: grayscale(1); }
.product-detail-body { padding: 36px 32px 32px; }
.product-detail-body h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: .25em; }
.product-detail-body .eyebrow a { color: inherit; text-decoration: none; }
.product-detail-store { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.product-detail-store h2 { font-size: 1.1rem; margin-bottom: .4em; }
@media (max-width: 640px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-detail-media { border-right: 0; border-bottom: 1px solid var(--line); min-height: 220px; }
  .product-detail-media img { max-height: 300px; }
  .product-detail-body { padding: 24px 22px 26px; }
}

/* ---- Footer ---- */
.site-footer { background: var(--green-900); color: #c7d3cb; margin-top: 0; position: relative; padding-top: 64px; }
.site-footer::before {
  content: ""; position: absolute; inset: 4px 0 auto 0; height: 56px; pointer-events: none;
  background: var(--flow-lines) no-repeat center / 100% 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%);
  mask-image: linear-gradient(to right, transparent 0, #000 35%);
}
.footer-inner { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 36px; }
.footer-brand img { width: 150px; height: auto; filter: brightness(0) invert(94%) sepia(8%) saturate(300%); margin-bottom: 14px; }
.footer-brand p { max-width: 26em; font-size: .95rem; }
.footer-brand .footer-note { color: #8fa197; font-size: .875rem; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h2 { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: #e3a07f; margin-bottom: 6px; }
.footer-col a, .footer-col span { color: #c7d3cb; text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--white); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px; font-size: .85rem; color: #8fa197; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---- Maintenance page ---- */
.maintenance-body { min-height: 100vh; display: grid; place-items: center; padding: 32px var(--gutter); }
.maintenance { width: 100%; max-width: 560px; text-align: center; }
.maintenance-logo { width: 180px; height: auto; margin: 0 auto 28px; }
.maintenance-message { font-size: 1.125rem; color: var(--muted); }
.maintenance-visit { margin-top: 32px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; }
.maintenance-visit h2 { font-size: 1.2rem; }
.maintenance-visit .visit-address { margin-bottom: .25em; }

/* ---- Manager area (admin/) ---- */
.admin-body { background: var(--cream); }
.admin-header { background: var(--white); border-bottom: 1px solid var(--line); }
.admin-header-inner { display: flex; align-items: center; gap: 14px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.admin-header .brand img { width: 96px; }
.admin-label { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); }
.admin-user { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-user form { margin: 0; }
.admin-main { padding-block: 32px 64px; }
.admin-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.btn-sm { padding: .45em 1em; font-size: .85rem; }
.btn-lg { padding: .9em 1.8em; font-size: 1.05rem; }

.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; min-width: 0; }
.panel h2 { font-size: 1.3rem; }
.panel h3 { margin-top: 24px; font-size: 1.05rem; }
.panel-narrow { max-width: 440px; margin: 24px auto; }
.panel code { background: var(--cream-200); padding: .1em .35em; border-radius: 4px; font-size: .9em; word-break: break-all; }

.status-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-left: 8px solid var(--sage-400); margin-bottom: 24px; }
.status-panel.is-on { border-left-color: var(--terracotta); background: #fbf1ea; }
.status-panel.is-featured { border-left-color: var(--green-800); background: var(--sage-100); }
.status-panel h2 { margin-bottom: .3em; }
.status-panel .status-text { flex: 1 1 320px; }
.status-panel p { margin: 0; }
.toggle-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-bottom: 24px; }
.toggle-card { margin-bottom: 0; padding: 14px 18px; gap: 12px; flex-wrap: nowrap; border-left-width: 6px; }
.toggle-card .status-text { flex: 1 1 auto; min-width: 0; }
.toggle-card h2 { font-size: 1.05rem; margin-bottom: .15em; }
.toggle-card form { flex: 0 0 auto; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: start; }

/* Dashboard: title row with the small maintenance switch on the right */
.admin-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-title-row .admin-title { margin: 0; }
.maint-toggle { margin: 0 0 0 auto; }
.maint-toggle button {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .85rem; font-weight: 500; color: var(--green-800);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px; cursor: pointer; box-shadow: var(--shadow);
}
.maint-toggle button:hover { border-color: var(--sage-400); }
.maint-toggle button:focus-visible { outline: 3px solid var(--sage-100); outline-offset: 1px; border-color: var(--green-800); }
.maint-switch { position: relative; width: 32px; height: 18px; flex: none; border-radius: 999px; background: var(--sage-400); transition: background .15s; }
.maint-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); transition: transform .15s; }
.maint-toggle.is-on button { background: #fbf1ea; border-color: var(--terracotta); color: var(--terracotta-dark); }
.maint-toggle.is-on .maint-switch { background: var(--terracotta); }
.maint-toggle.is-on .maint-switch::after { transform: translateX(14px); }

/* Dashboard panels: collapsible and draggable (assets/js/admin-board.js) */
.admin-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: start; }
.panel-head { display: flex; align-items: center; gap: 6px; margin: -6px -10px -6px -14px; cursor: pointer; user-select: none; }
.panel-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 1.15rem; }
.panel-body { margin-top: 18px; }
.panel-grip, .panel-fold {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--muted); cursor: pointer;
}
.panel-grip { cursor: grab; touch-action: none; }
.panel-grip:hover, .panel-fold:hover { background: var(--cream-200); color: var(--green-800); }
.panel-grip:focus-visible, .panel-fold:focus-visible { outline: 2px solid var(--green-800); outline-offset: 1px; }
.panel-fold svg { transition: transform .15s; }
.panel.is-collapsed { padding-block: 14px; }
.panel.is-collapsed .panel-fold svg { transform: rotate(-90deg); }
.panel.is-dragging { box-shadow: var(--shadow-hover); outline: 2px dashed var(--sage-400); outline-offset: 2px; opacity: .9; }
body.is-board-dragging, body.is-board-dragging * { cursor: grabbing !important; user-select: none; }
/* Compact board (admin/product.php): smaller cards, several per row. */
.admin-board.is-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.admin-board.is-compact > .panel { margin: 0; padding: 14px 16px; }
.admin-board.is-compact > .panel.is-collapsed { padding-block: 10px; }
.admin-board.is-compact .panel-head { margin: -4px -6px -4px -10px; }
.admin-board.is-compact .panel-head h2 { font-size: 1rem; }
.admin-board.is-compact .panel-body { margin-top: 10px; font-size: .92rem; }
.admin-board.is-compact .panel-body p { margin: 0 0 8px; }
.admin-board.is-compact .admin-form { gap: 10px; }
.admin-board.is-compact .btn { padding: .45em 1em; font-size: .88rem; }
.admin-board.is-compact .photo-compare { gap: 10px; margin: 8px 0 12px; }
.admin-board.is-compact .photo-compare img { max-height: 180px; }
.admin-board.is-compact .photo-actions { gap: 12px; padding-top: 12px; }
.admin-board.is-compact .prize-admin-row { grid-template-columns: 1fr; gap: 8px; }
.admin-board.is-compact .prize-admin-row h3 { margin-top: 4px; }
.card-flag { border-left: 6px solid var(--sage-400); }
.card-flag.is-on { border-left-color: var(--terracotta); background: #fbf1ea; }
.card-flag.is-featured { border-left-color: var(--green-800); background: var(--sage-100); }
.card-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-toggle p { margin: 2px 0 0 !important; }
.card-toggle form { flex: none; margin: 0; }
.board-tools { display: flex; justify-content: flex-end; gap: 4px; margin: 14px 0 0; }
.board-tools button { font: inherit; font-size: .85rem; color: var(--muted); background: none; border: 0; padding: .3em .7em; border-radius: 999px; cursor: pointer; }
.board-tools button:hover { background: var(--cream-200); color: var(--green-800); }

.admin-form { display: flex; flex-direction: column; gap: 14px; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .95rem; }
.admin-form input, .admin-form textarea, .admin-form select {
  font: inherit; font-weight: 400; width: 100%; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
}
.admin-form textarea { resize: vertical; min-height: 110px; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { outline: none; border-color: var(--green-800); box-shadow: 0 0 0 3px var(--sage-100); }
.admin-form .btn { align-self: flex-start; }
.admin-form p { margin: 0; }
.form-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.notice { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.notice-ok { background: var(--sage-100); color: var(--green-800); }
.notice-error { background: #fbe4da; color: var(--terracotta-dark); }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: .9rem; display: block; overflow-x: auto; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }

.activity-list, .manager-list { list-style: none; margin: 0; padding: 0; }
.activity-list li, .manager-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.activity-list li:last-child, .manager-list li:last-child { border-bottom: 0; }
.activity-list time { white-space: nowrap; }
.manager-list form { margin: 0; }
@media (max-width: 480px) { .activity-list li { flex-direction: column; align-items: flex-start; gap: 2px; } }

/* Manager area: navigation, products, photos */
.admin-nav { display: flex; gap: 4px; }
.admin-nav a { text-decoration: none; font-weight: 500; padding: .4em .9em; border-radius: 999px; color: var(--green-800); }
.admin-nav a:hover { background: var(--cream-200); }
.admin-nav a[aria-current="page"] { background: var(--green-800); color: var(--cream); }
.link-back { font-weight: 500; text-decoration: none; }

.admin-form label.checkbox, label.checkbox { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.admin-form label.checkbox input, label.checkbox input { width: auto; margin: 0; accent-color: var(--green-800); }
.admin-form .form-row label { flex: 0 1 180px; }
.admin-form details summary { cursor: pointer; font-weight: 500; margin-bottom: 10px; }
.admin-form details > * + * { margin-top: 10px; }

.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 20px; }
.admin-toolbar input, .admin-toolbar select {
  font: inherit; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink);
}
.admin-toolbar input { flex: 1 1 260px; min-width: 0; }

.product-admin-list { list-style: none; margin: 0; padding: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.product-admin-list li + li { border-top: 1px solid var(--line); }
.product-admin-list a { display: flex; align-items: center; gap: 14px; padding: 10px 16px; text-decoration: none; color: var(--ink); }
.product-admin-list a:hover { background: var(--cream); }
.product-admin-list img { width: 64px; height: 64px; flex: none; object-fit: contain; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.product-admin-list img.is-placeholder, .photo-compare img.is-placeholder { background: var(--sage-100); padding: 14px; }
.product-admin-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.product-admin-text strong { color: var(--green-800); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge { font-size: .78rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; white-space: nowrap; background: var(--cream-200); color: var(--muted); }
.badge-photo { background: var(--sage-100); color: var(--green-800); }
.badge-featured { background: var(--green-800); color: #fff; }
.badge-working { background: #fdf0c8; color: #7a5a00; }
.badge-failed, .badge-hidden { background: #fbe4da; color: var(--terracotta-dark); }
@media (max-width: 560px) {
  .product-admin-list a { flex-wrap: wrap; }
  .badges { width: 100%; justify-content: flex-start; padding-left: 78px; }
}
.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }

.photo-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 16px 0 24px; }
.photo-compare figure { margin: 0; }
.photo-compare figcaption { margin-bottom: 8px; }
.photo-compare img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.photo-actions { display: grid; gap: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.photo-actions form { margin: 0; }
.photo-actions p { margin: 6px 0 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Nori Hunt (hunt.js, fame.php, voucher.php, admin/vouchers.php) ---- */
@keyframes hunt-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hunt-wiggle { 0%, 88%, 100% { transform: rotate(var(--turn, 0deg)); } 92% { transform: rotate(calc(var(--turn, 0deg) - 10deg)); } 96% { transform: rotate(calc(var(--turn, 0deg) + 10deg)); } }
@keyframes hunt-pop { to { transform: rotate(var(--turn, 0deg)) scale(1.8); opacity: 0; } }

/* Home page launcher: a dark "ticket" under the hero photo, with a gold accent
   nothing else on the page uses so it reads as the thing to click. */
@keyframes hunt-glow { 0% { box-shadow: 0 0 0 0 rgba(242, 193, 78, .55), var(--shadow-hover); } 70%, 100% { box-shadow: 0 0 0 16px rgba(242, 193, 78, 0), var(--shadow-hover); } }
@keyframes hunt-peek { 0%, 70%, 100% { transform: translateY(0) rotate(-6deg); } 80% { transform: translateY(-7px) rotate(6deg); } 90% { transform: translateY(-2px) rotate(-3deg); } }
.hunt-launch {
  --gold: #f2c14e;
  position: relative; z-index: 3; width: 100%; margin-top: 40px;
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px;
  border: 2px solid var(--gold); border-radius: 20px; background: var(--green-900); color: var(--cream);
  font: inherit; text-align: left; cursor: pointer; animation: hunt-glow 2.4s ease-out infinite;
  transition: transform .2s, background .2s;
}
.hunt-launch:hover { transform: translateY(-3px); background: var(--green-800); }
.hunt-launch:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hunt-launch-mascot {
  flex: none; align-self: flex-start; display: grid; place-items: center; width: 60px; height: 60px; margin-top: -30px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.hunt-launch-mascot img { width: 38px; height: auto; animation: hunt-peek 3.2s ease-in-out infinite; }
.hunt-launch-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hunt-launch em { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hunt-launch strong { font-size: 1.3rem; font-weight: 700; line-height: 1.15; color: var(--white); }
.hunt-launch small { font-size: .82rem; color: var(--sage-400); }
.hunt-launch-play {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-left: 4px;
  border-radius: 50%; background: var(--gold); color: var(--green-900); transition: transform .2s;
}
.hunt-launch:hover .hunt-launch-play { transform: scale(1.12); }
.hunt-launch-sticker {
  position: absolute; top: -14px; right: -12px; padding: 4px 10px; border-radius: 999px;
  background: var(--terracotta); color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap; transform: rotate(8deg); box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}
:lang(zh) .hunt-launch em, :lang(zh) .hunt-launch-sticker { letter-spacing: .04em; }
@media (max-width: 400px) {
  .hunt-launch { gap: 10px; }
  .hunt-launch strong { font-size: 1.1rem; }
  .hunt-launch-mascot { width: 50px; height: 50px; }
}

/* Prize cards: under the launcher (buttons), in the game dialogs and on the Wall of Fame. */
.hunt-prizes { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 12px; }
.hunt-prize-list { display: grid; gap: 10px; margin: 16px 0; text-align: left; }
.hunt-prize {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--ink);
  font: inherit; text-align: left;
}
button.hunt-prize { cursor: pointer; transition: transform .2s, box-shadow .2s; }
button.hunt-prize:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hunt-prize.is-weekly { border: 2px solid #f2c14e; background: #fff8e6; }
.hunt-prize-photo { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: var(--white); overflow: hidden; }
.hunt-prize-photo img { width: 100%; height: 100%; object-fit: contain; }
.hunt-prize-photo img.is-mascot { width: 60%; height: auto; }
.hunt-prize-text { min-width: 0; display: flex; flex-direction: column; }
.hunt-prize-text em { font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); }
.hunt-prize-text strong { font-size: 1rem; line-height: 1.25; color: var(--green-800); overflow-wrap: anywhere; }
.hunt-prize-text small { font-size: .8rem; color: var(--muted); }
:lang(zh) .hunt-prize-text em { letter-spacing: .04em; }

/* A hidden Nori. hunt.js places it on the page; .hunt-cover lifts what it hides behind. */
.hunt-cover { position: relative; z-index: 3; }
.hunt-nori {
  position: absolute; z-index: 2; width: 44px; height: 53px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: rotate(var(--turn, 0deg)); animation: hunt-wiggle 5s ease-in-out infinite;
}
.hunt-nori img, .hunt-nori canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(23, 42, 32, .3)); }
.hunt-nori img[hidden] { display: none; }
.hunt-nori.is-found { animation: hunt-pop .45s ease-out forwards; }
.hunt-nori[hidden] { display: none; }

.hunt-hud {
  position: fixed; z-index: 60; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 12px; border-radius: 999px; background: var(--green-800); color: var(--cream); box-shadow: var(--shadow-hover);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.hunt-hud-icon { width: 26px; height: auto; }
.hunt-hud-time { min-width: 3.2em; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); text-align: center; }
.hunt-hud.is-hurry .hunt-hud-time { background: var(--terracotta); }
.hunt-hud-quit { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--sage-400); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.hunt-hud-quit:hover { background: rgba(255, 255, 255, .12); color: var(--cream); }
.hunt-toast {
  position: fixed; z-index: 70; left: 50%; bottom: 80px; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--cream); box-shadow: var(--shadow-hover); font-size: .95rem;
}

.hunt-dialog { width: min(460px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-hover); background: var(--white); color: var(--ink); }
.hunt-dialog::backdrop { background: rgba(23, 42, 32, .55); backdrop-filter: blur(3px); }
.hunt-dialog-body { padding: 28px 28px 26px; text-align: center; }
.hunt-dialog-body > p { margin: 0 0 12px; }
.hunt-dialog-body .notice { text-align: left; }
.hunt-dialog-mascot { width: 64px; height: auto; margin: 0 auto 10px; animation: hunt-bob 3s ease-in-out infinite; }
.hunt-goal { font-weight: 600; color: var(--green-800); }
.hunt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.hunt-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; text-align: left; }
.hunt-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; font-size: .92rem; color: var(--green-800); }
.hunt-form label.checkbox { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; color: var(--ink); }
.hunt-form input[type=text], .hunt-form input[type=email] { font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.hunt-form input:focus { outline: none; border-color: var(--green-800); box-shadow: 0 0 0 3px var(--sage-100); }
.hunt-form p { margin: 0; }

.voucher-card { margin: 14px 0; padding: 16px; border: 2px dashed var(--terracotta); border-radius: var(--radius); background: var(--white); }
.voucher-barcode { display: block; width: 100%; height: 80px; }
.voucher-barcode svg { display: block; width: 100%; height: 100%; }
.voucher-code { margin: 10px 0 4px; font: 700 1.5rem/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; color: var(--green-800); }
.voucher-code.is-void { text-decoration: line-through; color: var(--muted); }
.voucher-page { max-width: 520px; }
.voucher-ticket { text-align: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; }
.voucher-mascot { margin: 0 auto 8px; }
.voucher-prize-photo { display: block; width: 160px; height: 160px; object-fit: contain; margin: 0 auto 12px; border-radius: var(--radius-sm); }
.voucher-kind { margin: 0; font-weight: 700; color: var(--terracotta); }
.fame-weekly { margin-bottom: 28px; }
.fame-weekly .hunt-prize { margin-bottom: 20px; }
.fame-weekly h2 { font-size: 1.25rem; margin: 0 0 12px; }
.fame-weekly .fame-list { margin-bottom: 28px; }
.prize-admin-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.prize-admin-row h3, .panel h3 { font-size: 1rem; margin: 12px 0 6px; }
.prize-admin-card { display: flex; align-items: center; gap: 14px; }
.prize-admin-card p { margin: 2px 0 0; }
.prize-admin-photo { flex: none; width: 72px; height: 72px; object-fit: contain; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prize-admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.prize-admin-actions form { margin: 0; }
.weekly-leaders { margin: 0 0 8px; padding-left: 22px; }
.weekly-leaders li { padding: 2px 0; }

.fame { max-width: 640px; }
.fame-list { list-style: none; margin: 0; padding: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fame-list li { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 14px; padding: 12px 18px; }
.fame-list li + li { border-top: 1px solid var(--line); }
.fame-rank { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--cream-200); font-weight: 700; color: var(--green-800); }
.fame-list li.is-top .fame-rank { background: var(--terracotta); color: var(--white); }
.fame-name { font-weight: 600; color: var(--green-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fame-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.fame-cta { text-align: center; margin-top: 28px; }
@media (max-width: 480px) { .fame-list li { grid-template-columns: 36px 1fr auto; } .fame-date { display: none; } }

.redeem-panel { margin-bottom: 20px; }
.redeem-form { display: flex; flex-wrap: wrap; gap: 10px; }
.redeem-form input { flex: 1 1 280px; min-width: 0; font: 600 1.15rem/1.2 ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase;
  padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--radius-sm); }
.redeem-form input:focus { outline: none; border-color: var(--green-800); }
.scan-video { display: block; width: 100%; max-width: 420px; margin-top: 12px; border-radius: var(--radius-sm); }
.redeem-result { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; padding: 16px 18px; border-radius: var(--radius-sm); }
.redeem-result strong { font-size: 1.25rem; }
.redeem-result.is-ok { background: var(--sage-100); color: var(--green-800); border-left: 8px solid var(--green-800); }
.redeem-result.is-bad { background: #fbe4da; color: var(--terracotta-dark); border-left: 8px solid var(--terracotta); }

/* ---- Click & Collect (cart.php, order.php, app.js cart, admin/orders.php) ---- */
/* Each product card sits in a tile with its "+" button beside the link (product-html.php). */
.product-tile { position: relative; display: flex; flex-direction: column; min-width: 0; }
.product-tile > .product-card { flex: 1; }
.card-add {
  position: absolute; right: 10px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--terracotta); color: var(--white); cursor: pointer;
  box-shadow: 0 4px 12px rgba(184, 91, 50, .35); transition: transform .15s, background-color .15s;
}
.card-add:hover { background: var(--terracotta-dark); transform: scale(1.06); }
.card-add.is-added { background: var(--green-800); transform: scale(1.12); }
.card-add-plus { stroke: var(--terracotta); transition: stroke .15s; }
.card-add:hover .card-add-plus { stroke: var(--terracotta-dark); }
.card-add.is-added .card-add-plus { stroke: var(--green-800); }
.card-add.is-added svg { animation: cart-hop .4s ease-out; }
@keyframes cart-hop { 40% { transform: translateY(-4px) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .card-add.is-added svg { animation: none; } }
.product-tile:has(.card-add) .product-price { padding-right: 44px; }
.product-tile:hover .product-card { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.product-tile:hover .card-add { transform: translateY(-3px); }
@media (max-width: 480px) { .card-add { width: 36px; height: 36px; right: 8px; bottom: 9px; } }

.header-cart {
  position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none; text-decoration: none; font-weight: 600;
  color: var(--green-800); padding: .45em .9em; border-radius: 999px; border: 1.5px solid var(--green-800);
}
.header-cart:hover, .header-cart[aria-current="page"] { background: var(--green-800); color: var(--cream); }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--terracotta); color: var(--white);
  font-size: .75rem; line-height: 20px; text-align: center;
}
@media (max-width: 1060px) { .header-cart-label { display: none; } .header-cart { padding: .45em .7em; } }
@media (max-width: 860px) {
  .header-cart { order: 1; margin-left: auto; }
  .nav-toggle { order: 2; margin-left: 4px; }
}

.cart-toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 80; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 12px 14px 12px 18px;
  background: var(--green-800); color: var(--cream); border-radius: 999px; box-shadow: var(--shadow-hover);
  font-size: .92rem; transition: transform .25s;
}
.cart-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cart-toast a { flex: none; color: var(--green-800); background: var(--cream); padding: .35em .9em; border-radius: 999px; font-weight: 600; text-decoration: none; }
.cart-toast.is-shown { transform: translate(-50%, 0); }

/* Amount + Add to cart (dialog and product page) */
.add-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 16px 0 8px; }
.add-box:empty { display: none; }
.add-box-note { flex-basis: 100%; margin: 0; color: var(--green-800); font-weight: 600; }
.add-box-note:empty { display: none; }
.add-box-pitch { flex-basis: 100%; margin: 0; color: var(--muted); }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); }
.qty-stepper button {
  width: 40px; height: 40px; border: 0; background: none; font: inherit; font-size: 1.25rem; color: var(--green-800);
  cursor: pointer; border-radius: 50%;
}
.qty-stepper button:hover { background: var(--cream-200); }
.qty-value { min-width: 54px; text-align: center; font-weight: 600; }
.qty-stepper-sm button { width: 32px; height: 32px; font-size: 1.05rem; }
.qty-stepper-sm .qty-value { min-width: 44px; font-size: .92rem; }

/* cart.php */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.cart-list { display: grid; gap: 12px; }
.cart-line {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 12px 12px;
}
.cart-line.skeleton { min-height: 100px; }
.cart-line.has-problem { border-color: #f0c2ad; background: #fffaf7; }
.cart-line-media { display: block; width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.cart-line-media img { width: 100%; height: 100%; object-fit: contain; }
.cart-line-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-line-name { font-weight: 600; color: var(--green-800); text-decoration: none; line-height: 1.3; }
.cart-line-name:hover { text-decoration: underline; }
.cart-line-price { font-size: .9rem; color: var(--muted); }
.cart-line-problem { font-size: .88rem; font-weight: 600; color: var(--terracotta-dark); }
.cart-line .stock-badge { margin-top: 4px; }
.cart-line-controls { display: flex; align-items: center; gap: 14px; }
.cart-line-amount { min-width: 72px; text-align: right; font-weight: 700; }
.cart-line-remove { border: 0; background: none; color: var(--muted); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 4px; }
.cart-line-remove:hover { color: var(--terracotta-dark); }
.cart-problems {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm); background: #fbe4da; color: var(--terracotta-dark); font-weight: 500;
}
.cart-more { justify-self: start; margin-top: 6px; }
.checkout-side { position: sticky; top: 96px; }
.checkout-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.checkout-card h2 { font-size: 1.25rem; }
.checkout-total { margin: 0 0 6px; }
.checkout-total div { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.checkout-total dt { font-weight: 500; }
.checkout-total dd { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--green-800); }
.checkout-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.checkout-form > label { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: .92rem; }
.checkout-form input[type="text"], .checkout-form input[type="tel"], .checkout-form input[type="email"], .checkout-form textarea {
  font: inherit; font-weight: 400; width: 100%; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
}
.checkout-form textarea { resize: vertical; }
.checkout-form input:focus, .checkout-form textarea:focus { outline: none; border-color: var(--green-800); box-shadow: 0 0 0 3px var(--sage-100); }
.checkout-form .btn { width: 100%; }
.checkout-form .btn:disabled { opacity: .55; cursor: not-allowed; }
.checkout-form p { margin: 0; }
.form-error { padding: 10px 14px; border-radius: var(--radius-sm); background: #fbe4da; color: var(--terracotta-dark); font-weight: 500; font-size: .92rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fulfilment { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.fulfilment legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.fulfilment-option {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer;
}
.fulfilment-option:has(input:checked) { border-color: var(--green-800); background: var(--sage-100); }
.fulfilment-option input { margin-top: 4px; accent-color: var(--green-800); }
.fulfilment-option span { display: flex; flex-direction: column; }
.fulfilment-option small { color: var(--muted); font-size: .82rem; }
.fulfilment-option.is-soon { cursor: default; opacity: .7; border-style: dashed; }
.soon-tag { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: var(--terracotta); padding: .15em .55em; border-radius: 999px; margin-left: 4px; vertical-align: 2px; }
.hours-card-note { margin: 14px 0 0; }
@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout-side { position: static; }
}
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 60px minmax(0, 1fr); padding: 10px; gap: 10px 12px; }
  .cart-line-media { width: 60px; height: 60px; }
  .cart-line-controls { grid-column: 1 / -1; justify-content: space-between; }
}

/* order.php */
.order-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.order-page > .empty-state { grid-column: 1 / -1; }
.order-ticket { text-align: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; }
.order-ticket h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.order-ticket .lede { margin-inline: auto; font-size: 1.02rem; }
.order-ticket.is-ready { border-top: 8px solid var(--green-800); }
.order-ticket.is-cancelled, .order-ticket.is-expired { border-top: 8px solid var(--terracotta); }
.order-progress { list-style: none; display: flex; justify-content: center; gap: 6px; padding: 0; margin: 18px 0 20px; counter-reset: step; }
.order-progress li { flex: 1; max-width: 150px; font-size: .82rem; color: var(--muted); padding-top: 34px; position: relative; counter-increment: step; }
.order-progress li::before {
  content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: var(--cream-200); color: var(--muted);
}
.order-progress li.is-done::before { content: "✓"; background: var(--sage-400); color: var(--white); }
.order-progress li.is-current { color: var(--green-800); font-weight: 600; }
.order-progress li.is-current::before { background: var(--green-800); color: var(--cream); }
.order-details { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; }
.order-details h2 { font-size: 1.3rem; }
.order-items { list-style: none; margin: 0; padding: 0; }
.order-items li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-items li.is-missing { color: var(--muted); }
.order-items li.is-missing .order-item-name, .order-items li.is-missing .order-item-amount { text-decoration: line-through; }
.order-item-qty { font-weight: 600; color: var(--green-800); }
.order-item-name small { display: block; font-size: .82rem; color: var(--muted); }
.order-item-name .order-item-missing { color: var(--terracotta-dark); font-weight: 600; text-decoration: none; display: inline-block; }
.order-item-amount { font-weight: 600; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 6px; font-size: 1.1rem; }
.order-total strong { font-size: 1.35rem; color: var(--green-800); }
.order-pickup { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.order-pickup h3 { font-size: 1.05rem; margin-bottom: .3em; }
@media (max-width: 800px) { .order-page { grid-template-columns: 1fr; } }

/* Home page: the Click & Collect pitch */
.collect-promo { background: var(--terracotta); color: var(--white); padding-block: clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.collect-promo-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.collect-promo h2 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.collect-promo .eyebrow-light { color: #fde3d3; }
.collect-promo p { color: #fff3ec; max-width: 34em; font-size: 1.075rem; }
.collect-promo-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.collect-promo .btn-accent { background: var(--green-800); }
.collect-promo .btn-accent:hover { background: var(--green-900); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: var(--white); color: var(--terracotta-dark); }
.collect-promo .collect-promo-soon { font-size: .88rem; color: #fde3d3; margin: 16px 0 0; }
.collect-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.collect-steps li {
  display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 14px 18px; box-shadow: 0 8px 24px rgba(80, 30, 10, .18);
}
.collect-steps li:nth-child(2) { margin-left: 20px; }
.collect-steps li:nth-child(3) { margin-left: 40px; }
.collect-step-icon { grid-row: 1 / 3; width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.5rem; background: var(--cream); border-radius: 50%; }
.collect-steps strong { color: var(--green-800); }
.collect-steps li > span:last-child { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .collect-promo-inner { grid-template-columns: 1fr; }
  .collect-steps li:nth-child(n) { margin-left: 0; }
}

/* admin/orders.php */
.nav-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--terracotta); color: var(--white); font-size: .75rem; line-height: 20px; text-align: center; }
.order-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.order-tabs a { text-decoration: none; font-weight: 500; padding: .45em 1em; border-radius: 999px; color: var(--green-800); background: var(--white); border: 1px solid var(--line); }
.order-tabs a[aria-current="page"] { background: var(--green-800); color: var(--cream); border-color: var(--green-800); }
.order-tabs .count { display: inline-block; margin-left: 4px; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--terracotta); color: var(--white); font-size: .75rem; line-height: 20px; text-align: center; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.order-head .badge { font-size: .85rem; vertical-align: middle; }
.order-admin { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.order-side { display: grid; gap: 24px; }
.pack-list { list-style: none; margin: 0; padding: 0; }
.pack-list li {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 12px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line); border-radius: var(--radius-sm);
}
.pack-list li.is-short { background: #fdf0c8; }
.pack-list li.is-missing { background: #fbe4da; }
.pack-list li.is-missing .pack-name { text-decoration: line-through; color: var(--muted); }
.pack-photo { display: block; width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.pack-photo img { width: 100%; height: 100%; object-fit: contain; }
.pack-photo.is-empty { background: var(--sage-100) url("../../images/placeholder.svg") center / 50% no-repeat; }
.pack-name small { display: block; font-size: .85rem; }
.pack-ordered, .pack-got { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 70px; }
.pack-ordered small, .pack-got small { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pack-ordered strong { font-size: 1.2rem; color: var(--green-800); }
.pack-got { display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: center; }
.pack-got small { grid-column: 1 / -1; text-align: center; }
.pack-got input {
  width: 76px; font: inherit; font-size: 1.15rem; font-weight: 700; text-align: center; padding: 6px 4px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); color: var(--green-800); background: var(--white);
}
.pack-got input:focus { outline: none; border-color: var(--green-800); box-shadow: 0 0 0 3px var(--sage-100); }
.pack-none { font: inherit; font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--terracotta); background: var(--white); color: var(--terracotta-dark); cursor: pointer; }
.pack-none:hover { background: var(--terracotta); color: var(--white); }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.order-actions form { margin: 0; }
.order-customer { font-size: 1.05rem; line-height: 1.7; }
.order-note { background: #fdf0c8; padding: 10px 12px; border-radius: var(--radius-sm); }
@media (max-width: 860px) { .order-admin { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pack-list li { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .pack-photo { width: 64px; height: 64px; }
  .pack-list li > :nth-child(3) { grid-column: 2; justify-self: start; flex-direction: row; gap: 6px; }
  .pack-list li > :nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
}

/* Orders page: Settings button (top right) and its panel */
.settings-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font: inherit; font-size: .9rem; font-weight: 600; color: var(--green-800);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 12px; cursor: pointer; box-shadow: var(--shadow);
}
.settings-btn:hover, .settings-btn[aria-expanded="true"] { border-color: var(--green-800); }
.settings-btn[aria-expanded="true"] svg { transform: rotate(60deg); }
.settings-btn svg { transition: transform .2s; }
.settings-btn-state { font-size: .75rem; padding: .2em .7em; border-radius: 999px; background: var(--sage-100); color: var(--green-800); }
.settings-btn.is-off .settings-btn-state { background: #fbe4da; color: var(--terracotta-dark); }
.order-settings { margin-bottom: 20px; border-left: 6px solid var(--green-800); }
.order-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 6px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.order-settings-row > div { flex: 1 1 280px; }
.order-settings-row h2 { font-size: 1.1rem; margin-bottom: .2em; }
.order-settings-row p { margin: 0; }
.order-settings-foot { margin: 0; }
.maint-toggle.is-good button { background: var(--sage-100); border-color: var(--green-800); color: var(--green-800); }
.maint-toggle.is-good .maint-switch { background: var(--green-800); }
.hold-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.hold-form input { width: 72px; font: inherit; font-weight: 600; text-align: center; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
@media print {
  .no-print, .admin-header, .notice { display: none !important; }
  .admin-body, .panel { background: #fff; box-shadow: none; }
  .order-admin { grid-template-columns: 1fr; }
}
/* The home page header also carries the courier logos: keep nav words on one line by showing
   just the cart icon there until the screen is wide enough. */
.site-nav > a { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1340px) { .header-inner:has(.header-couriers) .header-cart-label { display: none; } }

/* ---- Shopfront screen (admin/signage.php, admin/signage-slide.php, signage-admin.js) ---- */
.sg-admin { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.sg-admin-main { display: grid; gap: 20px; min-width: 0; }
.sg-admin-main.admin-form { gap: 20px; }
.sg-admin-side { position: sticky; top: 16px; display: grid; gap: 20px; }
.sg-admin-links { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) { .sg-admin { grid-template-columns: 1fr; } .sg-admin-side { position: static; } }
/* The 1080 × 1920 screen at a quarter size (or a little more on a wide sidebar). */
.sg-frame { position: relative; width: 270px; height: 480px; margin: 0 auto 10px; border-radius: 14px; overflow: hidden; background: #111; box-shadow: 0 0 0 6px #1f2a24; }
.sg-frame iframe { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
.sg-btn-quiet { background: none; border-color: transparent; color: var(--green-800); }
.sg-btn-quiet:hover { background: var(--cream-200); }
.sg-danger { color: var(--terracotta-dark); }
.sg-warn { display: block; color: var(--terracotta-dark); font-weight: 500; }
.sg-icon-btn { display: grid; place-items: center; width: 30px; height: 26px; padding: 0; font-size: .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--green-800); cursor: pointer; }
.sg-icon-btn:hover:not(:disabled) { border-color: var(--green-800); }
.sg-icon-btn:disabled { opacity: .3; cursor: default; }

.sg-slide-list { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sg-slide { display: flex; align-items: center; gap: 14px; padding: 12px 14px; flex-wrap: wrap; }
.sg-slide + .sg-slide { border-top: 1px solid var(--line); }
.sg-slide.is-off { background: var(--cream); }
.sg-slide.is-off .sg-slide-text strong, .sg-slide.is-off .sg-swatch { opacity: .55; }
.sg-move { display: grid; gap: 3px; margin: 0; }
.sg-swatch { width: 34px; height: 54px; flex: none; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sg-slide-text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.sg-slide-text a { text-decoration: none; }
.sg-slide-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sg-slide-actions form { margin: 0; }
.sg-more { position: relative; }
.sg-more summary { list-style: none; }
.sg-more summary::-webkit-details-marker { display: none; }
.sg-more-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; display: grid; min-width: 150px; padding: 6px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); }
.sg-more-menu form { margin: 0; }
.sg-more-menu .btn { width: 100%; justify-content: flex-start; text-align: left; }
.sg-add, .sg-upload { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sg-add select, .sg-upload input[type=file] { font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }

.sg-media-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.sg-media-grid li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sg-media-grid form { margin: 0; }
.sg-media-thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius-sm); overflow: hidden; background: #111; }
.sg-media-thumb img, .sg-media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-media-kind { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .72rem; font-weight: 600; }
.sg-media-name { font-weight: 500; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sg-fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px 12px; margin: 0; }
.sg-fieldset legend { font-weight: 500; padding: 0 6px; }
.sg-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.admin-form .sg-checks label.checkbox { font-weight: 400; }
.sg-picked, .sg-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sg-results { max-height: 420px; overflow-y: auto; }
.sg-pick, .sg-result { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.sg-pick { background: var(--cream); }
.sg-pick img, .sg-result img { width: 56px; height: 56px; flex: none; object-fit: contain; background: var(--white); border-radius: 6px; border: 1px solid var(--line); }
.sg-pick img.is-placeholder, .sg-result img.is-placeholder { padding: 10px; background: var(--sage-100); }
.sg-pick-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-pick-text strong { color: var(--green-800); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-pick-text .badges { justify-content: flex-start; }
.admin-form .sg-pick-text label.checkbox { font-weight: 400; gap: 6px; }
.admin-form .sg-promo { flex: 0 0 110px; gap: 2px; font-weight: 500; }
.admin-form .sg-promo input { padding: 6px 10px; }
.sg-pick-tools { display: flex; gap: 4px; }
.sg-search .admin-toolbar { margin: 14px 0 10px; }
.admin-form .form-row input[type=color] { width: 56px; height: 38px; padding: 2px; }
.sg-save-bar { position: sticky; bottom: 0; z-index: 4; display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius); background: var(--white); box-shadow: 0 -4px 20px rgba(23, 42, 32, .1); }
.notice ul { margin: 6px 0 0; padding-left: 20px; font-weight: 400; }

/* ---- Nori's shop tour (assets/js/shop-reel.js adds .is-live and places everything) ---- */
.shop-reel { overflow: hidden; }
.shop-reel-lede { color: var(--muted); margin: 6px 0 0; max-width: 34em; }
.reel-controls { display: flex; align-items: center; gap: 10px; flex: none; }
.reel-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--green-800); background: var(--white); color: var(--green-800); transition: background .15s, color .15s;
}
.reel-btn:hover { background: var(--green-800); color: var(--cream); }
.reel-count { min-width: 4.2em; text-align: center; font-weight: 600; color: var(--green-800); font-variant-numeric: tabular-nums; }
.reel-stage {
  --reel-w: clamp(168px, 24vw, 280px);
  position: relative; border-radius: 22px;
  background: radial-gradient(120% 90% at 40% 0%, #fffdf8 0%, var(--cream) 55%, var(--cream-200) 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
/* Polaroid-style photo on a wooden peg. */
.reel-photo {
  display: block; flex: none; width: var(--reel-w); padding: 9px 9px 0; border: 0; border-radius: 3px; cursor: pointer;
  background: #fffdf9; box-shadow: 0 2px 3px rgba(23, 42, 32, .12), 0 12px 26px rgba(23, 42, 32, .16); font: inherit;
}
.reel-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sage-100); border-radius: 1px; }
.reel-tag { display: block; padding: 6px 0 8px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; color: var(--muted); text-align: center; }
.reel-photo:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.reel-peg {
  position: absolute; left: 50%; top: -15px; width: 12px; height: 30px; margin-left: -6px; border-radius: 3px;
  background: linear-gradient(90deg, #c99a62, #e2b97f 45%, #b8864f); box-shadow: 0 2px 3px rgba(0, 0, 0, .2);
}
.reel-peg::after { content: ""; position: absolute; left: 2px; right: 2px; top: 13px; height: 3px; border-radius: 2px; background: #8a6034; }
.reel-back, .reel-front, .reel-lightbox:not([open]) { display: none; }

/* Without JS: a plain strip to scroll through. */
.reel-track { display: flex; gap: 22px; overflow-x: auto; padding: 30px 22px 22px; scroll-snap-type: x mandatory; }
.reel-track .reel-photo { position: relative; scroll-snap-align: center; }

.shop-reel.is-live .reel-stage { height: calc(var(--reel-w) * 1.02 + 120px); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.shop-reel.is-live .reel-back, .shop-reel.is-live .reel-front { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.shop-reel.is-live .reel-front { pointer-events: none; }
.shop-reel.is-live .reel-track {
  display: block; position: absolute; inset: 0; overflow: visible; padding: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%); mask-image: linear-gradient(90deg, transparent, #000 7%);
}
.shop-reel.is-live .reel-photo { position: absolute; left: 0; top: 0; transform-origin: 50% 0; will-change: transform, opacity; }
.shop-reel.is-live .reel-photo img { -webkit-user-drag: none; }
.shop-reel.is-dragging .reel-stage, .shop-reel.is-dragging .reel-photo { cursor: grabbing; }

.reel-rope { fill: none; stroke: #b98b55; stroke-width: 4; stroke-linecap: round; }
.reel-rope-twist { fill: none; stroke: #82592f; stroke-width: 4; stroke-dasharray: 3 6; }
.reel-rope-tail { stroke-width: 3.5; }
.reel-pole { fill: none; stroke: #8a6034; stroke-width: 7; stroke-linecap: round; }
.reel-wheel { fill: var(--green-700); stroke: var(--green-900); stroke-width: 2; }
.reel-spokes { stroke: var(--sage-400); stroke-width: 2; }
.reel-hub { fill: var(--terracotta); }

/* Nori: the mascot with arms and legs. shop-reel.js leans it back as it pulls (.is-heaving swaps
   to the effort face) and puffs dust when a pull starts. */
.reel-nori-shadow { fill: rgba(23, 42, 32, .14); }
.reel-nori-legs path { fill: none; stroke: #20372b; stroke-width: 7; stroke-linecap: round; }
.reel-nori-legs ellipse, .reel-nori-hand { fill: #20372b; }
.reel-nori-hand { stroke: #33503f; stroke-width: 2; }
.reel-nori-arm { fill: none; stroke: #20372b; stroke-width: 7; stroke-linecap: round; }
.reel-nori-body { animation: reel-breathe 2.6s ease-in-out infinite; transform-origin: 80px 140px; transform-box: view-box; }
.reel-face-heave { display: none; }
.reel-nori.is-heaving .reel-face-heave { display: inline; }
.reel-nori.is-heaving .reel-face-happy { display: none; }
.reel-nori-puff { fill: #d9cdb6; opacity: 0; }
.reel-nori.is-puffing .reel-nori-puff { animation: reel-puff .7s ease-out; }
@keyframes reel-breathe { 50% { transform: scale(1.02, .985); } }
@keyframes reel-puff { 0% { opacity: .9; transform: translateY(0) scale(.6); } 100% { opacity: 0; transform: translateY(-10px) scale(1.4); } }
.reel-nori-puff { transform-box: fill-box; transform-origin: center; }

.reel-lightbox { padding: 0; border: 0; border-radius: 14px; background: #fffdf9; max-width: min(1100px, 94vw); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: visible; }
.reel-lightbox::backdrop { background: rgba(23, 42, 32, .7); backdrop-filter: blur(3px); }
.reel-lightbox img { display: block; width: 100%; max-height: 86vh; object-fit: contain; border-radius: 14px; }
.reel-lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--terracotta); color: var(--white); font-size: 1.6rem; line-height: 1; box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .reel-stage { --reel-w: clamp(150px, 44vw, 230px); }
  .reel-lightbox-close { top: 8px; right: 8px; }
}
