/**
 * product-card.css
 *
 * The canonical Product Card component styling — see the "Reusable
 * Component Architecture" principle in docs/spec-review.md (Site-Wide
 * Requirements). Used everywhere a product appears: homepage carousels,
 * category grid, related products, search results.
 *
 * Ported directly from the approved review mockups (category-shop-mockup
 * and single-product-mockup used identical, verified rules) rather than
 * redesigned — this is the exact, already-signed-off design.
 */

.product-card {
	border: 1px solid #ddd;
	display: flex;
	flex-direction: column;
	transition: border-color 0.15s ease;
}
.product-card:hover {
	border-color: #111;
}
.product-card .thumb {
	aspect-ratio: 1 / 1;
	background: #f2f2f2;
	position: relative;
	overflow: hidden;
}

/* Discount / status badge — top-left of the thumbnail. Black/white per
 * the site-wide color rule (Section 0) — a "-NN%" discount badge and a
 * status badge like "Best Seller" or "New" share this same treatment. */
.product-card .badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #111;
	color: #fff;
	font-size: 10.5px;
	padding: 4px 8px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 700;
}

.product-card .body {
	padding: 14px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.product-card .brand {
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #888;
	margin-bottom: 4px;
}
.product-card h3,
.product-card h4 {
	font-size: 13.5px;
	margin: 0 0 8px;
	font-weight: 600;
	flex: 1;
}

/* Swatch row — mini color-swatch dots + "+N Colors" count. Always
 * present when the product has color variants (canonical spec). */
.product-card .swatch-row {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 8px;
}
.product-card .mini-swatch {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid #ccc;
}
.product-card .more-colors {
	font-size: 11px;
	color: #777;
	margin-left: 4px;
}

/* Price line — "As low as" label + unit price, optional strikethrough
 * "was" price when a Compare-at discount is active. */
.product-card .price {
	font-size: 13.5px;
	font-weight: 700;
}
.product-card .price .from {
	display: block;
	font-size: 10.5px;
	text-transform: uppercase;
	color: #888;
	font-weight: 400;
	margin-bottom: 2px;
}
.product-card .price .was {
	color: #999;
	text-decoration: line-through;
	font-weight: 400;
	font-size: 11.5px;
	margin-left: 6px;
}
