/* Shared medication grids, cards and artwork. */
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
}
.product-card {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-image-link {
  display: block;
  background: var(--mist);
}
.product-art {
  background: var(--mist);
  height: 230px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px;
  overflow: hidden;
}
.product-art img {
  max-height: 195px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
}
.product-card[data-category='sexual-health'] .product-art {
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 0;
}

.product-card[data-category='sexual-health'] .product-art img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.product-art img[src*='ozempic'],
.product-art img[src*='wegovy'],
.product-art img[src*='mounjaro'],
.product-art img[src*='zepbound'] {
  transform: rotate(18deg);
}
.product-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card .eyebrow {
  margin-bottom: 0.55rem;
  font-size: 0.65rem;
}
.product-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}
.product-card h3 a:hover {
  color: var(--blue);
}
.product-card .product-card-body > p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}
.card-price {
  padding: 1.15rem 0;
  margin-top: auto;
}
.card-price > span {
  display: block;
  font-size: 0.85rem;
}
.card-price strong {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.card-price small {
  display: block;
  font-size: 0.72rem;
  line-height: 1.65;
  margin-top: 0.4rem;
  color: var(--muted);
}

.pen-illustration {
  position: relative;
  width: 40px;
  height: 220px;
  border-radius: 11px 11px 16px 16px;
  background: #f8fafc;
  border: 1px solid #b5c4d3;
  box-shadow:
    inset -8px 0 0 #dae1ea,
    9px 10px 18px #17384d14;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(18deg);
}
.pen-illustration:before {
  position: absolute;
  content: '';
  left: -1px;
  right: -1px;
  top: 55px;
  border-top: 5px solid #8eaed9;
}
.pen-illustration:after {
  position: absolute;
  content: '';
  left: 3px;
  right: 3px;
  bottom: 7px;
  height: 34px;
  border-radius: 2px 2px 11px 11px;
  background: repeating-linear-gradient(90deg, #e1e7f0 0 2px, #c4cfdf 2px 3px);
}
.pen-illustration span {
  position: absolute;
  top: 10px;
  width: 8px;
  height: 25px;
  background: #c9d1dc;
  border-radius: 4px;
}
.pen-illustration i {
  font-size: 7px;
  letter-spacing: 0.05em;
  font-style: normal;
  writing-mode: vertical-rl;
  position: absolute;
  top: 75px;
}
.pen-illustration b {
  font-size: 9px;
  font-weight: 500;
  position: absolute;
  bottom: 52px;
  border: 1px solid #98b2d3;
  border-radius: 3px;
  padding: 1px;
}
.neutral-art > small {
  position: absolute;
  bottom: 11px;
  left: 15px;
  font-size: 0.62rem;
  color: var(--muted);
}
.tablet-illustration {
  display: flex;
  gap: 12px;
  transform: rotate(-20deg);
}
.tablet-illustration span {
  display: block;
  width: 100px;
  height: 65px;
  background: #b2c6e4;
  border-radius: 50%;
  box-shadow: inset -8px -10px 0 #91acd2;
}
.tablet-illustration span + span {
  background: #cfbb91;
  box-shadow: inset -8px -10px 0 #bea877;
  transform: translateY(25px);
}
.product-art-large {
  height: clamp(12rem, 53vw, 20rem);
  padding: 0;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 48% 36%, #f5f8fc, #deebf8 82%);
}
.product-art-large img {
  max-height: 85%;
  max-width: 90%;
}
.treatment-page--sexual-health .product-art-large img {
  width: min(100%, 30rem);
  max-height: none;
  height: 100%;
  object-fit: contain;
  transform: scale(1.25);
}
.product-art-large .pen-illustration {
  height: 270px;
  width: 48px;
}
.product-art-large .pen-illustration:before {
  top: 70px;
}
.product-art-large .pen-illustration i {
  font-size: 9px;
  top: 100px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .product-art-large {
    height: clamp(20rem, 38vw, 33rem);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-card-body {
    padding: 1.7rem;
  }
  .product-art-large .pen-illustration {
    height: 300px;
  }
}
.product-art.actual-generic-pen img {
  width: 245px;
  height: 245px;
  max-height: none;
  max-width: none;
  transform: rotate(155deg);
}
.product-art-large.actual-generic-pen img {
  width: 360px;
  height: 360px;
}

.product-art-large.actual-generic-pen img {
  max-width: 100%;
}

@media (width < 640px) {
  .product-art-large.actual-generic-pen img {
    width: 184px;
    height: 184px;
  }

  .product-art-large .pen-illustration {
    max-height: 166px;
  }
}

.product-card .button-compact {
  margin-top: 0.5rem;
  justify-content: center;
  text-align: center;
}

.product-card .product-card-body a:focus-visible,
.product-card > a:focus-visible {
  outline: 3px solid #799ed2;
  outline-offset: 4px;
}
