/* --------------------------------------------------------------------------
 * GRZ Gaming — catalog stability pass (v1.5.23)
 *
 * Reassert the canonical 1440px rail after plugin/archive styles and keep the
 * sidebar + product grid intrinsically fluid. This intentionally does not
 * counteract browser zoom: 100% zoom remains the reference rendering scale.
 * ----------------------------------------------------------------------- */

body.post-type-archive-product .grz-woo-main,
body.tax-product_cat .grz-woo-main,
body.tax-product_tag .grz-woo-main,
body.search-results.woocommerce .grz-woo-main {
	box-sizing: border-box;
	width: min(calc(100% - (2 * var(--grz-shell-gutter, 24px))), var(--grz-shell-max, 1440px));
	max-width: none;
	margin-inline: auto;
	padding-inline: 0;
}

.grz-shop,
.grz-shop__layout,
.grz-shop__main,
.grz-shop ul.products.products {
	min-width: 0;
}

.grz-shop__main {
	width: 100%;
}

.woocommerce-page .grz-shop ul.products.products,
.woocommerce .grz-shop ul.products.products {
	grid-template-columns: repeat(var(--grz-shop-cols, 6), minmax(0, 1fr));
}

.grz-shop .grz-card__link,
.grz-shop .grz-card__name {
	min-width: 0;
}

.grz-shop .grz-card--safe-fallback .grz-card__art {
	background: linear-gradient(145deg, #12233d, #0868f2);
}

@media (max-width: 1100px) {
	.woocommerce-page .grz-shop ul.products.products,
	.woocommerce .grz-shop ul.products.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	body.post-type-archive-product .grz-woo-main,
	body.tax-product_cat .grz-woo-main,
	body.tax-product_tag .grz-woo-main,
	body.search-results.woocommerce .grz-woo-main {
		width: min(calc(100% - 32px), var(--grz-shell-max, 1440px));
	}

	.woocommerce-page .grz-shop ul.products.products,
	.woocommerce .grz-shop ul.products.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
