/* =============================================================
   Touch Pizzeria — Menu styles
   Mobile-first, scales up. Warm cream + burgundy palette.
   ============================================================= */

:root {
  --bg:           #F5EFE0;
  --bg-soft:      #ECE3CE;
  --paper:       #FBF5E6;
  --ink:          #2A1A12;
  --ink-soft:    #5A3F32;
  --muted:        #8A6E5E;
  --line:         #E2D4B7;
  --line-soft:    #EFE4C9;
  --accent:       #6B1B26;
  --accent-dk:    #4F1019;
  --accent-soft:  #B43A48;
  --gold:         #B7873C;
  --gold-soft:    #D2A964;
  --shadow:       0 10px 30px rgba(60, 25, 15, 0.10);
  --shadow-lg:    0 24px 60px rgba(60, 25, 15, 0.20);
  --radius-sm:    10px;
  --radius:       18px;
  --radius-lg:    26px;
  --tabbar-h:     68px;
  --header-h:     58px;
  --subnav-h:     50px;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-soft);
  background-image:
    radial-gradient(1100px 600px at 50% -10%, #FBF5E6 0%, var(--bg) 55%, var(--bg-soft) 100%);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overscroll-behavior: none;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* === Splash === */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--accent);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.splash--hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash__logo {
  font-family: var(--font-display);
  font-size: 64px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}
.splash__sub {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* === Header === */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 14px;
  background: rgba(245, 239, 224, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  padding-top: env(safe-area-inset-top);
  height: calc(var(--header-h) + env(safe-area-inset-top));
}

.lang-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  transition: background 0.2s;
}
.lang-trigger:active { background: var(--bg-soft); }
.lang-trigger__code { line-height: 1; }

.header__logo {
  justify-self: center;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  color: var(--accent);
  max-height: calc(var(--header-h) - 14px);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.header__logo[data-visible] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.header__logo img {
  max-height: calc(var(--header-h) - 16px);
  max-width: 140px;
  width: auto; height: auto;
  object-fit: contain;
  display: none;
}
.header__logo img[src] { display: block; }
.header__logo img[src] + .header__logo-text { display: none; }
.header__logo-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
}

.menu-trigger {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.menu-trigger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.menu-trigger span:nth-child(2) { width: 12px; }

/* === Language dropdown === */
.lang-dropdown {
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top) + 8px);
  left: 12px;
  z-index: 200;
  min-width: 180px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.lang-dropdown[data-open] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-dropdown button {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  text-align: left;
  color: var(--ink);
}
.lang-dropdown button:hover { background: var(--bg); }
.lang-dropdown button[data-active] { color: var(--accent); font-weight: 600; }
.lang-dropdown__flag {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  width: 22px;
  text-align: center;
  /* Force colorful emoji rendering where supported (Win/Linux fallback may be 2-letter code). */
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', sans-serif;
}
.lang-dropdown__name { flex: 1; }
.lang-dropdown__check {
  flex: 0 0 auto;
  width: 16px;
  color: var(--accent);
  opacity: 0;
}
.lang-dropdown button[data-active] .lang-dropdown__check { opacity: 1; }
.lang-trigger__flag {
  font-size: 16px;
  line-height: 1;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', sans-serif;
}

/* === Sticky subnav === */
.subnav {
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top));
  z-index: 90;
  background: rgba(245, 239, 224, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.subnav__scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 14px 12px;
  scrollbar-width: none;
}
.subnav__scroll::-webkit-scrollbar { display: none; }
.subnav__chip {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.subnav__chip:hover {
  border-color: var(--gold-soft);
}
.subnav__chip[data-active] {
  background: linear-gradient(180deg, var(--accent), var(--accent-dk));
  color: var(--paper);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(107, 27, 38, 0.32);
}

/* === Hero === */
.hero {
  padding: 22px 18px 14px;
  text-align: center;
}
.hero__welcome {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  opacity: 0.9;
}
.hero__welcome::before,
.hero__welcome::after {
  content: '·';
  color: var(--gold);
  margin: 0 10px;
  opacity: 0.7;
}
.hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
}
.hero__title::after {
  content: '';
  display: block;
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 14px auto 0;
}
.hero__tag {
  font-size: 13px;
  color: var(--muted);
  margin: 12px auto 0;
  max-width: 28ch;
}

/* === Sections === */
.section {
  padding: 18px 14px 4px;
  scroll-margin-top: calc(var(--header-h) + var(--subnav-h) + 12px);
}
.section__title {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  margin: 14px 4px 18px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.section__title::before,
.section__title::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 40%, var(--gold) 60%, var(--gold-soft) 100%);
  opacity: 0.75;
}
.section__title::after {
  background: linear-gradient(90deg, var(--gold-soft) 0%, var(--gold) 40%, var(--gold-soft) 60%, transparent);
}
.section__title-text {
  flex: 0 0 auto;
  position: relative;
  padding-bottom: 6px;
}
.section__title-text::after {
  content: '✦';
  position: absolute;
  left: 50%; bottom: -10px;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--gold);
  opacity: 0.7;
}

@media (min-width: 640px) {
  .section__title { font-size: 30px; }
  .section__title::before,
  .section__title::after { max-width: 120px; }
}

/* === Grid === */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* === Item card === */
.card {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:active { transform: scale(0.985); box-shadow: 0 4px 14px rgba(60,25,15,0.10); }

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #EFE4C9, #E2D4B7);
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card__media--empty::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 50%),
    linear-gradient(135deg, #EFE4C9, #D8C28F);
}
.card__media--empty::before {
  content: '';
  position: absolute; inset: 25%;
  background:
    radial-gradient(circle at 35% 35%, var(--gold-soft) 0 6%, transparent 7%),
    radial-gradient(circle at 65% 50%, var(--accent-soft) 0 5%, transparent 6%),
    radial-gradient(circle at 45% 70%, var(--gold) 0 4%, transparent 5%);
  opacity: 0.45;
  z-index: 1;
}

.card__body {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
.card__name {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__desc {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.card__weight {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.card__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
}
.card--stopped { opacity: 0.55; }
.card--stopped .card__media::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(42, 26, 18, 0.5);
}

/* Simple variant (drinks / bar): no image, no click-open, ingredients inline */
.card--simple {
  grid-template-columns: 1fr;
  cursor: default;
}
.card--simple:active {
  transform: none;
  box-shadow: var(--shadow);
}
.card--simple .card__body {
  padding: 14px 16px 13px;
}
.card__ingredients {
  font-size: 12.5px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}
.card__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 3;
}

/* === Group card (collapsible variants) === */
.card--group {
  cursor: pointer;
}
.card--group:active {
  transform: none;
  box-shadow: var(--shadow);
}
.card--group .card__row {
  align-items: center;
}
.card--group .card__name::after {
  content: '…';
  color: var(--muted);
  font-weight: 400;
}
.card__expand-btn {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(107, 27, 38, 0.10);
  border: 1px solid rgba(107, 27, 38, 0.15);
  color: var(--accent);
  transition: background 0.2s;
}
.card__expand-btn:hover { background: rgba(107, 27, 38, 0.18); }
.card__expand-icon {
  width: 18px; height: 18px;
  display: block;
  transition: transform 0.25s ease;
}
.card--group[data-expanded] .card__expand-icon {
  transform: rotate(180deg);
}
.card__variants {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid transparent;
}
.card--group[data-expanded] .card__variants {
  max-height: 600px;
  border-top-color: var(--line-soft);
}
.card__variant {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.card__variant:last-child { border-bottom: none; }
.card__variant--stopped { opacity: 0.55; }
.card__variant-name {
  font-size: 14px;
  color: var(--ink);
  flex: 1;
  line-height: 1.35;
}
.card__variant-meta {
  display: flex; align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
}
.card__variant-meta .card__price {
  font-size: 15px;
}

.empty-state {
  margin: 4px 4px 12px;
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13.5px;
  background: rgba(251, 245, 230, 0.5);
}

/* === Thanks / Review block === */
.thanks {
  margin: 40px 14px 8px;
  padding: 36px 24px 32px;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(183, 135, 60, 0.10), transparent),
    linear-gradient(180deg, var(--paper), #F4E9CC);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.thanks::before {
  content: '✦';
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  color: var(--gold);
  font-size: 18px;
  opacity: 0.6;
}
.thanks__eyebrow {
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 14px 0 10px;
}
.thanks__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  color: var(--accent);
  margin: 0 0 8px;
}
.thanks__text {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 36ch;
  margin: 0 auto 22px;
  line-height: 1.55;
}
.thanks__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(107, 27, 38, 0.28);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.thanks__cta:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(107, 27, 38, 0.35);
}
.thanks__cta:active { transform: translateY(0); }
.thanks__cta svg { width: 18px; height: 18px; }
.thanks__stars {
  display: inline-flex; gap: 3px;
  color: var(--gold);
  font-size: 17px;
  margin-bottom: 4px;
}

@media (min-width: 640px) {
  .thanks { margin: 50px 22px 12px; padding: 48px 32px 40px; }
  .thanks__title { font-size: 40px; }
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 36px 16px 24px;
  color: var(--muted);
}
.footer__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--accent);
}
.footer__sub {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* === Bottom tab bar === */
.tabbar {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 120;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(42, 26, 18, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--paper);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.06);
}
.tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(245, 239, 224, 0.7);
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}
.tab[data-active] {
  background: var(--paper);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.tab svg { width: 16px; height: 16px; }

/* === Side drawer === */
.drawer {
  position: fixed; inset: 0;
  z-index: 300;
  pointer-events: none;
}
.drawer[data-open] { pointer-events: auto; }
.drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(42, 26, 18, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer[data-open] .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(86vw, 360px);
  height: 100%;
  background: linear-gradient(180deg, var(--paper), var(--bg));
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  padding-top: calc(22px + env(safe-area-inset-top));
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.drawer[data-open] .drawer__panel { transform: translateX(0); }
.drawer__close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top)); right: 14px;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(0,0,0,0.04);
  display: grid; place-items: center;
  color: var(--ink);
  z-index: 5;
}
.drawer__close:hover { background: rgba(0,0,0,0.08); }
.drawer__brand {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
  padding-bottom: 18px;
  position: relative;
}
.drawer__brand::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 50px; height: 2px;
  background: var(--gold);
}
.drawer__brand img {
  max-height: 56px; max-width: 120px; object-fit: contain;
  display: none;
}
.drawer__brand img[src] { display: block; }
.drawer__brand img[src] + span { display: none; }
.drawer__brand small {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.drawer__nav {
  display: flex; flex-direction: column;
  gap: 4px;
}
.drawer__nav button {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  transition: background 0.2s;
}
.drawer__nav button:hover,
.drawer__nav button:active { background: rgba(107, 27, 38, 0.08); }
.drawer__nav button svg {
  width: 20px; height: 20px;
  color: var(--accent);
  flex: 0 0 auto;
}
.drawer__nav .drawer__divider {
  display: flex; align-items: center;
  gap: 10px;
  margin: 14px 6px;
  color: var(--gold);
}
.drawer__nav .drawer__divider::before,
.drawer__nav .drawer__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.drawer__nav .drawer__divider span {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.drawer__ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  margin: 22px 0 4px;
  color: var(--gold);
}
.drawer__ornament::before,
.drawer__ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}
.drawer__ornament-mark {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.drawer__tagline {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  margin: 4px 0 18px;
  letter-spacing: 0.02em;
}

.drawer__info {
  display: flex; flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.drawer__info-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(107, 27, 38, 0.04);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--ink);
  font-size: 13.5px;
}
.drawer__info-row svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex: 0 0 auto;
}
.drawer__info-row span { line-height: 1.4; }
.drawer__info-row small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.drawer__socials {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 8px;
}
.drawer__socials a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s;
}
.drawer__socials a:hover { background: var(--accent-dk); }
.drawer__socials a svg { width: 15px; height: 15px; }

.drawer__copyright {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* === Modal (item detail) === */
.modal {
  position: fixed; inset: 0;
  z-index: 400;
  pointer-events: none;
}
.modal[data-open] { pointer-events: auto; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(42, 26, 18, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal[data-open] .modal__backdrop { opacity: 1; }
.modal__sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(101%);
  width: min(100%, 540px);
  max-height: 92vh;
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  overflow-y: auto;
  visibility: hidden;
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.36s;
  box-shadow: var(--shadow-lg);
}
.modal[data-open] .modal__sheet {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: var(--paper);
  display: grid; place-items: center;
  z-index: 5;
}
.modal__hero {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #EFE4C9, #D8C28F);
  overflow: hidden;
}
.modal__hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.modal__hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35));
  pointer-events: none;
  z-index: 1;
}
.modal__body {
  padding: 22px 22px 32px;
  position: relative;
}
.modal__body::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 4px;
  border-radius: 4px;
  background: var(--line);
}
.modal__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin: 4px 0 6px;
  line-height: 1.15;
  color: var(--ink);
}
.modal__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.modal__row:last-child { border-bottom: none; }
.modal__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.modal__price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
}
.modal__weight {
  font-size: 14px;
  color: var(--ink-soft);
}
.modal__block {
  padding-top: 14px;
}
.modal__block-title {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.modal__block-text {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.modal__allergens {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.modal__allergens span {
  padding: 5px 10px;
  background: rgba(107, 27, 38, 0.08);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
}

/* === Page overlay (about / contact) === */
.page {
  position: fixed; inset: 0;
  z-index: 350;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.page[data-open] { transform: translateX(0); }
.page__header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px;
  padding-top: calc(14px + env(safe-area-inset-top));
  background: rgba(245, 239, 224, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.page__back {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.page__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  margin: 0;
  color: var(--accent);
}
.page__body {
  padding: 28px 22px 80px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.page__body :is(h1, h2, h3) {
  font-family: var(--font-display);
  color: var(--ink);
}
.page__body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.page__body--empty {
  text-align: center;
  color: var(--muted);
  padding-top: 80px;
}
.page__body--empty p { max-width: 32ch; margin: 0 auto; }

.contact-list {
  display: grid; gap: 10px;
  margin-top: 8px;
}
.contact-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--shadow);
}
.contact-list a svg {
  width: 22px; height: 22px;
  color: var(--accent);
  flex: 0 0 auto;
}
.contact-list small {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ========== Tablet ========== */
@media (min-width: 640px) {
  :root { --header-h: 64px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card { grid-template-columns: 130px 1fr; }
  .hero__title { font-size: 72px; }
  .section { padding: 22px 22px 6px; }
  .section__title { font-size: 28px; }
  .header { padding: 0 22px; }
}

/* ========== Desktop ========== */
@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  body {
    padding-bottom: calc(var(--tabbar-h) + 20px);
  }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .card { grid-template-columns: 1fr; }
  .card__media { aspect-ratio: 4 / 3; }
  .card__body { padding: 18px 18px 16px; }
  .card__name { font-size: 20px; }
  .card__desc { font-size: 13.5px; }
  .hero { padding: 50px 22px 28px; }
  .hero__title { font-size: 92px; }
  .section { padding: 30px 32px 8px; max-width: 1280px; margin: 0 auto; }
  .header__logo-text { font-size: 32px; }
  .modal__sheet { border-radius: 28px; bottom: auto; top: 50%; transform: translateX(-50%) translateY(-50%) scale(0.96); max-height: 90vh; }
  .modal[data-open] .modal__sheet { transform: translateX(-50%) translateY(-50%) scale(1); }
  .modal__hero { aspect-ratio: 16 / 9; }
  .subnav__scroll { max-width: 1280px; margin: 0 auto; padding: 12px 22px; }
  #menuRoot { max-width: 1280px; margin: 0 auto; }
}

@media (min-width: 1280px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

/* === Loading state === */
.loading-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 999;
  transition: width 0.3s ease, opacity 0.4s ease;
}
.loading-bar--active { width: 75%; }
.loading-bar--done { width: 100%; opacity: 0; }

/* === Reduce motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
