.product-photo {
  display: grid;
  place-items: center;
  isolation: isolate;
  background: linear-gradient(145deg, #eef8f5, #d9efe8);
}

.hero-product-showcase {
  position: relative;
  display: block;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.96), transparent 36%),
    linear-gradient(145deg, #dff4ed 0%, #bcebdc 56%, #91d7c5 100%);
  border: 1px solid rgba(21, 35, 31, 0.12);
  border-radius: 34px;
  overflow: hidden;
}

.hero-product-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.hero-product {
  --hero-tilt: 0deg;
  position: absolute;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(21, 35, 31, 0.12);
  border-radius: 24px;
  background: rgba(251, 248, 241, 0.94);
  box-shadow: 0 22px 55px rgba(21, 35, 31, 0.18);
  overflow: hidden;
  cursor: pointer;
  transform: rotate(var(--hero-tilt));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hero-product:hover,
.hero-product:focus-visible {
  z-index: 7;
  border-color: rgba(255, 104, 71, 0.9);
  box-shadow: 0 28px 64px rgba(21, 35, 31, 0.24);
  outline: none;
  transform: translateY(-7px) rotate(var(--hero-tilt));
}

.hero-product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-product-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(251, 248, 241, 0.92);
  box-shadow: 0 8px 22px rgba(21, 35, 31, 0.12);
  backdrop-filter: blur(10px);
}

.hero-product-caption b {
  font: 600 13px var(--sans);
}

.hero-product-caption span {
  color: var(--orange);
  font-size: 9px;
  font-weight: 700;
}

.hero-product-main {
  --hero-tilt: -2.5deg;
  z-index: 2;
  left: 5%;
  top: 6%;
  width: 56%;
  height: 78%;
}

.hero-product-charm {
  --hero-tilt: 3deg;
  z-index: 3;
  right: 4%;
  top: 8%;
  width: 38%;
  height: 43%;
}

.hero-product-magnet {
  --hero-tilt: -3deg;
  z-index: 4;
  right: 7%;
  bottom: 5%;
  width: 40%;
  height: 40%;
}

.hero-photo-note {
  position: absolute;
  z-index: 5;
  left: 28px;
  bottom: 22px;
  margin: 0;
  max-width: 210px;
  color: #17332a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 25% 16%, rgba(255, 255, 255, 0.9), transparent 38%),
    linear-gradient(145deg, transparent 55%, rgba(21, 35, 31, 0.06));
}

.product-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(21, 35, 31, 0.18));
}

.product-photo .photo-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 6;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(251, 248, 241, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(21, 35, 31, 0.1);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.standee-photo {
  background: linear-gradient(145deg, #e6f6f1, #bcebdc);
}

.standee-photo img {
  max-height: 92%;
}

.pin-photo {
  background: linear-gradient(145deg, #f3eafb, #dec5f4);
}

.charm-photo {
  background: linear-gradient(145deg, #fff0d7, #ffdca0);
}

.magnet-photo {
  background: linear-gradient(145deg, #fff2e9, #ffc8ad);
}

.pin-photo .photo-primary {
  position: absolute;
  left: 8%;
  top: 9%;
  z-index: 2;
  width: 57%;
  height: 68%;
  object-fit: contain;
}

.pin-photo .photo-secondary {
  position: absolute;
  right: 4%;
  bottom: 10%;
  z-index: 1;
  width: 47%;
  height: 54%;
  object-fit: contain;
}

.sample-photo {
  min-height: 330px;
  background: linear-gradient(145deg, #f5f1e7, #ddd6c8);
}

.sample-photo img {
  position: absolute;
  width: 44%;
  height: 55%;
  object-fit: contain;
}

.sample-photo .sample-a {
  left: 4%;
  top: 6%;
  z-index: 3;
}

.sample-photo .sample-b {
  right: 5%;
  top: 8%;
  z-index: 2;
}

.sample-photo .sample-c {
  left: 29%;
  bottom: 2%;
  z-index: 4;
}

.finish-photo {
  position: relative;
  height: 150px;
  margin: -8px -2px 24px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f6f2ea;
  overflow: hidden;
}

.finish-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.finish-photo figcaption {
  position: absolute;
  left: 9px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(21, 35, 31, 0.86);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.03em;
}

.custom-options article {
  align-content: start;
}

.hero-viewed {
  outline: 4px solid var(--orange);
  outline-offset: 5px;
  animation: hero-view-pulse 1.2s ease 1;
}

@keyframes hero-view-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 104, 71, 0); }
  45% { box-shadow: 0 0 0 12px rgba(255, 104, 71, 0.24); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-product {
    transition: none;
  }

  .hero-viewed {
    animation: none;
  }
}

@media (max-width: 950px) {
  nav.library-jump {
    position: static;
    inset: auto;
    display: grid;
    padding: 0;
    flex-direction: initial;
    align-items: stretch;
    border: 0;
    background: transparent;
  }
}

@media (max-width: 620px) {
  .hero-product-showcase {
    min-height: 470px;
    border-radius: 26px;
  }

  .hero-product-main {
    left: 4%;
    top: 5%;
    width: 61%;
    height: 69%;
  }

  .hero-product-charm {
    right: 3%;
    top: 7%;
    width: 39%;
    height: 38%;
  }

  .hero-product-magnet {
    right: 4%;
    bottom: 7%;
    width: 44%;
    height: 38%;
  }

  .hero-photo-note {
    left: 20px;
    bottom: 20px;
    max-width: 180px;
    font-size: 9px;
  }

  .product-photo .photo-label {
    left: 14px;
    bottom: 12px;
    max-width: calc(100% - 28px);
  }
}
