/* Shop by need. Card chrome matches the health-check card using existing tokens. */

body.is-shop-collection .hero-kicker,
body.is-shop-collection .quick-chips,
body.is-shop-collection .hero-advanced,
body.is-shop-collection .disclaimer-inline,
body.is-shop-collection #medicinesTopPromos,
body.is-shop-collection #medicinesEtaChip,
body.is-shop-collection #serviceAddressBanner,
body.is-shop-collection #pincodeHint,
body.is-shop-collection #locationHint,
body.is-shop-collection #locationDetail {
  display: none;
}

body.is-shop-collection #shopNeedCollection {
  margin-top: 16px;
}

.shop-need-grid,
.shop-need-tiles {
  display: grid;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 8px;
}

.shop-need-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-need-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-need-tile {
  min-height: 44px;
  text-decoration: none;
  color: inherit;
}

.shop-need-tile:focus-visible,
.shop-need-card__cta:focus-visible,
.shop-need-also a:focus-visible,
.shop-need-empty a:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 3px;
}

.shop-need-art,
.shop-need-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--cta-soft);
  color: var(--accent);
}

.shop-need-art {
  height: 140px;
}

.shop-need-photo {
  height: 140px;
  padding: 8px;
}

.shop-need-art img,
.shop-need-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.shop-need-art img {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.shop-need-photo img {
  object-fit: contain;
}

.shop-need-tile__title,
.shop-need-card h3,
.shop-need__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.shop-need-tile__sub,
.shop-need__sub,
.shop-need__note,
.shop-need-card__pack {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.shop-need__title::after {
  content: "";
  display: block;
  height: 3px;
  width: 72px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cta), transparent);
}

.shop-need-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border: 1px solid var(--border);
  border-bottom: 4px solid rgb(var(--accent-rgb) / 0.28);
  border-radius: 16px;
  transform: translateY(-6px);
  box-shadow:
    0 2px 0 var(--surface) inset,
    0 4px 6px rgb(var(--accent-rgb) / 0.10),
    0 14px 28px rgb(var(--accent-rgb) / 0.18),
    0 28px 48px rgb(var(--accent-rgb) / 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.shop-need-card:hover {
  transform: translateY(-8px);
}

.shop-need-card__price {
  margin: 0;
  font-weight: 800;
  color: var(--chart-text, var(--cta-text));
}

.shop-need-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cta);
  color: var(--on-cta);
  font-weight: 800;
  text-decoration: none;
}

.shop-need-also {
  margin: 18px 0 0;
}

.shop-need-also a,
.shop-need-empty a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 1023px) {
  .shop-need-grid,
  .shop-need-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .shop-need-tiles {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .shop-need-tile {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .shop-need-photo {
    height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-need-card {
    transition: none;
  }

  .shop-need-card:hover {
    transform: translateY(-6px);
  }
}
