/*
 * Single product page (phase 4). Loaded on single products only.
 *
 * Built on the Home foundations (home.css is loaded as a dependency for the shared product card and the
 * circular nav buttons): the <main> carries .pt-home, so --u is "1 design px" (mobile: --m, 1px at 390;
 * desktop: --d, 1px at 1440 and capped, so the composition stops growing above 1440) and the --t* type
 * tokens exist. Figma: desktop 454:3356, mobile 454:3044.
 */

.pt-product {
	/* Type roles (mobile / desktop reference sizes). */
	--pp-body: var(--t16); /* 16 / 20 */
	--pp-small: var(--t14); /* 14 / 16 */
	--pp-h: max(28px, calc(36 * var(--ms))); /* 36 / 48 */
	--pp-price: max(20px, calc(24 * var(--ms))); /* 24 / 36 */
	--pp-card-title: var(--t20); /* 20 / 24 */
	--pp-line: 1.21; /* mobile: Figma "auto" */
	--pp-line-body: 1.21;
	--pp-ls-label: 0.05em; /* caps labels: 5% mobile, 10% desktop */
	--pp-ink: var(--color-text-body);
}

@media (min-width: 768px) {
	.pt-product {
		--pp-body: var(--t20);
		--pp-small: var(--t16);
		--pp-h: max(30px, calc(48 * var(--d)));
		--pp-price: max(26px, calc(36 * var(--d)));
		--pp-card-title: var(--t24);
		--pp-line-body: 1.3;
		--pp-ls-label: 0.1em;
	}
}

/* Section rhythm: mobile 44, desktop per Figma (88 / 92 / 66 / 68). */
.pp-details,
.pp-info,
.pp-reviews,
.pp-related {
	margin-top: calc(44 * var(--u));
}

.pp-h2 {
	margin: 0;
	color: #000;
	font-size: var(--pp-h);
	font-weight: var(--fw-medium);
	line-height: var(--pp-line);
	letter-spacing: var(--ls-tight);
}

.pt-product :where(ul, ol, dl, dd, p, h1, h2, h3) {
	margin: 0;
	padding: 0;
}

.pt-product :where(ul, ol) {
	list-style: none;
}

/* =====================================================================
 * Product main
 * =================================================================== */
.pp-main {
	margin-top: 0;
}

.pp-crumbs {
	display: none; /* not in the approved mobile frame */
}

.pp-main__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: calc(40 * var(--u));
}

/* ---- Gallery ------------------------------------------------------- */
.pp-gallery {
	position: relative;
	overflow: hidden;
	height: calc(522 * var(--u));
	border-radius: calc(24 * var(--u));
	background: var(--color-surface-3);
}

.pp-gallery__slides {
	position: absolute;
	inset: 0;
}

.pp-gallery__slide {
	position: absolute;
	inset: 0;
}

.pp-gallery__slide[hidden] {
	display: none;
}

/* The approved vial sits in the middle 70% of the frame (mobile is lifted to leave room for the dots).
   `multiply` lets a white or light photo background melt into the light-blue frame. */
.pp-gallery__img {
	position: absolute;
	left: 0;
	top: 8.8%;
	width: 100%;
	height: 70.4%;
	max-width: none;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* WooCommerce's layout CSS (.woocommerce img / .woocommerce-page img { height:auto; max-width:100% })
   out-ranks the single-class rule above and would let the photo keep its own aspect ratio and overflow
   the frame. This higher-specificity copy keeps the approved box for every image shape. */
.pt-product .pp-gallery__img {
	width: 100%;
	height: 70.4%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	object-position: center;
}

.pp-gallery__nav {
	display: none; /* mobile uses the dots */
}

.pp-gallery__dots {
	position: absolute;
	left: 50%;
	bottom: calc(36 * var(--u));
	display: flex;
	gap: calc(6 * var(--u));
	transform: translateX(-50%);
}

.pp-gallery__dot {
	position: relative;
	width: calc(6 * var(--u));
	height: calc(4 * var(--u));
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(27, 63, 209, 0.3);
	cursor: pointer;
	transition: width var(--transition), background-color var(--transition);
}

.pp-gallery__dot::after {
	content: "";
	position: absolute;
	inset: -10px -3px; /* comfortable touch target around a 4px dot */
}

.pp-gallery__dot.is-active {
	width: calc(18 * var(--u));
	background: #1b3fd1;
}

.pp-gallery__dot:focus-visible,
.pp-btn:focus-visible,
.pp-qty__btn:focus-visible,
.pp-reviews__row:focus-visible,
.pp-crumbs__link:focus-visible {
	outline: 2px solid var(--color-action);
	outline-offset: 2px;
}

.no-js .pp-gallery__dots,
.no-js .pp-gallery__nav {
	display: none;
}

/* ---- Head ---------------------------------------------------------- */
.pp-cat {
	color: var(--color-action);
	font-size: var(--pp-small);
	line-height: 1.21;
	letter-spacing: var(--pp-ls-label);
	text-transform: uppercase;
	opacity: var(--opacity-secondary);
}

.pp-title {
	margin-top: calc(4 * var(--u));
	color: #000;
	font-size: var(--pp-h);
	font-weight: var(--fw-medium);
	line-height: var(--pp-line);
	letter-spacing: var(--ls-tight);
	overflow-wrap: break-word;
}

.pp-desc {
	max-width: calc(315 * var(--u));
	margin-top: calc(12 * var(--u));
	color: var(--pp-ink);
	font-size: var(--pp-body);
	line-height: var(--pp-line-body);
	letter-spacing: var(--ls-tight);
	opacity: var(--opacity-tertiary);
}

.pp-desc p + p {
	margin-top: 0.6em;
}

/* The full WooCommerce description may contain lists, headings and images. */
.pp-desc ul,
.pp-desc ol {
	margin: 0.6em 0 0;
	padding-left: 1.25em;
}

.pp-desc ul { list-style: disc; }
.pp-desc ol { list-style: decimal; }
.pp-desc li + li { margin-top: 0.25em; }

.pp-desc :is(h2, h3, h4) {
	margin-top: 0.8em;
	font-size: inherit;
	font-weight: var(--fw-medium);
}

.pp-desc img {
	max-width: 100%;
	height: auto;
}

.pp-desc a {
	text-decoration: underline;
}

/* ---- Price / pills / stock ---------------------------------------- */
.pp-buy {
	margin-top: calc(24 * var(--u));
}

/* Mobile: "price per vial   In stock" on one row, pills below. Desktop: price row, then pills + stock. */
.pp-buy__info {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	grid-template-areas: "price stock"; /* 1.0.0: no presentation pills */
	column-gap: calc(16 * var(--u));
	row-gap: calc(12 * var(--u));
	align-items: center;
}

.pp-priceline {
	grid-area: price;
	display: flex;
	align-items: center;
	gap: calc(16 * var(--u));
}

.pp-price {
	color: #000;
	font-size: var(--pp-price);
	font-weight: var(--fw-medium);
	line-height: var(--pp-line);
	letter-spacing: var(--ls-tight);
}

.pp-price del {
	margin-right: 0.35em;
	font-size: 0.6em;
	font-weight: var(--fw-regular);
	opacity: var(--opacity-tertiary);
}

.pp-price ins {
	text-decoration: none;
}

/* Currency shown after the amount (store setting): keep a space before it. */
.pp-price .woocommerce-Price-currencySymbol:last-child {
	margin-left: 0.25em;
}

.pp-unit {
	color: var(--pp-ink);
	font-size: var(--pp-body);
	line-height: var(--pp-line-body);
	letter-spacing: var(--ls-tight);
	opacity: var(--opacity-tertiary);
}

.pp-pills {
	grid-area: pills;
	display: flex;
	flex-wrap: wrap;
	gap: calc(8 * var(--u));
}

/* Display only (not Woo variations): the selected one is the real presentation; the other is an
   example that is not purchasable. */
.pp-pill {
	display: inline-flex;
	align-items: center;
	padding: calc(8 * var(--u)) calc(16 * var(--u));
	border: 1px solid var(--color-border-strong);
	border-radius: 999px;
	font-size: var(--pp-body);
	line-height: var(--pp-line-body);
	letter-spacing: var(--ls-tight);
	white-space: nowrap;
	cursor: default;
}

.pp-pill.is-selected {
	background: var(--color-surface-1);
	color: var(--color-text-brand);
}

.pp-pill.is-unavailable {
	color: rgba(20, 55, 185, 0.5);
}

.pp-stock {
	grid-area: stock;
	display: inline-flex;
	align-items: center;
	gap: calc(10 * var(--u));
	padding-left: calc(10 * var(--u));
	color: #2e7865;
	font-size: var(--pp-body);
	line-height: var(--pp-line-body);
	letter-spacing: var(--ls-tight);
}

.pp-stock__dot {
	flex: none;
	width: calc(5 * var(--u));
	height: calc(5 * var(--u));
	border-radius: 50%;
	background: currentColor;
}

/* Out of stock / backorder are not in Figma (inferred colours). */
.pp-stock.is-out {
	color: #b3261e;
}

.pp-stock.is-backorder {
	color: #9a5b00;
}

/* ---- Quantity + Add to cart + Blog -------------------------------- */
.pp-actions {
	display: flex;
	align-items: stretch;
	gap: calc(16 * var(--u));
	max-width: calc(343 * var(--u));
	margin-top: calc(24 * var(--u));
}

.pp-cart {
	display: flex;
	flex: 1 1 auto;
	align-items: stretch;
	gap: calc(8 * var(--u));
	min-width: 0;
	margin: 0;
}

.pp-actions__native {
	flex: 1 1 auto;
	min-width: 0;
}

/* Variable (and other non-simple) products: the standard WooCommerce form, dressed with the same components
   (pill select, quantity pill, primary button). Markup and behaviour stay WooCommerce's. */
.pp-actions:has(> .pp-actions__native) {
	flex-direction: column;
	align-items: flex-start;
	max-width: none;
}

.pp-actions__native { width: 100%; }

.pp-actions__native form.cart {
	display: flex;
	flex-direction: column;
	gap: calc(16 * var(--u));
	margin: 0;
}

.pp-actions__native table.variations {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.pp-actions__native table.variations :is(tbody, tr, th, td) {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}

.pp-actions__native table.variations tr + tr { margin-top: calc(12 * var(--u)); }

.pp-actions__native table.variations label {
	display: block;
	margin-bottom: calc(8 * var(--u));
	color: var(--pp-ink);
	font-size: var(--pp-small);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-tight);
}

.pp-actions__native table.variations select {
	width: 100%;
	max-width: calc(343 * var(--u));
	min-height: calc(43 * var(--u));
	padding: 0 calc(20 * var(--u));
	border: 1px solid var(--color-border-strong);
	border-radius: 999px;
	background-color: #fff;
	color: var(--pp-ink);
	font: inherit;
	font-size: var(--pp-body);
}

.pp-actions__native .reset_variations {
	display: inline-block;
	margin-top: calc(8 * var(--u));
	color: var(--pp-ink);
	font-size: var(--pp-small);
	text-decoration: underline;
}

.pp-actions__native .single_variation_wrap {
	display: flex;
	flex-direction: column;
	gap: calc(12 * var(--u));
}

.pp-actions__native .woocommerce-variation-price .price {
	color: #000;
	font-size: var(--pp-body);
	font-weight: var(--fw-medium);
}

.pp-actions__native .woocommerce-variation-description p { margin: 0; }

.pp-actions__native .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: stretch;
	gap: calc(8 * var(--u));
}

.pp-actions__native .woocommerce-variation-add-to-cart .quantity { order: 1; }
.pp-actions__native .woocommerce-variation-add-to-cart .single_add_to_cart_button { order: 2; }

.pp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: calc(43 * var(--u));
	padding: 0 calc(20 * var(--u));
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: var(--pp-body);
	font-weight: var(--fw-regular);
	line-height: var(--pp-line-body);
	letter-spacing: var(--ls-tight);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.pp-btn--primary {
	flex: 1 1 auto;
	margin: 0;
	background: var(--color-action);
	color: var(--color-on-action);
}

.pp-btn--primary:hover {
	background: var(--color-action-hover);
	color: var(--color-on-action);
}

.pp-btn--disabled {
	opacity: var(--opacity-tertiary);
	cursor: not-allowed;
}

.pp-btn--disabled:hover {
	background: var(--color-action);
}

.pp-btn--ghost {
	background: var(--color-bg);
	border-color: var(--color-border-strong);
	color: var(--color-text-brand);
}

.pp-btn--ghost:hover {
	border-color: var(--color-action);
}

.pp-blog {
	display: none; /* not in the approved mobile frame */
}

/* Inter arrow glyph (U+2197) from the shared arrow subset; no fallback font. */
.pp-arrow {
	font-family: var(--font-sans);
}

/* Quantity: [ - 1 + ] pill, 118 wide. */
.pp-cart .quantity,
.pp-actions__native .quantity {
	display: flex;
	flex: none;
	order: 2; /* mobile: button first, quantity second */
	align-items: center;
	justify-content: space-between;
	width: calc(118 * var(--u));
	padding: 0 calc(20 * var(--u));
	border: 1px solid var(--color-border-strong);
	border-radius: 999px;
	color: var(--pp-ink);
	font-size: var(--pp-small);
}

.pp-cart .quantity.hidden,
.pp-actions__native .quantity.hidden {
	display: none;
}

.pp-cart .quantity .screen-reader-text {
	position: absolute;
}

.pp-cart .qty,
.pp-actions__native .qty {
	flex: none;
	width: calc(30 * var(--u));
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	letter-spacing: var(--ls-tight);
	text-align: center;
	opacity: var(--opacity-secondary);
	-moz-appearance: textfield;
	appearance: textfield;
}

.pp-cart .qty::-webkit-outer-spin-button,
.pp-cart .qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.pp-cart .qty:focus-visible {
	outline: 2px solid var(--color-action);
	outline-offset: 2px;
	border-radius: 4px;
}

.pp-qty__btn {
	flex: none;
	display: grid;
	place-items: center;
	width: calc(12 * var(--u));
	min-width: 12px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--pp-ink);
	font: inherit;
	line-height: 1;
	opacity: var(--opacity-secondary);
	cursor: pointer;
}

.pp-qty__btn:disabled {
	opacity: 0.45;
	cursor: default;
}

.pp-cart .single_add_to_cart_button {
	order: 1;
}

/* Add to cart = the site's primary button (same recipe as Home "Explore products": .btn + .hm-btn).
   WooCommerce styles `.woocommerce button.button` (and `.alt`) with higher specificity than `.pp-btn`:
   3px radius, 700 weight, 100% / line-height 1, .618em 1em padding, grey/purple fill. Everything the
   primary button defines is therefore restated here, Product-scoped, without !important.
   Heights stay the Figma buy-row values (43 mobile / 60 desktop, same as the quantity box). */
.pt-product .pp-cart .single_add_to_cart_button.pp-btn--primary,
.pt-product .pp-actions .pp-actions__native button.single_add_to_cart_button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: calc(43 * var(--u));
	padding: 0 calc(20 * var(--u));
	border: 1px solid var(--color-action);
	border-radius: var(--radius-pill);
	background: var(--color-action);
	box-shadow: none;
	color: var(--color-on-action);
	font-family: inherit;
	font-size: var(--pp-body);
	font-weight: var(--fw-regular);
	line-height: var(--pp-line-body);
	letter-spacing: inherit; /* like the Home button (inherits the page value) */
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
}

.pt-product .pp-cart .single_add_to_cart_button.pp-btn--primary:hover,
.pt-product .pp-cart .single_add_to_cart_button.pp-btn--primary:active,
.pt-product .pp-actions .pp-actions__native button.single_add_to_cart_button.button:hover,
.pt-product .pp-actions .pp-actions__native button.single_add_to_cart_button.button:active {
	border-color: var(--color-action-hover);
	background: var(--color-action-hover);
	color: var(--color-on-action);
}

.pt-product .pp-cart .single_add_to_cart_button.pp-btn--primary:focus-visible,
.pt-product .pp-actions .pp-actions__native button.single_add_to_cart_button.button:focus-visible {
	outline: 2px solid var(--color-action);
	outline-offset: 2px;
}

.pt-product .pp-cart .single_add_to_cart_button.pp-btn--primary:disabled,
.pt-product .pp-cart .single_add_to_cart_button.pp-btn--primary.disabled,
.pt-product .pp-actions .pp-actions__native button.single_add_to_cart_button.button:disabled,
.pt-product .pp-actions .pp-actions__native button.single_add_to_cart_button.button.disabled {
	border-color: var(--color-action);
	background: var(--color-action);
	color: var(--color-on-action);
	opacity: var(--opacity-tertiary);
	cursor: not-allowed;
}

/* 1.0.7: WooCommerce's own stylesheet paints the variable form's button purple (#7f54b3, hover #7249a4, via
   `.woocommerce button.button.alt` / `.alt.disabled`, specificity 0,3,1-0,4,1), which beat the theme's 0,3,0 selector. The
   rules above now use `.pt-product .pp-actions .pp-actions__native button.single_add_to_cart_button.button` (0,5,1+), so the
   theme colours win by specificity, without !important. Simple products are not affected (their button has no .alt). */

/* ---- Benefit strip (desktop only: not in the mobile frame) ---------- */
.pp-benefits {
	display: none;
}

/* =====================================================================
 * Specifications + About
 * =================================================================== */
.pp-details {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: calc(44 * var(--u));
}

.pp-specs__list {
	margin-top: calc(24 * var(--u));
}

.pp-specs__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: calc(16 * var(--u));
	color: rgba(24, 24, 24, 0.75);
	font-size: var(--pp-body);
	line-height: var(--pp-line-body);
	letter-spacing: var(--ls-tight);
}

.pp-specs__row + .pp-specs__row {
	margin-top: calc(15.5 * var(--u));
	padding-top: calc(15.5 * var(--u));
	border-top: 1px solid rgba(0, 0, 0, 0.25);
}

.pp-specs__row dd {
	text-align: right;
}

.pp-about__text {
	max-width: calc(611 * var(--u));
	margin-top: calc(24 * var(--u));
	color: var(--pp-ink);
	font-size: var(--pp-body);
	line-height: var(--pp-line-body);
	letter-spacing: var(--ls-tight);
	opacity: var(--opacity-tertiary);
}

.pp-areas {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: calc(16 * var(--u));
	margin-top: calc(16 * var(--u));
}

.pp-areas__item {
	padding: calc(12 * var(--u)) calc(24 * var(--u));
	border-radius: calc(16 * var(--u));
	background: var(--color-surface-3);
	color: var(--color-action);
	font-size: var(--t16);
	line-height: var(--pp-line);
	letter-spacing: var(--ls-tight);
	text-align: center;
}

/* 1.0.3: the demo-only mobile swap of card 3 and 4 (order: 4) is removed: cards now come from the product fields and must keep
   the order the editor saved on every screen size. */

/* =====================================================================
 * Dosage & storage (reusable 3-card information component)
 * =================================================================== */
.pp-info__panel {
	padding: calc(36 * var(--u)) calc(18 * var(--u));
	border-radius: calc(36 * var(--u));
	background: var(--color-surface-1);
}

.pp-info__title {
	padding-left: calc(12 * var(--u));
}

.pp-info__cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: calc(16 * var(--u));
	margin-top: calc(24 * var(--u));
}

.pp-info__card {
	position: relative;
	min-height: calc(228 * var(--u));
	padding: calc(24 * var(--u));
	border-radius: calc(16 * var(--u));
	background: var(--color-bg);
	box-shadow: 0 calc(4 * var(--u)) calc(118.3 * var(--u)) rgba(206, 225, 255, 0.5);
}

.pp-info__eyebrow {
	color: var(--color-text-accent);
	font-size: var(--pp-small);
	line-height: 1.21;
	letter-spacing: var(--pp-ls-label);
	text-transform: uppercase;
}

.pp-info__name {
	margin-top: calc(8 * var(--u));
	padding-right: calc(40 * var(--u)); /* keep clear of the icon */
	color: #000;
	font-size: var(--pp-card-title);
	font-weight: var(--fw-medium);
	line-height: var(--pp-line);
	letter-spacing: var(--ls-tight);
}

.pp-info__body {
	max-width: calc(266 * var(--u));
	margin-top: calc(63 * var(--u));
	color: var(--pp-ink);
	font-size: var(--pp-body);
	line-height: var(--pp-line-body);
	letter-spacing: var(--ls-tight);
	opacity: var(--opacity-tertiary);
}

.pp-info__icon {
	position: absolute;
	top: calc(24 * var(--u));
	right: calc(24 * var(--u));
	width: calc(24 * var(--u));
	height: calc(24 * var(--u));
	max-width: none;
}

/* The storage vector is exported with its stroke (28x29): centre it on the 24px slot. */
.pp-info__card--storage .pp-info__icon {
	top: calc(21.5 * var(--u));
	right: calc(22 * var(--u));
	width: calc(28 * var(--u));
	height: calc(29 * var(--u));
}

/* =====================================================================
 * Reviews (placeholder content, native horizontal row)
 * =================================================================== */
.pp-reviews__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: calc(16 * var(--u));
}

.pp-reviews__short {
	color: var(--color-text-brand);
	font-size: var(--pp-small);
	line-height: 1.21;
	letter-spacing: var(--ls-tight);
	text-align: right;
}

.pp-rating,
.pp-reviews__hint {
	display: none; /* desktop only */
}

.pp-reviews__row {
	/* 1.0.9 update: the Home "Customer notes" mechanics. Native horizontal scroller (no Swiper, no "Show all"):
	   touch swipe / drag / wheel, scrollbar hidden, mobile touch snap. The cards are the shared Home card
	   (.hm-review*, home.css); the row bleeds to the viewport edges like the Home panel row. */
	display: flex;
	flex-direction: row;
	gap: calc(8 * var(--u));
	margin: calc(24 * var(--u)) calc(var(--pad) * -1) 0;
	padding: 0 var(--pad);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scroll-padding-inline: var(--pad);
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.pp-reviews__row::-webkit-scrollbar {
	display: none;
}

/* The page-wide `.pt-product :where(p...) { margin: 0 }` reset loads after home.css and ties with the Home card's
   single-class margin, so the Home value is restated here (same numbers as .hm-review__text in home.css). */
.pp-reviews__row .hm-review__text {
	margin-top: calc(71 * var(--u));
}

/* =====================================================================
 * Related products (shared Home card in the Home grid)
 * =================================================================== */
.pp-related__grid {
	margin-top: calc(24 * var(--u));
}

/* =====================================================================
 * Desktop (768+)
 * =================================================================== */
@media (min-width: 768px) {
	.pp-details {
		margin-top: calc(88 * var(--d));
		grid-template-columns: minmax(0, 573fr) minmax(0, 707fr);
		column-gap: calc(60 * var(--d));
		align-items: start;
	}

	.pp-info {
		margin-top: calc(92 * var(--d));
	}

	.pp-reviews {
		margin-top: calc(66 * var(--d));
	}

	.pp-related {
		margin-top: calc(68 * var(--d));
	}

	/* Breadcrumb: 20px, links 50%, current 85%, 16px between items. */
	.pp-crumbs {
		display: block;
		margin: 0 0 calc(38 * var(--d)); /* was -8 / 46: the negative top margin slid the text under the opaque header */
	}

	.pp-crumbs__list {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: calc(16 * var(--d));
		color: var(--pp-ink);
		font-size: var(--t20);
		line-height: 1.3;
		letter-spacing: var(--ls-tight);
	}

	.pp-crumbs__item {
		display: inline-flex;
		align-items: center;
		gap: calc(16 * var(--d));
	}

	.pp-crumbs__item + .pp-crumbs__item::before {
		content: "/";
		opacity: var(--opacity-tertiary);
	}

	.pp-crumbs__link {
		color: inherit;
		text-decoration: none;
		opacity: var(--opacity-tertiary);
		transition: opacity var(--transition);
	}

	.pp-crumbs__link:hover {
		opacity: 0.85;
	}

	.pp-crumbs__current {
		opacity: 0.85;
	}

	.pp-main__grid {
		grid-template-columns: minmax(0, 573fr) minmax(0, 707fr);
		column-gap: calc(60 * var(--d));
		align-items: start;
	}

	.pp-gallery__img {
		top: 14.75%;
	}

	.pp-gallery__dots {
		display: none;
	}

	.pp-gallery__nav {
		position: absolute;
		right: calc(36 * var(--d));
		bottom: calc(36 * var(--d));
		display: flex;
	}

	.pp-desc {
		max-width: calc(593 * var(--d));
		margin-top: calc(16 * var(--d));
	}

	.pp-buy {
		margin-top: calc(40 * var(--d));
	}

	.pp-buy__info {
		grid-template-columns: max-content max-content;
		grid-template-areas:
			"price price"
			"stock stock";
		column-gap: calc(8 * var(--d));
		row-gap: calc(16 * var(--d));
		justify-content: start;
	}

	.pp-stock {
		gap: calc(12 * var(--d));
		padding-left: 0;
	}

	.pp-stock__dot {
		width: calc(6 * var(--d));
		height: calc(6 * var(--d));
	}

	.pp-pill {
		min-height: calc(44 * var(--d));
	}

	.pp-actions {
		max-width: calc(610 * var(--d));
		gap: calc(16 * var(--d));
		margin-top: calc(32 * var(--d));
	}

	.pp-cart {
		gap: calc(16 * var(--d));
	}

	.pp-btn {
		min-height: calc(60 * var(--d));
		padding: 0 calc(30 * var(--d));
	}

	.pt-product .pp-cart .single_add_to_cart_button.pp-btn--primary,
	.pt-product .pp-actions .pp-actions__native button.single_add_to_cart_button.button {
		min-height: calc(60 * var(--d));
		padding: 0 calc(30 * var(--d));
	}

	.pp-cart .quantity,
	.pp-actions__native .quantity {
		order: 1;
		width: calc(118 * var(--d));
		padding: 0 calc(20 * var(--d));
	}

	.pp-cart .single_add_to_cart_button {
		order: 2;
	}

	.pp-actions__native table.variations select {
		max-width: calc(610 * var(--d));
		min-height: calc(60 * var(--d));
		padding: 0 calc(24 * var(--d));
	}

	.pp-actions__native .woocommerce-variation-add-to-cart { gap: calc(16 * var(--d)); }

	.pp-blog {
		display: inline-flex;
		flex: none;
		min-width: calc(114 * var(--d));
		padding: 0 calc(24 * var(--d));
	}

	/* 1.0.7: columns are sized by their text (flex-basis: auto = max-content). Outer padding 48 (first cell left, last cell
	   right), an equal 16 on both sides of each divider. At the 1440 design width the three texts need ~695 of the 699px
	   inside the box and stay on one line (see the nowrap rule below). Narrower: the box shrinks with --d while the type keeps
	   its size, so lines may wrap; below 1100px the three cells are stacked as rows instead of three squeezed columns. */
	.pp-benefits {
		display: flex;
		align-items: stretch;
		min-height: calc(105 * var(--d));
		max-width: calc(703 * var(--d));
		margin-top: calc(32 * var(--d));
		border: 1px solid var(--color-border-soft);
		border-radius: calc(36 * var(--d));
	}

	.pp-benefits__cell {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		justify-content: center;
		gap: calc(4 * var(--d));
		padding: 0 calc(16 * var(--d));
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.pp-benefits__title,
	.pp-benefits__text {
		text-wrap: balance;
	}

	.pp-benefits__cell:first-child {
		padding-left: calc(48 * var(--d));
	}

	.pp-benefits__cell:last-child {
		padding-right: calc(48 * var(--d));
	}

	.pp-benefits__cell + .pp-benefits__cell {
		border-left: 1px solid var(--color-border-soft);
	}

	.pp-benefits__title {
		color: var(--pp-ink);
		font-size: var(--t20);
		line-height: 1.3;
		letter-spacing: var(--ls-tight);
		opacity: 0.85;
	}

	.pp-benefits__text {
		color: var(--pp-ink);
		font-size: var(--t16);
		line-height: 1.21;
		letter-spacing: var(--ls-tight);
		opacity: var(--opacity-tertiary);
	}

	.pp-specs__list {
		margin-top: calc(33 * var(--d));
		padding-left: calc(6 * var(--d));
	}

	.pp-about__text {
		margin-top: calc(32 * var(--d));
	}

	.pp-areas {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: calc(16 * var(--d)) calc(17 * var(--d));
		margin-top: calc(33 * var(--d));
	}

	.pp-info__panel {
		padding: calc(48 * var(--d));
		border-radius: calc(48 * var(--d));
	}

	.pp-info__title {
		padding-left: 0;
	}

	.pp-info__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: calc(31 * var(--d));
		margin-top: calc(48 * var(--d));
	}

	.pp-info__card {
		min-height: calc(238 * var(--d));
	}

	.pp-info__body {
		max-width: calc(317 * var(--d));
		margin-top: calc(56 * var(--d));
	}

	/* Reviews: summary on the left, cards bleed to the right edge of the viewport. */
	.pp-reviews {
		--pp-bleed: calc(var(--pad) + max(0px, (100vw - 1440 * var(--d)) / 2));
		display: grid;
		grid-template-columns: calc(389 * var(--d)) minmax(0, 1fr);
		align-items: start;
	}

	.pp-reviews__head {
		display: block;
		grid-column: 1;
	}

	.pp-reviews__short {
		display: none;
	}

	.pp-rating {
		display: flex;
		align-items: center;
		width: calc(299 * var(--d));
		height: calc(82 * var(--d));
		margin-top: calc(29 * var(--d));
		padding-left: calc(24 * var(--d));
		border-radius: calc(16 * var(--d));
		background: var(--color-surface-3);
		color: var(--color-text-brand);
	}

	.pp-rating__score {
		font-size: var(--t60);
		font-weight: var(--fw-medium);
		line-height: 1.21;
		letter-spacing: var(--ls-tight);
	}

	.pp-rating__sep {
		align-self: stretch;
		width: 1px;
		margin: calc(1 * var(--d)) calc(28 * var(--d)) calc(1 * var(--d)) calc(28 * var(--d));
		background: var(--color-muted);
	}

	.pp-rating__count {
		width: calc(106 * var(--d));
		font-size: var(--pp-body);
		line-height: 1.3;
		letter-spacing: var(--ls-tight);
		opacity: var(--opacity-tertiary);
	}

	.pp-reviews__hint {
		display: block;
		max-width: calc(306 * var(--d));
		margin-top: calc(20 * var(--d));
		color: var(--pp-ink);
		font-size: var(--pp-small);
		line-height: 1.21;
		letter-spacing: var(--ls-tight);
		opacity: var(--opacity-tertiary);
	}

	.pp-reviews__row {
		/* Home "Customer notes" scale for the shared card: scoped type tokens (same values as .hm-notes). */
		--t24: max(13px, calc(24 * var(--d)));
		--t20: max(11.5px, calc(20 * var(--d)));
		--t16: max(11px, calc(16 * var(--d)));
		grid-column: 2;
		align-items: stretch;
		gap: calc(36 * var(--d));
		margin: 0 calc(var(--pp-bleed) * -1) 0 0;
		padding: 0 var(--pp-bleed) 0 0;
		/* No snap on desktop (as Home): proximity snapping pulled small wheel steps back to the start. */
		scroll-snap-type: none;
		scroll-padding-inline: 0;
	}

	.pp-reviews__row .hm-review__text {
		margin-top: calc(54 * var(--d));
	}

	.pp-related__grid {
		margin-top: calc(40 * var(--d));
	}
}

/* Space between the last section and the footer (Figma: mobile 44, desktop 76). */
.pt-product + .site-footer {
	margin-top: calc(44 * var(--m));
}

@media (min-width: 768px) {
	.pt-product + .site-footer {
		margin-top: calc(76 * var(--d));
	}
}

@media (prefers-reduced-motion: reduce) {
	.pp-gallery__dot,
	.pp-btn,
	.pp-crumbs__link {
		transition: none !important;
	}

	.pp-reviews__row {
		scroll-behavior: auto;
	}
}

/* =====================================================================
 * 1.0.2: variable products
 * =================================================================== */

/* One price and one stock line only: the theme's own .pp-price / .pp-stock are updated by assets/js/variations.js from the
   selected variation, so WooCommerce's duplicate variation price / availability output is hidden (it stays in the DOM). */
.pp-actions__native .woocommerce-variation-price,
.pp-actions__native .woocommerce-variation-availability {
	display: none;
}

/* Specifications: rows can be hidden (variation values not available / no selection). The divider belongs to every visible
   row that follows another visible row, so a hidden first row never leaves a stray line. */
.pp-specs__row[hidden] {
	display: none;
}

.pp-specs__list > .pp-specs__row[data-pp-spec] + .pp-specs__row[data-pp-spec],
.pp-specs__list > .pp-specs__row[data-pp-spec] ~ .pp-specs__row[data-pp-spec] {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.pp-specs__list > .pp-specs__row[data-pp-spec]:not([hidden]) ~ .pp-specs__row[data-pp-spec]:not([hidden]) {
	margin-top: calc(15.5 * var(--u));
	padding-top: calc(15.5 * var(--u));
	border-top: 1px solid rgba(0, 0, 0, 0.25);
}

/* 1.0.3: About This Compound paragraphs and the card title inside an existing .pp-areas__item. */
.pp-about__text + .pp-about__text {
	margin-top: calc(16 * var(--u));
}

.pp-areas__title {
	font-weight: 600; /* "Title:" in bold inside the same text line; no extra spacing (Inter is a variable font). */
}

/* 1.0.4: About This Compound = standard WooCommerce Description (sanitised HTML). Same typography as .pp-about__text. */
.pp-about__body {
	max-width: calc(611 * var(--u));
	margin-top: calc(24 * var(--u));
	color: var(--pp-ink);
	font-size: var(--pp-body);
	line-height: var(--pp-line-body);
	letter-spacing: var(--ls-tight);
	opacity: var(--opacity-tertiary);
}

.pp-about__body > * + * {
	margin-top: calc(16 * var(--u));
}

.pp-about__body ul,
.pp-about__body ol {
	padding-left: 1.25em;
}

.pp-about__body ul { list-style: disc; }
.pp-about__body ol { list-style: decimal; }
.pp-about__body li + li { margin-top: 0.25em; }

.pp-about__body :is(h3, h4) {
	font-size: inherit;
	font-weight: var(--fw-medium);
}

.pp-about__body a {
	text-decoration: underline;
}

@media (min-width: 768px) {
	.pp-about__text + .pp-about__text {
		margin-top: calc(16 * var(--d));
	}

	.pp-about__body {
		margin-top: calc(32 * var(--d));
	}

	.pp-about__body > * + * {
		margin-top: calc(16 * var(--d));
	}
}

/* =====================================================================
 * 1.0.6: variation buttons (Figma 454:3356 desktop / 454:3044 mobile)
 * The native <select> stays in the form (WooCommerce reads/writes it); only the buttons are visible.
 * =================================================================== */

/* Native select: out of the layout, still in the DOM and in the form. */
.pp-actions__native .pp-vselect {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

/* Without JS the select must stay usable: it is hidden only after variations.js marks it (.pp-vselect), and the buttons are
   inert until then. */
.pp-actions__native .pp-vrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: calc(8 * var(--u));
	row-gap: calc(12 * var(--u));
}

/* The attribute label is the group's accessible name (aria-label); the visible label is not in the Figma frames. */
.pp-actions__native:has(.pp-vpills) table.variations label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.pp-vpills {
	display: flex;
	flex-wrap: wrap;
	gap: calc(8 * var(--u));
	min-width: 0;
}

.pp-vpill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: calc(37 * var(--u));
	padding: calc(8 * var(--u)) calc(16 * var(--u));
	border: 1px solid var(--color-border-strong);
	border-radius: 46px;
	background: transparent;
	box-shadow: none;
	color: var(--color-action);
	font-family: inherit;
	font-size: var(--pp-body);
	font-weight: var(--fw-regular);
	line-height: var(--pp-line-body);
	letter-spacing: var(--ls-tight);
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pp-vpill__strength {
	text-transform: uppercase;
}

.pp-vpill__sep {
	margin: 0 0.35em;
}

/* Inactive: brand blue at half strength; active: surface fill, dark text. */
.pp-vpill:not(.is-selected) .pp-vpill__strength,
.pp-vpill:not(.is-selected) .pp-vpill__sep,
.pp-vpill:not(.is-selected) .pp-vpill__pack {
	opacity: 0.5;
}

.pp-vpill:hover {
	border-color: var(--color-action);
	background: transparent;
	color: var(--color-action);
}

.pp-vpill.is-selected,
.pp-vpill.is-selected:hover {
	border-color: var(--color-border-strong);
	background: var(--color-surface-1);
	color: var(--color-text-brand);
}

.pp-vpill.is-selected .pp-vpill__strength,
.pp-vpill.is-selected .pp-vpill__sep,
.pp-vpill.is-selected .pp-vpill__pack {
	opacity: 0.85;
}

.pp-vpill:focus-visible {
	outline: 2px solid var(--color-action);
	outline-offset: 2px;
}

/* Out of stock / no variation: selectable (the buyer can see the state) but visibly different; only the purchase is blocked
   by WooCommerce. Not a Figma state: dashed border + struck-through text, kept readable. */
.pp-vpill.is-unavailable {
	border-style: dashed;
}

.pp-vpill.is-unavailable .pp-vpill__strength,
.pp-vpill.is-unavailable .pp-vpill__pack {
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

/* Combination that cannot exist with the other chosen attributes (multi-attribute products only). */
.pp-vpill.is-blocked {
	cursor: not-allowed;
	opacity: 0.45;
}

/* Stock sits on the pill row, as in Figma. */
.pp-vrow .pp-stock {
	padding-left: calc(8 * var(--u));
	margin: 0;
}

/* Clear link under the buttons, shown by WooCommerce only after a choice. */
.pp-actions__native .reset_variations {
	margin-top: calc(8 * var(--u));
}

/* Action row: Add to cart first, quantity second on mobile (Figma mobile); quantity, Add to cart, Blog on desktop. */
.pp-actions__native .woocommerce-variation-add-to-cart {
	align-items: stretch;
}

.pp-actions__native .woocommerce-variation-add-to-cart .single_add_to_cart_button {
	flex: 1 1 auto;
	order: 1;
}

.pp-actions__native .woocommerce-variation-add-to-cart .quantity {
	order: 2;
}

.pp-actions__native .woocommerce-variation-add-to-cart .pp-blog {
	order: 3;
}

@media (min-width: 768px) {
	.pp-actions__native .pp-vrow {
		column-gap: calc(8 * var(--d));
		row-gap: calc(16 * var(--d));
	}

	.pp-vpills {
		gap: calc(8 * var(--d));
	}

	.pp-vpill {
		min-height: calc(44 * var(--d));
		padding: calc(8 * var(--d)) calc(16 * var(--d));
		border-radius: calc(46 * var(--d));
	}

	.pp-vrow .pp-stock {
		gap: calc(12 * var(--d));
		padding-left: calc(8 * var(--d));
	}

	.pp-actions__native .woocommerce-variation-add-to-cart .quantity { order: 1; }
	.pp-actions__native .woocommerce-variation-add-to-cart .single_add_to_cart_button {
		flex: 0 1 calc(346 * var(--d));
		order: 2;
	}
	.pp-actions__native .woocommerce-variation-add-to-cart .pp-blog { order: 3; }
	.pp-actions__native form.cart { gap: calc(32 * var(--d)); }
}

/* Small phones: the buttons wrap to a second line instead of overflowing. */
@media (max-width: 380px) {
	.pp-vpills { width: 100%; }
	.pp-vpill { flex: 1 1 auto; white-space: normal; text-align: center; }
}

/* 1.0.7: benefit strip at the 1440 design width (single line, as in Figma) and the tablet variant. */
@media (min-width: 1440px) {
	.pp-benefits__title,
	.pp-benefits__text {
		white-space: nowrap;
	}
}

@media (min-width: 768px) and (max-width: 1099px) {
	.pp-benefits {
		flex-direction: column;
		max-width: none;
		min-height: 0;
		border-radius: 28px;
	}

	.pp-benefits__cell,
	.pp-benefits__cell:first-child,
	.pp-benefits__cell:last-child {
		flex: none;
		padding: 14px 28px;
	}

	.pp-benefits__cell + .pp-benefits__cell {
		border-top: 1px solid var(--color-border-soft);
		border-left: 0;
	}
}

/* =====================================================================
 * 1.0.7
 * =================================================================== */

/* No visible "Clear": the buttons switch between variations. The link stays in the DOM (WooCommerce's reset logic and
   programmatic resets keep working), but it takes no space and is not shown. Not display:none: WooCommerce animates it with
   jQuery fadeIn(), which writes an inline `display`; position/size/clip below are not touched by that. variations.js also takes it
   out of the tab order and the accessibility tree. */
.pp-actions__native .pp-vrow ~ .reset_variations {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	pointer-events: none;
}

/* Fallback (variations.js missing or failed): the native select is shown, the buttons are hidden, Clear is available again. */
.pp-actions__native form.pt-vpills-failed .pp-vselect {
	position: static;
	width: 100%;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
	white-space: normal;
}

.pp-actions__native form.pt-vpills-failed .pp-vpills {
	display: none;
}

.pp-actions__native form.pt-vpills-failed .pp-vrow ~ .reset_variations {
	position: static;
	width: auto;
	height: auto;
	margin-top: calc(8 * var(--u));
	overflow: visible;
	clip-path: none;
	pointer-events: auto;
}
