/* Product single — hero */

.ortega-product-hero.is-text-entrance-pending .ortega-product-hero__breadcrumb,
.ortega-product-hero.is-text-entrance-pending .ortega-product-hero__media,
.ortega-product-hero.is-text-entrance-pending .ortega-product-hero__eyebrow,
.ortega-product-hero.is-text-entrance-pending .ortega-product-hero__title,
.ortega-product-hero.is-text-entrance-pending .ortega-product-hero__description,
.ortega-product-hero.is-text-entrance-pending .ortega-product-hero__actions {
	visibility: hidden;
}

.ortega-product-hero {
	--ortega-ph-bg: #5db533;
	--ortega-ph-text: #093272;
	--ortega-ph-frame: color-mix(in srgb, var(--ortega-ph-bg) 72%, #000);
	--ortega-ph-padding: clamp(1rem, 4vw, 3rem);
	--ortega-ph-grid-gap: clamp(1.5rem, 2.5vw, 2.5rem);
	--ortega-ph-media-gap: clamp(1rem, 2.5vw, 1.5rem);
	--ortega-ph-thumb-size: clamp(56px, 8vw, 72px);

	background-color: var(--ortega-ph-bg);
	color: var(--ortega-ph-text);
	margin-top: -32px;
	max-width: 100%;
	overflow-x: clip;
	padding:
		clamp(5.5rem, 14vw, 7rem)
		var(--ortega-ph-padding)
		clamp(3rem, 8vw, 5rem);
	position: relative;
}

.ortega-product-hero__inner {
	display: grid;
	margin-inline: auto;
	max-width: min(1440px, 100%);
	min-width: 0;
	position: relative;
	width: 100%;
	z-index: 2;
}

.ortega-product-hero__breadcrumb {
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.ortega-product-hero__breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ortega-product-hero__breadcrumb-item {
	align-items: center;
	color: var(--ortega-ph-text);
	display: inline-flex;
	font-family: var(--ortega-font-body);
	font-size: var(--ortega-type-breadcrumb);
	font-weight: 700;
	line-height: 1.3;
}

.ortega-product-hero__breadcrumb-item:not(:last-child)::after {
	color: var(--ortega-ph-text);
	content: ">";
	margin-left: 0.5rem;
	opacity: 0.85;
}

.ortega-product-hero__breadcrumb-link,
.ortega-product-hero__breadcrumb-current {
	color: inherit;
	text-decoration: none;
}

.ortega-product-hero__breadcrumb-link:hover,
.ortega-product-hero__breadcrumb-link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ortega-product-hero__layout {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	grid-template-columns: minmax(0, 1fr);
	min-width: 0;
}

@media (min-width: 782px) {
	.ortega-product-hero {
		margin-top: -64px;
		margin-bottom:64px;
	}

	.ortega-product-hero__description {
		font-size: var(--ortega-type-body);
		line-height: 24px;
	}
}

@media (min-width: 782px) and (max-width: 899px) {
	.ortega-product-hero__content,
	.ortega-product-hero__details {
		align-items: stretch;
	}

	.ortega-product-hero__description {
		max-width: none;
		width: 100%;
	}
}

@media (min-width: 900px) {
	.ortega-product-hero__inner {
		column-gap: var(--ortega-ph-grid-gap);
		grid-template-columns: repeat(12, minmax(0, 1fr));
		grid-template-rows: auto auto;
	}

	.ortega-product-hero__breadcrumb {
		grid-column: 1 / -1;
		grid-row: 1;
		margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
	}

	.ortega-product-hero__layout {
		align-items: start;
		column-gap: var(--ortega-ph-grid-gap);
		grid-column: 1 / -1;
		grid-row: 2;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		row-gap: 0;
	}

	.ortega-product-hero__media {
		grid-column: 1 / 6;
		justify-items: center;
		justify-self: stretch;
		position: sticky;
		top: clamp(1.5rem, 5vw, 3rem);
	}

	.ortega-product-hero__details {
		align-self: start;
		display: flex;
		flex-direction: column;
		gap: clamp(0.75rem, 2vw, 1rem);
		grid-column: 7 / 13;
		min-height: var(--ortega-ph-slider-height, auto);
	}

	.ortega-product-hero__content {
		display: flex;
		flex-direction: column;
		gap: clamp(0.75rem, 2vw, 1rem);
	}

	.ortega-product-hero__eyebrow {
		margin-left: -24px;
		transform: rotate(-2.28deg);
	}

	.ortega-product-hero__description {
		max-width: 80%;
	}

	.ortega-product-hero__border {
		background-image: url('../images/yellow-border.svg');
		background-repeat: repeat-x;
		bottom: 0;
		height: 13px;
		margin-left: 50%;
		position: absolute;
		width: 100%;
	}

	.ortega-product-hero__slider,
	.ortega-product-hero__thumbs {
		max-width: 100%;
	}

	.ortega-product-hero__ingredient {
		grid-column-start: 9;
		margin-bottom: -150px;
		max-width: 320px;
	}
}

@media (min-width: 1200px) {
	.ortega-product-hero__border:has(+ .ortega-product-hero__ingredient) {
		bottom: 150px;
	}
}

.ortega-product-hero__media {
	display: grid;
	gap: var(--ortega-ph-media-gap);
	justify-items: center;
	min-width: 0;
	width: 100%;
}

.ortega-product-hero__details {
	display: flex;
	flex-direction: column;
	gap: clamp(0.75rem, 2vw, 1rem);
	min-width: 0;
}

.ortega-product-hero__slider {
	aspect-ratio: 594 / 632;
	max-width: min(594px, 100%);
	position: relative;
	width: 100%;
}

.ortega-product-hero__slider::before {
	background-image: url('../images/bg-slider-images.svg');
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 0;
}

.ortega-product-hero__viewport {
	cursor: grab;
	inset: 0;
	mask-image: url('../images/bg-slider-images-mask.svg');
	mask-mode: alpha;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: 100% 100%;
	-webkit-mask-image: url('../images/bg-slider-images-mask.svg');
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: 100% 100%;
	overflow: hidden;
	position: absolute;
	touch-action: pan-y;
	z-index: 1;
}

.ortega-product-hero__viewport.is-dragging {
	cursor: grabbing;
}

.ortega-product-hero__track {
	display: flex;
	height: 100%;
	will-change: transform;
}

.ortega-product-hero__slide {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	flex: 0 0 var(--ortega-ph-slide-width, 100%);
	height: 100%;
	justify-content: center;
	min-width: 0;
	padding: clamp(1.25rem, 4vw, 2rem);
	width: var(--ortega-ph-slide-width, 100%);
}

.ortega-product-hero__image,
.ortega-product-hero__video {
	border-radius: 16px;
	display: block;
	height: auto;
	margin-inline: auto;
	max-height: 95%;
	max-width: 100%;
	object-fit: contain;
	opacity: 1;
	width: auto;
}

.ortega-product-hero__nav[hidden] {
	display: none;
}

.ortega-product-hero__nav {
	align-items: center;
	background-color: rgb(255 255 255 / 12%);
	border: 0;
	border-radius: 50%;
	color: var(--ortega-ph-text);
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	height: 40px;
	justify-content: center;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.2s ease, background-color 0.2s ease;
	width: 40px;
	z-index: 2;
}

.ortega-product-hero__nav--prev {
	left: clamp(0.625rem, 2.5vw, 1rem);
}

.ortega-product-hero__nav--next {
	right: clamp(0.625rem, 2.5vw, 1rem);
}

.ortega-product-hero__nav:hover,
.ortega-product-hero__nav:focus-visible {
	background-color: rgb(255 255 255 / 20%);
	transform: translateY(-50%) scale(1.05);
}

.ortega-product-hero__nav:focus-visible {
	outline: 2px solid var(--ortega-ph-text);
	outline-offset: 3px;
}

.ortega-product-hero__nav svg {
	display: block;
	height: 30px;
	width: 30px;
}

.ortega-product-hero__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(0.5rem, 1.5vw, 0.75rem);
	max-width: min(594px, 100%);
	width: 100%;
}

.ortega-product-hero__thumbs-spacer {
	pointer-events: none;
	visibility: hidden;
}

.ortega-product-hero__thumb {
	background: #00000010;
	border: 3px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	overflow: hidden;
	padding: 0;
	transition: border-color 0.2s ease, transform 0.2s ease;
	width: var(--ortega-ph-thumb-size);
}

.ortega-product-hero__thumb--spacer {
	aspect-ratio: 1;
	cursor: default;
}

.ortega-product-hero__thumb.is-active {
	border-color: #ffe400;
}

.ortega-product-hero__thumb:hover,
.ortega-product-hero__thumb:focus-visible {
	transform: translateY(-2px);
}

.ortega-product-hero__thumb:focus-visible {
	outline: 2px solid var(--ortega-ph-text);
	outline-offset: 3px;
}

.ortega-product-hero__thumb-image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.ortega-product-hero__thumb-play {
	background: rgb(9 50 114 / 72%);
	border-radius: 50%;
	height: 18px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 18px;
}

.ortega-product-hero__thumb-play--solo {
	background: var(--ortega-ph-frame);
	border-radius: 8px;
	height: 100%;
	left: auto;
	position: static;
	top: auto;
	transform: none;
	width: 100%;
}

.ortega-product-hero__thumb-play--solo::after {
	left: 52%;
}

.ortega-product-hero__thumb-play::after {
	border-color: transparent transparent transparent #fff;
	border-style: solid;
	border-width: 4px 0 4px 7px;
	content: "";
	left: 55%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}

.ortega-product-hero__content {
	display: flex;
	flex-direction: column;
	gap: clamp(0.75rem, 2vw, 1rem);
	min-width: 0;
}

.ortega-product-hero__eyebrow {
	color: var(--ortega-ph-text);
	font-family: var(--ortega-font-display);
	font-size: var(--ortega-type-eyebrow);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	margin-block: 0;
	text-transform: uppercase;
}

.ortega-product-hero__title {
	color: var(--ortega-ph-text);
	font-family: var(--ortega-font-display);
	font-size: var(--ortega-type-title-xl);
	font-weight: 700;
	line-height: 0.95;
	margin: 0;
	text-transform: uppercase;
}

.ortega-product-hero__description {
	color: var(--ortega-ph-text);
	font-family: var(--ortega-font-copy);
	font-size: var(--ortega-type-body-md);
	font-weight: 400;
	line-height: 1.5;
	margin: 0.5em 0 0;
}

.ortega-product-hero__description > :first-child {
	margin-top: 0;
}

.ortega-product-hero__description > :last-child {
	margin-bottom: 0;
}

.ortega-product-hero__description p {
	margin: 0 0 0.75em;
}

.ortega-product-hero__description p:last-child {
	margin-bottom: 0;
}

.ortega-product-hero__description strong {
	font-weight: 700;
}

.ortega-product-hero__description a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ortega-product-hero__description a:hover,
.ortega-product-hero__description a:focus-visible {
	opacity: 0.85;
}

.ortega-product-hero__description ul,
.ortega-product-hero__description ol {
	margin: 0 0 0.75em;
	padding-left: 1.25em;
}

.ortega-product-hero__description ul {
	margin-bottom: 1em;
}

.ortega-product-hero__description li + li {
	margin-top: 0.35em;
}

.ortega-product-hero__border {
	background-image: url('../images/yellow-border.svg');
	background-repeat: repeat-x;
	display: block;
	height: 13px;
	margin-block: clamp(0.25rem, 1vw, 0.5rem);
	width: 100%;
}

.ortega-product-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-top: clamp(0.5rem, 1.5vw, 1rem);
}

.ortega-product-hero__cta {
	width: max-content;
}

.ortega-product-hero__ingredient {
	height: auto;
	pointer-events: none;
	width: auto;
	z-index: 3;
}

.ortega-product-hero__edge {
	bottom: -1px;
	display: block;
	height: auto;
	left: 50%;
	max-width: none;
	pointer-events: none;
	position: absolute;
	transform: translateX(-50%);
	width: 110vw;
	z-index: 1;
}

@media (max-width: 899px) {
	.ortega-product-hero__inner {
		display: block;
	}

	.ortega-product-hero__media {
		justify-items: start;
	}

	.ortega-product-hero__content {
		align-items: flex-start;
		text-align: left;
	}

	.ortega-product-hero__details {
		align-items: flex-start;
	}

	.ortega-product-hero__thumbs {
		justify-content: flex-start;
	}

	.ortega-product-hero__ingredient {
		bottom: clamp(-1rem, -2vw, 0);
		margin-bottom: 0;
		max-width: clamp(100px, 28vw, 160px);
		position: absolute;
		right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ortega-product-hero.is-text-entrance-pending .ortega-product-hero__breadcrumb,
	.ortega-product-hero.is-text-entrance-pending .ortega-product-hero__media,
	.ortega-product-hero.is-text-entrance-pending .ortega-product-hero__eyebrow,
	.ortega-product-hero.is-text-entrance-pending .ortega-product-hero__title,
	.ortega-product-hero.is-text-entrance-pending .ortega-product-hero__description,
	.ortega-product-hero.is-text-entrance-pending .ortega-product-hero__actions {
		visibility: visible;
	}

	.ortega-product-hero__nav,
	.ortega-product-hero__thumb,
	.ortega-product-hero__track {
		transition: none;
	}

	.ortega-product-hero__viewport {
		cursor: default;
	}
}
