/* ============================================================
 * Site do cliente - estilo "app iOS" no mobile, moderno no desktop
 * Suporta tema claro/escuro automático (segue o sistema do usuário)
 * ==========================================================*/

:root {
  --color-bg: #f5f5f7;
  --color-surface: #ffffff;
  --color-surface-2: #fbfbfc;
  --color-text: #111318;
  --color-text-secondary: #6b7280;
  --color-border: #ececef;
  --color-primary: #111318;
  --color-primary-contrast: #ffffff;
  --color-accent: #ff5a3c;
  --color-success: #1faa59;
  --color-success-bg: #eafaf1;
  --color-error: #d92d20;
  --color-error-bg: #fef3f2;
  --color-info-bg: #eef2ff;
  --color-whatsapp: #25d366;
  --color-chip: #eeeef0;
  --color-chip-hover: #e4e4e7;
  --color-placeholder-bg: linear-gradient(135deg,#f0f0f2,#e6e6ea);
  --color-scrim: rgba(0,0,0,0.4);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16,17,20,0.04), 0 1px 1px rgba(16,17,20,0.03);
  --shadow-md: 0 8px 24px rgba(16,17,20,0.08);
  --shadow-lg: 0 16px 40px rgba(16,17,20,0.14);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0b0c0f;
    --color-surface: #17181c;
    --color-surface-2: #1e1f24;
    --color-text: #f3f4f6;
    --color-text-secondary: #9a9ea8;
    --color-border: #2a2b31;
    --color-primary: #f3f4f6;
    --color-primary-contrast: #111318;
    --color-accent: #ff7a5c;
    --color-success: #34c977;
    --color-success-bg: rgba(52,201,119,0.14);
    --color-error: #ff6259;
    --color-error-bg: rgba(255,98,89,0.14);
    --color-info-bg: rgba(99,102,241,0.16);
    --color-chip: #212227;
    --color-chip-hover: #2a2b31;
    --color-placeholder-bg: linear-gradient(135deg,#1e1f24,#26272d);
    --color-scrim: rgba(0,0,0,0.65);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.55);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.store-body {
  margin: 0;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(78px + var(--safe-bottom));
  transition: background .2s ease, color .2s ease;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
svg { display: block; }

/* ---------------- Top bar (logo sempre centralizado) ---------------- */
.store-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--color-bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.topbar-side { min-width: 40px; display: flex; align-items: center; }
.topbar-side-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.topbar-side-right { display: flex; justify-content: flex-end; }

.store-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.store-brand-name {
  font-weight: 700;
  font-size: 16px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw;
}
.store-logo-img {
  max-height: 40px;
  max-width: 50vw;
  object-fit: contain;
  display: block;
}
.store-status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.store-status-dot.open { background: var(--color-success); box-shadow: 0 0 0 3px var(--color-success-bg); }
.store-status-dot.closed { background: var(--color-error); box-shadow: 0 0 0 3px var(--color-error-bg); }
.store-hours-text {
  font-size: 11.5px;
  color: var(--color-text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px;
}

.store-closed-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--color-error-bg); color: var(--color-error);
  font-size: 13px; font-weight: 600; text-align: center;
  justify-content: center;
}

.cart-icon-btn {
  position: relative;
  display: inline-flex;
  padding: 7px;
  border-radius: 50%;
  color: var(--color-text);
  flex-shrink: 0;
}
.cart-count-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ---------------- Main container ---------------- */
.store-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

.menu-hero {
  padding: 8px 4px 20px;
  text-align: center;
}
.menu-hero h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.02em; }
.menu-hero p { margin: 0; color: var(--color-text-secondary); font-size: 14px; }

.page-header { padding: 4px 4px 18px; }
.page-header h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.02em; }
.page-subtitle { margin: 0; color: var(--color-text-secondary); font-size: 14px; }

/* ---------------- Category tabs ---------------- */
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }

.category-tab {
  flex-shrink: 0;
  border: none;
  background: var(--color-surface);
  color: var(--color-text);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.category-tab.active { background: var(--color-primary); color: var(--color-primary-contrast); }
.category-tab:active { transform: scale(0.96); }

/* ---------------- Product grid ---------------- */
.menu-section { margin-bottom: 28px; }
.menu-section-title { font-size: 19px; margin: 0 0 12px; letter-spacing: -0.01em; }

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

.product-card {
  text-align: left;
  background: var(--color-surface);
  border: none;
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
  color: var(--color-text);
}
.product-card:active { transform: scale(0.97); }

.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--color-chip);
  display: block;
}
.product-card-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-secondary);
  background: var(--color-placeholder-bg);
}

.product-card-body { padding: 10px 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-card-body h3 { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.product-card-desc {
  margin: 0; font-size: 12px; color: var(--color-text-secondary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-price { margin-top: auto; font-weight: 700; font-size: 14px; padding-top: 4px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-secondary);
}
.empty-state-icon { color: var(--color-text-secondary); opacity: .6; display: flex; justify-content: center; margin-bottom: 10px; }
.empty-state .btn { margin-top: 14px; display: inline-flex; }

/* ---------------- Modal (bottom sheet estilo iOS) ---------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: var(--color-scrim);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-sheet {
  background: var(--color-surface);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  max-height: 88vh;
  overflow-y: auto;
  padding: 10px 20px calc(24px + var(--safe-bottom));
  position: relative;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  color: var(--color-text);
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }

.modal-handle {
  width: 36px; height: 5px; background: var(--color-border); border-radius: 3px;
  margin: 6px auto 10px;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  border: none; background: var(--color-chip); color: var(--color-text);
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.modal-product-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 14px;
}
.modal-product-title { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.modal-product-desc { margin: 0 0 10px; color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }
.modal-product-price { font-size: 18px; font-weight: 700; margin: 0 0 18px; }

.modal-section { margin-bottom: 18px; }
.modal-section h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-secondary); }
.modal-section textarea, .modal-section input[type=text] {
  width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical;
  background: var(--color-surface-2); color: var(--color-text);
}

.ingredient-check {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; border-bottom: 1px solid var(--color-border);
  font-size: 14.5px; cursor: pointer;
}
.ingredient-check:last-child { border-bottom: none; }
.ingredient-check input { width: 19px; height: 19px; accent-color: var(--color-primary); }
.ingredient-extra-price { margin-left: auto; color: var(--color-text-secondary); font-size: 13px; }

.modal-qty-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; font-weight: 600;
}
.qty-stepper {
  display: flex; align-items: center; gap: 14px;
  background: var(--color-chip); border-radius: 100px; padding: 6px 14px;
}
.qty-stepper button {
  width: 26px; height: 26px; border: none; border-radius: 50%; background: var(--color-surface); color: var(--color-text);
  font-size: 16px; cursor: pointer; box-shadow: var(--shadow-sm);
}
.qty-stepper span { min-width: 16px; text-align: center; font-weight: 700; }
.qty-stepper-sm { padding: 4px 10px; gap: 10px; }
.qty-stepper-sm button { width: 22px; height: 22px; font-size: 14px; }

.modal-add-btn { margin-top: 4px; }

/* ---------------- Preloader (tela de carregamento) ---------------- */
.app-preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  background: var(--color-bg);
  opacity: 1;
  transition: opacity .35s ease;
}
.app-preloader-hide { opacity: 0; pointer-events: none; }
.app-preloader-logo-wrap { display: flex; align-items: center; justify-content: center; }
.app-preloader-logo {
  width: 72px; height: 72px; object-fit: contain; border-radius: var(--radius-md);
  animation: preloaderPulse 1.1s ease-in-out infinite;
}
.app-preloader-logo-text {
  font-size: 22px; font-weight: 700; letter-spacing: .2px; color: var(--color-text);
  animation: preloaderPulse 1.1s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { opacity: .55; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1); }
}
.app-preloader-bar {
  width: 120px; height: 4px; border-radius: 100px;
  background: var(--color-chip);
  overflow: hidden;
}
.app-preloader-bar span {
  display: block; width: 40%; height: 100%; border-radius: 100px;
  background: var(--color-accent);
  animation: preloaderSlide 1.1s ease-in-out infinite;
}
@keyframes preloaderSlide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(80%); }
  100% { transform: translateX(220%); }
}
@media (prefers-reduced-motion: reduce) {
  .app-preloader-logo, .app-preloader-logo-text, .app-preloader-bar span { animation: none; }
}

/* ---------------- Compartilhar carrinho ---------------- */
.share-cart-box {
  margin-top: 18px; padding: 14px 16px;
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.share-cart-box p { margin: 0 0 10px; font-size: 13px; color: var(--color-text-secondary); }
.share-cart-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-cart-actions .btn { flex: 1 1 140px; padding: 11px 14px; font-size: 14px; }
.share-cart-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--color-info-bg); border-radius: var(--radius-md);
  padding: 12px 14px; margin-bottom: 14px; font-size: 13px;
}
.share-cart-banner .btn { padding: 8px 14px; font-size: 13px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, opacity .15s ease, background .15s ease;
}
.btn svg { flex-shrink: 0; }
.btn:active { transform: scale(0.97); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 20px; font-size: 16px; border-radius: var(--radius-md); }
.btn-primary { background: var(--color-primary); color: var(--color-primary-contrast); }
.btn-secondary { background: var(--color-chip); color: var(--color-text); }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-link { background: none; color: var(--color-text-secondary); text-decoration: underline; padding: 6px; }
.disabled-link { opacity: .5; }

/* ---------------- Floating cart bar ---------------- */
.floating-cart-bar {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(86px + var(--safe-bottom));
  z-index: 40;
}
.floating-cart-bar a {
  display: flex; align-items: center; gap: 10px;
  background: var(--color-primary); color: var(--color-primary-contrast);
  padding: 14px 18px; border-radius: 100px;
  box-shadow: var(--shadow-lg);
  font-weight: 600; font-size: 14px;
}
.floating-cart-bar .floating-cart-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.floating-cart-bar.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* ---------------- Bottom tab bar (iOS style) ---------------- */
.bottom-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 35;
  display: flex;
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--color-border);
  padding: 8px 0 calc(8px + var(--safe-bottom));
}
.tabbar-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; color: var(--color-text-secondary); font-weight: 600;
  position: relative;
  border: none; background: none; cursor: pointer;
}
.tabbar-item.active { color: var(--color-primary); }
.tabbar-icon { display: flex; }
.tabbar-badge {
  position: absolute; top: -2px; right: calc(50% - 22px);
  background: var(--color-accent); color: #fff; font-size: 9px; font-weight: 700;
  min-width: 14px; height: 14px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
}

.store-footer {
  text-align: center; padding: 24px 16px 12px;
  font-size: 12px; color: var(--color-text-secondary);
}
.store-footer a { text-decoration: underline; }

/* ---------------- Cart page ---------------- */
.cart-items-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.cart-item-card {
  background: var(--color-surface); border-radius: var(--radius-md); padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex; gap: 12px;
}
.cart-item-thumb {
  width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover;
  flex-shrink: 0; background: var(--color-placeholder-bg);
}
.cart-item-thumb-placeholder { background: var(--color-placeholder-bg); }
.cart-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cart-item-info h3 { margin: 0 0 4px; font-size: 15px; }
.item-note { font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; }
.cart-item-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cart-item-price { font-weight: 700; font-size: 14px; margin-left: auto; }
.cart-item-btns { display: flex; align-items: center; gap: 10px; }
.remove-item-btn { border: none; background: none; color: var(--color-error); font-size: 12px; cursor: pointer; font-weight: 600; }
.edit-item-btn { border: none; background: none; color: var(--color-text-secondary); font-size: 12px; cursor: pointer; font-weight: 600; text-decoration: underline; }

/* ---------------- Revisão de itens no checkout ---------------- */
.checkout-items-review {
  background: var(--color-surface); border-radius: var(--radius-md); padding: 16px;
  box-shadow: var(--shadow-sm); margin-bottom: 16px; text-align: left;
}
.checkout-items-review h2 { margin: 0 0 4px; font-size: 16px; }
.checkout-items-review .cart-items-list { margin-bottom: 0; }

.cart-summary {
  background: var(--color-surface); border-radius: var(--radius-md); padding: 16px;
  box-shadow: var(--shadow-sm);
}
.cart-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--color-text-secondary); }
.cart-summary-row.total-row { font-size: 17px; font-weight: 700; color: var(--color-text); border-top: 1px solid var(--color-border); margin-top: 6px; padding-top: 12px; }
.cart-summary .btn { margin-top: 14px; }

/* ---------------- Checkout ---------------- */
.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.checkout-step {
  background: var(--color-surface); border-radius: var(--radius-md); padding: 18px;
  box-shadow: var(--shadow-sm);
}
.checkout-step h2 { margin: 0 0 14px; font-size: 16px; }
.checkout-step label {
  display: block; font-size: 13px; font-weight: 600; color: var(--color-text-secondary);
  margin-bottom: 12px;
}
.checkout-step input[type=text], .checkout-step input[type=tel], .checkout-step textarea {
  display: block; width: 100%; margin-top: 6px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 12px; font-size: 15px; font-family: inherit; color: var(--color-text);
  background: var(--color-surface-2);
}
.checkout-step input:read-only { background: var(--color-chip); color: var(--color-text-secondary); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { display: block; font-size: 12px; margin-top: 6px; color: var(--color-text-secondary); font-weight: 400; }

.segmented-control { display: flex; gap: 8px; margin-bottom: 4px; }
.segmented-btn {
  flex: 1; border: 1px solid var(--color-border); background: var(--color-surface-2); color: var(--color-text);
  padding: 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.segmented-btn.active { background: var(--color-primary); color: var(--color-primary-contrast); border-color: var(--color-primary); }

.freight-result { margin-top: 12px; }

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 13px; font-size: 14.5px; font-weight: 600; cursor: pointer;
  color: var(--color-text);
}
.payment-option input { width: 18px; height: 18px; accent-color: var(--color-primary); }
.payment-icon { color: var(--color-text-secondary); flex-shrink: 0; }
.payment-option:has(input:checked) { border-color: var(--color-primary); background: var(--color-surface-2); }
.payment-option:has(input:checked) .payment-icon { color: var(--color-text); }
#changeForBox { margin-top: 12px; }
#changeForBox label { margin-bottom: 0; }

.checkout-summary {
  background: var(--color-surface); border-radius: var(--radius-md); padding: 16px;
  box-shadow: var(--shadow-sm);
}

.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13.5px; margin: 0 0 8px; }
.alert-error { background: var(--color-error-bg); color: var(--color-error); }
.alert-success { background: var(--color-success-bg); color: var(--color-success); }
.alert-info { background: var(--color-info-bg); color: #6366f1; }

/* ---------------- Confirmation / Tracking ---------------- */
.confirmation-box { text-align: center; padding: 12px 4px; }
.confirmation-icon { color: var(--color-success); margin-bottom: 6px; display: flex; justify-content: center; }
.confirmation-box h1 { margin: 0 0 6px; font-size: 24px; }
.confirmation-box .btn { margin-top: 12px; }
.confirmation-summary {
  text-align: left; margin-top: 22px; background: var(--color-surface);
  border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm);
}
.confirmation-summary h3 { margin: 0 0 10px; font-size: 14px; }
.order-items-list { list-style: none; padding: 0; margin: 0 0 10px; font-size: 14px; }
.order-items-list li { padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.order-items-list li:last-child { border-bottom: none; }
.order-totals div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13.5px; color: var(--color-text-secondary); }
.order-totals .total-row { font-size: 16px; font-weight: 700; color: var(--color-text); border-top: 1px solid var(--color-border); margin-top: 6px; padding-top: 10px; }
.hint { font-size: 12px; color: var(--color-text-secondary); text-align: center; margin-top: 18px; }

.tracking-box { padding: 4px; }
.tracking-box h1 { margin: 0 0 4px; font-size: 22px; }
.tracking-cancelled {
  display: flex; align-items: center; gap: 8px;
  background: var(--color-error-bg); color: var(--color-error);
  padding: 16px; border-radius: var(--radius-md); font-weight: 600; margin: 18px 0;
}
.tracking-cancelled.tracking-delivered { background: var(--color-success-bg); color: var(--color-success); }
.tracking-steps { display: flex; flex-direction: column; gap: 0; margin: 24px 0; }
.tracking-step {
  display: flex; align-items: center; gap: 14px; padding: 10px 0; opacity: .4; position: relative;
}
.tracking-step::before {
  content: ''; position: absolute; left: 17px; top: -8px; width: 2px; height: 16px; background: var(--color-border);
}
.tracking-step:first-child::before { display: none; }
.tracking-step.done { opacity: 1; }
.tracking-step.done::before { background: var(--color-primary); }
.tracking-step-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--color-chip); color: var(--color-text-secondary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tracking-step.done .tracking-step-icon { background: var(--color-primary); color: var(--color-primary-contrast); }
.tracking-step.current .tracking-step-label { font-weight: 700; }
.tracking-step-label { font-size: 14.5px; }

/* ---------------- Legal page ---------------- */
.legal-page { padding: 4px; }
.legal-page h1 { font-size: 24px; margin-bottom: 4px; }
.legal-updated { color: var(--color-text-secondary); font-size: 12px; margin-bottom: 20px; }
.legal-page h2 { font-size: 16px; margin: 22px 0 8px; }
.legal-page p { font-size: 14px; line-height: 1.65; color: var(--color-text); opacity: .88; margin: 0 0 4px; }

/* ============================================================
 * DESKTOP - versão moderna, sofisticada, minimalista
 * ==========================================================*/
@media (min-width: 900px) {
  body.store-body { padding-bottom: 40px; }

  .store-topbar {
    padding: 18px 40px;
    grid-template-columns: 1fr auto 1fr;
  }
  .store-brand-name { font-size: 19px; max-width: none; }
  .store-logo-img { max-height: 50px; max-width: 260px; }
  .store-hours-text { max-width: 220px; font-size: 12.5px; }

  .store-main {
    max-width: 1080px;
    padding: 32px 40px 60px;
  }

  .menu-hero h1 { font-size: 34px; }
  .menu-hero { padding-bottom: 28px; }

  .category-tabs { padding-bottom: 26px; justify-content: center; }
  .category-tab { padding: 11px 22px; font-size: 14.5px; }
  .category-tab:hover { background: var(--color-chip-hover); }
  .category-tab.active:hover { background: var(--color-primary); }

  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .product-card { border-radius: var(--radius-lg); }
  .product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .product-card-body { padding: 14px 16px 18px; gap: 6px; }
  .product-card-body h3 { font-size: 15.5px; }
  .product-card-price { font-size: 15px; }

  .modal-overlay { align-items: center; }
  .modal-sheet {
    border-radius: 24px;
    max-width: 480px;
    max-height: 85vh;
    padding: 20px 28px 28px;
  }
  .modal-handle { display: none; }

  .bottom-tabbar { display: none; }
  .floating-cart-bar { max-width: 1080px; left: 50%; transform: translateX(-50%); right: auto; width: calc(100% - 80px); bottom: 28px; }

  .btn { cursor: pointer; }
  .btn-primary:hover { opacity: .88; }
  .btn-secondary:hover { background: var(--color-chip-hover); }

  .checkout-form { max-width: 620px; margin: 0 auto; }
  .cart-items-list, .cart-summary { max-width: 620px; margin-left: auto; margin-right: auto; }
  .confirmation-box, .tracking-box, .legal-page { max-width: 640px; margin: 0 auto; }

  /* O título "Meu Carrinho" / "Finalizar Pedido" e o aviso de carrinho
     compartilhado precisam ficar alinhados com a mesma largura central
     dos cards abaixo — senão o título fica "solto" mais largo/à esquerda
     enquanto os cards ficam centralizados e mais estreitos. */
  .page-header-narrow,
  .checkout-items-review,
  .share-cart-banner {
    max-width: 620px; margin-left: auto; margin-right: auto;
  }

  .checkout-step:hover { box-shadow: var(--shadow-md); }
  .segmented-btn:hover { background: var(--color-chip); }
  .payment-option:hover { border-color: var(--color-text-secondary); }

  .store-footer { padding: 40px 16px 20px; }
}
