:root {
  --ink: #1f1a10;
  --muted: #6b6250;
  --line: #eadfbf;
  --paper: #fffaf0;
  --surface: #ffffff;
  --brand: #FDC219;
  --brand-dark: #4b3900;
  --brand-soft: #fff4bf;
  --accent: #1f1a10;
  --green: #1f7a4b;
  --danger: #a72816;
  --shadow: 0 14px 32px rgba(96, 72, 0, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 250, 240, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.site-header.compact { min-height: 58px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  font-size: 14px;
}
.brand-logo {
  display: block;
  width: auto;
  height: 38px;
  max-width: 150px;
  object-fit: contain;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.breadcrumbs a {
  color: var(--brand-dark);
  text-decoration: none;
}
.breadcrumbs span::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted);
}
.cart-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
}

.hero {
  min-height: calc(100svh - 58px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: #2a2110;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: url('../images/placeholder-food.svg') center / cover no-repeat;
  transform: scale(1.03);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.72)),
    rgba(0,0,0,.18);
}
.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hero-copy {
  position: relative;
  padding: 52px 20px 92px;
  color: #fff;
  max-width: 720px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 40px; line-height: 1.04; margin-bottom: 14px; }
.hero p { font-size: 18px; line-height: 1.45; }
.hero .primary-action {
  display: none;
}
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.primary-action.full { width: 100%; }

.info-band, .details-grid, .featured, .order-shell, .checkout-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 28px 16px;
}
.info-band, .details-grid {
  display: grid;
  gap: 14px;
}
.details-grid > div, .info-band > article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.featured-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.food-card, .product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(71, 35, 19, .08);
}
.food-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.food-card h3, .food-card p { padding: 0 12px; }

.mobile-order-cta {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.pickup-panel h1 { font-size: 28px; margin-bottom: 12px; }
.chip-row, .category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.chip, .category-chip {
  min-height: 44px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 16px;
  font-weight: 700;
}
.chip.active, .category-chip.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.chip:disabled {
  color: #aaa;
  background: #f2eee9;
  cursor: not-allowed;
}
.inline-error {
  width: 100%;
  margin: 4px 0 10px;
  padding: 12px;
  border: 1px solid #edc46a;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
}
.category-nav {
  position: sticky;
  top: 58px;
  z-index: 12;
  background: var(--paper);
  padding: 10px 16px;
  margin: 0 -16px 12px;
  border-block: 1px solid var(--line);
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 92px;
}
.product-card {
  display: grid;
  gap: 8px;
  padding: 8px;
  align-content: start;
}
.product-card.is-unavailable {
  filter: grayscale(1);
  opacity: .58;
}
.product-card.is-unavailable img {
  opacity: .72;
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}
.product-copy h2 { font-size: 15px; line-height: 1.18; margin-bottom: 4px; }
.product-copy p { color: var(--muted); font-size: 12px; line-height: 1.25; margin-bottom: 7px; }
.product-category { color: var(--green); font-size: 12px; font-weight: 800; }
.sold-out-label {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #eeeeee;
  color: #555;
  font-size: 12px;
  font-weight: 800;
}
.qty-control {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.qty-control button {
  height: 40px;
  border: 0;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 800;
}
.qty-control button:disabled {
  color: #aaa;
  background: #eeeeee;
  cursor: not-allowed;
}
.qty-control span { text-align: center; font-weight: 800; }
.product-note {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
}
.product-note input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fffdf9;
}
.combo-options {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}
.combo-options legend {
  padding: 0 4px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}
.combo-options label {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.combo-options label.is-disabled {
  color: #8a857a;
  text-decoration: line-through;
}
.combo-options input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand);
}
.bottom-cart {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 28px rgba(71, 35, 19, .1);
}
.bottom-cart a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 40;
  max-width: min(420px, calc(100% - 28px));
  text-align: center;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 16px 38px rgba(31, 26, 16, .26);
}
.toast-alert {
  bottom: 96px;
  width: calc(100% - 28px);
  padding: 16px 18px;
  border: 2px solid var(--brand);
  background: #1f1a10;
  color: #fff7cc;
  font-size: 16px;
  box-shadow: 0 18px 42px rgba(31, 26, 16, .34), 0 0 0 4px rgba(253, 194, 25, .2);
  animation: toastPulse .24s ease-out;
}
@keyframes toastPulse {
  from {
    transform: translateX(-50%) translateY(8px) scale(.98);
    opacity: .35;
  }
  to {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
  }
}

.checkout-shell {
  display: grid;
  gap: 18px;
}
.summary-list, .checkout-form {
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.checkout-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
}
.checkout-item-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.checkout-item-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}
.checkout-item-main strong {
  color: var(--muted);
  font-size: 14px;
}
.checkout-item-main small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.checkout-item-actions {
  display: grid;
  grid-template-columns: 36px 30px 36px 36px;
  align-items: center;
  gap: 4px;
}
.checkout-item-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
}
.checkout-item-actions button[data-action="remove"] {
  padding: 0;
  background: #fff;
  color: var(--danger);
  font-size: 18px;
}
.checkout-item-actions strong {
  text-align: center;
}
.checkout-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.checkout-note input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fffdf9;
}
.summary-row.total { border-bottom: 0; font-size: 18px; }
.pickup-summary {
  padding: 12px;
  border-radius: 8px;
  background: var(--brand-soft);
  font-weight: 800;
}
.checkout-form label { display: grid; gap: 6px; font-weight: 700; }
.checkout-form input, .checkout-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffdf9;
}
.check-line {
  grid-template-columns: 22px 1fr;
  align-items: start;
  font-weight: 400;
}
.check-line input { min-height: 22px; }
.form-message { color: var(--brand-dark); font-weight: 700; }
.confirmation {
  width: min(620px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 42px 16px;
}

@media (min-width: 760px) {
  .site-header { padding-inline: 28px; }
  h1 { font-size: 58px; }
  .hero { min-height: 760px; }
  .hero-copy { padding-left: 52px; }
  .hero .primary-action { display: inline-flex; }
  .info-band, .details-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-band { grid-template-columns: 2fr 1fr; }
  .featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .checkout-shell { grid-template-columns: 1fr 420px; align-items: start; }
  .mobile-order-cta { display: none; }
  .bottom-cart { left: 50%; transform: translateX(-50%); width: min(720px, calc(100% - 28px)); border-radius: 8px 8px 0 0; }
}
