/* =========================================================================
   VHARAK | home.css
   Home: hero, faixas de produtos e o Top 10.

   A home e uma "prateleira infinita": a mesma frase de secao se repete,
   cada faixa com titulo + "Ver todos" e uma grade de ate 8 itens.
   ========================================================================= */

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 110px 24px 90px;
  text-align: center;
  min-height: 540px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #17130a 42%, var(--bg-primary) 100%);
  overflow: hidden;
}
/* O brilho dourado e a unica fonte de luz da pagina. */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 28%, rgba(224, 179, 74, 0.15) 0%, transparent 68%);
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 220px;
  background: linear-gradient(transparent, var(--bg-primary));
}

.hero-content { position: relative; z-index: 2; max-width: 820px; width: 100%; }

.hero-logo {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 72px; font-weight: 900; letter-spacing: -2px;
  line-height: 1; margin-bottom: 10px;
}
.hero-logo .logo-icon { width: 56px; height: 56px; color: var(--accent); }
.hero-logo .marca-b { color: var(--accent); }

.hero-tagline {
  font-size: 19px; color: var(--text-secondary);
  font-weight: 400; letter-spacing: 0.4px;
  margin-bottom: 10px;
}
.hero-sub { color: var(--text-muted); font-size: 15px; margin-bottom: 30px; }

/* ---- Busca do hero -------------------------------------------------------- */
.hero-search {
  display: flex; max-width: 560px; margin: 0 auto;
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.hero-search input {
  flex: 1; min-width: 0; padding: 18px 24px; background: transparent;
  border: none; color: var(--text-primary); font-size: 16px;
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search button {
  padding: 18px 32px; background: var(--accent); color: var(--accent-texto);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: var(--transition); letter-spacing: 0.3px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.hero-search button svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero-search button:hover { background: var(--accent-hover); }

.hero-links {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; margin-top: 22px;
}

/* ---- Faixas de produtos ---------------------------------------------------- */
.section { padding: 56px 24px; }
.section-inner { max-width: var(--largura-nav); margin: 0 auto; padding: 0 32px; }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.section-title { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; }
.section-sub { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.see-all {
  color: var(--text-secondary); font-size: 14px; font-weight: 600;
  transition: color 0.2s ease; white-space: nowrap;
}
.see-all:hover { color: var(--accent); }

.grid-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

/* ---- Top 10: numeral vazado atravessando o card --------------------------- */
.top10 {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 12px 4px 20px; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.top10-item {
  display: flex; align-items: flex-end; flex-shrink: 0;
  scroll-snap-align: start;
}
.top10-num {
  font-size: 118px; font-weight: 900; line-height: 0.78;
  color: var(--bg-elevated); -webkit-text-stroke: 3px var(--text-muted);
  margin-right: -16px; z-index: 0; user-select: none;
}
.top10-card { width: 172px; flex-shrink: 0; transition: transform 0.25s ease; }
.top10-card .card-produto { height: 100%; }
.top10-item:hover .top10-card { transform: scale(1.04); }
@supports not (-webkit-text-stroke: 1px black) {
  .top10-num { color: var(--text-muted); }
}

/* ---- Faixa de chamada final ------------------------------------------------ */
.cta-final {
  position: relative; overflow: hidden;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px; text-align: center;
}
.cta-final::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(224, 179, 74, 0.13) 0%, transparent 65%);
}
.cta-final .cta-conteudo { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.cta-final h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.cta-final p { color: var(--text-secondary); font-size: 16px; margin-bottom: 26px; }
.cta-final .botoes { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero { padding: 64px 16px 52px; min-height: 420px; }
  .hero-logo { font-size: 42px; gap: 10px; }
  .hero-logo .logo-icon { width: 38px; height: 38px; }
  .hero-tagline { font-size: 15px; }
  .hero-search input { padding: 13px 16px; font-size: 14px; }
  .hero-search button { padding: 13px 20px; font-size: 14px; white-space: nowrap; }
  .grid-produtos { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .section { padding: 40px 16px; }
  .section-inner { padding: 0 16px; }
  .section-title { font-size: 20px; }
  .top10-num { font-size: 78px; -webkit-text-stroke-width: 2px; margin-right: -10px; }
  .top10-card { width: 124px; }
  .cta-final { padding: 48px 16px; }
  .cta-final h2 { font-size: 24px; }
}
