.nff-product-single-page {
	background-color: var(--wp--preset--color--neutrals-label-30, #fdfcf8);
	color: var(--wp--preset--color--primary-vine, #004539);
}

.nff-product-single-hero {
	width: 100%;
	position: relative;
	background-color: var(--wp--preset--color--neutrals-label-30, #fdfcf8);
}

.nff-product-single-hero__media {
	position: relative;
	width: 100%;
	height: 504px;
	overflow: hidden;
}

.nff-product-single-hero__banner-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
	transform: scale(1.05);
	transform-origin: center bottom;
	display: block;
}

.nff-product-single-hero__breadcrumbs {
	padding: 24px 0 8px 0;
}

.nff-product-single-overview {
	padding-top: 5px;
	padding-bottom: 38px;
}

.nff-product-single-overview__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 560px;
	gap: 64px;
	align-items: center;
}

.nff-product-single-overview__media-col {
	display: flex;
	justify-content: center;
	align-items: center;
}

.nff-product-single-overview__media-frame {
	position: relative;
	width: 100%;
	max-width: 611px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.nff-product-single-overview__image {
	max-width: 100%;
	max-height: 608px;
	object-fit: contain;
	filter: drop-shadow(0px 16px 32px rgba(0, 69, 57, 0.12));
}

.nff-product-single-overview__placeholder {
	width: 100%;
	height: 460px;
	background-color: var(--wp--preset--color--neutrals-background-50, #f1ebe3);
	border-radius: 12px;
}

.nff-product-single-overview__content-col {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.nff-product-single-overview__title {
	font-family: var(--wp--preset--font-family--poppins);
	font-size: clamp(min(48px, calc(15.6vw - 15px)), 6vw, 80px);
	font-weight: 700;
	line-height: 1.08;
	color: var(--wp--preset--color--primary-vine, #004539);
	margin: 0 0 31px 0;
}

.nff-product-single-overview__trademark {
	font-size: 0.45em;
	vertical-align: super;
	font-weight: 600;
}

.nff-product-single-overview__story {
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	max-width: 500px;
	color: var(--wp--preset--color--primary-vine, #004539);
}

.nff-product-single-overview__story p {
	margin: 0 0 30px 0;
}

.nff-product-single-overview__story p:last-child {
	margin-bottom: 0;
}

.nff-product-single-meta {
	padding-top: 43px;
	padding-bottom: 114px;
}

.nff-product-single-meta__card {
	display: flex;
	align-items: stretch;
	gap: 32px;
	box-sizing: border-box;
	max-width: 1104px;
	margin: 0 auto;
	padding: 37px 24px 82px 24px;
	background-color: var(--wp--preset--color--neutrals-background-50, #f1ebe3);
	border-radius: 16px;
}

.nff-product-single-meta__cell {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nff-product-single-meta__label {
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.24;
	color: var(--wp--preset--color--primary-vine, #004539);
	margin: 0;
}

.nff-product-single-meta__value {
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	max-width: 500px;
	color: var(--wp--preset--color--primary-vine, #004539);
	margin: 0;
}

.nff-product-single-meta__divider {
	width: 1px;
	background-color: rgba(0, 69, 57, 0.3);
	align-self: stretch;
}

.nff-product-single-sizes {
	padding-top: 20px;
	padding-bottom: 66px;
}

.nff-product-single-sizes__header {
	text-align: center;
	margin-bottom: 32px;
}

.nff-product-single-sizes__title {
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.24;
	color: var(--wp--preset--color--primary-vine, #004539);
	margin: 0;
}

.nff-product-single-sizes__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background-color: var(--wp--preset--color--neutrals-label-30, #fdfcf8);
	border: 1px solid rgba(0, 69, 57, 0.3);
	border-radius: 8px;
	overflow: hidden;
	box-sizing: border-box;
	margin-inline: auto;
}

.nff-product-single-sizes__grid--cols-5 {
	grid-template-columns: repeat(5, 1fr);
}

.nff-product-single-sizes__grid--cols-3 {
	grid-template-columns: repeat(3, 1fr);
	width: 75%;
}

.nff-product-single-sizes__grid--cols-2 {
	grid-template-columns: repeat(2, 1fr);
	width: 50%;
}

.nff-product-single-sizes__grid--cols-1 {
	grid-template-columns: 1fr;
	width: 25%;
}

.nff-product-single-size-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 28px 24px 32px 24px;
	min-height: 285px;
	border-right: 1px solid rgba(0, 69, 57, 0.3);
	transition: background-color 0.2s ease;
}

.nff-product-single-size-card:last-child {
	border-right: none;
}

.nff-product-single-size-card:hover {
	background-color: rgba(249, 247, 237, 0.6);
}

.nff-product-single-size-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	flex: 1;
	padding-bottom: 28px;
}

.nff-product-single-size-card__image {
	max-width: 100%;
	max-height: 220px;
	object-fit: contain;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	filter: drop-shadow(0px 8px 16px rgba(0, 69, 57, 0.08));
}

.nff-product-single-size-card:hover .nff-product-single-size-card__image {
	transform: scale(1.04);
}

.nff-product-single-size-card__placeholder {
	width: 180px;
	height: 180px;
	background-color: var(--wp--preset--color--neutrals-background-50, #f1ebe3);
	border-radius: 8px;
}

.nff-product-single-size-card__footer {
	align-self: stretch;
	margin: 0 -24px;
	padding-top: 24px;
	border-top: 1px solid rgba(0, 69, 57, 0.3);
	text-align: center;
}

.nff-product-single-size-card__label {
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.24;
	color: var(--wp--preset--color--primary-vine, #004539);
}

.nff-product-single-organic {
	padding-top: 20px;
	padding-bottom: 80px;
}

.nff-product-single-organic__header {
	text-align: center;
	margin-bottom: 48px;
}

.nff-product-single-organic__title {
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.24;
	color: var(--wp--preset--color--primary-vine, #004539);
	margin: 0;
}

.nff-product-single-organic__subtitle {
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.32;
	color: var(--wp--preset--color--primary-vine, #004539);
	margin: 8px 0 0 0;
}

.nff-product-single-organic__grid-wrap {
	max-width: 1006px;
	margin: 0 auto;
}

.nff-product-single-testimonial {
	padding-top: 0;
	padding-bottom: 0;
	background-color: var(--wp--preset--color--tint-organic-green, #dff0d6);
}

.nff-product-single-testimonial__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 85px 48px;
	text-align: center;
	max-width: 1104px;
	margin: 0 auto;
}

.nff-product-single-testimonial__quote {
	font-family: var(--wp--preset--font-family--poppins);
	font-size: clamp(28px, 3.4vw, 48px);
	font-weight: 700;
	line-height: 1.27;
	color: var(--wp--preset--color--primary-vine, #004539);
	font-style: normal;
	margin: 0;
	max-width: 1040px;
}

.nff-product-single-testimonial__attribution {
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.32;
	color: var(--wp--preset--color--primary-vine, #004539);
	font-style: normal;
}

@media (max-width: 1200px) {
	.nff-product-single-overview__layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.nff-product-single-sizes__grid {
		grid-template-columns: repeat(2, 1fr);
		width: 100%;
	}

	.nff-product-single-sizes__grid--cols-1 {
		grid-template-columns: 1fr;
		width: 50%;
	}

	.nff-product-single-size-card:nth-child(2n) {
		border-right: none;
	}

	.nff-product-single-size-card:nth-child(n + 3) {
		border-top: 1px solid rgba(0, 69, 57, 0.3);
	}

	.nff-product-single-size-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.nff-product-single-hero__media {
		height: 300px;
	}

	.nff-product-single-meta__card {
		flex-direction: column;
		gap: 20px;
	}

	.nff-product-single-meta__divider {
		width: 100%;
		height: 1px;
	}

	.nff-product-single-sizes__grid,
	.nff-product-single-sizes__grid--cols-3,
	.nff-product-single-sizes__grid--cols-2,
	.nff-product-single-sizes__grid--cols-1 {
		grid-template-columns: 1fr;
		width: 100%;
	}

	.nff-product-single-size-card,
	.nff-product-single-size-card:nth-child(n + 3) {
		border-top: none;
		border-right: none;
		border-bottom: 1px solid rgba(0, 69, 57, 0.3);
	}

	.nff-product-single-size-card:last-child {
		border-bottom: none;
	}

	.nff-product-single-testimonial__card {
		padding: 56px 24px;
	}
}

/*
 * "From produce to plate" recipe slideshow (Figma 3.1.1 Hiiros, recipe block,
 * 1-recipe layout): one recipe per slide, background in the category tint, the
 * produce illustration on the image's bottom-right corner.
 */
.nff-product-recipes {
	--nff-product-recipes-tint: var(--wp--preset--color--tint-tomato, #ffdcdb);
	--nff-product-recipes-media-height: clamp(260px, 34.7vw, 500px);
	--nff-product-recipes-illustration-scale: 1;
	--nff-product-recipes-illustration-right: 72px;
	padding-top: 72px;
	padding-bottom: 64px;
	background-color: var(--nff-product-recipes-tint);
	color: var(--wp--preset--color--primary-vine, #004539);
}

.nff-product-recipes--cucumbers {
	--nff-product-recipes-tint: var(--wp--preset--color--tint-cucumber, #dbf0d4);
}

.nff-product-recipes--peppers {
	--nff-product-recipes-tint: var(--wp--preset--color--tint-pepper, #ffe9c2);
}

.nff-product-recipes--strawberries {
	--nff-product-recipes-tint: var(--wp--preset--color--tint-strawberry, #fcd4e1);
}

.nff-product-recipes__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 443px) auto;
	align-items: center;
	column-gap: 56px;
	row-gap: 16px;
	margin-bottom: 56px;
}

.nff-product-recipes__title {
	font-family: var(--wp--preset--font-family--poppins);
	font-size: clamp(32px, 3.9vw, 56px);
	font-weight: 700;
	line-height: 1.08;
	margin: 0;
}

.nff-product-recipes__description {
	font-family: var(--wp--preset--font-family--calibre);
	font-size: 18px;
	line-height: 1.32;
	margin: 0;
}

.nff-product-recipes__stage {
	position: relative;
}

.nff-product-recipes__track {
	display: flex;
	gap: 24px;
}

.nff-product-recipes__slide {
	position: relative;
	flex: 0 0 100%;
	min-width: 0;
}

.nff-product-recipes__media {
	display: block;
	height: var(--nff-product-recipes-media-height);
	border-radius: 8px;
	overflow: hidden;
	background-color: rgba(0, 69, 57, 0.08);
}

.nff-product-recipes__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.nff-product-recipes__slide:hover .nff-product-recipes__image {
	transform: scale(1.03);
}

.nff-product-recipes__body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 24px;
}

/* Keep the title clear of the illustration that hangs below the image (Figma: illustrations must not cover text). */
.nff-product-recipes--has-illustration .nff-product-recipes__body {
	padding-right: calc(var(--nff-product-recipes-illustration-right) + var(--nff-product-recipes-illustration-width, 100px) * var(--nff-product-recipes-illustration-scale) + 16px);
}

.nff-product-recipes__name {
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.24;
	margin: 0;
}

.nff-product-recipes__link {
	color: inherit;
	text-decoration: none;
}

/* The whole card is the link (Figma note: "entire recipe card should be clickable"). */
.nff-product-recipes__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.nff-product-recipes__slide:hover .nff-product-recipes__link,
.nff-product-recipes__link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/*
 * Sits outside the scrolling track so the track's overflow does not clip it.
 * Size per category comes from the template (Figma size at 1440); half of it
 * overlaps the image's bottom edge.
 */
.nff-product-recipes__illustration {
	position: absolute;
	top: calc(var(--nff-product-recipes-media-height) - var(--nff-product-recipes-illustration-height, 86px) * var(--nff-product-recipes-illustration-scale) / 2);
	right: var(--nff-product-recipes-illustration-right);
	z-index: 2;
	width: calc(var(--nff-product-recipes-illustration-width, 100px) * var(--nff-product-recipes-illustration-scale));
	pointer-events: none;
}

.nff-product-recipes__illustration img {
	display: block;
	width: 100%;
	height: auto;
}

@media (prefers-reduced-motion: no-preference) {
	.nff-product-recipes__illustration.is-revealed img {
		animation: nff-product-recipes-float 4s ease-in-out 1s infinite;
	}
}

@keyframes nff-product-recipes-float {
	0%,
	100% {
		transform: translateY(0) rotate(0deg);
	}

	50% {
		transform: translateY(-6px) rotate(-4deg);
	}
}

.nff-product-recipes__controls {
	margin-top: var(--wp--preset--spacing--80, 2.5rem);
}

.nff-product-recipes__controls:not(:has(button:enabled)) {
	display: none;
}

/* Cream gap between the tinted block and the green testimonial (Figma 3.1.1: 104px; mobile 64px). */
.nff-product-recipes + .nff-product-single-testimonial {
	margin-top: 104px;
}

@media (max-width: 1024px) {
	.nff-product-recipes__header {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.nff-product-recipes__description {
		grid-row: 2;
		grid-column: 1 / -1;
		max-width: 443px;
	}
}

@media (max-width: 768px) {
	.nff-product-recipes {
		--nff-product-recipes-media-height: clamp(220px, 62vw, 340px);
		--nff-product-recipes-illustration-scale: 0.7;
		--nff-product-recipes-illustration-right: 16px;
		padding-top: 56px;
		padding-bottom: 48px;
	}

	.nff-product-recipes__header {
		grid-template-columns: minmax(0, 1fr);
		margin-bottom: 32px;
	}

	.nff-product-recipes__description {
		grid-row: auto;
	}

	.nff-product-recipes__name {
		font-size: 20px;
	}

	.nff-product-recipes + .nff-product-single-testimonial {
		margin-top: 64px;
	}
}
