/**
 * @file
 * Product hover image replacement styles.
 *
 * Base styles for the overlay container and images.
 * Theme can override these for specific layouts.
 */

/* Overlay container - positioned absolute within product image */
.product-image .swatch-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

/* All overlay images - smooth crossfade effect */
.product-image .swatch-overlay-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  pointer-events: none;
}

/* Default hover overlay */
.product-image .swatch-overlay-container .default-hover-overlay {
  z-index: 1;
}

/* Swatch-specific overlays */
.product-image .swatch-overlay-container .swatch-hover-overlay {
  z-index: 2;
}

/* Active swatch state */


/* Ensure product image container is positioned */
.product-image {
  position: relative;
}
