.product-card__image.product-card__image--motion {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
  filter: none;
  transition: none;
}

.product-card__image--motion > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__image--motion > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__image--motion > .product-image-pending,
.product-card__image--motion > .product-image-incoming {
  position: absolute;
  inset: 0;
  height: 100%;
  pointer-events: none;
}

.product-card__image--motion > .product-image-pending > img,
.product-card__image--motion > .product-image-incoming > img {
  height: 100%;
  object-fit: contain;
}

.product-card__image--motion > .product-image-pending {
  visibility: hidden;
}

.product-card__image--motion > .product-image-incoming {
  z-index: 1;
  will-change: opacity, transform;
}

.product-card__image--motion::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.product-card__image--motion.is-image-loading::after {
  animation: product-image-progress 1.25s ease-in-out 180ms infinite;
}

@keyframes product-image-progress {
  0% { opacity: 0; transform: translateX(-40%) scaleX(0.3); }
  25% { opacity: 0.85; }
  100% { opacity: 0; transform: translateX(100%) scaleX(0.6); }
}

.product-image-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.product-image-status:not(:empty) {
  display: block;
  position: absolute;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  z-index: 3;
  left: 12px;
  top: 12px;
  max-width: min(320px, calc(100% - 24px));
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(22, 22, 22, 0.9);
  color: #fff;
  font: 13px/1.4 sans-serif;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .product-card__image--motion.is-image-loading::after {
    animation: none;
    opacity: 0.6;
    transform: scaleX(1);
  }
}
