/* ================= RESET BÁSICO ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= HERO ================= */

.produtos-hero {
  padding: 120px 0 60px;
  background: #f6f8fa;
}

.produtos-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.produtos-hero p {
  color: #555;
  max-width: 600px;
}

/* ================= LAYOUT ================= */

.produtos-page {
  padding: 60px 0;
}

.produtos-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

/* ================= FILTRO (DESKTOP) ================= */

.filtro {
  position: sticky;
  top: 110px;
  background: #ffffff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* botão accordion (mobile only) */
.filtro-toggle {
  display: none;
}

/* container interno */
.filtro-conteudo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* botões */
.filtro-btn {
  width: 100%;
  display: flex;
  align-items: center;

  padding: 14px 16px;
  border-radius: 14px;
  border: none;

  background: #f2f4f6;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;

  cursor: pointer;
  transition: all .25s ease;
  text-align: left;

  white-space: nowrap; /* nunca quebra no desktop */
}

.filtro-btn:hover {
  background: #e9ecef;
}

.filtro-btn.active {
  background: linear-gradient(135deg, #25d366, #1ebe57);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37,211,102,.35);
}

/* ================= GRID DE PRODUTOS ================= */

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.produto-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;

  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: all .3s ease;

  display: flex;
  flex-direction: column;
}

.produto-card:hover {
  transform: translateY(-6px);
}

.produto-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 14px;
}

.produto-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.produto-card p {
  font-size: .9rem;
  color: #666;
  margin-bottom: 16px;
}

.produto-cta {
  margin-top: auto;
  font-weight: 600;
  color: #25d366;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {

  .produtos-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* filtro vira accordion */
  .filtro {
    position: relative;
    top: 0;
    padding: 16px;
  }

  .filtro-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    padding: 14px 18px;

    border-radius: 14px;
    border: none;

    background: linear-gradient(135deg, #25d366, #1ebe57);
    color: #fff;

    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
  }

  .filtro-toggle i {
    transition: transform .3s ease;
  }

  .filtro.active .filtro-toggle i {
    transform: rotate(180deg);
  }

  /* conteúdo fechado */
  .filtro-conteudo {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }

  /* conteúdo aberto */
  .filtro.active .filtro-conteudo {
    max-height: 500px;
    margin-top: 14px;
  }

  /* botões no mobile */
  .filtro-btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;

    white-space: nowrap; /* 🔥 NÃO quebra texto */
  }
}

/* ================= ANIMAÇÃO DE ENTRADA DOS PRODUTOS ================= */

.produto-card {
  opacity: 0;
  transform: translateY(30px);
}

.produto-card.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease;
}

.produto-card:nth-child(1) { transition-delay: 0.05s; }
.produto-card:nth-child(2) { transition-delay: 0.1s; }
.produto-card:nth-child(3) { transition-delay: 0.15s; }
.produto-card:nth-child(4) { transition-delay: 0.2s; }
.produto-card:nth-child(5) { transition-delay: 0.25s; }
.produto-card:nth-child(6) { transition-delay: 0.3s; }

/* ================= ANIMAÇÃO DOS CARDS ================= */

.produto-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.produto-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= ANIMAÇÃO AO CLICAR NO PRODUTO ================= */

.produto-card {
  cursor: pointer;
}

.produto-card.exiting {
  transform: scale(1.05);
  opacity: 0;
}



