/* Spacer fixo que reserva o espaço da navbar (banner+navbar).
   O JS sincroniza a altura conforme a navbar encolhe ao rolar.
   Independe de CSS var ou ordem de carregamento. */
.navbar-spacer {
  width: 100%;
  height: 160px;            /* desktop: 40 banner + 120 navbar */
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .navbar-spacer { height: 126px; }   /* mobile: 36 banner + 90 navbar */
}

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 96px;
  overflow: hidden;
  min-height: 100vh;
  box-sizing: border-box;
  padding-bottom: 120px;
  /* padding-top NÃO é mais usado — o .navbar-spacer cuida do offset */
}
@media (max-width: 768px) {
  .home { gap: 64px; padding-bottom: 80px; }
}

/* Classe para ocultar elementos visivelmente, mas mantê-los no HTML para SEO */
.seo-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Carrossel */
.carousel-wrapper {
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Seção de produtos */
.product-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  z-index: 2;
}

/* Seção de destaques */
.highlight-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  gap: 32px;
}

/* Título antigo (mantido por compatibilidade) */
.title-home {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
  position: relative;
  padding-bottom: 0.6rem;
}
.title-home::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #BB0606;
  border-radius: 2px;
  margin-top: 0.5rem;
}

/* ── Novo cabeçalho de seção (eyebrow + título + subtítulo) ── */
.section-heading {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #BB0606;
  background: rgba(187, 6, 6, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 800;
  color: #111;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 0.85rem;
}

.section-subtitle {
  font-size: 1rem;
  color: #6b6b6b;
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .section-eyebrow { font-size: 0.65rem; letter-spacing: 1.4px; }
  .section-subtitle { font-size: 0.9rem; }
}

/* Contêiner para os HighlightCards */
.highlight-container-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

/* Responsividade */
@media (max-width: 1024px) {
  .highlight-container-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .title-home {
    font-size: 1.2rem;
  }
  /* padding-top do .home agora é controlado pela CSS var no bloco principal */
}

@media (max-width: 600px) {
  .highlight-container-home {
    grid-template-columns: 1fr;
  }
}

/* Estilos para o overlay de loading */
.home-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8); /* Fundo branco semi-transparente */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Garante que fique acima de tudo */
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top-color: #BB0606; /* Cor do spinner */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.seo-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
