/* ==================== Seção Principal ==================== */
.section-3 {
  margin-top: 80px;
  padding: 30px;
}

.section-3 h2 {
  text-align: center;
}

/* ==================== Produtos ==================== */
.produtos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 50px auto 100px;
  justify-content: center;


}

/* ==================== Item do Produto ==================== */
.produtos .item {
  position: relative; 
  width: 300px;
  height: 600px;
  background-color: #fff;
  border: 1px solid rgb(216, 216, 216);
  border-radius: 10px;
  padding: 15px;
  box-shadow: -1px 2px 29px -17px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease; /* Suaviza o hover */
  overflow-y: hidden; /* <- Adiciona essa linha */
  flex: 0 0 300px;
  scroll-snap-align: unset;
}

/* Hover no item */
.produtos .item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: #aaa;
}


.item img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}



.item a {
  text-decoration: none;
  color: inherit;
}

/* ==================== Texto ==================== */
.item .text {
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.produtos .text {
  margin-top: 10px;
}

.produtos .text h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.produtos .text p {
  margin: 0;
}

/* ==================== Preço ==================== */
.text-precos {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgb(37, 202, 87);
}


.item .text span {
  font-size: 12px;
  margin-left: 5px;
  color: #666666;
  text-decoration: line-through;
}

/* ==================== Descrição ==================== */
.item .descricao-produto {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-top: 10px;
  margin-bottom: 10px;
  min-height: 40px;
}

/* ==================== Botões ==================== */
.botoes-item {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 7px;
  width: 100%;
}

.button-default,
.button-ver {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.button-default {
  background-color: #000;
  color: #fff;
}

.button-ver {
  background-color: #f0f0f0;
  color: #000;
}

/* ==================== Controle de Quantidade ==================== */
.vQuantiti {
  gap: 10px;
  margin-top: 20px;
}

.quantidade-control {
  display: flex;
  justify-content: center;
  align-items: center;
}

.quantidade-control button {
  background-color: #6f42c1;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.quantidade-control input {
  width: 40px;
  margin: 2px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: transparent;
  font-weight: bold;
}

/* ==================== Animações ==================== */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.animate {
  opacity: 1;
  transform: translateY(0);
}





/* Transformando a .produtos em carrossel horizontal */
.produtos.carousel-track {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px 0;
}

.produtos.carousel-track::-webkit-scrollbar {
  display: none;
}

.produtos.carousel-track .item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* Botões de navegação */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 20px;
  padding: 10px 14px;
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
}

.scroll-btn.left {
  left: 10px;
}

.scroll-btn.right {
  right: 10px;
}

/* Versão desktop mantém o comportamento original (já está em seu CSS) */

.carousel-wrapper {
  position: relative;
  width: 100%;
}

/* Botão indicador fixo à esquerda */
.scroll-indicator-btn.left-indicator {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 8px 10px;
  border-radius: 50%;
  font-size: 18px;
  z-index: 5;
  pointer-events: none; /* Não interfere no clique */
  opacity: 0.8;
}

/* Só aparece em dispositivos pequenos */
@media (min-width: 768px) {
  .scroll-indicator-btn {
    display: none;
  }
}

.carousel-produto {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.slide-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  border-radius: 8px;
}

.slide-img.active {
  opacity: 1;
}




