/* Estilos Gerais */
.product-carousel {
  padding: 2rem;
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

/* Grid Responsivo */
.carousel-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% / 4 - 15px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 0;
}

/* Esconde a barra de scroll */
.carousel-grid::-webkit-scrollbar {
  display: none;
}

/* Cards de Produto */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;

  scroll-snap-align: start;
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.product-card .price {
  margin-top: auto; /* Empurra o preço para o final do card */
  padding: 10px 0;
  min-height: 50px; /* Altura mínima (ajuste conforme necessário) */
  display: flex;
  align-items: center; /* Centraliza verticalmente */
  justify-content: center; /* Centraliza horizontalmente */
  font-weight: bold; /* Opcional: destaca o preço */
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Botões de Navegação */
.carousel-button {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.carousel-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.carousel-button:hover {
  background: rgba(0, 0, 0, 0.9);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-indicator.active {
  background: #333;
}

/* Responsividade */
@media (max-width: 992px) {
  .carousel-grid {
    grid-auto-columns: calc(100% / 3 - 15px);
  }
}

@media (max-width: 768px) {
  .carousel-grid {
    grid-auto-columns: calc(100% / 2 - 10px);
  }
}

@media (max-width: 480px) {
  .carousel-grid {
    grid-auto-columns: 100%;
  }
}

@media (max-width: 480px) {
  .carousel-buttons {
    gap: 10px;
  }
}
