/**
 * GRZ Gaming — two curated homepage product rows (dev81).
 *
 * Exactly eight equal products fit each desktop row. Product cards reserve a
 * dedicated text row so long names can never slide behind the artwork.
 */

body.home .grz-product-library--curated-rows {
	padding-block: 12px 24px;
}

body.home .grz-product-library--curated-rows .grz-product-library__head {
	margin-bottom: 14px;
}

body.home .grz-product-library__rows {
	display: grid;
	gap: 22px;
}

body.home .grz-product-library__row {
	min-width: 0;
}

body.home .grz-product-library__row-head {
	display: flex;
	align-items: center;
	min-height: 28px;
	margin: 0 0 10px;
	border-bottom: 1px solid rgba(177, 193, 215, .52);
}

body.home .grz-product-library__row-head h3 {
	position: relative;
	margin: 0;
	padding: 0 0 9px;
	color: #17243a;
	font: 820 .84rem/1.15 Manrope, Inter, Arial, sans-serif;
	letter-spacing: -.018em;
}

body.home .grz-product-library__row-head h3::after {
	position: absolute;
	inset-inline-start: 0;
	bottom: -1px;
	width: 34px;
	height: 2px;
	border-radius: 999px;
	background: var(--grz-blue, #0762e6);
	content: "";
}

body.home .grz-product-library__row-head a {
	color: inherit;
	text-decoration: none;
}

body.home .grz-product-library--curated-rows .grz-product-library__grid {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: clamp(10px, 1.18vw, 18px);
	width: 100%;
	min-width: 0;
}

body.home .grz-product-library--curated-rows .grz-product-library__product,
body.home .grz-product-library--curated-rows .grz-product-library__product:nth-child(7n + 1),
body.home .grz-product-library--curated-rows .grz-product-library__product:nth-child(7n) {
	display: grid;
	grid-template-rows: 116px minmax(42px, auto);
	justify-items: center;
	align-items: start;
	align-content: start;
	width: 100%;
	min-width: 0;
	min-height: 158px;
	color: #132036;
	text-align: center;
	text-decoration: none;
}

body.home .grz-product-library--curated-rows .grz-product-library__media {
	width: 112px;
	height: 112px;
	border-radius: 18px;
}

body.home .grz-product-library--curated-rows .grz-product-library__image,
body.home .grz-product-library--curated-rows .grz-product-library__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	max-width: none;
	border-radius: 17px;
	object-fit: cover;
}

body.home .grz-product-library--curated-rows .grz-product-library__copy {
	display: block;
	width: min(100%, 148px);
	min-width: 0;
	padding-top: 8px;
}

body.home .grz-product-library--curated-rows .grz-product-library__copy strong {
	display: -webkit-box;
	min-width: 0;
	max-height: 2.56em;
	overflow: hidden;
	color: #122037;
	font: 790 .74rem/1.28 Manrope, Inter, Arial, sans-serif;
	letter-spacing: -.014em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow-wrap: anywhere;
}

body.home .grz-product-library--curated-rows .grz-product-library__product:nth-child(8n + 1) {
	justify-items: start;
	text-align: left;
}

body.home .grz-product-library--curated-rows .grz-product-library__product:nth-child(8n) {
	justify-items: end;
	text-align: right;
}

body.home .grz-product-library--curated-rows .grz-product-library__price,
body.home .grz-product-library--curated-rows .grz-product-library__arrow,
body.home .grz-product-library--curated-rows .grz-product-library__copy small,
body.home .grz-product-library--curated-rows .grz-product-library__toolbar,
body.home .grz-product-library--curated-rows .grz-product-library__tabs {
	display: none !important;
}

@media (max-width: 1180px) {
	body.home .grz-product-library--curated-rows .grz-product-library__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	body.home .grz-product-library--curated-rows .grz-product-library__product,
	body.home .grz-product-library--curated-rows .grz-product-library__product:nth-child(8n + 1),
	body.home .grz-product-library--curated-rows .grz-product-library__product:nth-child(8n) {
		justify-items: center;
		text-align: center;
	}
}

@media (max-width: 860px) {
	body.home .grz-product-library--curated-rows .grz-product-library__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body.home .grz-product-library--curated-rows {
		padding-block: 10px 20px;
	}

	body.home .grz-product-library__rows {
		gap: 20px;
	}

	body.home .grz-product-library--curated-rows .grz-product-library__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 12px;
	}

	body.home .grz-product-library--curated-rows .grz-product-library__product {
		grid-template-rows: 106px minmax(42px, auto);
		min-height: 148px;
	}

	body.home .grz-product-library--curated-rows .grz-product-library__media {
		width: 102px;
		height: 102px;
	}
}

@media (forced-colors: active) {
	body.home .grz-product-library__row-head h3::after {
		background: Highlight;
	}
}
