/* ============================================================================
   Tavobot Design System v1.0.0
   Terracotta accent · warm neutrals · Newsreader serif + system sans.
   Light theme = owner workspace (default). Dark theme = guest menu (.theme-dark).
   ============================================================================ */

/* Self-hosted Newsreader (SIL OFL) — no font-CDN request at runtime. One variable
   file per style covers weights 400..600; Georgia is the offline fallback. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/static/fonts/Newsreader-roman.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("/static/fonts/Newsreader-italic.woff2") format("woff2");
}

:root {
  /* Terracotta — single brand accent. Blue is retired to the "accepted" status. */
  --accent: #c2410c;        /* 600 — primary action / brand */
  --accent-700: #9a3412;    /* pressed / active */
  --accent-400: #e57342;    /* bright accent for text on dark surfaces */
  --accent-50: #fdf3ee;     /* warm tint surface */
  /* Warm light neutrals (paper-warm owner workspace). */
  --bg: #f7f5f2; --card: #fff; --line: #e9e3da; --muted: #78716c; --text: #1c1917;
  --surface-2: #faf8f5;
  /* Radii: controls / cards / pills. */
  --r-control: 10px; --r-card: 16px; --r-pill: 999px;
  /* Type. */
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
.container { max-width: 880px; margin: 0 auto; padding: 16px; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 22px; }
h2 { font-size: 18px; margin: 24px 0 8px; }
/* Display serif: restaurant + dish names and section headers. */
.display { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.01em; }

/* Legacy top nav (pre-auth / fallback). Owner app uses the sidebar below. */
.nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: 10px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.nav a { font-weight: 600; }
.nav .spacer { flex: 1; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 16px; margin: 12px 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=number], textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-control);
  font: inherit; background: #fff; color: var(--text); }
input[type=text]:focus, input[type=email]:focus, input[type=number]:focus,
textarea:focus, select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194, 65, 12, .12); }
textarea { min-height: 60px; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0;
  padding: 11px 18px; border-radius: var(--r-control); font: inherit; font-weight: 600;
  cursor: pointer; transition: background .12s, filter .12s; }
.btn:hover { background: var(--accent-700); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover, .btn[disabled]:hover { background: var(--accent); }
.btn.secondary { background: #fff; color: var(--text); border: 1px solid #d6cec3; }
.btn.secondary:hover { background: var(--surface-2); }
.btn.danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.btn.danger:hover { background: #fee2e2; }
.btn.small { padding: 6px 11px; font-size: 13px; }
button.link { background: none; border: 0; color: var(--accent); cursor: pointer;
  font: inherit; font-weight: 600; padding: 0; }
form.inline { display: inline; }

/* Tags + dietary chips + status badges */
.tag { display: inline-block; background: var(--accent-50); color: var(--accent-700);
  border: 1px solid #f5d9c8; border-radius: var(--r-pill);
  padding: 2px 10px; font-size: 12px; margin: 2px 4px 2px 0; }
.tag.warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }

/* Dietary chips — colored per code (design system component). */
.chip { display: inline-block; border-radius: 7px; padding: 4px 10px;
  font-size: 11.5px; font-weight: 700; background: var(--surface-2);
  color: var(--text); border: 1px solid var(--line); }
.chip--vegetarian, .chip--vegan { background: #dcfce7; color: #166534; border-color: transparent; }
.chip--spicy { background: #fef9c3; color: #854d0e; border-color: transparent; }
.chip--gluten_free { background: #fae8ff; color: #86198f; border-color: transparent; }
.chip--lactose_free { background: #e0f2fe; color: #075985; border-color: transparent; }

.badge { display: inline-flex; align-items: center; gap: 7px; border-radius: var(--r-pill);
  padding: 4px 12px; font-size: 12px; font-weight: 700; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; opacity: .85; }
/* Status palette — blue lives ONLY on "accepted". */
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.accepted { background: #dbeafe; color: #1e40af; }
.badge.abholbereit { background: #ccfbf1; color: #0f766e; }
.badge.in_delivery { background: #dcfce7; color: #166534; }
.badge.done { background: #f5f5f4; color: #57534e; }
.badge.paid { background: #dcfce7; color: #166534; }

/* Guest PayPal pay box (self-report flow). */
.pay-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.paid-note { color: #166534; font-weight: 700; }

/* Owner settings + consent records. */
.set-card { margin-bottom: 16px; }
.set-card h2 { margin: 0 0 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid label span { display: block; text-transform: none; letter-spacing: normal;
  font-weight: 400; color: var(--muted); margin-top: 4px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; text-transform: none; }
.checkbox-row input { width: auto; }
.checkbox-row span { text-transform: none; letter-spacing: normal; font-weight: 400;
  color: var(--text); margin: 0; }
.consent-record { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
  border-radius: var(--r-control); padding: 10px 12px; font-size: 13px; }
.consent-record .muted { display: block; margin-top: 2px; }

/* Legal pages (Terms / privacy), print-friendly. */
.legal { max-width: 760px; margin: 0 auto; padding: 8px 4px 40px; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { margin: 20px 0 6px; font-size: 16px; }
.legal p { line-height: 1.55; }
.tbd { background: #fef3c7; color: #92400e; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.theme-dark .consent-record { background: rgba(22,101,52,.15); border-color: #166534; color: #4ade80; }
.theme-dark .tbd { background: rgba(146,64,14,.35); color: #fcd34d; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.checks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.checks label { display: flex; align-items: center; gap: 6px; color: var(--text); margin: 0;
  font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.checks input { width: auto; }

/* Guest order: single deliberate-confirmation checkbox (replaces typed word). */
.confirm-row { display: flex; align-items: center; gap: 8px; margin: 10px 0 0;
  color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: 0;
  text-transform: none; cursor: pointer; }
.confirm-row input { width: auto; }

.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
  padding: 10px 12px; border-radius: var(--r-control); margin: 10px 0; }
.notice { background: var(--accent-50); border: 1px solid #f5d9c8; color: var(--accent-700);
  padding: 10px 12px; border-radius: var(--r-control); margin: 10px 0; }

.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.qr-grid .card { text-align: center; }
.qr-grid img { width: 100%; max-width: 150px; height: auto; }
.qr-brand { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 8px; }
.qr-brand img { width: 16px; height: 16px; max-width: 16px; display: block; }
.qr-brand span { font-family: var(--font-serif); font-weight: 600; font-size: 12px; color: var(--muted); }
.qr-actions { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* Fullscreen display: waiter shows a single code on their phone. */
.qr-fs { position: fixed; inset: 0; z-index: 1000; background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
/* `display:flex` above would otherwise beat the UA [hidden] rule and leave the
   overlay covering (and swallowing clicks on) the page while "hidden". */
.qr-fs[hidden] { display: none; }
.qr-fs-inner { text-align: center; padding: 20px; }
.qr-fs-inner img { width: min(80vw, 70vh); max-width: 520px; height: auto; }
.qr-fs-label { font-family: var(--font-serif); font-weight: 600; font-size: 22px; margin-top: 14px; color: var(--text); }
.qr-fs .btn { margin-top: 18px; }

/* Print a single QR code (per-card "Drucken"): show only the target card. */
@media print {
  body[data-print] .sidebar,
  body[data-print] .owner-main > *:not(.qr-grid),
  body[data-print] footer,
  body[data-print] #popup,
  body[data-print] #qr-fs,
  body[data-print] .qr-card .qr-actions,
  body[data-print] .qr-card a { display: none !important; }
  body[data-print] .owner-shell { display: block; }
  body[data-print] .qr-grid { display: block; }
  body[data-print] .qr-grid .card:not(.print-target) { display: none !important; }
  body[data-print] .qr-card.print-target { border: 0; box-shadow: none; page-break-inside: avoid; }
  body[data-print] .qr-card.print-target .qr-img { width: 70mm; max-width: 70mm; }
}

/* Dimmer backdrop + lift so the overlay reads clearly without growing in size. */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.68);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal { background: #fff; border-radius: var(--r-card); padding: 18px; max-width: 460px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.popup-body { white-space: pre-wrap; background: var(--surface-2); padding: 10px;
  border-radius: var(--r-control); font: 13px/1.5 ui-monospace, Menlo, monospace; }

.sold-out { opacity: .55; }
.price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ============================================================================
   Owner workspace — left-sidebar shell (light, paper-warm). body.owner-app
   ============================================================================ */
body.owner-app .container { max-width: 1180px; padding: 0; }
.owner-shell { display: flex; min-height: 100vh; align-items: stretch; }
.sidebar { width: 220px; flex: none; background: #fbf9f6; border-right: 1px solid var(--line);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 18px; }
.brand-mark { width: 28px; height: 28px; display: block; object-fit: contain; flex: none; }
.brand-name { font-weight: 700; font-size: 15px; }
.sidebar a { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 11px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 500; }
.sidebar a:hover { background: var(--surface-2); color: var(--text); }
.sidebar a.active { background: var(--accent-50); color: var(--accent-700); font-weight: 600; }
.sidebar a.brand-link { justify-content: flex-start; gap: 9px; padding: 0; color: inherit; font-size: inherit; font-weight: inherit; }
.sidebar a.brand-link:hover { background: transparent; opacity: .82; }
.sidebar .count { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: var(--r-pill); padding: 1px 8px; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
.owner-main { flex: 1; min-width: 0; padding: 26px 28px 40px; }
.owner-head { display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.owner-head h1 { font-family: var(--font-serif); font-weight: 500; font-size: 28px; margin: 0; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat .stat-k { font-size: 12px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; }
.stat .stat-v { font-size: 30px; font-weight: 700; margin-top: 6px; }
.stat.accent { background: var(--accent-50); border-color: #f5c4a6; }
.stat.accent .stat-k, .stat.accent .stat-v { color: var(--accent-700); }

/* Order rows + status left-edge accent (dashboard active list + board cards) */
.order-row { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: 11px; padding: 13px 16px; display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; }
.order-row.status-pending { border-left-color: #d97706; }
.order-row.status-accepted { border-left-color: #2563eb; }
.order-row.status-abholbereit { border-left-color: #0d9488; }
.order-row.status-in_delivery { border-left-color: #16a34a; }
.order-row.status-done { border-left-color: #78716c; }

/* Orders board — 4-column status pipeline */
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
.board-col h3 { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  margin: 0 0 10px; }
.board-col h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.board-col.pending h3::before { background: #d97706; }
.board-col.accepted h3::before { background: #2563eb; }
.board-col.abholbereit h3::before { background: #0d9488; }
.board-col.in_delivery h3::before { background: #16a34a; }
.board-col.done h3::before { background: #78716c; }
.board-drop { background: var(--surface-2); border: 1px dashed #e0d9cf; border-radius: 12px;
  min-height: 80px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }

/* Owner order card (kept full-featured: items, advance buttons, messages) */
.card.status-pending { border-left: 4px solid #d97706; }
.card.status-accepted { border-left: 4px solid #2563eb; }
.card.status-abholbereit { border-left: 4px solid #0d9488; }
.card.status-in_delivery { border-left: 4px solid #16a34a; }
.card.status-done { border-left: 4px solid #78716c; }

/* Menu-management availability toggle (visual switch via existing toggle form) */
.switch { display: inline-flex; width: 40px; height: 23px; border-radius: var(--r-pill);
  background: var(--accent); position: relative; border: 0; cursor: pointer; flex: none;
  transition: background .15s; padding: 0; }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 19px; height: 19px;
  border-radius: 50%; background: #fff; transition: left .15s, right .15s; }
.switch.off { background: #d6cec3; }
.switch.off::after { right: auto; left: 2px; }

/* Debug version footer (every page). */
.app-version { padding: 16px; text-align: center; color: var(--muted); font-size: 12px; }

/* Guest menu: collapsible categories + filter. */
details.cat { margin: 16px 0 0; }
details.cat > summary { list-style: none; cursor: pointer; font-size: 18px; font-weight: 600;
  line-height: 1.25; padding: 6px 0; display: flex; align-items: center; gap: 8px; }
details.cat > summary::-webkit-details-marker { display: none; }
details.cat > summary::before { content: "\25B8"; color: var(--muted); font-size: 14px;
  transition: transform .15s; }
details.cat[open] > summary::before { transform: rotate(90deg); }
.search-input { margin-bottom: 8px; }

/* Owner menu: each category is a visually separated block (own card + accent
   top edge) so neighbouring categories read as distinct groups. */
.cat-block { margin: 26px 0 0; padding: 4px 16px 18px; border: 1px solid var(--line);
  border-top: 3px solid var(--accent); border-radius: 14px; background: #fbf9f6;
  box-shadow: 0 1px 2px rgba(0,0,0,.03); }

/* Category name: centered, serif, clearly set apart from item names by an
   underline rule and its own action row. */
.cat-head { text-align: center; margin: 6px 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line); }
.cat-title { font-family: var(--font-serif); font-size: 27px; font-weight: 600;
  letter-spacing: .01em; margin: 0; }
.cat-del { margin-top: 8px; }

/* Collapsible item cards (default collapsed). */
details.item-card > summary { list-style: none; cursor: pointer; display: flex;
  align-items: center; gap: 10px; font-weight: 600; }
details.item-card > summary::-webkit-details-marker { display: none; }
/* Larger, accent-coloured disclosure arrow for at-a-glance visibility. */
details.item-card > summary::before,
details.newitem > summary::before { content: "\25B8"; color: var(--accent);
  font-size: 22px; line-height: 1; flex: none; transition: transform .15s; }
details.item-card[open] > summary::before,
details.newitem[open] > summary::before { transform: rotate(90deg); }
details.item-card > summary .item-price { margin-left: auto; font-weight: 400; }

/* Collapsed "new item" panel — same disclosure affordance as item cards. */
details.newitem > summary { list-style: none; cursor: pointer; display: flex;
  align-items: center; gap: 10px; }
details.newitem > summary::-webkit-details-marker { display: none; }

/* Owner-side net/VAT read-out under the gross price. */
.vat-line { margin: 4px 0 2px; }
.vat-note { color: var(--muted); }

/* Contained-VAT breakdown at checkout (guest summary + receipt). */
.vat-summary { list-style: none; padding: 0; margin: 6px 0 0; line-height: 1.5; }
.vat-summary .vat-net { opacity: .75; }

/* ============================================================================
   Guest menu — dark, warm-charcoal, mobile-first (body.theme-dark)
   ============================================================================ */
body.theme-dark {
  /* Warm charcoal so terracotta + food photos read warm (design system note). */
  --bg: #181613; --card: #221f1b; --line: #3a342c; --muted: #b3a89c; --text: #f4f1ea;
  --surface-2: #2b2722;
}

/* Dark overrides for shared components */
.theme-dark input[type=text], .theme-dark input[type=email], .theme-dark input[type=number],
.theme-dark textarea, .theme-dark select {
  background: var(--surface-2); color: var(--text); border-color: var(--line); }
.theme-dark label { color: var(--muted); }
.theme-dark .btn.secondary { background: transparent; color: var(--text); border-color: #4a443b; }
.theme-dark .btn.secondary:hover { background: var(--surface-2); }
.theme-dark .modal { background: var(--card); color: var(--text); border: 1px solid var(--line); }

/* Header */
.gm-brand { display: flex; align-items: center; gap: 7px; padding-top: 8px; }
.gm-brand img { width: 22px; height: 22px; display: block; flex: none; }
.gm-brand span { font-family: var(--font-serif); font-weight: 600; font-size: 14px; letter-spacing: -.01em; color: var(--muted); }
.live-dot { color: #16a34a; display: inline-block; animation: live-pulse 1.8s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.gm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 6px; }
.gm-head h1 { font-size: 30px; margin: 0 0 2px; }
.table-pill { flex: 0 0 auto; background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 6px 12px; font-size: 13px; white-space: nowrap; }

/* Search + integrated filter toggle */
.gm-search { display: flex; align-items: center; gap: 8px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 6px 4px 16px; margin: 16px 0 10px; }
.gm-search-ic { color: var(--muted); display: inline-flex; flex: none; }
.gm-search-ic svg { width: 18px; height: 18px; }
.gm-search input { flex: 1; min-width: 0; }
.theme-dark .gm-search input { border: 0; background: transparent; color: var(--text);
  padding: 12px 0; width: 100%; outline: none; box-shadow: none; }
.gm-search input::placeholder { color: var(--muted); }
/* Prominent filter pill living inside the search field. */
.gm-filter-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; cursor: pointer;
  border: 0; font: inherit; font-weight: 600; font-size: 13px; color: #fff; background: var(--accent);
  border-radius: var(--r-pill); padding: 9px 14px; transition: background .12s ease; }
.gm-filter-btn:hover, .gm-filter-btn.open { background: var(--accent-700); }
.gm-filter-btn svg { width: 16px; height: 16px; }
.gm-filter-btn .filter-badge { background: #fff; color: var(--accent-700); border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; min-width: 17px; height: 17px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center; }
/* The explicit display above would otherwise defeat the `hidden` attribute. */
.gm-filter-btn .filter-badge[hidden] { display: none; }
.filter-panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 12px 14px; margin: 0 0 12px; }
.filter-panel[hidden] { display: none; }

/* Category rail */
.cat-rail { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 2px 12px; }
.cat { flex: 0 0 auto; width: 92px; height: 84px; border-radius: var(--r-card); background: var(--card);
  border: 1px solid var(--line); color: var(--text); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease, background .12s ease; }
.cat:hover { transform: translateY(-2px); }
.cat .cat-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.cat .cat-ic svg { width: 22px; height: 22px; }
.cat .cat-name { font-size: 12.5px; color: var(--muted); max-width: 84px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.cat.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.cat.selected .cat-ic { background: rgba(255,255,255,.18); color: #fff; }
.cat.selected .cat-name { color: #fff; font-weight: 600; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 12px 2px 12px; gap: 10px; }
.sec-head h2 { font-size: 22px; margin: 0; }

/* Dish list — vertical, photo-forward (design "Direction A") */
.menu-list { display: flex; flex-direction: column; gap: 16px; padding: 2px 0 14px; }
.dish { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform .12s ease, border-color .12s ease; }
.dish:hover { transform: translateY(-3px); border-color: #4a443b; }
.dish:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dish-img { position: relative; height: 200px; background-size: cover; background-position: center;
  background-image: linear-gradient(var(--ang, 135deg), #3a2a22, #181513);
  display: flex; align-items: center; justify-content: center; }
.dish-mono { display: flex; align-items: baseline; gap: 4px; color: rgba(244,241,234,.16); }
.dish-mono-logo { font-family: var(--font-serif); font-size: 64px; font-weight: 700; }
.dish-mono-num { font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: rgba(244,241,234,.28); }
.dish-out { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff;
  font-size: 12px; padding: 4px 9px; border-radius: var(--r-pill); }
.dish.out { opacity: .62; }
.dish-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish-headrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dish-name { font-family: var(--font-serif); font-size: 22px; font-weight: 600; margin: 0; line-height: 1.1; }
.dish-price { flex: none; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  padding: 6px 13px; border-radius: var(--r-pill); white-space: nowrap; }
.dish-desc { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--muted);
  margin: 0; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dish-allergens { color: var(--muted); font-size: 11.5px; margin: 0; }
.dish-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center;
  justify-content: space-between; border-top: 1px solid var(--line); }
.dish-plus { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; }

/* Docked cart */
.cartbar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line);
  padding: 12px 0; margin-top: 16px; }
.theme-dark .cartbar { position: sticky; bottom: 12px; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 10px 12px; margin-top: 10px; box-shadow: 0 10px 34px rgba(0,0,0,.55); }
#cart-summary { background: transparent; border: 0; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
#cart-summary:disabled { color: var(--muted); cursor: default; }

.creator-credit { border: 1px dashed var(--accent); border-radius: var(--r-control); padding: 12px;
  margin-top: 14px; background: var(--accent-50); }
.promo-tagline { text-align: center; margin: 12px 0 0; font-style: italic; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 10px 0; }
.timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Add buttons (cards/detail) */
.btn-add { background: var(--accent); color: #fff; border: 0; border-radius: var(--r-control); padding: 12px 16px;
  font: inherit; font-weight: 700; cursor: pointer; }
.btn-add:hover { background: var(--accent-700); }
.btn-add.big { width: 100%; padding: 14px; border-radius: var(--r-pill); font-size: 15px; }

/* Item detail modal */
.dish-modal { position: relative; max-width: 420px; text-align: center; }
.modal-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; background: transparent; border: 0;
  color: var(--muted); font-size: 20px; cursor: pointer; border-radius: 50%; }
.theme-dark .btn.small { min-height: 40px; }
.dish-modal-img { width: 132px; height: 132px; border-radius: 50%; margin: 6px auto 14px;
  background-size: cover; background-position: center; background-image: linear-gradient(135deg, #3a2a22, #181513);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.dish-modal-img .dish-mono-logo { font-size: 50px; }
.dish-modal-img .dish-mono-num { font-size: 24px; }
.d-name { font-family: var(--font-serif); font-size: 24px; font-weight: 600; margin: 0 0 6px; }
.d-underline { width: 64px; height: 3px; background: var(--accent); border-radius: 2px; margin: 0 auto 12px; }
.d-desc { margin: 0 0 14px; font-size: 14px; }
.d-specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; text-align: left; margin: 0 0 16px; }
.d-specs dt { color: var(--muted); font-size: 13px; }
.d-specs dd { margin: 0; font-size: 13px; }
.d-buy { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.d-buy .dish-variant { width: auto; }
.qtybox { display: flex; align-items: center; gap: 12px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 8px; }
.qtybox button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.qtybox button:last-child { background: var(--accent); color: #fff; border-color: var(--accent); }
#d-qty { min-width: 18px; text-align: center; font-weight: 700; }

@media (max-width: 760px) {
  .owner-shell { flex-direction: column; }
  .sidebar { width: auto; flex-direction: row; flex-wrap: wrap; align-items: center;
    border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; }
  .sidebar-brand { padding: 0 8px 0 0; }
  .sidebar-foot { margin-top: 0; padding-top: 0; border-top: 0; flex-direction: row; align-items: center; }
  .owner-main { padding: 18px 16px 32px; }
  .stats { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cat, .dish, .btn { transition: none; } }
