/* Single product page (single-product.php).
   Shared hero/drawer shell lives in assets/css/layout.css.
   Ported from project/product-*.dc.html — structure is identical across all
   five products (Bulk Wine, Vinegar, Grape Must, Grape Ethyl Alcohol,
   Grain & Corn Ethanol), only copy/values differ (seeded via
   devops/seed-products.php).

   The source hero is a shorter 80vh fixed panel (vs. the 100vh used by
   About/Contact) with a breadcrumb eyebrow and a single-line title, so it
   overrides .page-hero's height/min-height and pairs with a matching
   .product-drawer margin-top rather than reusing the 100vh default. */

.product-hero {
	height: 80vh;
	min-height: 520px;
}
.product-drawer {
	margin-top: 80vh;
}
.product-hero-scrim {
	background: linear-gradient(0deg, rgba(20, 15, 9, .62) 0%, rgba(20, 15, 9, .12) 50%, rgba(20, 15, 9, .34) 100%);
}
.product-hero .page-hero-bg {
	filter: saturate(.76) contrast(1.04) brightness(.7);
}
.product-hero-breadcrumb {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: clamp(22px, 3.2vh, 40px);
	font-family: var(--font-ui);
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: rgba(247, 244, 239, .78);
}
.product-hero-breadcrumb a {
	text-decoration: none;
	color: rgba(247, 244, 239, .78);
	transition: color .35s ease;
}
@media (hover: hover) and (pointer: fine) {
	.product-hero-breadcrumb a:hover { color: var(--color-cream); }
}
.product-hero-breadcrumb-sep { opacity: .6; }
.product-hero-breadcrumb-current { color: var(--color-sage); }

.product-hero-title {
	font-size: clamp(2.8rem, 7vw, 7.4rem);
}
.product-hero-lede {
	max-width: 50ch;
}

.product-drawer {
	background: var(--color-cream);
}

/* OVERVIEW */
.product-overview-section {
	background: var(--color-cream);
	color: var(--color-text);
	padding: clamp(60px, 11vh, 170px) 0 clamp(48px, 8vh, 110px);
}
.product-back-link {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	color: rgba(55, 45, 29, .6);
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	padding-bottom: 7px;
	margin-bottom: clamp(30px, 5vh, 60px);
	transition: color .35s ease;
}
@media (hover: hover) and (pointer: fine) {
	.product-back-link:hover { color: var(--color-text); }
}
.product-back-arrow {
	display: inline-flex;
	align-items: center;
	transform: rotate(180deg);
}
.product-overview-inner {
	max-width: 820px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(22px, 3vh, 32px);
}
.product-overview-head {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.product-overview-head h2 {
	font-family: var(--font-display);
	font-weight: 300;
	letter-spacing: .03em;
	margin: 0;
	font-size: clamp(1.9rem, 3.4vw, 3.4rem);
	line-height: 1.05;
	color: var(--color-text);
}
.product-overview-body {
	font-family: var(--font-ui);
	font-size: clamp(.98rem, 1.1vw, 1.16rem);
	line-height: 1.8;
	color: rgba(55, 45, 29, .78);
}
.product-overview-body p {
	margin: 0 0 1.2em;
}
.product-overview-body p:last-child {
	margin-bottom: 0;
}
.product-overview-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 6px;
}
.product-tag {
	font-family: var(--font-ui);
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--color-brand-green);
	border: 1px solid rgba(10, 73, 31, .3);
	border-radius: 999px;
	padding: 9px 18px;
}

/* VARIANTS + SPECS */
.product-detail-section {
	background: var(--color-cream-2);
	color: var(--color-text);
	padding: clamp(56px, 10vh, 160px) 0;
}
.product-detail-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(40px, 6vw, 110px);
	align-items: start;
}
.product-variants,
.product-specs {
	display: flex;
	flex-direction: column;
	gap: clamp(18px, 2.4vh, 26px);
}
.product-variants h2,
.product-specs h2 {
	font-family: var(--font-display);
	font-weight: 300;
	letter-spacing: .03em;
	margin: 0 0 6px;
	font-size: clamp(1.7rem, 2.8vw, 2.8rem);
	line-height: 1.05;
	color: var(--color-text);
}
.product-variant-list {
	display: flex;
	flex-direction: column;
}
.product-variant-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: clamp(16px, 2.2vh, 22px) 0;
	border-top: 1px solid rgba(55, 45, 29, .16);
}
.product-variant-swatch {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	flex-shrink: 0;
	box-shadow: inset 0 0 0 1px rgba(55, 45, 29, .12);
}
.product-variant-copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.product-variant-name {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.2rem, 1.6vw, 1.5rem);
	line-height: 1;
	color: var(--color-text);
}
.product-variant-note {
	font-family: var(--font-ui);
	font-size: .86rem;
	color: rgba(55, 45, 29, .6);
}

/* Spec table (template-parts/blocks/spec-table.php) */
.spec-table {
	display: flex;
	flex-direction: column;
	margin: 0;
}
.spec-table-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding: clamp(15px, 2vh, 20px) 0;
	border-top: 1px solid rgba(55, 45, 29, .16);
	margin: 0;
}
.spec-table-label {
	font-family: var(--font-ui);
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(55, 45, 29, .55);
}
.spec-table-value {
	font-family: var(--font-ui);
	font-size: clamp(.92rem, 1vw, 1.04rem);
	color: var(--color-text);
	text-align: right;
	margin: 0;
}

/* ENQUIRY CTA */
.product-cta-section {
	background: var(--color-cream);
	color: var(--color-text);
	padding: clamp(60px, 12vh, 220px) 0;
}
.product-cta-grid {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	gap: clamp(40px, 5vw, 96px);
	align-items: center;
}
.product-cta-head h2 {
	font-family: var(--font-display);
	font-weight: 300;
	letter-spacing: .04em;
	margin: 24px 0 0;
	font-size: clamp(2.2rem, 4.4vw, 4.8rem);
	line-height: 1.02;
	max-width: 14ch;
	color: var(--color-text);
}
.product-cta-body {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 42ch;
}
.product-cta-copy {
	font-family: var(--font-ui);
	font-size: clamp(.96rem, 1.1vw, 1.14rem);
	line-height: 1.72;
	color: rgba(55, 45, 29, .7);
}
.product-cta-copy p {
	margin: 0;
}
.product-cta-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
	text-decoration: none;
	color: var(--color-text);
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	padding-bottom: 7px;
	width: fit-content;
}

/* PRODUCT CARD (template-parts/cards/card-product.php) — reserved for the
   products archive listing in a later phase; styled here now so it ships
   ready to use. */
.product-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}
.product-card-media {
	position: relative;
	overflow: hidden;
	border-radius: 2px;
	aspect-ratio: 4 / 3;
}
.product-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.8) contrast(1.04) brightness(.86);
	transition: scale .55s cubic-bezier(.22, 1, .36, 1);
}
.product-card-tint {
	position: absolute;
	inset: 0;
	background: linear-gradient(150deg, rgba(10, 73, 31, .28) 0%, rgba(55, 45, 29, .34) 100%);
	mix-blend-mode: multiply;
	opacity: 0;
	transition: opacity .45s ease;
	pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
	.product-card:hover .product-card-img { scale: 1.04; }
	.product-card:hover .product-card-tint { opacity: 1; }
}
.product-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 18px;
}
.product-card-title {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: .03em;
	margin: 0;
	font-size: clamp(1.3rem, 1.8vw, 1.7rem);
	line-height: 1.08;
	color: var(--color-text);
}
.product-card-excerpt {
	font-family: var(--font-ui);
	font-size: .92rem;
	line-height: 1.55;
	color: rgba(55, 45, 29, .65);
	margin: 0;
}

@media (max-width: 879px) {
	.product-detail-split {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	.product-overview-section,
	.product-detail-section {
		padding: 48px 0;
	}
	.product-cta-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* ===================================================================
   PRODUCTS ARCHIVE (archive-product.php)
   Ported from project/products.dc.html's #catalogue — a fixed 78vh hero
   (shorter than the 100vh About/Contact default, taller than the single
   product page's 80vh) followed by a flex column of alternating full-bleed
   image/text rows. Archive-only classes are namespaced `.product-archive-*`
   / `.pr-*` so they never collide with the single-product.php rules above.
   =================================================================== */

.container-wide {
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 clamp(22px, 5vw, 96px);
}

.product-archive-hero {
	height: 78vh;
	min-height: 520px;
}
.product-archive-drawer {
	margin-top: 78vh;
	background: var(--color-cream);
}
.product-archive-hero-scrim {
	background: linear-gradient(0deg, rgba(20, 15, 9, .55) 0%, rgba(20, 15, 9, .12) 48%, rgba(20, 15, 9, .3) 100%);
}
.product-archive-hero .page-hero-bg {
	filter: saturate(.74) contrast(1.04) brightness(.74);
}
.product-archive-hero-title,
.service-archive-hero-title,
.industry-archive-hero-title {
	font-size: clamp(2.8rem, 7vw, 7.6rem);
}

.product-archive-catalogue,
.service-archive-catalogue,
.industry-archive-catalogue {
	background: var(--color-cream);
	color: var(--color-text);
	padding: clamp(72px, 14vh, 200px) 0 clamp(60px, 11vh, 170px);
}
.product-archive-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 24px;
	padding-bottom: clamp(26px, 4vh, 44px);
	border-bottom: 1px solid rgba(55, 45, 29, .18);
	margin-bottom: clamp(40px, 6vh, 72px);
}
.product-archive-head-col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.product-archive-head-col h2 {
	font-family: var(--font-display);
	font-weight: 300;
	letter-spacing: .04em;
	margin: 0;
	font-size: clamp(1.5rem, 3.4vw, 3.4rem);
	line-height: 1;
	color: var(--color-text);
}
.product-archive-head-note {
	font-family: var(--font-ui);
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: rgba(55, 45, 29, .5);
}
.product-archive-empty {
	font-family: var(--font-ui);
	color: rgba(55, 45, 29, .6);
}

.product-archive-rows {
	display: flex;
	flex-direction: column;
	gap: clamp(56px, 9vh, 130px);
}

.pr-row,
.sv-row {
	text-decoration: none;
	color: var(--color-text);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 90px);
	align-items: center;
}
.pr-flip .pr-imgwrap,
.sv-flip .sv-imgwrap {
	order: 2;
}
.pr-flip .pr-copy,
.sv-flip .sv-copy {
	order: 1;
}
.pr-imgwrap,
.sv-imgwrap {
	position: relative;
	width: 100%;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	background: var(--color-text);
	border-radius: 2px;
}
.pr-img,
.sv-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.84) contrast(1.04) brightness(.93);
}
.pr-img-tint,
.sv-img-tint {
	position: absolute;
	inset: 0;
	background: linear-gradient(150deg, rgba(10, 73, 31, .18) 0%, rgba(55, 45, 29, .3) 100%);
	mix-blend-mode: multiply;
	pointer-events: none;
}
.pr-index,
.sv-index {
	position: absolute;
	top: clamp(18px, 2vw, 28px);
	left: clamp(18px, 2vw, 28px);
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.4rem, 2vw, 2rem);
	color: rgba(247, 244, 239, .92);
	text-shadow: 0 2px 14px rgba(20, 15, 9, .6);
}
.pr-copy,
.sv-copy {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 2.2vh, 22px);
}
.pr-eyebrow {
	font-family: var(--font-ui);
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--color-brand-green);
}
.pr-title,
.sv-title {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: .02em;
	font-size: clamp(1.9rem, 3.2vw, 3.2rem);
	line-height: 1.02;
	margin: 0;
}
.pr-desc,
.sv-desc {
	font-family: var(--font-ui);
	font-size: clamp(.96rem, 1.1vw, 1.14rem);
	line-height: 1.78;
	color: rgba(55, 45, 29, .72);
	margin: 0;
	max-width: 46ch;
}
.pr-bullets,
.sv-bullets {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-top: 4px;
}
.pr-bullet,
.sv-bullet {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	border-top: 1px solid rgba(55, 45, 29, .16);
	font-family: var(--font-ui);
	font-size: .92rem;
	letter-spacing: .02em;
	color: rgba(55, 45, 29, .7);
}
.pr-bullet-dot,
.sv-bullet-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--color-brand-green);
	flex-shrink: 0;
}
.pr-cta,
.sv-cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	padding-bottom: 7px;
	width: fit-content;
}

@media (max-width: 879px) {
	.pr-row,
	.sv-row {
		grid-template-columns: 1fr;
	}
	.pr-flip .pr-imgwrap,
	.pr-flip .pr-copy,
	.sv-flip .sv-imgwrap,
	.sv-flip .sv-copy {
		order: initial;
	}
	.product-archive-catalogue,
	.service-archive-catalogue,
	.industry-archive-catalogue {
		padding: 48px 0;
	}
}
