[hidden] { display: none !important; }
/* Mobile Markets — shared styles. Storefront (navy bands + white grid), van page and admin (same palette, bigger tap targets). */
:root {
  --bg: #ffffff; --fg: #10303F; --muted: #4C6673; --line: #DCE4E8; --surface: #EEF2F3;
  --band: #10303F; --band-fg: #ffffff; --band-muted: #B9CAD2; --band-tile: #1A4256;
  --accent: #C7462E; --accent-fg: #ffffff; --accent-soft: #FBE9E5; --accent-ink: #8A2A18;
  --ok: #1F7A4D; --ok-soft: #E6F0EC; --warn: #8A6116; --warn-soft: #FBF1DC;
  --tile-packs: #E4D3C2; --tile-lamb: #DCCBBE; --tile-pork: #F1CFC4; --tile-seafood: #C9DCE3; --tile-steak: #D9C3C0; --tile-beef: #D9C3C0; --tile-chicken: #E8DFC8; --tile-other: #DDE3E6;
  --tile-fg: #10303F;
  --display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --body: 'Work Sans', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0C1F29; --fg: #EAF0F3; --muted: #9FB3BC; --line: #22394A; --surface: #15293A;
  --band: #07151D; --band-fg: #ffffff; --band-muted: #9FB3BC; --band-tile: #122C3B;
  --accent: #E0583F; --accent-fg: #ffffff; --accent-soft: #3A1C16; --accent-ink: #F6B3A6;
  --ok: #4CC38A; --ok-soft: #10332A; --warn: #E9C06A; --warn-soft: #3A2E12;
  --tile-packs: #4F4136; --tile-lamb: #5A4A3F; --tile-pork: #5E3F38; --tile-seafood: #2C4A57; --tile-steak: #553E3B; --tile-beef: #553E3B; --tile-chicken: #574D38; --tile-other: #2E3F48; --tile-fg: #F3F6F7;
  color-scheme: dark;
} }
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--fg); }
button { font: inherit; cursor: pointer; border: 0; color: inherit; background: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hint { font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.num { font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; transition: filter .15s, transform .1s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); } .btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-accent { background: var(--accent); color: var(--accent-fg); }
.btn-ink { background: var(--band); color: var(--band-fg); }
.btn-soft { background: var(--surface); color: var(--fg); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ghost { background: transparent; color: var(--band-fg); border: 1.5px solid #5C7A88; }
.btn-line { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.btn-round { border-radius: 999px; }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.count { background: var(--band-fg); color: var(--band); border-radius: 999px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; padding: 0 6px; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; background: var(--band); color: var(--band-fg); }
header.top .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--band-fg); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 24px; }
nav.main { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
nav.main a { color: var(--band-fg); text-decoration: none; font-weight: 500; font-size: 15px; }
nav.main a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }

/* hero */
.hero { background: var(--band); color: var(--band-fg); }
.hero .wrap { padding-block: 48px 64px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(38px, 5.5vw, 60px); line-height: 1.02; max-width: 14ch; }
.hero p { font-size: 18px; color: var(--band-muted); max-width: 52ch; }
.live { display: inline-flex; align-items: center; gap: 8px; color: #F3B8AD; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.facts { flex: 0 1 360px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { background: var(--band-tile); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.fact b { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.15; }
.fact span { font-size: 13px; color: var(--band-muted); }

/* shop */
.shop .wrap { padding-block: 48px 32px; display: flex; flex-direction: column; gap: 24px; }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shop-head h2 { font-size: clamp(28px, 4vw, 36px); }
.shop-head p { font-size: 15px; color: var(--muted); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--surface); color: var(--fg); }
.pill[aria-pressed="true"] { background: var(--band); color: var(--band-fg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: var(--bg); transition: box-shadow .15s; position: relative; }
.card:hover { box-shadow: 0 8px 24px rgba(16,48,63,.14); }
.card.out { opacity: .6; }
@media (min-width: 560px) { .card.pack { grid-column: span 2; } }
.card.pack .tile { min-height: 96px; }
.pack-list { list-style: none; margin: 0; padding: 0; columns: 2 180px; column-gap: 20px; font-size: 14px; line-height: 1.5; color: var(--fg); }
.pack-list li { break-inside: avoid; padding-left: 14px; position: relative; }
.pack-list li::before { content: '•'; position: absolute; left: 0; color: var(--muted); }
.ask { font-size: 14px; color: var(--muted); font-weight: 600; }
.tile { padding: 20px 18px; min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: var(--tile-fg); }
.tile .eyebrow { opacity: .7; }
.tile b { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.1; }
.badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge.gray { background: var(--surface); color: var(--muted); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body p { font-size: 14px; line-height: 1.45; color: var(--muted); flex: 1; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.price small { font-weight: 400; font-size: 13px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 2px; background: var(--band); border-radius: 999px; padding: 3px; }
.stepper button { width: 38px; height: 38px; border-radius: 999px; background: transparent; color: var(--band-fg); font-size: 20px; }
.stepper button.plus { background: var(--accent); }
.stepper span { color: var(--band-fg); font-weight: 600; min-width: 44px; text-align: center; font-size: 14px; }
.stepper.light { background: var(--surface); } .stepper.light button, .stepper.light span { color: var(--fg); } .stepper.light button.plus { background: transparent; }

/* delivery */
.delivery { background: var(--surface); }
.delivery .wrap { padding-block: 56px; display: flex; flex-direction: column; gap: 28px; }
.delivery h2 { font-size: clamp(28px, 4vw, 36px); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { background: var(--bg); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step b.n { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--accent); line-height: 1; }
.step strong { font-size: 18px; }
.step p { font-size: 15px; color: var(--muted); }

/* generic page + forms */
.page .wrap { padding-block: 32px 64px; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(28px, 4vw, 36px); }
.cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
form.form { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
form.form.grow { flex: 999 1 460px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
legend { font-family: var(--display); font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label { font-size: 14px; font-weight: 600; }
input, select, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1.5px solid #B8C4C9; border-radius: 8px; padding: 12px 14px; width: 100%; min-height: 46px; }
input:focus, select:focus, textarea:focus { border-color: var(--fg); outline: none; }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; cursor: pointer; }
.radio { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid #B8C4C9; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 400; }
.radio input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
.alert { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
aside.summary { flex: 1 1 300px; min-width: 0; background: var(--surface); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
aside.summary h2 { font-size: 22px; }
.lines { display: flex; flex-direction: column; gap: 10px; }
.line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.totals { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 600; font-size: 18px; padding-top: 6px; }
.done-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.done-copy h1 { font-size: clamp(32px, 4.5vw, 44px); line-height: 1.05; }
.done-copy p { font-size: 17px; color: var(--muted); }
.bubble { background: var(--band); color: #E6EEF2; border-radius: 18px 18px 18px 4px; padding: 20px 22px; font-family: var(--mono); font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

/* footer */
footer.site { background: var(--band); color: var(--band-muted); margin-top: auto; }
footer.site .wrap { padding-block: 40px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; font-size: 14px; }
footer.site .col { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; }
footer.site strong { color: var(--band-fg); }
footer.site a { color: var(--band-muted); }

/* cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(16,48,63,.45); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 31; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(16,48,63,.2); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; display: flex; flex-direction: column; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--surface); }
.cart-line .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-line .meta b { font-weight: 600; font-size: 15px; }
.cart-line .meta span { font-size: 13px; color: var(--muted); }
.cart-line .lt { font-weight: 600; min-width: 64px; text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.x { width: 44px; height: 44px; border-radius: 999px; background: var(--surface); color: var(--fg); font-size: 22px; }

/* ---------- van + admin ---------- */
body.van { display: flex; flex-direction: column; min-height: 100vh; }
.van .wrap.narrow { padding-block: 20px 48px; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--fg); font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.tab[aria-current] { background: var(--accent); color: var(--accent-fg); }
.tab .count { background: var(--band); color: var(--band-fg); } .tab[aria-current] .count { background: #fff; color: var(--accent); }
.van h1 { font-size: 28px; }
.van h2 { font-size: 20px; }
.ocard { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.ocard.new { border-color: var(--accent); }
.ocard .who { font-size: 18px; font-weight: 600; }
.ocard .when { font-weight: 600; color: var(--accent-ink); }
.ocard ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.ocard li { display: flex; justify-content: space-between; gap: 12px; }
.ocard .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ocard .acts .btn { flex: 1 1 140px; min-height: 52px; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.status.new { background: var(--accent-soft); color: var(--accent-ink); }
.status.confirmed { background: var(--warn-soft); color: var(--warn); }
.status.delivered { background: var(--ok-soft); color: var(--ok); }
.status.cancelled { background: var(--surface); color: var(--muted); }
.srow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.srow .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.srow .meta b { font-weight: 600; font-size: 16px; }
.srow .meta span { font-size: 13px; color: var(--muted); }
.srow .btn { min-height: 48px; }
.toggle { min-width: 110px; }
.toggle.on { background: var(--ok-soft); color: var(--ok); }
.toggle.off { background: var(--surface); color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi b { font-family: var(--display); font-size: 24px; }
.kpi span { font-size: 13px; color: var(--muted); }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th, table.t td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tel { text-decoration: none; font-weight: 600; }
.code { font-family: var(--mono); font-size: 32px; letter-spacing: .2em; background: var(--surface); padding: 12px 18px; border-radius: 10px; display: inline-block; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
details summary { cursor: pointer; font-weight: 600; }
pre.log { font-family: var(--mono); font-size: 13px; white-space: pre-wrap; background: var(--surface); padding: 12px; border-radius: 10px; margin: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===================== Themes =====================
   A shop's theme is a body class (theme-<name>). The default theme is the :root palette above.
   Themes only swap variables plus a few finishing touches, so every page keeps working. */
body.theme-tuxedo {
  --bg: #FBFAF7; --fg: #111111; --muted: #5F5A52; --line: #E2DED6; --surface: #F1EEE8;
  --band: #0E0E0E; --band-fg: #FBFAF7; --band-muted: #B9B3A8; --band-tile: #1B1B1B;
  --accent: #7A1E2C; --accent-fg: #ffffff; --accent-soft: #F3E6E8; --accent-ink: #5A1420;
  --ok: #1F6B47; --ok-soft: #E6EFEA; --warn: #7A5A16; --warn-soft: #F5EDDC;
  --tile-packs: #141414; --tile-steak: #221A1A; --tile-beef: #221A1A; --tile-seafood: #171D22; --tile-pork: #211B1B; --tile-chicken: #201E18; --tile-lamb: #1F1B18; --tile-other: #1B1B1B;
  --tile-fg: #FBFAF7;
  --display: 'Playfair Display', 'Didot', 'Bodoni 72', Georgia, serif;
  color-scheme: light;
}
body.theme-tuxedo h1, body.theme-tuxedo h2, body.theme-tuxedo h3 { letter-spacing: 0; font-weight: 600; }
body.theme-tuxedo .brand { font-weight: 600; letter-spacing: .01em; }
body.theme-tuxedo header.top { border-bottom: 1px solid #262626; }
body.theme-tuxedo .hero, body.theme-tuxedo footer.site {
  background: var(--band) url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'180'%20height%3D'180'%20viewBox%3D'0%200%20180%20180'%3E%3Cg%20fill%3D'none'%20stroke%3D'white'%20stroke-opacity%3D'0.045'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M22%2030c12-14%2038-12%2046%204s-2%2034-20%2036-30-4-34-16%200-18%208-24z'%2F%3E%3Cpath%20d%3D'M38%2034v26M38%2044h12'%2F%3E%3Ccircle%20cx%3D'54'%20cy%3D'58'%20r%3D'5'%2F%3E%3Cg%20transform%3D'translate(110%2024)%20rotate(35)'%3E%3Cellipse%20cx%3D'16'%20cy%3D'12'%20rx%3D'16'%20ry%3D'12'%2F%3E%3Cpath%20d%3D'M28%2018l18%2014'%2F%3E%3Ccircle%20cx%3D'49'%20cy%3D'31'%20r%3D'4'%2F%3E%3Ccircle%20cx%3D'46'%20cy%3D'37'%20r%3D'4'%2F%3E%3C%2Fg%3E%3Cg%20transform%3D'translate(18%20112)'%3E%3Cpath%20d%3D'M4%2020c14-16%2038-16%2052%200-14%2016-38%2016-52%200z'%2F%3E%3Cpath%20d%3D'M56%2020l14-10v20z'%2F%3E%3Ccircle%20cx%3D'18'%20cy%3D'18'%20r%3D'2'%2F%3E%3C%2Fg%3E%3Cg%20transform%3D'translate(112%20116)%20rotate(-20)'%3E%3Cpath%20d%3D'M8%2024c10-14%2034-14%2044%200-10%2014-34%2014-44%200z'%2F%3E%3Cpath%20d%3D'M8%2024h-6M52%2024h6'%2F%3E%3Ccircle%20cx%3D'-4'%20cy%3D'20'%20r%3D'3'%2F%3E%3Ccircle%20cx%3D'-4'%20cy%3D'28'%20r%3D'3'%2F%3E%3Ccircle%20cx%3D'62'%20cy%3D'20'%20r%3D'3'%2F%3E%3Ccircle%20cx%3D'62'%20cy%3D'28'%20r%3D'3'%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"); background-size: 180px 180px;
}
body.theme-tuxedo .hero .wrap { border-bottom: 1px solid #2A2A2A; }
body.theme-tuxedo .eyebrow { letter-spacing: .28em; }
body.theme-tuxedo .card { border-radius: 4px; border-color: #D9D4CA; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
body.theme-tuxedo .card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.18); }
body.theme-tuxedo .tile { border-bottom: 3px solid var(--accent); }
body.theme-tuxedo .tile b { font-weight: 600; }
body.theme-tuxedo .badge { background: var(--fg); color: var(--bg); letter-spacing: .14em; }
body.theme-tuxedo .pill { border-radius: 2px; background: transparent; border: 1px solid var(--line); }
body.theme-tuxedo .pill[aria-pressed="true"] { border-color: var(--band); }
body.theme-tuxedo .btn-accent { background: var(--fg); color: var(--bg); }
body.theme-tuxedo .btn-accent:hover { background: var(--accent); }
body.theme-tuxedo .step b.n { color: var(--fg); font-weight: 600; }
body.theme-tuxedo .stepper button.plus { background: var(--accent); }
body.theme-tuxedo .bubble { background: #141414; border-radius: 4px; }
body.theme-tuxedo .hero h1 { font-size: clamp(34px, 4.4vw, 52px); max-width: 18ch; line-height: 1.08; }
body.theme-tuxedo .pill[aria-pressed="true"] { background: var(--band); color: var(--band-fg); border-color: var(--band); }
body.theme-tuxedo header.top .btn-accent, body.theme-tuxedo .hero .btn-accent { background: var(--band-fg); color: var(--band); }
body.theme-tuxedo header.top .btn-accent:hover, body.theme-tuxedo .hero .btn-accent:hover { background: #E9E4DA; }
body.theme-tuxedo header.top .btn-accent .count { background: var(--band); color: var(--band-fg); }
body.theme-tuxedo .hero .btn-ghost { border-color: rgba(251,250,247,.55); color: var(--band-fg); }

.notify-form { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.notify-form input { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; background: var(--bg); color: var(--fg); }
.notify-form button { align-self: flex-start; }
.card.out .notify-form, .card.out [data-notify] { opacity: 1; }
.card.out { opacity: 1; } .card.out .tile, .card.out .price { opacity: .55; }
.asked { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); text-decoration: none; }

.deals { margin-bottom: 36px; }
.deals h2 { margin-bottom: 14px; }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.deal { border: 2px solid var(--accent); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: var(--accent-soft); }
.deal h3 { font-size: 22px; }
.deal .eyebrow { color: var(--accent-ink); }
body.theme-tuxedo .deal { border-radius: 4px; border: 1px solid var(--fg); border-top: 4px solid var(--accent); background: var(--bg); }
.checks { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
body.theme-tuxedo .stepper button.plus { color: #fff; }

.features { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.features h2 { font-size: 32px; }
.features h3 { font-size: 20px; margin-top: 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.feature { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.feature span { color: var(--muted); font-size: 15px; line-height: 1.45; }

.brand-mark { width: 40px; height: 40px; flex: none; display: block; }
@media (max-width: 480px) { .brand-mark { width: 34px; height: 34px; } }

/* Brand monogram in the corner of pack title bands, like a business card */
.tile { position: relative; }
.tile-mark { position: absolute; top: 50%; right: 22px; transform: translateY(-50%); width: 64px; height: 64px; opacity: .9; pointer-events: none; }
.card.pack .tile { padding-right: 104px; }
@media (max-width: 480px) { .tile-mark { width: 48px; height: 48px; right: 16px; } .card.pack .tile { padding-right: 80px; } }

/* "Wild caught" single items: emblem + inverted card (light title band, dark body) */
.card.dark { border-color: var(--band); }
.card.dark .tile { background: var(--band) !important; color: var(--band-fg); border-bottom: 1px solid #2a2a2a; min-height: 72px; }
.card.dark .wild-emblem { display: block; width: 150px; height: auto; margin-bottom: 4px; }
.card.dark .card-body { background: var(--band); color: var(--band-fg); }
.card.dark .card-body p, .card.dark .card-body .hint { color: var(--band-muted); }
.card.dark .price, .card.dark .price small, .card.dark .ask { color: var(--band-fg); }
.card.dark .btn-ink, .card.dark .stepper button.plus { background: var(--band-fg); color: var(--band); }
.card.dark .btn-line { color: var(--band-fg); border-color: rgba(251,250,247,.5); }
.card.dark .notify-form input { background: #1c1c1c; color: var(--band-fg); border-color: #333; }
body.theme-tuxedo .card.dark .tile { border-bottom: 1px solid #2a2a2a; }

.card.wild-head { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: center; padding: 22px 16px 18px; background: var(--bg); color: var(--fg); border-color: var(--fg); }
.card.wild-head .wild-emblem { width: min(340px, 80%); height: auto; display: block; }
body.theme-tuxedo .card.wild-head { border-radius: 4px; border-top: 4px solid var(--accent); }

.card.sec-head { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: center; padding: 20px 16px 16px; background: var(--bg); color: var(--fg); border-color: var(--fg); margin-top: 10px; }
.card.sec-head:first-child { margin-top: 0; }
.card.sec-head:hover { box-shadow: none; }
.sec-emblem { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sec-icon { width: 72px; height: 46px; display: block; }
img.sec-icon { width: 56px; height: 56px; }
.sec-label { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .3em; text-transform: uppercase; padding: 0 0 6px .3em; border-bottom: 1px solid currentColor; }
.card.sec-head .wild-emblem { width: min(340px, 80%); height: auto; display: block; }
body.theme-tuxedo .card.sec-head { border-radius: 4px; border-top: 4px solid var(--accent); }

/* Minimal item icons */
.pill { display: inline-flex; align-items: center; gap: 7px; }
.pill-icon { width: 18px; height: 18px; flex: none; --cut: var(--bg); }
.pill[aria-pressed="true"] .pill-icon { --cut: var(--band); }
.tile-icon { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); width: 40px; height: 40px; color: var(--tile-fg); opacity: .9; --cut: var(--tile-bg, #141414); }
.card.dark .tile-icon { --cut: var(--band); color: var(--band-fg); }
.card:not(.pack) .tile { padding-right: 72px; }
.pack-list.icons { columns: 2 220px; column-gap: 24px; }
.pack-list.icons li { padding: 0 0 10px; display: flex; flex-direction: column; gap: 4px; }
.pack-list.icons li::before { content: none; }
.pk-icons { display: flex; flex-wrap: wrap; gap: 2px; max-width: 216px; color: var(--fg); --cut: var(--bg); }
.pk-i { width: 15px; height: 15px; }
.pk-i.faint { opacity: .28; }
.pk-more { font-size: 11px; font-weight: 700; color: var(--muted); align-self: center; margin-left: 2px; }
.pk-text { font-size: 14px; line-height: 1.35; }

.pk-grid { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--fg); --cut: var(--bg); }
.pk-grid .pk-i { width: 14px; height: 14px; }

/* ---- UI polish pass: product grid, packs, tabs ---- */
.grid { gap: 24px; }
.card-body { padding: 20px 22px 22px; gap: 14px; }
.card-body p { font-size: 15.5px; line-height: 1.55; }
.tile { padding: 22px 22px 20px; }
.tile b { font-size: 26px; letter-spacing: -.005em; }
.price { font-size: 21px; }
.price small { font-size: 14px; }
.card-row { padding-top: 2px; }
.card-row .btn { min-height: 46px; padding: 0 24px; font-size: 16px; }
.card .btn:focus-visible, .pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* pack contents: readable list + one icon grid */
.pack-list { font-size: 16px; line-height: 1.65; column-gap: 28px; columns: 2 200px; }
.pack-list li { padding-left: 16px; }
.pack-list li::before { color: var(--accent); font-weight: 700; }
.pk-grid-wrap { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.pk-label { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pk-grid { gap: 5px; margin: 0; padding: 0; border: 0; }
.pk-grid .pk-i { width: 19px; height: 19px; }
.pk-i.faint { opacity: .22; }

/* single-item tiles */
.tile-icon { width: 46px; height: 46px; right: 22px; }
.card:not(.pack) .tile { padding-right: 80px; min-height: 92px; }
.card.dark .card-body p { color: #C9C3B8; }

/* filter tabs */
.pill { min-height: 46px; padding: 0 18px 0 16px; font-size: 15.5px; gap: 8px; transition: background .15s, border-color .15s; }
.pill-icon { width: 21px; height: 21px; }
.pill:hover:not([aria-pressed="true"]) { border-color: var(--fg); }

/* section banners */
.card.sec-head { padding: 22px 16px 18px; }
.sec-icon { width: 80px; height: 50px; }
.sec-label { font-size: 24px; }

@media (max-width: 560px) {
  .grid { gap: 16px; }
  .tile b { font-size: 24px; }
  .pack-list { columns: 1; font-size: 16.5px; }
  .pk-grid .pk-i { width: 20px; height: 20px; }
  .pills { gap: 8px; }
}
.price { white-space: nowrap; }
.card.out .tile-icon { top: auto; bottom: 16px; transform: none; }
.card.out [data-notify] { padding: 0 16px; }

/* Equal-height cards: content flows from the top, price/Add row pinned to the bottom so rows line up */
.grid { align-items: stretch; }
.card-body p { flex: none; }
.card-body > .card-row { margin-top: auto; }
.card.solo { grid-column: 1 / -1; }

.pack-list.legend li { display: flex; align-items: flex-start; gap: 10px; padding-left: 0; }
.pack-list.legend li::before { content: none; }
.pack-list.legend .lg-i { width: 20px; height: 20px; flex: none; margin-top: .2em; color: var(--fg); --cut: var(--bg); }
.pack-list.legend.one { columns: 1; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.seg { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.repeat-note { padding: 12px 14px; border-left: 3px solid var(--accent, #9B1C23); background: rgba(0,0,0,.03); }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.swatches li { display: flex; align-items: center; gap: 14px; }
.swatches .sw { width: 44px; height: 44px; border-radius: 6px; border: 1px solid rgba(0,0,0,.25); flex: none; }
.swatches b { min-width: 64px; }
.swatches li .muted { font-size: 14px; }
.swatches code { font-size: 15px; user-select: all; }
