/* V107 full-frame product imagery and thumbnail navigation. */
.product-gallery > img,
.product-gallery.product-isolated > img,
.product-gallery.product-lifestyle > img,
.product-gallery-carousel .product-gallery-slide > img,
.product-gallery-carousel.product-isolated .product-gallery-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  background: #f7faf8;
}

.product-gallery-carousel .product-gallery-frame {
  background: #eef3f1;
}

.product-gallery-carousel .product-gallery-slide:not([hidden]) {
  animation: product-gallery-fade 180ms ease-out;
}

.product-gallery-carousel .product-gallery-controls {
  min-height: 88px;
  justify-content: flex-start;
  gap: 10px;
  padding: 11px 14px;
  overflow-x: auto;
  background: #eef3f1;
  scrollbar-width: thin;
}

.product-gallery-carousel .product-gallery-thumbnail {
  position: relative;
  flex: 0 0 68px;
  width: 68px;
  height: 62px;
  padding: 0;
  overflow: hidden;
  border: 2px solid #c7d6d0;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(23, 32, 42, 0.1);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-gallery-carousel .product-gallery-thumbnail:hover {
  border-color: var(--teal-dark);
  box-shadow: 0 7px 16px rgba(23, 32, 42, 0.16);
  transform: translateY(-2px);
}

.product-gallery-carousel .product-gallery-thumbnail.is-active {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--gold);
}

.product-gallery.product-gallery-carousel .product-gallery-controls .product-gallery-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  background: #fff;
}

.product-gallery-carousel .product-gallery-status {
  position: static;
  width: auto;
  height: auto;
  margin-left: 6px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.product-gallery-carousel .product-gallery-arrow {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(23, 32, 42, 0.76);
  color: #fff;
  backdrop-filter: blur(5px);
}

.product-gallery-carousel .product-gallery-arrow:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

@keyframes product-gallery-fade {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@media (max-width: 680px) {
  .product-gallery-carousel .product-gallery-controls {
    min-height: 74px;
    gap: 8px;
    padding: 9px 11px;
  }

  .product-gallery-carousel .product-gallery-thumbnail {
    flex-basis: 58px;
    width: 58px;
    height: 52px;
    border-radius: 8px;
  }

  .product-gallery-carousel .product-gallery-status {
    margin-left: 4px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery-carousel .product-gallery-slide:not([hidden]) {
    animation: none;
  }

  .product-gallery-carousel .product-gallery-thumbnail {
    transition: none;
  }
}
