/* ==========================================================================
   VAPELÂNDIA — CATÁLOGO
   Sistema de tokens:
   - Cor: verde/baby-blue/azul/laranja (festa junina + copa) sobre base azul-noite
   - Tipo: Fredoka (display, arredondada/festiva) + Inter (texto) + Space Mono (preços)
   - Assinatura visual: faixa de "bandeirinhas" (bunting) repetida como divisor
   ========================================================================== */

:root {
  /* --- paleta --- */
  --bg: #070707;
  --surface: #111111;
  --surface-soft: #1b1b1b;
  --surface-strong: #181818;
  --surface-muted: #272727;
  --text: #f3f3f3;
  --text-muted: #b9b9b9;
  --text-subtle: #7f7f7f;
  --white: #FFFFFF;
  --price-highlight: #a8d8ff;
  --button-primary: #9ad8ff;
  --button-primary-hover: #7cc7ff;
  --accent: #78d93a;
  --accent-strong: #50c022;
  --danger: #ff5a5a;
  --verde: #0E8A6D;
  --baby-blue: #a8d8ff;
  --azul: #2a6c91;
  --laranja: #ff6e31;
  --ink: #0b0b0b;
  --text-on-ink: #f3f3f3;
  --text-on-ink-muted: #b9b9b9;
  --verde-forte: #50c022;

  /* --- tipografia --- */
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;

  /* --- layout --- */
  --max-width: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- reset básico ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.15; color: var(--white); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(168, 216, 255, 0.8); outline-offset: 3px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }

.section-heading { max-width: 620px; margin: 0 auto 36px; text-align: center; }
.section-heading.align-left { margin: 0 0 24px; text-align: left; }
.section-heading h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--white); }
/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #b9e6ff; color: #060606; box-shadow: var(--shadow-card); }
.btn-primary:hover { background: #8fd4ff; }
.btn-outline { border-color: rgba(255,255,255,0.2); color: var(--white); }
.btn-outline:hover { border-color: rgba(255,255,255,0.35); }
.btn-whatsapp { background: #1FAE59; color: var(--white); }
.btn-whatsapp:hover { background: #1c9950; }
.btn-large { padding: 16px 30px; font-size: 1.05rem; }
.icon-wpp { width: 20px; height: 20px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { font-size: 1.35rem; }
.logo-text { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); }
.logo-text strong { color: var(--price-highlight); }

.main-nav { margin-left: 12px; flex: 1; }
.main-nav ul { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { color: var(--white); }
.nav-link.active { background: rgba(168, 216, 255, 0.14); color: var(--price-highlight); }

.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; }

/* ==========================================================================
   BANDEIRINHAS — assinatura visual (SVG repetido em background)
   ========================================================================== */
.bunting {
  height: 18px;
  opacity: 0.3;
  background-image:
    linear-gradient(135deg, var(--verde) 20%, transparent 20%) ,
    linear-gradient(225deg, var(--price-highlight) 20%, transparent 20%),
    linear-gradient(135deg, var(--azul) 20%, transparent 20%),
    linear-gradient(225deg, var(--laranja) 20%, transparent 20%);
  background-size: 40px 18px;
  background-position: 0 0, 20px 0, 40px 0, 60px 0;
}
.bunting-alt { transform: scaleY(-1); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-section {
  background: radial-gradient(circle at top left, rgba(168, 216, 255, 0.12), transparent 35%),
    linear-gradient(180deg, #060606 0%, #0f0f0f 100%);
  color: var(--white);
  padding-top: 72px;
  padding-bottom: 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
}
.eyebrow {
  color: var(--price-highlight);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  color: var(--white);
}
.hero-sub {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 28px; }
.hero-trust li { font-size: 0.95rem; color: var(--text); padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,0.05); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); }

.hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.glow-orb { display: none; }
.hero-device { width: 220px; height: 320px; }
.hero-badge {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 18px;
  background: var(--price-highlight);
  color: #060606;
  width: auto;
  height: auto;
  padding: 14px 18px;
  border-radius: 999px;
  transform: none;
  box-shadow: none;
}
.hero-badge strong { font-size: 1rem; }
.hero-badge span { font-size: 0.7rem; }

/* ==========================================================================
   PRODUCT GRID / CARDS
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-card {
  background: var(--surface-strong);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
  .product-card:hover { transform: translateY(-2px); box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32); border-color: rgba(168, 216, 255, 0.2); }

.card-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--price-highlight);
  color: #060606;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
}
.card-badge.oferta { background: var(--accent); color: #060606; }

.card-media {
  height: 230px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #1b1b1b 0%, #151515 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media svg { width: 90px; height: 140px; }

.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); }
.card-meta { font-size: 0.95rem; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; }

.card-price-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.price-old { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-subtle); text-decoration: line-through; }
.price-new { font-family: var(--font-mono); font-size: 1.65rem; font-weight: 800; color: var(--price-highlight); line-height: 1.1; }

.card-footer { display: flex; }
.card-footer .btn { width: 100%; justify-content: center; }
.btn-product-options { padding: 12px 18px; }
  .btn-product-options:hover { background: #8fd4ff; }

  .detail-badge {
    display: inline-flex;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #060606;
    background: var(--price-highlight);
    width: fit-content;
  }
  .detail-description { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
  .detail-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.95rem; }
  .detail-flavors { background: #121212; border-radius: var(--radius-md); padding: 18px; border: 1px solid rgba(255,255,255,0.08); }
  .flavors-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
  .flavors-header h3 { margin: 0; font-size: 1rem; color: var(--white); }
  .detail-flavor-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
  }
  .detail-flavor-preview .flavor-chip {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 0;
    max-width: none;
    border: 1px solid rgba(255,255,255,0.12);
    background: #181818;
    color: var(--text);
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: var(--font-body);
    border-radius: 999px;
    text-align: center;
    white-space: nowrap;
    line-height: 1.1;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
  }
  .detail-flavor-preview .flavor-chip:hover {
    background: rgba(168, 216, 255, 0.12);
  }
  .detail-flavor-preview .flavor-chip.selected {
    background: var(--price-highlight);
    color: #060606;
    border-color: rgba(168, 216, 255, 0.35);
  }
  .detail-flavor-full { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .detail-flavor-full.active { display: grid; }
  .detail-flavor-full.expand { display: grid; }
  .product-page-section { padding: 72px 0; }
  .product-page-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
  }
  .product-page-breadcrumbs a { color: var(--price-highlight); }
  .product-page-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--price-highlight);
    margin-bottom: 18px;
  }
  .product-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 32px;
    align-items: start;
  }
  .product-image-card {
    background: #141414;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    min-height: 520px;
  }
  .product-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 480px;
  }
  .product-page-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .product-not-found { text-align: center; padding: 80px 20px; }
  .product-not-found h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
  .product-not-found p { color: var(--text-muted); margin-bottom: 24px; }
/* ==========================================================================
   CATÁLOGO — toolbar
   ========================================================================== */
.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 14px 18px;
  min-width: 0;
}
.sort-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.sort-box select {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.icon-search { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  color: var(--white);
  font-family: var(--font-body);
}
.results-count { margin: 18px 2px 18px; font-size: 0.88rem; color: var(--text-muted); }
.empty-state { text-align: center; padding: 40px 0; color: var(--text-muted); font-size: 1rem; }

/* ==========================================================================
   SABORES — accordion
   ========================================================================== */
.flavors-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.flavor-item {
  background: #131313;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.flavor-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
}
.flavor-item summary::-webkit-details-marker { display: none; }
.flavor-item summary .count-pill {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: #060606;
  background: rgba(168, 216, 255, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: auto;
  margin-right: 12px;
}
.flavor-item summary .chevron { transition: transform .2s ease; color: var(--text-muted); }
.flavor-item[open] summary .chevron { transform: rotate(180deg); }

.flavor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 22px;
}
.flavor-chip {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text);
  background: #191919;
  border: 1px solid rgba(255,255,255,0.08);

/* ==========================================================================
   SOBRE
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.about-text { color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; font-size: 1.02rem; }
.differentials { display: flex; flex-direction: column; gap: 18px; }
.differentials li { display: flex; gap: 14px; align-items: flex-start; background: #121212; border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-card); }
.diff-icon { font-size: 1.4rem; }
.differentials strong { font-family: var(--font-display); font-size: 1rem; color: var(--white); }
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-pop);
}
.contact-main h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 10px; }
.contact-main p { color: var(--text-on-ink-muted); margin-bottom: 22px; max-width: 42ch; }
.contact-social { border-left: 1px solid rgba(244,241,232,0.14); padding-left: 32px; }
.social-label { font-size: 0.85rem; color: var(--text-on-ink-muted); margin-bottom: 10px; }
.social-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.social-pill {
  background: rgba(244,241,232,0.08);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  width: fit-content;
  transition: background .15s ease;
}
.social-pill:hover { background: rgba(244,241,232,0.16); }
.hours { font-size: 0.85rem; color: var(--text-on-ink-muted); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #0b0b0b; color: var(--text-muted); padding-top: 44px; }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer-tagline { margin-top: 10px; font-size: 0.88rem; max-width: 32ch; color: var(--text-muted); }
  .footer-nav { display: flex; flex-direction: column; gap: 10px; }
  .footer-nav a { font-size: 0.9rem; color: var(--text); }
  .footer-nav a:hover { color: var(--price-highlight); }
  .footer-note { font-size: 0.8rem; line-height: 1.6; max-width: 34ch; justify-self: end; text-align: right; color: var(--text-subtle); }
  .copyright { text-align: center; font-size: 0.8rem; padding: 18px 0; opacity: 0.7; color: var(--text-muted); }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-social { border-left: none; padding-left: 0; border-top: 1px solid rgba(244,241,232,0.14); padding-top: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-note { justify-self: start; text-align: left; }
  .product-page-grid { grid-template-columns: 1fr; }
  .product-page-grid { gap: 24px; }
  .product-image-card img { min-height: 360px; }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 18px;
    gap: 12px;
  }
  .logo-text { font-size: 1.05rem; }
  .main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--ink);
    transform: translateY(-110%);
    transition: transform .25s ease;
    padding: 24px 20px;
    z-index: 40;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 8px; }
  .nav-link { display: block; padding: 14px 16px; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .toolbar { padding: 16px; }
  .search-box { min-width: 160px; }
  .section { padding: 56px 0; }
  .product-card { padding: 16px; }
  .card-media { height: 180px; }
  .card-media svg { width: 72px; height: 110px; }
  .hero-trust { flex-direction: column; gap: 12px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .product-page-grid { gap: 20px; }
  .product-image-card { min-height: 360px; }
  .product-image-card img { min-height: 320px; }
  .product-page-meta { flex-direction: column; gap: 10px; }
  .detail-flavor-preview, .detail-flavor-full { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; }
  .logo { width: 100%; justify-content: space-between; }
  .toolbar { flex-direction: column; align-items: stretch; padding: 14px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filters { position: static; }
  .filters-card { padding: 18px; }
  .sort-box { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; }
  .sort-box span { display: block; width: 100%; }
  .sort-box select { width: 100%; max-width: 100%; min-width: 0; padding: 10px 12px; font-size: 0.92rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card { gap: 10px; }
  .card-media { height: 160px; }
  .card-title { font-size: 1rem; }
  .card-meta { font-size: 0.9rem; }
  .price-new { font-size: 1.25rem; }
  .price-old { font-size: 0.75rem; }
  .btn { padding: 12px 18px; }
  .product-page-grid { gap: 18px; }
  .product-image-card { min-height: 320px; }
  .product-image-card img { min-height: 280px; }
  .product-page-content { gap: 16px; }
  .product-page-meta { gap: 10px; font-size: 0.95rem; }
}

@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .sort-box { width: 100%; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 8px; }
  .sort-box span { display: block; width: 100%; }
  .sort-box select { width: 100%; max-width: 100%; min-width: 0; padding: 8px 12px; font-size: 0.9rem; }
  .product-page-back { font-size: 0.9rem; }
  .product-page-grid { gap: 18px; }
  .product-page-content { gap: 16px; }
  .product-page-meta { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .product-card:hover { transform: none; }
}
