/* ============================================================================
   NABAG v2.3 — Vitrine Mobile-First Estilo App (Colorida, Compacta e Rápida)
   + Sem header duplicado, Card 4 colunas, Bolinhas centralizadas,
   + Modo "Monte o seu" passo a passo e Drawer BAG 100dvh seguro no iPhone
   ============================================================================ */
:root {
  --brand-primary: #16A34A;
  --brand-secondary: #0EA5E9;
  --brand-accent: #1E293B;
  --brand-bag: #1D4ED8;
  --brand-bg: #F6F7F9;
  --brand-text: #111827;
  --surface: #FFFFFF;
  --surface-soft: #F3F4F6;
  --border: #E8ECF1;
  --border-strong: #CBD5E1;
  --muted: #64748B;
  --danger: #DC2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-xs: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.13);
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--brand-bg);
  color: var(--brand-text);
  line-height: 1.45;
  padding-bottom: calc(134px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .item-title, .price-current { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

.nb-ico { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.app-shell {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* Seletor de Unidades/Franquias */
.unit-switcher-bar {
  background: color-mix(in srgb, var(--brand-primary) 8%, #FFFFFF);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 18%, #E5E7EB);
  padding: 8px 14px;
  font-size: 0.8rem;
}
.unit-switcher-inner { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.unit-switcher-inner::-webkit-scrollbar { display: none; }
.unit-switcher-label { color: var(--brand-accent); font-weight: 700; white-space: nowrap; }
.unit-pills { display: flex; gap: 6px; }
.unit-pill {
  white-space: nowrap; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: #FFFFFF; font-weight: 600; font-size: 0.78rem;
}
.unit-pill.active { background: var(--brand-primary); border-color: var(--brand-primary); color: #FFFFFF; }

/* ============================================================================
   CAPA + PERFIL + CARD ÚNICO COMPACTO 4 COLUNAS
   ============================================================================ */
.app-hero-section {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.app-cover {
  position: relative;
  height: 158px;
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-primary) 58%, var(--brand-secondary) 100%);
  background-size: cover;
  background-position: center;
}
.app-cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.36) 100%);
}
.cover-top-actions {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  z-index: 4;
  display: flex;
  gap: 8px;
}
.cover-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.app-profile-sheet {
  position: relative;
  z-index: 4;
  background: #FFFFFF;
  border-radius: 22px 22px 0 0;
  margin-top: -22px;
  padding: 0 14px 14px;
}

.app-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.app-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  margin-top: -34px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}
.app-avatar-wrap.has-stories {
  background: linear-gradient(135deg, #F59E0B, #EC4899, #8B5CF6, var(--brand-primary));
  cursor: pointer;
}
.app-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #FFFFFF;
  background: #FFFFFF;
}
.avatar-story-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #EC4899, #F59E0B);
  color: #FFFFFF;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  border: 2px solid #FFFFFF;
}

.app-identity-std { min-width: 0; flex: 1; }
.app-name-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.app-identity-std h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--brand-accent);
}
.verified-ico { color: var(--brand-secondary); display: inline-flex; }
.app-bio {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CARD ÚNICO COMPACTO 4 COLUNAS: ABERTO | ENTREGA | TAXA | MÍNIMO */
.app-metrics-quad {
  margin-top: 12px;
  background: color-mix(in srgb, var(--brand-primary) 5%, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, #E5E7EB);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.9fr 0.95fr;
  overflow: hidden;
}
.metric-cell {
  padding: 9px 5px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.metric-cell + .metric-cell::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: color-mix(in srgb, var(--brand-primary) 16%, #E2E8F0);
}
.metric-cell small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.67rem;
  color: var(--muted);
  font-weight: 600;
}
.metric-cell small .nb-ico { color: var(--brand-primary); }
.metric-cell strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-text);
  line-height: 1.15;
}

.metric-status-cell {
  background: color-mix(in srgb, var(--brand-primary) 10%, #FFFFFF);
}
.status-pill-compact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #16A34A;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}
.status-pill-compact.closed { background: #DC2626; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #FFFFFF; }
.status-more-mini {
  color: var(--brand-primary) !important;
  font-weight: 700 !important;
  font-size: 0.66rem !important;
}

/* BANNER ESCURO LOJA FECHADA */
.app-closed-banner {
  margin: 10px 14px 0;
  background: #231815;
  color: #FFFFFF;
  border-radius: 14px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.closed-ico-circle {
  width: 34px; height: 34px; border-radius: 50%; background: #DC2626; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.app-closed-banner strong { display: block; font-size: 0.84rem; }
.app-closed-banner p { font-size: 0.75rem; color: rgba(255,255,255,0.78); }

/* ============================================================================
   STORIES 24H + OFERTAS / PROMOÇÕES
   ============================================================================ */
.app-stories-section {
  padding: 12px 14px 6px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}
.app-section-eyebrow-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.eyebrow-tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; color: var(--brand-primary); text-transform: uppercase; }
.app-section-eyebrow-row small { font-size: 0.72rem; color: var(--muted); }
.stories-bubbles-row { display: flex; gap: 12px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.stories-bubbles-row::-webkit-scrollbar { display: none; }
.story-bubble-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 68px; flex-shrink: 0; }
.story-bubble-ring { position: relative; width: 62px; height: 62px; border-radius: 50%; padding: 2.5px; background: linear-gradient(135deg, #F59E0B, #EC4899, #8B5CF6); }
.story-bubble-ring.seen { background: #CBD5E1; }
.story-bubble-media { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #FFFFFF; background: #0F172A; }
.story-video-tag { position: absolute; bottom: 0; right: 0; width: 20px; height: 20px; border-radius: 50%; background: #0F172A; color: #FFFFFF; border: 2px solid #FFFFFF; display: flex; align-items: center; justify-content: center; }
.story-bubble-label { font-size: 0.7rem; font-weight: 600; max-width: 68px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.app-promos-section {
  padding: 14px 14px 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 7%, #FFFFFF) 0%, transparent 100%);
}
.app-promos-head h2 { font-size: 1.14rem; font-weight: 800; margin-top: 2px; color: var(--brand-accent); }
.count-muted { font-weight: 700; color: var(--brand-primary); font-size: 0.9rem; }
.promos-carousel { display: flex; gap: 12px; overflow-x: auto; margin-top: 10px; padding-bottom: 6px; scrollbar-width: none; }
.promos-carousel::-webkit-scrollbar { display: none; }
.promo-mini-card {
  width: 192px; flex-shrink: 0; background: #FFFFFF; border: 1.5px solid color-mix(in srgb, var(--brand-primary) 24%, #E5E7EB);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-xs); cursor: pointer;
}
.promo-mini-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--surface-soft); }
.promo-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge-discount-off {
  display: inline-flex; align-items: center; gap: 3px;
  background: linear-gradient(135deg, #EF4444, #E11D48);
  color: #FFFFFF; font-size: 0.68rem; font-weight: 800; padding: 3px 8px; border-radius: 999px;
}
.promo-mini-thumb .badge-discount-off { position: absolute; top: 8px; left: 8px; }
.promo-mini-body { padding: 10px 12px 12px; }
.promo-mini-body h3 { font-size: 0.88rem; font-weight: 700; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo-mini-prices { margin-top: 6px; display: flex; flex-direction: column; }
.price-old { font-size: 0.74rem; color: #94A3B8; text-decoration: line-through; }
.price-current { font-size: 0.98rem; font-weight: 800; color: var(--brand-primary); }

/* ============================================================================
   BUSCA FIXA NO TOPO (top: 0) + BOLINHAS CENTRALIZADAS COM COR
   ============================================================================ */
.app-sticky-controls {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--brand-bg) 94%, #FFFFFF);
  backdrop-filter: blur(12px);
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid var(--border);
}

.app-search-row { display: flex; align-items: center; gap: 8px; }
.app-search-pill {
  flex: 1; position: relative; display: flex; align-items: center;
  background: #FFFFFF; border: 1.5px solid color-mix(in srgb, var(--brand-primary) 20%, #E2E8F0);
  border-radius: 999px; height: 42px; padding: 0 34px 0 38px; box-shadow: var(--shadow-xs);
}
.app-search-pill .search-ico { position: absolute; left: 13px; color: var(--brand-primary); pointer-events: none; display: flex; }
.app-search-pill input { width: 100%; border: none; outline: none; background: transparent; font-size: 0.88rem; color: var(--brand-text); }
.clear-search-btn { position: absolute; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: #E2E8F0; color: #334155; display: flex; align-items: center; justify-content: center; }

.app-circle-ctrl-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: #FFFFFF; border: 1.5px solid color-mix(in srgb, var(--brand-primary) 20%, #E2E8F0);
  color: var(--brand-accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-xs);
}
.app-circle-ctrl-btn.active { background: var(--brand-primary); border-color: var(--brand-primary); color: #FFFFFF; }

.legend-panel {
  margin-top: 8px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 0.76rem; color: var(--muted);
}
.legend-group { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; }
.legend-group strong { color: var(--brand-text); }

/* CATEGORIAS CIRCULARES — ÍCONES 100% CENTRALIZADOS E COLORIDOS */
.app-categories-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-top: 10px;
  padding: 2px 2px 2px;
  scrollbar-width: none;
}
.app-categories-strip::-webkit-scrollbar { display: none; }

.cat-circle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 70px;
  flex-shrink: 0;
  text-align: center;
}
.cat-circle-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid color-mix(in srgb, var(--brand-primary) 22%, #E2E8F0);
  background: #FFFFFF;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.16s, transform 0.16s, box-shadow 0.16s;
}
.cat-circle-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.cat-circle-ico {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-primary) 12%, #FFFFFF);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-circle-btn.active .cat-circle-ring {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-primary) 28%, transparent);
  transform: scale(1.04);
}
.cat-circle-btn.active .cat-circle-ico {
  background: var(--brand-primary);
  color: #FFFFFF;
}
.cat-circle-label {
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-circle-btn.active .cat-circle-label {
  color: var(--brand-primary);
  font-weight: 800;
}

/* ============================================================================
   CARDÁPIO: MODO EM FILA & MODO GRADE LADO A LADO + SELO "MONTE O SEU"
   ============================================================================ */
.app-menu-main { padding: 14px 14px 8px; }
.category-section { margin-bottom: 24px; scroll-margin-top: 145px; }
.category-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.category-accent-bar { width: 4px; height: 18px; border-radius: 99px; background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary)); flex-shrink: 0; }
.category-section-head h2 { font-size: 0.86rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-accent); }
.category-section-desc { font-size: 0.78rem; color: var(--muted); margin: -5px 0 10px 12px; }

.tag-buildable-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 75%, #000));
  color: #FFFFFF;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2.5px 8px;
  border-radius: 999px;
}
.tag-featured-pill {
  display: inline-flex; align-items: center; gap: 3px;
  background: #FEF3C7; color: #92400E; font-size: 0.64rem; font-weight: 800; text-transform: uppercase;
  padding: 2.5px 8px; border-radius: 999px;
}

/* Em Fila */
.items-list-view { display: flex; flex-direction: column; gap: 10px; }
.app-item-row {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.app-item-row:active { transform: scale(0.99); }
.app-item-row.is-promo {
  border-color: #F59E0B;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
}
.app-item-row.is-buildable {
  border-color: color-mix(in srgb, var(--brand-primary) 35%, #E5E7EB);
}

.app-item-thumb { position: relative; width: 82px; height: 82px; border-radius: 14px; overflow: hidden; background: var(--surface-soft); flex-shrink: 0; }
.app-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.app-item-thumb .badge-discount-off { position: absolute; top: 5px; left: 5px; font-size: 0.63rem; padding: 2px 6px; }
.app-item-info { flex: 1; min-width: 0; }
.app-item-top-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.item-title { font-size: 0.94rem; font-weight: 700; color: var(--brand-text); line-height: 1.24; }
.item-custom-dot { font-weight: 500; font-size: 0.75rem; color: var(--brand-primary); }
.item-desc { font-size: 0.78rem; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.item-price-line { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.item-from-label { font-size: 0.7rem; color: var(--muted); font-weight: 500; }

.btn-circle-add {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-primary); color: #FFFFFF; font-size: 1.18rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-primary) 34%, transparent);
}
.btn-circle-add.has-qty { background: var(--brand-bag); font-size: 0.86rem; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-bag) 34%, transparent); }

/* Grade Lado a Lado */
.items-grid-view { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.app-grid-card {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 15px; overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer; box-shadow: var(--shadow-xs);
}
.app-grid-media { position: relative; aspect-ratio: 1 / 1; background: var(--surface-soft); overflow: hidden; }
.app-grid-media img { width: 100%; height: 100%; object-fit: cover; }
.app-grid-media .badge-discount-off { position: absolute; top: 7px; left: 7px; }
.app-grid-media .tag-buildable-pill { position: absolute; bottom: 7px; left: 7px; }
.grid-qty-pill { position: absolute; top: 7px; right: 7px; background: var(--brand-bag); color: #FFFFFF; font-size: 0.68rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.app-grid-body { padding: 9px 10px 10px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; gap: 6px; }
.app-grid-body .item-title { font-size: 0.85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-grid-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.app-grid-foot .btn-circle-add { width: 32px; height: 32px; font-size: 1rem; }

/* ============================================================================
   MODAL PRATO + WIZARD "MONTE O SEU" PASSO A PASSO (Refs Prints 3 e 4)
   ============================================================================ */
.modal-backdrop, .drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#storeInfoBackdrop { align-items: flex-end; padding: 0; }

.modal-sheet.product-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.pm-drag-handle { display: none; }
.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.56);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-close-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

.pm-hero { position: relative; height: 196px; background: var(--surface-soft); flex-shrink: 0; }
.pm-hero img { width: 100%; height: 100%; object-fit: cover; }
.pm-serves-badge { position: absolute; bottom: 12px; left: 14px; background: rgba(255,255,255,0.96); color: var(--brand-text); font-size: 0.76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 4px; }

/* Wizard Top (Miniatura centralizada como nas imagens 3 e 4) */
.pm-wizard-top {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 9%, #FFFFFF) 0%, #FFFFFF 100%);
  padding: 14px 20px 8px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.pm-wizard-top img {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.pm-body { padding: 14px 18px 18px; overflow-y: auto; flex: 1; }
.pm-build-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.pm-body h2 { font-size: 1.24rem; font-weight: 800; line-height: 1.2; }
.pm-desc { font-size: 0.84rem; color: var(--muted); margin-top: 4px; }
.pm-allergens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.allergen-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; background: var(--surface-soft); color: var(--muted); border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; }
.pm-price-row { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; }

/* Barra de progresso do Wizard Passo a Passo */
.wizard-progress-wrap {
  margin-top: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.wizard-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.wizard-progress-meta strong { color: var(--brand-text); }
.wizard-progress-meta span { color: var(--muted); font-weight: 600; }
.wizard-progress-bars {
  display: flex;
  gap: 6px;
}
.wiz-seg {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: #E5E7EB;
  transition: background 0.2s ease;
}
.wiz-seg.done, .wiz-seg.active { background: var(--brand-primary); }

.wiz-step-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 6px;
}
.wiz-step-header h3 { font-size: 1rem; font-weight: 800; color: var(--brand-text); }
.wiz-step-rule { font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.wiz-step-rule.req { color: #DC2626; }
.wiz-step-hint { font-size: 0.78rem; color: #DC2626; margin-bottom: 10px; font-weight: 500; }

.wiz-options-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.wiz-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s;
}
.wiz-option-card.selected {
  border-color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 7%, #FFFFFF);
}
.wiz-option-card.unavailable {
  opacity: 0.52;
  cursor: not-allowed;
  background: #F9FAFB;
}
.wiz-opt-left { display: flex; align-items: center; gap: 11px; font-size: 0.9rem; font-weight: 600; }
.wiz-opt-left input { width: 19px; height: 19px; accent-color: var(--brand-primary); }
.wiz-opt-right { font-size: 0.84rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.wiz-opt-right.paid { color: var(--brand-primary); }
.wiz-opt-right.unavail { font-size: 0.74rem; background: #F1F5F9; padding: 3px 8px; border-radius: 999px; color: #94A3B8; }

.wiz-summary-box {
  background: color-mix(in srgb, var(--brand-primary) 6%, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 20%, #E2E8F0);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 0.84rem;
}
.wiz-summary-box strong { display: block; margin-bottom: 6px; color: var(--brand-accent); }
.wiz-summary-line { display: flex; justify-content: space-between; padding: 3px 0; color: #334155; }

/* Adicionais Modo Normal */
.addon-group-box { margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.addon-group-head { background: var(--surface-soft); padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.addon-group-head strong { font-size: 0.88rem; }
.addon-group-head small { display: block; font-size: 0.75rem; color: var(--muted); }
.addon-req-badge { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: #E5E7EB; color: #374151; }
.addon-req-badge.required { background: #FEE2E2; color: #991B1B; }
.addon-option-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); cursor: pointer; }
.addon-option-row.unavailable { opacity: 0.5; cursor: not-allowed; }
.addon-option-left { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 500; }
.addon-option-left input { width: 17px; height: 17px; accent-color: var(--brand-primary); }
.addon-option-price { font-size: 0.84rem; font-weight: 600; color: var(--brand-primary); }

.pm-footer {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.qty-control { display: inline-flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: 12px; overflow: hidden; }
.qty-control button { width: 34px; height: 42px; font-size: 1.15rem; font-weight: 700; }
.qty-control span { min-width: 28px; text-align: center; font-weight: 800; }
.btn-add-bag {
  flex: 1; background: var(--brand-bag); color: #FFFFFF; font-weight: 700; font-size: 0.9rem;
  padding: 12px 16px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

.wizard-back-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--border-strong);
  background: #FFFFFF; color: var(--brand-text); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wizard-next-btn {
  flex: 1; background: var(--brand-primary); color: #FFFFFF; font-weight: 800; font-size: 0.94rem;
  padding: 13px 16px; border-radius: 14px; text-align: center;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-primary) 30%, transparent);
}
.wizard-next-btn.pending-req {
  background: #DC2626;
  box-shadow: none;
}

/* ============================================================================
   BOTÃO FLUTUANTE WHATSAPP + MINI-BARRA BAG + BARRA INFERIOR DE APP
   ============================================================================ */
.fab-whatsapp {
  position: fixed;
  right: 14px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 42;
  width: 50px; height: 50px; border-radius: 50%;
  background: #22C55E; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.42);
  transition: bottom 0.2s ease, transform 0.16s ease;
}
body.has-active-bag .fab-whatsapp { bottom: calc(136px + env(safe-area-inset-bottom)); }
.fab-whatsapp:hover { transform: scale(1.06); }

.active-bag-pill-wrap {
  position: fixed; left: 0; right: 0; bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 41; padding: 0 14px; pointer-events: none; display: flex; justify-content: center;
}
.active-bag-pill {
  pointer-events: auto; width: 100%; max-width: 560px;
  background: var(--brand-bag); color: #FFFFFF; border-radius: 14px; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.26);
}
.active-bag-pill.bump { animation: bagPulse 0.34s ease; }
@keyframes bagPulse { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
.abp-left { display: flex; align-items: center; gap: 10px; text-align: left; }
.abp-count { min-width: 28px; height: 28px; border-radius: 9px; background: rgba(255,255,255,0.22); font-size: 0.84rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.abp-texts strong { display: block; font-size: 0.88rem; }
.abp-texts small { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.84); }
.abp-right { display: flex; align-items: center; gap: 4px; font-size: 0.94rem; }

.app-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.06);
}
.bnav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 2px; font-size: 0.69rem; font-weight: 600; color: var(--muted); }
.bnav-item.active { color: var(--brand-primary); font-weight: 800; }
.bnav-ico-wrap { position: relative; display: inline-flex; }
.bnav-badge {
  position: absolute; top: -5px; right: -9px; font-style: normal;
  background: #E11D48; color: #FFFFFF; font-size: 0.62rem; font-weight: 800;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #FFFFFF;
}

.app-footer { text-align: center; padding: 20px 14px 24px; color: var(--muted); font-size: 0.78rem; }
.app-footer strong { display: block; color: var(--brand-text); font-size: 0.85rem; }
.app-footer-links { margin-top: 8px; display: flex; justify-content: center; gap: 8px; font-size: 0.74rem; }
.empty-search-state { text-align: center; padding: 36px 18px; background: #FFFFFF; border-radius: 16px; border: 1px solid var(--border); color: var(--muted); }
.loading-skeleton { display: flex; flex-direction: column; gap: 10px; }
.skeleton-card { height: 102px; border-radius: 16px; background: linear-gradient(90deg, #ECEEF2 25%, #F8FAFC 50%, #ECEEF2 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* POPUP DE PROMOÇÃO */
.promo-popup-card { position: relative; width: 100%; max-width: 390px; background: #FFFFFF; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); animation: popIn 0.25s ease; }
@keyframes popIn { from { opacity: 0; transform: scale(0.94) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.promo-popup-close { position: absolute; top: 10px; right: 10px; z-index: 4; width: 34px; height: 34px; border-radius: 50%; background: rgba(15,23,42,0.65); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.promo-popup-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-soft); }
.promo-popup-media img { width: 100%; height: 100%; object-fit: cover; }
.promo-popup-media .badge-discount-off { position: absolute; top: 12px; left: 12px; font-size: 0.76rem; padding: 4px 10px; }
.promo-popup-body { padding: 18px 20px 16px; text-align: center; }
.promo-popup-eyebrow { display: inline-flex; align-items: center; gap: 5px; background: #FEF2F2; color: #DC2626; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.promo-popup-body h3 { font-size: 1.22rem; font-weight: 800; margin-top: 8px; }
.promo-popup-body p { font-size: 0.86rem; color: var(--muted); margin-top: 6px; }
.promo-popup-price { margin-top: 10px; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.promo-popup-cta { width: 100%; margin-top: 14px; background: var(--brand-primary); color: #FFFFFF; font-weight: 800; font-size: 0.94rem; padding: 13px 16px; border-radius: 12px; }
.promo-popup-dismiss { margin-top: 8px; font-size: 0.8rem; color: var(--muted); font-weight: 600; padding: 4px 12px; }

/* BOTTOM SHEET INFO */
.store-info-sheet { width: 100%; max-width: 480px; max-height: 86dvh; background: #FFFFFF; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); }
.sheet-drag-handle { width: 40px; height: 4px; border-radius: 99px; background: #CBD5E1; margin: 10px auto 4px; flex-shrink: 0; }
.sheet-header-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.sheet-store-mini { display: flex; align-items: center; gap: 10px; }
.sheet-store-mini img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.sheet-store-mini h3 { font-size: 1rem; font-weight: 800; }
.sheet-store-mini small { font-size: 0.78rem; color: var(--muted); }
.sheet-body { padding: 14px 18px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.info-sheet-block h4 { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; }
.info-sheet-row { display: flex; align-items: flex-start; gap: 9px; font-size: 0.86rem; padding: 4px 0; }
.info-sheet-row .nb-ico { color: var(--brand-primary); margin-top: 2px; }
.info-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.info-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-soft); border: 1px solid var(--border); padding: 5px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }

/* STORIES FULLSCREEN VIEWER */
.story-viewer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(2,6,23,0.95); display: flex; align-items: center; justify-content: center; padding: 12px; }
.story-viewer-stage { position: relative; width: 100%; max-width: 430px; height: min(92dvh, 780px); background: #0B1120; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.story-progress-bars { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 6; display: flex; gap: 5px; }
.story-prog-track { flex: 1; height: 3px; background: rgba(255,255,255,0.3); border-radius: 99px; overflow: hidden; }
.story-prog-fill { width: 0%; height: 100%; background: #FFFFFF; }
.story-prog-track.done .story-prog-fill { width: 100%; }
.story-viewer-header { position: absolute; top: 22px; left: 12px; right: 12px; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.story-viewer-author { display: flex; align-items: center; gap: 9px; color: #FFFFFF; }
.story-viewer-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #FFFFFF; }
.story-viewer-author strong { display: block; font-size: 0.86rem; }
.story-viewer-author small { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.8); }
.story-viewer-controls { display: flex; align-items: center; gap: 6px; }
.story-views-pill { display: inline-flex; align-items: center; gap: 4px; background: rgba(15,23,42,0.65); color: #FFFFFF; font-size: 0.72rem; font-weight: 600; padding: 4px 8px; border-radius: 999px; }
.sv-icon-btn { width: 32px; height: 32px; border-radius: 50%; background: rgba(15,23,42,0.65); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
.story-media-wrap { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; background: #000000; }
.story-media-wrap img, .story-media-wrap video { width: 100%; height: 100%; object-fit: contain; }
.sv-nav-zone { position: absolute; top: 64px; bottom: 120px; z-index: 4; background: transparent; }
.sv-nav-prev { left: 0; width: 35%; }
.sv-nav-next { right: 0; width: 65%; }
.story-viewer-footer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 36px 16px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(2,6,23,0) 0%, rgba(2,6,23,0.9) 70%); display: flex; flex-direction: column; gap: 10px; }
.story-caption { color: #FFFFFF; font-size: 0.9rem; line-height: 1.4; }
.story-cta-btn { width: 100%; background: var(--brand-primary); color: #FFFFFF; font-weight: 700; font-size: 0.9rem; padding: 12px 16px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* ============================================================================
   DRAWER DA BAG (CORRIGIDO 100dvh + SAFE-AREA PARA IPHONE / ANDROID!)
   ============================================================================ */
.drawer-backdrop {
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  height: 100%;
  height: 100dvh;
}
.bag-drawer {
  width: 100%;
  max-width: 470px;
  height: 100%;
  max-height: 100dvh;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.bag-drawer-header {
  padding: max(14px, env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #FFFFFF;
  flex-shrink: 0;
}
.bag-header-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drawer-bag-thumb { width: 42px; height: 38px; object-fit: contain; background: var(--surface-soft); border-radius: 8px; padding: 4px; border: 1px solid var(--border); flex-shrink: 0; }
.bag-header-brand h2 { font-size: 1.04rem; font-weight: 800; line-height: 1.2; }
.bag-header-brand small { font-size: 0.76rem; color: var(--muted); display: block; }

.checkout-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 9px 14px; background: var(--surface-soft); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.step-pill { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 6px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.step-pill span { width: 19px; height: 19px; border-radius: 50%; background: #CBD5E1; color: #FFFFFF; font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.step-pill.active { background: #FFFFFF; color: var(--brand-text); box-shadow: var(--shadow-xs); }
.step-pill.active span { background: var(--brand-bag); }
.step-pill.done span { background: var(--brand-primary); }

.bag-drawer-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; }
.bag-item-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #FFFFFF; }
.bag-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bag-item-name { font-weight: 700; font-size: 0.92rem; }
.bag-item-meta { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.bag-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid #F1F5F9; }
.bag-item-price { font-weight: 700; color: var(--brand-primary); font-size: 0.94rem; }
.bag-mini-qty { display: inline-flex; align-items: center; gap: 8px; }
.bag-mini-qty button { width: 28px; height: 28px; border-radius: 6px; background: var(--surface-soft); border: 1px solid var(--border); font-weight: 600; }
.bag-mini-qty .btn-remove-item { width: auto; padding: 0 9px; font-size: 0.74rem; background: #FEF2F2; color: var(--danger); border-color: #FECACA; }
.empty-bag-state { text-align: center; padding: 36px 14px; }
.empty-bag-state img { width: 112px; margin: 0 auto 14px; }
.empty-bag-state p { font-size: 0.86rem; color: var(--muted); margin: 6px 0 18px; }
.didactic-tip { background: #F8FAFC; border: 1px solid #E2E8F0; color: #334155; font-size: 0.81rem; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 5px; }
.opt-tag { font-weight: 400; color: var(--muted); font-size: 0.75rem; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 0.9rem; background: #FFFFFF; color: var(--brand-text); outline: none; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--brand-primary); }
.phone-lookup-row { display: flex; gap: 8px; }
.phone-lookup-row input { flex: 1; }
.lookup-feedback { display: block; margin-top: 5px; font-size: 0.78rem; color: var(--brand-primary); font-weight: 600; }
.form-row-2 { display: flex; gap: 10px; }
.form-row-2 .form-field { flex: 1; }
.form-row-2 .flex-2 { flex: 2; }
.form-row-2 .flex-1 { flex: 1; }
.save-customer-box { display: flex; align-items: flex-start; gap: 10px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; cursor: pointer; }
.save-customer-box input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand-primary); }
.save-customer-box strong { display: block; font-size: 0.82rem; }
.save-customer-box small { display: block; font-size: 0.75rem; color: var(--muted); }
.section-divider { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 16px 0 8px; }
.delivery-type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.choice-card { display: flex; align-items: center; padding: 12px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; background: #FFFFFF; }
.choice-card input { display: none; }
.choice-card.selected { border-color: var(--brand-primary); background: #F0FDF4; }
.choice-card strong { display: block; font-size: 0.85rem; }
.choice-card small { display: block; font-size: 0.74rem; color: var(--muted); }
.pickup-info-box { background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: 0.84rem; }
.payment-options-list { display: flex; flex-direction: column; gap: 8px; }
.payment-option-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; background: #FFFFFF; }
.payment-option-card.selected { border-color: var(--brand-primary); background: #F0FDF4; }
.payment-option-card input { width: 17px; height: 17px; accent-color: var(--brand-primary); }
.payment-option-card strong { display: block; font-size: 0.88rem; }
.payment-option-card small { display: block; font-size: 0.76rem; color: var(--muted); }
.pix-box { margin-top: 12px; background: #F8FAFC; border: 1px solid #CBD5E1; border-radius: 10px; padding: 12px 14px; }
.pix-box-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; }
.pix-badge { background: #E2E8F0; padding: 2px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 600; }
.pix-key-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 6px; }
.pix-key-row code { flex: 1; background: #FFFFFF; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 0.86rem; word-break: break-all; border: 1px solid var(--border); }
.btn-copy-pix { background: #0F172A; color: #FFFFFF; font-size: 0.78rem; font-weight: 600; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.receipt-help { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.receipt-choices { display: flex; flex-direction: column; gap: 8px; }
.receipt-choice-card { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.receipt-choice-card input { margin-top: 3px; accent-color: var(--brand-primary); }
.receipt-choice-card strong { display: block; font-size: 0.84rem; }
.receipt-choice-card small { display: block; font-size: 0.75rem; color: var(--muted); }
.receipt-upload-box { margin-top: 10px; }
.upload-dropzone { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px; border: 1.5px dashed var(--border-strong); border-radius: 10px; background: var(--surface-soft); cursor: pointer; }
.upload-dropzone input { display: none; }
.upload-dropzone strong { font-size: 0.84rem; }
.upload-dropzone small { font-size: 0.74rem; color: var(--muted); }
.receipt-preview { margin-top: 8px; padding: 8px; border-radius: 8px; background: var(--surface-soft); text-align: center; }
.receipt-preview img { max-height: 150px; margin: 0 auto; border-radius: 6px; }
.checkout-summary-box { margin-top: 16px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.summary-line { display: flex; justify-content: space-between; font-size: 0.86rem; margin-bottom: 6px; }
.summary-line.total-line { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 1.04rem; color: var(--brand-primary); margin-bottom: 0; }
.success-card { text-align: center; padding: 20px 8px; }
.success-bag-anim { position: relative; width: 112px; margin: 0 auto 14px; }
.success-check { position: absolute; bottom: -4px; right: -4px; width: 34px; height: 34px; border-radius: 50%; background: #16A34A; color: #FFFFFF; display: flex; align-items: center; justify-content: center; border: 3px solid #FFFFFF; }
.order-code-pill { display: inline-block; margin: 10px 0; background: var(--surface-soft); border: 1px solid var(--border); font-weight: 800; font-size: 1.1rem; padding: 5px 16px; border-radius: 8px; }
.success-desc { font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.btn-whatsapp-big { display: flex; align-items: center; justify-content: center; width: 100%; background: #15803D; color: #FFFFFF; font-weight: 700; font-size: 0.95rem; padding: 14px 18px; border-radius: 12px; }
.success-secondary-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bag-drawer-footer {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border); background: #FFFFFF;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0;
}
.footer-totals-mini small { display: block; font-size: 0.72rem; color: var(--muted); }
.footer-totals-mini strong { font-size: 1.02rem; font-weight: 800; color: var(--brand-primary); }
.footer-nav-btns { display: flex; gap: 8px; }
.btn-back { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-strong); font-weight: 600; font-size: 0.86rem; }
.btn-next, .btn-primary-full { padding: 10px 20px; border-radius: 10px; background: var(--brand-bag); color: #FFFFFF; font-weight: 600; font-size: 0.88rem; }
.btn-submit-order { padding: 10px 18px; border-radius: 10px; background: var(--brand-primary); color: #FFFFFF; font-weight: 700; font-size: 0.88rem; }
.btn-outline-sm { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border-strong); font-size: 0.8rem; font-weight: 600; background: #FFFFFF; white-space: nowrap; }

.toast-container { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 380px); }
.toast { background: #0F172A; color: #FFFFFF; padding: 11px 15px; border-radius: 12px; font-size: 0.84rem; font-weight: 600; box-shadow: var(--shadow-md); text-align: center; }
.toast.success { background: #15803D; }
.toast.error { background: #B91C1C; }

/* DESKTOP / TABLET */
@media (min-width: 768px) {
  body { padding-bottom: 92px; }
  .app-page-root { padding-top: 14px; }
  .app-hero-section { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
  .app-cover { height: 215px; }
  .app-profile-sheet { padding: 0 22px 20px; }
  .app-avatar-wrap { width: 88px; height: 88px; margin-top: -42px; }
  .items-list-view { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .items-grid-view { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .app-bottom-nav {
    max-width: 520px; left: 50%; transform: translateX(-50%);
    bottom: 12px; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .active-bag-pill-wrap { bottom: 84px; }
  .fab-whatsapp { right: 24px; bottom: 24px; }
  body.has-active-bag .fab-whatsapp { bottom: 24px; }
}

@media (max-width: 640px) {
  .story-viewer-backdrop { padding: 0; }
  .story-viewer-stage { max-width: 100%; height: 100dvh; border-radius: 0; }
  .modal-sheet.product-modal { max-height: 92dvh; border-radius: 22px 22px 0 0; }
  .pm-drag-handle { display: block; }
  #productModalBackdrop { align-items: flex-end; padding: 0; }
  .form-row-2 { flex-direction: column; gap: 0; }
}


/* ============================================================================
   NABAG v2.4 — PALETA ALEGRE, COLORIDA E MULTICORES (Tailwind + App Vibrante)
   ============================================================================ */
body {
  background:
    radial-gradient(circle at 0% 0%, rgba(251, 146, 60, 0.10), transparent 36%),
    radial-gradient(circle at 100% 18%, rgba(16, 185, 129, 0.10), transparent 38%),
    radial-gradient(circle at 80% 90%, rgba(56, 189, 248, 0.09), transparent 40%),
    var(--brand-bg);
}

/* Capa com movimento suave de zoom (Ken Burns) para dar dinamismo */
.app-cover {
  position: relative;
  overflow: hidden;
}
.app-cover-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform-origin: center center;
  will-change: transform;
  animation: nbCoverZoom 16s ease-in-out infinite alternate;
}
@keyframes nbCoverZoom {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.09) translate3d(0, -2px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .app-cover-bg { animation: none; }
}
.app-cover-scrim { z-index: 1; }
.cover-top-actions { z-index: 2; }

/* Capa padrão quando não há banner próprio */
.app-cover:not(.has-cover) .app-cover-bg {
  background: linear-gradient(125deg, #11514D 0%, var(--brand-primary) 55%, #FF5134 100%);
}
.app-avatar-wrap {
  background: linear-gradient(135deg, #11514D, var(--brand-primary), #FF5134);
}

/* Card 4 Colunas Suave e Limpo (menos colorido, alta legibilidade) */
.app-metrics-quad {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.metric-status-cell,
.metric-sky,
.metric-amber,
.metric-violet {
  background: #FFFFFF !important;
}
.metric-status-cell:hover { background: #F8FAFC !important; }
.metric-ico-sky,
.metric-ico-amber,
.metric-ico-violet {
  color: #64748B !important;
  display: inline-flex;
}
.status-pill-compact {
  background: #ECFDF5;
  color: #15803D;
  border: 1px solid #BBF7D0;
  box-shadow: none;
}
.status-pill-compact .status-dot { background: #16A34A; }
.status-pill-compact.closed {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  box-shadow: none;
}
.status-pill-compact.closed .status-dot { background: #EF4444; }

/* Bolinhas de Categorias Multicoloridas & Alegres */
.cat-tone-0 .cat-circle-ico { background: #DCFCE7; color: #15803D; }
.cat-tone-0 .cat-circle-ring { border-color: #86EFAC; }
.cat-tone-0.active .cat-circle-ico { background: linear-gradient(135deg, #16A34A, #10B981); color: #FFFFFF; }
.cat-tone-0.active .cat-circle-ring { border-color: #16A34A; box-shadow: 0 6px 14px rgba(22, 163, 74, 0.28); }

.cat-tone-build .cat-circle-ico { background: #FFEDD5; color: #EA580C; }
.cat-tone-build .cat-circle-ring { border-color: #FDBA74; }
.cat-tone-build.active .cat-circle-ico { background: linear-gradient(135deg, #F97316, #EC4899); color: #FFFFFF; }
.cat-tone-build.active .cat-circle-ring { border-color: #F97316; box-shadow: 0 6px 14px rgba(249, 115, 22, 0.32); }

.cat-tone-1 .cat-circle-ico { background: #FEF3C7; color: #D97706; }
.cat-tone-1 .cat-circle-ring { border-color: #FCD34D; }
.cat-tone-1.active .cat-circle-ico { background: linear-gradient(135deg, #F59E0B, #EA580C); color: #FFFFFF; }
.cat-tone-1.active .cat-circle-ring { border-color: #F59E0B; box-shadow: 0 6px 14px rgba(245, 158, 11, 0.30); }

.cat-tone-2 .cat-circle-ico { background: #E0F2FE; color: #0284C7; }
.cat-tone-2 .cat-circle-ring { border-color: #7DD3FC; }
.cat-tone-2.active .cat-circle-ico { background: linear-gradient(135deg, #0EA5E9, #2563EB); color: #FFFFFF; }
.cat-tone-2.active .cat-circle-ring { border-color: #0284C7; box-shadow: 0 6px 14px rgba(14, 165, 233, 0.30); }

.cat-tone-3 .cat-circle-ico { background: #FCE7F3; color: #DB2777; }
.cat-tone-3 .cat-circle-ring { border-color: #F9A8D4; }
.cat-tone-3.active .cat-circle-ico { background: linear-gradient(135deg, #EC4899, #E11D48); color: #FFFFFF; }
.cat-tone-3.active .cat-circle-ring { border-color: #DB2777; box-shadow: 0 6px 14px rgba(236, 72, 153, 0.30); }

.cat-tone-4 .cat-circle-ico { background: #EDE9FE; color: #7C3AED; }
.cat-tone-4 .cat-circle-ring { border-color: #C4B5FD; }
.cat-tone-4.active .cat-circle-ico { background: linear-gradient(135deg, #8B5CF6, #6366F1); color: #FFFFFF; }
.cat-tone-4.active .cat-circle-ring { border-color: #7C3AED; box-shadow: 0 6px 14px rgba(139, 92, 246, 0.30); }

.cat-tone-5 .cat-circle-ico { background: #CCFBF1; color: #0F766E; }
.cat-tone-5 .cat-circle-ring { border-color: #5EEAD4; }
.cat-tone-5.active .cat-circle-ico { background: linear-gradient(135deg, #14B8A6, #0EA5E9); color: #FFFFFF; }
.cat-tone-5.active .cat-circle-ring { border-color: #0D9488; box-shadow: 0 6px 14px rgba(20, 184, 166, 0.30); }

/* Promoções com destaque quente e apetitoso */
.app-promos-section {
  margin: 12px 14px 4px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FEF2F2 55%, #FDF2F8 100%);
  border: 1.5px solid #FED7AA;
}
.eyebrow-tag {
  display: inline-block;
  background: linear-gradient(135deg, #F97316, #EC4899);
  color: #FFFFFF;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.64rem;
}
.promo-mini-card {
  border: 1.5px solid #FDBA74;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.12);
}

/* Selos & Botões Alegres */
.tag-buildable-pill {
  background: linear-gradient(135deg, #F97316 0%, #EC4899 100%);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.28);
}
.tag-featured-pill {
  background: linear-gradient(135deg, #FEF08A, #FDE047);
  color: #854D0E;
}
.btn-circle-add {
  background: linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 78%, #0EA5E9));
}
.btn-circle-add.has-qty {
  background: linear-gradient(135deg, var(--brand-bag), #7C3AED);
}
.active-bag-pill {
  background: linear-gradient(135deg, var(--brand-bag) 0%, #4F46E5 100%);
}
.wiz-seg.done, .wiz-seg.active {
  background: linear-gradient(90deg, #F97316, #EC4899);
}
.wizard-next-btn {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #10B981 100%);
}
.wizard-next-btn.pending-req {
  background: linear-gradient(135deg, #EF4444, #E11D48);
}
.pm-build-badge {
  background: linear-gradient(135deg, #F97316, #EC4899);
}

/* Barra Inferior App com pílula ativa colorida */
.bnav-item.active {
  background: color-mix(in srgb, var(--brand-primary) 12%, #FFFFFF);
  border-radius: 12px;
  color: var(--brand-primary);
}

/* Elementos exclusivos dos novos modelos ficam ocultos no padrão */
.mw-top-header,
.mw-wheel-stage,
.fun-bg-blobs { display: none; }

.grid-sub-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grid-brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-primary);
  flex-shrink: 0;
}

/* ============================================================================
   MODELO 2: MINIMALISTA COM ROLETA (data-theme="minimal_wheel")
   ============================================================================ */
body[data-theme="minimal_wheel"] {
  background: #F8F9FA !important;
  color: #18181B;
  padding-bottom: 108px;
}
body[data-theme="minimal_wheel"] .app-hero-section { display: none !important; }
body[data-theme="minimal_wheel"] .app-categories-strip { display: none !important; }
body[data-theme="minimal_wheel"] .mw-top-header { display: block; padding: max(16px, env(safe-area-inset-top)) 18px 8px; }
body[data-theme="minimal_wheel"] .mw-wheel-stage { display: block; }

.mw-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mw-user-block {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.mw-avatar-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 2px;
  background: #E4E4E7;
  overflow: hidden;
  flex-shrink: 0;
}
.mw-avatar-btn.has-stories {
  background: linear-gradient(135deg, #18181B, #52525B, #10B981);
}
.mw-avatar-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #FFFFFF;
  border: 2px solid #FFFFFF;
}
.mw-user-texts { min-width: 0; }
.mw-user-texts strong {
  display: block;
  font-size: 1.04rem;
  font-weight: 800;
  color: #18181B;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mw-meta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #71717A;
  margin-top: 2px;
  max-width: 100%;
  text-align: left;
}
.mw-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
}
.mw-status-dot.closed { background: #EF4444; }

.mw-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mw-icon-circle {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #18181B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  border: 1px solid #F1F5F9;
  transition: transform 0.14s ease;
}
.mw-icon-circle:active { transform: scale(0.94); }
.mw-bag-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: #18181B;
  color: #FFFFFF;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #F8F9FA;
}

.mw-editorial-headline {
  margin-top: 16px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.62rem, 6.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.mw-hl-strong { font-weight: 800; color: #18181B; margin-right: 6px; }
.mw-hl-muted { font-weight: 500; color: #A1A1AA; }

/* Busca Minimalista */
body[data-theme="minimal_wheel"] .app-sticky-controls {
  background: rgba(248, 249, 250, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: none;
  padding-top: 8px;
  padding-bottom: 0;
}
body[data-theme="minimal_wheel"] .app-search-row { padding: 0 18px 8px; gap: 10px; }
body[data-theme="minimal_wheel"] .app-search-pill {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.045);
  height: 48px;
  border-radius: 999px;
  padding: 0 16px;
}
body[data-theme="minimal_wheel"] .app-circle-ctrl-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #18181B;
  color: #FFFFFF;
  border: none;
  box-shadow: 0 6px 16px rgba(24, 24, 27, 0.22);
}
body[data-theme="minimal_wheel"] .app-circle-ctrl-btn.active {
  background: #27272A;
  color: #FFFFFF;
}

/* ROLETA CURVA DE CATEGORIAS */
.mw-wheel-stage {
  position: relative;
  overflow: hidden;
  padding: 14px 0 6px;
  margin-top: 4px;
}
.mw-wheel-arch-bg {
  position: absolute;
  left: -14%;
  right: -14%;
  top: 6px;
  height: 180px;
  border-radius: 50% 50% 0 0 / 68px 68px 0 0;
  background: linear-gradient(180deg, #EFEFEF 0%, #F4F4F5 55%, rgba(248, 249, 250, 0) 100%);
  pointer-events: none;
}
.mw-wheel-track {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px calc(50% - 42px) 44px;
  -webkit-overflow-scrolling: touch;
}
.mw-wheel-track::-webkit-scrollbar { display: none; }

.mw-wheel-item {
  flex: 0 0 84px;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  scroll-snap-align: center;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
  transform-origin: center top;
  will-change: transform;
}
.mw-wheel-disc {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border: 2px solid #FFFFFF;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.mw-wheel-item.active .mw-wheel-disc {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
  border-color: #FFFFFF;
}
.mw-wheel-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mw-disc-ico {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #18181B;
}
.mw-disc-ico.mw-t-0 { color: #18181B; }
.mw-disc-ico.mw-t-build { color: #EA580C; }
.mw-disc-ico.mw-t-1 { color: #D97706; }
.mw-disc-ico.mw-t-2 { color: #0284C7; }
.mw-disc-ico.mw-t-3 { color: #DB2777; }
.mw-disc-ico.mw-t-4 { color: #7C3AED; }
.mw-disc-ico.mw-t-5 { color: #059669; }

.mw-wheel-lbl {
  font-size: 0.78rem;
  font-weight: 500;
  color: #71717A;
  text-align: center;
  line-height: 1.15;
  max-width: 82px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mw-wheel-item.active .mw-wheel-lbl {
  font-weight: 800;
  color: #18181B;
}
.mw-wheel-arc-bar {
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease, width 0.2s ease;
}
.mw-wheel-item.active .mw-wheel-arc-bar {
  background: #18181B;
  width: 34px;
}

.mw-wheel-arrow {
  position: absolute;
  top: 34px;
  z-index: 4;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #E4E4E7;
  color: #18181B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.mw-wheel-prev { left: 8px; }
.mw-wheel-next { right: 8px; }

/* Cards Minimalistas Brancos Flutuantes */
body[data-theme="minimal_wheel"] .app-promos-section {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
  border-radius: 22px;
}
body[data-theme="minimal_wheel"] .eyebrow-tag {
  background: #18181B;
  color: #FFFFFF;
}
body[data-theme="minimal_wheel"] .promo-mini-card {
  border-color: #F1F5F9;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
body[data-theme="minimal_wheel"] .category-accent-bar { background: #18181B; }
body[data-theme="minimal_wheel"] .category-section-head h2 { color: #18181B; letter-spacing: -0.02em; }

body[data-theme="minimal_wheel"] .app-grid-card {
  background: #FFFFFF;
  border: none;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.055);
  padding: 10px;
}
body[data-theme="minimal_wheel"] .app-grid-media {
  border-radius: 18px;
  background: #F8FAFC;
}
body[data-theme="minimal_wheel"] .app-grid-body { padding: 10px 4px 4px; }
body[data-theme="minimal_wheel"] .app-grid-card .item-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #18181B;
}
body[data-theme="minimal_wheel"] .app-grid-card .price-current,
body[data-theme="minimal_wheel"] .app-item-row .price-current {
  color: #18181B;
  font-size: 1.06rem;
  font-weight: 800;
}
body[data-theme="minimal_wheel"] .app-item-row {
  background: #FFFFFF;
  border: none;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
body[data-theme="minimal_wheel"] .btn-circle-add {
  background: #F4F4F5 !important;
  color: #18181B !important;
  box-shadow: none;
}
body[data-theme="minimal_wheel"] .btn-circle-add.has-qty {
  background: #18181B !important;
  color: #FFFFFF !important;
}
body[data-theme="minimal_wheel"] .grid-qty-pill {
  background: #18181B;
}
body[data-theme="minimal_wheel"] .active-bag-pill {
  background: #18181B !important;
  border-radius: 999px;
}

/* Floating Dark Pill Bottom Dock (Minimalista) */
body[data-theme="minimal_wheel"] .app-bottom-nav {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(calc(100% - 28px), 390px);
  bottom: max(14px, env(safe-area-inset-bottom));
  background: #18181B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 7px 8px;
  gap: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  height: auto;
}
body[data-theme="minimal_wheel"] .bnav-item {
  flex: 0 0 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #A1A1AA;
  flex-direction: row;
  gap: 7px;
  padding: 0;
  transition: all 0.2s ease;
}
body[data-theme="minimal_wheel"] .bnav-item > span:last-child { display: none; }
body[data-theme="minimal_wheel"] .bnav-item.active {
  flex: 1;
  background: #FFFFFF !important;
  color: #18181B !important;
  padding: 0 16px;
  border-radius: 999px;
}
body[data-theme="minimal_wheel"] .bnav-item.active > span:last-child {
  display: inline;
  font-size: 0.84rem;
  font-weight: 700;
}
body[data-theme="minimal_wheel"] .active-bag-pill-wrap {
  bottom: calc(82px + env(safe-area-inset-bottom));
}


/* ============================================================================
   MODELO 3: DIVERTIDO — COLORIDO POP (data-theme="fun")
   ============================================================================ */
body[data-theme="fun"] {
  background: #FFFDFB !important;
  color: #1E293B;
}
body[data-theme="fun"] .fun-bg-blobs {
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.fun-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.22;
  filter: blur(2px);
}
.fun-blob-1 { width: 220px; height: 220px; top: 140px; right: -95px; background: #14B8A6; }
.fun-blob-2 { width: 200px; height: 200px; top: 48%; left: -95px; background: #0EA5E9; }
.fun-blob-3 { width: 230px; height: 230px; bottom: 80px; right: -100px; background: #EC4899; }

body[data-theme="fun"] .app-page-root { position: relative; z-index: 1; }

/* Cabeçalho Curvo Vibrante Rosa/Coral */
body[data-theme="fun"] .app-hero-section {
  background: #FFFFFF;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.10);
  overflow: hidden;
  border-bottom: 2px solid #FCE7F3;
}
body[data-theme="fun"] .app-cover {
  height: 158px;
  border-radius: 0 0 32px 32px;
}
body[data-theme="fun"] .app-cover:not(.has-cover) .app-cover-bg {
  background: linear-gradient(125deg, #EC4899 0%, #F43F5E 48%, #FF5134 100%) !important;
}
body[data-theme="fun"] .app-avatar-wrap {
  background: linear-gradient(135deg, #FACC15, #EC4899, #14B8A6) !important;
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.28);
}
body[data-theme="fun"] .app-name-row h1 {
  color: #1E293B;
  font-weight: 800;
}
body[data-theme="fun"] .app-metrics-quad {
  border-radius: 16px;
  border: 1px solid #F3E4EC;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
body[data-theme="fun"] .metric-status-cell,
body[data-theme="fun"] .metric-sky,
body[data-theme="fun"] .metric-amber,
body[data-theme="fun"] .metric-violet { background: #FFFFFF !important; }
body[data-theme="fun"] .status-pill-compact {
  background: #F0FDFA;
  color: #0F766E;
  border: 1px solid #99F6E4;
}

/* Categorias em Blocos Squircle Vibrantes (Teal, Sky, Yellow, Pink, Coral, Violet) */
body[data-theme="fun"] .app-sticky-controls {
  background: rgba(255, 253, 251, 0.94);
  backdrop-filter: blur(10px);
}
body[data-theme="fun"] .app-search-pill {
  border: 2px solid #FBCFE8;
  background: #FFFFFF;
  border-radius: 16px;
}
body[data-theme="fun"] .app-circle-ctrl-btn {
  border-radius: 15px;
  background: #FCE7F3;
  color: #DB2777;
  border: 1.5px solid #F9A8D4;
}
body[data-theme="fun"] .app-circle-ctrl-btn.active {
  background: #EC4899;
  color: #FFFFFF;
  border-color: #EC4899;
}

body[data-theme="fun"] .cat-circle-ring {
  width: 62px;
  height: 62px;
  border-radius: 18px !important;
  border-width: 2.5px !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
body[data-theme="fun"] .cat-circle-ring img,
body[data-theme="fun"] .cat-circle-ico {
  border-radius: 15px !important;
}
body[data-theme="fun"] .cat-circle-btn.active .cat-circle-ring {
  transform: translateY(-3px) scale(1.04);
}

body[data-theme="fun"] .cat-tone-0 .cat-circle-ico { background: #14B8A6; color: #FFFFFF; }
body[data-theme="fun"] .cat-tone-0 .cat-circle-ring { border-color: #0D9488; box-shadow: 0 6px 14px rgba(20, 184, 166, 0.25); }
body[data-theme="fun"] .cat-tone-build .cat-circle-ico { background: #F97316; color: #FFFFFF; }
body[data-theme="fun"] .cat-tone-build .cat-circle-ring { border-color: #EA580C; box-shadow: 0 6px 14px rgba(249, 115, 22, 0.25); }
body[data-theme="fun"] .cat-tone-1 .cat-circle-ico { background: #0EA5E9; color: #FFFFFF; }
body[data-theme="fun"] .cat-tone-1 .cat-circle-ring { border-color: #0284C7; box-shadow: 0 6px 14px rgba(14, 165, 233, 0.25); }
body[data-theme="fun"] .cat-tone-2 .cat-circle-ico { background: #FACC15; color: #1E293B; }
body[data-theme="fun"] .cat-tone-2 .cat-circle-ring { border-color: #EAB308; box-shadow: 0 6px 14px rgba(250, 204, 21, 0.30); }
body[data-theme="fun"] .cat-tone-3 .cat-circle-ico { background: #EC4899; color: #FFFFFF; }
body[data-theme="fun"] .cat-tone-3 .cat-circle-ring { border-color: #DB2777; box-shadow: 0 6px 14px rgba(236, 72, 153, 0.28); }
body[data-theme="fun"] .cat-tone-4 .cat-circle-ico { background: #8B5CF6; color: #FFFFFF; }
body[data-theme="fun"] .cat-tone-4 .cat-circle-ring { border-color: #7C3AED; box-shadow: 0 6px 14px rgba(139, 92, 246, 0.25); }
body[data-theme="fun"] .cat-tone-5 .cat-circle-ico { background: #14B8A6; color: #FFFFFF; }
body[data-theme="fun"] .cat-tone-5 .cat-circle-ring { border-color: #0D9488; }

/* Ofertas & Cards Divertidos */
body[data-theme="fun"] .app-promos-section {
  background: linear-gradient(135deg, #FEF9C3 0%, #FCE7F3 100%);
  border: 2px solid #F9A8D4;
  border-radius: 24px;
}
body[data-theme="fun"] .eyebrow-tag {
  background: #EC4899;
  color: #FFFFFF;
}
body[data-theme="fun"] .badge-discount-off {
  background: #FACC15;
  color: #1E293B;
  font-weight: 900;
  transform: rotate(-3deg);
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.35);
}
body[data-theme="fun"] .category-accent-bar {
  background: linear-gradient(180deg, #EC4899, #FACC15);
  width: 5px;
}
body[data-theme="fun"] .app-item-row,
body[data-theme="fun"] .app-grid-card {
  border-radius: 22px;
  border: 1.5px solid #FBCFE8;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.07);
}
body[data-theme="fun"] .price-current {
  color: #DB2777;
  font-weight: 800;
}
body[data-theme="fun"] .btn-circle-add {
  background: linear-gradient(135deg, #EC4899, #F43F5E) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 14px rgba(236, 72, 153, 0.32);
}
body[data-theme="fun"] .btn-circle-add.has-qty {
  background: linear-gradient(135deg, #14B8A6, #0EA5E9) !important;
}
body[data-theme="fun"] .active-bag-pill {
  background: linear-gradient(135deg, #EC4899 0%, #F97316 100%) !important;
  border-radius: 999px;
}
body[data-theme="fun"] .app-bottom-nav {
  background: #FFFFFF;
  border-top: 2px solid #FCE7F3;
}
body[data-theme="fun"] .bnav-item.active {
  background: #FCE7F3;
  color: #DB2777;
  border-radius: 14px;
}

/* ============================================================================
   NABAG v2.7 — ANTI-ZOOM MOBILE, BAG.SVG, CARROSSEL POPUP E PEDIDO ATIVO
   ============================================================================ */
html, body {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

.bnav-bag-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bnav-bag-custom svg {
  display: block;
}

/* Controles do Carrossel no Popup de Múltiplas Ofertas */
.promo-popup-counter {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  background: rgba(15, 23, 42, 0.72);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.promo-nav-btn {
  position: absolute;
  top: 112px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.promo-nav-prev { left: 10px; }
.promo-nav-next { right: 10px; }
.promo-popup-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.pp-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #CBD5E1;
  transition: width 0.18s ease, background 0.18s ease;
}
.pp-dot.active {
  width: 20px;
  background: var(--brand-primary);
}

/* Pill Flutuante: Voltar ao Status do Pedido Recém-Feito */
.active-order-pill-wrap {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(74px + env(safe-area-inset-bottom));
  z-index: 36;
  max-width: 500px;
  margin: 0 auto;
}
body.has-active-bag .active-order-pill-wrap {
  bottom: calc(136px + env(safe-area-inset-bottom));
}
body[data-theme="minimal_wheel"] .active-order-pill-wrap {
  bottom: calc(82px + env(safe-area-inset-bottom));
}
body[data-theme="minimal_wheel"].has-active-bag .active-order-pill-wrap {
  bottom: calc(144px + env(safe-area-inset-bottom));
}
.active-order-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #11514D;
  color: #FFFFFF;
  box-shadow: 0 10px 26px rgba(17, 81, 77, 0.34);
  text-align: left;
}
.aop-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.aop-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF5134;
  box-shadow: 0 0 0 4px rgba(255, 81, 52, 0.28);
  flex-shrink: 0;
  animation: aopBlink 1.8s infinite;
}
@keyframes aopBlink {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.72; }
}
.aop-texts strong { display: block; font-size: 0.84rem; font-weight: 800; line-height: 1.2; }
.aop-texts small { display: block; font-size: 0.73rem; color: #EEE0D9; }
.aop-action {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Timeline de Status dentro do Modal do Pedido Ativo */
.ao-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.ao-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.ao-step.done { color: #0F172A; font-weight: 600; }
.ao-step.current { color: #11514D; font-weight: 800; }
.ao-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #64748B;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ao-step.done .ao-dot { background: #11514D; color: #FFFFFF; }
.ao-step.current .ao-dot { background: #FF5134; color: #FFFFFF; box-shadow: 0 0 0 4px rgba(255, 81, 52, 0.2); }
.ao-canceled-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
}
.ao-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ao-modal-actions a,
.ao-modal-actions button { text-align: center; }

/* ============================================================================
   NABAG v2.7 — DESTAQUE ANIMADO DE STORIES (ANEL GIRATÓRIO + PULSO SUAVE)
   ============================================================================ */
@keyframes nbStoryRingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes nbStoryGlowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 81, 52, 0.42), 0 6px 16px rgba(15, 23, 42, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(255, 81, 52, 0), 0 8px 22px rgba(236, 72, 153, 0.28); }
}
@keyframes nbStoryBadgeFloat {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.12); }
}
@keyframes nbLiveDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.45; }
}

.stories-eyebrow-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stories-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF5134;
  display: inline-block;
  animation: nbLiveDotPulse 1.5s ease-in-out infinite;
}

.app-avatar-wrap.has-stories {
  background: transparent;
  overflow: visible;
  isolation: isolate;
}
.app-avatar-wrap.has-stories.has-unseen {
  animation: nbStoryGlowPulse 2.2s ease-in-out infinite;
}
.app-avatar-wrap.has-stories::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #FF5134, #F59E0B, #EC4899, #8B5CF6, #14B8A6, #FF5134);
  z-index: 0;
  animation: nbStoryRingSpin 4.2s linear infinite;
}
.app-avatar-wrap.has-stories img {
  position: relative;
  z-index: 2;
}
.app-avatar-wrap.has-stories .avatar-story-badge {
  z-index: 3;
  width: 22px;
  height: 22px;
  padding: 0;
  bottom: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF5134, #EC4899);
  box-shadow: 0 3px 10px rgba(255, 81, 52, 0.45);
  animation: nbStoryBadgeFloat 1.9s ease-in-out infinite;
}

.mw-avatar-btn.has-stories {
  position: relative;
  isolation: isolate;
  overflow: visible !important;
}
.mw-avatar-btn.has-stories::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #FF5134, #F59E0B, #EC4899, #8B5CF6, #FF5134);
  z-index: 0;
  animation: nbStoryRingSpin 4.2s linear infinite;
}
.mw-avatar-btn.has-stories.has-unseen {
  animation: nbStoryGlowPulse 2.2s ease-in-out infinite;
}
.mw-avatar-btn.has-stories img {
  position: relative;
  z-index: 2;
  border: 2px solid #FFFFFF;
}

.story-bubble-ring.unseen {
  background: transparent;
  overflow: visible;
  isolation: isolate;
  animation: nbStoryGlowPulse 2.4s ease-in-out infinite;
}
.story-bubble-ring.unseen::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #FF5134, #F59E0B, #EC4899, #8B5CF6, #14B8A6, #FF5134);
  z-index: 0;
  animation: nbStoryRingSpin 5s linear infinite;
}
.story-bubble-ring.unseen .story-bubble-media {
  position: relative;
  z-index: 2;
}
.story-bubble-ring.unseen .story-video-tag {
  z-index: 3;
}
.story-bubble-btn:active .story-bubble-ring {
  transform: scale(0.94);
  transition: transform 0.12s ease;
}
