/* Discovery geometry only. Product/quick-view size controls remain untouched.
   Fixed grid tracks reserve absent metadata/prices without invented price text.
   The existing rails, responsive widths and photography remain the owners. */
.product-card,
.l-card {
  --card-title-slot: 52px;
  --card-price-slot: 32px;
  display: block;
  align-self: start;
  min-height: 0;
  min-width: 0;
}
.l-card { --card-price-slot: 56px; }
.product-card .product-info,
.l-card .l-card-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 16px var(--card-title-slot) var(--card-price-slot) 44px;
  gap: 6px;
  align-content: start;
  min-width: 0;
}
.product-card .product-meta,
.l-card .l-card-meta,
.search-result .result-info > .meta {
  display: block;
  min-width: 0;
  margin: 0;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card .product-info h3,
.l-card .l-card-info h2 {
  min-width: 0;
  margin: 0;
  line-height: 1.3;
  align-self: start;
}
.product-card .product-info h3 { font-size: 19px; }
.product-card .product-info h3 a,
.l-card .l-card-info h2 a,
.search-result .result-info > strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-height: 2.6em;
  line-height: 1.3;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.product-card .product-price-line,
.l-card .l-prices {
  grid-row: 3;
  align-self: start;
  min-width: 0;
  margin: 0;
}
.product-card .product-price-line,
.product-card .price-row { flex-wrap: nowrap; }
.l-card .l-prices { gap: 3px 7px; }
.product-card .product-actions,
.l-card .l-card-actions {
  grid-row: 4;
  align-self: start;
  margin: 0;
  min-width: 0;
  height: 44px;
}
.product-card .product-actions > a,
.l-card .l-card-actions > a {
  height: 44px;
  min-height: 44px;
  min-width: 0;
}
/* A one-model shelf is still a browsing tile, never a split stretched banner. */
.single-model .product-card { display: block; min-height: 0; }
.single-model .product-card .product-photo {
  height: auto;
  aspect-ratio: 1.6;
  border-radius: 11px 11px 0 0;
}
.single-model .product-card .product-info { padding: 13px 14px 14px; }
/* Search is a compact row, with the same reserved price space when unpriced. */
.search-result { min-width: 0; }
.search-result .result-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 42px 16px 30px;
  gap: 4px;
  min-width: 0;
}
.search-result .result-info > strong { align-self: start; }
.search-result .result-info > .price-row { grid-row: 3; margin: 0; }
.search-result > .icon { flex-shrink: 0; }
@media (max-width: 759px) {
  .l-card { --card-title-slot: 42px; }
  .single-model .product-card .product-info { padding: 12px; }
}
