/* ---------- Utilidades generales del popup ---------- */
.hidde {
  display: none !important;
}
.popup-added_to_cart {
  max-width: 800px !important;
}
.swal2-container.swal2-center.swal2-backdrop-show {
  z-index: 99999;
}

/* ---------- Carrusel (sin Swiper) ---------- */
.carousel {
  position: relative;
  padding: 0 40px; /* deja espacio a las flechas */
  padding-top: 30px;
  box-sizing: border-box;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.carousel-track.center-slider {
  justify-content: center;
}

.carousel-slide {
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.carousel-slide img {
  height: 200px !important;
  width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.carousel-slide .product-name {
  width: 100%;
  white-space: normal;
  overflow: visible;
  font-weight: 600;
}

.carousel-slide a.boton-variacion.button.add_to_cart_button.boton-upsell {
  width: 100%;
}

.carousel-slide .original-price::before {
  content: "";
  width: 100%;
  height: 2px;
  background: red;
  position: absolute;
  top: 45%;
  left: 0;
  transform: rotate(165deg);
}

.original-price {
  color: #b1b1b1 !important;
  font-weight: 400 !important;
  position: relative;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  z-index: 2;
}

.carousel-prev::after,
.carousel-next::after {
  color: black !important;
  font-size: 15px !important;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-prev.disabled,
.carousel-next.disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

@media screen and (min-width: 768px) {
  .center-slider {
    justify-content: center;
  }
}
