/* SIEC Gallery - 产品图片轮播 + 灯箱 */
.product-gallery {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--cds-layer-01, #0d1e3a);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.gallery-btn:hover { background: rgba(0,0,0,0.8); }
.gallery-btn.prev { left: 8px; }
.gallery-btn.next { right: 8px; }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumbs .gallery-item {
  flex: 0 0 72px;
  height: 54px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  opacity: 0.6;
}
.gallery-thumbs .gallery-item:hover,
.gallery-thumbs .gallery-item.active {
  border-color: var(--cds-link-primary, #0f62fe);
  opacity: 1;
}
.gallery-thumbs .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}
