/*
Theme Name: Storefront Child
Theme URI: https://ajiperuprovo.com/
Description: Child theme de Storefront para WooCommerce
Author: Cristian
Author URI: https://respaldo.ajiperuprovo.com/
Template: storefront
Version: 1.0.0
*/

/* ====================== */
/* Slider horizontal  */
/* ====================== */

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
}

.carousel-window {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 250px;
  margin: 0 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Imagen circular */
.product-img {
  width: 140px;
  height: 140px;
  background: white;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: -40px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  border: 4px solid white !important;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* rellena el círculo */
  border-radius: 50%;
  box-shadow: 3px 10px 5px rgba(0, 0, 0, 0.75);
}


/* Caja roja */
.product-carta {
  background: #b71c1c;
  border-radius: 16px;
  padding: 20px 15px 15px 15px;
  width: 200px;
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease; /* ← transición suave */
}

.product-carta:hover {
  transform: translateY(-8px) scale(1.05); /* levanta + escala ligera */
  box-shadow: 0 12px 20px rgba(0,0,0,0.35), 
              0 0 15px rgba(255,162,23,0.6); /* sombra + brillo amarillo */
}

/* Título, descripción y precio */
.product-titulo {
  font-size: 28px !important;
  font-weight: bold !important;
  color: white !important;
  margin-bottom: 2px !important;
  margin-top: 20px !important;
}

.product-descuento {
  font-size: 14px;
  color: #f1f1f1;
  margin-bottom: 5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-precio {
  font-size: 24px !important;
  font-weight: bold;
  color: #ffeb3b;
  margin-top: 5px;
}

.product-rating .star-rating {
  color: #ffcc00;
  font-size: 16px;
  margin-bottom: 10px;
}

/* ====================== */
/* Flechas */
/* ====================== */

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent !important;
  border: none;
  width: 50px !important;
  height: 50px !important;
  border-radius: 1% !important;
  cursor: pointer;
  z-index: 10;
  font-size: 80px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.prev {
  left: -25px !important;
  color: #ffa217 !important;
}

.next {
  right: -25px !important;
  color: #ffa217 !important;
}

.fa-solid {
  font-size: 50px;
}

.prev:hover,
.next:hover {
  background-color: #ffeb3b;
  transform: translateY(-50%) scale(1.1);
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}


.prev:focus,
.next:focus {
    outline: none; /* ✅ sin círculo al hacer click */
}

/* ====================== */
/* Responsive */
/* ====================== */

@media (max-width: 768px) {
  .slide {
    min-width: 200px;
  }

  .product-img {
    width: 100px;
    height: 100px;
    margin-bottom: -30px;
  }

  .product-titulo {
    font-size: 22px;
  }

  .product-desc {
    font-size: 13px;
  }

  .product-price {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .slide {
    min-width: 160px;
  }

  .product-img {
    width: 80px;
    height: 80px;
    margin-bottom: -20px;
  }

  .product-titulo {
    font-size: 14px;
  }

  .product-desc {
    font-size: 12px;
  }

  .product-price {
    font-size: 18px;
  }

  .prev,
  .next {
    width: 15px;
    height: 15px;
    font-size: 20px;
  }
}

/* ====================== */
/* Estrellas debajo de la descripción */
/* ====================== */

.product-rating {
  color: #ffa217 !important;
  margin-top: 0px;
  margin-bottom: 2px;
}

.product-rating .star-rating {
  color: white !important;
  font-size: 12px;
  line-height: 1;
  display: inline-block;
}

.product-btn {
  display: inline-block;
  font-size: 12px;
  margin-top: 10px;
  padding: 2px 10px;
  background-color: #ffa217;
  color: white !important;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.product-btn:hover {
  background-color: #ffcc33;
}

.vertical-slider .product-descripcion {
  color: #a9a9a9 !important;
  font-size: 14px;
  line-height: 1.5;
}

