
/* Sprint 35: concise, evidence-led affiliate listings. */
.product-shelf .product-grid,.finder-products .product-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:18px}
.product-shelf-head{align-items:flex-start}
.product-shelf-head h2{max-width:24ch}
.product-card .product-body{gap:9px;min-width:0}
.product-card .product-body h3{overflow-wrap:anywhere;line-height:1.32;margin:0 0 4px}
.product-card .product-source{min-height:0;font-size:.69rem;letter-spacing:.06em}
.product-card .product-meta{margin-top:auto;padding-top:11px}
.product-card .product-meta span{font-size:.71rem}
.product-card .product-body .button{width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;margin-top:6px;line-height:1.3}
.product-keyfacts{list-style:none;padding:0!important;margin:2px 0 10px!important;display:flex;gap:6px;flex-wrap:wrap}
.product-keyfacts li{background:#312730;border:1px solid #5c4552;border-radius:7px;color:#ead7dd;font-size:.72rem;line-height:1.35;padding:5px 8px}
.product-quality-note{font-size:.77rem;color:#aa9ba4;line-height:1.55;margin:16px 0 0;max-width:76ch}
.product-empty a{text-decoration:underline;text-underline-offset:3px}
.product-compare-table table{min-width:720px}
.product-compare-table td:nth-child(1){width:auto;color:inherit}
.product-compare-table td:nth-child(2){min-width:200px}
.product-compare-table td:nth-child(3){min-width:125px}
@media(max-width:760px){.product-keyfacts li{font-size:.71rem}.product-shelf .product-grid,.finder-products .product-grid{gap:12px}}

/* Sprint 39: product comparison uses image-backed cards instead of a
   narrow, image-free data table. Restore visible cards on all breakpoints. */
.product-compare--cards .product-compare-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;
  overflow:visible;padding:0;scroll-snap-type:none;
}
.product-compare--cards .product-card{min-width:0}
.product-compare--cards .product-card .product-image{background:#fff}
.product-compare--cards .product-card img{object-fit:contain}
@media(max-width:980px){
  .product-compare--cards .product-compare-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .product-compare--cards .product-compare-grid{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    overflow:visible!important;scroll-snap-type:none!important;padding:0!important;
  }
  .product-compare--cards .product-compare-grid .product-card{flex:auto;max-width:none}
}


/* Sprint 47 – affiliate-card readability and commercial clarity.
 * Loaded after the original site styles, without changing the selection engine.
 * This overrides the article prose link colour ONLY within card CTAs.
 */
.product-shelf .product-card,.product-compare .product-card,.finder-products .product-card{
  border:1px solid #51434c;
  border-radius:18px;
  background:#1d1921;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
  transition:border-color .18s ease,transform .18s ease;
}
.product-shelf .product-card:hover,.product-compare .product-card:hover,.finder-products .product-card:hover{
  border-color:#998078;
  transform:translateY(-2px);
}
.product-shelf .product-image,.product-compare .product-image,.finder-products .product-image{
  position:relative;
  aspect-ratio:1.28/1;
  padding:12px;
  background:#faf8f6;
  overflow:hidden;
}
.product-shelf .product-image img,.product-compare .product-image img,.finder-products .product-image img{
  width:100%;height:100%;object-fit:contain;
  background:transparent;
  border-radius:5px;
}
.product-photo-note{
  position:absolute;
  bottom:9px;left:9px;
  padding:4px 8px;
  background:rgba(24,20,25,.88);
  border:1px solid rgba(255,255,255,.35);
  border-radius:6px;
  color:#fff;
  font-size:.68rem;
  font-weight:650;
  letter-spacing:0;
}
.product-shelf .product-body,.product-compare .product-body,.finder-products .product-body{
  gap:10px;
  padding:19px 19px 20px;
}
.product-card .product-source{
  color:#e9c6b1;
  font-weight:700;
  text-transform:uppercase;
  font-size:.71rem;
  letter-spacing:.045em;
}
.product-card .product-body h3{
  color:#ffe5ee;
  font-size:1.06rem;
  font-weight:750;
  line-height:1.34;
  text-wrap:pretty;
  margin:0;
}
.product-card .product-keyfacts{
  margin:0 0 4px!important;
}
.product-card .product-keyfacts li{
  padding:6px 9px;
  font-size:.74rem;
  color:#f5e5e7;
  border:1px solid #725967;
  background:#352932;
}
.product-card .product-meta{
  gap:3px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.1);
}
.product-card .product-merchant{
  color:#cfb8bd;
  font-size:.76rem;
  font-weight:650;
  margin-bottom:4px;
}
.product-card .product-meta strong{
  font-size:1.35rem;
  font-weight:850;
  color:#fff;
  letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;
}
.product-card .product-meta span:not(.product-merchant){
  color:#c9b8bd;
  font-size:.76rem;
  line-height:1.35;
}
/* High specificity prevents prose link rules from tinting the CTA pink. */
.prose .product-card a.product-shop-cta,
.product-card a.product-shop-cta,
.prose .product-card a.product-shop-cta:visited,
.product-card a.product-shop-cta:visited{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
  min-height:52px;
  padding:10px 15px;
  border:2px solid #e8cbb7;
  border-radius:999px;
  background:#e8cbb7;
  color:#20191d!important;
  text-decoration:none!important;
  font-size:.92rem;
  font-weight:850;
  line-height:1.3;
  text-align:center;
  cursor:pointer;
}
.prose .product-card a.product-shop-cta:hover,
.product-card a.product-shop-cta:hover{
  background:#ffdfc8;
  border-color:#ffdfc8;
  color:#1e171c!important;
}
.prose .product-card a.product-shop-cta:focus-visible,
.product-card a.product-shop-cta:focus-visible{
  outline:3px solid #fff;
  outline-offset:4px;
}
.product-card .product-shop-arrow{font-size:1.15em;line-height:1;flex-shrink:0}
.product-shelf .product-quality-note,.product-compare .product-quality-note,
.finder-products .product-quality-note{
  color:#d5c1c7;
  font-size:.83rem;
  line-height:1.65;
}
.product-quality-note a{
  color:#f0c6ad;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}
@media(max-width:650px){
  .product-shelf .product-image,.product-compare .product-image,.finder-products .product-image{aspect-ratio:1.42/1}
  .product-shelf .product-body,.product-compare .product-body,.finder-products .product-body{padding:16px}
  .product-card .product-body h3{font-size:1.04rem}
}
@media(prefers-reduced-motion:reduce){
  .product-shelf .product-card,.product-compare .product-card,.finder-products .product-card{transition:none}
  .product-shelf .product-card:hover,.product-compare .product-card:hover,.finder-products .product-card:hover{transform:none}
}


/* Sprint 48 – finishing pass for affiliate cards.
 * Loaded last: guarantees full source images fit the frame, independently of
 * older aspect-ratio/grid sizing across editorial routes.
 */
.product-shelf .product-card,
.product-compare .product-card,
.finder-products .product-card {
  min-width:0;
}
.product-shelf .product-card .product-image,
.product-compare .product-card .product-image,
.finder-products .product-card .product-image {
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:100%;
  height:clamp(220px,22vw,270px);
  aspect-ratio:auto;
  min-height:0;
  padding:16px;
  overflow:hidden;
  background:#faf8f6;
}
.product-shelf .product-card .product-image img,
.product-compare .product-card .product-image img,
.finder-products .product-card .product-image img {
  display:block;
  flex:0 0 100%;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  min-width:0;
  min-height:0;
  object-fit:contain;
  object-position:center;
  border-radius:5px;
  background:transparent;
}
.product-shelf .product-card .product-body,
.product-compare .product-card .product-body,
.finder-products .product-card .product-body {
  padding:16px 17px 18px;
  gap:7px;
}
.product-card .product-body h3 {
  margin:0;
  font-size:1.025rem;
  line-height:1.33;
  overflow-wrap:break-word;
  hyphens:auto;
}
.product-card .product-keyfacts {
  margin:1px 0 0!important;
  gap:6px;
}
.product-card .product-keyfacts li {
  font-size:.72rem;
  line-height:1.35;
  padding:6px 8px;
}
.product-card .product-meta {
  margin-top:auto;
  padding-top:12px;
  gap:3px;
}
.product-card .product-meta strong {font-size:1.3rem}
.product-card .product-merchant {margin-bottom:2px}
/* Same 2-word CTA on all cards. Accessible link label names the merchant. */
.prose .product-card a.product-shop-cta,
.product-card a.product-shop-cta,
.prose .product-card a.product-shop-cta:visited,
.product-card a.product-shop-cta:visited {
  min-height:49px;
  padding:9px 14px;
  font-size:.91rem;
  line-height:1.15;
  white-space:nowrap;
  gap:9px;
}
.product-card .product-shop-cta>span:first-child {white-space:nowrap}
.product-card .product-shop-arrow {flex-shrink:0}
@media (max-width:980px) {
  .product-shelf .product-card .product-image,
  .product-compare .product-card .product-image,
  .finder-products .product-card .product-image {
    height:clamp(215px,31vw,275px);
  }
}
@media (max-width:650px) {
  .product-shelf .product-card .product-image,
  .product-compare .product-card .product-image,
  .finder-products .product-card .product-image {
    height:clamp(205px,65vw,270px);
    padding:15px;
  }
  .product-card .product-body h3 {font-size:1.02rem}
  .product-shelf .product-card .product-body,
  .product-compare .product-card .product-body,
  .finder-products .product-card .product-body {padding:15px 16px 17px}
  .prose .product-card a.product-shop-cta,
  .product-card a.product-shop-cta {font-size:.89rem}
}


/* Sprint 49: typography and evidence-led copy ONLY.
 * Preserve all images, cards, CTA visuals, destinations and responsive layout.
 */
.product-shelf .product-card .product-body h3,
.product-compare .product-card .product-body h3,
.finder-products .product-card .product-body h3 {
  -webkit-hyphens:none;
  hyphens:none;
  word-break:normal;
  overflow-wrap:break-word;
  text-wrap:pretty;
  line-height:1.38;
}
.product-shelf .product-card .product-detail-check,
.product-compare .product-card .product-detail-check,
.finder-products .product-card .product-detail-check {
  margin:3px 0 5px;
  padding:0;
  min-height:0;
  color:#d7c3c8;
  font-size:.75rem;
  line-height:1.48;
  font-weight:450;
  max-width:100%;
}
.product-shelf .product-card .product-keyfacts,
.product-compare .product-card .product-keyfacts,
.finder-products .product-card .product-keyfacts {
  margin:2px 0 0!important;
  gap:6px;
}
.product-shelf .product-card .product-keyfacts li,
.product-compare .product-card .product-keyfacts li,
.finder-products .product-card .product-keyfacts li {
  line-height:1.4;
  overflow-wrap:break-word;
  hyphens:none;
}
@media (max-width:650px) {
  .product-shelf .product-card .product-body h3,
  .product-compare .product-card .product-body h3,
  .finder-products .product-card .product-body h3 {
    font-size:1.04rem;
    line-height:1.4;
  }
}

