/* Product page (SPEC "Product page", Figma EU Website components). Mobile first: base = phones,
   larger layouts via min-width 640 / 860 / 1080 / 1180. Shared atoms (.stock, .price, .badge-save) live in card.css. */

/* --- Notices (non-JS add to cart, review sent) -------------------------------------------- */
.single-product .woocommerce-notices-wrapper:not(:empty) { width: var(--wrap); margin: 16px auto 0; }
.single-product .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; padding: 14px 16px;
	list-style: none; border: 1px solid var(--line); border-radius: var(--r-img); background: var(--wash-accent); font-size: 14px;
}
.single-product .woocommerce-notices-wrapper .woocommerce-error { color: var(--stock-out-t); }
.single-product .woocommerce-notices-wrapper .button { order: 2; margin-left: auto; color: var(--accent-d); font-weight: 500; }

/* --- Buy area ------------------------------------------------------------------------------- */
.pdp-buy {
	display: grid; gap: 20px;
	padding-block: 16px 56px;
}
.pdp-buy__gallery { min-width: 0; }
.pdp-buy__summary { min-width: 0; }

.pdp-gallery {
	position: relative; margin: 0; aspect-ratio: 1; overflow: hidden;
	border: 1px solid var(--line); border-radius: var(--r-card); background: var(--grad-tile);
}
/* Swipeable photo track (scroll-snap); thumbnails (below it, left of it from 860px) scroll it */
.pdp-gallery__track {
	display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scrollbar-width: none;
}
.pdp-gallery__track::-webkit-scrollbar { display: none; }
.pdp-gallery__track:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: var(--r-card); }
.pdp-gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.pdp-gallery__img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pdp-thumb {
	width: 68px; height: 68px; padding: 4px; overflow: hidden; cursor: pointer;
	border: 1px solid var(--line); border-radius: var(--r-img); background: var(--grad-tile);
	transition: border-color .2s, box-shadow .2s;
}
.pdp-thumb[aria-current="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pdp-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdp-thumb__img { width: 100%; height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
	.pdp-gallery__track { scroll-behavior: smooth; }
}
.pdp-gallery__flag {
	position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: var(--r-tag);
	background: var(--grad); color: var(--paper); font: 500 13px/1 var(--font-text);
}
.pdp-gallery__arrow {
	position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
	border: 1px solid var(--line-2); border-radius: 50%; background: var(--paper); color: var(--ink);
	transform: translateY(-50%); transition: border-color .2s, background-color .2s, color .2s;
}
/* "Pobierz COA": white pill in the photo's bottom-left corner, opens the chosen size's lab report */
.pdp-coa {
	position: absolute; left: 12px; bottom: 12px; z-index: 2;
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); box-shadow: var(--sh);
	color: var(--ink); font: 500 14px/1 var(--font-text); text-decoration: none; transition: border-color .2s, color .2s;
}
.pdp-coa[hidden] { display: none; }
.pdp-coa__icon { width: 18px; height: 18px; color: var(--accent-d); }
.pdp-coa__icon--doc { color: var(--ink-70); }
.pdp-coa:hover { border-color: var(--line-2); color: var(--ink); }
.pdp-coa:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdp-gallery__arrow--prev { left: 12px; }
.pdp-gallery__arrow--next { right: 12px; }
.pdp-gallery__arrow--prev .pdp-gallery__arrow-icon { transform: rotate(180deg); }
.pdp-gallery__arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdp-gallery__arrow-icon { width: 18px; height: 18px; }
@media (hover: hover) {
	.pdp-gallery__arrow:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
}

.pdp-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 0; list-style: none; color: var(--ink-70); }
.pdp-crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line-2); }
.pdp-crumbs a { text-decoration: none; }
.pdp-crumbs a:hover { text-decoration: underline; }

.pdp-title { font-size: 36px; line-height: .96; letter-spacing: -.04em; }
.pdp-excerpt { margin-top: 12px; font-size: 16px; line-height: 1.4; color: var(--ink-70); }
.pdp-excerpt > * { margin: 0; }

.pdp-rating { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; color: var(--ink-70); text-decoration: none; }
.pdp-rating strong { color: var(--ink); font-weight: 500; }


/* Spec pills */
.pdp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.pdp-pill {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
	border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); font-size: 14px; line-height: 1.2;
}
.pdp-pill__icon { flex: none; width: 18px; height: 18px; color: var(--accent); }
.pdp-pill__label { color: var(--ink-70); }
.pdp-pill strong { font-weight: 500; }

/* Variant cards */
.pdp-form { margin-top: 24px; }
.pdp-variants { margin: 0; padding: 0; border: 0; min-width: 0; }
.pdp-label { margin-bottom: 12px; padding: 0; font: 500 12px/1.2 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-70); }
.vcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 8px; }
.vcard {
	position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 96px; padding: 16px;
	border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper);
	cursor: pointer; transition: border-color .2s, box-shadow .3s var(--ease), background .2s, transform .3s var(--ease-spring);
}
.vcard--static { cursor: default; border-color: var(--accent); background: var(--grad-soft); }
.vcard:has(.vcard__input:checked) { border-color: var(--accent); background: var(--grad-soft); box-shadow: var(--sh); }
.vcard:has(.vcard__input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.vcard--out { cursor: not-allowed; opacity: .55; }
.vcard__input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.vcard__badge {
	position: absolute; top: -10px; left: 12px; padding: 4px 8px; border-radius: var(--r-tag);
	background: var(--grad); color: var(--paper); font: 500 11px/1 var(--font-text); white-space: nowrap;
}
.vcard__size { font: 500 20px/1 var(--font-display); letter-spacing: -.03em; }
.vcard__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 15px; font-weight: 500; }
.vcard__price del { font-size: 12px; font-weight: 400; color: var(--ink-70); }
.vcard__ppmg { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 12px; color: var(--ink-70); }
.vcard__ppmg b { display: block; font-weight: 500; color: var(--ink); }
.vcard__out { font-size: 12px; color: var(--stock-out-t); }
/* Hover, unselected cards only: tint, plus a small jump and 5% growth. */
@media (hover: hover) {
	.vcard:not(.vcard--static, .vcard--out, :has(.vcard__input:checked)):hover { border-color: var(--orange-300); background: var(--wash-accent); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.vcard:not(.vcard--static, .vcard--out, :has(.vcard__input:checked)):hover { z-index: 2; transform: translateY(-4px) scale(1.05); box-shadow: var(--sh); }
	/* Keeps the pointer on the card after it lifts away, so it does not flicker at the bottom edge. */
	.vcard:not(.vcard--static, .vcard--out, :has(.vcard__input:checked)):hover::after { content: ""; position: absolute; inset: 0 0 -6px; }
}

/* Vial-count cards (multi-vial discount): the variant card, smaller; 2 columns on phones, one per pack from 640px.
   Row gap leaves room for the floating tag, column gap for the vials sticking out on the left. */
.pdp-packs { margin-top: 20px; }
.vcards.vcards--pack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; padding-top: 10px; }
/* Text starts just after the vials: each extra vial adds ~10px of drawing (--n set on the card). */
.vcard--pack { --text-x: calc(14px + var(--n, 3) * 10px); justify-content: center; gap: 4px; min-height: 64px; padding: 16px 8px 10px var(--text-x); }
.vcard--pack .vcard__badge { left: var(--text-x); padding: 4px 7px; }
.vcard--pack .vcard__size { font-size: 16px; }
/* Vial drawing: upright, left of the text, centred vertically, ~8px past the card's left edge.
   Its halo (page colour) cuts the card border where the vials cross it. */
.vcard__vials {
	position: absolute; top: 50%; left: -10px; width: auto; height: 46px;
	transform: translateY(-50%); pointer-events: none; overflow: visible;
}
.vial__halo { fill: var(--paper); stroke: var(--paper); stroke-width: 5; stroke-linejoin: round; }
.vial__glass { fill: var(--wash); stroke: var(--ink-50); stroke-width: 1; }
.vial__powder, .vial__label { fill: var(--paper); }
.vial__label { stroke: var(--line-2); stroke-width: .6; }
.vial__mark { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; }
.vial__text { fill: none; stroke: var(--line-2); stroke-width: 1.2; stroke-linecap: round; }
.vial__shine { fill: none; stroke: var(--paper); stroke-width: 1.2; stroke-linecap: round; }
.vial__collar { fill: var(--line-2); stroke: var(--ink-50); stroke-width: 1; }
.vial__cap { fill: var(--paper); stroke: var(--ink-50); stroke-width: 1; }
.vcard--pack .vcard__price { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 13px; }
.vcard--pack .vcard__price del { font-size: 11px; }
[data-pack-unit] { font-size: 12px; font-weight: 400; color: var(--ink-70); }
[data-pack-unit] .amount { font-size: 13px; font-weight: 500; color: var(--ink); }

/* Price block */
.pdp-stock { margin-top: 16px; font-size: 13px; }
.pdp-price { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
/* Two prices side by side, same size and weight: the price, and the price with the newsletter code (−10%). */
.pdp-price__pair { display: flex; align-items: stretch; gap: 14px; }
.pdp-price__col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.pdp-price__divider { flex: none; width: 1px; background: var(--line-2); }
.pdp-price__label { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 22px; margin: 0; font-size: 13px; line-height: 1.2; color: var(--ink-70); }
.pdp-price__label--code { padding: 3px 10px; border-radius: var(--r-tag); background: var(--wash-accent); color: var(--accent-d); font-weight: 500; }
.pdp-price__gift { width: 16px; height: 16px; flex: none; }
.pdp-price__now { font: 500 clamp(26px, 7.6vw, 30px)/1 var(--font-display); letter-spacing: -.03em; white-space: nowrap; }
.pdp-price__code { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pdp-price__was { font-size: 13px; color: var(--ink-70); white-space: nowrap; }
.pdp-price__claim {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -10px 0 -12px;
	font-size: 14px; font-weight: 500; color: var(--accent-d); text-decoration: underline; text-underline-offset: 3px;
}
.pdp-price__arrow { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.pdp-price__claim:hover .pdp-price__arrow { transform: translateX(3px); }
.pdp-price__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; }
.pdp-price__meta:not(:has(> :not([hidden]))) { display: none; }
.pdp-save { display: inline-block; padding: 5px 10px; font-size: 12px; }
.pdp-price__ppmg { font-size: 13px; color: var(--ink-70); }
.pdp-price__ppmg b { font-weight: 500; color: var(--ink); }
.pdp-price__omnibus .omnibus { margin: 8px 0 0; font-size: 12px; line-height: 1.3; color: var(--ink-70); }
.pdp-price__tax { margin: 4px 0 0; color: var(--ink-70); }
.pdp .single_variation, .pdp-price [hidden] { display: none !important; }

/* Free bacteriostatic water (oryon_pdp_bonus): a card with a tag on its top edge, no price */
.pdp-bonus {
	position: relative; display: flex; align-items: center; gap: 14px;
	margin-top: 26px; padding: 22px 16px 14px;
	border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper);
}
.pdp-bonus__tag {
	position: absolute; top: 0; left: 14px; transform: translateY(-50%);
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: var(--r-tag);
	background: var(--grad); color: var(--paper); box-shadow: var(--sh-btn); font: 500 12px/1.2 var(--font-text);
}
.pdp-bonus__gift { width: 14px; height: 14px; }
.pdp-bonus__media { flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: var(--r-img); background: var(--grad-tile); }
.pdp-bonus__img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-bonus__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; }
.pdp-bonus__name { font: 500 16px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.pdp-bonus__sub { font-size: 13px; line-height: 1.35; color: var(--ink-70); }

/* Delivery estimate */
.pdp-eta {
	display: flex; align-items: center; gap: 12px; margin: 20px 0 0; padding: 10px 14px 10px 10px;
	border-radius: var(--r-img); background: color-mix(in srgb, var(--stock-in) 8%, var(--paper));
	font-size: 14px; line-height: 1.3;
}
.pdp-eta[hidden] { display: none; }
.pdp-eta__icon {
	flex: none; box-sizing: content-box; width: 20px; height: 20px; padding: 8px;
	border-radius: 50%; background: var(--paper); color: var(--stock-in-t);
}
.pdp-eta__ship { display: block; font-weight: 500; color: var(--stock-in-t); }
.pdp-eta__deliver { font-size: 13px; color: var(--ink-70); }

/* Quantity + add to cart */
.pdp-cartrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-top: 20px; }
.pdp-eta + .pdp-cartrow { margin-top: 12px; }
.pdp-add { min-height: 52px; padding-inline: 20px; font-size: 15px; gap: 10px; }
.pdp-add .btn__icon { width: 20px; height: 20px; }
.pdp-add:hover .btn__icon { transform: none; }
.pdp-add:is(:disabled, .disabled) { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.pdp-add.is-loading { opacity: .8; pointer-events: none; }
.pdp-add.is-added { background: var(--ink); box-shadow: var(--sh-ink); }
.pdp .added_to_cart { display: none; }

/* Trust tiles (Figma 32727:1063) */
.pdp-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.trust-tile {
	/* logo / title / text rows shared across the tiles (subgrid), so titles line up when the badges wrap */
	display: grid; grid-row: span 3; grid-template-rows: subgrid; justify-items: start; align-content: start; row-gap: 10px; padding: 16px;
	border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper);
}
/* Carrier logo (icons/inpost.svg) and payment badges (icons/pay-*.svg) */
.trust-tile__logo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; }
.trust-tile__brand { width: auto; height: 32px; }
.trust-tile__pay { width: 36px; height: 24px; }
.trust-tile__title { font-size: 16px; font-weight: 500; line-height: 1.2; }
.trust-tile__text { font-size: 14px; line-height: 1.2; color: var(--ink-70); }

/* Long description (Woo product description): lead + short sections */
.pdp-desc { margin: 0 0 20px 32px; font-size: 15px; line-height: 1.45; color: var(--ink-80); }
.pdp-desc > :first-child { margin-top: 0; }
.pdp-desc > :last-child { margin-bottom: 0; }
.pdp-desc p { margin: 0 0 12px; }
.pdp-desc h3 { margin: 20px 0 6px; font: 500 16px/1.2 var(--font-text); letter-spacing: 0; color: var(--ink); }
.pdp-desc a { color: var(--accent-d); font-weight: 500; }

/* Mini FAQ (Figma 32727:1036) */
.pdp-faq { margin-top: 24px; border-bottom: 1px solid var(--line-2); }
.pdp-faqi { border-top: 1px solid var(--line-2); }
.pdp-faqi summary {
	display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 0;
	font-size: 16px; font-weight: 500; line-height: 1.2; list-style: none; cursor: pointer;
}
.pdp-faqi summary::-webkit-details-marker { display: none; }
.pdp-faqi summary > span:not(.pdp-faqi__toggle) { flex: 1; }
.pdp-faqi__lead { flex: none; width: 20px; height: 20px; color: var(--accent); }
.pdp-faqi__toggle { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 6px; transition: background .2s; }
.pdp-faqi__chev { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.pdp-faqi[open] .pdp-faqi__toggle { background: var(--wash); }
.pdp-faqi[open] .pdp-faqi__chev { transform: rotate(180deg); }
.pdp-faqi > p { margin: 0 0 20px 32px; font-size: 15px; line-height: 1.45; color: var(--ink-80); }

/* Wholesale band (owner, 9 Nov): black card under the mini FAQ */
.pdp-wholesale {
	display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 24px; padding: 20px;
	border-radius: var(--r-img); background: var(--ink); color: var(--paper);
}
.pdp-wholesale__title { margin: 0; font: 500 20px/1.2 var(--font-display); letter-spacing: -.02em; color: inherit; }
.pdp-wholesale__text { margin: 0; font-size: 15px; line-height: 1.4; color: var(--on-dark); }
.pdp-wholesale__btn { margin-top: 8px; }

.pdp-disclaimer {
	display: flex; gap: 10px; margin: 20px 0 0; padding: 12px 14px;
	border-radius: var(--r-img); background: var(--wash); font-size: 12px; line-height: 1.4; color: var(--ink-70);
}
.pdp-disclaimer__icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }

/* --- Bands ---------------------------------------------------------------------------------- */
.pdp-band { padding-block: var(--section-y); }
.pdp-band--cert { background: var(--grad-cert); }
.pdp-band--wash, .pdp-related { background: var(--wash); }
.pdp .wrap--narrow { max-width: 880px; }

.pdp-head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.pdp-head h2 { margin-top: 16px; }
.pdp-head__lead { margin: 16px 0 0; color: var(--ink-70); line-height: 1.35; }
.pdp-kicker { font-size: 14px; } /* + .tag--on-wash */
.pdp-band--reviews .pdp-kicker { background: var(--wash-accent); }

/* Lab band: the four tests */
.pdp-tests { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.pdp-test {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
	border-radius: var(--r-pill); background: var(--paper); font-size: 14px; line-height: 1.2; color: var(--ink);
}
.pdp-test__icon { width: 16px; height: 16px; flex: none; color: var(--accent); }

/* Lab reports */
.certs { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; padding: 0; list-style: none; }
.cert {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 16px 18px;
	border-radius: var(--r-card); background: var(--paper); box-shadow: var(--sh);
}
.cert__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--r-img); background: var(--wash-accent); color: var(--accent); }
.cert__svg { width: 24px; height: 24px; }
.cert__text { display: flex; flex: 1 1 180px; flex-direction: column; gap: 4px; min-width: 0; }
.cert__title { font-size: 16px; font-weight: 500; }
.cert__sub { color: var(--ink-70); }
.cert__link {
	display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: auto;
	font-size: 14px; font-weight: 500; color: var(--accent-d); text-decoration: none; white-space: nowrap;
}
.cert__link:hover { text-decoration: underline; }
.cert--off { box-shadow: none; border: 1px dashed var(--line); }
.cert--off .cert__icon { background: var(--wash); color: var(--ink-50); }
.cert--off .cert__link { color: var(--ink-50); cursor: not-allowed; }
.cert--off .cert__link:hover { text-decoration: none; }

/* Description cards */
.dcards { display: grid; gap: 16px; }
.dcard { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.dcard__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 12px/1.2 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-70); }
.dcard__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--wash-accent); color: var(--accent); }
.dcard__svg { width: 18px; height: 18px; }
.dcard__title { margin: 16px 0 12px; font-size: 22px; line-height: 1.1; letter-spacing: -.03em; }
.dcard__rows { margin: 0; border-top: 1px solid var(--line); }
.dcard__rows > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.dcard__rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dcard__rows dt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-70); }
.dcard__rows dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; }
.dcard__list { margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; }
.dcard__list li { position: relative; padding: 6px 0 6px 18px; font-size: 15px; font-weight: 500; }
.dcard__list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Reviews */
.rsummary { display: grid; gap: 20px; padding: 24px; border-radius: var(--r-xl); background: var(--wash-accent); }
.rsummary__avg { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.rsummary__num { font: 500 60px/1 var(--font-display); letter-spacing: -.04em; }
.rsummary__avg .star { width: 20px; height: 20px; }
.rsummary__bars { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rsummary__bars li { display: grid; grid-template-columns: 36px minmax(0, 1fr) 28px; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-70); }
.rsummary__label { display: inline-flex; align-items: center; gap: 3px; }
.rsummary__label .star { width: 12px; height: 12px; }
.rsummary__bar { height: 7px; overflow: hidden; border-radius: 4px; background: var(--line); }
.rsummary__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.rsummary__count { text-align: right; }

.reviews { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.review__card { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.review__avatar {
	display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%;
	background: var(--grad-text); color: var(--paper); font: 500 17px/1 var(--font-display);
}
.review__avatar--1 { background: var(--grad); }
.review__avatar--2 { background: linear-gradient(118deg, var(--ink-80), var(--ink-70)); }
.review__avatar--3 { background: linear-gradient(118deg, var(--accent-h), var(--orange-200)); }
.review__body { flex: 1; min-width: 0; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.review__name { font: 500 16px/1.2 var(--font-display); letter-spacing: -.02em; }
.review__date { color: var(--ink-70); }
.review__rating { margin: 6px 0 0; }
.review__rating .star { width: 14px; height: 14px; }
.review__pending { margin: 6px 0 0; color: var(--stock-low-t); }
.review__text { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-80); overflow-wrap: anywhere; }
.review__text p:last-child { margin-bottom: 0; }
.reviews .children { margin: 12px 0 0 28px; padding: 0; list-style: none; }
.reviews__empty { margin: 0; text-align: center; }
.reviews__pages ul { display: flex; justify-content: center; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.reviews__pages :is(a, span) { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line); text-decoration: none; }
.reviews__pages .current { border-color: var(--accent); }

.rform { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--paper); }
.rform__note { margin-top: 24px; text-align: center; }
.rform .comment-reply-title { margin-bottom: 16px; }
.rform .comment-reply-title small { display: block; margin-top: 8px; font: 400 14px/1.2 var(--font-text); }
.rform form { display: grid; gap: 16px; }
.rform .field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.rform label, .star-picker legend { font-size: 14px; font-weight: 500; }
.rform :is(input[type="text"], input[type="email"], textarea) {
	width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-img);
	background: var(--paper); font-size: 16px;
}
.rform textarea { min-height: 120px; resize: vertical; }
.rform :is(input, textarea):focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--wash-accent); }
.rform .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 13px; color: var(--ink-70); }
.rform .comment-form-cookies-consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.rform .comment-form-cookies-consent label { font-weight: 400; }
.rform .form-submit { margin: 0; }
.rform .form-submit .btn { width: 100%; }

.star-picker { margin: 0; padding: 0; border: 0; }
.star-picker legend { margin-bottom: 6px; padding: 0; }
.star-picker__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-picker label { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.star-picker .star { width: 28px; height: 28px; transition: color .15s; }
.star-picker input:checked + label .star,
.star-picker input:checked + label ~ label .star { color: var(--accent); }
.star-picker input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
@media (hover: hover) {
	.star-picker__stars:hover label .star { color: var(--line-2); }
	.star-picker label:hover .star, .star-picker label:hover ~ label .star { color: var(--orange-300); }
}

/* Related products: swipeable row on phones, 4 columns on desktop */
.pdp-related__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.pdp-related__row {
	display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px;
	margin: 0; padding: 4px 0 12px; list-style: none;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.pdp-related__row::-webkit-scrollbar { display: none; }
.pdp-related__row > li { scroll-snap-align: start; min-width: 0; }

/* Sticky add-to-cart bar (phones only) */
.pdp-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
	display: flex; align-items: center; gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line); background: var(--paper); box-shadow: var(--sh-lg);
	transform: translateY(110%); transition: transform .35s var(--ease);
}
.pdp-sticky[hidden] { display: none; }
.pdp-sticky.is-visible { transform: none; }
.pdp-sticky__info { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.pdp-sticky__name { overflow: hidden; font-size: 13px; color: var(--ink-70); white-space: nowrap; text-overflow: ellipsis; }
.pdp-sticky__price { font: 500 20px/1 var(--font-display); letter-spacing: -.03em; white-space: nowrap; }
.pdp-sticky__btn { flex: none; min-height: 48px; padding: 12px 20px; }
.pdp-sticky__btn:disabled { opacity: .5; }
body.has-pdp-sticky { padding-bottom: 72px; }

/* --- ≥ 640px ------------------------------------------------------------------------------- */
@media (min-width: 640px) {
	.vcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vcards.vcards--pack { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 22px; }
	.pdp-buy__gallery { width: 100%; max-width: 480px; justify-self: center; }
	.pdp-title { font-size: 44px; }
	.pdp-price__now { font-size: 38px; }
	.pdp-price__pair { gap: 20px; }
	.rsummary { grid-template-columns: 200px minmax(0, 1fr); align-items: center; padding: 28px 32px; }
	.rform { padding: 32px; }
	.rform .comment-form-author, .rform .comment-form-email { grid-column: span 1; }
	.rform form { grid-template-columns: 1fr 1fr; }
	.rform form > :not(.comment-form-author, .comment-form-email) { grid-column: 1 / -1; }
	.rform .form-submit .btn { width: auto; }
	.pdp-related__row { grid-auto-columns: 44%; }
	.cert__link { margin-left: auto; }
}

/* --- ≥ 860px: two columns, sticky gallery, no sticky bar ------------------------------------ */
@media (min-width: 860px) {
	.pdp-buy { grid-template-columns: minmax(0, 1fr) clamp(372px, 40vw, 520px); gap: 40px; align-items: start; padding-block: 32px 80px; }
	.pdp-title { font-size: clamp(40px, 3.75vw, 52px); }
	.pdp-price__now { font-size: clamp(30px, 2.6vw, 38px); }
	.pdp-buy__gallery { display: flex; align-items: flex-start; gap: 12px; max-width: none; position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--strip-h, 32px) + 96px); }
	/* Portrait tile, as tall as the first screen allows (164px = header, top padding, bottom margin) */
	.pdp-gallery { flex: 1; min-width: 0; aspect-ratio: 4 / 5; max-height: max(360px, calc(100vh - var(--wp-admin--admin-bar--height, 0px) - var(--strip-h, 32px) - 164px)); }
	.pdp-thumbs { flex: none; flex-direction: column; order: -1; margin-top: 0; }
	.pdp-trust { gap: 12px; }
	.trust-tile { padding: 20px; row-gap: 12px; }
	.trust-tile__title { font-size: 18px; }
	.pdp-faqi summary { font-size: 18px; }
	.dcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.certs { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
	.pdp-sticky, body.has-pdp-sticky .pdp-sticky { display: none; }
	body.has-pdp-sticky { padding-bottom: 0; }
}

/* --- ≥ 1080px ------------------------------------------------------------------------------ */
@media (min-width: 1080px) {
	.pdp-related__row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding: 0; }
	.dcard { padding: 28px; }
}
