:root {
  color-scheme: light;
  --ink: #18201d;
  --muted: #68736f;
  --soft: #f4eee6;
  --surface: #fff8ef;
  --panel: #ffffff;
  --line: rgba(30, 36, 34, 0.12);
  --line-strong: rgba(30, 36, 34, 0.2);
  --fire-light: #ff8a6b;
  --fire: #ef3b2d;
  --fire-hot: #b91c1c;
  --fire-dark: #991b1b;
  --fire-soft: #fff1f0;
  --fire-rgb: 239, 59, 45;
  --fire-gradient: linear-gradient(135deg, var(--fire-light) 0%, var(--fire) 48%, var(--fire-hot) 100%);
  --mint: #b91c1c;
  --mint-soft: #fff1f0;
  --gold: #efb54a;
  --blue: #315c9c;
  --combo-start: #ef3b2d;
  --combo-end: #b91c1c;
  --page-bg-image: none;
  --page-bg-top: rgba(255, 248, 239, 0.86);
  --page-bg-bottom: rgba(255, 252, 247, 0.96);
  --hero-overlay-start: rgba(14, 17, 15, 0.86);
  --hero-overlay-end: rgba(14, 17, 15, 0.38);
  --shadow: 0 24px 80px rgba(30, 36, 34, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, var(--page-bg-top), var(--page-bg-bottom)),
    var(--page-bg-image),
    var(--surface);
  background-attachment: fixed, fixed, scroll;
  background-position: center;
  background-size: cover;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

.print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

button,
input,
select,
textarea {
  min-width: 0;
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.restaurant-hero {
  position: relative;
  min-height: clamp(360px, 48vw, 520px);
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, var(--hero-overlay-start), var(--hero-overlay-end)),
    linear-gradient(0deg, rgba(14, 17, 15, 0.2), rgba(14, 17, 15, 0.04));
}

.hero-content {
  position: relative;
  width: min(880px, calc(100% - 32px));
  padding: 44px 0 88px;
  margin: 0 auto;
  color: #fff;
}

.top-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 48px;
}

.status-pill,
.hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
}

.hero-cart-shortcut {
  position: absolute;
  top: 42px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

.hero-cart-shortcut.has-items {
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(var(--fire-rgb), 0.88), rgba(var(--fire-rgb), 0.48)),
    rgba(255, 255, 255, 0.14);
}

.hero-cart-icon {
  position: relative;
  width: 16px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px 4px 5px 5px;
}

.hero-cart-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: -7px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.hero-cart-shortcut strong {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--fire-dark);
  font-size: 0.76rem;
  line-height: 1;
}

.admin-open-button {
  color: inherit;
}

.admin-open-button,
.top-row .admin-open-button {
  display: inline-flex;
}

.admin-open-button,
.admin-open-button:hover {
  text-decoration: none;
}

.admin-open-button {
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.hero-title {
  display: flex;
  gap: 18px;
  align-items: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.brand-mark.has-logo {
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.status-pill span {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--status-color, #54d985);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--status-color, #54d985) 18%, transparent);
}

.hero-title h1 {
  max-width: 760px;
  margin: 0;
  font-size: 6rem;
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-content p {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.25rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-metrics span {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}

.store-closed-notice {
  max-width: 640px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    rgba(15, 19, 18, 0.18);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.store-closed-notice span,
.store-unavailable-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  gap: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--status-color, var(--fire)) 18%, #fff 82%);
  color: color-mix(in srgb, var(--status-color, var(--fire)) 70%, #161b19 30%);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.store-closed-notice span {
  padding: 0 11px;
}

.store-closed-notice span::before,
.store-unavailable-status span {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-color, var(--fire));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--status-color, var(--fire)) 16%, transparent);
}

.store-closed-notice h2 {
  margin: 12px 0 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.store-closed-notice p {
  max-width: 560px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 24px;
  align-items: start;
  width: min(1240px, calc(100% - 32px));
  margin: -58px auto 64px;
  position: relative;
}

.menu-area,
.cart-panel {
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.menu-area {
  min-width: 0;
  padding: 20px;
  border-radius: var(--radius);
}

.cart-panel {
  position: sticky;
  top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
}

.menu-tools {
  display: block;
}

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

.search-box span {
  position: absolute;
  left: 16px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--fire);
  border-radius: 50%;
  opacity: 0.72;
  pointer-events: none;
}

.search-box span::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--fire);
  transform: rotate(45deg);
}

.search-box input,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  outline: 0;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.search-box input {
  min-height: 50px;
  border-color: color-mix(in srgb, var(--fire) 16%, var(--line) 84%);
  background: color-mix(in srgb, var(--panel) 94%, var(--fire-soft) 6%);
  padding: 0 16px 0 44px;
  box-shadow: 0 10px 24px rgba(var(--fire-rgb), 0.06);
}

.field input,
.field select {
  min-height: 46px;
  padding: 0 12px;
}

.field textarea {
  min-height: 82px;
  resize: vertical;
  padding: 12px;
}

.search-box input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(var(--fire-rgb), 0.56);
  box-shadow: 0 0 0 4px rgba(var(--fire-rgb), 0.12);
}

.mode-tabs,
.payment-options,
.quantity-control {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 88%, #fff 12%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.mode-tabs button,
.payment-options button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.mode-tabs button.is-active,
.payment-options button.is-active {
  background: var(--fire-gradient);
  color: #fff;
  box-shadow: 0 9px 18px rgba(var(--fire-rgb), 0.2);
}

.category-scroll {
  position: relative;
}

.category-scroll.is-scrollable {
  padding-right: 42px;
}

.category-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 1px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

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

.category-nav button,
.text-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 92%, #fff 8%);
  color: var(--ink);
  font-weight: 800;
}

.category-nav button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  scroll-snap-align: start;
  white-space: nowrap;
}

.category-scroll-button {
  position: absolute;
  top: calc(50% + 2px);
  z-index: 6;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid color-mix(in srgb, var(--fire) 22%, var(--line) 78%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, var(--fire-soft) 12%);
  color: var(--fire-dark);
  box-shadow: 0 8px 18px rgba(var(--fire-rgb), 0.1);
  transform: translateY(-50%);
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.category-scroll-button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.category-scroll-button.is-left {
  left: -2px;
}

.category-scroll-button.is-left::before {
  transform: translateX(2px) rotate(-135deg);
}

.category-scroll-button.is-right {
  right: 2px;
}

.category-scroll-button.is-right::before {
  transform: translateX(-2px) rotate(45deg);
}

.category-scroll-button:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--fire) 28%, var(--line) 72%);
  box-shadow: 0 10px 22px rgba(var(--fire-rgb), 0.14);
}

.category-nav button.is-active {
  border-color: color-mix(in srgb, var(--fire) 32%, transparent);
  background: color-mix(in srgb, var(--fire) 12%, var(--panel) 88%);
  color: var(--fire-dark);
  box-shadow: 0 8px 20px rgba(var(--fire-rgb), 0.08);
}

.today-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 8px 0 24px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(135deg, var(--fire-light) 0%, var(--fire) 46%, var(--fire-hot) 100%);
  color: #fff;
  box-shadow:
    0 18px 46px rgba(var(--fire-rgb), 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.today-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 50%, rgba(255, 255, 255, 0.14) 51%, transparent 72%);
  mix-blend-mode: screen;
}

.today-strip > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.today-strip span,
.section-heading span,
.cart-header span,
.payment-box > span,
.field span,
.modal-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.today-strip span {
  color: rgba(255, 255, 255, 0.75);
}

.today-strip h2 {
  margin: 4px 0 4px;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.today-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.today-strip button,
.primary-button,
.coupon-row button {
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
}

.today-strip button {
  position: relative;
  z-index: 1;
  min-height: 46px;
  padding: 0 18px;
  background: color-mix(in srgb, var(--panel) 94%, #fff 6%);
  color: var(--fire-dark);
  box-shadow: 0 12px 26px rgba(var(--fire-rgb), 0.12);
  white-space: nowrap;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.section-heading h2,
.cart-header h2 {
  margin: 2px 0 0;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.text-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
}

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

.menu-load-more {
  display: grid;
  grid-column: 1 / -1;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  color: var(--muted);
  font-weight: 900;
}

.menu-load-more button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fire-dark);
  font-weight: 950;
}

.product-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  min-height: 176px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel) 84%, var(--surface) 16%));
  box-shadow: 0 10px 30px rgba(30, 36, 34, 0.055);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--fire-rgb), 0.28);
  box-shadow: 0 18px 42px rgba(30, 36, 34, 0.12);
}

.product-image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--soft);
}

.product-image img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(24, 32, 29, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.product-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
}

.product-info h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.product-info p {
  display: -webkit-box;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.42;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.product-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2ede5;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.product-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.price {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 950;
}

.add-button,
.icon-button,
.qty-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  font-weight: 950;
}

.add-button {
  min-width: 44px;
  height: 40px;
  background: var(--fire-gradient);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 22px rgba(var(--fire-rgb), 0.24);
}

.add-button:hover,
.primary-button:hover {
  filter: saturate(1.04) brightness(1.02);
  box-shadow: 0 16px 34px rgba(var(--fire-rgb), 0.3);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 14px;
  background: color-mix(in srgb, var(--panel) 92%, #fff 8%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.cart-items {
  display: grid;
  gap: 10px;
  max-height: 310px;
  overflow: auto;
  padding: 14px 20px;
}

.add-more-items {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: -2px 20px 14px;
  padding: 0 14px;
  border: 1px solid rgba(var(--fire-rgb), 0.22);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 86%, rgba(var(--fire-rgb), 0.12));
  color: var(--fire);
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(var(--fire-rgb), 0.08);
}

.add-more-items:hover {
  border-color: rgba(var(--fire-rgb), 0.34);
  background: color-mix(in srgb, var(--panel) 76%, rgba(var(--fire-rgb), 0.18));
}

.add-more-items[hidden] {
  display: none;
}

.empty-state {
  padding: 22px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel) 86%, var(--surface) 14%));
  box-shadow: 0 8px 22px rgba(30, 36, 34, 0.05);
}

.cart-line h3 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.cart-line p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.cart-line-actions {
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.mini-stepper {
  display: inline-grid;
  grid-template-columns: 28px 28px 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.mini-stepper button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 950;
}

.mini-stepper span {
  display: grid;
  place-items: center;
  min-height: 28px;
  font-weight: 900;
}

.checkout-form {
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
}

.order-mode-field {
  display: grid;
  gap: 8px;
}

.order-mode-field > span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.order-mode-field .mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkout-form.is-phone-step {
  gap: 0;
}

.phone-first-card {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--fire) 22%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(var(--fire-rgb), 0.08), rgba(255, 255, 255, 0.94)),
    var(--surface);
  box-shadow: 0 16px 42px rgba(var(--fire-rgb), 0.1);
}

.phone-first-card > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.phone-first-card h3 {
  margin: 0;
  font-size: 1.22rem;
}

.phone-first-card p,
.phone-first-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.phone-first-card .primary-button {
  width: 100%;
}

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

.field.is-wide {
  grid-column: 1 / -1;
}

.profile-hint {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--mint) 24%, var(--line) 76%);
  border-radius: var(--radius);
  background: var(--mint-soft);
  color: var(--mint);
  font-size: 0.9rem;
  font-weight: 800;
}

.field small {
  min-height: 18px;
  color: var(--muted);
}

.coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.coupon-row button {
  min-height: 46px;
  padding: 0 14px;
  background: var(--mint);
  color: #fff;
}

.payment-box {
  display: grid;
  gap: 9px;
}

.payment-details {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.payment-details .field {
  margin-top: 8px;
}

.pix-key-card {
  display: grid;
  gap: 5px;
}

.pix-key-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pix-key-card strong,
.qr-box strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.pix-key-card small,
.whatsapp-missing {
  color: var(--muted);
  line-height: 1.35;
}

.totals {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.total-row strong {
  color: var(--ink);
}

.total-row.final {
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 950;
}

.primary-button {
  min-height: 52px;
  padding: 0 18px;
  background: var(--fire-gradient);
  color: #fff;
  box-shadow: 0 12px 30px rgba(var(--fire-rgb), 0.24);
}

.primary-button:disabled {
  cursor: not-allowed;
  background: #b8bfbb;
  box-shadow: none;
}

.order-success {
  margin: 0 20px 20px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--mint) 24%, var(--line) 76%);
  background: var(--mint-soft);
}

.order-success h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.order-success p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.42;
}

.pix-confirmation-card {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--fire) 24%, var(--line) 76%);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(var(--fire-rgb), 0.08), rgba(255, 255, 255, 0.9)),
    var(--panel);
}

.pix-confirmation-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pix-confirmation-card strong {
  color: var(--ink);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.pix-confirmation-card small,
.copy-pix-feedback {
  color: var(--muted);
  line-height: 1.35;
}

.copy-pix-button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: var(--fire-gradient);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(var(--fire-rgb), 0.18);
}

.order-success-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.qr-box {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.fake-qr {
  width: 98px;
  aspect-ratio: 1;
  border: 8px solid #fff;
  border-radius: 6px;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 18px, #111 18px 28px, transparent 28px 40px, #111 40px 50px, transparent 50px 60px, #111 60px 76px, transparent 76px),
    linear-gradient(#111 10px, transparent 10px 18px, #111 18px 28px, transparent 28px 40px, #111 40px 50px, transparent 50px 60px, #111 60px 76px, transparent 76px),
    #fff;
  background-size: 38px 38px, 42px 42px, auto;
  box-shadow: 0 0 0 1px var(--line);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--fire-gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(var(--fire-rgb), 0.18);
  text-decoration: none;
  font-weight: 900;
}

.whatsapp-missing {
  display: block;
  margin-top: 8px;
  font-weight: 800;
}

.order-tracker {
  display: grid;
  gap: 14px;
  margin: 0 20px 20px;
  padding: 16px;
  border: 1px solid rgba(30, 36, 34, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel) 86%, var(--surface) 14%));
  box-shadow: 0 12px 34px rgba(30, 36, 34, 0.08);
}

.tracker-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.tracker-head span,
.tracker-meta span,
.tracker-items span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tracker-head h3 {
  margin: 2px 0 0;
  font-size: 1.45rem;
}

.tracker-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--fire-soft);
  color: var(--fire-dark);
  font-size: 0.8rem;
  font-weight: 950;
  white-space: nowrap;
}

.tracker-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tracker-meta div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.tracker-meta strong {
  display: block;
  margin-top: 3px;
}

.tracker-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tracker-step {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 14px;
}

.tracker-step:last-child {
  padding-bottom: 0;
}

.tracker-step::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.tracker-step:last-child::before {
  display: none;
}

.tracker-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
}

.tracker-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.tracker-step.is-done .tracker-dot,
.tracker-step.is-active .tracker-dot {
  border-color: var(--mint);
}

.tracker-step.is-done .tracker-dot::after,
.tracker-step.is-active .tracker-dot::after {
  background: var(--mint);
}

.tracker-step.is-done::before {
  background: var(--mint);
}

.tracker-step strong {
  display: block;
  margin-bottom: 2px;
}

.tracker-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.tracker-items {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

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

.tracker-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tracker-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.tracker-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.tracker-actions button:first-child {
  border: 0;
  background: var(--ink);
  color: #fff;
}

.tracker-auto-note {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.25;
}

.tracker-auto-note.is-automatic {
  border-color: rgba(5, 150, 105, 0.22);
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
}

.order-history {
  display: grid;
  gap: 10px;
  margin: 0 20px 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}

.order-history > span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.history-card header,
.history-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.history-card h3 {
  margin: 0;
  font-size: 1rem;
}

.history-card time,
.history-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.history-card button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--fire-soft);
  color: var(--fire-dark);
  font-weight: 900;
}

.cart-fab {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 12px 0 18px;
  background: var(--fire-gradient);
  color: #fff;
  box-shadow: 0 18px 44px rgba(var(--fire-rgb), 0.3);
  font-weight: 950;
}

.fab-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.fab-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
}

.cart-fab strong {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--fire-dark);
  box-shadow: 0 10px 20px rgba(20, 16, 18, 0.16);
}

.screen-tint {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(14, 18, 17, 0.46);
  backdrop-filter: blur(5px);
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.26);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.modal-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 230px;
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-copy {
  padding: 24px;
}

.modal-copy h2 {
  margin: 4px 0 8px;
  font-size: 2.15rem;
  line-height: 1;
  letter-spacing: 0;
}

.modal-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.modal-body {
  display: grid;
  gap: 18px;
  padding: 0 24px 24px;
}

.option-group {
  display: grid;
  gap: 10px;
}

.option-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 950;
}

.choice-list {
  display: grid;
  gap: 8px;
}

.choice-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.choice-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--fire);
}

.quantity-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.quantity-control {
  grid-template-columns: 42px 46px 42px;
}

.quantity-control button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
}

.quantity-control output {
  display: grid;
  place-items: center;
  font-weight: 950;
}

.modal-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.modal-price {
  font-size: 1.35rem;
  font-weight: 950;
}

.modal-footer .primary-button {
  width: 100%;
}

.icon-button,
.qty-button {
  width: 38px;
  height: 38px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.mobile-only {
  display: none;
}

.no-results {
  padding: 40px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: #fff;
}

.store-unavailable-panel {
  display: grid;
  grid-column: 1 / -1;
  justify-items: start;
  min-height: 280px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid color-mix(in srgb, var(--fire) 18%, var(--line) 82%);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 96%, var(--fire) 4%), color-mix(in srgb, var(--surface) 90%, #fff 10%)),
    var(--panel);
  box-shadow: 0 20px 60px rgba(30, 36, 34, 0.08);
}

.store-unavailable-status {
  padding: 0 12px;
}

.store-unavailable-panel h3 {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.store-unavailable-panel p {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}

.admin-open {
  overflow: hidden;
}

.admin-open .admin-panel {
  display: grid;
}

.admin-open .cart-fab {
  display: none !important;
}

.admin-open {
  background: #f5f0e8;
}

.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 22, 20, 0.56);
  backdrop-filter: blur(8px);
}

.admin-shell {
  width: min(1180px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf4;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.admin-header span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-header h2 {
  margin: 2px 0 0;
  font-size: 1.55rem;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.admin-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.admin-tabs button.is-active {
  border-color: rgba(var(--fire-rgb), 0.28);
  background: var(--fire-soft);
  color: var(--fire-dark);
}

.admin-content {
  max-height: calc(100dvh - 164px);
  overflow: auto;
  padding: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-grid .is-wide,
.admin-actions.is-wide {
  grid-column: 1 / -1;
}

.admin-grid textarea {
  min-height: 96px;
}

.admin-two-col {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-list {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 0;
}

.admin-list > button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.admin-list > button.is-active {
  border-color: rgba(var(--fire-rgb), 0.3);
  background: var(--fire-soft);
}

.admin-list > button.primary-button {
  justify-content: center;
  border: 0;
  background: var(--fire-gradient);
  color: #fff;
  text-align: center;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-actions button:not(.primary-button) {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: #fff;
  color: var(--fire-dark);
  font-weight: 900;
}

.admin-report {
  display: grid;
  gap: 10px;
}

.admin-report h3 {
  margin: 0 0 4px;
}

.admin-report article {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-report small {
  grid-column: 1 / -1;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .order-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 360px);
  }

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

@media (max-width: 980px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .hero-content {
    padding-top: 28px;
    padding-bottom: 78px;
  }

  .hero-title {
    align-items: flex-end;
    gap: 12px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 4.75rem;
  }

  .hero-content p {
    font-size: 1.08rem;
  }

  .top-row {
    margin-bottom: 42px;
  }

  .order-layout {
    display: block;
    width: min(100% - 20px, 720px);
    margin-top: -48px;
  }

  .menu-area {
    padding: 12px;
  }

  .mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mode-tabs button {
    padding: 0 8px;
  }

  .category-scroll {
    position: sticky;
    top: 0;
    z-index: 8;
    margin: 0 -12px;
    padding: 0 12px;
    background: rgba(255, 252, 247, 0.9);
    backdrop-filter: blur(16px);
  }

  .category-scroll.is-scrollable {
    margin: 0 -12px;
    padding: 0 46px 0 12px;
  }

  .category-nav {
    padding: 12px 0 14px;
  }

  .category-nav button {
    box-shadow: 0 8px 18px rgba(30, 36, 34, 0.05);
  }

  .today-strip {
    grid-template-columns: 1fr;
    margin-top: 2px;
    padding: 16px;
  }

  .today-strip button {
    width: 100%;
  }

  .section-heading {
    align-items: start;
  }

  .product-card {
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 168px;
  }

  .product-image img {
    min-height: 168px;
  }

  .product-info {
    padding: 13px;
  }

  .product-info p {
    -webkit-line-clamp: 2;
  }

  .cart-panel {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    top: auto;
    z-index: 35;
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
    overflow: auto;
    transform: translateY(calc(100% + 24px));
    transition:
      transform 0.28s ease,
      box-shadow 0.28s ease;
  }

  .cart-panel::before {
    content: "";
    position: sticky;
    top: 0;
    z-index: 3;
    display: block;
    width: 46px;
    height: 5px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: rgba(30, 36, 34, 0.18);
  }

  body.cart-open .cart-panel {
    transform: translateY(0);
    box-shadow: 0 30px 90px rgba(12, 18, 16, 0.32);
  }

  body.cart-open .screen-tint:not([hidden]),
  body.product-open .screen-tint:not([hidden]) {
    display: block !important;
  }

  body.has-cart .cart-fab {
    display: flex;
  }

  body.cart-open .cart-fab {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

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

  .cart-items {
    max-height: min(250px, 32dvh);
  }

  .tracker-actions,
  .tracker-meta {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    max-height: calc(100dvh - 20px);
  }

  .admin-content {
    max-height: calc(100dvh - 150px);
    padding: 14px;
  }

  .admin-two-col,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-list {
    position: static;
    max-height: 220px;
    overflow: auto;
  }

  .admin-report article {
    grid-template-columns: 1fr;
  }

  .modal-hero {
    grid-template-columns: 1fr;
  }

  .modal-hero img {
    height: 220px;
  }

  .modal-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .restaurant-hero {
    min-height: 412px;
  }

  .hero-content {
    width: min(100% - 24px, 420px);
  }

  .top-row {
    padding-right: 54px;
    margin-bottom: 34px;
  }

  .hero-cart-shortcut {
    top: 44px;
    min-width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0 10px;
  }

  .hero-cart-shortcut > span:not(.hero-cart-icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .hero-cart-shortcut strong {
    position: absolute;
    top: -7px;
    right: -5px;
  }

  .hero-title {
    display: grid;
    gap: 12px;
  }

  .hero-content h1 {
    font-size: 3.45rem;
  }

  .hero-content p {
    margin-top: 16px;
  }

  .hero-metrics span {
    width: auto;
    font-size: 0.85rem;
  }

  .product-card {
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 150px;
  }

  .product-image img {
    height: 100%;
    min-height: 150px;
  }

  .product-badge {
    top: 8px;
    left: 8px;
    font-size: 0.66rem;
  }

  .product-info h3 {
    font-size: 1rem;
  }

  .product-info p {
    font-size: 0.93rem;
  }

  .product-meta span {
    font-size: 0.68rem;
  }

  .section-heading {
    flex-direction: column;
    gap: 10px;
  }

  .text-button {
    align-self: flex-start;
  }

  .payment-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: initial;
  }

  .mode-tabs button,
  .payment-options button {
    padding: 0 6px;
    font-size: 0.92rem;
  }

  .coupon-row {
    grid-template-columns: 1fr;
  }

  .qr-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .restaurant-hero {
    min-height: 390px;
  }

  .hero-content {
    padding-top: 22px;
    padding-bottom: 66px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-metrics {
    gap: 8px;
  }

  .hero-metrics span {
    min-height: 34px;
    padding: 7px 10px;
  }

  .order-layout {
    width: calc(100% - 12px);
    margin-top: -42px;
  }

  .menu-area {
    padding: 10px;
  }

  .search-box input {
    min-height: 46px;
    padding-right: 12px;
  }

  .category-nav {
    padding: 10px 0;
  }

  .today-strip {
    padding: 14px;
  }

  .today-strip h2 {
    font-size: 1.22rem;
  }

  .section-heading h2,
  .cart-header h2 {
    font-size: 1.35rem;
  }

  .product-card {
    grid-template-columns: 98px minmax(0, 1fr);
    min-height: 142px;
  }

  .product-image img {
    min-height: 142px;
  }

  .product-info {
    padding: 11px;
  }

  .product-info p {
    margin: 6px 0 8px;
  }

  .product-meta {
    gap: 5px;
  }

  .add-button {
    min-width: 40px;
    height: 38px;
  }

  .cart-panel {
    left: 4px;
    right: 4px;
    bottom: calc(4px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 8px - env(safe-area-inset-bottom));
  }

  .cart-header,
  .cart-items,
  .add-more-items,
  .checkout-form,
  .order-success,
  .order-tracker,
  .order-history {
    margin-left: 12px;
    margin-right: 12px;
  }

  .cart-header {
    padding: 16px 12px 12px;
    margin: 0;
  }

  .cart-items,
  .checkout-form {
    padding-left: 12px;
    padding-right: 12px;
  }

  .modal-card {
    max-height: calc(100dvh - 16px);
  }

  .product-modal {
    padding: 8px;
  }
}

@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 2.72rem;
  }

  .product-card {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 136px;
  }

  .product-image img {
    min-height: 136px;
  }

  .product-info h3 {
    font-size: 0.94rem;
  }

  .product-info p,
  .cart-line p {
    font-size: 0.84rem;
  }

  .product-meta span {
    padding: 4px 6px;
  }

  .price {
    font-size: 1rem;
  }

  .cart-fab {
    left: 8px;
    right: 8px;
  }
}
