/* styles.css — mobile first, because this arrives as a Discord link on a phone. */

/* Dark is the default. The light blue/gray theme is opt-in via the toggle (theme.js sets
   data-theme on <html>). */
:root {
  color-scheme: dark;
  --bg: #10161d;
  --surface: #182029;
  --line: #26323f;
  --ink: #e8eef5;
  --ink-soft: #93a3b5;
  --accent: #5aa3e6;
  --accent-hover: #75b3ee;
  --accent-ink: #06121e;
  --accent-soft: #16293b;
  --band: #141c25;
  --ok: #4cc38a;
  --warn: #f0a882;
  --warn-soft: #3a221a;
  --wash: linear-gradient(180deg, #14202d 0%, #10161d 100%);
  --glow: rgba(90, 163, 230, .16);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3f8;
  --surface: #ffffff;
  --line: #d6e0eb;
  --ink: #1a2532;
  --ink-soft: #5a6b7d;
  --accent: #2f6fb0;
  --accent-hover: #285f9a;
  --accent-ink: #ffffff;
  --accent-soft: #e2eef9;
  --band: #e4ecf4;
  --ok: #1a7f5a;
  --warn: #a8480f;
  --warn-soft: #fdeee3;
  --wash: linear-gradient(180deg, #dbe8f6 0%, #eef3f8 100%);
  --glow: rgba(90, 163, 230, .28);
  --shadow: 0 1px 2px rgba(30, 60, 100, .06), 0 8px 24px rgba(30, 60, 100, .09);
}

* { box-sizing: border-box; }

/* The UA's [hidden] rule is display:none at the lowest precedence, so any display: flex or
 * grid below silently defeats it. Every screen and drawer in this file is toggled with .hidden,
 * so this has to win. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; margin: 0 0 .25rem; letter-spacing: -.01em; }
h3 { font-size: 1rem; margin: 1.5rem 0 .5rem; }

.sub { color: var(--ink-soft); margin: 0 0 1rem; }
.note { color: var(--ink-soft); font-size: .875rem; margin: .25rem 0 .75rem; }
.hint { color: var(--ink-soft); font-size: .8125rem; margin: .75rem 0 0; }

main { padding: 0 1rem 6rem; max-width: 1100px; margin: 0 auto; }

/* ---- top bar ---- */

#topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .5rem;
  padding: .625rem 1rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.address-pill {
  flex: 1; min-width: 0; text-align: left;
  background: none; border: 0; padding: .125rem .25rem; cursor: pointer;
  color: var(--ink); font: inherit;
}
.address-pill .label { display: block; font-size: .6875rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-soft); }
.address-pill span:last-child {
  display: block; font-weight: 600; font-size: .9375rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.cart-btn:hover, button.primary:hover:not(:disabled) { background: var(--accent-hover); }
.cart-btn {
  background: var(--accent); color: var(--accent-ink); border: 0;
  border-radius: 999px; padding: .5rem .875rem; font: inherit; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.badge {
  display: inline-block; min-width: 1.375rem; margin-left: .25rem;
  background: rgba(255, 255, 255, .25); border-radius: 999px;
  font-size: .8125rem; text-align: center;
}

.icon-btn {
  background: none; border: 0; color: var(--ink); font-size: 1.25rem;
  cursor: pointer; padding: .25rem .5rem; line-height: 1; border-radius: 8px;
}
.icon-btn:hover { background: var(--line); }

/* ---- address screen ---- */

.address-box { position: relative; }

input[type="text"], input[type="search"], textarea {
  width: 100%; padding: .875rem 1rem; font: inherit;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
input:focus, textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.unit { margin-top: .5rem; }

.suggest {
  list-style: none; margin: .375rem 0 0; padding: .25rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  position: absolute; left: 0; right: 0; z-index: 30; max-height: 60vh; overflow: auto;
}
.suggest.inline { position: static; box-shadow: none; }
.suggest li { padding: .625rem .75rem; border-radius: 10px; cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--accent-soft); }
.suggest .main { font-weight: 600; }
.suggest .secondary { color: var(--ink-soft); font-size: .875rem; }

.status { min-height: 1.25rem; margin: .75rem 0 0; font-size: .9375rem; color: var(--ink-soft); }
.status.error { color: var(--warn); }

/* ---- chips ---- */

.searchbar { padding: .875rem 0 .5rem; position: sticky; top: 3.25rem; z-index: 15;
  background: var(--bg); }

.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0 .75rem;
  scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.sticky { position: sticky; top: 3.25rem; z-index: 12; background: var(--bg); }

.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .375rem;
  padding: .5rem .875rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font: inherit; font-size: .875rem; white-space: nowrap;
  min-height: 36px;
}
.chip[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  font-weight: 600;
}
.chip:hover:not([aria-pressed="true"]) { background: var(--accent-soft); }
.chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.chips.small .chip { padding: .375rem .75rem; font-size: .8125rem; }

/* ---- store grid ---- */

.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; text-align: left; padding: 0; font: inherit;
  color: var(--ink); display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); }
.card.closed { opacity: .55; }

.card .thumb {
  aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--line);
  display: block;
}
.card .body { padding: .75rem .875rem 1rem; }
.card .name { font-weight: 650; margin-bottom: .125rem; }
.card .meta { color: var(--ink-soft); font-size: .8125rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .5rem; }

.tag {
  font-size: .75rem; padding: .1875rem .5rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.ok { background: var(--accent-soft); color: var(--accent); }

/* ---- menu ---- */

.store-head { padding: 1rem 0 .5rem; }
.store-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.store-head .name { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.store-head .meta { color: var(--ink-soft); font-size: .9375rem; }
.store-head .addr { color: var(--ink); font-size: .875rem; margin: .125rem 0 .25rem; }

/* A required option group with nothing left in it. Amber rather than red: the restaurant has
   simply run out, and the only useful instruction is to pick something else. */
.opt-none {
  margin: .5rem 0 .25rem; padding: .5rem .625rem; font-size: .875rem;
  color: var(--warn); background: var(--warn-soft);
  border-radius: var(--radius);
}

.section { padding-top: .5rem; }
.section h3 { scroll-margin-top: 7rem; }

.item {
  display: flex; gap: .875rem; width: 100%; text-align: left; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .75rem; margin-bottom: .625rem; cursor: pointer; align-items: flex-start;
}
.item:hover { box-shadow: var(--shadow); }
.item.sold-out { opacity: .5; cursor: not-allowed; }
.item .info { flex: 1; min-width: 0; }
.item .name { font-weight: 600; }
.item .desc {
  color: var(--ink-soft); font-size: .875rem; margin-top: .125rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item .price { margin-top: .375rem; font-weight: 600; font-size: .9375rem; }
.item .thumb {
  width: 84px; height: 84px; flex: 0 0 auto; border-radius: 10px;
  object-fit: cover; background: var(--line);
}

/* ---- drawers ---- */

.drawer {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(10, 10, 12, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.drawer-sheet {
  background: var(--surface); width: min(560px, 100%);
  max-height: 92vh; overflow: auto; position: relative;
  border-radius: 20px 20px 0 0; padding: 1.25rem 1.125rem calc(1.25rem + env(safe-area-inset-bottom));
  box-shadow: var(--shadow);
}
@media (min-width: 640px) {
  .drawer { align-items: center; }
  .drawer-sheet { border-radius: 20px; }
}
.drawer-close { position: absolute; top: .625rem; right: .625rem; font-size: 1.5rem; }

.drawer-foot { display: flex; gap: .625rem; margin-top: 1.25rem; align-items: center; }
.grow { flex: 1; }

button.primary, a.secondary, button.secondary {
  font: inherit; font-weight: 600; border-radius: 12px; padding: .8125rem 1rem;
  cursor: pointer; border: 1px solid var(--line); text-align: center;
  text-decoration: none; display: inline-block;
}
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.primary:disabled { opacity: .5; cursor: not-allowed; }
button.secondary, a.secondary { background: var(--surface); color: var(--ink); }
.wide { width: 100%; margin-top: 1rem; }

.qty { display: flex; align-items: center; gap: .25rem; border: 1px solid var(--line);
  border-radius: 12px; padding: .25rem; }
.qty button { width: 2.25rem; height: 2.25rem; font-size: 1.125rem; background: none;
  border: 0; color: var(--ink); cursor: pointer; border-radius: 8px; }
.qty button:hover { background: var(--line); }
.qty span { min-width: 1.5rem; text-align: center; font-weight: 600; }

/* ---- item drawer contents ---- */

.item-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px;
  margin-bottom: .875rem; background: var(--line); }

.opt-group { border-top: 1px solid var(--line); padding-top: .875rem; margin-top: .875rem; }
.opt-group .head { display: flex; justify-content: space-between; align-items: baseline;
  gap: .5rem; margin-bottom: .5rem; }
.opt-group .rule { font-size: .75rem; color: var(--ink-soft); }
.opt-group .rule.required { color: var(--warn); font-weight: 600; }
.opt-group .rule.done { color: var(--ok); font-weight: 600; }

/* A branch that appeared because its parent was picked. Indented and ruled so it reads as
   belonging to the choice above it. */
.opt-children {
  margin: .5rem 0 .5rem 1rem;
  padding-left: .875rem;
  border-left: 2px solid var(--line);
}
.opt-children .opt-group:first-child { border-top: 0; margin-top: .25rem; padding-top: 0; }

/* The group the customer still has to answer. Marked rather than merely scrolled to. */
.opt-group.needs-pick {
  border-left: 3px solid var(--warn);
  padding-left: .75rem;
  margin-left: -.75rem;
  border-radius: 2px;
  animation: needs-pick-flash 1.2s ease-out 2;
}
@keyframes needs-pick-flash {
  0%, 100% { background: transparent; }
  35%      { background: var(--warn-soft); }
}
@media (prefers-reduced-motion: reduce) {
  .opt-group.needs-pick { animation: none; background: var(--warn-soft); }
}

.opt {
  display: flex; align-items: center; gap: .625rem; padding: .5rem .25rem;
  border-radius: 8px; cursor: pointer;
}
.opt:hover { background: var(--accent-soft); }
.opt input { accent-color: var(--accent); width: 1.125rem; height: 1.125rem; }
.opt .opt-name { flex: 1; }
.opt .opt-price { color: var(--ink-soft); font-size: .875rem; }
.opt.disabled { opacity: .45; cursor: not-allowed; }

/* How many of one option: a stepper that appears only once the value is ticked. */
.opt-qty { display: inline-flex; align-items: center; gap: .125rem; margin-left: .5rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .0625rem; }
.opt-qty.hidden { display: none; }
.opt-qty button { width: 1.5rem; height: 1.5rem; line-height: 1; font-size: .9375rem;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 999px;
  padding: 0; }
.opt-qty button:hover { background: var(--line); }
.opt-qty b { min-width: 1.125rem; text-align: center; font-size: .8125rem; font-weight: 700;
  font-variant-numeric: tabular-nums; }

/* ---- cart ---- */

.cart-line {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .75rem 0; border-bottom: 1px solid var(--line);
}
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .name { font-weight: 600; }
.cart-line .detail { color: var(--ink-soft); font-size: .8125rem; }
.cart-line .remove { background: none; border: 0; color: var(--warn); cursor: pointer;
  font: inherit; font-size: .875rem; padding: .25rem; }
.cart-line button:disabled { opacity: .4; cursor: not-allowed; }

/* What the customer picked, under the line's name. Quiet: the item name is what gets scanned. */
.cart-line .pick {
  font-size: .85rem;
  opacity: .72;
  line-height: 1.35;
  padding-left: .6em;
  border-left: 2px solid var(--line);
  margin: .15em 0;
}
.cart-line .edit {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: .85rem;
  color: inherit;
  opacity: .7;
  text-decoration: underline;
  cursor: pointer;
}
.cart-line .edit:hover { opacity: 1; }

.line-actions { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.qty.small { padding: .125rem; border-radius: 10px; }
.qty.small button { width: 1.75rem; height: 1.75rem; font-size: 1rem; }
.qty.small span { min-width: 1.25rem; font-size: .875rem; }
.line-price { font-weight: 600; white-space: nowrap; }

.subtotal { text-align: right; font-weight: 700; margin: .875rem 0 0; }
.empty { color: var(--ink-soft); padding: 1.5rem 0; text-align: center; }

textarea#codeText {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .75rem; word-break: break-all; resize: vertical;
}

/* The seven-digit code. Big, spaced and monospaced, so a digit cannot go missing when read out. */
.shortcode {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(2.2rem, 12vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  padding: 0.5em 0.2em;
  margin: 0.2em 0 0.1em;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  user-select: all;
}
#longWrap { margin-top: 1rem; }
#longWrap summary { cursor: pointer; opacity: 0.75; font-size: 0.9rem; }
#longWrap textarea { margin-top: 0.6rem; }

/* ---- address confirm ---- */

.confirm { margin-top: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.confirm .chosen {
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
  padding: .625rem .75rem; border-radius: .5rem;
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; text-decoration: underline; font-size: .8125rem; font-weight: 500;
  opacity: .85; flex: none;
}
.link:hover { opacity: 1; }
.btn.wide { width: 100%; padding: .75rem; font-size: 1rem; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---- toast ---- */

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  background: #1f3a56; color: #fff; padding: .75rem 1.125rem;
  border-radius: 999px; z-index: 60; font-size: .9375rem; box-shadow: var(--shadow);
  max-width: calc(100vw - 2rem);
}

.spinner {
  display: block; width: 22px; height: 22px; margin: 2rem auto;
  border: 2px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}

.includes { margin: 0; padding-left: 1.125rem; color: var(--ink-soft); }
.includes li { padding: .125rem 0; }

/* ---- theme toggle ---- */

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none; cursor: pointer;
  color: var(--ink); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; transition: background-color .15s, border-color .15s;
}
.theme-toggle:hover { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.theme-toggle svg { width: 20px; height: 20px; }
/* The icon shows where a click takes you: a sun while dark, a moon while light. */
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }

/* ==== landing page (address screen) ================================================== */

.landing { position: relative; }
/* A full-bleed wash behind the hero. */
.landing::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 50%;
  width: 100vw; height: 38rem; transform: translateX(-50%);
  background:
    radial-gradient(60rem 22rem at 78% -4rem, var(--glow), transparent 70%),
    var(--wash);
}

.site-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  color: var(--ink); font-weight: 700; letter-spacing: -.01em; min-height: 44px;
}
.brand-mark {
  width: 2rem; height: 2rem; padding: .4rem; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
}
.nav-links { display: flex; gap: .25rem; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: .9375rem; font-weight: 500;
  padding: .625rem .75rem; border-radius: 10px; min-height: 44px; display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--accent) 10%, transparent); }
@media (max-width: 560px) { .nav-links a:first-child { display: none; } }

.hero { padding: 2rem 0 3rem; max-width: 40rem; margin: 0 auto; text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2rem, 6.5vw, 3rem); letter-spacing: -.03em; margin-bottom: .75rem; }
.hero .sub { font-size: 1.0625rem; max-width: 30rem; margin-bottom: 1.5rem; }

.hero-card {
  width: 100%; text-align: left; padding: 1.125rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow);
}
.field-label { display: block; font-size: .8125rem; font-weight: 600; color: var(--ink-soft);
  margin: 0 0 .5rem .125rem; }
.hero-card input[type="text"] { border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.hero-card .status { margin-bottom: 0; }
.hero-card .status:empty { display: none; }

.hero-stats {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
}
.hero-stats li {
  padding: .75rem .5rem; border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line);
}
.hero-stats strong { display: block; font-size: 1rem; letter-spacing: -.01em; }
.hero-stats span { display: block; font-size: .75rem; color: var(--ink-soft); line-height: 1.3; }

.band { padding: 3rem 0; }
.band.tinted {
  /* Full-bleed inside a centred column without 100vw, which counts the scrollbar and so
     overflows the page sideways. */
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}
.band-title { text-align: center; font-size: clamp(1.4rem, 4vw, 1.75rem);
  letter-spacing: -.02em; margin: 0 0 1.75rem; scroll-margin-top: 5rem; }
.band[id] { scroll-margin-top: 3rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding: 1.25rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); }
.step h3, .feature h3 { margin: .75rem 0 .375rem; font-size: 1.0625rem; }
.step p, .feature p { margin: 0; color: var(--ink-soft); font-size: .9375rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%; font-weight: 700; font-size: .9375rem;
  color: var(--accent-ink); background: var(--accent);
}

.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { padding: 1.25rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 10px; font-weight: 700;
  color: var(--accent); background: var(--accent-soft);
}

.faq { max-width: 40rem; margin: 0 auto; display: grid; gap: .625rem; }
.faq details { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0 1rem; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.faq summary {
  cursor: pointer; font-weight: 600; padding: .9375rem 1.5rem .9375rem 0; list-style: none;
  position: relative; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.25rem; font-weight: 400; color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 1rem; color: var(--ink-soft); font-size: .9375rem; }

.site-foot {
  display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap;
  padding: 1.5rem 0 0; margin-top: 1rem; border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: .8125rem;
}

/* ---- polish shared by every screen ---- */

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card, .item, .chip, button.primary, .cart-btn { transition: box-shadow .15s, transform .15s, background-color .15s; }
.card:hover, .item:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .item, .chip, button.primary, .cart-btn { transition: none; }
  .card:hover, .item:hover { transform: none; }
}
