.hero-visual {
  display: grid;
  place-items: center;
  background: #f5f8f7;
}

.hero-visual > #homeFeaturedImage {
  object-fit: cover !important;
  object-position: center 42% !important;
  padding: 0;
  background: #f5f8f7;
  transition: opacity .18s ease;
}

.hero-visual > #homeFeaturedImage[hidden],
.hero-visual > .hero-product-fallback[hidden],
.hero-visual figcaption [hidden] {
  display: none !important;
}

.hero-product-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 12px;
  padding: clamp(24px, 5vw, 64px);
  overflow: hidden;
  color: #15262c;
  background:
    radial-gradient(circle at 82% 20%, #f2672217 0 18%, transparent 18.3%),
    linear-gradient(135deg, #f6f9f8, #edf3f1);
}

.hero-product-fallback::after {
  position: absolute;
  right: 8%;
  bottom: -24%;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid #dce5e2;
  border-radius: 50%;
  content: "";
}

.hero-product-fallback span {
  position: relative;
  z-index: 1;
  color: #f26722;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.hero-product-fallback strong {
  position: relative;
  z-index: 1;
  max-width: 520px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.hero-product-fallback p {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0;
  color: #66767d;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.5;
}

.hero-visual figcaption {
  left: 10px;
  right: 10px;
  bottom: 10px;
  gap: 9px;
  justify-content: space-between;
  border: 1px solid #e5ebe9;
  border-radius: 4px;
  box-shadow: 0 2px 8px #12262d12;
}

#homeFeaturedCaption {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#homeFeaturedLink {
  flex: 0 0 auto;
  color: #d95716;
  font-weight: 750;
  white-space: nowrap;
}

#homeFeaturedNext {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid #e3e9e7;
  border-radius: 50%;
  color: #26383e;
  background: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

#homeFeaturedNext:hover {
  border-color: #f26722;
  color: #d95716;
}

@media (max-width: 640px) {
  .hero-visual > #homeFeaturedImage {
    padding: 0;
  }

  .hero-visual figcaption {
    left: 7px;
    right: 7px;
    bottom: 7px;
    gap: 6px;
    padding: 6px 7px;
    font-size: 8px;
  }

  #homeFeaturedNext {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }

  .hero-product-fallback {
    gap: 9px;
    padding: 22px;
  }

  .hero-product-fallback span {
    font-size: 9px;
  }

  .hero-product-fallback strong {
    max-width: 330px;
    font-size: clamp(25px, 7vw, 34px);
  }

  .hero-product-fallback p {
    max-width: 290px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .hero-visual figcaption {
    gap: 4px;
    font-size: 7px;
  }

  #homeFeaturedLink {
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* Preloaded product-image crossfade; the first image remains the layout-sized element. */
.hero-visual { isolation: isolate; }
.hero-visual > #homeFeaturedImage { position: relative; z-index: 0; }
.hero-visual > #homeFeaturedImageNext {
  position: absolute !important;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover !important;
  object-position: center 42% !important;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.hero-visual > #homeFeaturedImageNext[hidden] { display: none !important; }
.hero-visual > #homeFeaturedImageNext.is-active { opacity: 1; }
.hero-visual .hero-product-fallback { z-index: 3; }
.hero-visual figcaption { z-index: 4; }
#homeFeaturedNext.is-loading { animation: home-featured-spin .75s linear infinite; }
@keyframes home-featured-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero-visual > #homeFeaturedImageNext { transition: none; }
  #homeFeaturedNext.is-loading { animation: none; }
}
