.carousel-wrapper {
  position: relative;
  padding-left: 60px; 
  padding-right: 60px;
}

@media (max-width: 1024px) {
  .carousel-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

.carousel-outer {
  position: relative;
  padding: 2rem;
  overflow: hidden; 
}

.mi-carousel {
  overflow: visible;
  position: relative;
}

.swiper-wrapper {
  gap: 0px; 
}

.mi-carousel-slide {
  display: flex !important;
  justify-content: center !important;
  height: auto !important;
  flex-shrink: 0 !important;
}

.product-card {
  background-color: #f2f2f2;
  border-radius: 20px;
  padding: 15px 10px 20px;
  text-align: left;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  max-width: 230px; 
  min-height: 410px;
  box-sizing: border-box;
  position: relative;
}

.product-card:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.etiqueta-nuevo {
  position: absolute;
  top: 0px; 
  right: 0px; 
  background-color: #2e7d32;
  color: white;
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: 15px;
  z-index: 10;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.product-card h4 {
  font-size: 0.9rem;
  font-weight: normal;
  margin: 0 0 4px;
}

.precio {
  color: #d32f2f;
  font-size: 1rem;
  font-weight: bold;
  margin: 4px 0 12px;
  text-align: left;
}

.product-card .button {
  background-color: #2e7d32;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border: none;
  text-align: center;
  margin-top: auto;
  align-self: center;
  width: fit-content;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-card .button:hover {
  background-color: #1b5e20;
}


.swiper-button-prev,
.swiper-button-next {
  z-index: 99;
  pointer-events: auto;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #777;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
}

.swiper-button-prev {
  left: -30px;
}

.swiper-button-next {
  right: -30px;
}

/* Responsive */
@media (max-width: 1024px) {
  .swiper-slide {
    max-width: 50%;
  }

  .swiper-button-prev,
  .swiper-button-next {
    //display: none;
  }
}

@media (max-width: 600px) {
  .swiper-slide {
    max-width: 100%;
  }
}

/* Animación añadir producto */

.add_to_cart_button.added-animation {
  background-color: #2e7d32; 
  color: #fff;
  transform: scale(1.05);
}

.add_to_cart_button.added-animation {
  animation: scale-up-down 0.3s ease-in-out;
}

@keyframes scale-up-down {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}