.product-details-thumb-wrap {
  --product-gallery-button-size: 44px;
  --product-gallery-button-bg: rgba(255, 255, 255, 0.92);
  --product-gallery-button-color: #1f2937;
  --product-gallery-button-border: rgba(17, 24, 39, 0.12);
  --product-gallery-button-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);

  position: relative;
}

.product-details-thumb-top {
  position: relative;
}

.product-details-active {
  overflow: hidden;
}

.product-details-thumb-bottom {
  display: none !important;
}

.product-gallery-button {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--product-gallery-button-size);
  height: var(--product-gallery-button-size);
  padding: 0;
  border: 1px solid var(--product-gallery-button-border);
  border-radius: 999px;
  background: var(--product-gallery-button-bg);
  color: var(--product-gallery-button-color);
  box-shadow: var(--product-gallery-button-shadow);
  transform: translateY(-50%);
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.product-gallery-button:hover,
.product-gallery-button:focus-visible {
  background: var(--rs-theme-red, #d71920);
  color: #ffffff;
  transform: translateY(-50%) scale(1.04);
}

.product-gallery-button:focus-visible {
  outline: 2px solid rgba(215, 25, 32, 0.28);
  outline-offset: 3px;
}

.product-gallery-button.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.product-gallery-button i {
  font-size: 24px;
  line-height: 1;
}

.product-details-button-prev {
  left: 14px;
}

.product-details-button-next {
  right: 14px;
}

.product-details-gallery-dots {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 0;
  padding: 0 6px;
}

.product-details-gallery-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c9d0d8;
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.product-details-gallery-dot:hover,
.product-details-gallery-dot:focus-visible {
  background: #8e99a8;
  transform: scale(1.1);
}

.product-details-gallery-dot:focus-visible {
  outline: 2px solid rgba(215, 25, 32, 0.28);
  outline-offset: 4px;
}

.product-details-gallery-dot.is-active {
  width: 28px;
  background: var(--rs-theme-red, #d71920);
}

@media (max-width: 767px) {
  .product-details-thumb-wrap {
    --product-gallery-button-size: 38px;
  }

  .product-details-button-prev {
    left: 10px;
  }

  .product-details-button-next {
    right: 10px;
  }

  .product-gallery-button i {
    font-size: 21px;
  }

  .product-details-gallery-dots {
    bottom: 12px;
  }
}
