/* Article listing cards follow the main site's ranked product cards. */
#products {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
#products > .product {
  border-radius: 18px;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
@media (hover: hover) {
  #products > .product:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px #14200012;
  }
}
#products > .product .visual {
  aspect-ratio: 1;
}
#products > .product .visual img {
  object-fit: cover;
}
#products > .product > .info {
  flex: 1;
  padding: 13px;
  min-height: 196px;
  gap: 0;
}
#products > .product .article-card-title {
  margin: 0;
  height: 41px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}
#products > .product .shop {
  margin-top: 5px;
  font-size: 12px;
  line-height: inherit;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#products > .product .article-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
}
#products > .product .article-card-price-row .price {
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: inherit;
}
#products > .product .article-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}
#products > .product .article-card-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
#products > .product .article-card-rank {
  padding: 6px 10px;
  background: #B6F500;
  color: #142000;
  font-size: 11px;
}
#products > .product .article-card-official {
  padding: 6px 9px;
  border: 1px solid #e5fac3;
  background: #F4FCE3;
  color: #14532d;
  font-size: 10px;
}
#products > .product .article-card-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}
#products > .product .article-card-stock {
  height: 18px;
  margin-top: 4px;
  color: #14532d;
  font-size: 12px;
  font-weight: 500;
}
#products > .product .info > .cta {
  display: block;
  text-align: center;
  text-decoration: none;
  background: #ee4d2d;
  color: #fff;
  margin-top: 8px;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
#products > .product .info > .cta:hover {
  filter: brightness(.96);
}
@media (max-width: 980px) {
  #products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  #products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    /* Align the cards to the outer 12px gutters of the article wrapper. */
    margin-inline: -20px;
  }
  #products > .product { border-radius: 14px; }
  #products > .product > .info { min-height: 184px; padding: 10px; }
  #products > .product .article-card-title { font-size: 13px; }
  #products > .product .article-card-price-row { align-items: flex-start; }
  #products > .product .article-card-price-row .price { font-size: 18px; }
  #products > .product .article-card-stats { display: block; line-height: 1.5; white-space: normal; }
  #products > .product .article-card-stats span { display: block; }
  #products > .product .info > .cta { font-size: 12px; padding: 9px 6px; }
}
@media (max-width: 600px) {
  #products > .product .article-card-badges { gap: 5px; }
  #products > .product .article-card-badges span { padding: 6px 8px; font-size: 10px; }
}
