:root {
  color-scheme: light;
  --navy: #08213d;
  --navy-2: #103b62;
  --blue: #087fd5;
  --blue-light: #dff2ff;
  --aqua: #5ccbd6;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --ink: #102335;
  --muted: #667684;
  --line: #dfe5e8;
  --sun: #f0b545;
  --danger: #a53a3a;
  --success: #16745c;
  --shadow: 0 18px 48px rgba(8, 33, 61, 0.12);
  --radius: 1.25rem;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 110% 4%, rgba(92, 203, 214, 0.16), transparent 20rem),
    var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: white;
  color: var(--navy);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(122deg, rgba(8, 33, 61, 0.97), rgba(16, 59, 98, 0.94)),
    var(--navy);
  color: white;
  padding: calc(1rem + env(safe-area-inset-top)) 1rem 1rem;
}

.masthead::after {
  content: "";
  position: absolute;
  right: -7rem;
  bottom: -9rem;
  width: 20rem;
  height: 16rem;
  border: 1px solid rgba(92, 203, 214, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem rgba(92, 203, 214, 0.06), 0 0 0 5rem rgba(92, 203, 214, 0.04);
  pointer-events: none;
}

.masthead__inner,
.service-line,
main,
.site-footer {
  width: min(100%, 72rem);
  margin-inline: auto;
}

.masthead__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
}

.restaurant-mark {
  display: grid;
  width: 3.5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: white;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: -0.08em;
}

.restaurant-heading h1,
.menu-toolbar h2,
.featured h2,
.section-heading h2,
.restaurant-note h2,
.sheet h2,
.manager-panel h2 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.restaurant-heading h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 5vw, 2.35rem);
  font-weight: 500;
}

.eyebrow {
  margin: 0 0 0.2rem;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.masthead .eyebrow {
  color: #7dd7e1;
}

.location {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.language-pill,
.icon-button,
.close-button,
.manager-link {
  border: 0;
  cursor: pointer;
}

.language-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.service-line {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  align-items: center;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
}

main {
  padding: 1.25rem 1rem 7rem;
}

.menu-toolbar {
  margin-bottom: 1rem;
}

.toolbar-row,
.section-heading,
.featured__footer,
.sheet__heading,
.manager-title-row,
.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.menu-toolbar h2,
.section-heading h2,
.restaurant-note h2,
.sheet h2,
.manager-panel h2 {
  font-size: clamp(1.55rem, 5vw, 2rem);
}

.icon-button {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: white;
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(8, 33, 61, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
}

.allergen-symbol {
  display: grid;
  width: 1.55rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: 0.72rem;
}

.category-strip {
  display: flex;
  gap: 0.5rem;
  margin-inline: -1rem;
  padding: 0.9rem 1rem 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-button {
  flex: 0 0 auto;
  min-height: 2.7rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 750;
}

.category-button[aria-current="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.featured {
  overflow: hidden;
  margin: 0 0 2rem;
  border-radius: 1.45rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.featured__image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.featured__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.48rem 0.68rem;
  border-radius: 999px;
  background: rgba(8, 33, 61, 0.9);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.featured__body {
  padding: 1rem;
}

.featured__body > p {
  margin: 0.7rem 0 1rem;
  color: var(--muted);
}

.featured__footer strong {
  display: block;
  color: var(--navy);
  font-size: 1.25rem;
}

.price-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.primary-button,
.secondary-button {
  min-height: 2.85rem;
  border-radius: 0.9rem;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  box-shadow: 0 8px 20px rgba(8, 127, 213, 0.22);
}

.primary-button:active,
.secondary-button:active,
.category-button:active,
.language-pill:active {
  transform: translateY(1px);
}

.primary-button--wide {
  width: 100%;
  margin-top: 1rem;
}

.secondary-button {
  padding: 0.65rem 1rem;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
}

.menu-section {
  scroll-margin-top: 1rem;
}

.section-heading {
  align-items: flex-end;
  margin-bottom: 0.7rem;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 800;
}

.live-dot i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.menu-list {
  border-top: 1px solid var(--line);
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.menu-item h3 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.13rem;
  line-height: 1.25;
}

.menu-item p {
  max-width: 46rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.menu-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.allergen-badge,
.diet-badge,
.sold-out {
  display: inline-flex;
  min-height: 1.7rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
}

.allergen-badge {
  min-width: 1.7rem;
  padding-inline: 0.45rem;
  border: 1px solid #bed9ea;
  background: #edf7fc;
  color: var(--navy-2);
}

.diet-badge {
  padding-inline: 0.55rem;
  background: #e6f3e9;
  color: #276339;
}

.sold-out {
  padding-inline: 0.65rem;
  background: #f6e9e8;
  color: var(--danger);
}

.menu-item__side {
  display: flex;
  min-width: 5.4rem;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
}

.menu-item__side strong {
  color: var(--navy);
  white-space: nowrap;
}

.add-mini {
  display: grid;
  width: 2.55rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: white;
  color: var(--blue);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
}

.menu-item--unavailable {
  opacity: 0.62;
}

.restaurant-note {
  margin-top: 2rem;
  padding: 1.3rem;
  border-radius: var(--radius);
  background: var(--blue-light);
}

.restaurant-note p {
  margin: 0.55rem 0 1rem;
  color: var(--navy-2);
}

.site-footer {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 1rem calc(6rem + env(safe-area-inset-bottom));
  color: var(--muted);
}

.powered-by {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.powered-by img {
  border-radius: 0.75rem;
}

.powered-by span,
.powered-by strong {
  display: block;
}

.powered-by span,
.site-footer p {
  font-size: 0.76rem;
}

.site-footer p {
  margin: 0;
}

.manager-link {
  justify-self: start;
  padding: 0.65rem 0;
  background: transparent;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.cart-bar {
  position: fixed;
  z-index: 30;
  right: max(1rem, calc((100vw - 72rem) / 2 + 1rem));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, calc((100vw - 72rem) / 2 + 1rem));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 3.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.1rem;
  background: rgba(8, 33, 61, 0.96);
  color: white;
  box-shadow: 0 18px 36px rgba(8, 33, 61, 0.26);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.cart-count {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  font-weight: 900;
}

.cart-bar strong {
  font-size: 1rem;
}

.order-control[hidden],
.cart-bar[hidden] {
  display: none !important;
}

dialog {
  border: 0;
  padding: 0;
}

dialog::backdrop {
  background: rgba(3, 17, 31, 0.62);
  backdrop-filter: blur(4px);
}

.sheet {
  width: min(100% - 1rem, 38rem);
  max-height: calc(100dvh - 1rem);
  margin: auto auto 0.5rem;
  border-radius: 1.35rem;
  background: white;
  box-shadow: var(--shadow);
}

.sheet__panel {
  max-height: calc(100dvh - 1rem);
  overflow: auto;
  padding: 0.8rem 1rem calc(1rem + env(safe-area-inset-bottom));
}

.sheet__handle {
  width: 2.8rem;
  height: 0.28rem;
  margin: 0 auto 1rem;
  border-radius: 99px;
  background: #d5dce1;
}

.sheet__heading {
  align-items: flex-start;
  margin-bottom: 1rem;
}

.close-button {
  display: grid;
  width: 2.6rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #eef2f4;
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1;
}

.close-button--dark {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.language-button {
  display: flex;
  min-height: 3.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: white;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.language-button[aria-current="true"] {
  border-color: var(--blue);
  background: var(--blue-light);
}

.language-option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
}

.language-option__flag,
.language-pill__flag {
  display: block;
  flex: 0 0 auto;
  width: 1.75rem;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.18rem;
  box-shadow: 0 0 0 1px rgba(17, 32, 53, 0.14);
}

.language-pill__flag {
  width: 1.5rem;
}

.language-button small {
  margin-left: auto;
  color: var(--muted);
}

.allergen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.allergen-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  font-size: 0.82rem;
}

.fine-print {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-row p {
  margin: 0;
  color: var(--navy);
  font-weight: 750;
}

.cart-row small {
  color: var(--muted);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quantity-control button {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--navy);
  cursor: pointer;
}

.cart-summary {
  margin-top: 0.9rem;
  font-size: 1.1rem;
}

.cart-empty {
  padding: 2rem 0;
  color: var(--muted);
  text-align: center;
}

.manager-dialog {
  width: min(100%, 66rem);
  max-width: none;
  height: min(100dvh, 52rem);
  max-height: none;
  margin: auto;
  border-radius: 1.25rem;
  background: white;
  box-shadow: var(--shadow);
}

.manager-panel {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr auto;
}

.manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--navy);
  color: white;
}

.manager-brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.manager-brand img {
  border-radius: 0.75rem;
}

.manager-brand p,
.manager-brand span {
  display: block;
  margin: 0;
}

.manager-brand p {
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.manager-brand span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
}

.manager-content {
  overflow: auto;
  padding: 1rem;
}

.simulation-note {
  margin: 0 0 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.manager-title-row {
  align-items: flex-end;
  margin-bottom: 1rem;
}

.toggle-row {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-row i {
  position: relative;
  width: 2.8rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #cfd7dc;
  transition: background 160ms ease;
}

.toggle-row i::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px rgba(8, 33, 61, 0.2);
  transition: transform 160ms ease;
}

.toggle-row input:checked + i {
  background: var(--blue);
}

.toggle-row input:checked + i::after {
  transform: translateX(1.25rem);
}

.manager-list {
  display: grid;
  gap: 0.55rem;
}

.manager-item {
  display: grid;
  grid-template-columns: 1fr 7rem auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fbfcfd;
}

.manager-item strong,
.manager-item small {
  display: block;
}

.manager-item small {
  margin-top: 0.1rem;
  color: var(--muted);
}

.price-input {
  width: 100%;
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: white;
  color: var(--navy);
  padding: 0.55rem;
  text-align: right;
}

.availability-check {
  display: grid;
  min-width: 4.8rem;
  gap: 0.2rem;
  justify-items: center;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.availability-check input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--blue);
}

.manager-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: white;
}

.toast {
  position: fixed;
  z-index: 80;
  top: max(1rem, env(safe-area-inset-top));
  left: 50%;
  width: max-content;
  max-width: calc(100% - 2rem);
  transform: translate(-50%, -150%);
  padding: 0.78rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  font-weight: 800;
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

@media (min-width: 760px) {
  .masthead {
    padding-inline: 2rem;
  }

  main {
    padding-inline: 2rem;
  }

  .category-strip {
    margin-inline: 0;
    padding-inline: 0;
  }

  .featured {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
  }

  .featured__image-wrap {
    aspect-ratio: auto;
    min-height: 22rem;
  }

  .featured__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
  }

  .featured__body h2 {
    font-size: 2.35rem;
  }

  .menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2.5rem;
  }

  .site-footer {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding-inline: 2rem;
  }

  .manager-link {
    justify-self: end;
  }

  .sheet {
    margin: auto;
  }
}

@media (max-width: 620px) {
  .manager-dialog {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }

  .manager-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .manager-item {
    grid-template-columns: 1fr 6.4rem;
  }

  .availability-check {
    grid-column: 1 / -1;
    grid-template-columns: auto auto;
    justify-content: flex-start;
    justify-items: start;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mediterranean menu redesign */
.tax-note {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0.85rem 0 0;
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 800;
}

.featured {
  border: 1px solid rgba(8, 33, 61, 0.06);
  border-radius: 1.8rem;
  box-shadow: 0 24px 60px rgba(8, 33, 61, 0.15);
}

.featured__image-wrap img {
  transition: transform 420ms ease;
}

.featured:hover .featured__image-wrap img {
  transform: scale(1.025);
}

.menu-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  border-top: 0;
}

.menu-card {
  display: grid;
  grid-template-columns: 7.8rem minmax(0, 1fr);
  min-height: 8.8rem;
  overflow: hidden;
  border: 1px solid rgba(8, 33, 61, 0.08);
  border-radius: 1.15rem;
  background: var(--surface);
  box-shadow: 0 9px 24px rgba(8, 33, 61, 0.075);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(8, 33, 61, 0.13);
}

.dish-photo {
  min-height: 100%;
  background-image: url("./assets/menu-atlas-v2.webp");
  background-repeat: no-repeat;
  background-size: 400% 300%;
}

.dish-photo--0 { background-position: 0% 0%; }
.dish-photo--1 { background-position: 33.333% 0%; }
.dish-photo--2 { background-position: 66.667% 0%; }
.dish-photo--3 { background-position: 100% 0%; }
.dish-photo--4 { background-position: 0% 50%; }
.dish-photo--5 { background-position: 33.333% 50%; }
.dish-photo--6 { background-position: 66.667% 50%; }
.dish-photo--7 { background-position: 100% 50%; }
.dish-photo--8 { background-position: 0% 100%; }
.dish-photo--9 { background-position: 33.333% 100%; }
.dish-photo--10 { background-position: 66.667% 100%; }
.dish-photo--11 { background-position: 100% 100%; }

.menu-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0.85rem;
}

.menu-card__headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: start;
}

.menu-card h3,
.manager-section-title h3 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.2;
}

.menu-card__headline strong {
  color: var(--navy);
  font-size: 0.92rem;
  white-space: nowrap;
}

.menu-card p {
  margin: 0.35rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.42;
}

.menu-card__footer {
  display: flex;
  gap: 0.7rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
}

.menu-card .menu-item__meta {
  margin-top: 0;
}

.menu-card .add-mini {
  flex: 0 0 auto;
  width: 2.35rem;
  box-shadow: 0 6px 14px rgba(8, 127, 213, 0.15);
}

.category-button {
  border-color: rgba(8, 33, 61, 0.1);
  background: white;
  box-shadow: 0 3px 10px rgba(8, 33, 61, 0.045);
}

.category-button[aria-current="true"] {
  box-shadow: 0 8px 18px rgba(8, 33, 61, 0.18);
}

.tip-selector {
  margin: 1rem 0 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #f8fbfd;
}

.tip-selector legend {
  padding: 0 0.25rem;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 850;
}

.tip-selector > p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.tip-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.tip-option:first-child {
  grid-column: 1 / -1;
}

.tip-option {
  position: relative;
  cursor: pointer;
}

.tip-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tip-option span {
  display: grid;
  min-height: 2.8rem;
  place-items: center;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: white;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.tip-option input:focus-visible + span {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

.tip-option input:checked + span {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.custom-tip {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.65rem;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 750;
}

.custom-tip[hidden] {
  display: none;
}

.custom-tip__control {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  color: var(--navy);
  font-weight: 900;
}

.custom-tip input {
  width: 5rem;
  min-height: 2.6rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--navy);
  text-align: right;
}

.checkout-summary {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.checkout-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.checkout-summary__total {
  margin-top: 0.2rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  color: var(--navy) !important;
  font-size: 1.12rem !important;
}

.payment-demo-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.manager-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.manager-kpis article {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: linear-gradient(145deg, white, #f5faff);
}

.manager-kpis span,
.manager-kpis strong,
.manager-kpis small {
  display: block;
}

.manager-kpis span,
.manager-kpis small {
  color: var(--muted);
  font-size: 0.72rem;
}

.manager-kpis strong {
  margin: 0.12rem 0;
  color: var(--navy);
  font-size: 1.35rem;
}

.orders-demo {
  margin-bottom: 1.4rem;
  padding: 0.9rem;
  border-radius: 1rem;
  background: var(--navy);
  color: white;
}

.manager-section-title {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.orders-demo .manager-section-title h3,
.orders-demo .manager-section-title span {
  color: white;
}

.manager-section-title span {
  color: var(--muted);
  font-size: 0.72rem;
}

.manager-section-title--menu {
  align-items: center;
}

.order-ticket {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.8rem;
}

.order-ticket span {
  color: rgba(255, 255, 255, 0.72);
}

.order-ticket em {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 850;
}

.status-new { background: #dff2ff; color: #075f9e; }
.status-kitchen { background: #fff0ce; color: #754f00; }
.status-ready { background: #dff4e7; color: #15643b; }

@media (min-width: 760px) {
  .menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .menu-card {
    grid-template-columns: 9rem minmax(0, 1fr);
    min-height: 10rem;
  }

  .menu-card__body {
    padding: 1rem;
  }
}

@media (max-width: 520px) {
  .menu-card {
    grid-template-columns: 7rem minmax(0, 1fr);
  }

  .menu-card__headline {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .tip-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manager-kpis {
    grid-template-columns: 1fr;
  }

  .order-ticket {
    grid-template-columns: 4.6rem 1fr;
  }

  .order-ticket em {
    grid-column: 2;
    justify-self: start;
  }
}

/* Animated multilingual welcome */
.language-welcome {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  overflow: hidden;
  border: 0;
  background: #061c33;
  color: white;
}

.language-welcome::backdrop {
  background: #061c33;
}

.language-welcome[open] {
  animation: welcome-dialog-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.language-welcome.is-closing {
  animation: welcome-dialog-out 460ms cubic-bezier(0.64, 0, 0.78, 0) both;
}

.language-welcome__panel {
  position: relative;
  min-height: 100dvh;
  overflow: auto;
  isolation: isolate;
}

.language-welcome__panel::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    url("./assets/arroz-del-senyoret.webp") center 48% / cover no-repeat;
  content: "";
  animation: welcome-photo-drift 18s ease-in-out infinite alternate;
  transform: scale(1.04);
}

.language-welcome__panel::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(26, 152, 221, 0.28), transparent 30%),
    linear-gradient(105deg, rgba(4, 24, 44, 0.97) 0%, rgba(5, 31, 56, 0.91) 44%, rgba(5, 25, 43, 0.52) 100%),
    linear-gradient(0deg, rgba(2, 15, 28, 0.84), transparent 50%);
  content: "";
}

.language-welcome__content {
  display: grid;
  width: min(100% - 2rem, 68rem);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(1.25rem, env(safe-area-inset-top)) 0 max(1rem, env(safe-area-inset-bottom));
  grid-template-rows: auto 1fr auto auto;
  gap: 1.3rem;
}

.welcome-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.welcome-brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.welcome-brand__mark {
  display: grid;
  width: 3.15rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(5, 29, 52, 0.42);
  font-family: Georgia, serif;
  font-size: 1.05rem;
  backdrop-filter: blur(12px);
}

.welcome-brand strong,
.welcome-brand small {
  display: block;
}

.welcome-brand strong {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.welcome-brand small {
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-welcome__close {
  display: grid;
  width: 2.75rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(5, 29, 52, 0.52);
  color: white;
  font-size: 1.6rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.language-welcome[data-welcome="true"] .language-welcome__close {
  display: none;
}

.welcome-intro {
  align-self: center;
  padding-block: clamp(1rem, 6vh, 4rem);
}

.welcome-intro__eyebrow,
.welcome-intro__place {
  margin: 0;
  color: #7dd5ff;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.welcome-intro__place {
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.72);
}

.welcome-greeting-cycle {
  position: relative;
  width: min(100%, 52rem);
  height: clamp(4.4rem, 11vw, 8.2rem);
  margin: 0.35rem 0 0;
  overflow: hidden;
}

.welcome-greeting-cycle span {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  opacity: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 8.4vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
  animation: welcome-greeting 16s linear infinite;
  animation-delay: calc(var(--greeting) * 2s - 16s);
}

.welcome-language-card {
  width: min(100%, 58rem);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  background: rgba(247, 251, 253, 0.94);
  box-shadow: 0 1.5rem 4rem rgba(0, 11, 23, 0.34);
  color: var(--navy);
  backdrop-filter: blur(18px);
  animation: welcome-card-in 680ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.welcome-language-card__heading {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
}

.welcome-language-card__icon {
  display: grid;
  flex: 0 0 auto;
  width: 2.9rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--navy);
  color: white;
  font-size: 1.05rem;
  font-weight: 850;
}

.welcome-language-card h2 {
  margin: 0;
  color: var(--navy);
  font-family: inherit;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.15;
}

.welcome-language-card__heading p {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.language-welcome .language-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.language-welcome .language-button {
  min-height: 3.8rem;
  border-color: rgba(11, 42, 69, 0.14);
  background: rgba(255, 255, 255, 0.88);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.language-welcome .language-button:hover {
  z-index: 1;
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0.55rem 1.2rem rgba(9, 55, 90, 0.12);
  transform: translateY(-2px);
}

.language-welcome .language-button:focus-visible,
.language-welcome__close:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.welcome-powered {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.welcome-powered strong {
  color: white;
}

@keyframes welcome-dialog-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes welcome-dialog-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.025); }
}

@keyframes welcome-card-in {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes welcome-photo-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-0.8%, -0.5%, 0); }
}

@keyframes welcome-greeting {
  0%, 12.45% { opacity: 0; transform: translateY(1.15rem); filter: blur(5px); }
  1.6%, 10% { opacity: 1; transform: translateY(0); filter: blur(0); }
  12.5%, 100% { opacity: 0; transform: translateY(-0.9rem); filter: blur(4px); }
}

@media (max-width: 740px) {
  .language-welcome__panel::after {
    background:
      radial-gradient(circle at 86% 8%, rgba(26, 152, 221, 0.26), transparent 36%),
      linear-gradient(180deg, rgba(4, 24, 44, 0.82) 0%, rgba(4, 24, 44, 0.91) 52%, rgba(3, 18, 33, 0.98) 100%);
  }

  .language-welcome__content {
    width: min(100% - 1.25rem, 38rem);
    gap: 0.85rem;
  }

  .welcome-intro {
    align-self: end;
    padding: 2vh 0 0;
  }

  .welcome-greeting-cycle {
    height: clamp(3.5rem, 16vw, 5.2rem);
  }

  .welcome-greeting-cycle span {
    font-size: clamp(2.15rem, 11vw, 4rem);
  }

  .welcome-language-card {
    border-radius: 1.25rem;
  }

  .language-welcome .language-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-welcome .language-button {
    min-height: 3.35rem;
    padding: 0.62rem;
  }

  .language-welcome .language-option {
    gap: 0.45rem;
  }

  .language-welcome .language-option__flag {
    width: 1.55rem;
  }

  .welcome-powered {
    justify-content: center;
  }
}

@media (max-height: 660px) {
  .welcome-intro {
    padding: 0;
  }

  .welcome-greeting-cycle {
    height: 3.5rem;
  }

  .welcome-greeting-cycle span {
    font-size: clamp(2rem, 8vw, 3.25rem);
  }

  .welcome-language-card {
    padding: 0.85rem;
  }

  .language-welcome .language-button {
    min-height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-welcome[open],
  .language-welcome.is-closing,
  .language-welcome__panel::before,
  .welcome-language-card {
    animation: none;
  }

  .welcome-greeting-cycle span {
    display: none;
    animation: none;
  }

  .welcome-greeting-cycle span:first-child {
    display: block;
    opacity: 1;
  }
}
