/* ---------------------------------------------------------------- reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.hidden {
  display: none !important;
}

.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;
}

.ico {
  flex: 0 0 auto;
}

/* Dismiss controls: same icon, same weight, everywhere. */
.ico-bold {
  stroke-width: 2.25px;
}

/* --------------------------------------------------------------- layout */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  padding-bottom: calc(var(--bar-h) + 48px + env(safe-area-inset-bottom));
}

/* --------------------------------------------------------- brand header */

.brandbar {
  position: relative;
  z-index: 5;
  margin: 0 calc(var(--gutter) * -1);
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  min-width: 0;
}

.wordmark .name {
  margin: 0;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  line-height: 1.1;
  white-space: nowrap;
}

.wordmark .place {
  margin-top: 4px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.langbtn {
  flex: 0 0 auto;
  width: 46px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--card);
  font-size: 1.125rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

/* ------------------------------------------------------------- greeting */

.greet {
  padding: 18px 0 2px;
  text-align: center;
}

.greet .tablerow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
}

.greet .tablerow .ico {
  color: var(--accent);
}

.greet h1 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px auto 0;
  max-width: 220px;
  color: var(--accent);
}

.rule::before,
.rule::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}

.rule::after {
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.rule span {
  font-size: 0.75rem;
  line-height: 1;
}

/* ------------------------------------------------------------- tab bar */

.tabbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(var(--gutter) * -1);
  padding: 10px var(--gutter);
  background: var(--bg-blur);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.tabbar::-webkit-scrollbar {
  display: none;
}

.tabbar[hidden] {
  display: none;
}

.tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 15px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--ink);
  font-size: var(--fs-base);
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.tab .ico {
  color: var(--muted);
  transition: color 0.18s;
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.tab.active .ico {
  color: var(--accent-ink);
}

[data-section] {
  scroll-margin-top: 74px;
}

/* Display prices: the number carries the information, the symbol whispers. */
.cur {
  font-size: 0.62em;
  font-weight: 500;
  margin-inline: 0.05em;
}

/* --------------------------------------------------------- image tiles */

/* Absolute fill rather than height:100% — a percentage height cannot resolve
   against a parent that only has min-height, which collapsed the tile to the
   glyph's own height on narrow screens. */
.tile,
.tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile {
  display: grid;
  place-items: center;
}

.tile span {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45));
}

/* ------------------------------------------------- signature hero card */

.signature {
  position: relative;
  margin: 4px 0 14px;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: var(--dark-ink);
  box-shadow: var(--shadow-dark);
  overflow: hidden;
}

.sig-main {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.sig-media {
  position: relative;
  flex: 0 0 38%;
  min-height: 178px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--dark-2);
}

.sig-media .tile span {
  font-size: 46px;
}

.sig-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 6px 6px 4px 0;
}

/* The photo and the text block are both buttons that open the detail sheet;
   strip the UA chrome so they read as parts of the card. */
.sig-media,
.item-media,
.sig-open,
.item-open {
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
}

.sig-open,
.item-open {
  display: block;
  width: 100%;
}

.sig-name,
.sig-desc,
.item-name,
.item-desc {
  display: block;
}

.sig-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px 5px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sig-name {
  margin: 9px 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.sig-desc {
  margin-top: 7px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--dark-muted);
}

.sig-note {
  margin-top: 6px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent-glow);
}

.sig-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  /* A long Add label ("+ Hinzufügen") is wider than the signature card's
     text column: let the control drop to its own line instead of running
     off the card. English is unaffected — it still fits beside the price. */
  flex-wrap: wrap;
}

.sig-foot > [data-side] {
  margin-left: auto;
}

.sig-price {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1;
}

/* the combo strip along the bottom of the signature card */

.combo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--dark-line);
  border-radius: 14px;
  background: var(--dark-2);
  text-align: left;
  width: 100%;
  color: inherit;
}

.combo {
  cursor: pointer;
}

.combo.multi {
  cursor: default;
}

.combo-side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.combo-media {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--dark);
}

.combo-media .tile span {
  font-size: 22px;
}

.combo-text {
  flex: 1;
  min-width: 0;
}

.combo-title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--accent-glow);
  line-height: 1.2;
}

.pair-eyebrow {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 2px;
}

.combo-worth {
  font-weight: 600;
  color: var(--accent-glow);
  white-space: nowrap;
}

.combo-desc {
  display: block;
  font-size: var(--fs-sm);
  color: var(--dark-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.combo-add {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--accent-glow);
  border-radius: 50%;
  background: transparent;
  color: var(--accent-glow);
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
}

.combo.on {
  border-color: var(--accent);
  background: rgba(191, 82, 40, 0.18);
}

.combo.on .combo-add {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.sheet-body .combo {
  border-color: var(--line-strong);
  background: var(--card-alt);
  margin-top: 16px;
}

.sheet-body .combo-media {
  background: var(--dark-2);
}

.sheet-body .combo-title {
  color: var(--accent-on-soft);
}

.sheet-body .combo-desc,
.sheet-body .pair-eyebrow {
  color: var(--muted);
}

.sheet-body .combo-worth {
  color: var(--accent-on-soft);
}

.sheet-body .combo-add {
  border-color: var(--accent);
  color: var(--accent-on-soft);
}

.sheet-body .combo.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* --------------------------------------------------------- item cards */

.cat {
  margin-top: 22px;
}

.cat:first-child {
  margin-top: 0;
}

.cat-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.card-item {
  display: flex;
  gap: 14px;
}

/* Square, top-aligned: the photo sets a steady baseline for every row
   instead of stretching with however long the copy runs. */
.item-media {
  position: relative;
  flex: 0 0 calc(100% / 3);
  align-self: flex-start;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--dark-2);
}

.item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.item-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Small metadata beside the title — "For two" on the board. */
.serves {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--price);
}

.item-desc {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.item-note {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 16px;
  color: var(--accent-on-soft);
}

/* €29 with "€14.50 / person" tucked beneath — value maths for sharers.
   The per-person line hangs below without entering the flex centring, so
   the price itself stays vertically centred with the Add control. */
.price-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.per-person {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 2px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.item-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--price-ink);
  line-height: 1;
  /* Lining figures keep every digit on the baseline (Playfair's default
     oldstyle "9" descends); the lift puts the digits' baseline on the
     "Add" label's baseline, so both bottoms sit on one line. */
  font-variant-numeric: lining-nums;
  transform: translateY(-4px);
}

/* The currency symbol is set smaller than the number but shares its line box,
   so it rests on the same baseline as the digits — no vertical-align tricks,
   which would lift it off that baseline. */
.item-price .cur {
  font-size: 0.8em;
  font-weight: 400;
  vertical-align: baseline;
}

.unit-note {
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.card-item.out {
  opacity: 0.62;
}

/* badge sitting on the photograph */

.pin {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pin.soft {
  background: rgba(25, 23, 21, 0.86);
  backdrop-filter: blur(4px);
}

.soldout {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--card-alt);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ------------------------------------------------------- add / stepper */

.addbtn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  /* 45px matches the stepper, whose 1.5px borders sit outside its 42px
     buttons — so swapping Add for - 1 + never nudges the row's height.
     It also clears the 44px minimum tap target that 42px missed. */
  min-height: 45px;
  padding: 7px 17px 7px 13px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}

.addbtn:active {
  transform: scale(0.96);
}

.addbtn.solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  min-height: 45px;
  padding: 9px 22px 9px 18px;
}

.addbtn.solid:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}

.stepper {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-pill);
  background: transparent;
  overflow: hidden;
}

/* The bin replaces "−" at a quantity of one; tint it so deleting never looks
   like counting down. */
.binbtn {
  color: var(--danger) !important;
}

.stepper.solid .binbtn,
.stepper.on-dark .binbtn {
  color: var(--dark-ink) !important;
  opacity: 0.85;
}

.stepper button {
  width: 40px;
  height: 42px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  display: grid;
  place-items: center;
}

.stepper button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Capped but still tappable — the tap explains the cap instead of dying. */
.stepper button[aria-disabled='true'] {
  opacity: 0.35;
}

.stepper .qty {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.stepper.on-dark {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.stepper.on-dark button,
.stepper.on-dark .qty {
  color: var(--dark-ink);
}

.stepper.solid {
  border-color: var(--accent);
  background: var(--accent);
}

.stepper.solid button,
.stepper.solid .qty {
  color: var(--accent-ink);
}

.stepper.solid button {
  width: 42px;
  height: 42px;
}

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

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0 var(--gutter) calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.bar[hidden] {
  display: block !important;
  transform: translateY(160%);
}

.bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 8px;
  border-radius: var(--radius-pill);
  background: var(--dark);
  color: var(--dark-ink);
  box-shadow: var(--shadow-dark);
}

.bar-cart {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
}

/* Top-right, not top-left: at the left the badge collides with the pill's
   own rounded corner and gets clipped. */
.bar-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--dark);
  font-size: 0.6875rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.bar-text {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.bar-text .n {
  font-size: var(--fs-base);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-text .sub {
  font-size: var(--fs-sm);
  color: var(--dark-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-sep {
  flex: 0 0 auto;
  width: 1px;
  align-self: stretch;
  margin: 4px 0;
  background: var(--dark-line);
}

.bar-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 10px 11px 10px 14px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-base);
  font-weight: 600;
  white-space: nowrap;
}

/* On narrow phones the arrow's 24px belong to the basket label: a long
   CTA ("Zur Bestellung") must never push the count/total into ellipsis. */
@media (max-width: 389px) {
  .bar-inner:not(.solo) .bar-go svg {
    display: none;
  }
}

/* Tightest phones: shave the chrome, never the count/total. */
@media (max-width: 360px) {
  .bar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .bar-inner {
    gap: 7px;
  }

  .bar-cart {
    width: 40px;
    height: 40px;
  }

  .bar-inner:not(.solo) .bar-go {
    padding: 10px 10px 10px 12px;
  }
}

.bar-go:hover {
  background: var(--accent-dim);
}

/* Single-action variant: no dark pill behind it, or the button reads as if
   it has a heavy black outline. */

.bar-inner.solo {
  background: none;
  box-shadow: none;
  padding: 0;
}

.bar-solo {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  min-height: 52px;
  font-size: var(--fs-base);
  box-shadow: var(--shadow-dark);
}

/* --------------------------------------------------------------- forms */

.heading {
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.heading.center {
  text-align: center;
}

.btn {
  width: 100%;
  min-height: var(--tap);
  padding: 13px 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-base);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, opacity 0.15s;
}

.btn:hover:not(:disabled) {
  background: var(--accent-dim);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.danger {
  background: var(--danger);
}

.btn.danger:hover:not(:disabled) {
  background: #97201a;
}

.btn.alt {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn.alt:hover:not(:disabled) {
  background: var(--card-alt);
}

.link {
  background: none;
  border: none;
  padding: 11px 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field {
  margin: 16px 0;
}

.field > label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 7px;
}

.req {
  color: var(--accent);
  margin-left: 2px;
}

.hint {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: 6px;
}

input[type='text'],
input[type='tel'],
textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: var(--fs-md);
}

textarea {
  resize: vertical;
  min-height: 80px;
  font-size: var(--fs-base);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.err {
  margin-top: 8px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.phone-row {
  display: flex;
  gap: 8px;
}

.cc-btn {
  flex: 0 0 auto;
  min-height: var(--tap);
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: var(--fs-base);
  font-weight: 600;
  white-space: nowrap;
}

.phone-row input {
  flex: 1;
  min-width: 0;
}

.radios {
  display: grid;
  gap: 10px;
}

.radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.radio:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.radio input {
  margin: 2px 0 0;
  width: 19px;
  height: 19px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.radio > span {
  flex: 1;
  min-width: 0;
}

.radio .rt {
  display: block;
  font-weight: 600;
}

.radio .rd {
  display: block;
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: 1px;
}

/* --------------------------------------------------------------- cards */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  margin: 14px 0;
  box-shadow: var(--shadow-sm);
}

.notice {
  display: flex;
  gap: 11px;
  padding: 14px 15px;
  border-radius: var(--radius-sm);
  background: var(--card-alt);
  border: 1px solid var(--line-strong);
  margin: 14px 0;
  font-size: var(--fs-sm);
}

.notice .ico {
  color: var(--muted);
  margin-top: 1px;
}

.notice .nt {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: var(--fs-base);
}

.notice.warn {
  background: var(--danger-soft);
  border-color: #f0cdca;
  color: var(--danger);
}

.notice.warn .nt,
.notice.warn .ico {
  color: var(--danger);
}

.sum {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sum li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.sum li:last-child {
  border-bottom: none;
}

.sum .s-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

.sum .s-sub {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 400;
}

.sum .s-price {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  min-width: 62px;
  text-align: right;
}

.totals {
  margin-top: 4px;
  padding-top: 13px;
  border-top: 1.5px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-md);
  font-weight: 700;
}

.totals .t-amt {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 2px var(--gutter) 4px;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--card);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}

.chip .cg {
  font-size: var(--fs-md);
}

.chip .cp {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--price);
}

.chip .ico {
  color: var(--accent);
}

/* remove confirmation */

.rm-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.rm-media {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark-2);
}

.rm-media .tile span {
  font-size: 26px;
}

.rm-text {
  flex: 1;
  min-width: 0;
}

.rm-name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.2;
}

.rm-price {
  display: block;
  margin-top: 2px;
  color: var(--price);
  font-weight: 600;
}

/* --------------------------------------------------------------- sheet */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(25, 23, 21, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.scrim.in {
  opacity: 1;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-dark);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.sheet.in {
  transform: translateY(0);
}

@media (min-width: 560px) {
  .sheet {
    left: 50%;
    right: auto;
    width: var(--maxw);
    transform: translate(-50%, 100%);
  }
  .sheet.in {
    transform: translate(-50%, 0);
  }
}

.sheet-grab {
  flex: 0 0 auto;
  width: 38px;
  height: 4px;
  margin: 10px auto 3px;
  border-radius: 2px;
  background: var(--line-strong);
}

.sheet-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px var(--gutter) 12px;
  border-bottom: 1px solid var(--line);
}

.sheet-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
}

.sheet-x {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--card-alt);
  color: var(--muted);
  display: grid;
  place-items: center;
}

.sheet-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 15px var(--gutter);
}

.sheet-foot {
  flex: 0 0 auto;
  padding: 13px var(--gutter) calc(13px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--card);
}

/* item detail */

.detail-img {
  position: relative;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-2);
  margin-bottom: 15px;
}

.detail-img .tile span {
  font-size: 64px;
}

.detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.detail-name {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.detail-price {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--price);
}

.detail-desc {
  margin-top: 12px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--ok-soft);
  color: var(--ok);
}

.tag.alert {
  background: var(--danger-soft);
  color: var(--danger);
}

.detail-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-qty .lbl {
  font-weight: 600;
}

.optlist {
  display: grid;
  gap: 8px;
}

.optlist button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--tap);
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  text-align: left;
  font-weight: 600;
}

.optlist button[aria-selected='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-on-soft);
}

.optlist .fl {
  font-size: var(--fs-lg);
  line-height: 1;
}

.optlist .dial {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.search {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: 10px;
  background: var(--bg);
}

/* -------------------------------------------------------------- states */

.state {
  text-align: center;
  padding: 52px 10px;
  color: var(--muted);
}

.state .big {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 14px;
}

.state .ct {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 16px;
  border: 3px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tick {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  display: grid;
  place-items: center;
  animation: pop 0.4s cubic-bezier(0.2, 1.4, 0.5, 1);
}

@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

.ordernum {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-h) + 24px + env(safe-area-inset-bottom));
  z-index: 70;
  transform: translate(-50%, 14px);
  max-width: calc(100vw - 40px);
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--dark);
  color: var(--dark-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: var(--shadow-dark);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.toast.in {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* The post-add nudge: a toast that can sell. Same dark pill, plus a
   one-tap price button. */
.nudge {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-h) + 24px + env(safe-area-inset-bottom));
  z-index: 70;
  transform: translate(-50%, 14px);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 40px);
  padding: 8px 8px 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--dark);
  color: var(--dark-ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  box-shadow: var(--shadow-dark);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.nudge.in {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nudge-text {
  min-width: 0;
}

.nudge-add {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 15px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
}

/* --------------------------------------------------------- legal pages */

.legal-updated {
  margin: 0 0 4px;
  font-size: var(--fs-xs);
  color: var(--faint);
}

.legal section {
  margin-top: 18px;
}

.legal h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
}

.legal p,
.legal li {
  margin: 0 0 8px;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--muted);
}

.legal ul {
  margin: 0;
  padding-left: 18px;
}

.legal li {
  margin-bottom: 6px;
}

/* -------------------------------------------------------------- footer */

.foot {
  margin-top: 30px;
  padding: 16px 0 6px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Acceptance marks earn their pixels once — at the payment decision. On the
   menu and review screens they are decoration; the legal tier below is what
   must stay reachable everywhere. */
.foot .marks {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

body[data-route='checkout'] .foot .marks {
  display: flex;
}

.foot .marks span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.foot .links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 14px;
  margin-bottom: 4px;
}

.foot a,
.foot .flink {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 9px 0;
  font-size: var(--fs-sm);
  cursor: pointer;
}

.foot .biz {
  font-size: var(--fs-xs);
  color: var(--faint);
  line-height: 1.7;
}

/* Narrow phones: the signature card's two columns get too tight below ~340px
   of content width, so stack them. */
@media (max-width: 359px) {
  .sig-main {
    flex-direction: column;
  }
  .sig-media {
    flex: 0 0 auto;
    min-height: 150px;
  }
}
