/* Product Related — "More {Category}" head + four Product Collection cards
   (design.md §Product page). The cards themselves are the shared
   .tt-product-cards styles in category-products.css; this sets the section,
   the head and a 4-up grid (a snap row on mobile). */

.tt-product-related {
	display: flex;
	flex-direction: column;
	gap: 40px;
	margin: 0 !important;
	padding: 110px calc(50px + var(--tt-bleed));
	background: #000;
	color: #fff;
}

.tt-product-related > * {
	margin: 0 !important;
}

.tt-product-related__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.tt-product-related__heading {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tt-product-related__all {
	flex-shrink: 0;
	display: inline-flex;
	gap: 6px;
}

.tt-product-related .tt-product-cards .wc-block-product-template {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* ---- Mobile --------------------------------------------------------------- */
@media (max-width: 1099px) {
	.tt-product-related {
		gap: 24px;
		padding: 56px 0;
	}

	.tt-product-related__head {
		padding-inline: 16px;
	}

	.tt-product-related__heading {
		gap: 12px;
	}

	.tt-product-related__all {
		display: none;
	}

	.tt-product-related .tt-product-cards .wc-block-product-template {
		display: flex !important;
		gap: 12px !important;
		padding-inline: 16px !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 16px;
		scrollbar-width: none;
	}

	.tt-product-related .tt-product-cards .wc-block-product-template::-webkit-scrollbar {
		display: none;
	}

	.tt-product-related .tt-product-cards .wc-block-product-template > li {
		flex: 0 0 76%;
		scroll-snap-align: start;
	}

	.tt-product-related .tt-product-card__button .wp-block-button__link {
		font-size: 15px !important;
	}
}
