/*
 * MEPCO theme — Products listing (page-products.php). Prototype lines 264–292.
 * Builds on base.css (.section, .kicker, .page-title, .chip, .sr-only); every value below is the
 * prototype's inline style for that element.
 *
 *   .products-page            the section (padding from .section)
 *   .products-filters         chip row: flex, gap 8px, margin-bottom 28px, wraps
 *   .products-grid            ul: repeat(auto-fill, minmax(300px, 1fr)), gap 20px
 *   .products-grid__item      li (hidden by the filter → display:none via base [hidden])
 *   .product-card             the <a>: panel bg, 1px line border, grid 130px + minmax(0,1fr); hover border navy
 *   .product-card__photo      white photo cell, min-height 170px, padding 10px, right border
 *   .product-card__photo--none  hatched placeholder (10px stripes) with the caption note
 *   .product-card__img        max-height 150px, contain
 *   .product-card__body       copy column: 18px 20px, column flex, gap 6px
 *   .product-card__cat        11px mono #5d626a .1em
 *   .product-card__name       600 22px/1.05 display, uppercase
 *   .product-card__blurb      13px #4a5058
 *   .product-card__more       margin-top auto, 13px 600 #9e5510
 *   .products-empty           13px #4a5058 (only when a chip matches nothing)
 */

.products-filters {
	display: flex;
	gap: 8px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}
.products-filter { margin: 0; }

.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.products-grid__item {
	display: grid;
	min-width: 0;
}

.product-card {
	background: var(--panel);
	border: 1px solid var(--line);
	cursor: pointer;
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	min-width: 0;
	color: var(--ink);
	text-decoration: none;
}
.product-card:hover {
	border-color: var(--navy);
	color: var(--ink);
}

.product-card__photo {
	background: #fff;
	display: grid;
	place-items: center;
	border-right: 1px solid var(--line);
	min-height: 170px;
	padding: 10px;
	min-width: 0;
}
.product-card__photo--none {
	background: repeating-linear-gradient(135deg, #e3e0d9 0 10px, #dcd9d1 10px 20px);
	padding: 0;
}
.product-card__note {
	font: 10px var(--font-mono);
	color: var(--muted);
	text-align: center;
	padding: 8px;
}
.product-card__img {
	max-width: 100%;
	max-height: 150px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.product-card__body {
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.product-card__cat {
	font: 11px var(--font-mono);
	color: var(--muted);
	letter-spacing: .1em;
}
.product-card__name {
	margin: 0;
	font: 600 22px/1.05 var(--font-display);
	text-transform: uppercase;
	color: inherit;
}
.product-card__blurb {
	font-size: 13px;
	color: var(--text-2);
	text-wrap: pretty;
}
.product-card__more {
	margin-top: auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--orange-text);
}

.products-empty {
	margin: 0;
	font-size: 13px;
	color: var(--text-2);
}

/* DISCONTINUED tag on a family card (status set under MEPCO → Product families). */
.product-card__tag { background: var(--orange); color: var(--ink); margin-left: 8px; vertical-align: middle; }
.product-card--discontinued .product-card__img { filter: grayscale(.35); }
