.product-gallery {
  width: 400px;
  max-width: 100%;
  position: relative;
}

.product-gallery .preview-container {
  width: 100%;
  position: relative;
}

.product-gallery .small-box {
  position: relative;
  width: 100%;
  height: 300px;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
  cursor: crosshair;
}

.product-gallery .small-box img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.product-gallery .hover-lens {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background-color: rgba(255, 255, 255, 0.35);
  display: none;
  pointer-events: none;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.product-gallery .hover-lens.is-active {
  display: block;
}

.product-gallery .zoom-box {
  position: absolute;
  top: 0;
  left: calc(100% + 16px);
  width: 400px;
  height: 300px;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
  display: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.product-gallery .zoom-box.is-active {
  display: block;
}

.product-gallery .zoom-box .zoom-image {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  max-height: none;
}

.product-gallery .thumbnail-box {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-gallery .thumbnail-box .list {
  overflow: hidden;
  flex: 1;
}

.product-gallery .thumbnail-box .wrapper {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-gallery .thumbnail-box .item {
  width: 70px;
  height: 70px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #ffffff;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  flex-shrink: 0;
}

.product-gallery .thumbnail-box .item img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.product-gallery .thumbnail-box .item.item-cur {
  border-color: #ff9900;
  box-shadow: 0 0 8px rgba(255, 153, 0, 0.35);
}

.product-gallery .thumb-btn {
  width: 32px;
  height: 60px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.product-gallery .thumb-btn:hover {
  background-color: #f6f6f6;
  border-color: #cccccc;
}

.product-gallery .thumb-btn:disabled,
.product-gallery .thumb-btn.disabled {
  opacity: 0.4;
  cursor: default;
  background-color: #f5f5f5;
}

.product-gallery .thumb-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #666666;
  border-right: 2px solid #666666;
  transform: translate(-50%, -50%) rotate(225deg);
}

.product-gallery .thumb-next::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

@media (max-width: 1024px) {
  .product-gallery .zoom-box {
    display: none !important;
  }

  .product-gallery .hover-lens {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .product-gallery .thumbnail-box .item {
    width: 60px;
    height: 60px;
  }
}

