/* Products page styles inspired by Mestres Místicos */
.produtos-page {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
  min-height: 100vh;
}

.produtos-page h1 {
  font-size: 3rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 2px 2px 4px var(--shadow);
}

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  justify-content: center;
}

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

/* ==== CARD ==== */
.produto-card {
  background: var(--card-background);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.produto-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow);
  border-color: var(--accent-gold);
}

/* ==== IMAGEM FIXA ==== */
.produto-image {
  width: 100%;
  height: 200px;              /* 🔹 altura fixa */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.produto-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(212, 175, 55, 0.2), rgba(76, 175, 80, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.produto-card:hover .produto-image::before {
  opacity: 1;
}

/* ==== CONTEÚDO ==== */
.produto-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
}

.produto-title {
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.3;
  min-height: 38px;           /* 🔹 mantém altura uniforme */
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* 🔹 máximo 2 linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.produto-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-gold);
  text-align: center;
  margin: 8px 0;
}

/* ==== BOTÕES ==== */
.produto-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-comprar,
.btn-saiba-mais {
  height: 34px;
  padding: 0 14px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex: 1;
}

/* Comprar */
.btn-comprar {
  background: linear-gradient(45deg, var(--accent-gold), #f4d03f);
  color: var(--text-dark);
  border: none;
  font-weight: bold;
}

.btn-comprar:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Saiba Mais */
.btn-saiba-mais {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
  font-weight: bold;
}

.btn-saiba-mais:hover {
  background: var(--accent-gold);
  color: var(--text-dark);
}

/* ==== PAGINAÇÃO ==== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 50px 0;
}

.pagination a,
.pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.pagination a {
  background: var(--card-background);
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.pagination a:hover {
  background: var(--accent-gold);
  color: var(--text-dark);
}

.pagination .current {
  background: var(--accent-gold);
  color: var(--text-dark);
}

/* ==== RESPONSIVO ==== */
@media (max-width: 768px) {
  .produtos-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 0 15px;
  }

  .produto-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .produtos-page h1 {
    font-size: 2.2rem;
  }

  .produtos-grid {
    grid-template-columns: 1fr;
  }
}


