/* ============================================================================
   ALPHA PEPTIDES — SINGLE PRODUCT (PDP)            owner: tuju-product (P4)

   Every number here was MEASURED off alpha-peptides.com over CDP at 1440 / 820 /
   390 (computed styles + bounding boxes, not eyeballed, not read off
   source-cdp/design-tokens.json — that file's typography block was captured at a
   narrow viewport and reports the clamp minimum).

   Scope: `body.ap-product` (set by inc/ap-chrome.php) plus `.ap-pdp`, which this
   phase owns. Nothing here styles `.ap-cart-*` or `#apCartDrawer` — the drawer
   belongs to `alphapeptides-checkout`.
   ========================================================================= */

/* ---------- shell / containers ------------------------------------------- */

.ap-pdp__shell {
	width: 100%;
	max-width: var(--ap-max);
	margin: 0 auto;
	padding-left: var(--ap-gut);
	padding-right: var(--ap-gut);
}

/* The source's inner constraint: another gutter pair inside the container, so
   the buy section is 1056px at 1440 while related products run the full 1168. */
.ap-pdp div.product {
	display: block;
	padding: clamp(20px, 3vw, 40px) var(--ap-gut) 0;
	margin: 0;
}

/* Rendered and then collapsed to zero, exactly as the source serves it: the
   crumb trail stays in the DOM, nothing shows. */
.ap-pdp-breadcrumb {
	height: 0;
	overflow: hidden;
	margin: 0;
	font-size: 12px;
	color: var(--ap-ink-3);
}

/* ---------- entry wrapper: back-nav / gallery / summary ------------------- */

.ap-pdp .product-entry-wrapper {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(32px, 4vw, 64px);
	row-gap: 0;
	align-items: start;
	width: 100%;
}

.ap-pdp .ap-product-back-nav {
	grid-column: 1;
	grid-row: 1;
	width: min(100%, 400px);
	margin: 0 auto 10px;
	padding: 0;
	line-height: 1;
	justify-self: center;
}

.ap-pdp .ap-product-back-shop {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 9px;
	border: 1px solid #DCE3EC;
	border-radius: 7px;
	background: #fff;
	color: #4F6078;
	font-size: 12px;
	line-height: 1.3;
	font-weight: 600;
	text-decoration: none;
}

.ap-pdp .ap-product-back-shop:hover {
	color: var(--ap-ink);
	border-color: var(--ap-line-2);
}

.ap-pdp .product-entry-wrapper > .woocommerce-product-gallery { grid-column: 1; grid-row: 2; }
.ap-pdp .product-entry-wrapper > .summary                     { grid-column: 2; grid-row: 2; }

/* ---------- gallery ------------------------------------------------------ */

.ap-pdp .woocommerce-product-gallery {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	min-width: 0;
	margin: 0;
	position: sticky;
	top: 130px;
}

.ap-pdp .woocommerce-product-gallery .ct-media-container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 400px);
	aspect-ratio: 3 / 4;
	margin: 0;
	padding: 0;
	border-radius: 14px;
	overflow: hidden;
}

.ap-pdp .ap-gallery-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 14px;
	background:
		radial-gradient(ellipse at 50% 100%, rgba(31, 171, 87, 0.04), transparent 60%),
		linear-gradient(180deg, #FAFBFC 0%, #ECEFF6 100%);
}

/* ⛔ No zoom, no lightbox — the source disables both. Keep the image inert. */
.ap-pdp .woocommerce-product-gallery .ct-media-container,
.ap-pdp .ap-gallery-img { cursor: default; }

.ap-pdp .woocommerce-product-gallery .onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px 10px;
	border-radius: 4px;
	background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
	color: #fff;
	font-size: 10.5px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ap-pdp .ap-gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	width: min(100%, 400px);
}

.ap-pdp .ap-gallery-thumbs li { width: 80px; }

.ap-pdp .ap-gallery-thumbs button {
	display: block;
	width: 100%;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	background: linear-gradient(180deg, #FAFBFC 0%, #ECEFF6 100%);
	cursor: pointer;
	overflow: hidden;
}

.ap-pdp .ap-gallery-thumbs li.is-active button { border-color: var(--ap-ink); }
.ap-pdp .ap-gallery-thumbs img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* ---------- COA rail ----------------------------------------------------- */

.ap-pdp .ap-gallery-coa {
	width: min(100%, 420px);
	margin: 10px auto 0;
}

.ap-pdp .ap-coa-btn-wrap {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.ap-pdp .ap-coa-btn-wrap--single { grid-template-columns: minmax(0, 1fr); }

.ap-pdp a.ap-coa-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 10px 12px;
	border: 2px solid rgba(37, 99, 235, 0.42);
	border-radius: 10px;
	background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%);
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
	color: var(--ap-blue-2);
	font-size: 12.5px;
	line-height: 1.15;
	font-weight: 900;
	letter-spacing: 0.03em;
	text-align: center;
	text-decoration: none;
}

.ap-pdp a.ap-coa-btn::after {
	content: "\2197";
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-left: 2px;
	border-radius: 5px;
	background: rgba(37, 99, 235, 0.08);
	flex: 0 0 18px;
}

.ap-pdp a.ap-coa-btn:hover {
	border-color: rgba(37, 99, 235, 0.72);
	box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

/* The source ships two copies and swaps them at 960px. */
.ap-pdp .ap-mobile-coa { display: none; }

/* ---------- summary ------------------------------------------------------ */

.ap-pdp .summary {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.ap-pdp h1.product_title {
	margin: 0 0 10px;
	font-family: var(--ap-font);
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1.05;
	font-weight: 900;
	letter-spacing: -0.025em;
	color: var(--ap-ink);
	text-transform: uppercase;
}

/* The pack PDPs carry a tighter H1 clamp on the source (40px at 1440 against the
   accessories' 52px) because the buy card is taller. Reproduced, not averaged. */
.ap-pdp--packs h1.product_title { font-size: clamp(34px, 3vw, 40px); }

/* In the DOM for assistive tech and scrapers; the source renders it at zero.
   The visible prices are the per-dose swatches and the apq product total. */
.ap-pdp .summary > p.price,
.ap-pdp .product_meta { display: none; }

/* ---------- buybox ------------------------------------------------------- */

.ap-pdp form.ap-buybox {
	position: relative;
	display: block;
	margin: 0 0 14px;
	padding: 16px;
	border: 1px solid #E5E9F0;
	border-radius: 18px;
	background: #fff;
}

.ap-pdp .ap-buybox__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 10px;
}

.ap-pdp .ap-buybox__kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 700;
	color: #0F172A;
}

.ap-pdp .ap-step__num {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #3563EF;
	color: #fff;
	font-size: 13px;
	line-height: 24px;
	font-weight: 700;
	text-align: center;
}

.ap-pdp .reset_variations {
	font-size: 12px;
	font-weight: 800;
	color: var(--ap-ink-3);
	text-decoration: none;
}

.ap-pdp .reset_variations:hover { color: var(--ap-ink); }

/* ---------- strength swatches (both attribute kinds) --------------------- */

.ap-pdp table.variations { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.ap-pdp table.variations tr,
.ap-pdp table.variations td { display: block; margin: 0; padding: 0; border: 0; }
.ap-pdp table.variations th.label { display: none; }

.ap-pdp ul.variable-items-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ap-pdp li.variable-item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 88px;
	margin: 0;
	padding: 10px;
	border: 1px solid #E1E6EE;
	border-radius: 14px;
	background: #fff;
	font-weight: 800;
	text-align: center;
	cursor: pointer;
}

.ap-pdp li.variable-item.selected,
.ap-pdp li.variable-item[aria-checked="true"] {
	border: 2px solid #3563EF;
	background: #F3F6FF;
	box-shadow: 0 0 0 3px #DFE8FF;
	padding: 9px;
}

.ap-pdp li.variable-item:focus-visible { outline: 3px solid #7495FF; outline-offset: 2px; }

.ap-pdp .variable-item-contents { margin: 0; }

.ap-pdp .variable-item-span {
	display: block;
	font-size: 26px;
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--ap-ink);
}

.ap-pdp .ap-var-meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	margin-top: 5px;
}

.ap-pdp .ap-var-price {
	font-size: 16px;
	line-height: 1.1;
	font-weight: 600;
	color: #69738A;
}

.ap-pdp .ap-var-stock {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	line-height: 1.1;
	font-weight: 500;
	color: var(--ap-ink-3);
}

.ap-pdp .ap-var-stock::before {
	content: "";
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #22C55E;
}

.ap-pdp li.ap-var-oos .ap-var-stock::before { background: var(--ap-ink-4); }

/* ---------- apq : the quantity-pack selector ----------------------------- */

.ap-pdp .apq-section {
	container-type: inline-size;
	display: block;
	margin: 18px 0 0;
	color: #101728;
}

.ap-pdp .apq-panel {
	padding: 14px 12px 12px;
	border-radius: 14px;
	background: #EEF3FF;
}

.ap-pdp .apq-heading-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 3px 10px;
	margin: 0 0 16px;
}

.ap-pdp .apq-section h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: 0;
	color: #0F172A;
	text-transform: none;
}

.ap-pdp .apq-subtitle {
	margin: 0;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 400;
	color: #69738A;
}

.ap-pdp .apq-presets {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.ap-pdp button.apq-preset {
	position: relative;
	overflow: visible;
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	min-width: 0;
	min-height: 90px;
	margin: 0;
	padding: 9px 4px;
	border: 2px solid transparent;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: #101728;
	font: inherit;
	cursor: pointer;
}

.ap-pdp button.apq-preset[aria-pressed="true"] {
	border-color: #3563EF;
	background: #fff;
	box-shadow: 0 0 0 3px #DFE8FF;
}

.ap-pdp button.apq-preset:disabled { opacity: 0.45; cursor: not-allowed; }
.ap-pdp button.apq-preset:focus-visible { outline: 3px solid #7495FF; outline-offset: 2px; }

.ap-pdp .apq-label {
	display: flex;
	gap: 8px;
	justify-content: center;
	font-size: 24px;
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.035em;
	white-space: nowrap;
}

.ap-pdp .apq-each {
	font-size: 15px;
	line-height: 1.1;
	font-weight: 600;
	color: #59677D;
	white-space: nowrap;
}

.ap-pdp .apq-each small { font-size: 10px; font-weight: 600; }

.ap-pdp .apq-rate {
	align-self: center;
	margin-top: 5px;
	padding: 3px 8px;
	border-radius: 99px;
	background: #E8F7EE;
	color: #15803D;
	font-size: 11px;
	line-height: 1.2;
	font-weight: 700;
	text-align: center;
}

.ap-pdp .apq-rate:empty { display: none; }

.ap-pdp button.apq-preset[data-qty="1"] .apq-rate,
.ap-pdp button.apq-preset:disabled .apq-rate,
.ap-pdp .apq-rate.is-standard {
	background: #EEF1F5;
	color: #64748B;
}

.ap-pdp .apq-ribbon {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -60%);
	max-width: calc(100% + 8px);
	overflow: hidden;
	white-space: nowrap;
	padding: 3px 8px;
	border-radius: 99px;
	background: #15803D;
	color: #fff;
	font-size: 9px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
	pointer-events: none;
}

.ap-pdp .apq-ribbon--pop { background: #F59E0B; color: #1F1300; }
.ap-pdp button.apq-preset:disabled .apq-ribbon,
.ap-pdp .apq-coupon .apq-ribbon { display: none; }

.ap-pdp .apq-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
}

.ap-pdp .apq-summary { min-width: 0; }

.ap-pdp .apq-total-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 3px 9px;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 700;
	color: #69738A;
}

.ap-pdp .apq-saved { font-size: 11px; font-weight: 700; color: #376147; white-space: nowrap; }

.ap-pdp .apq-total {
	display: block;
	margin-top: 3px;
	font-size: 36px;
	line-height: 1.06;
	font-weight: 800;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ap-pdp .apq-checkout .quantity {
	position: relative;
	flex: 0 0 164px;
	width: 164px;
	min-width: 164px;
	height: 54px;
	margin: 0;
	border: 2px solid #D6DEEA;
	border-radius: 13px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ap-pdp .apq-checkout .quantity input.qty {
	width: 56px;
	max-width: 56px;
	height: 50px;
	padding: 0;
	margin: 0;
	border: 0;
	border-left: 1px solid #E6EBF3;
	border-right: 1px solid #E6EBF3;
	border-radius: 0;
	background: transparent;
	font-size: 22px;
	font-weight: 800;
	text-align: center;
	color: var(--ap-ink);
	appearance: textfield;
	-moz-appearance: textfield;
}

.ap-pdp .quantity input.qty::-webkit-outer-spin-button,
.ap-pdp .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.ap-pdp .apq-checkout .ct-increase,
.ap-pdp .apq-checkout .ct-decrease {
	position: absolute;
	top: 0;
	width: 52px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	line-height: 1;
	color: #263757;
	cursor: pointer;
	user-select: none;
}

.ap-pdp .apq-checkout .ct-decrease { left: 0; right: auto; }
.ap-pdp .apq-checkout .ct-increase { right: 0; left: auto; }
.ap-pdp .ct-increase::before { content: "+"; }
.ap-pdp .ct-decrease::before { content: "\2212"; }

.ap-pdp .apq-next {
	margin: 10px 0 0;
	min-height: 15px;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 600;
	color: #526A94;
}

.ap-pdp .apq-track {
	position: relative;
	height: 6px;
	margin-top: 5px;
	border-radius: 3px;
	background: #EDF0F6;
	overflow: hidden;
}

.ap-pdp .apq-fill { display: block; height: 100%; width: 0; background: #3E65DF; border-radius: 3px; }

.ap-pdp .apq-mark {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #BBC7E6;
}

.ap-pdp .apq-mark-three { left: 30%; }
.ap-pdp .apq-mark-five  { left: 50%; }

.ap-pdp .apq-announcement {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

/* Container queries — the source's own breakpoints, keyed on the apq section. */
@container (max-width: 459px) {
	.ap-pdp .apq-panel { padding: 12px 10px 10px; }
	.ap-pdp .apq-ribbon { padding: 2px 6px; font-size: 9px; letter-spacing: 0.02em; }
}
@container (max-width: 419px) {
	.ap-pdp .apq-label { font-size: 22px; }
	.ap-pdp .apq-total { font-size: 32px; }
	.ap-pdp .apq-checkout .quantity { width: 148px; min-width: 148px; flex-basis: 148px; }
	.ap-pdp .apq-checkout .ct-increase,
	.ap-pdp .apq-checkout .ct-decrease { width: 46px; }
	.ap-pdp .apq-checkout .quantity input.qty { width: 52px; max-width: 52px; }
}
@container (max-width: 379px) {
	.ap-pdp .apq-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
	.ap-pdp .apq-label { font-size: 24px; }
}
@container (max-width: 339px) {
	.ap-pdp .apq-total { font-size: 28px; }
}
@container (max-width: 299px) {
	.ap-pdp .apq-checkout { grid-template-columns: minmax(0, 1fr); }
	.ap-pdp .apq-checkout .quantity { margin-left: auto; }
}

/* ---------- add to cart -------------------------------------------------- */

.ap-pdp .woocommerce-variation-add-to-cart { margin-top: 12px; width: 100%; }
.ap-pdp .ct-cart-actions { display: flex; align-items: center; gap: 14px; width: 100%; }

.ap-pdp form.ap-buybox .single_add_to_cart_button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 18px 32px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #0B1322 0%, #1A2A55 100%);
	box-shadow: 0 12px 28px rgba(7, 15, 30, 0.18);
	color: #fff;
	font-family: var(--ap-font);
	font-size: 15px;
	line-height: 1.65;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
}

.ap-pdp form.ap-buybox .single_add_to_cart_button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.ap-pdp form.ap-buybox .single_add_to_cart_button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.ap-pdp .single_add_to_cart_button.loading { opacity: .7; pointer-events: none; }

/* ---------- trust row ---------------------------------------------------- */

.ap-pdp .ap-buybox-proof {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px;
	margin: -4px 0 20px;
}

.ap-pdp .ap-buybox-proof span {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 4px;
	border-radius: 10px;
	font-size: 12px;
	line-height: 1.65;
	font-weight: 900;
	color: var(--ap-ink-2);
	text-align: center;
}

/* ---------- simple-product buybox (the 2 Research Accessories) ----------- */

.ap-pdp .ct-product-add-to-cart.ap-simple-buybox {
	position: relative;
	display: block;
	width: 100%;
	margin: 20px 0 18px;
	padding: clamp(16px, 2.2vw, 22px);
	border: 1px solid rgba(193, 203, 220, 0.95);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 42px rgba(12, 24, 48, 0.08);
	overflow: hidden;
}

.ap-pdp .ap-simple-buybox::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, var(--ap-blue), #22C55E, #F59E0B);
}

.ap-pdp .ap-simple-buybox__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 14px;
}

.ap-pdp .ap-simple-buybox__kicker {
	margin: 0 0 4px;
	color: var(--ap-blue);
	font-size: 12px;
	line-height: 1.15;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ap-pdp .ap-simple-buybox__sub {
	margin: 0;
	color: var(--ap-ink-3);
	font-size: 13.5px;
	line-height: 1.45;
	font-weight: 600;
}

.ap-pdp .ap-simple-buybox > p.stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 7px 14px;
	border: 1px solid rgba(31, 171, 87, 0.3);
	border-radius: 999px;
	background: rgba(31, 171, 87, 0.1);
	color: var(--ap-green-2);
	font-size: 12.5px;
	line-height: 1.65;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ap-pdp .ap-simple-buybox > p.stock::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ap-green-2);
}

.ap-pdp .ap-simple-buybox .quantity {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 118px;
	min-width: 118px;
	height: 56px;
	border: 1px solid var(--ap-line);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
}

.ap-pdp .ap-simple-buybox .quantity input.qty {
	width: 54px;
	max-width: 54px;
	height: 54px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 16px;
	font-weight: 800;
	text-align: center;
	color: var(--ap-ink);
	appearance: textfield;
	-moz-appearance: textfield;
}

.ap-pdp .ap-simple-buybox .ct-increase,
.ap-pdp .ap-simple-buybox .ct-decrease {
	position: absolute;
	top: 0;
	width: 32px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #263757;
	cursor: pointer;
	user-select: none;
}

.ap-pdp .ap-simple-buybox .ct-decrease { left: 0; }
.ap-pdp .ap-simple-buybox .ct-increase { right: 0; }

.ap-pdp .ap-simple-buybox .single_add_to_cart_button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 56px;
	min-height: 56px;
	margin: 0;
	padding: 0 30px;
	border: 0;
	border-radius: 10px;
	background: var(--ap-blue-grad);
	box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
	color: #fff;
	font-family: var(--ap-font);
	font-size: 13.5px;
	line-height: 1.65;
	font-weight: 900;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.ap-pdp .ap-simple-buybox .single_add_to_cart_button:hover { filter: brightness(1.06); }

/* ---------- short-description note cards --------------------------------- */

.ap-pdp .ap-product-notes { margin: 36px 0 0; font-size: 16px; line-height: 1.6; color: var(--ap-ink-2); }
.ap-pdp .ap-product-notes .ap-note-spacer { display: none; }

.ap-pdp .ap-product-notes__grid {
	display: grid;
	grid-template-columns: 0.64fr 1fr;
	align-items: stretch;
	gap: 0;
	max-width: none;
	padding: 0;
	border: 1px solid #DCE5EE;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.ap-pdp .ap-note-card { padding: 30px; border: 0 !important; border-radius: 0 !important; margin: 0 !important; background: none; }

.ap-pdp .ap-note-card--overview {
	display: flex;
	flex-direction: column;
	background: #154573 !important;
	color: #fff;
	font-size: 14.5px;
	line-height: 1.68;
}

.ap-pdp .ap-note-card--overview > div:first-child {
	font-size: clamp(26px, 2.6vw, 40px) !important;
	font-weight: 900 !important;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: #fff !important;
	text-transform: uppercase;
}

.ap-pdp .ap-note-card--overview > div { color: #DCE9F7 !important; background: none !important; border: 0 !important; }

.ap-pdp .ap-note-card--overview > div:last-child {
	margin-top: auto !important;
	padding-top: 18px !important;
	border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
	border-radius: 0 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	color: #fff !important;
}

.ap-pdp .ap-note-card--compliance {
	background: #fff !important;
	color: #37475D;
	font-size: 14px;
	line-height: 1.65;
}

.ap-pdp .ap-note-card--compliance > div { background: none !important; border: 0 !important; color: inherit !important; }

.ap-pdp .ap-note-card--compliance > div:first-child,
.ap-pdp .ap-note-card--compliance > div:nth-child(3) {
	margin: 0 0 10px !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	letter-spacing: -0.01em;
	color: var(--ap-ink) !important;
	text-transform: none !important;
}

.ap-pdp .ap-note-card--compliance > div:nth-child(3) { margin-top: 20px !important; padding-top: 20px !important; border-top: 1px solid var(--ap-line) !important; }

/* ---------- seven-test band ---------------------------------------------- */

.ap-pdp .ap-pmethod {
	position: relative;
	margin: clamp(48px, 7vw, 96px) 0 0;
	padding: clamp(40px, 5vw, 64px);
	border-radius: 18px;
	background: var(--ap-dark);
	color: var(--ap-dark-ink);
	overflow: hidden;
}

.ap-pdp .ap-pmethod::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		radial-gradient(ellipse at 80% 0%, rgba(31, 171, 87, 0.18), transparent 55%),
		radial-gradient(ellipse at 0% 100%, rgba(37, 99, 235, 0.16), transparent 50%);
}

.ap-pdp .ap-pmethod > * { position: relative; z-index: 1; }
.ap-pdp .ap-pmethod__head { max-width: 720px; margin: 0 0 clamp(24px, 3vw, 40px); }

.ap-pdp .ap-pmethod .ap-eyebrow {
	display: block;
	margin-bottom: 14px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.ap-pdp .ap-pmethod__h {
	margin: 0 0 16px;
	font-family: var(--ap-font);
	font-size: clamp(28px, 3.6vw, 48px);
	line-height: 1.05;
	font-weight: 900;
	letter-spacing: -0.025em;
	text-transform: uppercase;
	color: var(--ap-dark-ink);
}

.ap-pdp .ap-pmethod__sub { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ap-dark-ink-2); }

.ap-pdp .ap-pmethod__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ap-pdp .ap-pmethod__list li {
	padding: 18px 18px 16px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.ap-pdp .ap-pmethod__list li:hover {
	background: rgba(31, 171, 87, 0.06);
	border-color: rgba(31, 171, 87, 0.32);
	transform: translateY(-3px);
}

.ap-pdp .ap-pmethod__num {
	display: block;
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.16em;
	color: #6FE599;
}

.ap-pdp .ap-pmethod__list b { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 700; color: var(--ap-dark-ink); }
.ap-pdp .ap-pmethod__list em { display: block; font-style: normal; font-size: 12.5px; color: var(--ap-dark-ink-2); }

/* ---------- tabs --------------------------------------------------------- */

.ap-pdp .woocommerce-tabs { margin-top: clamp(48px, 7vw, 96px); }

.ap-pdp .woocommerce-tabs ul.tabs {
	display: flex;
	justify-content: center;
	gap: 0;
	margin: 0 0 28px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--ap-line);
	list-style: none;
}

.ap-pdp .woocommerce-tabs ul.tabs::before,
.ap-pdp .woocommerce-tabs ul.tabs::after { display: none; }

.ap-pdp .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }
.ap-pdp .woocommerce-tabs ul.tabs li::before,
.ap-pdp .woocommerce-tabs ul.tabs li::after { display: none; }

.ap-pdp .woocommerce-tabs ul.tabs li a {
	display: block;
	margin: 0 0 -1px;
	padding: 16px 24px;
	border-bottom: 3px solid transparent;
	color: var(--ap-ink-3);
	font-family: var(--ap-font);
	font-size: 14.5px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	transition: color .15s ease, border-color .15s ease;
}

.ap-pdp .woocommerce-tabs ul.tabs li.active a { color: var(--ap-ink); border-bottom-color: var(--ap-ink); }
.ap-pdp .woocommerce-tabs ul.tabs li a:hover { color: var(--ap-ink); }

.ap-pdp .woocommerce-Tabs-panel { padding: 0; font-size: 15.5px; line-height: 1.7; color: var(--ap-ink-2); }
.ap-pdp .woocommerce-Tabs-panel > div { max-width: none !important; }

/* The copy carries inline `color:#154573;font-weight:600` on every heading; the
   source overrides it to the brand ink. Same here. */
.ap-pdp .woocommerce-Tabs-panel h2,
.ap-pdp .woocommerce-Tabs-panel h3 {
	margin: 0 0 14px !important;
	font-family: var(--ap-font) !important;
	font-size: 22px !important;
	line-height: 1.5 !important;
	font-weight: 800 !important;
	letter-spacing: -0.01em !important;
	color: var(--ap-ink) !important;
}

.ap-pdp .woocommerce-Tabs-panel h3 { margin-top: 30px !important; }

/* ap-pdp-desc-h2 — the source hides the description panel's first heading
   ("What is <product>?") and opens the tab on body copy. Delete this ONE rule
   to show it. */
.ap-pdp .woocommerce-Tabs-panel--description h2:first-of-type,
.ap-pdp .woocommerce-Tabs-panel--description > div > h2:first-of-type { display: none; }

.ap-pdp .woocommerce-Tabs-panel p { margin: 0 0 16px; font-size: 15px; line-height: 1.65; color: var(--ap-ink-2); }
.ap-pdp .woocommerce-Tabs-panel ul,
.ap-pdp .woocommerce-Tabs-panel ol { margin: 0 0 18px; padding-left: 20px !important; font-size: 15px; line-height: 1.8 !important; color: var(--ap-ink-2); }
.ap-pdp .woocommerce-Tabs-panel li { margin-bottom: 6px; }
.ap-pdp .woocommerce-Tabs-panel a { color: #154573; }

.ap-pdp .shop_attributes {
	width: 100%;
	border: 1px solid var(--ap-line);
	border-radius: 14px;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--ap-cream);
	overflow: hidden;
}

.ap-pdp .shop_attributes th,
.ap-pdp .shop_attributes td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--ap-line);
	background: transparent;
	font-size: 14px;
	text-align: left;
}

.ap-pdp .shop_attributes th {
	width: 200px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ap-ink-3);
}

.ap-pdp .shop_attributes tr:last-child th,
.ap-pdp .shop_attributes tr:last-child td { border-bottom: 0; }
.ap-pdp .shop_attributes p { margin: 0; font-size: 14px; }

/* reviews tab — functional but empty (OQ-6) */
.ap-pdp #reviews .woocommerce-noreviews,
.ap-pdp #reviews .comment-reply-title { font-size: 15px; color: var(--ap-ink-2); }
.ap-pdp #reviews .comment-reply-title { display: block; margin: 0 0 14px; font-size: 20px; font-weight: 800; color: var(--ap-ink); }
.ap-pdp #reviews input[type="text"],
.ap-pdp #reviews input[type="email"],
.ap-pdp #reviews textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--ap-line);
	border-radius: 12px;
	background: var(--ap-cream);
	font: inherit;
}
.ap-pdp #reviews .form-submit input[type="submit"] {
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--ap-blue-grad);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.ap-pdp #reviews .commentlist { list-style: none; margin: 0 0 24px; padding: 0; }

/* ---------- related products --------------------------------------------- */

.ap-pdp section.related { width: 100%; }
.ap-pdp section.related > h2.ct-module-title {
	margin: 0 0 24px;
	font-family: var(--ap-font);
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.5;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--ap-ink);
}

.ap-pdp section.related ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The source hides the plain related module below 1000px — reproduced. */
@media (max-width: 999px) {
	.ap-pdp section.related.ct-hidden-sm,
	.ap-pdp section.related.ct-hidden-md { display: none; }
}

/* The revamped card, which the source shows on the two accessory PDPs at every
   width (its script strips ct-hidden-* there). */
.ap-pdp section.related.ap-related-revamp {
	margin: 26px 0 0;
	padding: 24px 34px 34px;
	border: 1px solid rgba(205, 213, 226, 0.95);
	border-radius: 22px;
	background:
		radial-gradient(at 8% 0%, rgba(37, 99, 235, 0.08), rgba(0, 0, 0, 0) 42%),
		linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
	box-shadow: 0 22px 50px rgba(12, 24, 48, 0.08);
	overflow: hidden;
}

.ap-pdp .ap-related-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 0 0 18px;
}

.ap-pdp .ap-related-head h2.ct-module-title {
	margin: 0;
	font-size: clamp(24px, 2.3vw, 32px);
	line-height: 1.05;
	font-weight: 900;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--ap-ink);
}

.ap-pdp .ap-related-sub { margin: 0; font-size: 13px; line-height: 1.35; font-weight: 800; color: var(--ap-ink-3); text-align: right; }

/* ---------- apq sticky mobile bar ---------------------------------------- */

.ap-pdp .apq-mobile { display: none; }

@media (max-width: 960px) {
	.ap-pdp .apq-mobile {
		position: fixed;
		inset: auto 0 0;
		z-index: 90;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
		border-top: 1px solid #D7DEEA;
		background: #fff;
		box-shadow: 0 -6px 20px rgba(16, 23, 40, 0.05);
	}

	.ap-pdp .apq-mobile-summary { min-width: 0; }
	.ap-pdp .apq-mobile-label { display: block; font-size: 10px; line-height: 1.1; color: #69738A; }
	.ap-pdp .apq-mobile-total { display: block; font-size: 24px; line-height: 1.1; font-weight: 800; white-space: nowrap; }

	.ap-pdp .apq-mobile-add {
		flex: 1;
		min-height: 48px;
		border: 0;
		border-radius: 11px;
		background: #152140;
		color: #fff;
		font-family: var(--ap-font);
		font-size: 14px;
		font-weight: 800;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		cursor: pointer;
	}

	.ap-pdp .apq-mobile-add:disabled { background: #98A1B3; cursor: not-allowed; }

	body.ap-has-apq-bar { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
}

/* ---------- responsive --------------------------------------------------- */

@media (min-width: 961px) {
	.ap-pdp form.ap-buybox { padding: 12px; }
	.ap-pdp li.variable-item { min-height: 84px; padding: 8px; }
	.ap-pdp li.variable-item.selected,
	.ap-pdp li.variable-item[aria-checked="true"] { padding: 7px; }
	.ap-pdp .apq-section { margin-top: 14px; }
	.ap-pdp button.apq-preset { min-height: 80px; padding: 7px 4px; }
	.ap-pdp .apq-checkout { margin-top: 14px; }
	.ap-pdp form.ap-buybox .single_add_to_cart_button { min-height: 50px; padding: 12px 24px; line-height: 1.3; }
}

@media (max-width: 960px) {
	.ap-pdp .product-entry-wrapper { display: block; }
	.ap-pdp .woocommerce-product-gallery { position: static; margin-bottom: 16px; }
	.ap-pdp .summary { margin-top: 0; }

	/* COA rail swaps copies, exactly as the source does at this width. */
	.ap-pdp .woocommerce-product-gallery .ap-gallery-coa { display: none; }
	.ap-pdp .ap-mobile-coa { display: block; width: 100%; margin: 10px 0 0; }
	.ap-pdp .ap-mobile-coa .ap-coa-btn-wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
	.ap-pdp .ap-product-back-nav { margin-bottom: 8px; }

	.ap-pdp .woocommerce-product-gallery .ct-media-container {
		width: 100%;
		height: clamp(180px, 54vw, 240px);
		aspect-ratio: auto;
		border-radius: 14px;
		background: linear-gradient(90deg, #F2EEE8 50%, #EBE8E1 50%);
		box-shadow: 0 12px 30px rgba(12, 24, 48, 0.07);
	}

	.ap-pdp .ap-gallery-img {
		width: auto;
		max-width: 100%;
		height: 100%;
		margin: 0 auto;
		object-fit: contain;
		border-radius: 0;
		background: none;
	}

	.ap-pdp .ap-gallery-thumbs { width: 100%; }
	.ap-pdp .ap-product-notes__grid { grid-template-columns: minmax(0, 1fr); }
	.ap-pdp .ap-note-card { padding: 22px; }
	.ap-pdp .ap-pmethod__list { grid-template-columns: minmax(0, 1fr); }
	.ap-pdp .woocommerce-tabs ul.tabs { flex-direction: column; align-items: stretch; }
	.ap-pdp .woocommerce-tabs ul.tabs li a { border-bottom: 1px solid var(--ap-line); }
	.ap-pdp .woocommerce-tabs ul.tabs li.active a { border-bottom-color: var(--ap-ink); }
	.ap-pdp section.related ul.products { grid-template-columns: minmax(0, 1fr); }
	.ap-pdp section.related.ap-related-revamp { padding: 20px 20px 24px; }
	.ap-pdp .ap-related-head { gap: 4px; }
	.ap-pdp .ap-related-sub { text-align: left; }
	.ap-pdp .shop_attributes th { width: 120px; }
}

@media (min-width: 768px) and (max-width: 960px) {
	.ap-pdp .ap-pmethod__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ap-pdp section.related ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   NEUTRALISE WooCommerce's OWN LAYOUT CSS — keep this block LAST.

   `woocommerce-layout.css` is enqueued on every product page and lays the PDP
   out with FLOATS at a specificity a single-class rule cannot reach:

     .woocommerce div.product div.summary   { float:right; width:48% }   (0,2,2)
     .woocommerce div.product div.images    { float:left;  width:48% }   (0,2,2)
     .woocommerce ul.products li.product    { float:left;  width:22.05% } (0,2,2)
     .woocommerce div.product .woocommerce-tabs ul.tabs li a { padding:0 }(0,4,4)

   Measured consequence before this block existed, at 1440: our summary column
   rendered 228px instead of 475 (= 48% of its grid track), every related card
   rendered 62px instead of 280 (= 22.05% of its track), and the tab links were
   100x32 instead of 148x49. The grid templates were correct the whole time —
   the children were simply floating inside them, which is why it read as "the
   layout is broken" rather than "a stylesheet lost".

   This is the same failure family as the recurring My-Account rail bug in
   STANDARDS #1: Woo's layout CSS at 0,2,2 beats `.a-single-class` and pulls the
   element out of grid flow so it shrink-to-fits. Beat it on its own terms
   rather than reaching for !important.
   ========================================================================== */

.woocommerce .ap-pdp div.product div.summary,
.woocommerce .ap-pdp div.product div.entry-summary {
	float: none;
	width: 100%;
	min-width: 0;
	clear: none;
	margin: 0;
}

.woocommerce .ap-pdp div.product div.images,
.woocommerce .ap-pdp div.product div.woocommerce-product-gallery {
	float: none;
	width: 100%;
	min-width: 0;
	margin: 0;
}

.woocommerce .ap-pdp div.product ul.products,
.woocommerce .ap-pdp section.related ul.products {
	float: none;
	display: grid;
	margin: 0;
	padding: 0;
}

.woocommerce .ap-pdp ul.products::before,
.woocommerce .ap-pdp ul.products::after { content: none; display: none; }

.woocommerce .ap-pdp ul.products li.product {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	clear: none;
}

.woocommerce .ap-pdp div.product form.cart { display: block; margin: 0; }
.woocommerce .ap-pdp div.product form.cart::before,
.woocommerce .ap-pdp div.product form.cart::after { content: none; display: none; }
.woocommerce .ap-pdp div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce .ap-pdp div.product form.cart .button { float: none; vertical-align: baseline; }
.woocommerce .ap-pdp div.product form.cart table.variations { margin: 0; }
.woocommerce .ap-pdp div.product form.cart table.variations td,
.woocommerce .ap-pdp div.product form.cart table.variations th { vertical-align: top; line-height: inherit; }

/* The simple-product card is a flex row (stepper + button), not Woo's float pair. */
.woocommerce .ap-pdp div.product .ap-simple-buybox form.cart { display: block; }
.woocommerce .ap-pdp div.product .ap-simple-buybox .ct-cart-actions { display: flex; align-items: center; gap: 14px; }

/* Tabs — Woo paints pill tabs with borders, radii and two curved pseudo
   elements at (0,4,4). The source's tab bar is a flat underlined row. */
.woocommerce .ap-pdp div.product .woocommerce-tabs ul.tabs {
	display: flex;
	justify-content: center;
	margin: 0 0 28px;
	padding: 0;
	font-size: 12px;
	border: 0;
	border-bottom: 1px solid var(--ap-line);
}

.woocommerce .ap-pdp div.product .woocommerce-tabs ul.tabs::before,
.woocommerce .ap-pdp div.product .woocommerce-tabs ul.tabs::after { content: none; display: none; border: 0; }

.woocommerce .ap-pdp div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.woocommerce .ap-pdp div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce .ap-pdp div.product .woocommerce-tabs ul.tabs li::after { content: none; display: none; border: 0; box-shadow: none; }

.woocommerce .ap-pdp div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	margin: 0 0 -1px;
	padding: 16px 24px;
	border-bottom: 3px solid transparent;
	color: var(--ap-ink-3);
	font-size: 14.5px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-shadow: none;
}

.woocommerce .ap-pdp div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--ap-ink);
	border-bottom-color: var(--ap-ink);
}

.woocommerce .ap-pdp div.product .woocommerce-tabs .panel { margin: 0; padding: 0; }

/* Woo's own attribute table ships its own borders. */
.woocommerce .ap-pdp div.product .shop_attributes { margin: 0; }
.woocommerce .ap-pdp div.product .shop_attributes th,
.woocommerce .ap-pdp div.product .shop_attributes td { font-style: normal; }

@media (max-width: 767px) {
	.woocommerce .ap-pdp div.product .woocommerce-tabs ul.tabs { flex-direction: column; align-items: stretch; }
	.woocommerce .ap-pdp div.product .woocommerce-tabs ul.tabs li a { border-bottom: 1px solid var(--ap-line); }
	.woocommerce .ap-pdp div.product .woocommerce-tabs ul.tabs li.active a { border-bottom-color: var(--ap-ink); }
}
