/* Swiper Carousel Fixes for Merz - conexiones.html */

.product-swiper {
  max-width: 1100px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-bottom: 60px;
  position: relative;
  overflow: visible !important;
}

.swiper-wrapper {
  display: flex !important;
  align-items: stretch !important;
}

.swiper-slide {
  display: flex !important;
  flex-direction: column !important;
  height: 340px !important;
  min-width: 280px !important;
  max-width: 350px !important;
  background: #f9f9f9;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin: 0 18px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.swiper-slide-active {
  box-shadow: 0 4px 24px rgba(227,24,55,0.13), 0 1.5px 8px rgba(0,0,0,0.08);
  transform: scale(1.04);
  z-index: 2;
}

.swiper-slide .p-4 {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.swiper-slide img {
  max-width: 92%;
  max-height: 170px;
  width: auto;
  height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .product-swiper {
    max-width: 98vw !important;
  }
  .swiper-slide {
    min-width: 220px !important;
    max-width: 270px !important;
    height: 260px !important;
    margin: 0 8px;
  }
  .swiper-slide img {
    max-height: 100px;
  }
}

@media (max-width: 640px) {
  .product-swiper {
    max-width: 100vw !important;
    padding-bottom: 30px;
  }
  .swiper-slide {
    min-width: 85vw !important;
    max-width: 92vw !important;
    height: 220px !important;
    margin: 0 2vw;
  }
  .swiper-slide img {
    max-height: 80px;
  }
}

.swiper-pagination {
  bottom: 10px !important;
  left: 0;
  right: 0;
  margin: auto !important;
  text-align: center !important;
  width: 100% !important;
  z-index: 10;
}

.swiper-button-next,
.swiper-button-prev {
  color: #E31837 !important;
  top: 50%;
  transform: translateY(-50%);
  width: 38px !important;
  height: 38px !important;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  opacity: 0.92;
  transition: opacity 0.2s;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.swiper-button-next:after, .swiper-button-prev:after {
  font-size: 1.5rem !important;
  font-weight: bold;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .swiper-button-next, .swiper-button-prev {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.2rem !important;
    opacity: 0.7;
  }
}
