/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--verde-escuro);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Preenche o container mantendo 16:9 sem barras pretas, recortando as bordas */
.hero-video-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  border: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Some tempo o vídeo até por causa do buffer nativo do YouTube; escondemos
   o player (revelando a foto de fundo) em vez de deixar o loader aparecer. */
.hero-video-frame.is-buffering {
  opacity: 0;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 77, 31, 0.88) 0%, rgba(15, 77, 31, 0.55) 60%, rgba(15, 77, 31, 0.35) 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 560px;
  color: var(--branco);
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--branco);
  background: rgba(255, 255, 255, 0.15);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--text-3xl);
  color: var(--branco);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.hero__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ===== CATEGORIAS EM DESTAQUE ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-bottom: 3px solid transparent;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.category-card:hover {
  transform: translateY(-4px);
  border-bottom-color: var(--verde-primario);
  box-shadow: var(--shadow-md);
}

.category-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--verde-suave);
  color: var(--verde-primario);
}

.category-card__icon svg {
  width: 32px;
  height: 32px;
}

.category-card__name {
  font-size: var(--text-base);
  color: var(--cinza-titulo);
}

.category-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--verde-primario);
}

/* ===== PRODUTOS EM DESTAQUE ===== */
.products-carousel {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-4);
  margin: 0 calc(var(--space-4) * -1);
  padding-inline: var(--space-4);
  scrollbar-width: thin;
}

.product-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cinza-fundo);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.product-card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card__media .chip {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
}

.product-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex-grow: 1;
}

.product-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cinza-titulo);
  line-height: 1.4;
}

.product-card__sku {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--cinza-suave);
}

.product-card__cta {
  margin-top: auto;
  width: 100%;
}

/* ===== BLOCO INSTITUCIONAL ===== */
.stats-band {
  background: var(--verde-primario);
  color: var(--branco);
  padding-block: var(--space-16);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat__value {
  font-size: var(--text-4xl);
  color: var(--branco);
  margin-bottom: var(--space-1);
}

.stat__label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: var(--text-5xl);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-card {
    flex: 0 0 260px;
  }
}

.option-banner { padding: 12px 20px; color: var(--branco); background: var(--cinza-titulo); text-align: center; font-size: 12px; }
.option-banner a { margin-inline: 8px; color: var(--dourado); text-decoration: underline; }
.shell { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
