.product-rotator {
  --rotator-height: clamp(420px, 60vh, 560px);
  --rotator-gap: 20px;
  --rotator-radius: 8px;
  --rotator-transition: 450ms;
  --rotator-content-bg: #ffffff;
  --rotator-media-bg: #f7f7f7;
  position: relative;
}

.product-rotator__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: var(--rotator-gap);
  align-items: stretch;
  direction: ltr;
}

.product-rotator__media {
  position: relative;
  min-height: var(--rotator-height);
  border-radius: var(--rotator-radius);
  overflow: hidden;
  background: var(--rotator-media-bg);
}

.product-rotator__image-stack {
  position: absolute;
  inset: 0;
}

.product-rotator__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  opacity: 0;
  transform: scale(1);
  transition: opacity var(--rotator-transition) cubic-bezier(0.22, 1, 0.36, 1);
}

.product-rotator__image.is-active {
  opacity: 1;
}

.product-rotator__caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.product-rotator__content {
  background: var(--rotator-content-bg);
  border-radius: var(--rotator-radius);
  padding: 30px;
  border: 1px solid #ededed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  text-align: start;
}

.product-rotator__badge {
  align-self: flex-start;
  display: inline-flex;
  background: #ee3f35;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-rotator__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.product-rotator__description {
  margin: 0;
  color: #666666;
  font-size: 16px;
  line-height: 1.7;
}

.product-rotator__cta {
  align-self: flex-start;
}

.product-rotator__toggle {
  align-self: flex-start;
  border: 1px solid #ee3f35;
  background: #ffffff;
  color: #ee3f35;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 200ms ease;
}

.product-rotator__toggle:hover {
  background: #ee3f35;
  color: #ffffff;
}

body.product-rotator--lightbox-open {
  overflow: hidden;
}

.product-rotator__lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 6, 6, 0.82);
}

.product-rotator__lightbox[hidden] {
  display: none;
}

.product-rotator__lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.product-rotator__lightbox-content {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 92vh;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.product-rotator__lightbox-image {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #111111;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.product-rotator__lightbox-caption {
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  max-width: 72ch;
}

.product-rotator__toggle:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-rotator:hover .product-rotator__toggle,
.product-rotator:focus-within .product-rotator__toggle,
.product-rotator--mobile .product-rotator__toggle {
  opacity: 1;
}

.product-rotator--no-motion .product-rotator__image {
  transition: none;
  transform: none;
}

.product-rotator--no-motion .product-rotator__toggle {
  opacity: 1;
}

@media (max-width: 1100px) {
  .product-rotator__layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  }

  .product-rotator__content {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .product-rotator__layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-rotator__media {
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }

  .product-rotator__content {
    padding: 22px;
  }

  .product-rotator__title {
    font-size: 24px;
  }

  .product-rotator__description {
    font-size: 15px;
  }
}

.product-rotator--mobile .product-rotator__layout {
  grid-template-columns: 1fr;
  gap: 14px;
}

.product-rotator--mobile .product-rotator__media {
  min-height: 220px;
  aspect-ratio: 16 / 9;
}

.product-rotator--mobile .product-rotator__content {
  padding: 22px;
}

.product-rotator--mobile .product-rotator__title {
  font-size: 24px;
}

.product-rotator--mobile .product-rotator__description {
  font-size: 15px;
}
