/* ── Dark mode (padrão) ── */
:root {
  --primary: #c0392b;
  --primary-dark: #922b21;
  --primary-light: #e74c3c;
  --primary-contrast: #ffffff;
  --background: #121212;
  --surface: #1e1e1e;
  --text: #e8e8e8;
  --text-light: #aaa;
  --muted: #666;
  --border: #2e2e2e;
  --border-dashed: rgba(255,255,255,0.1);
}
/* ── Light mode ── */
body.light {
  --primary: #890000;
  --primary-dark: #6a0000;
  --primary-light: #aa1111;
  --background: #f4f5f7;
  --surface: #ffffff;
  --text: #333333;
  --text-light: #666;
  --muted: #999;
  --border: #e0e0e0;
  --border-dashed: rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: contain;
}
.page, .sacola-content, .checkout-wrap, .item-page-content {
  -webkit-overflow-scrolling: touch;
}

.page-header {
  padding-top: env(safe-area-inset-top, 0px);
}
#cartBar {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

input, textarea, select {
  font-size: 16px !important;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}
button {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}
.form-group label { font-size: 0.82rem; }

.cat-btn, .pay-option, .pay2-opt {
  min-height: 44px;
}

/* ─── PAGE SYSTEM ─── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ─── SPLASH ─── */
#splash {
  position: fixed; inset: 0;
  background: var(--primary);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}
#splash.hide { opacity: 0; pointer-events: none; }

.splash-logo { font-size: 3rem; margin-bottom: 12px; }
.splash-name { color: rgba(255,255,255,0.9); font-size: 1.1rem; font-weight: 500; margin-bottom: 32px; }

.spinner { display: flex; gap: 6px; }
.spinner span {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,0.8);
  animation: bounce 1.2s infinite ease-in-out both;
}
.spinner span:nth-child(1) { animation-delay: -0.32s; }
.spinner span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%,80%,100%{transform:scale(0)} 40%{transform:scale(1)} }

/* ─── HERO UPGRADE ─── */
.cover-area {
  height: 240px;
  background: var(--primary-dark); /* fallback if image fails */
  position: relative; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 16px;
}
.hero-badge-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; }
.hero-badge {
  background: rgba(0,0,0,0.35); color: #fff; backdrop-filter: blur(4px);
  padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2); white-space: nowrap;
}
.hero-badge.pulse { animation: heroPulse 2s infinite; }
@keyframes heroPulse { 0%,100%{opacity:1} 50%{opacity:.7} }
.hero-title { color: #fff; font-size: 1.5rem; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-sub { color: rgba(255,255,255,0.85); font-size: 0.82rem; margin-top: 2px; }

/* ─── SOCIAL PROOF BAR ─── */
.social-proof-bar {
  background: #fff9f0; border-bottom: 1px solid #ffe0b2;
  padding: 8px 16px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap; font-size: 0.78rem; color: #555;
}
body.dark .social-proof-bar { background: #1a1200; border-color: #3a2400; }
.sp-item strong { color: var(--primary); }
body.dark .sp-item strong { color: #ff8a65; }
.sp-divider { color: #ccc; }

/* ─── MAP ─── */
#deliveryMap {
  width: 100%; height: 180px; border-radius: 10px;
  margin-top: 8px; border: 1.5px solid var(--border);
  display: none;
}
.cep-status {
  font-size: 0.75rem; margin-top: 4px; min-height: 18px;
  display: flex; align-items: center; gap: 4px;
}
.cep-status.ok { color: #4caf50; }
.cep-status.err { color: #f44336; }
.cep-status.loading { color: var(--muted); }

/* ─── ADDRESS FOUND CARD ─── */
.address-found-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(39,174,96,0.08); border: 1.5px solid rgba(39,174,96,0.35);
  border-radius: 10px; padding: 12px 14px;
}
body.dark .address-found-card { background: #0d2010; border-color: #1a5c30; }
.address-found-text {
  font-size: 0.85rem; color: var(--text); line-height: 1.5; flex: 1;
}
.cep-change-btn {
  flex-shrink: 0; font-size: 0.75rem; font-weight: 600;
  color: var(--primary); background: none; border: 1.5px solid var(--primary);
  border-radius: 6px; padding: 5px 10px; cursor: pointer;
}
.cep-change-btn:hover { background: rgba(192,57,43,0.08); }

/* ─── ENTREGA PRAZO ─── */
.delivery-estimate {
  background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 8px;
  padding: 10px 14px; margin-top: 10px; display: none;
  font-size: 0.82rem; color: #2e7d32; font-weight: 500;
  align-items: center; gap: 8px;
}
body.dark .delivery-estimate { background: #0a2010; border-color: #1b5e20; color: #81c784; }
.delivery-estimate.show { display: flex; }

/* ─── CARTÃO FALHOU MODAL ─── */
.card-fail-banner {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 14px; padding: 20px; margin-top: 16px;
  display: none; text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
}
.card-fail-banner.show { display: block; }
.card-fail-icon { font-size: 2rem; margin-bottom: 8px; }
.card-fail-title { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.card-fail-sub { color: rgba(255,255,255,0.65); font-size: 0.8rem; margin-bottom: 14px; line-height: 1.4; }
.card-fail-coupon {
  background: rgba(245,166,35,0.15); border: 1.5px dashed #f5a623;
  border-radius: 8px; padding: 10px; margin-bottom: 14px;
}
.card-fail-coupon-label { color: #f5a623; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.card-fail-coupon-code { color: #fff; font-size: 1.2rem; font-weight: 700; letter-spacing: 2px; margin-top: 2px; }
.card-fail-coupon-desc { color: rgba(255,255,255,0.6); font-size: 0.72rem; margin-top: 2px; }
.card-fail-pix-btn {
  width: 100%; padding: 14px; background: #00c853; color: #fff; border: none;
  border-radius: 10px; font-family: 'Roboto', sans-serif; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.card-fail-pix-btn:hover { background: #00b248; }

/* ─── STORE BAR ─── */
.store-bar {
  background: var(--surface);
  padding: 0 16px 14px;
  display: flex; gap: 14px; align-items: flex-end;
  border-bottom: 1px solid var(--border);
}
.store-logo {
  width: 78px; height: 78px; border-radius: 50%;
  border: 3px solid var(--surface);
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-top: -38px; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  overflow: hidden; position: relative; z-index: 1;
}
.store-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-details { flex: 1; padding-top: 6px; }
.store-name { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.store-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.meta-tag { font-size: 0.71rem; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4caf50; display: inline-block; }

/* ─── SEARCH ─── */
.search-wrap { background: var(--surface); padding: 10px 16px; border-bottom: 1px solid var(--border); }
.search-input {
  width: 100%; padding: 9px 14px 9px 38px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.88rem; font-family: 'Roboto', sans-serif;
  background: var(--background) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") no-repeat 12px center;
  outline: none; color: var(--text); transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: #bbb; }

/* ─── CATEGORIES ─── */
.categories {
  background: var(--surface);
  display: flex; overflow-x: auto; scrollbar-width: none;
  border-bottom: 2px solid var(--border);
  position: sticky; top: 0; z-index: 90;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.categories::-webkit-scrollbar { display: none; }
.cat-btn {
  flex-shrink: 0; padding: 14px 18px;
  min-height: 48px;
  border: none; background: transparent;
  font-family: inherit; font-size: 0.84rem; font-weight: 500;
  color: var(--muted); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all 0.2s; white-space: nowrap;
  scroll-snap-align: start;
}
.cat-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.cat-btn:hover { color: var(--primary); }

/* ─── MENU ─── */
.menu-content { padding: 16px; max-width: 760px; margin: 0 auto; }
.section-label {
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  margin: 8px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.items-list { display: flex; flex-direction: column; gap: 1px; margin-bottom: 28px; }

.item-card {
  background: var(--surface);
  display: flex; align-items: center;
  padding: 14px 12px; gap: 14px;
  cursor: pointer; transition: background 0.15s; border-radius: 4px;
}
.item-card:hover { background: #fafafa; }
.item-info { flex: 1; min-width: 0; }
.item-name { font-size: 0.9rem; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.item-desc {
  font-size: 0.77rem; color: var(--muted); line-height: 1.4;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.item-price { font-size: 0.88rem; font-weight: 700; color: var(--primary); margin-top: 7px; }
.item-thumb {
  width: 80px; height: 80px; border-radius: 8px;
  background: #f9eded;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; flex-shrink: 0; position: relative;
}
.thumb-add {
  position: absolute; bottom: -6px; right: -6px;
  width: 26px; height: 26px;
  background: var(--primary); color: #fff;
  border: 2px solid var(--surface); border-radius: 50%;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ─── ITEM MODAL (legacy compat) ─── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 500;
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); width: 100%; max-width: 600px;
  margin: 0 auto; border-radius: 20px 20px 0 0;
  padding: 20px; transform: translateY(50px);
  transition: transform 0.25s; max-height: 90vh; overflow-y: auto;
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0); }
.close-modal {
  position: absolute; top: 14px; right: 14px;
  background: #f4f5f7; border: none; border-radius: 50%;
  width: 30px; height: 30px; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #555;
}

/* ─── CART BOTTOM BAR ─── */
.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  pointer-events: none; transform: translateY(100%); transition: transform 0.3s ease;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
}
.cart-bar.visible { transform: translateY(0); pointer-events: all; }
.cart-inner {
  background: var(--primary); border-radius: 10px;
  padding: 13px 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(137,0,0,0.25);
  max-width: 600px; margin: 0 auto;
}
.cart-left { color: #fff; }
.cart-qty { font-size: 0.74rem; opacity: 0.75; margin-bottom: 2px; }
.cart-total-label { font-size: 1rem; font-weight: 700; }
.cart-cta {
  background: #fff; color: var(--primary); border: none;
  padding: 10px 20px; border-radius: 8px;
  font-family: 'Roboto', sans-serif; font-size: 0.85rem; font-weight: 700; cursor: pointer;
}

/* ─── SACOLA PAGE ─── */
.page-header {
  background: var(--primary); color: #fff;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  position: sticky; top: 0; z-index: 100;
}
.page-header__back {
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.page-header__title { font-size: 1rem; font-weight: 700; flex: 1; }

.sacola-content { max-width: 600px; margin: 0 auto; padding: 16px; }

.sacola-empty { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 0.9rem; }
.sacola-empty-icon { font-size: 3rem; margin-bottom: 12px; }

.sacola-item {
  background: var(--surface); border-radius: 10px; margin-bottom: 10px;
  overflow: hidden; border: 1px solid var(--border);
}
.sacola-item-main {
  display: flex; align-items: flex-start;
  padding: 12px 14px; gap: 12px; cursor: pointer;
}
.sacola-item-thumb {
  width: 54px; height: 54px; border-radius: 8px;
  background: #f9eded; display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; flex-shrink: 0;
  overflow: hidden;
}
.sacola-item-info { flex: 1; min-width: 0; }
.sacola-item-name { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.sacola-item-extras { font-size: 0.74rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.sacola-item-price { font-size: 0.9rem; font-weight: 700; color: var(--primary); flex-shrink: 0; }

.sacola-item-actions {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 14px 12px; border-top: 1px dashed var(--border);
  background: rgba(0,0,0,0.04);
}
.sacola-action-btn {
  font-size: 0.78rem; font-weight: 500; background: none; border: none;
  cursor: pointer; padding: 0;
}
.sacola-action-btn.edit { color: var(--primary); }
.sacola-action-btn.remove { color: var(--muted); }
.sacola-qty-ctrl { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sacola-qty-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 1rem; cursor: pointer; color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.sacola-qty-num { font-size: 0.9rem; font-weight: 700; min-width: 16px; text-align: center; }

.sacola-divider { border: none; border-top: 1px dashed var(--border-dashed); margin: 14px 0; }

.sacola-coupon {
  background: var(--surface); border-radius: 10px; margin-bottom: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 14px; cursor: pointer;
}
.sacola-coupon-icon { font-size: 1.4rem; }
.sacola-coupon-label { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.sacola-coupon-sub { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.sacola-coupon-arrow { margin-left: auto; color: var(--primary); font-size: 1rem; }

.sacola-totals { background: var(--surface); border-radius: 10px; border: 1px solid var(--border); padding: 14px; margin-bottom: 16px; }
.sacola-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.84rem; color: var(--text-light); margin-bottom: 8px;
}
.sacola-total-row:last-child { margin-bottom: 0; font-weight: 700; color: var(--text); font-size: 0.95rem; }
.sacola-total-row.total-line { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }

.checkout-btn-big {
  width: 100%; padding: 15px; background: var(--primary); color: #fff;
  border: none; border-radius: 10px;
  font-family: 'Roboto', sans-serif; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s; margin-bottom: 30px;
}
.checkout-btn-big:hover { background: var(--primary-light); }

/* ─── CHECKOUT PAGE ─── */
.checkout-wrap { max-width: 600px; margin: 0 auto; padding: 20px 16px; }
.checkout-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 18px; }

.checkout-summary {
  background: var(--surface); border-radius: 10px; border: 1px solid var(--border);
  padding: 14px; margin-bottom: 20px;
}
.checkout-summary__title { font-size: 0.82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 10px; }
.checkout-item { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--text-light); margin-bottom: 6px; gap: 10px; }
.checkout-item span:first-child { flex: 1; }
.checkout-total { display: flex; justify-content: space-between; font-size: 0.92rem; font-weight: 700; color: var(--text); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 8px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-light); margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 16px; font-family: inherit;
  color: var(--text); background: var(--surface); outline: none; transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,57,43,0.15); }
.form-group input::placeholder { color: #666; }

.payment-title { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 12px; }
.payment-methods { display: flex; gap: 10px; margin-bottom: 18px; }
.pay-option {
  flex: 1; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 12px 8px; display: flex; flex-direction: column;
  align-items: center; gap: 6px; cursor: pointer; transition: all 0.2s;
  background: var(--surface);
}
.pay-option.selected { border-color: var(--primary); background: rgba(192,57,43,0.08); }
.pay-option__icon { font-size: 1.5rem; }
.pay-option__label { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.pay-option.selected .pay-option__label { color: var(--primary); }

.pix-info { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin-bottom: 18px; padding: 12px; background: var(--background); border-radius: 8px; }

.submit-btn {
  width: 100%; padding: 16px; background: var(--primary); color: #fff;
  border: none; border-radius: 12px;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s, transform 0.1s; margin-top: 6px;
  -webkit-appearance: none; appearance: none;
}
.submit-btn:hover { background: var(--primary-light); }
.submit-btn:active { transform: scale(0.98); background: var(--primary-dark); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* PIX result */
#pixQR { text-align: center; padding: 24px 16px; }
#pixQRImg { width: 200px; height: 200px; border-radius: 12px; display: block; margin: 0 auto 20px; border: 4px solid var(--surface); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.pix-copy-box {
  background: var(--background); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; margin-bottom: 14px;
  word-break: break-all; font-size: 0.72rem; color: var(--text);
  text-align: left; line-height: 1.5; cursor: pointer;
}
.pix-copy-btn {
  width: 100%; padding: 13px; background: #00b14f; color: #fff;
  border: none; border-radius: 10px;
  font-family: 'Roboto', sans-serif; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; margin-bottom: 16px;
}
.pix-success-msg { font-weight: 700; font-size: 0.88rem; color: #00b14f; line-height: 1.5; }

/* ─── STEPPER ─── */
.stepper {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 20px; gap: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.step {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; flex: 1;
}
.step-circle {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: var(--muted);
  transition: all 0.3s; position: relative; z-index: 1;
}
.step.active .step-circle { border-color: var(--primary); background: var(--primary); color: #fff; }
.step.done .step-circle { border-color: #4caf50; background: #4caf50; color: #fff; }
.step-label { font-size: 0.67rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.step.active .step-label { color: var(--primary); font-weight: 700; }
.step.done .step-label { color: #4caf50; }
.step-line {
  flex: 1; height: 2px; background: var(--border);
  margin: 0 4px; margin-bottom: 18px; transition: background 0.3s;
}
.step-line.done { background: #4caf50; }

/* ─── PAGE ITEM (product customization) ─── */
.item-page-header {
  background: var(--primary); color: #fff;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; position: sticky; top: 0; z-index: 100;
}
.item-page-back {
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.item-page-title { font-size: 1rem; font-weight: 700; flex: 1; }

.item-page-hero {
  width: 100%; height: 220px;
  background: linear-gradient(135deg, #f9eded, #f0e0e0);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
body.dark .item-page-hero { background: linear-gradient(135deg, #2a1515, #1e1010); }

.item-page-info {
  background: var(--surface); padding: 16px;
  border-bottom: 1px solid var(--border);
}
.item-page-name { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.item-page-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.item-page-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }

.item-page-content { padding: 0 0 120px; }

.item-section { background: var(--surface); margin-top: 8px; }
.item-section-header { padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.item-section-title { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.item-section-sub { font-size: 0.74rem; color: var(--muted); }
.item-section-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  padding: 2px 7px; border-radius: 10px; margin-left: 6px;
  background: rgba(0,0,0,0.06); color: var(--muted);
}
body.dark .item-section-badge { background: #2a2a2a; color: #aaa; }
.item-section-badge.required { background: #fdecea; color: var(--primary); }
body.dark .item-section-badge.required { background: #2a1010; color: #e57373; }

.item-section-list { padding: 4px 0; }

/* ─── SIZE SELECTOR ─── */
.size-options {
  display: flex; gap: 8px; padding: 12px 16px;
}
.size-option {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 10px 8px; border-radius: 10px;
  border: 2px solid var(--border); cursor: pointer;
  transition: border-color .18s, background .18s;
  background: var(--background);
}
.size-option:hover { border-color: var(--primary-light); }
.size-option.selected { border-color: var(--primary); background: rgba(192,57,43,0.06); }
body.dark .size-option.selected { background: #2a1010; }
.size-option-label { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.size-option-slices { font-size: 0.68rem; color: var(--muted); }
.size-option-price { font-size: 0.82rem; font-weight: 600; color: var(--primary); margin-top: 2px; }

.item-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer;
  transition: background 0.15s; border-bottom: 1px solid var(--border);
}
.item-option:last-child { border-bottom: none; }
.item-option:hover { background: rgba(0,0,0,0.03); }
body.dark .item-option:hover { background: #252525; }
.item-option.selected { background: rgba(192,57,43,0.06); }
body.dark .item-option.selected { background: #2a1010; }
.item-opt-img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.item-opt-emoji { font-size: 1.4rem; width: 30px; text-align: center; flex-shrink: 0; }
.item-opt-info { flex: 1; }
.item-opt-name { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.item-opt-price { font-size: 0.77rem; color: var(--primary); margin-top: 1px; font-weight: 500; }
.item-opt-price.free { color: #4caf50; }
.item-opt-check {
  width: 22px; height: 22px; border-radius: 4px;
  border: 2px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; flex-shrink: 0; transition: all 0.15s;
}
.item-opt-check.radio { border-radius: 50%; }
.item-option.selected .item-opt-check { background: var(--primary); border-color: var(--primary); color: #fff; }

.item-page-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface); padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  z-index: 100;
}
.item-footer-row {
  display: flex; align-items: center; gap: 12px;
  max-width: 600px; margin: 0 auto;
}
.item-qty-ctrl {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 12px;
  flex-shrink: 0;
}
.item-qty-btn {
  background: none; border: none; font-size: 1.2rem;
  cursor: pointer; color: var(--primary); font-weight: 700; line-height: 1;
}
.item-qty-num { font-weight: 700; min-width: 18px; text-align: center; font-size: 0.95rem; }
.item-add-btn {
  flex: 1; background: var(--primary); color: #fff; border: none;
  padding: 14px; border-radius: 10px;
  font-family: 'Roboto', sans-serif; font-size: 0.92rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
}
.item-add-btn:hover { background: var(--primary-light); }

/* ─── REVISÃO DO PEDIDO (Etapa 2) ─── */
.review-order-wrap { max-width: 600px; margin: 0 auto; padding: 16px; }
.review-check-icon { text-align: center; padding: 20px 0 8px; }
.review-check-icon .check-circle {
  width: 46px; height: 46px; border-radius: 50%;
  background: #e8f5e9; border: 2px solid #4caf50;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.review-order-title { text-align: center; font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.review-order-sub { text-align: center; font-size: 0.8rem; color: var(--muted); margin-bottom: 20px; }

.receipt-card {
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: 12px; padding: 16px; margin-bottom: 14px;
}
.receipt-header { text-align: center; padding-bottom: 10px; border-bottom: 1px dashed var(--border); margin-bottom: 10px; }
.receipt-store { font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: 1px; }
.receipt-cnpj { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
.receipt-datetime { font-size: 0.72rem; color: var(--muted); }
.receipt-client-row { display: flex; font-size: 0.82rem; margin-bottom: 5px; }
.receipt-client-label { font-weight: 700; color: var(--text); width: 60px; flex-shrink: 0; }
.receipt-client-val { color: var(--text-light); }
.receipt-items-header {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; font-weight: 700; color: var(--muted);
  border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border);
  padding: 6px 0; margin: 10px 0 6px;
}
.receipt-item-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: 0.82rem; color: var(--text); margin-bottom: 8px; gap: 8px;
}
.receipt-item-name { flex: 1; line-height: 1.3; }
.receipt-item-extra { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.receipt-item-price { font-weight: 600; flex-shrink: 0; }
.receipt-totals { border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 6px; }
.receipt-total-row { display: flex; justify-content: space-between; font-size: 0.83rem; color: var(--text-light); margin-bottom: 5px; }
.receipt-total-row.big { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-top: 4px; }
.receipt-frete-free { color: #4caf50; font-weight: 600; }

.review-coupon-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 12px;
}
.review-coupon-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.review-coupon-hint { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.coupon-input-row { display: flex; gap: 8px; }
.coupon-input {
  flex: 1; padding: 10px 12px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 0.85rem; font-family: 'Roboto', sans-serif;
  color: var(--text); background: var(--surface); outline: none;
  text-transform: uppercase;
}
.coupon-input:focus { border-color: var(--primary); }
.coupon-apply-btn {
  background: var(--primary); color: #fff; border: none;
  padding: 10px 18px; border-radius: 8px; font-size: 0.85rem;
  font-weight: 700; cursor: pointer; font-family: 'Roboto', sans-serif;
}

.review-address-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 12px;
  display: flex; align-items: flex-start; gap: 10px;
}
.review-address-icon { color: var(--primary); font-size: 1.1rem; margin-top: 1px; }
.review-address-info { flex: 1; }
.review-address-title { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.review-address-text { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; }
.review-address-edit {
  background: none; border: none; color: var(--primary);
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  font-family: 'Roboto', sans-serif; flex-shrink: 0; padding: 0;
}

.review-info-card {
  background: #fffbf0; border: 1px solid #ffe082;
  border-radius: 10px; padding: 14px 16px; margin-bottom: 16px;
}
body.dark .review-info-card { background: #1a1500; border-color: #4a3800; }
.review-info-title { font-size: 0.82rem; font-weight: 700; color: #f57c00; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
body.dark .review-info-title { color: #ffa726; }
.review-info-list { padding-left: 16px; }
.review-info-list li { font-size: 0.78rem; color: var(--text-light); line-height: 1.5; margin-bottom: 4px; }

.review-go-btn {
  width: 100%; padding: 16px; background: #f5a623; color: #1a1a1a;
  border: none; border-radius: 12px;
  font-family: 'Roboto', sans-serif; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; margin-bottom: 30px;
  transition: opacity 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.review-go-btn:hover { opacity: 0.9; }

/* ─── PROMO BANNER ─── */
.promo-banner {
  background: linear-gradient(135deg, #7b1fa2, #9c27b0);
  border-radius: 12px; padding: 14px 16px;
  margin-top: 18px; cursor: pointer;
  position: relative; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}
.promo-banner:hover { transform: scale(1.01); box-shadow: 0 4px 20px rgba(123,31,162,0.35); }
.promo-banner::before {
  content: '';
  position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.promo-banner.selected { border-color: #fff; box-shadow: 0 0 0 3px rgba(156,39,176,0.4); }
.promo-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.promo-tag {
  background: #ff6f00; color: #fff;
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.promo-title { color: #fff; font-size: 0.92rem; font-weight: 700; flex: 1; }
.promo-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5); background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.75rem; flex-shrink: 0; transition: all 0.2s;
}
.promo-banner.selected .promo-check { background: rgba(255,255,255,0.25); border-color: #fff; }
.promo-desc { color: rgba(255,255,255,0.8); font-size: 0.78rem; line-height: 1.4; margin-bottom: 8px; }
.promo-price-row { display: flex; align-items: center; gap: 8px; }
.promo-old-price { color: rgba(255,255,255,0.5); font-size: 0.78rem; text-decoration: line-through; }
.promo-new-price { color: #fff; font-size: 1rem; font-weight: 700; }
.promo-savings { background: #4caf50; color: #fff; font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; }

/* ─── AVAILABLE BANNER ─── */
.available-banner {
  background: linear-gradient(135deg, #0a2e0a, #1a4a1a);
  border-bottom: 1px solid #2d6e2d;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
.available-banner__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #4cde8a; flex-shrink: 0;
  box-shadow: 0 0 8px #4cde8a;
  animation: dotPulse 1.5s infinite;
}
@keyframes dotPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.3)} }
.available-banner__title { font-size: 0.85rem; font-weight: 700; color: #4cde8a; margin-bottom: 2px; }
.available-banner__sub { font-size: 0.73rem; color: rgba(255,255,255,0.65); }

/* ─── DRIVER CARD ─── */
.driver-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px; margin: 12px 16px 0;
}
.driver-card__row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.driver-card__photo {
  width: 54px; height: 54px; border-radius: 50%;
  object-fit: cover; border: 2px solid #4cde8a; flex-shrink: 0;
}
.driver-card__name { font-size: 0.92rem; font-weight: 700; color: var(--text); }
.driver-card__verified {
  background: #4cde8a; color: #000; font-size: 0.6rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.driver-card__stats { display: flex; gap: 12px; margin: 4px 0; flex-wrap: wrap; }
.driver-stat { font-size: 0.78rem; color: var(--muted); }
.driver-stat b { color: var(--text); }
.driver-card__vehicle { font-size: 0.75rem; color: var(--muted); }
.driver-card__address-row { border-top: 1px solid var(--border); padding-top: 10px; }
.driver-card__address-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.driver-card__address-val { font-size: 0.82rem; color: var(--text); margin-top: 3px; line-height: 1.4; }

/* ─── PAY2 METHODS ─── */
.pay2-methods { display: flex; gap: 10px; padding: 12px 16px; }
.pay2-opt {
  flex: 1; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; transition: all 0.2s; font-family: 'Roboto', sans-serif;
}
.pay2-opt--active { border-color: var(--primary); background: rgba(192,57,43,0.1); }
.pay2-opt__emoji { font-size: 1.4rem; }
.pay2-opt__label { font-size: 0.75rem; font-weight: 700; color: var(--text); }

/* ─── PIX BLOCK ─── */
.pix-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 16px; margin: 0 16px 16px;
  text-align: center;
}
.pix-block__title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.pix-block__loading { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--muted); font-size: 0.85rem; padding: 20px 0; }
.pix-block__spinner {
  width: 20px; height: 20px; border: 2.5px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pix-qr-wrap { display: inline-block; background: #fff; padding: 12px; border-radius: 12px; margin-bottom: 12px; }
.pix-qr-img { width: 180px; height: 180px; display: block; }
.pix-hint { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.pix-code-box {
  background: var(--background); border: 1px dashed var(--border);
  border-radius: 8px; padding: 10px 12px; font-size: 0.68rem;
  color: var(--muted); word-break: break-all; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  cursor: pointer; transition: border-color 0.2s;
}
.pix-code-box:hover { border-color: var(--primary); }
.pix-code-box__icon { font-size: 1rem; flex-shrink: 0; }
.pix-confirm-msg { font-size: 0.75rem; color: #4cde8a; margin-top: 12px; font-weight: 600; }

/* ─── CARD ERROR BLOCK ─── */
.card-error-block {
  background: var(--surface); border: 1px solid #c0392b;
  border-radius: 14px; padding: 24px 16px; margin: 0 16px 16px;
  text-align: center;
}
.card-error-icon { font-size: 2.5rem; margin-bottom: 10px; }
.card-error-title { font-size: 1rem; font-weight: 700; color: #e74c3c; margin-bottom: 6px; }
.card-error-sub { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }
.card-error-pix-btn { background: #4cde8a !important; color: #000 !important; font-weight: 700 !important; }

/* ─── HISTÓRIA PAGE ─── */
.historia-wrap { max-width: 680px; margin: 0 auto; padding: 20px 16px 60px; }
.historia-timeline { position: relative; padding-left: 28px; }
.historia-timeline::before {
  content: ''; position: absolute; left: 9px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--primary), transparent);
}
.historia-entry { position: relative; margin-bottom: 24px; }
.historia-entry::before {
  content: ''; position: absolute; left: -23px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--surface);
}
.historia-year { font-size: 0.72rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.historia-text { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; }
.historia-img-wrap { margin-bottom: 20px; }
.historia-img { width: 100%; height: 200px; object-fit: cover; border-radius: 14px; }

/* ─── EQUIPE PAGE ─── */
.equipe-wrap { max-width: 680px; margin: 0 auto; padding: 20px 16px 60px; }
.equipe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.equipe-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.equipe-photo { width: 100%; height: 160px; object-fit: cover; display: block; }
.equipe-info { padding: 12px; }
.equipe-name { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.equipe-role { font-size: 0.72rem; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.equipe-desc { font-size: 0.74rem; color: var(--muted); line-height: 1.5; }

/* ─── DARK TOGGLE BTN ─── */
.dark-toggle {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; border-radius: 20px;
  padding: 5px 12px 5px 8px;
  font-size: 0.75rem; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: background 0.2s; white-space: nowrap;
  font-family: 'Roboto', sans-serif;
}
.dark-toggle:hover { background: rgba(255,255,255,0.25); }
.dark-toggle-icon { font-size: 0.9rem; }

/* ─── REVIEWS ─── */
.reviews-content { padding: 16px; max-width: 760px; margin: 0 auto; }

.reviews-summary {
  background: var(--surface); border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 20px;
}
.reviews-score-big { text-align: center; flex-shrink: 0; }
.score-number { font-size: 3rem; font-weight: 700; color: var(--primary); line-height: 1; }
.score-stars { color: #f5a623; font-size: 1rem; margin: 4px 0; letter-spacing: 1px; }
.score-total { font-size: 0.75rem; color: var(--muted); }
.score-divider { width: 1px; background: var(--border); align-self: stretch; }
.score-bars { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.score-bar-row { display: flex; align-items: center; gap: 8px; }
.score-bar-label { font-size: 0.72rem; color: var(--muted); width: 10px; text-align: right; flex-shrink: 0; }
.score-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.score-bar-fill { height: 100%; background: #f5a623; border-radius: 3px; transition: width 0.6s ease; }
.score-bar-count { font-size: 0.7rem; color: var(--muted); width: 20px; text-align: right; flex-shrink: 0; }

.review-card {
  background: var(--surface); border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px; margin-bottom: 12px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.review-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: #fff;
  flex-shrink: 0; font-family: 'Roboto', sans-serif;
}
.review-meta { flex: 1; }
.review-name { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.review-location { font-size: 0.74rem; color: var(--muted); margin-top: 1px; }
.review-stars-row { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.review-stars { color: #f5a623; font-size: 0.85rem; letter-spacing: 1px; }
.review-date { font-size: 0.72rem; color: var(--muted); }
.review-badge { font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; background: #e8f5e9; color: #2e7d32; }
body.dark .review-badge { background: #1b3a22; color: #66bb6a; }
.review-text { font-size: 0.85rem; color: var(--text-light); line-height: 1.55; }
.review-footer { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.review-helpful { font-size: 0.74rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.review-helpful button {
  background: none; border: 1px solid var(--border); border-radius: 20px;
  padding: 2px 10px; font-size: 0.72rem; cursor: pointer; color: var(--muted);
  font-family: 'Roboto', sans-serif; transition: all 0.2s;
}
.review-helpful button:hover { border-color: var(--primary); color: var(--primary); }
.review-pizza-tag {
  margin-left: auto; background: rgba(192,57,43,0.08); color: var(--primary);
  font-size: 0.68rem; font-weight: 600; padding: 2px 8px; border-radius: 20px;
  border: 1px solid rgba(137,0,0,0.15);
}
body.dark .review-pizza-tag { background: #2a1010; border-color: rgba(192,57,43,0.3); }

.reviews-load-more {
  width: 100%; padding: 12px; margin-top: 4px; margin-bottom: 30px;
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: 'Roboto', sans-serif;
  font-size: 0.85rem; color: var(--muted); cursor: pointer; transition: all 0.2s;
}
.reviews-load-more:hover { border-color: var(--primary); color: var(--primary); }

/* ─── FOOTER ─── */
.site-footer { background: #1a1a1a; color: #aaa; padding: 32px 20px 20px; font-size: 0.8rem; line-height: 1.6; }
body.dark .site-footer { background: #0d0d0d; }
.footer-grid {
  max-width: 760px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-bottom: 24px;
}
.footer-col-title { color: #fff; font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.footer-col p, .footer-col li { color: #999; margin-bottom: 4px; font-size: 0.78rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { padding: 2px 0; }
.footer-link { color: #bbb; text-decoration: none; cursor: pointer; transition: color 0.2s; font-size: 0.78rem; }
.footer-link:hover { color: var(--primary); }
.footer-divider { border: none; border-top: 1px solid #2a2a2a; margin: 16px 0; }
.footer-bottom {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px;
}
.footer-bottom-left { font-size: 0.74rem; color: #666; }
.sitelock-badge {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 8px; padding: 6px 12px;
  font-size: 0.72rem; font-weight: 700; color: #1a5276;
  border: 2px solid #2e86c1; cursor: default;
}
.sitelock-icon { font-size: 1.2rem; }
.sitelock-text { line-height: 1.2; }
.sitelock-text span { display: block; font-size: 0.62rem; font-weight: 400; color: #666; }

/* ─── MODAL LEGAL ─── */
.legal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 800;
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.legal-overlay.open { opacity: 1; pointer-events: all; }
.legal-modal {
  background: var(--surface); width: 100%; max-width: 640px; margin: 0 auto;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 32px;
  transform: translateY(40px); transition: transform 0.25s;
  max-height: 82vh; overflow-y: auto; position: relative;
}
.legal-overlay.open .legal-modal { transform: translateY(0); }
.legal-modal-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-right: 36px; line-height: 1.3; }
.legal-modal-body { font-size: 0.83rem; color: var(--text-light); line-height: 1.7; }
.legal-modal-body h3 { font-size: 0.88rem; font-weight: 700; color: var(--text); margin: 16px 0 6px; }
.legal-modal-body p { margin-bottom: 10px; }
.legal-modal-body ul { padding-left: 18px; margin-bottom: 10px; }
.legal-modal-body ul li { margin-bottom: 4px; }
.close-legal {
  position: absolute; top: 16px; right: 16px;
  background: var(--background); border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #555;
}

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #222; color: #ddd; z-index: 700;
  padding: 14px 20px; font-size: 0.8rem;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px; justify-content: space-between;
  transform: translateY(0); transition: transform 0.4s;
}
.cookie-banner.hidden { transform: translateY(110%); }
.cookie-text { flex: 1; min-width: 200px; line-height: 1.5; }
.cookie-text a { color: #f5a623; cursor: pointer; text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-accept { background: var(--primary); color: #fff; border: none; padding: 8px 18px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; cursor: pointer; font-family: 'Roboto', sans-serif; }
.cookie-decline { background: transparent; color: #aaa; border: 1px solid #444; padding: 8px 14px; border-radius: 6px; font-size: 0.8rem; cursor: pointer; font-family: 'Roboto', sans-serif; }

/* ─── FAQ ─── */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.faq-q { padding: 14px 16px; font-size: 0.88rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; user-select: none; }
.faq-q:hover { background: rgba(0,0,0,0.03); }
body.dark .faq-q:hover { background: #252525; }
.faq-arrow { color: var(--primary); font-size: 1rem; transition: transform 0.25s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.2s; font-size: 0.82rem; color: var(--text-light); line-height: 1.6; padding: 0 16px; }
.faq-item.open .faq-a { max-height: 200px; padding: 0 16px 14px; }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #222; color: #fff; padding: 10px 20px;
  border-radius: 20px; font-size: 0.82rem;
  opacity: 0; transition: all 0.25s; pointer-events: none; z-index: 9000;
  white-space: nowrap; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.spacer { height: calc(80px + env(safe-area-inset-bottom, 0px)); }

/* ─── ITEM CARD PHOTO ─── */
.item-thumb-img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; display: block; flex-shrink: 0; }
.item-thumb-wrap { position: relative; flex-shrink: 0; }

/* ─── MOBILE OTIMIZAÇÕES EXTRAS ─── */
.item-page-content { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.checkout-wrap { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 480px) {
  .receipt-card { font-size: 0.8rem; }
  .checkout-wrap { padding-left: 12px; padding-right: 12px; }
  .equipe-grid { grid-template-columns: 1fr 1fr; }
  .hero-badge { font-size: 0.65rem; padding: 3px 8px; }
  .hero-title { font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 360px) {
  .equipe-grid { grid-template-columns: 1fr; }
  .stepper { padding: 12px 8px; }
  .step-label { font-size: 0.62rem; }
}

.categories, .extra-list, .items-list { user-select: none; -webkit-user-select: none; }

:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
