:root {
  --color-primary: #f05a28;
  --color-secondary: #17594a;
  --color-accent: #f8c14a;
  --color-ink: #181512;
  --color-muted: #776d63;
  --color-soft: #fff2df;
  --color-surface: #fffaf1;
  --color-line: #ead7bd;
  --color-success: #198754;
  --color-danger: #c73b2d;
  --shadow-float: 0 18px 40px rgba(33, 31, 29, 0.18);
  --radius-card: 8px;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 90, 31, 0.16), transparent 32%),
    linear-gradient(180deg, #15120f 0, #fff2df 320px, #fffaf1 100%);
  color: var(--color-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

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

.restaurant-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #211f1d;
  color: #fff;
}

.cover-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.cover-media.placeholder-cover {
  background:
    radial-gradient(circle at 73% 27%, rgba(248, 193, 74, 0.4) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 58%, rgba(255, 90, 31, 0.56) 0 7px, transparent 8px),
    radial-gradient(circle at 61% 73%, rgba(15, 95, 74, 0.74) 0 13px, transparent 14px),
    linear-gradient(135deg, #0f5f4a, #1e1a16 58%, #f05a28);
}

.restaurant-header::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(9, 8, 7, 0.28), rgba(9, 8, 7, 0.88)),
    radial-gradient(circle at 25% 10%, rgba(255, 90, 31, 0.44), transparent 30%),
    linear-gradient(90deg, rgba(255, 90, 31, 0.28), rgba(15, 95, 74, 0.32));
}

.header-content {
  padding: 16px 16px 18px;
}

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

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

.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.32);
  border-radius: 8px;
  background: rgba(15, 95, 74, 0.6);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

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

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

h1 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(1.86rem, 8.4vw, 3rem);
  line-height: 0.95;
}

.status-pill {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  border: 1px solid rgba(255, 78, 78, 0.72);
  border-radius: 8px;
  padding: 8px 12px 7px;
  background: linear-gradient(180deg, rgba(35, 8, 12, 0.82), rgba(13, 9, 10, 0.86));
  color: #ffe8e8;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 0 14px rgba(255, 61, 64, 0.34), 0 10px 24px rgba(0, 0, 0, 0.24);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 5px rgba(255, 94, 94, 0.95), 0 0 14px rgba(255, 57, 64, 0.82), 0 0 26px rgba(255, 57, 64, 0.48);
  backdrop-filter: blur(12px);
}

.status-pill::before {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  pointer-events: none;
  content: "";
}

.status-pill:not(.closed) {
  border-color: rgba(70, 255, 166, 0.72);
  color: #eafff3;
  background: linear-gradient(180deg, rgba(5, 35, 21, 0.82), rgba(7, 14, 11, 0.86));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 0 14px rgba(38, 215, 119, 0.34), 0 10px 24px rgba(0, 0, 0, 0.24);
  text-shadow: 0 0 5px rgba(71, 255, 164, 0.95), 0 0 14px rgba(37, 211, 102, 0.82), 0 0 26px rgba(37, 211, 102, 0.48);
}

.tagline {
  max-width: 36rem;
  margin: 14px 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  line-height: 1.44;
}

.order-context {
  gap: 8px;
  margin-bottom: 12px;
}

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

.context-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.order-context strong {
  display: block;
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

.category-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  border-bottom: 1px solid var(--color-line);
  background: rgba(255, 250, 241, 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.85rem;
  font-weight: 800;
  white-space: nowrap;
}

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

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

.builder-section {
  margin-top: 0;
}

.builder-card {
  overflow: hidden;
  border: 1px solid rgba(255, 90, 31, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 90, 31, 0.13), transparent 34%),
    linear-gradient(180deg, #201b16, #12100e);
  color: #fff;
  box-shadow: 0 18px 36px rgba(24, 21, 18, 0.14);
}

.builder-head {
  padding: 16px 14px 8px;
}

.builder-kicker {
  display: inline-flex;
  margin-bottom: 9px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 90, 31, 0.18);
  color: var(--color-accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.builder-head h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
}

.builder-head p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.42;
}

.builder-block {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
}

.builder-block-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.builder-block-title span {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.builder-block-title small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}

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

.option-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-grid.ingredients {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-btn {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 9px 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.16;
  text-align: center;
}

.choice-btn.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 90, 31, 0.24);
}

.choice-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.builder-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 14px;
  background: rgba(18, 16, 14, 0.92);
  backdrop-filter: blur(12px);
}

.builder-summary span {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.builder-summary small {
  display: block;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-summary strong {
  font-size: 1.36rem;
}

.builder-actions {
  display: grid;
  gap: 7px;
}

.builder-add,
.builder-cancel {
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.builder-add {
  background: var(--color-secondary);
}

.builder-add.confirmed {
  background: #25d366;
}

.builder-add:disabled {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.52);
  cursor: not-allowed;
}

.builder-cancel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.builder-note {
  display: grid;
  gap: 7px;
}

.builder-note span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.builder-note textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  resize: vertical;
}

.builder-note textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

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

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

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.38rem;
}

.section-heading span {
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

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

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

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

.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(248, 193, 74, 0.24);
  color: #8a5b00;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.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.84rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.product-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

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

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

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

.product-count-badge {
  display: none;
  min-width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 6px;
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.has-product-count .product-count-badge {
  display: inline-flex;
}

.product-remove-button {
  display: none;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.has-product-count .product-remove-button.visible {
  display: inline-flex;
}

.product-remove-button.confirm-delete-button {
  width: auto;
  min-width: 58px;
  padding: 0 9px;
  background: var(--color-danger);
  font-size: 0.68rem;
}

.product-photo {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: var(--color-soft);
}

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

.product-photo::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12));
}

.image-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 10px;
  background:
    radial-gradient(circle at 28% 20%, rgba(248, 193, 74, 0.42), transparent 34%),
    linear-gradient(145deg, var(--color-secondary), var(--color-primary));
  color: #fff;
  text-align: center;
}

.image-fallback span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.image-fallback small {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-photo.fallback-visible::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.16));
}

.site-footer {
  border-top: 1px solid rgba(255, 90, 31, 0.18);
  padding: 18px 16px calc(128px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 90, 31, 0.16), transparent 34%),
    linear-gradient(180deg, #211b16, #12100e);
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 10px;
}

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

.footer-card + .footer-card {
  margin-top: 0;
}

.footer-notice {
  margin-bottom: 10px;
  border-color: rgba(255, 90, 31, 0.26);
  background: rgba(255, 90, 31, 0.1);
}

.footer-card p,
.footer-disclaimer p {
  margin-bottom: 0;
}

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

.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;
}

.powered {
  margin-bottom: 0;
}

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

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

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.footer-social:empty {
  display: none;
}

.footer-social a {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

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

.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-fab-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(33, 31, 29, 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);
}

/* El carrito se comporta como una hoja: su encabezado permite arrastrar hacia abajo para cerrar. */
#cartModal:not(.open) .cart-sheet { visibility: hidden; pointer-events: none; }
.cart-sheet {
  display: flex;
  flex-direction: column;
  height: min(92dvh, 760px);
  max-height: min(92dvh, 760px);
  position: relative;
}
.cart-sheet .sheet-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cart-sheet .sheet-grip,
.cart-sheet .sheet-header { touch-action: none; }
.cart-sheet.is-dragging { transition: none; }

.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;
  font-family: var(--font-display);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--color-soft);
  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-item {
  gap: 10px;
  border-bottom: 1px solid var(--color-line);
  padding: 11px 0;
}

.cart-item.custom-cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
}

.custom-cart-item > strong {
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
}

.cart-item-name {
  flex: 1;
  min-width: 0;
  font-weight: 800;
}

.cart-item-name small {
  display: block;
  margin-top: 2px;
  color: var(--color-muted);
  font-weight: 600;
}

.cart-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.cart-actions button {
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--color-soft);
  color: var(--color-ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.cart-actions button[data-cart-action="remove"] {
  color: var(--color-danger);
}

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

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

.cart-note textarea {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--color-ink);
  resize: vertical;
}

.quantity-control {
  gap: 6px;
}

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

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

.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 {
  display: grid;
  gap: 7px;
}

.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; color:var(--color-muted); font-size:.78rem; font-weight:800; }
.order-type label { position:relative; display:grid; min-height:42px; place-items:center; border:1px solid var(--color-line); border-radius:8px; background:#fff; font-weight:800; }
.order-type input { position:absolute; opacity:0; }
.order-type label:has(input:checked) { border-color:var(--color-primary); background:var(--color-primary); color:#fff; }
.delivery-fields,.transfer-details { display:grid; gap:10px; border:1px solid var(--color-line); border-radius:8px; padding:12px; background:var(--color-cream); }
.use-location-button { width:fit-content; border:1px solid var(--color-primary); border-radius:999px; padding:8px 11px; background:#fff; color:var(--color-primary); font-weight:800; }
.transfer-details p { margin:0; color:var(--color-muted); font-size:.84rem; }
.transfer-details code { display:block; margin:4px 0; font-weight:900; }
.transfer-details button { border:1px solid var(--color-primary); border-radius:999px; padding:7px 10px; background:#fff; color:var(--color-primary); font-weight:800; }

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

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

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.14);
}

.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: #211f1d;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  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;
  }
}
