/* ====== PRODUCTO DETALLE ====== */
.detalle-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Imagen del producto */
.detalle-img {
  flex: 1 1 400px;
  text-align: center;
}

.detalle-img img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: contain;
}

/* Información del producto */
.detalle-info {
  flex: 1 1 400px;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.detalle-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.detalle-info .precio {
  font-size: 1.6rem;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 1rem;
}

.detalle-info .descripcion {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: #555;
}

/* Botón de compra */
.btn-comprar {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 0.9rem 1.8rem;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-comprar:hover {
  background: #1ebc57;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .detalle-container {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .detalle-info {
    width: 100%;
    text-align: center;
  }

  .detalle-info h1 {
    font-size: 1.5rem;
 
/* ===== Carrusel de imágenes ===== */
.carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    display: block;
    border-radius: 10px;
    object-fit: contain;
}

/* Botones */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    z-index: 2;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

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

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