.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1a1a1a;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s;
  opacity: 0;
}

#productGallery:hover .gallery-arrow {
  opacity: 1;
}

.gallery-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

[dir="ltr"] .gallery-prev { left: 1rem; }
[dir="ltr"] .gallery-next { right: 1rem; }
[dir="rtl"] .gallery-prev { right: 1rem; }
[dir="rtl"] .gallery-next { left: 1rem; }

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
}

.gallery-thumb:hover {
  opacity: 0.85;
}

.gallery-thumb.active {
  border-color: #e3a51c;
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main-img {
  transition: opacity 0.3s ease;
}
