/**
 * GRZ Gaming — equal-card homepage product library (dev80).
 *
 * One open storefront surface replaces the two nested white panels. Desktop
 * renders fourteen equal products in two exact seven-column rows, aligned to
 * the same 1440px shell as Featured Offers and Browse Categories.
 */

body.home .grz-product-library {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 12px 22px 22px;
	border: 0;
	background: transparent;
	color: #101d33;
}

body.home .grz-product-library > .grz-container {
	width: min(calc(100% - (2 * var(--grz-home-gutter, 22px))), var(--grz-container, var(--grz-shell-max, 1440px)));
	max-width: none;
	margin-inline: auto;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

body.home .grz-product-library__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 4px;
}

body.home .grz-product-library__head h2,
body.home .grz-product-library__head p {
	margin: 0;
}

body.home .grz-product-library__head h2 {
	font-family: Manrope, Inter, Arial, sans-serif;
	font-size: clamp(1.2rem, 1.55vw, 1.65rem);
	font-weight: 850;
	line-height: 1.15;
	letter-spacing: -.035em;
}

body.home .grz-product-library__head p {
	margin-top: 4px;
	color: #5c6d84;
	font-size: .78rem;
	font-weight: 560;
	line-height: 1.45;
}

body.home .grz-product-library__toolbar {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
	min-width: 0;
	margin-bottom: 18px;
	border-bottom: 1px solid rgba(177, 193, 215, .62);
}

body.home .grz-product-library__tabs {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.4vw, 38px);
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}

body.home .grz-product-library__tabs::-webkit-scrollbar {
	display: none;
}

body.home .grz-product-library__tab {
	position: relative;
	flex: 0 0 auto;
	min-height: 40px;
	padding: 7px 0 11px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #53657d;
	font: 720 .78rem/1.1 Inter, Arial, sans-serif;
	white-space: nowrap;
	cursor: pointer;
	transition: color 160ms ease;
}

body.home .grz-product-library__tab::after {
	position: absolute;
	inset-inline: 0;
	bottom: -1px;
	height: 3px;
	border-radius: 999px 999px 0 0;
	background: var(--grz-blue, #0762e6);
	content: "";
	opacity: 0;
	transform: scaleX(.4);
	transition: opacity 160ms ease, transform 160ms ease;
}

body.home .grz-product-library__tab:hover,
body.home .grz-product-library__tab:focus-visible,
body.home .grz-product-library__tab.is-active {
	color: #075dcc;
}

body.home .grz-product-library__tab.is-active::after {
	opacity: 1;
	transform: scaleX(1);
}

body.home .grz-product-library__tab:focus-visible {
	outline: 2px solid rgba(7, 98, 230, .35);
	outline-offset: -2px;
}

body.home .grz-product-library__more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 36px;
	margin-bottom: 4px;
	padding: 7px 10px;
	border-radius: 7px;
	color: #475b75;
	font: 720 .72rem/1 Inter, Arial, sans-serif;
	text-decoration: none;
	white-space: nowrap;
	transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

body.home .grz-product-library__more .grz-icon,
body.home .grz-product-library__more svg {
	width: 14px;
	height: 14px;
}

body.home .grz-product-library__more:hover,
body.home .grz-product-library__more:focus-visible {
	background: rgba(255, 255, 255, .58);
	color: var(--grz-blue, #0762e6);
	transform: translateX(1px);
}

body.home .grz-product-library__panel[hidden] {
	display: none !important;
}

body.home .grz-product-library__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 28px 12px;
	width: 100%;
	min-width: 0;
	padding: 0;
}

body.home .grz-product-library__product {
	--grz-library-accent: #0762e6;
	--grz-library-accent-dark: #064ec4;
	--grz-library-accent-rgb: 7, 98, 230;
	position: relative;
	display: grid;
	grid-template-rows: 118px 42px 17px 23px;
	justify-items: center;
	align-items: start;
	align-content: start;
	width: 100%;
	min-width: 0;
	min-height: 200px;
	color: #132036;
	text-align: center;
	text-decoration: none;
	transition: transform 190ms ease;
}

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

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

body.home .grz-product-library__media {
	position: relative;
	display: grid;
	place-items: center;
	width: 114px;
	height: 114px;
	border: 1px solid rgba(255, 255, 255, .88);
	border-radius: 19px;
	background: rgba(255, 255, 255, .2);
	box-shadow: 0 11px 22px rgba(13, 29, 52, .15), 0 1px 0 rgba(255, 255, 255, .72) inset;
	overflow: visible;
	isolation: isolate;
	transition: border-color 190ms ease, box-shadow 190ms ease, transform 190ms ease;
}

body.home .grz-product-library__media::before {
	position: absolute;
	inset: 15% 5% -12%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--grz-library-accent-rgb), .48) 0%, rgba(var(--grz-library-accent-rgb), .2) 44%, transparent 74%);
	content: "";
	filter: blur(13px);
	opacity: .78;
	transform: scale(1.08);
	transition: opacity 190ms ease, transform 190ms ease;
}

body.home .grz-product-library__image,
body.home .grz-product-library__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 18px;
	object-fit: cover;
}

body.home .grz-product-library__placeholder {
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, .75);
	color: var(--grz-library-accent);
}

body.home .grz-product-library__placeholder .grz-icon {
	width: 34px;
	height: 34px;
}

body.home .grz-product-library__copy {
	display: grid;
	align-content: start;
	gap: 3px;
	width: min(100%, 154px);
	min-width: 0;
	padding-top: 8px;
}

body.home .grz-product-library__copy strong {
	display: -webkit-box;
	min-width: 0;
	overflow: hidden;
	color: #122037;
	font: 790 .76rem/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__copy small {
	display: block;
	overflow: hidden;
	color: #65758b;
	font: 560 .63rem/1.3 Inter, Arial, sans-serif;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.home .grz-product-library__price {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	min-width: 0;
	color: #13213a;
	font: 820 .7rem/1.2 Inter, Arial, sans-serif;
	white-space: nowrap;
}

body.home .grz-product-library__price > small {
	color: #78879a;
	font-size: .56rem;
	font-weight: 720;
	text-transform: uppercase;
}

body.home .grz-product-library__price del {
	display: none;
}

body.home .grz-product-library__price ins {
	text-decoration: none;
}

body.home .grz-product-library__arrow {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: #3d4f68;
	transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

body.home .grz-product-library__arrow .grz-icon,
body.home .grz-product-library__arrow svg {
	width: 13px;
	height: 13px;
}

body.home .grz-product-library__product:hover,
body.home .grz-product-library__product:focus-visible {
	color: #132036;
	outline: none;
	transform: translateY(-3px);
}

body.home .grz-product-library__product:hover .grz-product-library__media,
body.home .grz-product-library__product:focus-visible .grz-product-library__media {
	border-color: rgba(var(--grz-library-accent-rgb), .54);
	box-shadow: 0 15px 28px rgba(13, 29, 52, .19), 0 0 0 2px rgba(var(--grz-library-accent-rgb), .12);
	transform: scale(1.025);
}

body.home .grz-product-library__product:hover .grz-product-library__media::before,
body.home .grz-product-library__product:focus-visible .grz-product-library__media::before {
	opacity: 1;
	transform: scale(1.18);
}

body.home .grz-product-library__product:hover .grz-product-library__copy strong,
body.home .grz-product-library__product:focus-visible .grz-product-library__copy strong,
body.home .grz-product-library__product:hover .grz-product-library__price,
body.home .grz-product-library__product:focus-visible .grz-product-library__price {
	color: var(--grz-library-accent-dark);
}

body.home .grz-product-library__product:hover .grz-product-library__arrow,
body.home .grz-product-library__product:focus-visible .grz-product-library__arrow {
	background: rgba(var(--grz-library-accent-rgb), .1);
	color: var(--grz-library-accent-dark);
	transform: translateX(2px);
}

body.home .grz-product-library__product:focus-visible::after {
	position: absolute;
	inset: -7px;
	border: 2px solid rgba(var(--grz-library-accent-rgb), .46);
	border-radius: 14px;
	content: "";
	pointer-events: none;
}

body.home .grz-product-library__empty {
	display: grid;
	place-items: center;
	gap: 10px;
	min-height: 235px;
	color: #68798e;
	text-align: center;
}

body.home .grz-product-library__empty > span {
	color: var(--grz-blue, #0762e6);
}

body.home .grz-product-library__empty p {
	margin: 0;
	font-size: .8rem;
}

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

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

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

@media (max-width: 640px) {
	body.home .grz-product-library {
		padding: 10px 16px 18px;
	}

	body.home .grz-product-library > .grz-container {
		width: 100%;
	}

	body.home .grz-product-library__head h2 {
		font-size: 1.22rem;
	}

	body.home .grz-product-library__toolbar {
		align-items: center;
		gap: 8px;
		margin-bottom: 15px;
	}

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

	body.home .grz-product-library__more {
		flex: 0 0 auto;
		width: 34px;
		min-height: 34px;
		padding: 0;
		justify-content: center;
	}

	body.home .grz-product-library__more span {
		display: none;
	}

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

	body.home .grz-product-library__product {
		grid-template-rows: 106px 42px 17px 22px;
		min-height: 187px;
	}

	body.home .grz-product-library__media {
		width: 102px;
		height: 102px;
		border-radius: 17px;
	}

	body.home .grz-product-library__image,
	body.home .grz-product-library__placeholder {
		border-radius: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.home .grz-product-library :is(.grz-product-library__tab, .grz-product-library__more, .grz-product-library__product, .grz-product-library__media, .grz-product-library__media::before, .grz-product-library__arrow) {
		transition: none;
	}

	body.home .grz-product-library__product:hover,
	body.home .grz-product-library__product:focus-visible,
	body.home .grz-product-library__product:hover .grz-product-library__media,
	body.home .grz-product-library__product:focus-visible .grz-product-library__media {
		transform: none;
	}
}

@media (forced-colors: active) {
	body.home .grz-product-library__media {
		border: 1px solid CanvasText;
		background: Canvas;
		box-shadow: none;
	}

	body.home .grz-product-library__media::before {
		display: none;
	}

	body.home .grz-product-library__tab.is-active::after {
		background: Highlight;
	}
}
