/* ============================================================================
   NABAG v2.2 — Vitrine Mobile-First Estilo App + Perfil Instagram
   Inspirada em aplicativos nativos de delivery (clean, rápida, tátil)
   ============================================================================ */
: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: #ECEEF2;
  --border-strong: #D1D5DB;
  --muted: #6B7280;
  --danger: #DC2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
  --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-color: #F6F7F9;
  color: var(--brand-text);
  line-height: 1.45;
  padding-bottom: calc(128px + 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: -0.15em; flex-shrink: 0; }

/* App Shell: mobile edge-to-edge, desktop centrado elegante */
.app-shell {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* Seletor de Unidades/Franquias */
.unit-switcher-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  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(--muted); font-weight: 600; white-space: nowrap; }
.unit-pills { display: flex; gap: 6px; }
.unit-pill {
  white-space: nowrap;
  padding: 4px 11px;
  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;
}

/* ============================================================================
   TOPBAR COMPACTA (ESTILO APP)
   ============================================================================ */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.app-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 58px;
  padding: 0 14px;
}
.app-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.app-topbar-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #FFFFFF;
  flex-shrink: 0;
}
.app-topbar-texts { min-width: 0; }
.app-topbar-texts strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.app-topbar-texts small {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-topbar-bag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-bag);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.app-topbar-bag-pill .pill-count {
  background: rgba(255, 255, 255, 0.22);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.74rem;
}

/* ============================================================================
   HERO / PERFIL + CAPA + STATUS + MÉTRICAS (PADRÃO APP & INSTAGRAM)
   ============================================================================ */
.app-page-root {
  background: transparent;
}
.app-hero-section {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}

.app-cover {
  position: relative;
  height: 170px;
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-primary) 70%, 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.08) 0%, rgba(0,0,0,0.34) 100%);
}
.cover-share-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.app-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: #FFFFFF;
  margin-top: -34px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}
.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: -3px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #EC4899, #F59E0B);
  color: #FFFFFF;
  font-size: 0.62rem;
  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.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.verified-ico { color: #0284C7; display: inline-flex; }
.app-bio {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* Elementos exclusivos do modo Instagram */
.ig-stats-col, .ig-bio-block { display: none; }

/* Cartão de Status + Mais Info (Referência Imagem 1) */
.app-status-card {
  width: 100%;
  margin-top: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  box-shadow: var(--shadow-xs);
}
.status-ico-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.status-ico-circle.closed {
  background: #FEE2E2;
  color: #DC2626;
}
.status-card-texts { flex: 1; min-width: 0; }
.status-card-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #15803D;
}
.status-card-line.closed { color: #DC2626; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-card-texts small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-more-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary);
  white-space: nowrap;
}

/* Cartão 3 Colunas: Entrega | Taxa | Mínimo */
.app-metrics-card {
  margin-top: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.metric-cell {
  padding: 10px 8px;
  text-align: center;
  position: relative;
}
.metric-cell + .metric-cell::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border);
}
.metric-cell small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 500;
}
.metric-cell strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand-text);
  margin-top: 2px;
}

/* ============================================================================
   TEMA 2: INSTAGRAM (Perfil Nativo Mobile + Grade / Fila / Ofertas)
   ============================================================================ */
body[data-theme="instagram"] { background-color: #FFFFFF; }
body[data-theme="instagram"] .app-cover { height: 96px; }
body[data-theme="instagram"] .app-profile-sheet {
  border-radius: 18px 18px 0 0;
  margin-top: -16px;
  padding-bottom: 12px;
}
body[data-theme="instagram"] .app-identity-std { display: none; }
body[data-theme="instagram"] .app-avatar-wrap {
  width: 82px;
  height: 82px;
  margin-top: -28px;
}
body[data-theme="instagram"] .ig-stats-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex: 1;
  text-align: center;
  gap: 6px;
}
.ig-stat strong { display: block; font-size: 1rem; font-weight: 800; color: var(--brand-text); }
.ig-stat span { font-size: 0.75rem; color: var(--muted); }

body[data-theme="instagram"] .ig-bio-block {
  display: block;
  margin-top: 10px;
}
.ig-display-name { font-size: 0.98rem; font-weight: 800; }
.ig-handle { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.mini-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #166534;
}
.mini-status-pill.closed { background: #FEE2E2; color: #991B1B; }

.ig-action-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.ig-btn-primary {
  flex: 1;
  background: var(--brand-bag);
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ig-btn-soft {
  flex: 1;
  background: #F3F4F6;
  color: var(--brand-text);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ig-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #F3F4F6;
  color: var(--brand-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body[data-theme="instagram"] .app-status-card { display: none; }
body[data-theme="instagram"] .app-metrics-card { margin-top: 12px; }

/* Abas do Perfil Instagram (Grade / Em Fila / Ofertas) */
.ig-tabs-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  margin-top: 6px;
}
.ig-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2.5px solid transparent;
}
.ig-tab.active {
  color: var(--brand-text);
  border-bottom-color: var(--brand-text);
}
.ig-tab-badge {
  font-style: normal;
  background: #FEE2E2;
  color: #DC2626;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 999px;
}

/* ============================================================================
   BANNER ESCURO LOJA FECHADA (Referência Imagem 2)
   ============================================================================ */
.app-closed-banner {
  margin: 12px 14px 0;
  background: #231815;
  color: #FFFFFF;
  border-radius: 16px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.closed-ico-circle {
  width: 38px;
  height: 38px;
  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.88rem; }
.app-closed-banner p { font-size: 0.78rem; color: rgba(255,255,255,0.78); margin-top: 1px; }

/* ============================================================================
   STORIES 24H + OFERTAS CARROSSEL (Referência Imagem 2)
   ============================================================================ */
.app-stories-section {
  padding: 14px 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(--muted);
  text-transform: uppercase;
}
.app-section-eyebrow-row small { font-size: 0.74rem; 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: 70px;
  flex-shrink: 0;
}
.story-bubble-ring {
  position: relative;
  width: 64px;
  height: 64px;
  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.71rem;
  font-weight: 600;
  max-width: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--brand-text);
}

/* Promoções / Ofertas */
.app-promos-section {
  padding: 16px 14px 10px;
}
.app-promos-head h2 {
  font-size: 1.18rem;
  font-weight: 800;
  margin-top: 2px;
}
.count-muted { font-weight: 600; color: var(--muted); font-size: 0.92rem; }

.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: 196px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1px solid var(--border);
  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: #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.9rem;
  font-weight: 700;
  line-height: 1.3;
  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: #9CA3AF; text-decoration: line-through; }
.price-current { font-size: 0.98rem; font-weight: 800; color: var(--brand-primary); }

/* ============================================================================
   BUSCA FIXA + ALTERNADOR GRADE/FILA + CATEGORIAS CIRCULARES (Refs 3 e 4)
   ============================================================================ */
.app-sticky-controls {
  position: sticky;
  top: 58px;
  z-index: 25;
  background: rgba(246, 247, 249, 0.96);
  backdrop-filter: blur(10px);
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
}
body[data-theme="instagram"] .app-sticky-controls { background: rgba(255, 255, 255, 0.96); }

.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: 1px solid var(--border);
  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(--muted);
  pointer-events: none;
}
.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: #E5E7EB;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-circle-ctrl-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--brand-text);
  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 */
.app-categories-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.app-categories-strip::-webkit-scrollbar { display: none; }

.cat-circle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 66px;
  max-width: 78px;
  flex-shrink: 0;
  text-align: center;
}
.cat-circle-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 2px;
  border: 2px solid transparent;
  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;
}
.cat-circle-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.cat-circle-ico {
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-circle-btn.active .cat-circle-ring {
  border-color: var(--brand-primary);
  transform: scale(1.04);
}
.cat-circle-btn span {
  font-size: 0.72rem;
  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 span {
  color: var(--brand-text);
  font-weight: 800;
}

/* ============================================================================
   CARDÁPIO: MODO EM FILA (LISTA APP) & MODO GRADE (LADO A LADO INSTAGRAM)
   ============================================================================ */
.app-menu-main {
  padding: 14px 14px 8px;
}

.category-section {
  margin-bottom: 24px;
  scroll-margin-top: 190px;
}
.category-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.category-accent-bar {
  width: 3.5px;
  height: 16px;
  border-radius: 99px;
  background: var(--brand-primary);
  flex-shrink: 0;
}
.category-section-head h2 {
  font-size: 0.84rem;
  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: -6px 0 10px 11px;
}

/* MODO EM FILA (Referências Imagens 3 e 4) */
.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;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.app-item-row:active { transform: scale(0.99); }
.app-item-row.is-promo {
  border-color: #F59E0B;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.12);
}

.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.64rem;
  padding: 2px 6px;
}

.app-item-info { flex: 1; min-width: 0; }
.app-item-top-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 3px; }
.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: 2px 7px;
  border-radius: 999px;
}
.item-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--brand-text);
  line-height: 1.25;
}
.item-custom-dot {
  font-weight: 500;
  font-size: 0.76rem;
  color: var(--muted);
}
.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;
}

.btn-circle-add {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}
.btn-circle-add.has-qty {
  background: var(--brand-bag);
  font-size: 0.86rem;
}

/* MODO GRADE LADO A LADO (Estilo Instagram 2 col mobile / 3 col desktop) */
.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: 14px;
  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;
}
.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.86rem;
  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: 30px;
  height: 30px;
  font-size: 0.95rem;
}

/* ============================================================================
   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.4);
  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.24);
}
.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.82); }
.abp-right { display: flex; align-items: center; gap: 4px; font-size: 0.94rem; }

/* Barra inferior de App Nativo */
.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.05);
}
.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: 700; }
.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;
}

/* Rodapé compacto */
.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 OPCIONAL NA ABERTURA
   ============================================================================ */
.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; color: var(--brand-text); }
.promo-popup-body p { font-size: 0.86rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.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: MAIS INFORMAÇÕES DA LOJA
   ============================================================================ */
.store-info-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  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: #D1D5DB;
  margin: 10px auto 4px;
}
.sheet-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.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 24px; 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; }

/* ============================================================================
   VISUALIZADOR STORIES 24H EM TELA CHEIA
   ============================================================================ */
.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(92vh, 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 18px; 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; }

/* ============================================================================
   MODAL DE PRODUTO & DRAWER DA BAG (CHECKOUT PRESERVADO)
   ============================================================================ */
.modal-backdrop, .drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.56);
  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: 90vh;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  color: var(--brand-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close-btn.static-close { position: static; }
.pm-hero { position: relative; height: 200px; 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; }
.pm-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.pm-body h2 { font-size: 1.2rem; font-weight: 800; }
.pm-desc { font-size: 0.86rem; color: var(--muted); margin-top: 6px; }
.pm-allergens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.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: 12px; display: flex; align-items: baseline; gap: 8px; }
.addon-group-box { margin-top: 16px; 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-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: 14px 18px; border-top: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; gap: 12px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.qty-control button { width: 36px; height: 40px; font-size: 1.15rem; font-weight: 600; }
.qty-control span { min-width: 30px; text-align: center; font-weight: 700; }
.btn-add-bag { flex: 1; background: var(--brand-bag); color: #FFFFFF; font-weight: 700; font-size: 0.9rem; padding: 11px 16px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.drawer-backdrop { justify-content: flex-end; padding: 0; }
.bag-drawer { width: 100%; max-width: 470px; height: 100vh; background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.bag-drawer-header { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.bag-header-brand { display: flex; align-items: center; gap: 12px; }
.drawer-bag-thumb { width: 44px; height: 40px; object-fit: contain; background: var(--surface-soft); border-radius: 8px; padding: 4px; border: 1px solid var(--border); }
.bag-header-brand h2 { font-size: 1.06rem; font-weight: 800; }
.bag-header-brand small { font-size: 0.78rem; color: var(--muted); }
.checkout-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 14px; background: var(--surface-soft); border-bottom: 1px solid var(--border); }
.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: #D1D5DB; 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; overflow-y: auto; padding: 18px; }
.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: 40px 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; border-top: 1px solid var(--border); background: #FFFFFF; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.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: 14px; 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 (>= 768px) — MANTÉM VISUAL DE APP LIMPO E EQUILIBRADO
   ============================================================================ */
@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);
    box-shadow: var(--shadow-xs);
  }
  .app-cover { height: 220px; }
  body[data-theme="instagram"] .app-cover { height: 135px; }
  .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: 100vh; border-radius: 0; }
  .modal-sheet.product-modal { max-height: 92vh; border-radius: 20px 20px 0 0; }
  #productModalBackdrop { align-items: flex-end; padding: 0; }
  .form-row-2 { flex-direction: column; gap: 0; }
}
