@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --color-brand-yellow: #fbd614; /* Ajustado mas cerca al amarillo huevo del logo */
  --color-brand-green: #1f4a2d;
  --color-brand-orange: #f25c05;
  
  --color-bg: #f8f9fa; /* Un gris muy claro super limpio tipo iOS */
  --color-surface: #ffffff;
  --color-surface-muted: #f1f3f5;
  --color-border: #e9ecef;
  --color-text: #212529;
  --color-text-muted: #868e96;
  
  --color-primary: var(--color-brand-orange);
  --color-primary-hover: #d94d04;

  --font-family-base: "Outfit", -apple-system, sans-serif;
  
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --shadow-orange: 0 8px 24px rgba(242, 92, 5, 0.25);
  
  --bottom-bar-height: 80px;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family-base);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--bottom-bar-height) + 20px);
}

.site-note-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  min-height: 26px;
  padding: 5px 12px 4px;
  background: var(--color-brand-green);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-note-bar::-webkit-scrollbar {
  display: none;
}

button, input, select, textarea { font: inherit; outline: none; border: none; }
button { cursor: pointer; background: transparent; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.skip-link { display: none; }

.app-wrapper {
  max-width: 500px;
  margin: 0 auto;
  background: var(--color-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 50px rgba(0,0,0,0.05);
}

.public-mini-nav-wrap {
  padding: 12px 20px 0;
}

.public-top-tools {
  display: grid;
  gap: 12px;
}

.public-mini-nav {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.public-mini-nav summary {
  list-style: none;
  min-height: 42px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-brand-green);
  font-weight: 800;
  cursor: pointer;
}

.public-mini-nav summary::-webkit-details-marker {
  display: none;
}

.public-mini-nav summary::after {
  content: '+';
  font-size: 1rem;
}

.public-mini-nav[open] summary::after {
  content: '-';
}

.public-mini-nav-menu {
  display: grid;
  gap: 1px;
  padding: 0 10px 10px;
}

.public-mini-nav-menu a,
.public-mini-nav-action {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  background: #fff;
  color: var(--color-brand-green);
  font-weight: 700;
  text-align: left;
}

.public-phone-link {
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 74, 45, 0.12);
  background: #fff8db;
  color: var(--color-brand-green);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.desktop-cart-button {
  display: none;
  min-height: 52px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-brand-green);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  align-items: center;
  justify-content: space-between;
}

.desktop-cart-button strong {
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-orange);
  color: #fff;
  font-size: 0.95rem;
}

/* Header Premium Blanco con sombra */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* El logo "Paint" lo convertimos en un Avatar moderno */
.brand-logo {
  height: 96px;
  width: 96px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  border: 4px solid #fff;
  background: var(--color-brand-yellow);
  transform: scale(1.02);
  margin-bottom: 0;
}

/* Hero Section: Banner Premium */
.hero-section {
  padding: 16px 20px;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--radius-lg);
  background: url('/assets/hero.png') center/cover no-repeat;
  background-color: var(--color-brand-yellow);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(31, 74, 45, 0.8) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.hero-content h1 {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.hero-content p {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Category Slider */
.categories-container {
  padding: 4px 20px 16px;
  overflow: hidden;
}

.category-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px 8px 0;
  scroll-padding-inline: 20px;
}
.category-tabs::-webkit-scrollbar { display: none; }

.category-tab {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.category-tab.is-active {
  background: var(--color-brand-green);
  color: var(--color-brand-yellow);
  box-shadow: 0 8px 16px rgba(31, 74, 45, 0.2);
}

/* Products Grid */
.products-wrapper {
  padding: 0 20px;
}

.products-grid {
  display: grid;
  gap: 16px;
}

.schedule-order-panel {
  position: fixed;
  inset: auto 20px 24px;
  z-index: 130;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  margin: 0 auto;
  padding: 24px 18px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 74, 45, 0.12);
  background: #fff;
  box-shadow: var(--shadow-lg);
  display: none;
  gap: 14px;
  overflow-y: auto;
}

body.has-schedule-modal .schedule-order-panel {
  display: grid;
}

body.has-schedule-modal {
  overflow: hidden;
}

body.has-schedule-modal::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 129;
  background: rgba(33, 37, 41, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.schedule-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 900;
}

.schedule-entry {
  padding: 18px 20px 8px;
}

.schedule-entry-button {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(31, 74, 45, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-brand-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.schedule-entry-button strong {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.schedule-entry-button.is-scheduled {
  border-color: rgba(242, 92, 5, 0.24);
  background: rgba(242, 92, 5, 0.06);
}

.schedule-entry-button.is-scheduled strong {
  color: var(--color-brand-orange);
}

.schedule-order-panel h2 {
  color: var(--color-brand-green);
  font-size: 1.3rem;
  font-weight: 900;
}

.schedule-order-panel p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.schedule-fields,
.schedule-actions {
  display: grid;
  gap: 12px;
}

.schedule-help {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(31, 74, 45, 0.06);
  color: var(--color-text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.schedule-help.is-success {
  background: rgba(31, 74, 45, 0.08);
  color: var(--color-brand-green);
  font-weight: 700;
}

.schedule-help.is-error {
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
  font-weight: 700;
}

.scheduled-checkout-card .button-secondary {
  min-height: 38px;
  font-size: 0.84rem;
}

.product-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  align-items: stretch;
}

.product-card.is-unavailable {
  opacity: 0.72;
}

.product-card.is-unavailable .product-visual {
  filter: grayscale(0.2);
}

.product-visual {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  background-color: var(--color-surface-muted);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}

.product-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-info .modifier-alert,
.modifier-alert {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  display: block;
  -webkit-line-clamp: unset;
}

.product-price-row {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-brand-green);
}

/* Aggregation Stepper for App */
.add-action-wrapper {
  display: flex;
  align-items: center;
  height: 36px;
}

.button-add-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-brand-orange);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-orange);
}

.product-unavailable-badge {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f5;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.mini-stepper {
  display: flex;
  align-items: center;
  background: var(--color-surface-muted);
  border-radius: var(--radius-pill);
  height: 36px;
  padding: 0 4px;
}

.qty-button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-brand-green);
  font-weight: 900;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.product-meta-note-qty {
  font-weight: 800;
  color: var(--color-text);
  min-width: 20px;
  text-align: center;
  font-size: 1rem;
}

/* UI Botones y Textos Genéricos */
.button-primary {
  background: var(--color-brand-orange);
  color: #fff;
  min-height: 52px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 1.05rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-orange);
}

.button-primary:disabled {
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.button-secondary {
  background: var(--color-surface-muted);
  color: var(--color-text);
  min-height: 52px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 1rem;
  width: 100%;
}

.order-review-note {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 74, 45, 0.12);
  background: rgba(31, 74, 45, 0.06);
}

.order-review-note strong {
  color: var(--color-brand-green);
}

.order-review-note p {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.checkout-summary-card {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(242, 92, 5, 0.18);
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.checkout-summary-card p {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.checkout-summary-card > strong {
  flex: 0 0 auto;
  color: var(--color-brand-green);
}

.transfer-payment-panel[hidden] {
  display: none;
}

.transfer-payment-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 74, 45, 0.14);
  background: rgba(255, 208, 0, 0.16);
}

.transfer-payment-head strong {
  color: var(--color-brand-green);
}

.transfer-payment-head p {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.transfer-account-options {
  display: grid;
  gap: 10px;
}

.transfer-account-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 74, 45, 0.14);
  background: #fff;
  cursor: pointer;
}

.transfer-account-card input {
  margin-top: 3px;
  accent-color: var(--color-brand-green);
}

.transfer-account-card span {
  display: grid;
  gap: 2px;
}

.transfer-account-card strong,
.transfer-account-card b {
  color: var(--color-brand-green);
}

.transfer-account-card small {
  color: var(--color-text-muted);
  font-weight: 700;
}

.receipt-upload-field {
  display: grid;
  gap: 8px;
}

.receipt-upload-field > span {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-text-muted);
}

.receipt-upload-field input {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 74, 45, 0.14);
  background: #fff;
  color: var(--color-text);
  font-weight: 800;
}

.receipt-upload-field small {
  color: var(--color-text-muted);
  font-weight: 700;
  line-height: 1.35;
}

/* Checkout */
.checkout-section { padding: 4px 20px; }
.section-head { margin-bottom: 20px; }
.checkout-section h2 { font-size: 1.6rem; font-weight: 900; color: var(--color-brand-green); }
.checkout-section p.section-copy { color: var(--color-text-muted); font-size: 0.95rem; }

.order-followup-banner {
  padding: 0 20px 16px;
}

.order-followup-banner[hidden] {
  display: none !important;
}

.followup-kicker {
  color: var(--color-brand-orange);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.followup-actions {
  display: grid;
  gap: 12px;
}

.order-tracker {
  display: grid;
  gap: 14px;
}

.tracking-status-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(31, 74, 45, 0.06);
  border: 1px solid rgba(31, 74, 45, 0.12);
}

.tracking-status-card.is-cancelled {
  background: rgba(179, 50, 50, 0.08);
  border-color: rgba(179, 50, 50, 0.16);
}

.tracking-status-card strong {
  color: var(--color-brand-green);
  display: block;
}

.tracking-status-card.is-cancelled strong {
  color: #b33232;
}

.tracking-status-card p {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.tracking-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tracking-step {
  min-width: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.tracking-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-surface-muted);
  border: 2px solid rgba(31, 74, 45, 0.12);
  color: var(--color-text-muted);
  font-size: 0.72rem;
}

.tracking-step.is-done,
.tracking-step.is-current {
  color: var(--color-brand-green);
}

.tracking-step.is-done .tracking-dot,
.tracking-step.is-current .tracking-dot {
  background: var(--color-brand-green);
  color: #fff;
  border-color: var(--color-brand-green);
}

.tracking-step.is-current .tracking-dot {
  background: var(--color-brand-orange);
  border-color: var(--color-brand-orange);
}

.surface-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
}

.field { display: grid; gap: 8px; }
.field span { font-size: 0.85rem; font-weight: 700; color: var(--color-text-muted); }
input, select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  background: var(--color-surface-muted);
  border-radius: 12px;
  font-weight: 600;
  border: 2px solid transparent;
}
input:focus, select:focus, textarea:focus { border-color: var(--color-brand-yellow); background: #fff; }

.location-tools {
  display: grid;
  gap: 10px;
  margin-top: -4px;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.button-location {
  min-height: 46px;
  border-radius: 14px;
  background: rgba(31, 74, 45, 0.08);
  color: var(--color-brand-green);
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(31, 74, 45, 0.14);
}

.button-location.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.location-help {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.location-help.is-success {
  color: var(--color-brand-green);
  font-weight: 600;
}

.location-help.is-error {
  color: #b42318;
  font-weight: 600;
}

/* Floating Bottom Bar Navigation */
.floating-cart-button {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: calc(100% - 32px);
  max-width: 440px;
  height: 64px;
  background: var(--color-brand-green);
  color: var(--color-brand-yellow);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: var(--shadow-lg);
  z-index: 29;
}
.floating-cart-button::before {
  content: 'Ver pedido';
  font-size: 1.15rem;
  font-weight: 800;
}
.floating-cart-button strong {
  background: var(--color-brand-yellow);
  color: var(--color-brand-green);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 1rem;
}

body.is-checkout-active .floating-cart-button,
body.is-confirmation-active .floating-cart-button {
  display: none;
}

/* Compact app-wide controls */
.public-mini-nav-menu a,
.public-mini-nav-action {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
  border-radius: 12px;
}

.desktop-cart-button {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.desktop-cart-button strong {
  min-width: 28px;
  min-height: 28px;
  font-size: 0.82rem;
}

.button-add-icon {
  width: 32px;
  height: 32px;
}

.product-unavailable-badge {
  min-height: 32px;
  padding: 0 11px;
  font-size: 0.76rem;
}

.mini-stepper {
  height: 32px;
}

.qty-button {
  width: 26px;
  height: 26px;
  font-size: 1rem;
}

.button-primary,
.button-secondary,
.button-location {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.floating-cart-button {
  height: 54px;
  padding: 0 18px;
}

.floating-cart-button::before {
  font-size: 0.98rem;
}

.floating-cart-button strong {
  padding: 3px 10px;
  font-size: 0.86rem;
}

/* Modern Cart Panel Overlay */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(33, 37, 41, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cart-panel {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  bottom: 0;
  z-index: 40;
  width: 100%;
  max-width: 500px;
  height: 85vh;
  background: #fff;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cart-panel.is-open { transform: translateX(-50%) translateY(0); }

.cart-panel-head {
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-panel-head h2 { font-weight: 900; font-size: 1.4rem; color: var(--color-brand-green); }
.cart-close-button {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-surface-muted);
  display: grid; place-items: center;
  font-size: 1.4rem; font-weight: bold; color: var(--color-text-muted);
}

.cart-items {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  display: grid;
  gap: 16px;
  align-content: start;
}
.cart-item {
  background: var(--color-surface-muted);
  padding: 16px;
  border-radius: var(--radius-lg);
}
.item-top { display: flex; justify-content: space-between; align-items: flex-start; }
.item-name { font-weight: 800; font-size: 1.05rem; }
.item-line-total { font-weight: 900; color: var(--color-brand-green); font-size: 1.1rem; }

.item-bottom,
.item-fields,
.item-selection-summary {
  margin-top: 14px;
}

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

.item-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-input {
  width: 54px;
  min-height: 36px;
  text-align: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  font-weight: 800;
}

.item-remove-button {
  color: #b42318;
  font-weight: 800;
}

.item-note {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

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

.modifier-group-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--color-text);
}

.modifier-group-head strong {
  font-size: 0.94rem;
}

.modifier-group-head span {
  color: var(--color-brand-orange);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.modifier-options {
  display: grid;
  gap: 8px;
}

.modifier-option {
  min-height: 48px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 74, 45, 0.12);
  background: #fff;
}

.modifier-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-brand-orange);
}

.modifier-option span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modifier-option strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.modifier-option small {
  flex: 0 0 auto;
  color: var(--color-brand-green);
  font-weight: 900;
}

.modifier-option.is-selected {
  border-color: var(--color-brand-orange);
  box-shadow: 0 0 0 2px rgba(242, 92, 5, 0.12);
}

.modifier-option.is-disabled {
  opacity: 0.55;
  background: #f1f3f5;
}

.modifier-option.is-disabled small {
  color: #b42318;
}

.cart-summary {
  padding: 20px 24px 0;
  border-top: 1px solid var(--color-border);
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600;}
.summary-total { padding-top: 12px; font-weight: 900; font-size: 1.3rem; color: var(--color-brand-green); }

@media (min-width: 760px) {
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cart-panel-actions { padding: 16px 24px 32px; display: grid; gap: 12px; }

/* Status banners */
.toast {
  position: fixed; top: 100px; left: 50%; transform: translate(-50%, -20px);
  background: #212529; color: #fff; font-weight: 700; padding: 12px 24px;
  border-radius: var(--radius-pill); z-index: 100; opacity: 0; transition: all 0.2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.success-modal[hidden] {
  display: none !important;
}

.success-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 37, 41, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.success-modal-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 16px;
}

.success-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 900;
}

.success-modal-note {
  background: rgba(31, 74, 45, 0.06);
  border: 1px solid rgba(31, 74, 45, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  gap: 6px;
}

.success-modal-note strong {
  color: var(--color-brand-green);
}

body.has-modal-open {
  overflow: hidden;
}

@media (min-width: 1080px) {
  body {
    padding-bottom: 40px;
  }

  .app-wrapper {
    width: min(100% - 460px, 1000px);
    max-width: none;
    min-height: auto;
    margin: 0 auto 24px max(20px, calc((100vw - 1320px) / 2));
    box-shadow: none;
  }

  .app-header {
    grid-column: auto;
  }

  .app-main,
  .public-mini-nav-wrap {
    max-width: none;
    width: 100%;
  }

  .public-top-tools {
    grid-template-columns: minmax(0, 1fr) auto 250px;
    align-items: center;
  }

  .desktop-cart-button {
    display: inline-flex;
  }

  .floating-cart-button {
    display: none;
  }

  .public-mini-nav summary {
    min-height: 48px;
    padding-inline: 18px;
  }

  .public-mini-nav-menu {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding: 0 14px 14px;
  }

  .hero-section {
    padding-top: 22px;
  }

  .hero-banner {
    height: 240px;
    padding: 32px;
  }

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

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

  .schedule-fields,
  .schedule-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-order-panel {
    inset: 50%;
    bottom: auto;
    width: min(460px, calc(100vw - 48px));
    transform: translate(-50%, -50%);
  }

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

  .cart-overlay {
    display: none !important;
  }

  .cart-panel {
    position: fixed;
    top: 120px;
    left: auto;
    right: 24px;
    bottom: 24px;
    width: min(380px, calc(100vw - 700px));
    min-width: 340px;
    max-width: 380px;
    height: auto;
    max-height: 880px;
    border-radius: 28px;
    transform: none !important;
    transition: none;
  }

  .cart-panel.is-open {
    transform: none;
  }

  .cart-panel .item-fields {
    gap: 12px;
  }

  .cart-panel .modifier-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-panel .modifier-option {
    min-height: 44px;
    padding: 8px 10px;
    gap: 8px;
  }

  .cart-panel .modifier-option span {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }

  .cart-panel .modifier-option strong {
    font-size: 0.82rem;
  }

  .cart-panel .modifier-option small {
    font-size: 0.72rem;
  }

  .cart-close-button {
    display: none;
  }

  body.has-cart-open .app-main,
  body.has-cart-open .public-mini-nav-wrap {
    max-width: none;
  }
}

.public-mini-nav-menu a,
.public-mini-nav-action {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.desktop-cart-button,
.button-primary,
.button-secondary,
.button-location {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 0.9rem;
}

.button-add-icon {
  width: 32px;
  height: 32px;
}

.product-unavailable-badge {
  min-height: 32px;
  padding-inline: 11px;
  font-size: 0.76rem;
}

.floating-cart-button {
  height: 54px;
  padding-inline: 18px;
}
