﻿:root {
  --primary-color: #0ea5e9;
  --secondary-color: #111827;
  --hero-text: #ffffff;
  --hero-subtext: rgba(255, 255, 255, 0.9);
  --restaurant-bg: #f4f6fb;
  --page-bg-image: none;
  --page-bg-overlay: rgba(255, 255, 255, 0.78);
  --bg: #f4f6fb;
  --surface: #f8fbff;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #64748b;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 6px 14px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.26);
  --border: #dbe5ee;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(var(--page-bg-overlay), var(--page-bg-overlay)),
    var(--page-bg-image),
    radial-gradient(750px 280px at 8% -10%, rgba(37, 99, 235, 0.16) 0%, transparent 60%),
    radial-gradient(740px 250px at 92% -12%, rgba(14, 165, 233, 0.14) 0%, transparent 60%),
    var(--restaurant-bg);
  background-size: auto, cover, auto, auto, auto;
  background-position: center, center, center, center, center;
  background-attachment: fixed;
  padding-bottom: var(--safe-bottom);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(#0f172a 0.55px, transparent 0.55px);
  background-size: 4px 4px;
}

.menu-app {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: calc(12px + var(--safe-top)) calc(10px + var(--safe-right)) calc(28px + var(--safe-bottom)) calc(10px + var(--safe-left));
  position: relative;
}

.hero {
  position: sticky;
  top: 0;
  z-index: 24;
  border-radius: 0 0 22px 22px;
  padding: calc(14px + (var(--safe-top) * 0.15)) 14px 14px;
  color: var(--hero-text);
  background: var(--secondary-color);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(6px);
}

.hero-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.hero-logo {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  border: 3px solid rgba(255, 255, 255, 0.82);
  background: #fff;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.35);
}

.hero-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.85px;
  text-transform: uppercase;
  opacity: 0.9;
  font-weight: 700;
}

h1 {
  margin: 4px 0 2px;
  line-height: 1.08;
  font-size: clamp(1.35rem, 6vw, 1.9rem);
  font-weight: 800;
}

.hero-subline {
  margin: 0;
  font-size: 0.88rem;
  color: var(--hero-subtext);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(134, 239, 172, 0.34);
  color: #dcfce7;
  font-weight: 800;
  font-size: 0.85rem;
}

.action-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.15);
}

button.action-btn {
  font-family: inherit;
  cursor: pointer;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.2);
}

.action-btn:active {
  transform: scale(0.985);
}

.action-btn:focus-visible,
.chip:focus-visible,
.search-input:focus-visible,
.switch input:focus-visible,
.clear-search:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.34);
}

.surface {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid #e5ecf5;
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.surface-controls {
  position: relative;
  z-index: 15;
}

.surface-menu-list {
  position: relative;
  z-index: 1;
}

.info-page {
  display: grid;
  gap: 14px;
}

.section-plain {
  padding: 14px 0 0;
}

.rich-copy {
  color: #334155;
  line-height: 1.7;
  white-space: normal;
}

.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-post-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.blog-post-media-link {
  display: block;
  background: #eef2f7;
}

.blog-post-image {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #eef2f7;
}

.blog-post-body {
  padding: 16px;
}

.tools {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.search-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.95rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0 44px 0 34px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}

.search-input::placeholder {
  color: #94a3b8;
}

.clear-search {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid #dbe5ee;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
}

.clear-search[hidden] {
  display: none !important;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 600;
  white-space: nowrap;
}

.switch input {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  border: 1px solid #94a3b8;
  cursor: pointer;
  transition: background 0.2s ease;
}

.switch input::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.switch input:checked {
  background: color-mix(in srgb, var(--primary-color) 72%, #fff 28%);
  border-color: var(--primary-color);
}

.switch input:checked::after {
  transform: translateX(20px);
}

.result-count {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.chipbar-wrap {
  position: sticky;
  top: 194px;
  z-index: 22;
  margin-top: 12px;
  border-radius: 12px;
  background: linear-gradient(to bottom, rgba(249, 251, 255, 0.9), rgba(249, 251, 255, 0.75));
  backdrop-filter: blur(9px);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.chipgrid-wrap {
  display: none;
  margin-top: 12px;
  gap: 8px;
}

.chipbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 9px 10px 7px;
}

.chipbar-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  pointer-events: none;
  z-index: 1;
}

.chipbar-fade.left {
  left: 0;
  background: linear-gradient(to right, rgba(248, 251, 255, 0.95), transparent);
}

.chipbar-fade.right {
  right: 0;
  background: linear-gradient(to left, rgba(248, 251, 255, 0.95), transparent);
}

.chip {
  appearance: none;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 12px;
  line-height: 1.2;
  transition: all 0.18s ease;
  cursor: pointer;
  font-family: inherit;
}

.chip.active {
  color: #fff;
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--primary-color) 30%, transparent 70%);
}

.chip.alt {
  background: color-mix(in srgb, var(--primary-color) 16%, #fff 84%);
  border-color: color-mix(in srgb, var(--primary-color) 45%, #cbd5e1 55%);
}

.section {
  margin-top: 16px;
  scroll-margin-top: 290px;
}

.section h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: #0b1220;
  font-weight: 800;
}

.dish-card {
  display: grid;
  grid-template-columns: 98px 1fr auto;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-md);
  border: 1px solid #e4eaf1;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: 10px;
  margin-bottom: 10px;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.dish-card:hover {
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.13);
}

.dish-card:active {
  transform: scale(0.985);
}

.media {
  width: 98px;
  height: 98px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dce5ef;
  background: #eef2f7;
  aspect-ratio: 1 / 1;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s ease;
}

.dish-card:hover .media img {
  transform: scale(1.04);
}

.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e5e7eb 20%, #f8fafc 40%, #e5e7eb 60%);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.media-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 1.2rem;
}

.dish-main h3 {
  margin: 0;
  font-size: 1rem;
  color: #0b1220;
}

.dish-main p {
  margin: 4px 0 0;
  color: #5f7086;
  font-size: 0.9rem;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pop-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--primary-color) 15%, #fff 85%);
  color: color-mix(in srgb, var(--primary-color) 76%, #0f172a 24%);
}

.home-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #ecfccb;
  color: #3f6212;
}

.price-pill {
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--primary-color);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--primary-color) 24%, transparent 76%);
}

.empty {
  margin-top: 14px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  background: #fff;
  text-align: center;
  padding: 15px;
  color: var(--muted);
}

.to-top {
  position: fixed;
  right: calc(14px + var(--safe-right));
  bottom: calc(14px + var(--safe-bottom));
  z-index: 30;
  min-width: 44px;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--secondary-color);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.toast-root {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 40;
  display: grid;
  gap: 8px;
  width: min(92vw, 420px);
}

.toast {
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  background: #0f172a;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.3);
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 520px) {
  .hero {
    padding: 12px;
  }

  .hero-logo {
    width: 68px;
    height: 68px;
  }

  .tools {
    grid-template-columns: 1fr;
  }

  .chipbar-wrap {
    top: 257px;
  }

  .dish-card {
    grid-template-columns: 76px 1fr;
    grid-template-areas: "media main" "price price";
  }

  .media {
    width: 76px;
    height: 76px;
    grid-area: media;
  }

  .dish-main {
    grid-area: main;
  }

  .price-pill {
    grid-area: price;
    justify-self: start;
    margin-top: 2px;
  }
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }
}

@media (max-width: 720px) {
  .menu-app {
    padding-left: calc(8px + var(--safe-left));
    padding-right: calc(8px + var(--safe-right));
  }

  .action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-btn {
    width: 100%;
    justify-content: center;
    min-width: 0;
  }

  .tools {
    grid-template-columns: 1fr;
  }

  .chipbar-wrap {
    top: calc(182px + var(--safe-top));
  }

  .section {
    scroll-margin-top: 250px;
  }

  .dish-sheet {
    padding-bottom: var(--safe-bottom);
  }

  .sheet-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sheet-actions .btn-ghost,
  .sheet-actions .btn-outline,
  .sheet-actions .btn-primary {
    width: 100%;
  }
}

@media (min-width: 721px) {
  .surface {
    position: relative;
    z-index: 1;
    backdrop-filter: none;
    overflow: visible;
  }

  .tools,
  .search-wrap,
  .switch,
  .result-count,
  .chipgrid-wrap {
    position: relative;
    z-index: 90;
    pointer-events: auto;
  }

  .chipgrid-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .chipbar-wrap {
    display: none;
  }

  .chipbar-wrap {
    position: relative;
    top: auto;
    z-index: 80;
    isolation: isolate;
    padding: 0;
    overflow: visible;
    backdrop-filter: none;
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: auto;
  }

  .chipbar {
    display: flex;
    position: relative;
    z-index: 81;
    align-items: center;
    align-content: flex-start;
    overflow-x: visible;
    flex-wrap: wrap;
    padding: 9px 10px 7px;
    gap: 8px;
    pointer-events: auto;
  }

  .chipbar-fade {
    display: none;
  }

  .chip {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 0;
    padding: 8px 12px;
    font-size: 0.84rem;
    position: relative;
    z-index: 82;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
  }
}

@media (max-width: 420px) {
  .action-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .action-btn {
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 18px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.86rem;
    line-height: 1.15;
    text-align: left;
  }

  .action-btn span:first-child {
    width: 16px;
    font-size: 1rem;
  }

  .hero-head {
    grid-template-columns: 62px 1fr;
    gap: 10px;
  }

  .hero-logo {
    width: 62px;
    height: 62px;
  }

  .chipbar-wrap {
    top: calc(206px + var(--safe-top));
  }

  .section {
    scroll-margin-top: 270px;
  }

  .chipbar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 8px 10px 6px;
    -webkit-overflow-scrolling: touch;
  }

  .chipbar-fade {
    display: block;
  }

  .chip {
    width: auto;
    min-width: max-content;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.84rem;
  }
}

body.sheet-open {
  overflow: hidden;
}

body.review-prompt-open {
  overflow: hidden;
}

.review-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 108;
  pointer-events: auto;
  background: rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(3px);
}

.review-prompt-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 109;
  pointer-events: auto;
  width: min(420px, calc(100vw - 28px));
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(247,250,255,.99) 100%);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.22);
  text-align: left;
}

.review-prompt-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-color) 16%, #fff 84%);
  border: 1px solid color-mix(in srgb, var(--primary-color) 38%, #dbe5ee 62%);
  color: color-mix(in srgb, var(--primary-color) 78%, #0f172a 22%);
  font-weight: 800;
  font-size: 0.78rem;
}

.review-prompt-card h3 {
  margin: 12px 0 8px;
  font-size: clamp(1.12rem, 2.8vw, 1.35rem);
  line-height: 1.15;
  color: #0b1220;
}

.review-prompt-card p {
  margin: 0;
  color: #56667d;
  line-height: 1.5;
}

.review-prompt-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.review-prompt-actions .btn-outline,
.review-prompt-actions button,
.review-prompt-actions a {
  min-height: 46px;
  border-radius: 14px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.review-prompt-actions .btn-outline {
  flex: 1 1 45%;
}

.review-prompt-actions button:last-child,
.review-prompt-actions a:last-child {
  flex: 1 1 55%;
  border: 1px solid var(--primary-color);
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--primary-color) 28%, transparent 72%);
}

.dish-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.52);
  z-index: 70;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dish-overlay.show {
  opacity: 1;
}

.dish-sheet {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%);
  width: min(700px, 96vw);
  max-height: 88vh;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #dbe5ee;
  box-shadow: var(--shadow-lg);
  z-index: 72;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dish-sheet.show {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #cbd5e1;
  margin: 10px auto 0;
}

.dish-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.sheet-close {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  font-weight: 700;
}

.dish-sheet-body {
  overflow: auto;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.sheet-top {
  display: grid;
  gap: 10px;
}

.sheet-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  border: 1px solid #dbe5ee;
  background: #ffffff;
}

.sheet-image.empty {
  display: grid;
  place-items: center;
  color: #64748b;
  background: #ffffff;
}

.sheet-main h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.sheet-price {
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 6px;
}

.sheet-desc {
  margin: 0;
  line-height: 1.45;
  color: #334155;
}

.sheet-muted {
  margin: 0;
  color: #64748b;
}

.sheet-block {
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}

.sheet-block h4 {
  margin: 0 0 8px;
}

.allergen-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.allergen-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  padding: 0 9px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.75rem;
}

.supp-group {
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #e5edf5;
  border-radius: 12px;
  background: #fbfdff;
}

.supp-group h4 {
  margin: 0 0 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.req-badge {
  display: inline-flex;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.72rem;
  font-weight: 700;
}

.dish-sheet .supp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 8px 10px;
  margin-bottom: 7px;
  background: #fff;
}

.dish-sheet .supp-input {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  width: auto;
  justify-content: flex-start;
}

.dish-sheet .supp-input span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.dish-sheet .supp-row input {
  margin: 0;
}

.dish-sheet .supp-row input[type="radio"],
.dish-sheet .supp-row input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  flex: 0 0 18px;
  padding: 0;
  border-radius: 4px;
}

.dish-sheet-foot {
  border-top: 1px solid #e2e8f0;
  padding: 10px 14px 14px;
  background: #fff;
}

.sheet-summary,
.sheet-total {
  font-size: 0.88rem;
  color: #475569;
}

.sheet-total {
  font-weight: 700;
  margin-top: 4px;
}

.sheet-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-ghost,
.btn-primary {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 700;
  border: 1px solid #bfdbfe;
}

.btn-ghost {
  background: #eff6ff;
  color: #1d4ed8;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

@media (max-width: 720px) {
  .review-prompt-card {
    width: calc(100vw - 24px);
    padding: 16px;
    border-radius: 18px;
  }

  .review-prompt-actions {
    flex-direction: column;
  }

  .dish-sheet {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: translateY(100%);
    width: 100%;
    max-height: 85vh;
    border-radius: 18px 18px 0 0;
  }

  .dish-sheet.show {
    transform: translateY(0);
  }

  .sheet-image {
    max-height: 220px;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.lang-btn {
  min-height: 34px;
  min-width: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.9);
  color: #0f172a;
  font-weight: 800;
  font-size: .78rem;
  padding: 0 10px;
  cursor: pointer;
}
.lang-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Premium polish v2 */
.chipbar {
  scroll-padding: 10px;
}

.chip {
  font-weight: 700;
  letter-spacing: 0.1px;
  transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.section {
  margin-top: 14px;
  animation: sectionIn .34s ease both;
}

@keyframes sectionIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-title {
  margin: 2px 0 10px;
  font-size: clamp(1.35rem, 3.3vw, 1.7rem);
  letter-spacing: -0.02em;
  color: #0b1220;
}

.dish-card {
  border: 1px solid #dfe8f2;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dish-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.13);
  border-color: #cddced;
}

.dish-card:active {
  transform: scale(.988);
}

.dish-main h3,
.dish-name {
  margin: 0;
  font-size: clamp(1.04rem, 2.6vw, 1.2rem);
  font-weight: 800;
  color: #0b1220;
  line-height: 1.2;
}

.dish-main p,
.dish-desc {
  margin: 6px 0 0;
  color: #56667d;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-pill {
  min-width: 96px;
  text-align: center;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 8px 18px rgba(14, 165, 233, .35);
}

.pop-badge {
  margin-left: 8px;
}

.home-badge {
  margin-left: 8px;
}

.dish-card {
  opacity: 0;
  transform: translateY(10px) scale(.995);
}

.dish-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity .32s ease, transform .32s ease;
}

@media (max-width: 520px) {
  .chip {
    font-size: .93rem;
    padding: 6px 12px;
    min-height: 0;
    line-height: 1.1;
  }

  .category-title {
    font-size: 1.12rem;
    margin: 2px 0 8px;
  }
}

/* === Premium 9.5 Overdrive === */
body {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--restaurant-bg) 72%, #ffffff 28%) 0%, color-mix(in srgb, var(--restaurant-bg) 88%, #eaf0f8 12%) 100%),
    linear-gradient(var(--page-bg-overlay), var(--page-bg-overlay)),
    var(--page-bg-image),
    radial-gradient(780px 320px at 8% -12%, rgba(37, 99, 235, 0.14) 0%, transparent 62%),
    radial-gradient(740px 320px at 92% -10%, rgba(14, 165, 233, 0.12) 0%, transparent 62%),
    var(--restaurant-bg);
}

.menu-app {
  width: min(1020px, 100%);
  padding: 16px 12px 30px;
}

.surface {
  background: color-mix(in srgb, var(--menu-inner-bg, #F8FBFF) 92%, #ffffff 8%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.10);
  border-radius: 22px;
  padding: 14px;
}

.hero {
  border-radius: 22px;
  padding: 16px;
  background: var(--secondary-color);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.18);
}

.hero-logo {
  background: #fff;
  border: 1px solid rgba(2, 6, 23, 0.06);
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.18);
}

.action-btn {
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 10px 22px rgba(2,6,23,.16);
}

.action-btn span:first-child {
  width: 16px;
  display: inline-flex;
  justify-content: center;
}

.search-input {
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03);
}

.search-input:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 28%, transparent 72%), inset 0 1px 1px rgba(15, 23, 42, 0.03);
  border-color: color-mix(in srgb, var(--primary-color) 52%, #cbd5e1 48%);
}

.switch input {
  box-shadow: inset 0 2px 6px rgba(2, 6, 23, 0.12);
}

.result-count {
  font-weight: 700;
  color: #64748b;
}

.chipbar-wrap {
  border-radius: 14px;
  background: linear-gradient(to bottom, rgba(255,255,255,.72), rgba(248,250,252,.66));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.chip {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.chip.active {
  color: #fff;
  background: var(--primary-color);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--primary-color) 32%, transparent 68%);
}

.section h2,
.category-title {
  position: relative;
  display: inline-block;
  margin: 2px 0 10px;
  padding-bottom: 4px;
}

.section h2::after,
.category-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary-color) 82%, #fff 18%), transparent);
}

.dish-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
}

.dish-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
}

.media {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.10);
}

.dish-main p,
.dish-desc {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.price-pill {
  background: var(--primary-color);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--primary-color) 34%, transparent 66%);
  border-radius: 999px;
  min-width: 106px;
}

.empty {
  border-radius: 16px;
  border: 1px dashed #c9d6e6;
  background: rgba(255,255,255,.85);
  padding: 18px;
  box-shadow: 0 8px 20px rgba(2,6,23,.06);
}

.dish-sheet-head {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.92);
}

.sheet-image {
  max-height: 240px;
}

.supp-row input[type="radio"],
.supp-row input[type="checkbox"] {
  accent-color: var(--primary-color);
  width: 17px;
  height: 17px;
}

.sheet-total {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 800;
}

.btn-primary {
  min-width: 158px;
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary-color) 30%, transparent 70%);
}

.toast-root {
  bottom: 20px;
}

@media (max-width: 520px) {
  .hero {
    border-radius: 20px;
    padding: 14px;
  }

  .surface {
    border-radius: 18px;
    padding: 12px;
  }

  .section h2,
  .category-title {
    font-size: 1.18rem;
  }

  .dish-card {
    grid-template-columns: 82px 1fr;
  }

  .media {
    width: 82px;
    height: 82px;
  }

  .price-pill {
    min-width: 98px;
  }
}

/* Theme consistency: use "Couleur arriere-plan page (interieur)" for menu surfaces */
:root {
  --menu-surface-bg: color-mix(in srgb, var(--menu-inner-bg, #F8FBFF) 96%, #ffffff 4%);
}

.surface,
.chipbar-wrap,
.chip,
.search-input,
.dish-card,
.empty,
.supp-row {
  background: var(--menu-surface-bg);
}

.dish-sheet,
.dish-sheet-head,
.dish-sheet-foot {
  background: #ffffff;
}

/* Safe visual polish */
.hero {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 22px 54px rgba(2, 6, 23, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.action-btn {
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,252,.92) 100%);
}

.action-btn:hover {
  transform: translateY(-2px);
}

.surface {
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.search-input,
.chip,
.dish-card,
.supp-group,
.dish-sheet,
.empty {
  border-color: rgba(148, 163, 184, 0.20);
}

.search-input {
  box-shadow:
    inset 0 1px 1px rgba(15, 23, 42, 0.03),
    0 6px 16px rgba(15, 23, 42, 0.04);
}

.chip {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.dish-card {
  overflow: hidden;
}

.dish-main h3,
.dish-name {
  letter-spacing: -0.015em;
}

.dish-main p,
.dish-desc {
  color: #5b6b82;
}

.price-pill {
  letter-spacing: .2px;
}

.media {
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
}

.sheet-block {
  border-top-color: rgba(148, 163, 184, 0.18);
}

.dish-sheet .supp-row {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.sheet-close,
.btn-ghost,
.btn-primary {
  transition:
    transform .16s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

.sheet-close:hover,
.btn-ghost:hover,
.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-primary {
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary-color) 30%, transparent 70%);
}

@media (max-width: 520px) {
  .surface {
    box-shadow:
      0 14px 28px rgba(15, 23, 42, 0.08),
      0 1px 0 rgba(255, 255, 255, 0.75) inset;
  }

  .action-btn {
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.12);
  }
}


