/* Ported from reference/merch.html. Shared reset/tokens live in base.css /
   tokens.css; the page shell (page-bg, site-header, nav, btn, events__title/
   subtitle/rule, reveal, the iOS nav-gradient fix) is byte-identical to
   Events and is reused from events.css rather than duplicated here, per the
   handover brief — this file only has what's actually new for Merch. */

/* events__head's margin-bottom is the one value the mock-up changes versus
   Events (24px here vs 18px there) — scoped so it doesn't affect the Events
   page, which also loads this shared selector. */
.merch .events__head { margin-bottom: 24px; }

.merch {
	width: min(1200px, 100% - 32px);
	margin: 0 auto;
	padding-bottom: 120px;                 /* clear of the fixed nav */
}

.merch__note { text-align: center; color: var(--card); opacity: .8; font-size: 13px; letter-spacing: .03em; margin: -8px 0 24px; }

.product-grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}
.product-card {
	position: relative; isolation: isolate;
	display: flex; flex-direction: column;
	padding: 10px;
	color: var(--ink);
}
/* same paper as the event cards */
.product-card::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(rgba(206,205,197,.9), rgba(206,205,197,.9)),
		url("../img/events/hb-cracks.webp") center / 600px auto repeat,
		var(--card);
	filter: url(#deckle-card);
}
.product-card__art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #b9b8b1; }
.product-card__body {
	display: flex; flex-direction: column; flex: 1;
	padding: 16px 8px 8px;
}
.product-card__name {
	font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; -webkit-text-stroke: .4px currentColor;
	text-transform: uppercase; letter-spacing: .02em; line-height: 1.2;
}
.product-card__price { margin-top: 6px; font-size: 16px; font-weight: 500; letter-spacing: .02em; }
.product-card__action { margin-top: auto; padding-top: 16px; }   /* buttons line up across a row */
.btn--block { display: block; text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* sold out: stays visible, quieter */
.product-card--soldout .product-card__art img { filter: grayscale(.85) contrast(.9); opacity: .75; }
.product-card--soldout::before { filter: url(#deckle-card) brightness(.86); }
.product-card--soldout { color: #4a4647; }

@media (max-width: 560px) {
	.product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.product-card { padding: 6px; }
	.product-card__body { padding: 10px 4px 4px; }
	.product-card__name { font-size: 14px; }
	.product-card__price { font-size: 14px; }
	.product-card .btn { padding: 12px 8px; font-size: 13px; letter-spacing: .06em; }
}
