/* Related Products — product single.
   Reuses Shop the Lineup card styles, presented as a slider with a
   related-recipes-style header. */

/* Header — matches the related recipes header. */

.ortega-related-products__head {
	align-items: center;
	display: flex;
	gap: clamp(0.75rem, 2vw, 1.25rem);
	justify-content: center;
	margin: 0;
	text-align: center;
}

.ortega-related-products__flourish {
	aspect-ratio: 66 / 20;
	display: block;
	flex: 0 0 auto;
	height: auto;
	object-fit: contain;
	width: clamp(24px, 4vw, 57px);
}

.ortega-related-products__flourish--right {
	transform: scaleX(-1);
}

.ortega-related-products__title {
	color: #0058a4;
	font-family: var(--ortega-font-display);
	font-size: clamp(2.25rem, 7vw, 5rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 0.87;
	margin: 0;
	text-align: center;
	text-transform: uppercase;
}

.ortega-related-products .ortega-shop-the-lineup__card-body {
	align-items: center;
	text-align: center;
	width: 100%;
}

.ortega-related-products .ortega-shop-the-lineup__card-body > .pr-category-snippet {
	justify-content: center;
}

/* Decorative flourish — desktop only. */

.ortega-related-products__decoration {
	display: none;
}

/* Keep the cards as a horizontal slider on large desktop instead of the
   four-column grid used by Shop the Lineup. */

@media (min-width: 1200px) {
	.ortega-related-products .ortega-shop-the-lineup__track {
		display: flex;
		gap: var(--ortega-stl-grid-gap, 38px);
		grid-template-columns: none;
		justify-content: safe center;
		margin-inline: 0;
		overflow-x: auto;
		padding-inline: var(--ortega-stl-content-gutter);
		scroll-behavior: smooth;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.ortega-related-products .ortega-shop-the-lineup__track::-webkit-scrollbar {
		display: none;
	}

	.ortega-related-products .ortega-shop-the-lineup__card {
		flex: 0 0 313px;
		scroll-snap-align: start;
	}

	.ortega-related-products__decoration {
		aspect-ratio: 276 / 164;
		bottom: clamp(16px, 3vw, 48px);
		display: block;
		height: auto;
		pointer-events: none;
		position: absolute;
		right: clamp(-120px, -6vw, -60px);
		transform: rotate(180deg);
		width: clamp(180px, 18vw, 276px);
		z-index: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ortega-related-products .ortega-shop-the-lineup__track {
		scroll-behavior: auto;
	}
}
