/* Ready-stock category cards use alternate images from the matching product families. */
.stock-panel {
  padding: 24px;
}

.stock-product-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.stock-product-card {
  aspect-ratio: 4 / 3;
  color: #fff;
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.stock-product-card::after {
  background: linear-gradient(180deg, transparent 35%, rgba(18, 29, 24, 0.82));
  content: "";
  inset: 0;
  position: absolute;
}

.stock-product-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 400ms ease;
  width: 100%;
}

.stock-product-card span {
  bottom: 12px;
  font: 600 14px / 1.2 var(--sans);
  left: 13px;
  position: absolute;
  right: 13px;
  z-index: 1;
}

@media (hover: hover) {
  .stock-product-card:hover img { transform: scale(1.025); }
}

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

@media (max-width: 540px) {
  .stock-panel { padding: 18px; }
  .stock-product-grid { gap: 8px; }
  .stock-product-card span { font-size: 12px; left: 10px; right: 10px; }
}
