:root {
  --bg: #0b171c;
  --bg-raise: #102026;
  --surface: #142a31;
  --surface-2: #1b3740;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f8f8;
  --muted: #a3b8be;
  --teal: #2dd4bf;
  --teal-hover: #5eead4;
  --teal-tint: rgba(45, 212, 191, 0.13);
  --ink: #04211d;
  --orange: #fdba74;
  --danger: #fb7185;
  --open: #4ade80;
  --whatsapp: #25d366;
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --top-h: 60px;
  --scroll-offset: 120px;
  --cartbar-h: calc(76px + env(safe-area-inset-bottom, 0px));
  color-scheme: dark;
}

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

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

html.om-lock,
html.om-lock body {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.has-cartbar {
  padding-bottom: var(--cartbar-h);
}

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

button {
  touch-action: manipulation;
  cursor: pointer;
}

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

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* —— Top bar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: env(safe-area-inset-top, 0px) 14px 0;
  background: rgba(11, 23, 28, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1400px;
  min-height: 60px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.brand img {
  width: auto;
  height: 32px;
}

/* Subtle teal glow pulse on the logo (same effect as the reservation page, toned down) */
@keyframes karibu-logo-pulse {
  0%,
  100% {
    filter: drop-shadow(0 1px 6px rgba(45, 212, 191, 0.2));
  }

  50% {
    filter:
      drop-shadow(0 0 10px rgba(45, 212, 191, 0.6))
      drop-shadow(0 0 20px rgba(45, 212, 191, 0.28));
  }
}

.brand img {
  animation: karibu-logo-pulse 2.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .brand img {
    animation: none;
    filter: drop-shadow(0 1px 6px rgba(45, 212, 191, 0.25));
  }
}

.topbar__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.icon-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  font-size: 1.05rem;
}

.icon-btn:hover {
  background: var(--surface-2);
}

.search {
  display: none;
  position: relative;
  flex: 1;
  align-items: center;
}

.search > i {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 44px;
  padding: 0 44px 0 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-raise);
  font-size: 16px;
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search__clear {
  position: absolute;
  right: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

body.is-search-open .search {
  display: flex;
}

body.is-search-open .brand,
body.is-search-open .status,
body.is-search-open .preview-pill {
  display: none;
}

body.is-search-open .icon-btn--search i::before {
  content: "\f00d";
}

body:not([data-view="menu"]) .icon-btn--search,
body:not([data-view="menu"]) .search {
  display: none;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 700;
}

.status__more {
  display: none;
  font-weight: 500;
  color: var(--muted);
}

.status__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
}

.status--open .status__dot {
  background: var(--open);
}

.status--preorder .status__dot {
  background: var(--teal);
}

.status--open .status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.45);
  animation: om-pulse 1.8s ease-out infinite;
}

@keyframes om-pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }

  70%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.preview-pill {
  flex: none;
  padding: 4px 9px;
  border: 1px solid rgba(45, 212, 191, 0.4);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* —— Category chips (mobile) / sidebar (desktop) —— */
.cats {
  position: sticky;
  top: var(--top-h);
  z-index: 25;
  overflow-x: auto;
  background: rgba(11, 23, 28, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

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

body:not([data-view="menu"]) .cats,
body.is-searching .cats {
  display: none;
}

.cats__list {
  display: flex;
  gap: 8px;
  width: max-content;
  margin: 0;
  padding: 10px 14px;
  list-style: none;
}

.cats__item--drinks {
  margin-left: 10px;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.chip.is-on {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.chip.is-on i {
  color: var(--bg);
}

/* —— Layout —— */
.layout {
  max-width: 1400px;
  margin: 0 auto;
}

.main {
  min-width: 0;
  padding: 0 14px 32px;
}

.panel {
  display: none;
}

.page {
  display: grid;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
  padding-top: 16px;
}

.view:focus {
  outline: none;
}

/* —— Menu —— */
.notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(253, 186, 116, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(253, 186, 116, 0.1);
  color: #fde3c8;
  font-size: 0.92rem;
}

.notice--closed {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.notice--closed > i {
  margin-top: 3px;
}

.notice--closed strong {
  display: block;
}

.countdown {
  display: block;
  margin-top: 2px;
}

.preorder-cta {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--teal);
}

.notice--preorder {
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(45, 212, 191, 0.08);
  color: #d7f7f3;
}

p.notice--preorder {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

p.notice--preorder > i {
  margin-top: 3px;
}

.countdown b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 14px 0 4px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
}

.info-strip i {
  margin-right: 4px;
  color: var(--teal);
}

.cat-section {
  scroll-margin-top: var(--scroll-offset);
  padding-top: 22px;
}

.cat-section__title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cat-section__title:focus {
  outline: none;
}

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

.item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.item:hover {
  background: var(--surface-2);
}

.item.is-in-cart {
  border-color: rgba(45, 212, 191, 0.55);
}

.item__open {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  min-height: 128px;
  padding: 14px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  text-align: left;
}

.item__open:focus-visible {
  outline-offset: -3px;
}

.item__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.item__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.item__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.item__price {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 700;
  color: var(--teal);
}

.item__media {
  position: relative;
  flex: none;
  width: 100px;
  height: 100px;
}

.item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-raise);
}

.item__ctl {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
}

.item__add {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--teal);
  color: var(--ink);
  font-size: 1rem;
}

.item__add:hover {
  background: var(--teal-hover);
}

.qstep {
  display: flex;
  align-items: center;
  height: 44px;
  border: 3px solid var(--surface);
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.qstep button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font-size: 0.95rem;
}

.qstep button:hover {
  background: rgba(4, 33, 29, 0.14);
}

.qstep span {
  min-width: 20px;
  font-weight: 800;
  text-align: center;
}

.incart {
  margin: 16px 16px 0;
  padding: 12px 14px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: var(--radius-sm);
  background: var(--teal-tint);
}

.incart__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 800;
}

.incart__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.incart__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.incart__line + .incart__line {
  border-top: 1px solid var(--line);
}

.incart__text {
  display: grid;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.incart__text small {
  color: var(--muted);
  font-weight: 700;
}

.item__qty {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 30px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.empty {
  margin: 32px 0;
  color: var(--muted);
  text-align: center;
}

.compare {
  display: block;
  margin: 32px auto 8px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* —— Buttons —— */
.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--teal);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--teal-hover);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--teal);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #052e16;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 58px;
  font-size: 1.08rem;
}

.btn--grow {
  flex: 1;
}

.btn__aside {
  white-space: nowrap;
  padding-left: 10px;
  border-left: 1px solid rgba(4, 33, 29, 0.3);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 700;
}

/* —— Cart bar (mobile/tablet) —— */
.cartbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, var(--bg) 70%, rgba(11, 23, 28, 0));
}

.cartbar__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 640px;
  min-height: 56px;
  margin: 0 auto;
  padding: 0 18px 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.cartbar__btn.is-pop {
  animation: om-pop 0.35s ease;
}

@keyframes om-pop {
  50% {
    transform: scale(1.03);
  }
}

.cartbar__count {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--teal);
}

.cartbar__label {
  flex: 1;
  text-align: left;
}

/* —— Toast —— */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transform: translateX(-50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.has-cartbar .toast {
  bottom: calc(var(--cartbar-h) + 8px);
}

/* —— Cart lines, summary —— */
.lines {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.line--readonly {
  grid-template-columns: 1fr;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
}

.line__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.line__main {
  min-width: 0;
}

.line__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.line__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.line__qty {
  color: var(--teal);
}

.line__price {
  flex: none;
  font-weight: 700;
}

.line__addons,
.line__note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.line__note {
  font-style: italic;
}

.line__note-edit {
  display: block;
  margin-top: 8px;
}

.line__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
}

.stepper button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 1.2rem;
  font-weight: 700;
}

.stepper button:hover {
  background: var(--teal);
  color: var(--ink);
}

.stepper span {
  min-width: 28px;
  font-weight: 800;
  text-align: center;
}

.stepper--sm button {
  width: 40px;
  height: 40px;
  font-size: 1.05rem;
}

.line__actions .link-btn {
  margin-left: -4px;
}

.progress {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-raise);
  border: 1px solid var(--line);
}

.progress__label {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.progress.is-done .progress__label {
  color: var(--open);
  font-weight: 700;
}

.progress__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress__bar {
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
  transition: width 0.3s ease;
}

.progress.is-done .progress__bar {
  background: var(--open);
}

.summary {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-raise);
  border: 1px solid var(--line);
}

.summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary dt {
  color: var(--muted);
}

.summary dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.summary .free {
  color: var(--open);
}

.summary__total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
}

.summary__total dt {
  color: var(--text);
  font-weight: 800;
}

.summary__total dd {
  font-weight: 800;
}

.cart-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
}

.cart-empty i {
  margin-bottom: 6px;
  font-size: 2rem;
  color: var(--surface-2);
}

.cart-empty strong {
  color: var(--text);
  font-size: 1.1rem;
}

/* —— Checkout —— */
.checkout {
  gap: 14px;
}

.step {
  display: grid;
  gap: 14px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.step__no {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal);
  font-size: 0.85rem;
}

.step__edit {
  margin-left: auto;
}

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

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 12px 48px 12px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-raise);
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choice:hover {
  border-color: var(--line-strong);
}

.choice__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 1.1rem;
}

.choice__text {
  display: grid;
  gap: 2px;
}

.choice__text strong {
  font-size: 1rem;
}

.choice__text small {
  color: var(--muted);
  font-size: 0.85rem;
}

.choice__tick {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
  font-size: 0.7rem;
  transform: translateY(-50%);
}

.choice.is-on {
  border-color: var(--teal);
  background: var(--teal-tint);
}

.choice.is-on .choice__icon {
  background: var(--teal);
  color: var(--ink);
}

.choice.is-on .choice__tick {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--ink);
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 0.9rem;
  font-weight: 700;
}

.field__label em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 16px;
}

.input--sm {
  min-height: 42px;
  padding: 8px 12px;
}

textarea.input {
  resize: vertical;
}

.input:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.2);
}

.select {
  position: relative;
  display: block;
}

.select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
}

.select i {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hint i {
  margin-right: 4px;
}

.hint--ok {
  color: var(--open);
}

.form-error {
  padding: 12px 14px;
  border: 1px solid rgba(251, 113, 133, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(251, 113, 133, 0.12);
  color: #fecdd3;
  font-weight: 700;
}

.step--summary .summary,
.step--summary .progress {
  background: var(--bg);
}

.actions-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.success {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 24px 0 8px;
  text-align: center;
}

.success h2 {
  margin: 8px 0 0;
  font-size: 1.5rem;
}

.success__mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--ink);
  font-size: 2rem;
}

.success__no {
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.success__card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
}

.success__total {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 1.2rem;
}

/* —— Item sheet —— */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(2, 8, 10, 0.7);
  animation: om-fade 0.2s ease;
}

@keyframes om-fade {
  from {
    opacity: 0;
  }
}

.sheet {
  position: fixed;
  inset: auto 0 0;
  z-index: 71;
  display: flex;
  flex-direction: column;
  max-height: 94dvh;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: var(--bg-raise);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet.is-open {
  transform: none;
}

.sheet__scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 12px;
}

.sheet__hero {
  position: relative;
}

.sheet__hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 38dvh;
  object-fit: cover;
  background: var(--surface);
}

.sheet__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 23, 28, 0.82);
  font-size: 1.15rem;
}

.sheet__intro {
  padding: 16px 16px 4px;
}

.sheet__titlerow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sheet__intro h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.sheet__base {
  flex: none;
  color: var(--teal);
  font-size: 1.1rem;
  font-weight: 800;
}

.sheet__intro p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.addon-group {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0 16px;
  border: 0;
}

.addon-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
}

.addon-group__label {
  font-size: 1.02rem;
  font-weight: 800;
}

.addon-group__rule {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.addon-group__rule.is-required {
  background: rgba(253, 186, 116, 0.14);
  color: var(--orange);
}

.addon-group.is-error .addon-group__rule {
  background: rgba(251, 113, 133, 0.18);
  color: var(--danger);
}

.addon-group.is-error .opt {
  border-color: rgba(251, 113, 133, 0.45);
}

.addon-group__opts {
  display: grid;
  gap: 8px;
}

.opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.opt:hover {
  border-color: var(--line-strong);
}

.opt__mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-strong);
  border-radius: 7px;
  color: transparent;
  font-size: 0.72rem;
}

.opt--radio .opt__mark {
  border-radius: 50%;
}

.opt__title {
  font-weight: 600;
  line-height: 1.3;
}

.opt__price {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.opt.is-on {
  border-color: var(--teal);
  background: var(--teal-tint);
}

.opt.is-on .opt__mark {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--ink);
}

.opt.is-on .opt__price {
  color: var(--teal);
}

.sheet-error {
  margin: 0;
  padding: 10px 16px;
  background: rgba(251, 113, 133, 0.14);
  color: #fecdd3;
  font-weight: 700;
}

.sheet__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--bg-raise);
}

/* —— ≥ 600px —— */
@media (min-width: 600px) {
  .status__more {
    display: inline;
  }

  .main {
    padding: 0 24px 40px;
  }

  .cats__list {
    padding: 10px 24px;
  }

  .items {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
  }

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

/* —— ≥ 1024px: desktop, three columns —— */
@media (min-width: 1024px) {
  .topbar {
    padding: 0 24px;
  }

  .topbar__row {
    min-height: 72px;
    gap: 16px;
  }

  .brand {
    margin-right: 0;
  }

  .brand img {
    height: 38px;
  }

  .search {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
  }

  .icon-btn--search {
    display: none;
  }

  body:not([data-view="menu"]) .search {
    visibility: hidden;
    display: flex;
  }

  .topbar__title {
    flex: none;
  }

  .layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
    padding: 0 24px;
  }

  body:not([data-view="menu"]) .layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  .cats {
    position: sticky;
    top: calc(var(--top-h) + 20px);
    max-height: calc(100dvh - var(--top-h) - 40px);
    overflow-y: auto;
    margin-top: 20px;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
  }

  body.is-searching .cats {
    display: block;
    opacity: 0.4;
  }

  .cats__list {
    flex-direction: column;
    width: auto;
    gap: 2px;
    padding: 0;
  }

  .cats__item--drinks {
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .chip {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
  }

  .chip:hover {
    background: var(--surface);
  }

  .chip i {
    width: 18px;
    text-align: center;
  }

  .chip.is-on {
    background: var(--teal-tint);
    color: var(--teal);
  }

  .chip.is-on i {
    color: var(--teal);
  }

  .main {
    padding: 0 0 64px;
  }

  .items {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .page {
    max-width: 720px;
    padding-top: 24px;
  }

  .panel {
    position: sticky;
    top: calc(var(--top-h) + 20px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100dvh - var(--top-h) - 40px);
    overflow: hidden;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
  }

  .panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }

  .panel__head h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
  }

  .panel__count {
    color: var(--muted);
    font-size: 0.9rem;
  }

  .panel > * {
    flex: none;
  }

  .panel .lines {
    flex: 0 1 auto;
    min-height: 90px;
    overflow-y: auto;
    margin-right: -6px;
    padding-right: 6px;
    overscroll-behavior: contain;
  }

  .panel .line {
    grid-template-columns: 52px 1fr;
    padding: 10px;
    background: var(--bg-raise);
  }

  .panel .line__img {
    width: 52px;
    height: 52px;
  }

  .panel .summary,
  .panel .progress {
    background: var(--bg-raise);
  }

  .panel .cart-empty {
    padding: 24px 8px;
  }

  /* Order summary lives in the side panel on desktop */
  .step--summary {
    display: none;
  }

  /* Centered dialog instead of a bottom sheet */
  .sheet {
    inset: 50% auto auto 50%;
    width: min(560px, calc(100vw - 48px));
    max-height: min(860px, calc(100dvh - 64px));
    border-radius: 24px;
    transform: translate(-50%, -46%);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

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

  .sheet__hero img {
    max-height: 300px;
  }
}

@media (min-width: 1280px) {
  .layout {
    grid-template-columns: 250px minmax(0, 1fr) 400px;
    gap: 36px;
  }

  body:not([data-view="menu"]) .layout {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
}

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

  .status--open .status__dot::after {
    transform: scale(1.4);
    opacity: 0.35;
  }
}

/* —— Live shop additions —— */
.admin-hint {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 14px;
  background: rgba(253, 186, 116, 0.12);
  color: #fde3c8;
  font-size: 0.88rem;
  text-align: center;
}

.voucher {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.voucher i {
  margin-top: 3px;
}

.voucher--ok {
  border: 1px solid rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.1);
  color: #d1fadf;
}

/* Valid voucher as a coupon card */
.coupon {
  --notch: 9px;
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 14px 0 0;
  border: 2px dashed var(--teal);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(45, 212, 191, 0.05));
  color: var(--text);
}

/* Ticket notches: half circles in the page colour cut into both sides */
.coupon::before,
.coupon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(var(--notch) * 2);
  height: calc(var(--notch) * 2);
  border: 2px dashed var(--teal);
  border-radius: 50%;
  background: var(--coupon-cut, var(--bg));
  transform: translateY(-50%);
}

.coupon::before {
  left: calc(var(--notch) * -1 - 2px);
  clip-path: inset(-2px -2px -2px 50%);
}

.coupon::after {
  right: calc(var(--notch) * -1 - 2px);
  clip-path: inset(-2px 50% -2px -2px);
}

.coupon__value {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 8px 10px 8px 16px;
  border-right: 2px dashed rgba(45, 212, 191, 0.55);
  line-height: 1;
}

.coupon__value strong {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--teal);
}

.coupon__value span {
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.coupon__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 18px 8px 14px;
}

.coupon__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.coupon__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.coupon__code {
  padding: 2px 9px;
  border: 1px solid rgba(45, 212, 191, 0.45);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.coupon__note {
  font-size: 0.82rem;
  color: #c7f3ec;
}

.coupon__note i {
  color: var(--teal);
}

.voucher--warn {
  border: 1px solid rgba(253, 186, 116, 0.35);
  background: rgba(253, 186, 116, 0.1);
  color: #fde3c8;
}

.closed-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg-raise);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.is-busy {
  pointer-events: none;
  opacity: 0.8;
}

.main--success {
  padding-bottom: 48px;
}

.success__lead {
  max-width: 34rem;
  margin: 6px 0 0;
  color: var(--muted);
}

.success__lead strong {
  color: var(--text);
}

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

.details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.details > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}

.details dt {
  color: var(--muted);
}

.details dd {
  margin: 0;
  font-weight: 600;
}

.details a {
  color: var(--teal);
}

.summary .free {
  color: var(--open);
}

.toast--error {
  background: #fecdd3;
  color: #4c0519;
}

.notice--flat {
  flex: 1;
  margin: 0;
}

/* Cards in the same grid row share the same height */
.item-wrap {
  display: flex;
}

.item-wrap > .item {
  flex: 1;
  min-width: 0;
}

.item__open {
  height: 100%;
}

/* Checkout: spacing inside the delivery/pick-up specific block */
#mode-specific {
  display: grid;
  gap: 14px;
}

.geo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-raise);
}

.geo__btn {
  min-height: 46px;
  flex: none;
}

.geo .hint {
  flex: 1 1 200px;
}
