/* Cardápio Público Interativo — ZapPedidos */
:root {
  --green: #25D366;
  --green-dark: #128C7E;
  --dark: #1a1a2e;
  --gray: #6c757d;
  --light: #f8f9fa;
  --white: #fff;
  --radius: 12px;
  --danger: #e74c3c;
  --store-color: #0f3460;
  --theme-color: #25D366;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--light); color: #333; }

.loading { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:60vh; color:var(--gray); }
.spinner { width:40px; height:40px; border:4px solid #ddd; border-top-color:var(--theme-color); border-radius:50%; animation:spin .8s linear infinite; margin-bottom:16px; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ── Hero: Cover + Logo ────────────────────────────────────────────── */
.store-hero {
  position: relative; width: 100%;
  max-width: 700px; margin: 0 auto;
}
.store-cover {
  width: 100%; height: 200px;
  background: var(--store-color);
  position: relative;
}
.store-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 60%);
}
.store-logo-wrap {
  position: absolute; bottom: -36px; left: 24px; z-index: 5;
}
.store-logo {
  width: 80px; height: 80px; border-radius: 16px; object-fit: cover;
  border: 3px solid var(--white); box-shadow: 0 2px 12px rgba(0,0,0,.15);
  background: var(--white);
}

/* ── Store Info Card ───────────────────────────────────────────────── */
.store-info-card {
  max-width: 700px; margin: 0 auto;
  padding: 16px 20px 12px;
  background: var(--white);
  position: relative;
}
.store-info-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 48px; background: var(--white);
}
.store-info-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; position: relative; z-index: 2;
}
.store-name {
  font-size: 1.5rem; font-weight: 800; color: var(--dark);
  line-height: 1.2;
}
.btn-meus-pedidos {
  padding: 6px 14px; border: 1.5px solid var(--theme-color);
  border-radius: 20px; background: transparent;
  color: var(--theme-color); font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-meus-pedidos:active { background: var(--theme-color); color: #fff; }
.store-desc {
  font-size: .9rem; color: var(--gray); margin: 4px 0 8px;
  position: relative; z-index: 2;
}
.store-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px; position: relative; z-index: 2;
}
.status-open {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  background: #d4edda; color: #155724; font-size: .8rem; font-weight: 700;
}
.status-closed {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  background: #f8d7da; color: #842029; font-size: .8rem; font-weight: 700;
}
.meta-item {
  font-size: .85rem; color: #555; font-weight: 500;
}
.store-details {
  display: flex; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--gray);
  padding-bottom: 4px; position: relative; z-index: 2;
}
.detail-item { white-space: nowrap; }
.detail-whatsapp {
  display: inline-flex; align-items: center; gap: 4px;
  color: #25D366; font-weight: 600; font-size: .85rem;
  text-decoration: none; white-space: nowrap;
  transition: opacity .15s;
}
.detail-whatsapp:active { opacity: .7; }
.wa-icon { width: 16px; height: 16px; }
.detail-social {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 600; font-size: .85rem;
  text-decoration: none; white-space: nowrap;
  border-radius: 20px; padding: 3px 10px 3px 5px;
  transition: opacity .15s, transform .15s;
}
.detail-social:hover { opacity: .85; transform: translateY(-1px); }
.detail-social:active { opacity: .7; transform: none; }
.detail-instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.detail-facebook  { background: #1877F2; color: #fff; }
.detail-tiktok    { background: #010101; color: #fff; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .85rem; font-weight: 700; color: #f59e0b;
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 16px; padding: 2px 8px;
  cursor: pointer; transition: transform .15s;
}
.rating-badge:active { transform: scale(.95); }
.rating-badge .rating-star { font-size: 1rem; }
.rating-badge .rating-count { font-size: .72rem; font-weight: 500; color: #92400e; }
.social-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Store Closed Banner */
.store-closed-banner {
  max-width:700px; margin:8px auto 12px; padding:14px 18px;
  background:linear-gradient(135deg,#fff3cd,#ffe0b2); border:1px solid #f5c06b;
  border-radius:var(--radius); text-align:center; font-size:.92rem; color:#7a5000; line-height:1.6;
}
.store-paused-countdown {
  background:linear-gradient(135deg,#fff7ed,#ffedd5);
  border-color:#fdba74;
}
.pause-countdown-label {
  margin-top:8px; font-size:.78rem; font-weight:700; color:#9a3412; text-transform:uppercase;
}
.pause-countdown-time {
  margin:2px auto 6px; font-size:1.65rem; line-height:1.1; font-weight:800;
  color:#7c2d12; font-variant-numeric:tabular-nums; letter-spacing:0;
}
.pause-countdown-return {
  margin-bottom:4px; font-size:.85rem; color:#9a3412;
}

/* ── Horário toggle + detalhe expandível ──────────────────────────── */
.meta-horario-toggle {
  cursor: pointer; user-select: none; transition: opacity .15s;
}
.meta-horario-toggle:active { opacity: .6; }
.horario-arrow {
  font-size: .7rem; margin-left: 2px; display: inline-block;
  transition: transform .2s;
}
.store-horario-detalhe {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
  padding: 0 0; margin-bottom: 0;
  position: relative; z-index: 2;
}
.store-horario-detalhe.open {
  max-height: 200px; opacity: 1;
  padding: 8px 0 4px;
}
.detalhe-row {
  font-size: .82rem; color: #555; line-height: 1.6; padding: 2px 0;
}
.detalhe-icon { margin-right: 2px; }

/* ── Banner de boas-vindas ────────────────────────────────────────── */
@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.store-welcome-banner {
  max-width: 700px; margin: 0 auto 10px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
  animation: bannerSlideIn .35s ease both;
  position: relative;
}
.store-welcome-banner-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 44px 13px 18px;
  background: linear-gradient(135deg, var(--banner-start) 0%, var(--banner-end) 100%);
}
.welcome-banner-icon {
  font-size: 1.4rem; flex-shrink: 0; line-height: 1;
}
.welcome-banner-text {
  color: #fff; font-size: .93rem; font-weight: 600;
  line-height: 1.45; margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
  flex: 1;
}
.welcome-banner-close {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  background: rgba(255,255,255,.25); border: none; cursor: pointer;
  color: #fff; font-size: .95rem; line-height: 1;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  padding: 0;
}
.welcome-banner-close:hover { background: rgba(255,255,255,.45); }

/* Container */
.menu-container { max-width: 700px; margin: 0 auto 100px; padding: 0 16px; position: relative; }

/* ── Category Nav Tabs (horizontal scroll) ─────────────────────────── */
.cat-nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--white); border-bottom: 1px solid #eee;
  padding: 0; margin: 0 -16px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cat-nav-inner {
  display: flex; gap: 6px; padding: 10px 16px;
  overflow-x: auto; scrollbar-width: none;
  overscroll-behavior-x: contain; touch-action: pan-y pan-x;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-btn {
  flex-shrink: 0; padding: 8px 16px; border-radius: 20px;
  border: 1.5px solid #ddd; background: var(--white); color: #555;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: all .2s;
}
.cat-nav-btn:active { transform: scale(.96); }
.cat-nav-btn.active {
  background: var(--theme-color); color: #fff; border-color: var(--theme-color);
}

/* ── Search Bar ────────────────────────────────────────────────────── */
.search-bar { margin-bottom: 16px; }
.search-input {
  width: 100%; padding: 12px 16px; border: 1.5px solid #e0e0e0;
  border-radius: 12px; font-size: .95rem; background: var(--white);
  color: #333; transition: border-color .2s; outline: none;
}
.search-input:focus { border-color: var(--theme-color); box-shadow: 0 0 0 3px rgba(37,211,102,.08); }
.search-input::placeholder { color: #aaa; }

/* ── Category Banner (com imagem) ──────────────────────────────────── */
.category-banner {
  width: 100%; height: 140px; background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.category-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 100%);
  display: flex; align-items: flex-end; padding: 16px 20px;
}
.category-banner-title {
  color: #fff; font-size: 1.3rem; font-weight: 800;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* Category */
.category { background: var(--white); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.category-header { padding: 16px 20px; font-size: 1.15rem; font-weight: 700; color: var(--dark); border-bottom: 2px solid var(--theme-color); }

/* Item row */
.item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid #f0f0f0; cursor: pointer;
  transition: background .15s;
}
.item:active { background: #f5f5f5; }
.item:last-child { border-bottom: none; }
.item-esgotado { opacity: .55; pointer-events: auto; }
.destaque-esgotado { opacity: .55; }
.destaque-card-img-wrap { position: relative; }
/* ── Destaques Carousel ────────────────────────────────────────────── */
.destaques-section {
  background: var(--white); border-radius: var(--radius);
  margin-bottom: 20px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.destaques-section-title {
  padding: 14px 20px; font-size: 1.15rem; font-weight: 700; color: var(--dark);
  border-bottom: 2px solid var(--theme-color);
}
.destaques-carousel {
  display: flex; gap: 12px; padding: 14px 16px 16px;
  overflow-x: auto; scrollbar-width: none;
  overscroll-behavior-x: contain; touch-action: pan-y pan-x;
}
.destaques-carousel::-webkit-scrollbar { display: none; }
.destaque-card {
  flex-shrink: 0; width: 148px; border-radius: 12px;
  background: var(--white); border: 1.5px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0,0,0,.07); cursor: pointer;
  overflow: hidden; transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.destaque-card:active { transform: scale(.97); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.destaque-card-img-wrap {
  width: 100%; height: 110px; overflow: hidden; flex-shrink: 0;
}
.destaque-card-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.destaque-card-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 2rem;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}
.destaque-card-body {
  padding: 8px 10px 10px; flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.destaque-card-name {
  font-size: .85rem; font-weight: 600; color: #222; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.destaque-card-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto;
}
.destaque-card-price {
  font-size: .9rem; font-weight: 700; color: var(--theme-color); line-height: 1.2;
}
.destaque-partir { display: block; font-size: .62em; font-weight: 500; line-height: 1; margin-bottom: 1px; }
.destaque-card-btn {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--theme-color);
  background: var(--white); color: var(--theme-color); font-size: 1.1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s; flex-shrink: 0;
  line-height: 1;
}
.destaque-card-btn:active { background: var(--theme-color); color: #fff; }
.frete-gratis-promo {
  background: linear-gradient(90deg, #15803d 0%, #16a34a 50%, #22c55e 100%);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .1px;
  box-shadow: 0 3px 10px rgba(21,128,61,.25);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .4s ease;
  line-height: 1.5;
}
.frete-gratis-promo-icon { font-size: 1rem; margin-right: 4px; }
.cupom-destaque-banner {
  background: linear-gradient(90deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .1px;
  box-shadow: 0 3px 10px rgba(124,58,237,.25);
  cursor: pointer;
  transition: filter .2s ease;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius);
}
.cupom-destaque-banner:active { filter: brightness(.9); }
.cupom-destaque-icon { font-size: 1rem; margin-right: 4px; }
.item-img { width:72px; height:72px; border-radius:8px; object-fit:cover; flex-shrink:0; margin-right:12px; }
.item-info { flex: 1; min-width:0; }
.item-name { font-weight: 600; font-size: .95rem; color: #222; user-select: text; -webkit-user-select: text; }
.item-desc { font-size: .82rem; color: var(--gray); margin-top:2px; user-select: text; -webkit-user-select: text; }
.item-comps-hint { margin-top: 4px; display:flex; flex-wrap:wrap; gap:4px; }
.comp-hint { font-size:.72rem; background:var(--light); padding:2px 8px; border-radius:4px; color:#777; }
.item-right { display:flex; flex-direction:column; align-items:flex-end; gap:6px; margin-left:12px; flex-shrink:0; }
.item-price { font-weight: 700; font-size: 1rem; color: var(--theme-color); white-space: nowrap; user-select: text; -webkit-user-select: text; text-align: right; line-height: 1.2; }
.item-partir { display: block; font-size: .62em; font-weight: 500; line-height: 1; margin-bottom: 1px; white-space: nowrap; }
.btn-add {
  width:32px; height:32px; border-radius:50%; border:2px solid var(--theme-color);
  background:var(--white); color:var(--theme-color); font-size:1.2rem; font-weight:700;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition: all .15s;
}
.btn-add:active { background:var(--theme-color); color:#fff; }

/* ── Modal overlay ─────────────────────────────────────────────────── */
.modal-overlay {
  position:fixed; top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,.5); z-index:100;
  display:flex; align-items:flex-end; justify-content:center;
}
.modal-card {
  background:var(--white); border-radius:20px 20px 0 0;
  width:100%; max-width:500px; max-height:85vh; overflow-y:auto;
  padding:20px; animation:slideUp .25s ease-out;
}
.modal-cart-card { max-height:90vh; }
@keyframes slideUp { from { transform:translateY(100%); } to { transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.modal-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.modal-header h2 { font-size:1.2rem; color:var(--dark); }
.modal-close { font-size:1.5rem; cursor:pointer; color:var(--gray); padding:4px 8px; }
.modal-desc { color:var(--gray); font-size:.9rem; margin-bottom:8px; }
.modal-img { width:100%; height:200px; object-fit:cover; border-radius:12px; margin-bottom:12px; display:block; }
.modal-price { font-size:1.3rem; font-weight:700; color:var(--theme-color); margin-bottom:16px; }

/* Complemento sections */
.comp-sections { margin-bottom:16px; }
.comp-section { margin-bottom:14px; padding:12px; background:#fafafa; border-radius:10px; transition:box-shadow .3s; }
.comp-section.shake { animation:shakeIt .5s; box-shadow:0 0 0 2px var(--danger); }
@keyframes shakeIt { 0%,100% { transform:translateX(0); } 25% { transform:translateX(-6px); } 75% { transform:translateX(6px); } }
.comp-title { font-weight:600; font-size:.95rem; color:var(--dark); margin-bottom:8px; display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.comp-required { font-size:.7rem; background:var(--danger); color:#fff; padding:2px 6px; border-radius:4px; }
.comp-range { font-size:.7rem; color:var(--gray); margin-left:auto; }

.comp-option {
  display:flex; align-items:center; padding:8px 0; border-bottom:1px solid #eee; gap:10px;
}
.comp-option:last-child { border-bottom:none; }
.comp-label { flex:1; font-size:.9rem; }
.comp-desc { display:block; font-size:.7rem; color:#999; font-weight:400; line-height:1.2; margin-top:1px; }
.comp-extra { color:var(--green-dark); font-weight:600; font-size:.85rem; white-space:nowrap; }

/* Complement qty control */
.comp-qty-control {
  display:flex; align-items:center; gap:0; background:#f0f0f0; border-radius:8px;
  overflow:hidden; flex-shrink:0; transition:background .2s;
}
.comp-qty-control.comp-qty-active { background:#e8f5e9; }
.comp-qty-btn {
  width:32px; height:32px; border:none; background:transparent; font-size:1rem;
  font-weight:700; cursor:pointer; color:var(--dark); display:flex;
  align-items:center; justify-content:center; transition:background .15s;
}
.comp-qty-btn:active { background:#ddd; }
.comp-qty-val {
  min-width:22px; text-align:center; font-weight:700; font-size:.95rem; color:var(--dark);
}

/* Qty + Add btn */
.modal-footer { display:flex; align-items:center; gap:12px; margin-top:16px; padding-top:12px; border-top:1px solid #eee; }
.qty-control { display:flex; align-items:center; gap:0; background:#f0f0f0; border-radius:8px; overflow:hidden; }
.qty-btn { width:38px; height:38px; border:none; background:transparent; font-size:1.2rem; font-weight:700; cursor:pointer; color:var(--dark); }
.qty-btn:active { background:#ddd; }
.qty-val { min-width:28px; text-align:center; font-weight:700; font-size:1rem; }
.btn-confirm {
  flex:1; padding:12px; border:none; border-radius:10px;
  background:var(--theme-color); color:#fff; font-size:1rem; font-weight:700;
  cursor:pointer; text-align:center; transition:background .15s;
}
.btn-confirm:active { background:var(--green-dark); }

/* ── Cart bar (bottom fixed) ───────────────────────────────────────── */
.cart-bar {
  position:fixed; bottom:0; left:0; right:0;
  background:var(--theme-color); color:#fff; padding:14px 20px;
  display:flex; justify-content:space-between; align-items:center;
  cursor:pointer; z-index:50; font-weight:600;
  box-shadow:0 -2px 16px rgba(0,0,0,.15);
}
.cart-bar-left { display:flex; align-items:center; gap:8px; }
.cart-bar-icon { font-size:1.3rem; }
.cart-bar-total { font-size:1.1rem; }

/* ── Cart modal items ──────────────────────────────────────────────── */
.cart-items { margin-bottom:12px; }
.cart-item { padding:12px 0; border-bottom:1px solid #eee; }
.cart-item:last-child { border-bottom:none; }
.cart-item-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
.cart-item-name { font-weight:600; font-size:.95rem; }
.cart-item-price { font-weight:700; color:var(--theme-color); }
.cart-item-comps { margin:4px 0 2px 0; }
.comp-tag { font-size:.75rem; background:var(--light); padding:2px 8px; border-radius:4px; color:#555; }
.comp-grp-titulo { font-size:.8rem; font-weight:600; color:#555; margin:4px 0 1px 2px; }
.comp-grp-item { font-size:.82rem; color:#666; margin:1px 0 1px 10px; }
.comp-grp-preco { color:#999; font-size:.78rem; }
.cart-item-actions { display:flex; align-items:center; gap:8px; margin-top:6px; }
.qty-btn-sm {
  width:28px; height:28px; border-radius:6px; border:1px solid #ddd;
  background:var(--white); font-size:1rem; font-weight:700; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.qty-btn-sm:active { background:#eee; }
.cart-item-qty { font-weight:700; min-width:20px; text-align:center; }
.btn-remove { border:none; background:none; font-size:1.1rem; cursor:pointer; padding:4px; }
.btn-edit { border:none; background:none; font-size:1rem; cursor:pointer; padding:4px; }

/* Form row 2 cols */
.form-row-2 { display:flex; gap:8px; }
.form-row-2 label { flex:1; }
.form-row-2 label:first-child { max-width:120px; }

/* Pedidos list */
.pedidos-list { max-height:60vh; overflow-y:auto; padding:0 4px; }
.pedido-card { background:#f9f9f9; border-radius:10px; padding:12px; margin-bottom:10px; border:1px solid #eee; }
.pedido-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
.pedido-num { font-weight:700; color:var(--dark); }
.pedido-data { font-size:.8rem; color:#888; margin-bottom:6px; }
.pedido-itens { font-size:.88rem; color:#555; white-space:pre-wrap; margin-bottom:4px; }
.pedido-obs { font-size:.82rem; color:#777; margin-bottom:4px; }
.pedido-total { font-weight:700; color:var(--theme-color); font-size:.95rem; }
.btn-repetir {
  width:100%; margin-top:8px; padding:8px; border:1.5px solid var(--theme-color); border-radius:8px;
  background:#fff; color:var(--theme-color); font-size:.88rem; font-weight:600;
  cursor:pointer; transition:background .15s, color .15s;
}
.btn-repetir:active { background:var(--theme-color); color:#fff; }
.status-badge { font-size:.75rem; padding:3px 8px; border-radius:20px; font-weight:600; }
.status-aceito { background:#fff3cd; color:#856404; }
.status-preparando { background:#cce5ff; color:#004085; }
.status-entrega { background:#d4edda; color:#155724; }
.status-concluido { background:#d1e7dd; color:#0f5132; }
.status-cancelado { background:#f8d7da; color:#842029; }

.cart-total {
  display:flex; justify-content:space-between; font-size:1.2rem; font-weight:700;
  padding:12px 0; border-top:2px solid var(--theme-color); color:var(--dark);
}
.btn-checkout {
  width:100%; padding:14px; border:none; border-radius:10px;
  background:var(--theme-color); color:#fff; font-size:1.05rem; font-weight:700;
  cursor:pointer; margin-top:8px; transition:background .15s;
}
.btn-checkout:active { background:var(--green-dark); }
.btn-checkout:disabled { opacity:.6; cursor:not-allowed; }
.btn-whatsapp-checkout {
  background:var(--green-dark);
}
.btn-whatsapp-checkout:active { background:#0a6b5e; }
.btn-continue {
  width:100%; padding:10px; border:none; border-radius:10px;
  background:transparent; color:var(--gray); font-size:.9rem;
  cursor:pointer; margin-top:4px; text-align:center;
}
.btn-trocar-pag {
  width:100%; padding:10px 16px; border:2px solid #e67e22; border-radius:10px;
  background:#fff7ed; color:#c05621; font-size:.9rem; font-weight:700;
  cursor:pointer; margin-top:8px; text-align:center; transition:all .15s;
}
.btn-trocar-pag:active { background:#fed7aa; }
.btn-pagar-pix {
  width:100%; padding:10px; border:none; border-radius:10px;
  background:linear-gradient(135deg,#3b82f6,#6366f1); color:#fff;
  font-size:.9rem; font-weight:700; cursor:pointer; margin-top:6px;
}

/* PIX Key Box */
.pix-key-box { background:#f0fdf4; border:1px solid #bbf7d0; border-radius:10px; padding:12px 14px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:8px 0; }
.pix-key-box .pix-label { font-size:.85rem; color:var(--gray); white-space:nowrap; }
.pix-key-box code { flex:1; font-size:.95rem; font-weight:600; color:var(--dark); word-break:break-all; background:transparent; }
.btn-copy-pix { border:1px solid var(--theme-color); background:var(--white); color:var(--theme-color); border-radius:8px; padding:6px 12px; font-size:.85rem; font-weight:600; cursor:pointer; white-space:nowrap; transition:all .15s; }
.btn-copy-pix:active { background:var(--theme-color); color:#fff; }
.pix-success-box { background:#f0fdf4; border:1px solid #bbf7d0; border-radius:12px; padding:16px; margin:12px 0; text-align:center; }
.pix-success-box p { margin-bottom:8px; font-weight:600; color:var(--dark); }

/* PIX Asaas - QR Layout */
.pix-qr-header { text-align:center; margin-bottom:12px; }
.pix-icon-row { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:6px; }
.pix-title { font-size:1.15rem; font-weight:700; color:var(--dark); }
.pix-valor-destaque { font-size:1.5rem; font-weight:800; color:#32BCAD; }
.pix-qr-container { text-align:center; margin:16px 0; padding:16px; background:#fff; border-radius:12px; border:2px solid #e5e7eb; }
.pix-qr-img { max-width:200px; width:100%; border-radius:8px; }
.pix-timer { text-align:center; font-size:.85rem; color:#92400e; background:#fef3c7; padding:8px 12px; border-radius:8px; margin:8px 0; font-weight:600; }
.pix-copiacola-box { margin:12px 0; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:12px; padding:14px; }
.pix-copiacola-label { font-size:.82rem; color:#666; font-weight:600; margin-bottom:8px; }
.pix-copiacola-row { background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:10px; margin-bottom:10px; }
.pix-copiacola-code { word-break:break-all; font-size:.72rem; color:#374151; line-height:1.4; display:block; background:transparent; }
.pix-copiar-btn { width:100%; padding:12px; border:none; border-radius:10px; background:#32BCAD; color:#fff; font-size:.95rem; font-weight:700; cursor:pointer; transition:background .15s; }
.pix-copiar-btn:active { background:#2a9e91; }
.pix-status-aguardando { text-align:center; padding:12px; color:#f39c12; font-weight:700; font-size:.95rem; background:#fffbeb; border-radius:10px; margin-top:10px; animation:pix-pulse 2s infinite; }
.pix-status-confirmado { text-align:center; padding:14px; color:#065f46; font-weight:700; font-size:1.05rem; background:#d1fae5; border-radius:10px; margin-top:10px; }
@keyframes pix-pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* Toast */
.toast {
  position:fixed; top:20px; left:50%; transform:translateX(-50%) translateY(-80px);
  background:var(--dark); color:#fff; padding:10px 20px; border-radius:10px;
  font-size:.9rem; z-index:200; transition:transform .3s; white-space:nowrap;
  box-shadow:0 4px 16px rgba(0,0,0,.2);
}
.toast.show { transform:translateX(-50%) translateY(0); }

/* Error / Empty */
.error-box { text-align: center; padding: 60px 24px; color: var(--gray); }
.error-box h2 { font-size: 1.5rem; color: var(--dark); margin-bottom: 8px; }
.empty-menu { text-align: center; padding: 60px 24px; color: var(--gray); }

/* ── Checkout Form ─────────────────────────────────────────────────── */
.checkout-summary { margin-bottom:16px; padding:12px; background:#fafafa; border-radius:10px; }
.checkout-item { display:flex; justify-content:space-between; align-items:center; padding:6px 0; font-size:.9rem; border-bottom:1px solid #eee; }
.checkout-item:last-child { border-bottom:none; }
.checkout-item-price { font-weight:700; color:var(--theme-color); white-space:nowrap; margin-left:8px; }

.checkout-form { display:flex; flex-direction:column; gap:12px; margin-bottom:16px; }
.checkout-form label { display:flex; flex-direction:column; gap:4px; font-size:.85rem; font-weight:600; color:var(--dark); }

/* ── Seções do checkout ──────────────────────────────────────────── */
.ck-section-header {
  font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  color:var(--gray); padding:10px 0 2px; margin-top:4px;
  border-top:1px solid #eee;
}
.ck-section-header:first-child { border-top:none; margin-top:0; padding-top:0; }

.checkout-form input, .checkout-form select {
  padding:12px; border:1px solid #ddd; border-radius:10px; font-size:.95rem;
  background:var(--white); color:#333; transition:border-color .2s;
}
.checkout-form input:focus, .checkout-form select:focus { border-color:var(--theme-color); outline:none; }

/* ── Cupom de desconto ─────────────────────────────────────────────── */
.cupom-section { margin-top:4px; }
.cupom-section label { font-size:.85rem; font-weight:600; color:var(--dark); }
.btn-aplicar-cupom {
  padding:10px 16px; border:none; border-radius:10px; font-size:.85rem; font-weight:600;
  background:var(--theme-color); color:#fff; cursor:pointer; transition:opacity .15s; white-space:nowrap;
}
.btn-aplicar-cupom:hover { opacity:.9; }
.btn-aplicar-cupom:active { opacity:.8; }
.btn-aplicar-cupom:disabled { opacity:.5; cursor:not-allowed; }

/* ── Modo de Entrega ───────────────────────────────────────────────── */
.modo-entrega-wrap { margin-bottom:4px; }
.modo-entrega-wrap > label { font-size:.85rem; font-weight:600; color:var(--dark); margin-bottom:6px; display:block; }
.modo-entrega-btns { display:flex; gap:8px; }
.modo-btn { flex:1; padding:12px; border:2px solid #ddd; border-radius:10px; background:var(--white);
  font-size:.95rem; font-weight:600; cursor:pointer; transition:all .2s; text-align:center; }
.modo-btn:hover { border-color:var(--theme-color); }
.modo-btn.active { border-color:var(--theme-color); background:var(--green-light); color:var(--green-dark); }

/* ── Endereço Salvo ────────────────────────────────────────────────── */
.endereco-salvo {
  background:linear-gradient(135deg,#e8f5e9,#c8e6c9); border:1px solid #a5d6a7;
  border-radius:10px; padding:14px; margin-bottom:12px;
}
.endereco-salvo.endereco-ativo { border-color:var(--theme-color); box-shadow:0 0 0 2px rgba(37,211,102,.2); }
.endereco-salvo-header { font-size:.85rem; font-weight:700; color:var(--green-dark); margin-bottom:6px; }
.endereco-salvo-text { font-size:.9rem; color:#333; }
.endereco-salvo-ref { font-size:.82rem; color:var(--gray); margin-top:2px; }
.endereco-salvo-actions { display:flex; gap:8px; margin-top:10px; }
.btn-usar-endereco, .btn-novo-endereco {
  flex:1; padding:10px; border-radius:8px; font-size:.82rem; font-weight:600; cursor:pointer; border:none; transition:opacity .15s;
}
.btn-usar-endereco { background:var(--theme-color); color:#fff; }
.btn-novo-endereco { background:var(--white); color:var(--dark); border:1px solid #ddd; }
.btn-usar-endereco:active, .btn-novo-endereco:active { opacity:.8; }

/* ── Lista de endereços salvos (multi) ────────────────────────────── */
.enderecos-lista { margin-bottom:12px; }
.enderecos-lista-header { font-size:.85rem; font-weight:700; color:var(--green-dark); margin-bottom:8px; }
.endereco-item {
  display:flex; align-items:center; gap:8px; padding:10px 12px;
  background:#f7faf7; border:1.5px solid #e0e0e0; border-radius:10px;
  margin-bottom:6px; cursor:pointer; transition:all .15s;
}
.endereco-item.endereco-ativo { border-color:var(--theme-color); background:linear-gradient(135deg,#e8f5e9,#c8e6c9); box-shadow:0 0 0 2px rgba(37,211,102,.15); }
.endereco-item-content { display:flex; align-items:center; gap:8px; flex:1; min-width:0; }
.endereco-item-radio { font-size:1rem; flex-shrink:0; }
.endereco-item-info { flex:1; min-width:0; }
.endereco-item-text { font-size:.88rem; color:#333; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.endereco-item-ref { font-size:.78rem; color:var(--gray); margin-top:1px; }
.endereco-item-del { background:none; border:none; cursor:pointer; font-size:1.2rem; padding:10px 12px; opacity:.7; transition:opacity .15s; flex-shrink:0; min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center; }
.endereco-item-del:hover, .endereco-item-del:active { opacity:1; background:rgba(229,57,53,.08); border-radius:8px; }
.endereco-novo-btn { border-style:dashed; background:#fafafa; }

/* ── Prompt salvar endereço (success screen) ─────────────────────── */
.salvar-endereco-prompt {
  background:linear-gradient(135deg,#fff8e1,#fff3c4); border:1.5px solid #ffd54f;
  border-radius:10px; padding:14px; margin-top:12px;
}
.salvar-endereco-header { font-size:.88rem; font-weight:700; color:#e65100; margin-bottom:6px; }
.salvar-endereco-text { font-size:.85rem; color:#333; margin-bottom:10px; }
.salvar-endereco-actions { display:flex; gap:8px; }

/* ── Observação no carrinho ────────────────────────────────────────── */
.cart-obs-label { display:flex; flex-direction:column; gap:4px; font-size:.85rem; font-weight:600; color:var(--dark); margin-top:8px; padding:0 4px; }
.cart-obs-label input { padding:10px 12px; border:1px solid #ddd; border-radius:10px; font-size:.9rem; background:var(--white); color:#333; }
.cart-obs-label input:focus { border-color:var(--theme-color); outline:none; }

.checkout-error {
  padding:10px 14px; background:#fef2f2; border:1px solid #fecaca;
  border-radius:8px; color:var(--danger); font-size:.85rem; margin-bottom:8px; text-align:center;
}

/* ── Success Screen ────────────────────────────────────────────────── */
.checkout-success { text-align:center; padding:32px 16px; }
.success-icon { font-size:3rem; margin-bottom:12px; }
.checkout-success h2 { font-size:1.5rem; color:var(--dark); margin-bottom:8px; }
.success-id { font-size:1.8rem; font-weight:800; color:var(--theme-color); margin-bottom:16px; }
.success-hint { color:var(--gray); font-size:.9rem; margin-bottom:24px; }

/* ── Fidelidade Badge ──────────────────────────────────────────────── */
.fidelidade-badge {
  background:linear-gradient(135deg,#fff9e6,#fff3cc); border:1px solid #ffe082;
  border-radius:10px; padding:12px 16px; margin-bottom:12px; text-align:center;
  font-size:.9rem; color:#6d4c00;
}
.fidelidade-bar {
  width:100%; height:8px; background:#e0e0e0; border-radius:4px; margin-top:8px; overflow:hidden;
}
.fidelidade-fill {
  height:100%; background:linear-gradient(90deg,#ffc107,#ff9800); border-radius:4px;
  transition:width .5s ease;
}
.fidelidade-resgate {
  margin-top:10px; padding-top:10px; border-top:1px dashed #ffe082;
}
.fidelidade-recomp {
  font-size:.85rem; margin:0 0 8px;
}
.btn-resgate {
  width:100%; padding:10px 16px; border:2px solid #ff9800; border-radius:8px;
  background:#fff; color:#e65100; font-weight:700; font-size:.9rem; cursor:pointer;
  transition:all .2s;
}
.btn-resgate:hover { background:#fff3e0; }
.btn-resgate-ativo {
  background:linear-gradient(135deg,#43a047,#2e7d32) !important;
  color:#fff !important; border-color:#2e7d32 !important;
}
.desconto-fidelidade-row {
  display:flex; justify-content:space-between; padding:8px 0;
  color:#2e7d32; font-size:.9rem; border-bottom:1px dashed #c8e6c9;
}

/* ── Botão WhatsApp Notificações ────────────────────────────────── */
.btn-whatsapp-notif {
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:auto; padding:12px 16px; margin-top:10px;
  background:#25D366; color:#fff; font-size:.95rem; font-weight:700;
  text-align:center; text-decoration:none;
  border:none; border-radius:10px;
  cursor:pointer; transition:background .15s; box-sizing:border-box;
}
.btn-whatsapp-notif:hover { background:#1ebe5d; }
.btn-whatsapp-notif svg { flex-shrink:0; }

/* ── Rodapé ZapPedidos ─────────────────────────────────────────── */
.zp-footer {
  text-align:center; padding:18px 12px 80px; font-size:.82rem; color:#999;
}
.zp-footer a {
  color:#999; text-decoration:none; transition:color .2s;
}
.zp-footer a:hover { color:#25d366; }
.zp-footer strong { color:#777; }
.fidelidade-success {
  background:linear-gradient(135deg,#fff9e6,#fff3cc); border:1px solid #ffe082;
  border-radius:10px; padding:16px; margin:16px 0; color:#6d4c00;
}
.fidelidade-validade {
  font-size:.8rem; margin-top:6px; color:#e65100;
}
.pix-nome, .pix-nome-success {
  font-size:.9rem; margin-bottom:6px; color:#333;
}
.comprovante-box {
  margin-top:12px; padding-top:12px; border-top:1px dashed #c8e6c9;
}
.comprovante-box p {
  font-size:.9rem; margin:0 0 8px; color:#555;
}
.btn-comprovante {
  display:inline-block; padding:10px 20px; background:#25D366; color:#fff;
  border-radius:8px; text-decoration:none; font-weight:700; font-size:.9rem;
  transition:background .2s;
}
.btn-comprovante:hover { background:#1da851; }

@media (max-width: 600px) {
  .store-header { padding: 32px 16px 24px; }
  .store-header h1 { font-size: 1.4rem; }
  .modal-card { border-radius:16px 16px 0 0; padding:16px; }
}
