:root {
  --color-primary: #d63b1f;
  --color-secondary: #1c1712;
  --color-accent: #f7b733;
  --color-cream: #fff0cf;
  --color-surface: #fffaf0;
  --color-ink: #1d1915;
  --color-muted: #75695f;
  --color-line: #ead8bd;
  --color-success: #198754;
  --color-danger: #c73b2d;
  --shadow-float: 0 18px 40px rgba(29, 25, 21, 0.18);
  --radius-card: 8px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #1c1712 0, #3a1d12 210px, var(--color-cream) 440px, var(--color-surface) 100%);
  color: var(--color-ink);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.app-shell {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--color-surface);
  box-shadow: 0 0 0 1px rgba(29, 25, 21, 0.06);
}

.restaurant-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 330px;
  background:
    linear-gradient(160deg, rgba(214, 59, 31, 0.94), rgba(28, 23, 18, 0.96) 58%),
    var(--color-secondary);
  color: #fff;
}

.restaurant-header::after {
  position: absolute;
  inset: auto -10% -84px -10%;
  z-index: -1;
  height: 170px;
  border-radius: 50% 50% 0 0;
  background: var(--color-surface);
  content: "";
}

.hero-visual {
  position: absolute;
  right: -32px;
  bottom: 2px;
  z-index: -1;
  width: 240px;
  height: 220px;
  opacity: 0.92;
}

.trompo-skewer {
  position: absolute;
  left: 116px;
  top: 8px;
  width: 5px;
  height: 178px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9e4ad, #8c5a32);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.trompo-pineapple {
  position: absolute;
  left: 92px;
  top: 24px;
  width: 54px;
  height: 34px;
  border-radius: 14px 14px 20px 20px;
  background:
    linear-gradient(45deg, transparent 42%, rgba(255, 255, 255, 0.28) 43% 50%, transparent 51%),
    linear-gradient(180deg, #ffd44f, #e69621);
}

.trompo-meat {
  position: absolute;
  left: 48px;
  top: 58px;
  width: 142px;
  height: 124px;
  border-radius: 58% 42% 54% 46% / 20% 20% 80% 80%;
  background:
    repeating-linear-gradient(180deg, rgba(255, 180, 84, 0.38) 0 8px, rgba(118, 38, 20, 0.28) 9px 15px),
    linear-gradient(135deg, #e96d27, #9f2c18 55%, #4e160f);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.3);
  transform: rotate(7deg);
}

.trompo-base {
  position: absolute;
  left: 66px;
  top: 174px;
  width: 120px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3b2318, #180c08);
}

.taco-orbit {
  position: absolute;
  border: 4px solid #f2c56b;
  border-top-color: #f7e0a8;
  border-radius: 50%;
  background: rgba(43, 96, 49, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.taco-one {
  right: 7px;
  bottom: 44px;
  width: 68px;
  height: 38px;
  transform: rotate(-14deg);
}

.taco-two {
  left: 4px;
  bottom: 16px;
  width: 78px;
  height: 42px;
  transform: rotate(15deg);
}

.header-content {
  position: relative;
  z-index: 2;
  padding: 16px 16px 34px;
}

.topbar,
.brand-lockup,
.order-context,
.cart-fab,
.sheet-header,
.total-row,
.quantity-control {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  min-width: 0;
  gap: 10px;
}

.logo-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--color-accent);
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 900;
  line-height: 0.96;
}

.status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.status-pill::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  content: "";
}

.status-pill.closed::before {
  background: var(--color-danger);
}

.tagline {
  width: min(72%, 24rem);
  margin: 20px 0 8px;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.08;
}

.description {
  width: min(76%, 24rem);
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.42;
}

.order-context {
  gap: 8px;
  width: min(78%, 24rem);
  margin-bottom: 10px;
}

.order-context > div {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.order-context span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.order-context strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.2;
}

.closed-notice {
  display: none;
  width: min(84%, 25rem);
  margin-bottom: 10px;
  border: 1px solid rgba(245, 181, 51, 0.42);
  border-radius: 8px;
  padding: 10px;
  background: rgba(245, 181, 51, 0.14);
  color: #ffe6a3;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

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

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.quick-action {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 10px 6px;
  background: rgba(23, 20, 18, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.quick-action.accent {
  border-color: transparent;
  background: #25d366;
}

.promo-strip {
  display: grid;
  gap: 10px;
  padding: 14px 16px 2px;
}

.promo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(217, 47, 36, 0.18);
  border-radius: 8px;
  padding: 13px;
  background:
    radial-gradient(circle at 10% 10%, rgba(245, 181, 51, 0.28), transparent 34%),
    linear-gradient(135deg, #fff, #fff0d3);
}

.promo-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--color-primary);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-card h2 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  line-height: 1.1;
}

.promo-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.promo-actions {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.promo-card strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 11px;
  background: var(--color-secondary);
  color: #fff;
  font-size: 1rem;
}

.promo-actions button {
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.promo-status {
  border-radius: 999px;
  padding: 8px 11px;
  background: #2b843e;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.category-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  border-bottom: 1px solid var(--color-line);
  background: rgba(255, 250, 242, 0.96);
  backdrop-filter: blur(16px);
}

.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 11px 16px 12px;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.category-pill {
  flex: 0 0 auto;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff;
  color: var(--color-muted);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.category-pill.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 7px 18px rgba(217, 47, 36, 0.2);
}

main {
  padding: 16px 16px calc(132px + env(safe-area-inset-bottom));
}

.menu-section {
  scroll-margin-top: 78px;
  margin-bottom: 26px;
}

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

.section-heading p {
  margin: 0 0 4px;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.05;
}

.section-heading span {
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.product-list {
  display: grid;
  gap: 10px;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  min-height: 136px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: #fff;
}

.product-card.sold-out {
  opacity: 0.64;
}

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

.badge {
  align-self: flex-start;
  margin-bottom: 7px;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(245, 181, 51, 0.24);
  color: #875a00;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge.picante {
  background: rgba(217, 47, 36, 0.12);
  color: var(--color-primary);
}

.badge.nuevo,
.badge.combo {
  background: rgba(23, 20, 18, 0.08);
  color: var(--color-secondary);
}

.badge.sold {
  background: rgba(199, 59, 45, 0.1);
  color: var(--color-danger);
}

.badge.promo {
  background: rgba(43, 132, 62, 0.14);
  color: #236a2f;
}

.product-card.promo-active {
  border-color: rgba(43, 132, 62, 0.35);
  box-shadow: inset 0 0 0 1px rgba(43, 132, 62, 0.08);
}

.product-card h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  line-height: 1.2;
}

.product-card p {
  display: -webkit-box;
  flex: 1;
  margin-bottom: 10px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.83rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.promo-note {
  margin: -2px 0 9px;
  color: #236a2f;
  font-size: 0.73rem;
  font-weight: 900;
  line-height: 1.25;
}

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

.price {
  font-size: 1.05rem;
  font-weight: 900;
}

.add-button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--color-secondary);
  color: #fff;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1;
}

.add-button:disabled {
  background: #d9d0c4;
  color: #8b8379;
  cursor: not-allowed;
}

.product-media {
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--color-cream);
}

.product-media img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.44), transparent 24%),
    linear-gradient(145deg, rgba(217, 47, 36, 0.94), rgba(245, 181, 51, 0.86));
}

.placeholder-art span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}

.placeholder-taco .placeholder-art {
  background:
    radial-gradient(circle at 62% 18%, rgba(255, 255, 255, 0.32), transparent 24%),
    linear-gradient(145deg, #f2c56b, #d63b1f 58%, #2b843e);
}

.placeholder-gringa .placeholder-art {
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.42), transparent 22%),
    linear-gradient(145deg, #f7b733, #9f2c18);
}

.placeholder-torta .placeholder-art {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.4), transparent 25%),
    linear-gradient(145deg, #bf7b2f, #1c1712);
}

.placeholder-papa .placeholder-art {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.42), transparent 22%),
    linear-gradient(145deg, #f2c56b, #7c3b1c);
}

.placeholder-kilo .placeholder-art {
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.36), transparent 24%),
    linear-gradient(145deg, #d63b1f, #1c1712);
}

.placeholder-drink .placeholder-art {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.5), transparent 25%),
    linear-gradient(145deg, #2d7dd2, #171412);
}

.site-footer {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(217, 47, 36, 0.16);
  padding: 18px 16px calc(128px + env(safe-area-inset-bottom));
  background: #171412;
  color: #fff;
}

.footer-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-title {
  margin-bottom: 7px;
  color: var(--color-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-card p:not(.footer-title) {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.footer-link {
  display: inline-flex;
  margin-top: 11px;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

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

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.88rem;
}

.hours-list strong {
  color: #fff;
}

.fine-print,
.powered,
.microcopy,
.helper-text {
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.site-footer .fine-print,
.site-footer .powered {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
}

.powered strong {
  color: var(--color-accent);
}

.cart-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 30;
  justify-content: space-between;
  width: min(488px, calc(100% - 32px));
  margin: 0 auto;
  border-radius: 999px;
  padding: 13px 16px;
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-float);
  font-weight: 900;
  transform: translateY(120%);
  transition: transform 180ms ease;
}

.cart-fab.visible {
  transform: translateY(0);
}

.cart-count {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(23, 20, 18, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-sheet {
  width: min(100%, 520px);
  max-height: min(92dvh, 760px);
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: var(--color-surface);
  transform: translateY(28px);
  transition: transform 220ms ease;
}

.modal-backdrop.open .cart-sheet {
  transform: translateY(0);
}

/* A closed sheet must never intercept the tap intended for "Ver pedido". */
#cartModal:not(.open) .cart-sheet { visibility: hidden; pointer-events: none; }

.option-backdrop {
  z-index: 50;
}

.option-sheet {
  width: min(100%, 520px);
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: var(--color-surface);
  transform: translateY(28px);
  transition: transform 220ms ease;
}

.modal-backdrop.open .option-sheet {
  transform: translateY(0);
}

/* Fixed action areas: only the order details and options scroll. */
.cart-sheet,
.option-sheet {
  display: flex;
  flex-direction: column;
  height: min(92dvh, 760px);
  max-height: min(92dvh, 760px);
}
.cart-sheet { position: relative; }
.cart-sheet .sheet-body,
.option-sheet .option-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cart-sheet .sheet-body { padding-bottom: 104px; }
.cart-sheet .sheet-header,
.option-sheet .sheet-header { touch-action: none; }
.cart-sheet.is-dragging,
.option-sheet.is-dragging { transition: none; }
.cart-submit-bar,
.option-submit-bar {
  flex: 0 0 auto;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  background: transparent;
  text-align: center;
}
.cart-submit-bar { position: absolute; right: 0; bottom: 0; left: 0; z-index: 4; pointer-events: none; }
.cart-submit-bar .submit-order,
.option-submit-bar .option-submit {
  display: inline-flex;
  width: min(100%, 488px);
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(23, 20, 18, 0.22);
}
.cart-submit-bar .microcopy { margin: 8px 0 0; text-align: center; }
.cart-submit-bar .submit-order { pointer-events: auto; }
.whatsapp-submit-icon { width: 17px; height: 17px; flex: 0 0 auto; fill: currentColor; }

/* Shared compact cart trigger rule. */
.cart-fab { width: min(400px, calc(100% - 64px)); }

/* More breathing room for the final order details. */
.cart-sheet .order-form { gap: 16px; }
.cart-sheet .delivery-fields { gap: 14px; }

.option-body {
  display: grid;
  gap: 14px;
  padding: 14px 16px calc(20px + env(safe-area-inset-bottom));
}

/* El selector crece con sus opciones; solo usa scroll cuando el contenido lo requiere. */
.option-sheet { height: auto; max-height: min(92dvh, 760px); }
.option-sheet .option-body { flex: 0 1 auto; max-height: calc(min(92dvh, 760px) - 142px); }

.option-description {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.option-scope {
  margin: 0;
  border: 1px solid rgba(217, 47, 36, 0.16);
  border-radius: 8px;
  padding: 10px 11px;
  background: rgba(255, 243, 223, 0.72);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
}

.option-group {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.option-group legend {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.option-choice-list label {
  position: relative;
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
  color: var(--color-muted);
  font-weight: 900;
}

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

.option-choice-list label:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.option-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(214, 59, 31, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 240, 207, 0.58);
}

.option-quantity > span {
  color: var(--color-muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.option-quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-quantity-control button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--color-ink);
  font-weight: 900;
}

.option-quantity-control button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.option-quantity-control strong {
  min-width: 22px;
  text-align: center;
  font-size: 1.08rem;
}

.sheet-grip {
  width: 42px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #d8cbbc;
}

.sheet-header {
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--color-line);
  padding: 14px 16px;
}

.sheet-header .eyebrow {
  color: var(--color-muted);
}

.sheet-header h2 {
  margin: 0;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--color-cream);
  color: var(--color-ink);
  font-weight: 900;
}

.sheet-body {
  max-height: calc(min(92dvh, 760px) - 82px);
  overflow-y: auto;
  padding: 12px 16px calc(22px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.cart-items {
  display: grid;
  gap: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid var(--color-line);
  padding: 12px 0;
}

.cart-item-copy {
  min-width: 0;
}

.cart-item-copy > strong {
  display: block;
  margin-bottom: 2px;
}

.cart-item-copy small {
  display: block;
  color: var(--color-muted);
  font-weight: 700;
}

.edit-options-button {
  justify-self: start;
  margin-top: 8px;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--color-cream);
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 900;
}

.cart-line-total {
  grid-column: 2;
  white-space: nowrap;
}

.quantity-control {
  grid-column: 2;
  grid-row: 2;
  gap: 6px;
}

.quantity-control button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-cream);
  color: var(--color-ink);
  font-weight: 900;
}

.quantity-control span {
  min-width: 18px;
  text-align: center;
  font-weight: 900;
}

.cart-note {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.cart-note span,
.order-form label > span {
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-note textarea,
.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--color-ink);
  outline: none;
}

.cart-note textarea {
  min-height: 56px;
  resize: vertical;
}

.total-row {
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 4px;
  font-size: 1rem;
}

.total-row strong {
  font-size: 1.28rem;
}

.helper-text {
  min-height: 1em;
  margin: 0 0 12px;
  color: var(--color-danger);
  font-weight: 700;
}

.order-form {
  display: grid;
  gap: 12px;
}

.order-form label,
.delivery-fields {
  display: grid;
  gap: 7px;
}

.delivery-fields {
  border: 1px solid rgba(217, 47, 36, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 243, 223, 0.58);
}

.order-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.order-type legend {
  grid-column: 1 / -1;
  margin-bottom: 1px;
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-type label {
  position: relative;
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.order-type label > span {
  color: inherit;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.order-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-type label:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(217, 47, 36, 0.18);
}

.field-hint {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus,
.cart-note textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(217, 47, 36, 0.13);
}

.order-form textarea {
  min-height: 82px;
  resize: vertical;
}

.hidden {
  display: none !important;
}

.submit-order {
  border-radius: 8px;
  padding: 15px;
  background: #25d366;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.submit-order:disabled {
  background: #b8b1aa;
  cursor: not-allowed;
}

.microcopy {
  margin: -4px 0 0;
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 82px;
  left: 18px;
  z-index: 60;
  width: min(484px, calc(100% - 36px));
  margin: 0 auto;
  border-radius: 8px;
  padding: 12px 14px;
  background: #171412;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  body {
    padding: 28px 0;
  }

  .app-shell {
    overflow: hidden;
    border-radius: 18px;
  }

  .cart-fab {
    right: 0;
    left: 0;
  }
}

@media (max-width: 380px) {
  .product-card {
    grid-template-columns: minmax(0, 1fr) 98px;
  }

  .tagline,
  .description,
  .order-context,
  .closed-notice {
    width: min(82%, 24rem);
  }

  .quick-action {
    font-size: 0.72rem;
  }
}
