/* Define a fonte e remove margens padrão do corpo */
.main-wrapper {
  width: 100%;
}

.title {
  font-size: 2rem; /* Equivalente a text-3xl */
  font-weight: 700; /* Equivalente a font-bold */
  text-align: center;
  margin-bottom: 1.5rem; /* Equivalente a mb-6 */
  color: #1f2937; /* Equivalente a text-gray-800 */
}

/* ==========================================
   CAROUSEL PRINCIPAL - RESPONSIVO
   ========================================== */

.carousel-container {
  position: relative;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 100px 80px 0 rgba(0, 0, 0, 0.07), 
              0 41.778px 33.422px 0 rgba(0, 0, 0, 0.05), 
              0 22.336px 17.869px 0 rgba(0, 0, 0, 0.04), 
              0 12.522px 10.017px 0 rgba(0, 0, 0, 0.04), 
              0 6.65px 5.32px 0 rgba(0, 0, 0, 0.03), 
              0 2.767px 2.214px 0 rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  
  /* Aspect Ratio para manter proporção */
  aspect-ratio: 16 / 9; /* Proporção widescreen */
}

.slides-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

.slide {
  width: 100%;
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* MUDANÇA: contain ao invés de cover */
  object-position: center;
  display: block;
  background-color: #f5f5f5; /* Fundo para imagens que não preenchem totalmente */
}

/* ==========================================
   BOTÕES DE CONTROLE
   ========================================== */

.control-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FF7395;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  font-size: 1.5rem;
  line-height: 1;
  user-select: none;
  border-radius: 8px;
  opacity: 0.9;
}

.control-btn:hover {
  background: #ff5a7f;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.next-btn {
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   RESPONSIVIDADE - MOBILE
   ========================================== */

/* Smartphones - Portrait */
@media (max-width: 480px) {
  .carousel-container {
    aspect-ratio: 4 / 3; /* Proporção mais quadrada no mobile */
    border-radius: 8px;
  }
  
  .control-btn {
    padding: 8px 12px;
    font-size: 1.2rem;
  }
  
  .prev-btn {
    left: 5px;
  }
  
  .next-btn {
    right: 5px;
  }
  
  .slide img {
    object-fit: contain; /* Garante que a imagem inteira seja visível */
  }
}

/* Smartphones - Landscape e Tablets - Portrait */
@media (min-width: 481px) and (max-width: 768px) {
  .carousel-container {
    aspect-ratio: 16 / 10; /* Proporção intermediária */
    border-radius: 10px;
  }
  
  .control-btn {
    padding: 8px 12px;
    font-size: 1.3rem;
  }
  
  .slide img {
    object-fit: contain;
  }
}

/* Tablets - Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .carousel-container {
    aspect-ratio: 16 / 9;
  }
  
  .slide img {
    object-fit: cover; /* Em tablets pode usar cover */
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .carousel-container {
    aspect-ratio: 16 / 9;
  }
  
  .slide img {
    object-fit: cover; /* Desktop usa cover para preencher */
  }
}

/* ==========================================
   CAROUSEL DE RECOMENDAÇÕES
   ========================================== */

.carousel-recome {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 7; /* Proporção para banners largos */
}

.carousel-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Botões do carousel de recomendações */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FF7395;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
  z-index: 10;
}

.carousel-btn:hover {
  background: #ff5a7f;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.prev { 
  left: 15px; 
}

.next { 
  right: 15px; 
}

/* Responsividade - Carousel de Recomendações */
@media (max-width: 768px) {
  .carousel-recome {
    aspect-ratio: 16 / 9; /* Proporção mais alta no mobile */
    border-radius: 8px;
  }
  
  .carousel-btn {
    padding: 8px 12px;
    font-size: 1.2rem;
  }
  
  .prev {
    left: 5px;
  }
  
  .next {
    right: 5px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .carousel-recome {
    aspect-ratio: 16 / 7.5;
  }
}
