/* ================================
   Custom Slider - Optimized Version
   ================================ */

.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background-color: #bff0f7; /* blue background */
  box-sizing: border-box;
  height: 250px; /* desktop fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  gap: 10px;
  box-sizing: border-box;
  align-items: center; /* vertically center columns */
}

/* Columns inside each slide */
.slide-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px;
  box-sizing: border-box;
}

.slide-column.image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-column.image img {
  max-height: 230px;
  width: auto;
  object-fit: contain;
}

.slide-column.reviews .trustpilot-widget {
  max-height: 230px;
  width: 100%;
}

/* Navigation Buttons */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  transition: 0.3s ease;
}

.prev:hover, .next:hover {
  color: #333;
}

.prev { left: 10px; }
.next { right: 10px; }

/* ================================
   Responsive Center Fix
   ================================ */
@media (max-width: 1024px) {
  .slider-container {
    height: auto !important;
    padding: 20px 0 !important;
  }

  .slide {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .slide-column {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .slide-column.image img {
    display: block !important;
    max-height: 200px !important;
    width: auto !important;
    margin: 0 auto !important;
  }

  .slide-column.reviews .trustpilot-widget {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }
}

@media (max-width: 600px) {
  .slider-container {
    padding: 15px 0 !important;
  }

  .slide-column.image img {
    max-height: 160px !important;
  }

  .slide-column {
    padding: 8px 0 !important;
  }

  .prev, .next {
    font-size: 18px !important;
    padding: 6px !important;
  }
}

/* ================================
   Ultra-small screens (max-width: 325px)
   ================================ */
@media (max-width: 325px) {
  .slider-container {
    height: auto !important;
    padding: 10px 0 !important;
  }

  .slide {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .slide-column {
    width: 100% !important;
    padding: 5px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .slide-column.image img {
    max-height: 140px !important;
    width: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .slide-column.reviews .trustpilot-widget {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .offer-section {
    max-width: 280px !important;
    padding: 10px 12px !important;
  }

  .offer-section h2 {
    font-size: 18px !important;
  }

  .price-line {
    font-size: 14px !important;
  }

  .new-price {
    font-size: 20px !important;
  }

  .save-btn {
    padding: 8px 18px !important;
    font-size: 13px !important;
  }

  .prev, .next {
    font-size: 16px !important;
    padding: 4px !important;
  }
}
/* ================================
   Optional Offer Section Styling
   ================================ */

.offer-section {
  text-align: center;
  padding: 25px 20px;
  font-family: Arial, sans-serif;
  border-radius: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.offer-section h2 {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #000;
  margin-bottom: 10px;
}

.price-line {
  font-size: 15px;
  margin: 8px 0;
  color: #000;
}

.old-price {
  text-decoration: line-through;
  color: #d00000;
  font-weight: bold;
  font-size: 20px;
}

.new-price {
  color: #d00000;
  font-weight: 700;
  font-size: 24px;
  margin-left: 5px;
}

.shipping-text {
  font-size: 15px;
  color: #000;
  margin-bottom: 10px;
}

.save-btn {
  display: inline-block;
  background-color: #d62027;
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.save-btn:hover {
  background-color: #b0161c;
}
