.scalp-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: .8rem;
  margin-block: 1rem;
}
.scalp-product {
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 1rem;
  min-width: 0;
  margin: 0;
  padding: 1rem .5rem;
  border: 1px solid #cbb076;
  border-radius: .8rem;
  background: radial-gradient(ellipse at top, #fffdf7, #eee5d1);
  color: #241e15;
  text-align: center;
}
.scalp-product figcaption span,
.scalp-product figcaption strong {
  display: block;
}
.scalp-pack {
  position: relative;
  width: 100%;
  max-width: 14rem;
  aspect-ratio: 3 / 4;
  border-radius: .45rem;
  background: #f7ecdf url("/assets/ignyterx-skin-scalp-packshots.png") left center / 200% 100% no-repeat;
  container-type: inline-size;
}
.scalp-pack--bottle {
  background-position: right center;
}
.scalp-pack-label {
  position: absolute;
  left: 52.5%;
  top: 46%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: .18rem;
  width: 30%;
  color: #fff1d6;
  text-align: center;
  font-size: 5.8cqi;
  font-weight: 650;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.scalp-pack--bottle .scalp-pack-label {
  left: 46%;
  top: 56%;
  width: 33%;
}
.scalp-pack-label img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
.scalp-product-detail {
  max-width: 54rem;
  padding-block: 1rem;
  border-bottom: 1px solid #cbb076;
}
.scalp-pack--vial,
.scalp-pack--blister {
  background-image: url("/assets/ignyterx-sexual-health-packshots.png");
}
.scalp-pack--vial .scalp-pack-label {
  top: 60%;
}
.scalp-pack--blister {
  background-position: right center;
}
.scalp-pack--blister .scalp-pack-label {
  left: 38.5%;
  top: 51%;
  width: 34%;
}

.scalp-product-link {
  display: grid;
  min-width: 0;
  border-radius: .8rem;
  color: inherit;
  text-decoration: none;
}
.scalp-product-link:hover figcaption strong {
  text-decoration: underline;
}
.scalp-product-link:focus-visible {
  outline: 2px solid #e3be78;
  outline-offset: 4px;
}

.skin-scalp-individual-products {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.scalp-pack-name-stacked {
  display: grid;
  justify-items: center;
  gap: .08em;
  font-size: 4.2cqi;
  line-height: 1.15;
  white-space: nowrap;
}

.scalp-pack--trimix {
  display: grid;
  place-items: center;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 38%, #faf0e6, #eadbc9);
}
.scalp-pack--trimix::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 26% 9% 26%;
  height: 5%;
  border-radius: 50%;
  background: #34251669;
  filter: blur(7px);
}
.trimix-vial {
  position: relative;
  width: 70%;
  container-type: inline-size;
}
.trimix-vial > img {
  display: block;
  width: 100%;
  height: auto;
}
.trimix-vial .scalp-pack-label {
  left: 50%;
  top: 63%;
  width: 48%;
}
.trimix-vial .scalp-pack-name-stacked {
  font-size: 6cqi;
}

@media (prefers-reduced-motion: no-preference) {
  .trimix-vial {
    animation: foam-pump-float var(--sexual-health-float-duration, 5.5s) ease-in-out infinite;
  }
  .scalp-pack--trimix::before {
    animation: foam-pump-shadow var(--sexual-health-float-duration, 5.5s) ease-in-out infinite;
  }
}
