.product__slider-container {
  padding: 0.5rem;
  margin-left: 10px;
  margin-right: 10px;
}

.product__slider-wrapper {
  position: relative;
  width: 95%;
  margin: 0 auto;
}

.product__slider-slider {
  display: flex;
  aspect-ratio: 17 / 9;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
  border-radius: 0.5rem;
}

.product__slider-slider img {
  flex: 1 0 100%;
  scroll-snap-align: start;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.product__slider-nav {
  display: flex;
  column-gap: 1rem;
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.product__slider-nav a {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.75;
  transition: opacity ease 250ms;
}

.product__slider-nav a:hover {
  opacity: 1;
}

.product__slider-slider img {
  display: none;
}

.product__slider-slider img.active {
  display: block;
}

.product__slider-nav a.active {
  background-color: var(--company-red);
  opacity: 1;
}

.product__slider-prev,
.product__slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--company-red, #e93325);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 5rem;
  height: 5rem;
  font-size: 3rem;
  cursor: pointer;
  z-index: 2;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

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

.product__slider-prev {
  left: 0.5rem;
}

.product__slider-next {
  right: 0.5rem;
}

.product__slider-wrapper {
  position: relative;
}

/* Responsive adjustments for product slider */
@media screen and (max-width: 1200px) {
  .product__slider-wrapper {
    width: 100%;
    max-width: 900px;
  }
  
  .product__slider-prev,
  .product__slider-next {
    width: 4rem;
    height: 4rem;
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  .product__slider-slider {
    aspect-ratio: 16/9;
    -webkit-overflow-scrolling: touch;
  }
  
  .product__slider-prev,
  .product__slider-next {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 2rem;
    opacity: 0.9;
  }
  
  .product__slider-nav {
    bottom: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .product__slider-container {
    margin-left: 0;
    margin-right: 0;
    padding: 0.25rem;
  }
  
  .product__slider-slider {
    aspect-ratio: 1/1;
    border-radius: 0.25rem;
  }
  
  .product__slider-prev,
  .product__slider-next {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }
  
  .product__slider-prev {
    left: 0.25rem;
  }
  
  .product__slider-next {
    right: 0.25rem;
  }
  
  .product__slider-nav a {
    width: 0.4rem;
    height: 0.4rem;
  }
}

/* Very small devices (landscape phones) */
@media screen and (max-width: 360px) {
  .product__slider-prev,
  .product__slider-next {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }
  
  .product__slider-nav {
    column-gap: 0.75rem;
    bottom: 0.75rem;
  }
}

/* Responsive adjustments for slider nav dots */
@media screen and (max-width: 1200px) {
  .product__slider-nav {
    bottom: 1rem;
    column-gap: 0.8rem;
  }
  .product__slider-nav a {
    width: 0.5rem;
    height: 0.5rem;
  }
}

@media screen and (max-width: 768px) {
  .product__slider-nav {
    column-gap: 0.6rem;
    bottom: 0.8rem;
  }
  .product__slider-nav a {
    width: 0.45rem;
    height: 0.45rem;
  }
  .product__slider-nav a.active {
    width: 0.55rem;
    height: 0.55rem;
  }
}

@media screen and (max-width: 480px) {
  .product__slider-nav {
    column-gap: 0.4rem;
    bottom: 0.6rem;
  }
  .product__slider-nav a {
    width: 0.4rem;
    height: 0.4rem;
  }
  .product__slider-nav a.active {
    width: 0.5rem;
    height: 0.5rem;
  }
}

@media screen and (max-width: 360px) {
  .product__slider-nav {
    column-gap: 0.3rem;
    bottom: 0.5rem;
  }
  .product__slider-nav a {
    width: 0.35rem;
    height: 0.35rem;
  }
  .product__slider-nav a.active {
    width: 0.45rem;
    height: 0.45rem;
  }
}

/* Ensure dots remain visible on all backgrounds */
.product__slider-nav a {
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
}