:root {
  --ink: #151922;
  --muted: #637083;
  --line: #dfe5ec;
  --paper: #fbfcfe;
  --panel: #ffffff;
  --brand: #b8202b;
  --brand-dark: #821923;
  --blue: #174d8f;
  --leaf: #167761;
  --gold: #f2c94c;
  --focus: #2563eb;
  --shadow: 0 18px 48px rgba(21, 25, 34, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, #fbfcfe 260px),
    var(--paper);
  font: 16px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

.order-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark img {
  width: 112px;
  height: 64px;
  object-fit: contain;
}

.brand-mark strong,
.brand-mark span {
  display: block;
}

.brand-mark strong {
  font-size: 22px;
  line-height: 1.1;
}

.brand-mark span {
  color: var(--muted);
  font-size: 14px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.cart-pill,
.text-btn,
.qty-btn,
.primary-btn,
.product-add,
.modal-close {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.icon-btn {
  width: 52px;
  height: 46px;
  font-weight: 800;
}

.icon-btn.is-active {
  border-color: var(--brand);
  color: var(--brand);
}

.cart-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  font-weight: 900;
}

.cart-pill span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
}

.site-main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(540px, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(184, 32, 43, 0.08), rgba(23, 77, 143, 0.08)),
    #fff;
}

.hero-copy {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.hero-copy img {
  width: 168px;
  height: 96px;
  flex: 0 0 auto;
  object-fit: contain;
}

.kicker {
  margin: 0 0 5px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-media {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 8px;
  overflow: hidden;
  border: 1px dashed #cbd6df;
  border-radius: 8px;
  background: #fff;
}

.hero-media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 210px;
}

.hero-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.hero-media-placeholder {
  background:
    linear-gradient(135deg, rgba(184, 32, 43, 0.08), rgba(255, 201, 63, 0.12)),
    #fff;
}

.business-hours-note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.business-hours-note span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--brand);
  background: rgba(184, 32, 43, 0.08);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.business-hours-note strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.business-hours-note.is-closed {
  border-color: rgba(184, 32, 43, 0.24);
  background: #fff8f8;
}

.promo-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin-top: 12px;
  padding: 12px 16px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--blue));
}

.promo-strip span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.promo-strip strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-promos {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.section-title strong {
  color: var(--muted);
  font-size: 13px;
}

.promo-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.promo-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  flex: 0 1 calc((100% - 30px) / 4);
  gap: 10px;
  align-items: center;
  min-width: min(100%, 260px);
  min-height: 86px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.promo-card img {
  grid-row: span 2;
  display: block;
  width: 72px;
  height: 70px;
  padding: 4px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: #fff;
}

.promo-card span,
.promo-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.promo-card span {
  font-weight: 850;
}

.promo-card strong {
  color: var(--brand);
}

.order-controls {
  position: sticky;
  top: 92px;
  z-index: 24;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 16px -18px 0;
  padding: 12px 18px;
  background: rgba(251, 252, 254, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  width: min(100%, 420px);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segment button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  font-weight: 900;
}

.segment button.is-active {
  color: #fff;
  background: var(--brand);
}

.search-box {
  display: grid;
  gap: 4px;
  width: min(100%, 420px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box input,
.checkout-fields input,
.checkout-fields select,
.checkout-fields textarea,
.item-note textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.search-box input:focus,
.checkout-fields input:focus,
.checkout-fields select:focus,
.checkout-fields textarea:focus,
.item-note textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--focus) 25%, transparent);
  border-color: var(--focus);
}

.order-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 360px;
  gap: 18px;
  padding-top: 18px;
}

.category-rail {
  position: sticky;
  top: 184px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.category-rail button {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  color: var(--ink);
  font-weight: 800;
}

.category-rail button.is-active {
  border-color: var(--brand);
  background: #fff4f5;
  color: var(--brand-dark);
}

.menu-pane {
  min-width: 0;
}

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

.product-card {
  display: grid;
  grid-template-rows: 168px auto;
  overflow: hidden;
  min-height: 338px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-card.is-sold-out {
  opacity: .62;
  filter: grayscale(.25);
}

.product-card.is-sold-out .product-image,
.product-card.is-sold-out .product-add {
  cursor: not-allowed;
}

.product-image {
  display: grid;
  place-items: center;
  width: 100%;
  height: 168px;
  min-height: 168px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}

.product-image.has-image {
  background: #fff !important;
}

.product-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.product-image span {
  color: #fff;
  font-size: 34px;
  font-weight: 950;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-title {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.product-title strong {
  font-size: 18px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.product-badge {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #ffe8d2;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-badge.is-sold-out {
  color: #991b1b;
  background: #fee2e2;
}

.product-dietary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-dietary-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 5px;
  padding: 4px 7px 4px 4px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #14532d;
  background: #f0fdf4;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-dietary-badge span {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  color: #fff;
  background: #15803d;
  font-size: 9px;
  line-height: 1;
}

.product-dietary-badge.is-vegan {
  border-color: #86efac;
  color: #064e3b;
  background: #dcfce7;
}

.product-dietary-badge.is-vegan span {
  background: #047857;
}

.product-dietary-badge.is-gluten-free {
  border-color: #fde68a;
  color: #713f12;
  background: #fffbeb;
}

.product-dietary-badge.is-gluten-free span {
  background: #ca8a04;
}

.product-desc {
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price {
  font-weight: 950;
}

.price-stack {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.price-prefix {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.price-old {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price-promo {
  color: var(--brand);
}

.product-add {
  width: 46px;
  height: 42px;
  color: #fff;
  border-color: var(--leaf);
  background: var(--leaf);
  font-size: 27px;
  line-height: 1;
}

.product-add:disabled,
.product-image:disabled {
  opacity: .62;
  cursor: not-allowed;
}

.cart-pane {
  position: sticky;
  top: 184px;
  align-self: start;
  display: grid;
  max-height: calc(100vh - 202px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cart-header,
.cart-footer {
  padding: 14px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.cart-header strong {
  font-size: 20px;
}

.text-btn {
  min-height: 38px;
  padding: 0 12px;
  color: var(--brand);
  background: #fff7f7;
}

.cart-items,
.checkout-items {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.saved-order-box,
.saved-checkout-box {
  display: grid;
  gap: 10px;
  margin: 12px;
  padding: 12px;
  border: 1px solid #b8d6ee;
  border-radius: 8px;
  background: #f0f8ff;
}

.saved-checkout-box {
  margin: 0;
}

.saved-order-box strong,
.saved-order-box span,
.saved-checkout-box strong {
  display: block;
}

.saved-order-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-action-btn {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #8ec9d4;
  border-radius: 8px;
  color: #075967;
  background: #fff;
  font-weight: 900;
}

.saved-action-btn.is-muted {
  color: var(--muted);
  border-color: var(--line);
  background: #f8fafc;
}

.cart-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.cart-item-top,
.cart-item-actions,
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-item strong {
  overflow-wrap: anywhere;
}

.cart-options,
.cart-note {
  color: var(--muted);
  font-size: 13px;
}

.qty-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  font-size: 20px;
  font-weight: 900;
}

.remove-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 900;
}

.cart-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.coupon-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #ffd27a;
  border-radius: 8px;
  background: #fff8e6;
}

.coupon-title {
  color: #7b4a00;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

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

.coupon-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.coupon-fields span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.coupon-fields input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 850;
}

.coupon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coupon-message {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.coupon-message.is-ok {
  color: var(--leaf);
}

.coupon-message.is-error {
  color: var(--brand);
}

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

.total-row strong {
  font-size: 20px;
}

.discount-row strong {
  color: var(--leaf);
}

.total-row.is-grand {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.total-row.is-grand strong {
  color: var(--brand);
  font-size: 23px;
}

.delivery-minimum-note {
  display: grid;
  gap: 3px;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(14, 102, 161, 0.18);
  border-radius: 8px;
  color: var(--muted);
  background: #f1f8fc;
  font-size: 12px;
  line-height: 1.3;
}

.delivery-minimum-note strong {
  color: var(--blue);
  font-size: 12px;
}

.delivery-minimum-note.is-short {
  border-color: rgba(184, 32, 43, 0.24);
  color: var(--brand-dark);
  background: #fff7f4;
}

.delivery-minimum-note.is-short strong {
  color: var(--brand);
}

.primary-btn {
  min-height: 54px;
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
  font-weight: 950;
}

.primary-btn:disabled,
.product-add:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.empty-state,
.error-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.error-state {
  color: var(--brand);
}

.modal-host,
.checkout-host {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(21, 25, 34, 0.48);
}

.modal-card,
.checkout-card {
  display: grid;
  gap: 14px;
  width: min(680px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.checkout-card {
  width: min(980px, 100%);
}

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

.modal-head h2 {
  margin: 0;
  font-size: 26px;
}

.modal-close {
  width: 44px;
  height: 42px;
  flex: 0 0 auto;
  font-size: 24px;
}

.modal-product-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 260px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.modal-product-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.modal-desc {
  margin: 0;
  color: var(--muted);
}

.option-group {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.option-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.option-title small {
  color: var(--muted);
  font-weight: 800;
}

.option-choice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.option-choice.is-sold-out {
  color: #64748b;
  background: #f1f5f9;
  opacity: .7;
}

.option-choice.is-sold-out b {
  color: #991b1b;
}

.option-choice span {
  overflow-wrap: anywhere;
}

.item-note {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.modal-actions .qty-group {
  justify-content: center;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 18px;
}

.checkout-layout h3 {
  margin: 0 0 10px;
}

.checkout-fields {
  display: grid;
  gap: 12px;
}

.checkout-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-fields .remember-customer {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.3;
  text-transform: none;
}

.remember-customer input {
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.payment-choice {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-choice legend {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-option {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px !important;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.payment-option input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red);
}

.payment-option strong,
.payment-option small {
  display: block;
}

.payment-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.checkout-message {
  padding: 12px 14px;
  border: 1px solid #f2b8bd;
  border-radius: 8px;
  background: #fff4f5;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
}

.checkout-message[data-type="info"] {
  border-color: #8ec9d4;
  background: #eefbfc;
  color: #0d6470;
}

.checkout-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.place-combo {
  position: relative;
}

.place-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.place-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: min(360px, 44vh);
  max-height: min(360px, 44vh);
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.place-panel input {
  min-height: 46px;
}

.place-options {
  display: grid;
  gap: 4px;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-right: 2px;
}

.place-options button {
  min-height: 42px;
  justify-content: start;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.place-options button:hover,
.place-options button.is-active {
  background: #eef2f7;
}

.delivery-fields {
  display: grid;
  gap: 12px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--leaf);
  box-shadow: var(--shadow);
}

.order-status-host {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(21, 25, 34, 0.52);
}

.order-status-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 16px;
  width: min(520px, 100%);
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.order-status-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.1;
}

.order-status-card p:not(.kicker) {
  margin: 0 0 12px;
  color: var(--muted);
}

.order-status-card strong {
  color: var(--brand);
  font-weight: 950;
}

.order-status-card .primary-btn {
  grid-column: 1 / -1;
}

.order-status-whatsapp-btn {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 50px;
  border-radius: 8px;
  color: #fff;
  background: #128c7e;
  font-weight: 950;
  text-decoration: none;
}

.order-status-cancel-btn {
  grid-column: 1 / -1;
  min-height: 50px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #fff5f5;
  font: inherit;
  font-weight: 950;
}

.order-status-cancel-btn:active {
  transform: translateY(1px);
}

.order-status-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 5px solid #fecaca;
  border-top-color: var(--brand);
  border-radius: 50%;
  color: var(--brand);
  font-weight: 950;
  animation: order-status-spin 1s linear infinite;
}

.order-status-card.is-approved .order-status-mark,
.order-status-card.is-cancelled .order-status-mark {
  border-color: var(--leaf);
  animation: none;
}

.order-status-card.is-cancelled .order-status-mark {
  border-color: var(--brand);
}

@keyframes order-status-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1180px) {
  .hero-band {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-width: 0;
  }

  .order-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .cart-pane {
    position: static;
    grid-column: 1 / -1;
    max-height: none;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 15px;
  }

  .order-status-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-header {
    min-height: 76px;
    padding: 8px 10px;
  }

  .brand-mark {
    gap: 8px;
  }

  .brand-mark img {
    width: 82px;
    height: 48px;
  }

  .brand-mark strong {
    font-size: 18px;
  }

  .brand-mark span {
    font-size: 12px;
  }

  .icon-btn {
    width: 44px;
    height: 42px;
  }

  .cart-pill {
    min-height: 42px;
    padding: 0 10px;
  }

  .site-main {
    padding: 12px;
  }

  .hero-band {
    padding: 16px;
  }

  .hero-copy {
    align-items: start;
  }

  .hero-copy img {
    width: 104px;
    height: 70px;
  }

  .hero-copy h1 {
    font-size: 29px;
  }

  .hero-copy p:last-child {
    font-size: 15px;
  }

  .hero-media,
  .hero-media-placeholder {
    min-height: 170px;
  }

  .promo-cards {
    justify-content: stretch;
  }

  .promo-card {
    flex-basis: 100%;
  }

  .order-controls {
    top: 76px;
    align-items: stretch;
    flex-direction: column;
    margin: 12px -12px 0;
    padding: 10px 12px;
  }

  .segment,
  .search-box {
    width: 100%;
  }

  .order-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 12px;
  }

  .category-rail {
    position: sticky;
    top: 196px;
    z-index: 20;
    display: flex;
    overflow-x: auto;
    padding: 4px 0;
    background: rgba(251, 252, 254, 0.94);
  }

  .category-rail button {
    flex: 0 0 auto;
    min-width: 130px;
  }

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

  .product-card {
    grid-template-columns: 116px minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 166px;
  }

  .product-image {
    height: 166px;
    min-height: 166px;
  }

  .product-body {
    padding: 12px;
  }

  .product-desc {
    min-height: 0;
  }

  .cart-pane {
    position: sticky;
    bottom: 0;
    z-index: 28;
    max-height: 58vh;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -12px 32px rgba(21, 25, 34, 0.14);
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .modal-host,
  .checkout-host {
    align-items: end;
    padding: 0;
  }

  .modal-card,
  .checkout-card {
    width: 100%;
    max-height: 94vh;
    border-radius: 8px 8px 0 0;
  }

  .modal-product-image {
    height: 210px;
  }

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

@media (max-width: 480px) {
  .top-actions {
    gap: 5px;
  }

  .icon-btn {
    width: 40px;
  }

  .cart-pill {
    gap: 6px;
  }

  .cart-pill span:last-child {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark div {
    display: none;
  }
}

/* Hard image reset for product photos: always show the complete original image. */
.product-card {
  grid-template-rows: 220px auto;
  min-height: 390px;
}

.product-image {
  position: relative;
  display: block;
  height: 220px;
  min-height: 220px;
  padding: 0 !important;
  background: #fff !important;
}

.product-image img {
  position: absolute !important;
  inset: 10px !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 20px) !important;
  max-height: calc(100% - 20px) !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

.promo-card img,
.modal-product-image img,
.hero-media img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 760px) {
  .product-card {
    grid-template-columns: 116px minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 166px;
  }

  .product-image {
    height: 166px;
    min-height: 166px;
  }
}

/* Product option modal photos use their own fit box so tall/wide originals never crop. */
.modal-product-image {
  display: grid !important;
  place-items: center !important;
  height: clamp(280px, 38vh, 420px) !important;
  padding: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.modal-product-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff !important;
}

@media (max-width: 760px) {
  .modal-product-image {
    height: clamp(240px, 34vh, 340px) !important;
  }
}

.cart-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn,
.mobile-cart-backdrop,
.mobile-cart-bar {
  display: none;
}

@media (max-width: 760px) {
  html {
    scroll-padding-bottom: 96px;
  }

  body.has-cart {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  body.cart-drawer-open {
    overflow: hidden;
  }

  .site-header {
    position: static;
    gap: 8px;
    min-height: 66px;
    padding: 7px 10px;
  }

  .brand-mark {
    flex: 0 0 auto;
  }

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

  .brand-mark div {
    display: none;
  }

  .top-actions {
    flex: 1 1 auto;
    justify-content: end;
    gap: 4px;
    min-width: 0;
  }

  .icon-btn {
    width: 40px;
    height: 38px;
  }

  .cart-pill {
    min-height: 38px;
    padding: 0 9px;
  }

  .cart-pill span:first-child {
    width: 24px;
    height: 24px;
  }

  .cart-pill span:last-child {
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-main {
    padding: 10px;
  }

  .hero-band {
    display: none;
  }

  .promo-strip {
    min-height: 48px;
    margin-top: 8px;
    padding: 10px 12px;
  }

  .promo-strip strong {
    font-size: 14px;
  }

  .today-promos {
    margin-top: 10px;
  }

  .section-title {
    padding: 0 2px;
  }

  .promo-card {
    grid-template-columns: 62px minmax(0, 1fr);
    flex-basis: 100%;
    min-height: 78px;
    padding: 8px;
  }

  .promo-card img {
    width: 62px !important;
    height: 60px !important;
  }

  .order-controls {
    position: static;
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    margin: 14px 0 0;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .segment {
    width: 100%;
  }

  .segment button {
    min-height: 48px;
    font-size: 15px;
  }

  .search-box {
    width: 100%;
  }

  .order-layout {
    display: block;
    padding-top: 10px;
  }

  .category-rail {
    position: sticky;
    top: 0;
    z-index: 24;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -10px 10px;
    padding: 8px 10px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(251, 252, 254, 0.97);
    scrollbar-width: none;
  }

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

  .category-rail button {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 42px;
    padding: 0 13px;
    white-space: nowrap;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-card {
    grid-template-columns: 108px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    min-height: 134px !important;
  }

  .product-image {
    height: 134px !important;
    min-height: 134px !important;
  }

  .product-image img {
    inset: 8px !important;
    max-width: calc(100% - 16px) !important;
    max-height: calc(100% - 16px) !important;
  }

  .product-body {
    gap: 7px;
    padding: 10px;
  }

  .product-title {
    gap: 5px;
  }

  .product-title strong {
    font-size: 16px;
  }

  .product-badge {
    font-size: 10px;
  }

  .product-desc {
    display: -webkit-box;
    min-height: 0;
    max-height: 54px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .product-foot {
    align-self: end;
  }

  .product-add {
    width: 44px;
    height: 40px;
  }

  .cart-pane {
    position: fixed !important;
    inset: auto 0 0 0;
    z-index: 55;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: min(86vh, 720px);
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -20px 52px rgba(21, 25, 34, 0.24);
    transform: translateY(110%);
    transition: transform 180ms ease;
  }

  body.cart-drawer-open .cart-pane {
    transform: translateY(0);
  }

  .cart-header {
    min-height: 62px;
  }

  .cart-close-btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 20px;
    font-weight: 850;
  }

  .cart-items {
    min-height: 160px;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .cart-items .empty-state {
    min-height: 170px;
  }

  .cart-footer {
    position: static;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 54;
    background: rgba(21, 25, 34, 0.44);
  }

  body.cart-drawer-open .mobile-cart-backdrop {
    display: block;
  }

  .mobile-cart-bar {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    z-index: 50;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
    border-radius: 14px;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 16px 44px rgba(21, 25, 34, 0.28);
  }

  body.has-cart .mobile-cart-bar {
    display: flex;
  }

  body.cart-drawer-open .mobile-cart-bar {
    display: none;
  }

  .mobile-cart-bar span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .mobile-cart-bar b {
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--brand);
    background: #fff;
    font-style: normal;
  }

  .mobile-cart-bar small,
  .mobile-cart-bar em {
    font-style: normal;
    font-weight: 950;
  }

  .mobile-cart-bar strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-cart-bar em {
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--ink);
    background: var(--gold);
  }

  .place-panel {
    height: auto;
    max-height: min(360px, 54dvh);
    overflow: hidden;
  }

  .place-options {
    max-height: min(260px, 38dvh);
    overflow-y: auto;
  }

  .place-options button {
    min-height: 48px;
  }
}

/* Product zoom modal must sit above the public header and show the full photo. */
.modal-host,
.checkout-host {
  z-index: 140 !important;
}

.modal-card {
  max-height: min(820px, calc(100dvh - 36px)) !important;
}

.modal-product-image {
  height: auto !important;
  min-height: 0 !important;
  max-height: min(56dvh, 520px) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.modal-product-image img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: min(56dvh, 520px) !important;
  object-fit: contain !important;
  object-position: center !important;
}
