/* Accessible, dependency-free gallery for the verified featured product. */

.pc-home-featured-product {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 10px 0 46px;
}

.pc-home-featured-product__card {
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  gap: clamp(36px, 6vw, 72px);
}

.pc-featured-slider {
  width: min(100%, 410px);
  min-width: 0;
}

.pc-featured-slider__viewport {
  overflow: hidden;
  aspect-ratio: 1;
  background: transparent;
}

.pc-featured-slider__track {
  display: flex;
  height: 100%;
  transition: transform .65s cubic-bezier(.22, .68, .28, 1);
  will-change: transform;
}

.pc-featured-slider__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.pc-featured-slider__slide > a,
.pc-featured-slider__slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.pc-featured-slider__slide img {
  object-fit: contain;
}

.pc-featured-slider__controls {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 8px;
}

.pc-featured-slider.is-ready .pc-featured-slider__controls {
  display: flex;
}

.pc-featured-slider__button {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  color: var(--pc-ink);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

.pc-featured-slider__button:hover,
.pc-featured-slider__button:focus-visible {
  color: var(--pc-coral-dark);
}

.pc-featured-slider__button:focus-visible {
  outline: 2px solid var(--pc-coral-dark);
  outline-offset: 2px;
}

.pc-featured-slider__count {
  min-width: 48px;
  color: var(--pc-muted);
  font-size: .72rem;
  font-weight: 750;
  text-align: center;
}

.pc-home-featured-product h2 {
  max-width: min(100%, 390px);
  font-size: clamp(1.55rem, 2.7vw, 2.05rem);
  line-height: 1.26;
}

.pc-home-featured-product__title-wave {
  display: inline;
}

.pc-home-featured-product__title-wave > span {
  display: inline-block;
  margin-right: .24em;
  animation: pc-featured-title-wave 5.2s ease-in-out infinite;
  animation-delay: calc(var(--pc-wave-index) * 90ms);
}

.pc-home-featured-product__title-wave > span:last-child {
  margin-right: 0;
}

.pc-home-featured-product__detail {
  position: absolute;
  z-index: 0;
  color: var(--pc-coral);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: .52;
  pointer-events: none;
}

.pc-home-featured-product__detail--heart {
  top: 12%;
  left: max(18px, calc(50% - 560px));
  font-size: 1.35rem;
  transform: rotate(-12deg);
}

.pc-home-featured-product__detail--star {
  right: max(20px, calc(50% - 570px));
  bottom: 17%;
  color: var(--pc-yellow);
  font-size: 1.2rem;
  transform: rotate(10deg);
}

@keyframes pc-featured-title-wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}

@media (max-width: 680px) {
  .pc-home-featured-product__card {
    grid-template-columns: 1fr;
  }

  .pc-featured-slider {
    width: min(100%, 390px);
  }

  .pc-home-featured-product h2 {
    font-size: clamp(1.55rem, 7.1vw, 1.78rem);
  }

  .pc-home-featured-product__copy {
    padding-top: 10px;
  }
}

@media (max-width: 520px) {
  .pc-home-featured-product__detail {
    opacity: .38;
  }

  .pc-home-featured-product__detail--heart {
    top: 5%;
    left: 14px;
  }

  .pc-home-featured-product__detail--star {
    right: 14px;
    bottom: 10%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-featured-slider__track {
    transition: none;
  }

  .pc-home-featured-product__title-wave > span {
    animation: none;
  }
}
