/* ══════════════════════════════════════════════════
   Supermercado Bistecão — folha de estilos única
   Sistema: módulo 16px, sub-módulo 4px.
   Todo espaçamento é múltiplo de 4.
   Paleta: 1 primária + neutros. Sem sombra, sem gradiente.
   ══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-primary: #A71413;
  --c-ink:     #1A1A1A;
  --c-caption: #5A5A5A;
  --c-border:  #E0E0E0;
  --c-white:   #FFFFFF;
  --c-wa:      #25D366;   /* verde WhatsApp: reconhecimento é função */
  --f: 'Roboto', Arial, Helvetica, sans-serif;
  --nav-h: 64px;
  --m: 16px;              /* módulo base */
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f);
  color: var(--c-ink);
  background: var(--c-white);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: 768px; margin: 0 auto; }

/* ─── Header ─────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-white);
  border-bottom: 2px solid var(--c-primary);
}
.header-inner {
  max-width: 768px; margin: 0 auto;
  padding: 8px var(--m);
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px;
}
.header-logo img { height: 36px; width: auto; }

.header-whatsapp {
  background: var(--c-wa);
  color: var(--c-white);
  font-size: 12px; font-weight: 700;
  padding: 8px 12px;
  border-radius: 4px;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.header-whatsapp svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── Título de seção ────────────────────────── */
.section-title {
  display: flex; align-items: center; gap: 8px;
  padding: 24px var(--m) 12px;
}
.section-title::before {
  content: "";
  width: 8px; height: 20px;
  background: var(--c-primary);
  flex-shrink: 0;
}
.section-title h1,
.section-title h2 {
  font-size: 20px; font-weight: 700;
  color: var(--c-ink);
  line-height: 1.2;
}

/* ─── Carrossel genérico (scroll-snap nativo) ──
   Um slide por vez + dots. Usado pelo hero e pelas
   seções Ofertas/Tabloide. Proporção da imagem é
   definida por modificador (.carousel--wide / --tall). */
.carousel,
.hero { position: relative; }
.carousel-track,
.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar,
.hero-track::-webkit-scrollbar { display: none; }
.carousel-slide,
.hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.carousel-slide img,
.hero-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.carousel--tall .carousel-slide img {
  aspect-ratio: 9 / 16;
}

.carousel-dots,
.hero-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 12px 0;
}
.carousel-dots button,
.hero-dots button {
  width: 8px; height: 8px;
  border: none; border-radius: 50%;
  background: var(--c-border);
  cursor: pointer; padding: 0;
}
.carousel-dots button.active,
.hero-dots button.active { background: var(--c-primary); }

/* ─── Mapas ──────────────────────────────────── */
.mapas {
  padding: 12px var(--m) 24px;
  display: grid; gap: 16px;
}
.mapa-card {
  border: 1px solid var(--c-border);
  border-radius: 8px;
  overflow: hidden;
}
.mapa-card h3 {
  font-size: 16px; font-weight: 700;
  color: var(--c-primary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  border-radius: 8px 8px 0 0;
}
.mapa-card iframe {
  display: block;
  width: 100%; height: 220px;
  border: none;
}

/* ─── Formulário ─────────────────────────────── */
.form-wrap { padding: 0 var(--m) 24px; }

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 12px; font-weight: 700;
  color: var(--c-caption);
  margin-bottom: 4px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--f);
  font-size: 16px;            /* ≥16px: evita zoom automático no iOS */
  color: var(--c-ink);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 12px;
  min-height: 48px;           /* alvo de toque */
  appearance: none;
  -webkit-appearance: none;
}
.form-field textarea { min-height: 128px; resize: vertical; }

.form-field input[type="file"] {
  padding: 8px 12px;
  cursor: pointer;
}
.form-field input[type="file"]::file-selector-button {
  font-family: var(--f);
  font-size: 12px; font-weight: 700;
  color: var(--c-caption);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 8px 12px;
  margin-right: 12px;
  cursor: pointer;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--c-primary);
  outline-offset: -1px;
  border-color: var(--c-primary);
}

.form-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5A5A' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* honeypot: fora da tela, invisível para humanos */
.hp-field {
  position: absolute; left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
  min-height: 48px;
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--f);
  font-size: 16px; font-weight: 700;
  border: none; border-radius: 4px;
  cursor: pointer;
  padding: 12px;
}
.form-submit:disabled { opacity: 0.6; cursor: default; }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 4px;
  border: 1px solid var(--c-border);
}
.form-status.ok    { display: block; border-color: var(--c-wa);      color: var(--c-ink); }
.form-status.error { display: block; border-color: var(--c-primary); color: var(--c-primary); }

/* ─── Grupo VIP ──────────────────────────────── */
.vip-hero {
  background-color: var(--c-primary);
  /* textura geométrica modular: quadrados 8px em grade de 48px, tom sobre tom */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Crect x='0' y='0' width='8' height='8' fill='%23ffffff' fill-opacity='0.07'/%3E%3Crect x='24' y='24' width='8' height='8' fill='%23000000' fill-opacity='0.10'/%3E%3C/svg%3E");
  color: var(--c-white);
  padding: 32px var(--m);
}
.vip-kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.vip-kicker::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--c-white);
  flex-shrink: 0;
}
.vip-hero h1 {
  font-size: 28px; font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}
.vip-hero p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-vip {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: 48px;
  background: var(--c-wa);
  color: var(--c-white);
  font-size: 16px; font-weight: 700;
  border: none; border-radius: 4px;
  padding: 12px 16px;
  cursor: pointer;
}
.btn-vip svg { width: 20px; height: 20px; flex-shrink: 0; }

.carta {
  padding: 8px var(--m) 24px;
  font-size: 16px;
  line-height: 1.6;
}
.carta p { margin-bottom: 16px; }
.carta strong { font-weight: 700; }

.vip-list {
  list-style: none;
  padding: 0 var(--m) 8px;
}
.vip-list li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.vip-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--c-primary);
}

.faq { padding: 0 var(--m) 8px; }
.faq h3 {
  font-size: 16px; font-weight: 700;
  margin-bottom: 4px;
}
.faq p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-caption);
  margin-bottom: 16px;
}

.vip-ps {
  margin: 8px var(--m) 24px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 16px;
  font-size: 16px;
  line-height: 1.6;
}
.vip-ps strong { color: var(--c-primary); }

.vip-cta-final { padding: 0 var(--m) 8px; }

.vip-note {
  text-align: center;
  font-size: 12px;
  color: var(--c-caption);
  padding: 12px var(--m) 32px;
}

/* ─── Prévia do chat (Grupo VIP) ─────────────── */
.chat-card {
  margin: 0 var(--m);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  border-radius: 8px 8px 0 0;
}
.chat-head-avatar {
  width: 32px; height: 32px;
  background: var(--c-wa);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-white);
  flex-shrink: 0;
}
.chat-head-avatar svg { width: 20px; height: 20px; }
.chat-head-name { font-size: 16px; font-weight: 700; line-height: 1.2; }
.chat-head-name span {
  display: block;
  font-size: 12px; font-weight: 400;
  color: var(--c-caption);
}
.chat-body {
  background: #F5F5F0;
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.bubble {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  border-top-left-radius: 2px;
  padding: 8px 12px;
  max-width: 88%;
  font-size: 16px;
  line-height: 1.4;
}
.bubble strong { color: var(--c-primary); }
.bubble time {
  display: block;
  font-size: 12px;
  color: var(--c-caption);
  text-align: right;
  margin-top: 4px;
}

/* ─── Passos (Grupo VIP) ─────────────────────── */
.steps {
  display: flex; gap: 12px;
  padding: 4px var(--m) 24px;
}
.step { flex: 1; }
.step-num {
  width: 32px; height: 32px;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  margin-bottom: 8px;
}
.step p { font-size: 16px; line-height: 1.3; }

/* ─── Página legal (política de privacidade) ── */
.legal { padding: 0 var(--m) 24px; }
.legal h2 {
  font-size: 16px; font-weight: 700;
  margin: 24px 0 8px;
}
.legal p, .legal li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.legal ul { list-style: none; padding: 0; }
.legal li {
  position: relative;
  padding-left: 20px;
}
.legal li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--c-primary);
}
.legal a { color: var(--c-primary); font-weight: 700; }
.legal .legal-updated {
  font-size: 12px;
  color: var(--c-caption);
}

/* ─── Rodapé ─────────────────────────────────── */
.page-footer {
  text-align: center;
  font-size: 12px;
  color: var(--c-caption);
  padding: 16px var(--m) 24px;
  border-top: 1px solid var(--c-border);
}
.page-footer a { color: var(--c-primary); font-weight: 700; }

/* ─── Banner de cookies (LGPD) ───────────────── */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  z-index: 300;
  background: var(--c-white);
  border-top: 2px solid var(--c-primary);
  padding: 16px;
  max-width: 768px;
  margin: 0 auto;
}
.cookie-banner p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-ink);
  margin-bottom: 12px;
}
.cookie-banner a { color: var(--c-primary); font-weight: 700; }
.cookie-banner-actions { display: flex; gap: 12px; }
.cookie-btn {
  flex: 1;
  min-height: 44px;
  font-family: var(--f);
  font-size: 16px; font-weight: 700;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
}
.cookie-btn--accept {
  background: var(--c-primary);
  color: var(--c-white);
  border: none;
}
.cookie-btn--reject {
  background: var(--c-white);
  color: var(--c-caption);
  border: 1px solid var(--c-border);
}

/* ─── Aviso LGPD nos formulários ─────────────── */
.form-consent {
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-caption);
  margin-top: 8px;
}
.form-consent a { color: var(--c-primary); font-weight: 700; }

/* ─── Bottom nav ─────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-inner {
  max-width: 768px; margin: 0 auto;
  height: var(--nav-h);
  display: flex; align-items: stretch;
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  font-size: 10px; font-weight: 700;
  color: var(--c-caption);
  text-align: center;
}
.nav-item svg { width: 24px; height: 24px; flex-shrink: 0; }
.nav-item--active { color: var(--c-primary); }

.nav-wa-wrap { flex: 1; display: flex; align-items: center; justify-content: center; }
.nav-item--whatsapp {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-wa);
  color: var(--c-white);
  position: relative; top: -12px;
  gap: 0;
}
.nav-item--whatsapp svg { width: 28px; height: 28px; }
.nav-item--whatsapp span { font-size: 9px; }

/* ─── Botão fixo: Grupo VIP ──────────────────── */
.vip-fab {
  position: fixed;
  right: 12px;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
  z-index: 150;
  display: flex; align-items: center; gap: 8px;
  background: var(--c-wa);
  color: var(--c-white);
  font-size: 13px; font-weight: 700;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.vip-fab svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── ≥768px: coluna centrada vira grid ──────── */
@media (min-width: 768px) {
  .mapas { grid-template-columns: 1fr 1fr; }
}
