/* Sold Out overlay — Design LOCKED 2026-10-27 (Pack B storefront) */
.sold-out-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.sold-out-overlay--stamp {
  left: 50%;
  top: 50%;
  width: min(72%, 11rem);
  height: auto;
  transform: translate(-50%, -50%) rotate(-18deg);
}
.sold-out-overlay--ribbon {
  top: 0.35rem;
  right: 0.35rem;
  left: auto;
  width: min(38%, 4.5rem);
  height: auto;
  transform: none;
}
.product-photo.is-sold-out,
.product-hero-photo .product-photo.is-sold-out {
  position: relative;
}
.product-card.is-sold-out .product-still,
.feat-card.is-sold-out .product-still {
  opacity: 0.92;
}
/* Text-only cards: corner ribbon on the card shell */
.product-card.is-sold-out.is-text,
.feat-card.is-sold-out.is-text {
  position: relative;
}
.product-card.is-sold-out.is-text > .sold-out-overlay--ribbon,
.feat-card.is-sold-out.is-text > .sold-out-overlay--ribbon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 3.25rem;
  z-index: 3;
}
.live-row .sold-out-overlay--ribbon {
  top: 2px;
  right: 2px;
  width: 1.35rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* PDP Pack — no-photo hero stamp + variant rows */
.pdp-sold-out-panel {
  display: grid;
  place-items: center;
  min-height: 12rem;
  aspect-ratio: 1 / 1;
  background: color-mix(in srgb, var(--page-bg, #f5f0e6) 88%, #fff);
}
.pdp-sold-out-panel .pdp-sold-out-stamp {
  position: relative;
  left: auto;
  top: auto;
  width: min(72%, 11rem);
  transform: rotate(-18deg);
}
.product-hero-sold-out {
  display: flex;
  align-items: center;
  justify-content: center;
}
.variant-row {
  position: relative;
}
.variant-row.is-sold-out .sold-out-overlay--ribbon {
  top: 0.35rem;
  right: 0.15rem;
  width: 2.75rem;
}

/* run05c Sold Out stamp standard (Kris 2026-10-31): text-only cards and variant rows use the same red round stamp as a small PNG. Stamp look unchanged, no added transparency. */
.sold-out-overlay--stamp-mini {
  top: 0.35rem;
  right: 0.35rem;
  left: auto;
  width: 3.5rem;
  height: auto;
  transform: rotate(-18deg);
}
.sold-out-overlay--stamp-mini img,
img.sold-out-overlay--stamp-mini {
  display: block;
  width: 100%;
  height: auto;
}
.sold-out-overlay--stamp-mini > img { width: 100%; }
.product-card.is-sold-out.is-text > .sold-out-overlay--stamp-mini,
.feat-card.is-sold-out.is-text > .sold-out-overlay--stamp-mini {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 3.75rem;
  z-index: 3;
}
.variant-row.is-sold-out .sold-out-overlay--stamp-mini {
  top: 50%;
  right: 0.25rem;
  width: 2.5rem;
  transform: translateY(-50%) rotate(-18deg);
}

/* 2026-11-07: product-card img { background:#fff } was filling the Sold Out stamp with a white square. Keep the official transparent stamp see-through. */
.product-card .sold-out-overlay img,
.feat-card .sold-out-overlay img,
.product-hero-photo .sold-out-overlay img,
.pdp-sold-out-panel img,
.variant-row .sold-out-overlay img,
img.sold-out-overlay,
.sold-out-overlay img,
.ladder-sold {
  background: transparent;
  object-fit: contain;
}
