:root {
  --verde: #1f7a3e;
  --verde2: #2e9e52;
  --verde3: #e8f5ed;
  --gold: #c8960c;
  --gold2: #f0b429;
  --white: #ffffff;
  --bg: #f0f2f0;
  --text: #1a1a1a;
  --muted: #6b7280;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --radius-card: 18px;
  --radius-btn: 50px;
}

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
}

/* HEADER */
.header {
  background: var(--white);
  padding: 16px 20px 12px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  position: sticky; top: 0; z-index: 10;
}
.logo { font-size: 28px; font-weight: 800; color: var(--verde); letter-spacing: -0.5px; line-height: 1; }
.logo span { color: var(--gold); }
.subtitle { margin-top: 4px; font-size: 13px; color: var(--muted); font-weight: 500; }

/* BADGES */
.badges {
  display: flex; gap: 8px;
  overflow-x: auto; padding: 14px 16px 0;
  scrollbar-width: none; -ms-overflow-style: none;
}
.badges::-webkit-scrollbar { display: none; }
.badge {
  flex-shrink: 0;
  background: var(--verde3);
  border: 1.5px solid rgba(31,122,62,0.18);
  color: var(--verde);
  padding: 7px 13px; border-radius: 50px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}

/* SECTION */
.section-label { padding: 16px 16px 10px; font-size: 16px; font-weight: 700; color: var(--text); }

/* ══════════════════════════════
   CARROSSEL HORIZONTAL
══════════════════════════════ */
.stories-wrapper {
  display: flex; gap: 12px;
  padding: 0 16px 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.stories-wrapper::-webkit-scrollbar { display: none; }

.story {
  flex-shrink: 0; width: 148px; height: 242px;
  position: relative; border-radius: var(--radius-card);
  overflow: hidden; background: #000; cursor: pointer;
  scroll-snap-align: start; box-shadow: var(--shadow);
  transition: transform 0.15s ease;
  -webkit-transform: translateZ(0); transform: translateZ(0);
}
.story:active { transform: scale(0.96); }

.story::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-card);
  border: 2.5px solid transparent;
  background: linear-gradient(135deg, var(--verde), var(--gold2)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out; mask-composite: exclude;
  z-index: 3; pointer-events: none;
}

.story img { width: 100%; height: 100%; object-fit: cover; display: block; }

.story::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,0.82) 100%);
  border-radius: var(--radius-card); z-index: 2; pointer-events: none;
}

.story-badge-new {
  position: absolute; top: 9px; left: 9px;
  background: var(--gold2); color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 2px 8px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.3px; z-index: 4;
}
.story-num {
  position: absolute; top: 9px; right: 9px;
  background: rgba(0,0,0,0.45); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; z-index: 4;
}
.story-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 10px 12px; z-index: 4;
}
.story-name { color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.story-text { color: rgba(255,255,255,0.85); font-size: 10px; margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.play-pill {
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 7px; flex-shrink: 0;
}

.story-skeleton {
  flex-shrink: 0; width: 148px; height: 242px;
  border-radius: var(--radius-card);
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════════════════
   MODAL — player CONTIDO
══════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 20px 16px;
}
.modal.active { display: flex; }

.modal-content {
  position: relative; width: 100%;
  max-width: 360px; height: min(640px, 88vh);
  background: #000; border-radius: 20px;
  overflow: hidden; flex-shrink: 0;
  animation: storyOpen 0.22s ease;
}
@keyframes storyOpen {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* PROGRESS */
.progress-container {
  position: absolute; top: 10px; left: 10px; right: 10px;
  z-index: 20; display: flex; gap: 4px;
}
.progress-seg {
  flex: 1; height: 3px; background: rgba(255,255,255,0.28);
  border-radius: 3px; overflow: hidden;
}
.progress-seg .fill { height: 100%; background: #fff; width: 0%; border-radius: 3px; }
.progress-seg.done .fill { width: 100%; }

/* TOP BAR */
.video-top {
  position: absolute; top: 22px; left: 10px; right: 10px;
  z-index: 20; display: flex;
  justify-content: space-between; align-items: center;
}
.user { display: flex; align-items: center; gap: 8px; min-width: 0; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85); object-fit: cover; flex-shrink: 0;
}
.user-name {
  color: #fff; font-weight: 700; font-size: 13px;
  line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-meta { color: rgba(255,255,255,0.72); font-size: 11px; line-height: 1.2; }

/* ── BOTÃO FECHAR — claro, grande, inconfundível ── */
.close-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border: none;
  border-radius: 50px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  /* z-index alto para não ser bloqueado */
  position: relative;
  z-index: 30;
  /* área de toque generosa */
  min-height: 40px;
  min-width: 80px;
  justify-content: center;
}
.close-btn:active { background: rgba(255,255,255,0.30); }

/* VIDEO */
#storyVideo {
  width: 100%; height: 100%; object-fit: cover;
  background: #000; display: block; position: absolute; inset: 0;
}

/* TAP ZONES */
.tap {
  position: absolute; top: 0;
  width: 38%; height: 72%; z-index: 11; cursor: pointer;
  display: flex; align-items: center;
}
.tap-left  { left: 0;  justify-content: flex-start; padding-left: 10px; }
.tap-right { right: 0; justify-content: flex-end;   padding-right: 10px; }

.tap-flash {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  opacity: 0; transition: opacity 0.18s; pointer-events: none;
}
.tap-flash.show { opacity: 1; }

/* BOTTOM CTA */
.bottom-content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 12;
  padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 16px);
  background: linear-gradient(transparent, rgba(0,0,0,0.92) 30%);
}
.cta-title {
  color: #fff; font-size: 13px; font-weight: 600;
  margin-bottom: 10px; line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
#ctaButton {
  width: 100%; border: none; border-radius: var(--radius-btn);
  padding: 15px 18px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 9px;
  box-shadow: 0 4px 18px rgba(37,211,102,0.38);
  transition: transform 0.15s; letter-spacing: 0.2px;
  font-family: 'Poppins', sans-serif;
}
#ctaButton:active { transform: scale(0.97); }
.wa-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* MUTE */
.mute-btn {
  position: absolute; bottom: 130px; right: 12px; z-index: 13;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.45); border: none; color: #fff;
  font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* PAUSE */
.pause-indicator {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px; background: rgba(0,0,0,0.52);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff; z-index: 13;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.pause-indicator.show { opacity: 1; }

/* NAV ARROWS desktop */
.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 20; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.14); border: none; color: #fff;
  font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.nav-arrow:hover { background: rgba(255,255,255,0.28); }
.nav-arrow.left  { left: -52px; }
.nav-arrow.right { right: -52px; }

@media (max-width: 600px) { .nav-arrow { display: none; } }

@media (min-width: 600px) {
  .modal-content { max-width: 400px; height: min(720px, 90vh); }
}
/* ══════════════════════════════════════════
   SEÇÃO TOP 3 PRODUTOS
   Cole ao final do seu style.css existente
══════════════════════════════════════════ */

.prod-sec {
  padding: 8px 16px 44px;
}

/* cabeçalho da seção */
.prod-sec-head {
  text-align: center;
  padding: 8px 0 24px;
}

.prod-eyebrow {
  display: inline-block;
  background: #fff8e6;
  border: 1.5px solid #f0b429;
  color: #8a5f00;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 15px;
  border-radius: 50px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.prod-sec-title {
  font-size: clamp(17px, 5vw, 21px);
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 8px;
}

.prod-sec-title em {
  font-style: normal;
  color: var(--verde);
}

.prod-sec-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto;
}

/* ── CARD ── */
.pcard {
  background: #fff;
  border-radius: 22px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1.5px solid #eaece8;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  position: relative;
}

/* topo verde com imagem */
.pcard-top {
  background: linear-gradient(140deg, #e8f5ed 0%, #f4f9f1 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px 16px 0;
  min-height: 155px;
  position: relative;
  overflow: hidden;
}

/* número fantasma de fundo */
.pcard-num {
  position: absolute;
  bottom: 0;
  left: 14px;
  font-size: 80px;
  font-weight: 800;
  color: rgba(31,122,62,.08);
  line-height: 1;
  letter-spacing: -4px;
  pointer-events: none;
  user-select: none;
}

/* badge "Mais Vendido" */
.pcard-badge {
  position: absolute;
  top: 13px;
  right: 13px;
  background: var(--verde);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .3px;
  z-index: 2;
}

/* mini flags de benefício */
.pcard-flags {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 16px;
  flex: 1;
  z-index: 1;
}

.pflag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #1a1a1a;
  font-weight: 600;
  background: rgba(255,255,255,.75);
  border-radius: 10px;
  padding: 5px 9px;
  width: fit-content;
}

.fdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--verde);
  flex-shrink: 0;
}

/* imagem do produto */
.pcard-img {
  width: 130px;
  height: 140px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.12));
}

/* corpo do card */
.pcard-body {
  padding: 18px 18px 20px;
}

.pcard-nome {
  font-size: 17px;
  font-weight: 800;
  color: var(--verde);
  line-height: 1.2;
  margin-bottom: 2px;
}

.pcard-sub {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}

.pcard-dor {
  font-size: 13.5px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 14px;
  border-left: 3px solid var(--gold2);
  padding-left: 12px;
}

.pcard-dor strong {
  color: #111827;
  font-weight: 700;
}

/* dropdown ingredientes */
.ing-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f2f7f3;
  border: 1.5px solid #d1e3d4;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--verde);
  cursor: pointer;
  width: 100%;
  margin-bottom: 14px;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  transition: background .15s;
}

.ing-toggle:active { background: #e4f0e7; }

.ing-arr {
  margin-left: auto;
  font-size: 13px;
  color: #9ca3af;
  transition: transform .22s;
  display: inline-block;
}

.ing-toggle.open .ing-arr { transform: rotate(180deg); }

.ing-box {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.ing-box.open { display: flex; }

.ing-tag {
  background: #f0f4ef;
  border: 1px solid #d1e3d4;
  color: #1f5c30;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 50px;
}

/* botão CTA WhatsApp */
.pcard-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 14px;
  background: #25D366;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,.28);
  transition: background .15s, transform .12s;
  font-family: 'Poppins', sans-serif;
  letter-spacing: .1px;
}

.pcard-btn:active {
  transform: scale(.97);
  background: #1ebb59;
}

.pcard-btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

/* botão atendente */
.atend-wrap {
  text-align: center;
  padding: 22px 0 0;
}

.atend-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.atend-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--verde);
  color: var(--verde);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: background .15s, color .15s;
}

.atend-btn:active {
  background: var(--verde);
  color: #fff;
}

.atend-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* desktop */
@media (min-width: 600px) {
  .prod-sec { max-width: 520px; margin: 0 auto; }
  .pcard-img { width: 150px; height: 160px; }
}
