/* EzMe product page. Loaded only on single product pages (inc/ezme-product.php). */

body.ezme-pdp {
	--ez-ink: #231f55;
	--ez-ink-soft: #4a4672;
	--ez-muted: #5f5b7d;
	--ez-accent: #ad83b4;
	--ez-accent-strong: #7d5287;
	--ez-surface: #f6f5fa;
	--ez-surface-2: #eeebf5;
	--ez-line: #e3dfed;
	--ez-white: #fff;
	--ez-ok: #2f7a55;
	--ez-r-lg: 16px;
	--ez-r: 12px;
	--ez-r-sm: 10px;
	--ez-shadow: 0 1px 2px rgba(35, 31, 85, .06), 0 10px 28px -12px rgba(35, 31, 85, .22);
	--ez-shadow-up: 0 -1px 0 rgba(35, 31, 85, .06), 0 -12px 28px -16px rgba(35, 31, 85, .28);
	--ez-out: cubic-bezier(.23, 1, .32, 1);
	--ez-drawer: cubic-bezier(.32, .72, 0, 1);
	--ez-gap: clamp(56px, 7vw, 104px);

	overflow-x: clip;
	color: var(--ez-ink);
	font-size: var(--ez-fs-body);
	line-height: 1.6;
	interpolate-size: allow-keywords;
}

body.ezme-pdp ::selection { background: var(--ez-accent); color: var(--ez-white); }
body.ezme-pdp a { text-underline-offset: .18em; }
body.ezme-pdp :focus-visible { outline: 2px solid var(--ez-accent-strong); outline-offset: 3px; border-radius: 4px; }
body.ezme-pdp input, body.ezme-pdp textarea { caret-color: var(--ez-accent-strong); accent-color: var(--ez-ink); }

.ezme-icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Layout ---------- */

body.ezme-pdp .woocommerce-breadcrumb { font-size: var(--ez-fs-small); color: var(--ez-muted); margin: 8px 0 24px; }
body.ezme-pdp .woocommerce-breadcrumb a { color: var(--ez-muted); }

body.ezme-pdp div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
	column-gap: clamp(32px, 5vw, 80px);
	align-items: start;
	margin-bottom: var(--ez-gap);
}
body.ezme-pdp div.product::before,
body.ezme-pdp div.product::after { display: none; }

body.ezme-pdp div.product div.images,
body.ezme-pdp div.product div.summary {
	float: none;
	width: auto;
	margin: 0;
}

@media (min-width: 992px) {
	body.ezme-pdp div.product div.images { position: sticky; top: 24px; }
}
@media (max-width: 991.98px) {
	body.ezme-pdp div.product { grid-template-columns: minmax(0, 1fr); }
	body.ezme-pdp div.product div.images { margin-bottom: 28px; }
}

/* ---------- Gallery ---------- */

body.ezme-pdp .woocommerce-product-gallery__wrapper {
	background: var(--ez-surface);
	border-radius: var(--ez-r-lg);
	overflow: hidden;
}
body.ezme-pdp .woocommerce-product-gallery .flex-viewport {
	background: var(--ez-surface);
	border-radius: var(--ez-r-lg);
	overflow: hidden;
}
body.ezme-pdp .woocommerce-product-gallery__image img { mix-blend-mode: multiply; }
@media (max-width: 991.98px) {
	body.ezme-pdp .woocommerce-product-gallery .flex-viewport { border-radius: var(--ez-r); }
}
body.ezme-pdp.woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 16px 0 0 !important;
	padding: 0;
}
body.ezme-pdp .woocommerce-product-gallery .flex-control-thumbs li {
	width: 88px !important;
	float: none !important;
	margin: 0 !important;
	list-style: none;
}
body.ezme-pdp .woocommerce-product-gallery .flex-control-thumbs img {
	border-radius: var(--ez-r-sm);
	background: var(--ez-surface);
	opacity: .6;
	outline: 2px solid transparent;
	outline-offset: -2px;
	transition: opacity 150ms ease, outline-color 150ms ease;
	cursor: pointer;
}
body.ezme-pdp .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.ezme-pdp .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
body.ezme-pdp .woocommerce-product-gallery .flex-control-thumbs img.flex-active { outline-color: var(--ez-ink); }
body.ezme-pdp .woocommerce-product-gallery__trigger {
	top: 16px !important;
	right: 16px !important;
	background: var(--ez-white) !important;
	box-shadow: var(--ez-shadow);
}

@media (max-width: 991.98px) {
	body.ezme-pdp .woocommerce-product-gallery__wrapper { border-radius: var(--ez-r); }
	body.ezme-pdp .woocommerce-product-gallery .flex-control-thumbs li { width: 64px !important; }
}

/* ---------- Summary ---------- */

body.ezme-pdp .ezme-title {
	font-size: var(--ez-fs-display) !important;
	font-weight: 500;
	letter-spacing: -.025em;
	line-height: 1.08;
	margin: 0 0 12px;
	text-wrap: balance;
	color: var(--ez-ink);
}
body.ezme-pdp .ezme-tagline {
	font-size: var(--ez-fs-lead);
	line-height: 1.45;
	color: var(--ez-ink-soft);
	margin: 0 0 20px;
	max-width: 34ch;
	text-wrap: pretty;
}
body.ezme-pdp .ezme-admin-note {
	font-size: var(--ez-fs-small);
	background: #fff6c7;
	color: #5a4a00;
	border-radius: 8px;
	padding: 8px 12px;
	margin: 0 0 20px;
}
body.ezme-pdp .ezme-fill {
	background: #fff1a8;
	color: #5a4a00;
	border-radius: 4px;
	padding: 1px 6px;
	font-size: .9em;
}

body.ezme-pdp .ezme-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin: 0 0 28px;
	color: var(--ez-ink);
}
body.ezme-pdp .ezme-price__amount {
	font-size: var(--ez-fs-h2);
	font-weight: 500;
	letter-spacing: -.01em;
	font-variant-numeric: tabular-nums;
}
body.ezme-pdp .ezme-price__label { color: var(--ez-muted); font-size: var(--ez-fs-body); }

body.ezme-pdp .ezme-benefits {
	list-style: none;
	padding: 0;
	margin: 0 0 32px;
	display: grid;
	gap: 16px;
}
body.ezme-pdp .ezme-benefits li { display: flex; gap: 14px; align-items: flex-start; }
body.ezme-pdp .ezme-benefits .ezme-icon {
	width: 40px;
	height: 40px;
	padding: 9px;
	border-radius: 50%;
	background: var(--ez-surface-2);
	color: var(--ez-ink);
}
body.ezme-pdp .ezme-benefits strong { display: block; font-weight: 500; line-height: 1.35; }
body.ezme-pdp .ezme-benefits span { display: block; color: var(--ez-muted); font-size: var(--ez-fs-small); line-height: 1.45; }

/* ---------- Plans ---------- */

body.ezme-pdp form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px !important; }
body.ezme-pdp form.cart::before,
body.ezme-pdp form.cart::after { display: none; }

body.ezme-pdp .ezme-plans {
	flex: 1 1 100%;
	border: 0;
	padding: 0;
	margin: 0 0 4px;
	display: grid;
	gap: 10px;
}
body.ezme-pdp .ezme-plans__legend {
	font-size: var(--ez-fs-body);
	font-weight: 500;
	margin-bottom: 12px;
	float: none;
	width: 100%;
	padding: 0;
}
body.ezme-pdp .ezme-plans__legend span {
	display: block;
	font-weight: 400;
	font-size: var(--ez-fs-small);
	color: var(--ez-muted);
	margin-top: 2px;
}

body.ezme-pdp .ezme-plan {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px;
	min-height: 72px;
	padding: 14px 18px;
	border: 1.5px solid var(--ez-line);
	border-radius: var(--ez-r);
	background: var(--ez-white);
	cursor: pointer;
	transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
body.ezme-pdp .ezme-plan input {
	position: absolute;
	opacity: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}
body.ezme-pdp .ezme-plan__radio {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1.5px solid #b9b4cc;
	display: grid;
	place-items: center;
	color: var(--ez-white);
	transition: background-color 150ms ease, border-color 150ms ease;
}
body.ezme-pdp .ezme-plan__radio .ezme-icon {
	width: 14px;
	height: 14px;
	stroke-width: 3;
	opacity: 0;
	transform: scale(.6);
	transition: opacity 150ms var(--ez-out), transform 200ms var(--ez-out);
}
body.ezme-pdp .ezme-plan__main { display: grid; gap: 2px; }
body.ezme-pdp .ezme-plan__name { font-weight: 500; }
body.ezme-pdp .ezme-plan__meta { font-size: var(--ez-fs-small); color: var(--ez-muted); font-variant-numeric: tabular-nums; }
body.ezme-pdp .ezme-plan__price { text-align: right; color: var(--ez-muted); font-size: var(--ez-fs-small); white-space: nowrap; font-variant-numeric: tabular-nums; }
body.ezme-pdp .ezme-plan__price strong { display: block; color: var(--ez-ink); font-size: var(--ez-fs-h3); font-weight: 500; line-height: 1.2; }
body.ezme-pdp .ezme-plan__flag {
	position: absolute;
	top: -10px;
	right: 16px;
	background: var(--ez-ink);
	color: var(--ez-white);
	font-size: var(--ez-fs-small);
	font-weight: 500;
	letter-spacing: .01em;
	padding: 2px 10px;
	border-radius: 999px;
}

@media (hover: hover) and (pointer: fine) {
	body.ezme-pdp .ezme-plan:hover { border-color: #c9c3dc; }
}
body.ezme-pdp .ezme-plan:has(input:checked) {
	border-color: var(--ez-ink);
	background: var(--ez-surface);
	box-shadow: 0 0 0 1px var(--ez-ink);
}
body.ezme-pdp .ezme-plan:has(input:checked) .ezme-plan__radio { background: var(--ez-ink); border-color: var(--ez-ink); }
body.ezme-pdp .ezme-plan:has(input:checked) .ezme-plan__radio .ezme-icon { opacity: 1; transform: scale(1); }
body.ezme-pdp .ezme-plan:has(input:focus-visible) { outline: 2px solid var(--ez-accent-strong); outline-offset: 3px; }

/* ---------- Total + buy ---------- */

body.ezme-pdp .ezme-total {
	flex: 1 1 100%;
	border-top: 1px solid var(--ez-line);
	padding-top: 16px;
	margin-top: 6px;
	display: grid;
	gap: 6px;
	font-variant-numeric: tabular-nums;
}
body.ezme-pdp .ezme-total__row { display: flex; justify-content: space-between; gap: 16px; color: var(--ez-muted); font-size: var(--ez-fs-small); }
body.ezme-pdp .ezme-total__sum { color: var(--ez-ink); font-size: var(--ez-fs-lead); font-weight: 500; margin-top: 4px; }
body.ezme-pdp [data-ezme="grand-total"],
body.ezme-pdp [data-ezme="plan-total"] { transition: opacity 120ms ease; }
body.ezme-pdp .is-updating { opacity: .35; }

body.ezme-pdp form.cart div.quantity { float: none; margin: 0; }
body.ezme-pdp form.cart .qty {
	width: 72px;
	height: 56px;
	text-align: center;
	border-radius: var(--ez-r-sm);
	border: 1.5px solid var(--ez-line);
	font-variant-numeric: tabular-nums;
}
body.ezme-pdp form.cart .single_add_to_cart_button {
	float: none;
	flex: 1 1 200px;
	min-height: 56px;
	border-radius: var(--ez-r-sm);
	background: var(--ez-ink);
	color: var(--ez-white);
	border: 0;
	font-size: var(--ez-fs-body);
	font-weight: 500;
	letter-spacing: 0;
	padding: 0 24px;
	transition: transform 160ms var(--ez-out), background-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
	body.ezme-pdp form.cart .single_add_to_cart_button:hover { background: #2f2a6e; }
}
body.ezme-pdp .ezme-btn:active,
body.ezme-pdp form.cart .single_add_to_cart_button:active { transform: scale(.97); }

body.ezme-pdp .stock { display: none; }
body.ezme-pdp .wcpay-express-checkout-wrapper { margin-bottom: 20px; }

/* ---------- Trust row ---------- */

body.ezme-pdp .ezme-trust {
	list-style: none;
	padding: 20px 0 0;
	margin: 0;
	border-top: 1px solid var(--ez-line);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 20px;
	font-size: var(--ez-fs-small);
	color: var(--ez-ink-soft);
}
body.ezme-pdp .ezme-trust li { display: flex; gap: 10px; align-items: center; }
body.ezme-pdp .ezme-trust .ezme-icon { color: var(--ez-ink); }
body.ezme-pdp .ezme-trust a { color: inherit; }
@media (max-width: 420px) {
	body.ezme-pdp .ezme-trust { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Buttons ---------- */

body.ezme-pdp .ezme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: var(--ez-r-sm);
	border: 1.5px solid transparent;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: transform 160ms var(--ez-out), background-color 150ms ease, border-color 150ms ease;
}
body.ezme-pdp .ezme-btn--primary { background: var(--ez-ink); color: var(--ez-white); }
body.ezme-pdp .ezme-btn--light { background: var(--ez-white); color: var(--ez-ink); }
body.ezme-pdp .ezme-btn--ghost { background: transparent; color: var(--ez-ink); border-color: var(--ez-line); }
body.ezme-pdp .ezme-btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
	body.ezme-pdp .ezme-btn--primary:hover { background: #2f2a6e; }
	body.ezme-pdp .ezme-btn--ghost:hover { border-color: var(--ez-ink); }
}

/* ---------- Waitlist (coming soon) ---------- */

body.ezme-pdp .ezme-waitlist {
	background: var(--ez-surface);
	border-radius: var(--ez-r);
	padding: 24px;
	margin: 0 0 24px;
}
body.ezme-pdp .ezme-waitlist h2 { font-size: var(--ez-fs-h3); font-weight: 500; margin: 0 0 6px; letter-spacing: -.01em; }
body.ezme-pdp .ezme-waitlist p { margin: 0 0 16px; color: var(--ez-ink-soft); }
body.ezme-pdp .ezme-waitlist label { display: block; font-size: var(--ez-fs-small); font-weight: 500; margin-bottom: 6px; }
body.ezme-pdp .ezme-waitlist__row { display: flex; gap: 8px; flex-wrap: wrap; }
body.ezme-pdp .ezme-waitlist__row input {
	flex: 1 1 220px;
	min-height: 48px;
	padding: 0 14px;
	border-radius: var(--ez-r-sm);
	border: 1.5px solid var(--ez-line);
	background: var(--ez-white);
}
body.ezme-pdp .ezme-waitlist__row input::placeholder { color: #75718f; }
body.ezme-pdp .ezme-waitlist__consent { font-size: var(--ez-fs-small); margin: 10px 0 0 !important; color: var(--ez-muted) !important; }
body.ezme-pdp .ezme-waitlist__alt { font-size: var(--ez-fs-small); margin: 16px 0 0 !important; }
body.ezme-pdp .ezme-waitlist__done { display: flex; gap: 14px; align-items: flex-start; }
body.ezme-pdp .ezme-waitlist__done > .ezme-icon {
	width: 40px;
	height: 40px;
	padding: 9px;
	border-radius: 50%;
	background: var(--ez-ok);
	color: var(--ez-white);
	stroke-width: 2.5;
	animation: ezme-pop 260ms var(--ez-out) both;
}
@keyframes ezme-pop { from { opacity: 0; transform: scale(.85); } }

/* ---------- Sections ---------- */

body.ezme-pdp .ezme-section { grid-column: 1 / -1; margin-top: var(--ez-gap); }
body.ezme-pdp .ezme-section > h2,
body.ezme-pdp .ezme-family h2,
body.ezme-pdp .ezme-support h2 {
	font-size: var(--ez-fs-h2);
	font-weight: 500;
	letter-spacing: -.02em;
	line-height: 1.15;
	margin: 0 0 32px;
	text-wrap: balance;
	color: var(--ez-ink);
}

/* How it works: a full-bleed tinted band */
body.ezme-pdp .ezme-how {
	background: var(--ez-surface);
	margin-inline: calc(50% - 50vw);
	padding: clamp(56px, 7vw, 96px) max(16px, calc(50vw - 50%));
}
body.ezme-pdp .ezme-how__steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(24px, 3vw, 48px);
	counter-reset: ezstep;
}
body.ezme-pdp .ezme-how__steps li { counter-increment: ezstep; }
body.ezme-pdp .ezme-how__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ez-white);
	color: var(--ez-ink);
	box-shadow: var(--ez-shadow);
	margin-bottom: 20px;
}
body.ezme-pdp .ezme-how__icon .ezme-icon { width: 26px; height: 26px; }
body.ezme-pdp .ezme-how__icon::after {
	content: counter(ezstep);
	position: absolute;
	top: -4px;
	right: -6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ez-ink);
	color: var(--ez-white);
	font-size: var(--ez-fs-small);
	font-weight: 500;
	display: grid;
	place-items: center;
}
body.ezme-pdp .ezme-how h3 { font-size: var(--ez-fs-h3); font-weight: 500; margin: 0 0 8px; letter-spacing: -.01em; line-height: 1.3; }
body.ezme-pdp .ezme-how p { margin: 0; color: var(--ez-ink-soft); max-width: 36ch; }
@media (max-width: 767.98px) {
	body.ezme-pdp .ezme-how__steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	body.ezme-pdp .ezme-how__steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; }
	body.ezme-pdp .ezme-how__icon { grid-row: span 2; margin: 0; }
}

/* Connector line between the three steps (desktop) */
@media (min-width: 768px) {
	body.ezme-pdp .ezme-how__steps { position: relative; }
	body.ezme-pdp .ezme-how__steps::before {
		content: "";
		position: absolute;
		top: 28px;
		left: 28px;
		right: calc((100% - 2 * clamp(24px, 3vw, 48px)) / 3 - 28px);
		height: 0;
		border-top: 1.5px dashed #cfc9df;
		z-index: 0;
	}
	body.ezme-pdp .ezme-how__icon { z-index: 1; }
}

/* Plan includes (inside the buy box) */
body.ezme-pdp .ezme-plans__includes { margin-top: 4px; }
body.ezme-pdp .ezme-plans__includes summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-size: var(--ez-fs-small);
	font-weight: 500;
	color: var(--ez-ink);
	cursor: pointer;
	list-style: none;
	text-decoration: underline;
	text-decoration-color: var(--ez-line);
	text-underline-offset: .25em;
}
body.ezme-pdp .ezme-plans__includes summary::-webkit-details-marker { display: none; }
body.ezme-pdp .ezme-plans__includes summary .ezme-icon { width: 18px; height: 18px; transition: transform 200ms var(--ez-out); }
body.ezme-pdp .ezme-plans__includes[open] summary .ezme-icon { transform: rotate(180deg); }
body.ezme-pdp .ezme-plans__includes ul { list-style: none; padding: 4px 0 8px; margin: 0; display: grid; gap: 8px; }
body.ezme-pdp .ezme-plans__includes li { display: flex; gap: 10px; align-items: center; font-size: var(--ez-fs-small); color: var(--ez-ink-soft); }
body.ezme-pdp .ezme-plans__includes li .ezme-icon { width: 18px; height: 18px; color: var(--ez-ok); stroke-width: 2.25; }

/* Guardian app */
body.ezme-pdp .ezme-app {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}
body.ezme-pdp .ezme-app h2 { margin-bottom: 16px; }
body.ezme-pdp .ezme-app__lead { font-size: var(--ez-fs-lead); color: var(--ez-ink-soft); max-width: 46ch; margin: 0 0 28px; }
body.ezme-pdp .ezme-app__features { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
body.ezme-pdp .ezme-app__features li { display: flex; gap: 14px; align-items: flex-start; }
body.ezme-pdp .ezme-app__features .ezme-icon {
	width: 40px;
	height: 40px;
	padding: 9px;
	border-radius: 50%;
	background: var(--ez-surface-2);
	color: var(--ez-ink);
}
body.ezme-pdp .ezme-app__features strong { display: block; font-weight: 500; }
body.ezme-pdp .ezme-app__features span { display: block; color: var(--ez-muted); font-size: var(--ez-fs-small); max-width: 46ch; }

body.ezme-pdp .ezme-app__visual {
	margin: 0;
	background: var(--ez-surface);
	border-radius: 24px;
	padding: clamp(20px, 3vw, 40px);
	display: grid;
	gap: 14px;
}
body.ezme-pdp .ezme-app__alert {
	background: #fff;
	border-radius: var(--ez-r-lg);
	box-shadow: var(--ez-shadow);
	padding: 18px;
	display: grid;
	gap: 12px;
}
body.ezme-pdp .ezme-app__alert-head { display: flex; align-items: center; gap: 10px; }
body.ezme-pdp .ezme-app__alert-head strong { font-weight: 500; flex: 1; }
body.ezme-pdp .ezme-app__alert-head time { font-size: var(--ez-fs-small); color: var(--ez-muted); font-variant-numeric: tabular-nums; }
body.ezme-pdp .ezme-app__dot {
	position: relative;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #c8364b;
	flex: none;
}
body.ezme-pdp .ezme-app__dot::after {
	content: "";
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 2px solid #c8364b;
	opacity: 0;
}
body.ezme-pdp .ezme-app__alert.is-in .ezme-app__dot::after { animation: ezme-ping 1.6s var(--ez-out) 400ms 2; }
@keyframes ezme-ping { 0% { opacity: .6; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
body.ezme-pdp .ezme-app__alert p { margin: 0; font-size: var(--ez-fs-small); color: var(--ez-ink-soft); }
body.ezme-pdp .ezme-app__map { border-radius: var(--ez-r); overflow: hidden; aspect-ratio: 8 / 3; }
body.ezme-pdp .ezme-app__map svg { width: 100%; height: 100%; display: block; }
body.ezme-pdp .ezme-app__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.ezme-pdp .ezme-app__actions span {
	display: grid;
	place-items: center;
	min-height: 40px;
	border-radius: var(--ez-r-sm);
	font-size: var(--ez-fs-small);
	font-weight: 500;
	background: var(--ez-ink);
	color: #fff;
}
body.ezme-pdp .ezme-app__actions span + span { background: transparent; color: var(--ez-ink); border: 1.5px solid var(--ez-line); }
body.ezme-pdp .ezme-app__row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
body.ezme-pdp .ezme-app__mini {
	background: #fff;
	border-radius: var(--ez-r-lg);
	padding: 16px 18px;
	display: grid;
	gap: 4px;
	align-content: start;
}
body.ezme-pdp .ezme-app__label { font-size: var(--ez-fs-small); color: var(--ez-muted); }
body.ezme-pdp .ezme-app__mini strong { font-weight: 500; font-size: var(--ez-fs-lead); }
body.ezme-pdp .ezme-app__meta { font-size: var(--ez-fs-small); color: var(--ez-ok); }
body.ezme-pdp .ezme-app__bars { display: flex; align-items: flex-end; gap: 6px; height: 52px; margin-top: 6px; }
body.ezme-pdp .ezme-app__bars i {
	flex: 1;
	height: var(--h);
	border-radius: 4px 4px 2px 2px;
	background: var(--ez-accent);
	opacity: .55;
}
body.ezme-pdp .ezme-app__bars i:last-child { opacity: 1; background: var(--ez-ink); }
body.ezme-pdp .ezme-app__visual figcaption { font-size: var(--ez-fs-small); color: var(--ez-muted); text-align: center; }

/* One authored entrance: the alert card arrives once */
body.ezme-pdp .ezme-app__alert[data-ezme="reveal"] {
	transition: transform 500ms var(--ez-out), opacity 400ms ease;
}
body.ezme-pdp .js-reveal .ezme-app__alert[data-ezme="reveal"]:not(.is-in) { opacity: 0; transform: translateY(14px) scale(.98); }

@media (max-width: 767.98px) {
	body.ezme-pdp .ezme-app { grid-template-columns: minmax(0, 1fr); }
	body.ezme-pdp .ezme-app__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Everyday facts */
body.ezme-pdp .ezme-everyday {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}
body.ezme-pdp .ezme-everyday h2 { margin-bottom: 16px; }
body.ezme-pdp .ezme-everyday__head p { color: var(--ez-ink-soft); max-width: 42ch; margin: 0; }
body.ezme-pdp .ezme-everyday__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	border-top: 1px solid var(--ez-line);
}
body.ezme-pdp .ezme-everyday__list > div {
	padding: 24px 24px 24px 0;
	border-bottom: 1px solid var(--ez-line);
}
body.ezme-pdp .ezme-everyday__list > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--ez-line); }
body.ezme-pdp .ezme-everyday__list dt {
	font-size: var(--ez-fs-h2);
	font-weight: 500;
	letter-spacing: -.02em;
	line-height: 1.15;
	color: var(--ez-ink);
	margin-bottom: 6px;
}
body.ezme-pdp .ezme-everyday__list dd { margin: 0; color: var(--ez-muted); font-size: var(--ez-fs-small); max-width: 30ch; }
@media (max-width: 767.98px) {
	body.ezme-pdp .ezme-everyday { grid-template-columns: minmax(0, 1fr); }
	body.ezme-pdp .ezme-everyday__list > div { padding-right: 12px; }
	body.ezme-pdp .ezme-everyday__list > div:nth-child(even) { padding-left: 16px; }
}

/* Family */
body.ezme-pdp .ezme-family {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}
body.ezme-pdp .ezme-family__img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ez-r-lg);
	box-shadow: var(--ez-shadow);
}
body.ezme-pdp .ezme-family h2 { margin-bottom: 20px; }
body.ezme-pdp .ezme-family p { color: var(--ez-ink-soft); max-width: 48ch; margin: 0 0 14px; font-size: var(--ez-fs-lead); }
@media (max-width: 767.98px) {
	body.ezme-pdp .ezme-family { grid-template-columns: minmax(0, 1fr); }
}

/* Specs */
body.ezme-pdp .ezme-specs__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(32px, 5vw, 80px);
	margin: 0;
}
body.ezme-pdp .ezme-specs__list > div {
	display: grid;
	grid-template-columns: minmax(120px, 2fr) 3fr;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--ez-line);
}
body.ezme-pdp .ezme-specs__list dt { font-weight: 400; color: var(--ez-muted); }
body.ezme-pdp .ezme-specs__list dd { margin: 0; }
@media (max-width: 767.98px) {
	body.ezme-pdp .ezme-specs__list { grid-template-columns: minmax(0, 1fr); }
}

/* Compare */
body.ezme-pdp .ezme-compare__scroll { overflow-x: auto; overscroll-behavior-x: contain; border-radius: var(--ez-r); }
body.ezme-pdp .ezme-compare__table { width: 100%; min-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
body.ezme-pdp .ezme-compare__table th,
body.ezme-pdp .ezme-compare__table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--ez-line);
	text-align: center;
	vertical-align: middle;
}
body.ezme-pdp .ezme-compare__table tbody th { text-align: left; font-weight: 400; color: var(--ez-muted); white-space: nowrap; }
body.ezme-pdp .ezme-compare__table thead th { font-weight: 500; border-bottom: 0; vertical-align: bottom; }
body.ezme-pdp .ezme-compare__table thead a { display: grid; justify-items: center; gap: 10px; color: var(--ez-ink); text-decoration: none; }
body.ezme-pdp .ezme-compare__table thead img {
	width: 96px;
	height: 96px;
	object-fit: contain;
	border-radius: var(--ez-r-sm);
	background: var(--ez-surface);
	mix-blend-mode: multiply;
}
body.ezme-pdp .ezme-compare__table .is-current { background: var(--ez-surface); }
body.ezme-pdp .ezme-compare__table thead .is-current { border-radius: var(--ez-r) var(--ez-r) 0 0; }
body.ezme-pdp .ezme-compare__table tbody th { position: sticky; left: 0; background: var(--ez-white); }
body.ezme-pdp .ezme-yes { color: var(--ez-ink); display: inline-flex; }
body.ezme-pdp .ezme-yes .ezme-icon { stroke-width: 2.5; }
body.ezme-pdp .ezme-no,
body.ezme-pdp .ezme-unknown { color: #9a96b0; display: inline-flex; }
body.ezme-pdp .ezme-status { font-size: var(--ez-fs-small); font-weight: 500; white-space: nowrap; }
body.ezme-pdp .ezme-status--now { color: var(--ez-ok); }
body.ezme-pdp .ezme-status--soon { color: var(--ez-accent-strong); }

/* Phones: fit all four models on screen instead of side-scrolling
   (a wide scroller makes mobile browsers zoom the whole page out). */
@media (max-width: 767.98px) {
	body.ezme-pdp .ezme-compare__scroll { overflow: visible; }
	body.ezme-pdp .ezme-compare__table { min-width: 0; table-layout: fixed; font-size: var(--ez-fs-small); }
	body.ezme-pdp .ezme-compare__table th,
	body.ezme-pdp .ezme-compare__table td { padding: 10px 4px; overflow-wrap: anywhere; }
	body.ezme-pdp .ezme-compare__table tbody th { width: 84px; white-space: normal; position: static; padding-left: 0; }
	body.ezme-pdp .ezme-compare__table thead td { width: 84px; }
	body.ezme-pdp .ezme-compare__table thead img { width: 52px; height: 52px; }
	body.ezme-pdp .ezme-compare__table thead a { gap: 6px; font-size: var(--ez-fs-small); line-height: 1.25; }
	body.ezme-pdp .ezme-status { white-space: normal; font-size: var(--ez-fs-small); }
}

/* FAQ */
body.ezme-pdp .ezme-faq__list { max-width: 820px; border-top: 1px solid var(--ez-line); }
body.ezme-pdp .ezme-faq__item { border-bottom: 1px solid var(--ez-line); }
body.ezme-pdp .ezme-faq__item summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 64px;
	padding: 16px 0;
	font-size: var(--ez-fs-lead);
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}
body.ezme-pdp .ezme-faq__item summary::-webkit-details-marker { display: none; }
body.ezme-pdp .ezme-faq__item summary .ezme-icon { color: var(--ez-muted); transition: transform 200ms var(--ez-out); }
body.ezme-pdp .ezme-faq__item[open] summary .ezme-icon { transform: rotate(180deg); }
body.ezme-pdp .ezme-faq__item::details-content {
	block-size: 0;
	overflow: hidden;
	opacity: 0;
	transition: block-size 220ms var(--ez-out), opacity 180ms ease, content-visibility 220ms allow-discrete;
}
body.ezme-pdp .ezme-faq__item[open]::details-content { block-size: auto; opacity: 1; }
body.ezme-pdp .ezme-faq__answer p { margin: 0 0 20px; color: var(--ez-ink-soft); max-width: 65ch; }

/* Support band */
body.ezme-pdp .ezme-support {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 24px 48px;
	background: var(--ez-ink);
	color: #e7e4f3;
	border-radius: var(--ez-r-lg);
	padding: clamp(32px, 4vw, 56px);
}
body.ezme-pdp .ezme-support h2 { color: var(--ez-white); margin-bottom: 10px; }
body.ezme-pdp .ezme-support p { margin: 0; max-width: 52ch; }
body.ezme-pdp .ezme-support a:not(.ezme-btn) { color: var(--ez-white); }
body.ezme-pdp .ezme-support__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
body.ezme-pdp .ezme-support__phone { display: inline-flex; gap: 10px; align-items: center; }
body.ezme-pdp .ezme-support .ezme-fill { background: #fff1a8; }

/* Reviews keep WooCommerce markup, just give it room */
body.ezme-pdp .ezme-reviews #reviews h2 { font-size: var(--ez-fs-h2); font-weight: 500; }

/* ---------- Mobile sticky bar ---------- */

.ezme-sticky { display: none; }
@media (max-width: 991.98px) {
	body.ezme-pdp .ezme-sticky {
		position: fixed;
		z-index: 1030;
		left: 0;
		right: 0;
		bottom: 0;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: var(--ez-white);
		box-shadow: var(--ez-shadow-up);
		transform: translateY(110%);
		transition: transform 300ms var(--ez-drawer);
	}
	body.ezme-pdp .ezme-sticky.is-visible { transform: translateY(0); }
	body.ezme-pdp .ezme-sticky__img { width: 48px; height: 48px; border-radius: 8px; background: var(--ez-surface); object-fit: contain; }
	body.ezme-pdp .ezme-sticky__text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
	body.ezme-pdp .ezme-sticky__text strong { font-weight: 500; }
	body.ezme-pdp .ezme-sticky__text span { font-size: var(--ez-fs-small); color: var(--ez-muted); font-variant-numeric: tabular-nums; }
	body.ezme-pdp .ezme-sticky .ezme-btn { min-height: 48px; padding: 0 26px; }
	body.ezme-pdp #lc-footer { padding-bottom: 80px; }
	body.ezme-pdp .back-to-top, body.ezme-pdp #back-to-top, body.ezme-pdp .lc-back-to-top { bottom: 92px !important; }
}

/* ---------- Added-to-cart drawer ---------- */

body.ezme-just-added .woocommerce-notices-wrapper .woocommerce-message { display: none; }

.ezme-drawer { position: fixed; inset: 0; z-index: 1060; pointer-events: none; }
.ezme-drawer.is-open { pointer-events: auto; }
.ezme-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(24, 21, 58, .45);
	opacity: 0;
	transition: opacity 300ms ease;
}
.ezme-drawer.is-open .ezme-drawer__backdrop { opacity: 1; }
.ezme-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(420px, 100%);
	background: var(--ez-white, #fff);
	box-shadow: -24px 0 48px -24px rgba(35, 31, 85, .35);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 350ms var(--ez-drawer);
}
.ezme-drawer.is-open .ezme-drawer__panel { transform: translateX(0); }
.ezme-drawer.is-closing .ezme-drawer__panel { transition-duration: 220ms; }
.ezme-drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ezme-drawer__head h2 { display: flex; align-items: center; gap: 10px; font-size: var(--ez-fs-h3); font-weight: 500; margin: 0; color: var(--ez-ink); }
.ezme-drawer__head h2 .ezme-icon { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--ez-ok); color: #fff; stroke-width: 2.5; }
.ezme-drawer__close {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--ez-surface);
	color: var(--ez-ink);
	cursor: pointer;
}
.ezme-drawer__items { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ezme-drawer__items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.ezme-drawer__items img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: var(--ez-surface); }
.ezme-drawer__items strong { font-weight: 500; display: block; line-height: 1.35; }
.ezme-drawer__items span { color: var(--ez-muted); font-size: var(--ez-fs-small); }
.ezme-drawer__price { font-variant-numeric: tabular-nums; color: var(--ez-ink) !important; font-size: var(--ez-fs-body) !important; }
.ezme-drawer__sum {
	display: flex;
	justify-content: space-between;
	border-top: 1px solid var(--ez-line);
	padding-top: 16px;
	font-size: var(--ez-fs-lead);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	color: var(--ez-ink);
}
.ezme-drawer__actions { display: grid; gap: 10px; margin-top: auto; }

/* ---------- Reduced motion: keep fades, drop movement ---------- */

@media (prefers-reduced-motion: reduce) {
	body.ezme-pdp .ezme-sticky,
	.ezme-drawer__panel { transition: opacity 200ms ease; transform: none; opacity: 0; }
	body.ezme-pdp .ezme-sticky.is-visible,
	.ezme-drawer.is-open .ezme-drawer__panel { opacity: 1; }
	body.ezme-pdp .ezme-btn:active,
	body.ezme-pdp form.cart .single_add_to_cart_button:active { transform: none; }
	body.ezme-pdp .ezme-faq__item::details-content { transition: none; }
	body.ezme-pdp .ezme-waitlist__done > .ezme-icon { animation: none; }
	body.ezme-pdp .js-reveal .ezme-app__alert[data-ezme="reveal"]:not(.is-in) { transform: none; }
	body.ezme-pdp .ezme-app__alert.is-in .ezme-app__dot::after { animation: none; }
}
