/**
 * Single product page — gallery, summary, gamified bulk pricing, tabs, related products.
 * Brand: flat fills, border-only depth, no drop shadows.
 */

/* —— Page shell —— */

.newgen-shop--pdp {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--layout-max);
	margin-inline: auto;
	padding-block: var(--space-8);
	padding-inline: var(--space-4);
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-body);
}

@media (min-width: 768px) {
	.newgen-shop--pdp {
		padding-block: var(--space-10);
		padding-inline: var(--space-6);
	}
}

@media (min-width: 1320px) {
	.newgen-shop--pdp {
		padding-inline: 0;
	}
}

.newgen-pdp {
	box-sizing: border-box;
	width: 100%;
}

.newgen-pdp__shell {
	display: grid;
	gap: var(--space-10);
}

/* —— Main two-column layout —— */

.newgen-pdp__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-8);
	align-items: start;
}

.newgen-pdp__media-column {
	display: grid;
	gap: var(--space-8);
	min-width: 0;
}

@media (max-width: 1023px) {
	.newgen-pdp__media-column {
		display: contents;
	}

	.newgen-pdp__media {
		order: 1;
	}

	.newgen-pdp__summary-wrap {
		order: 2;
	}

	.newgen-pdp__tabs {
		order: 3;
	}
}

@media (min-width: 1024px) {
	.newgen-pdp__main {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: var(--space-10);
	}
}

/* —— Gallery —— */

.newgen-pdp__media {
	position: relative;
	min-width: 0;
}

.newgen-pdp__media-frame {
	box-sizing: border-box;
	overflow: hidden;
	border: 0.5px solid var(--color-border-card);
	border-radius: var(--radius-lg);
	background: var(--color-background-muted);
}

.newgen-pdp__media .woocommerce-product-gallery {
	box-sizing: border-box;
	margin: 0;
	width: 100%;
}

.newgen-pdp__media .woocommerce-product-gallery__wrapper,
.newgen-pdp__media .woocommerce-product-gallery__image {
	margin: 0;
}

.newgen-pdp__media .woocommerce-product-gallery__image img {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: center;
	background: var(--color-background-muted);
}

.newgen-pdp__media .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-3);
	margin: var(--space-4) 0 0;
	padding: 0 var(--space-4) var(--space-4);
	list-style: none;
}

.newgen-pdp__media .flex-control-thumbs li {
	margin: 0;
}

.newgen-pdp__media .flex-control-thumbs img {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	border: 0.5px solid var(--color-border-card);
	border-radius: var(--radius-sm);
	object-fit: cover;
	cursor: pointer;
	transition: border-color var(--duration-ui) var(--ease-ui);
}

.newgen-pdp__media .flex-control-thumbs img.flex-active,
.newgen-pdp__media .flex-control-thumbs img:hover {
	border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border-card));
}

.newgen-pdp__media .onsale {
	position: absolute;
	top: var(--space-4);
	left: var(--space-4);
	z-index: 2;
	margin: 0;
	padding: var(--space-1) var(--space-3);
	border-radius: var(--radius-sm);
	background: var(--color-primary-dark);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--color-on-primary);
}

/* —— Summary panel —— */

.newgen-pdp__summary-wrap {
	position: relative;
	min-width: 0;
}

.newgen-pdp__motif {
	position: absolute;
	top: -2rem;
	right: -1rem;
	z-index: 0;
	width: min(12rem, 40vw);
	height: min(12rem, 40vw);
	opacity: 0.06;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none'%3E%3Ccircle cx='120' cy='44' r='24' stroke='%231B2D6B' stroke-width='8'/%3E%3Ccircle cx='40' cy='182' r='24' stroke='%231B2D6B' stroke-width='8'/%3E%3Ccircle cx='200' cy='182' r='24' stroke='%231B2D6B' stroke-width='8'/%3E%3Ccircle cx='120' cy='144' r='16' stroke='%231B2D6B' stroke-width='6'/%3E%3Cpath stroke='%231B2D6B' stroke-width='8' stroke-linecap='round' d='M120 66v54M62 166l44-14M178 166l-44-14'/%3E%3Cpath stroke='%231B2D6B' stroke-width='6' stroke-linecap='round' d='M54 172l46-94M186 172l-46-94M56 188h128'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.newgen-pdp__summary {
	position: relative;
	z-index: 1;
	display: grid;
	gap: var(--space-5);
	min-width: 0;
}

.newgen-pdp__category {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: var(--space-2);
	margin: 0;
	padding: var(--space-1) var(--space-3);
	border-radius: var(--radius-sm);
	background: var(--color-tag-brand);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--color-primary);
}

.newgen-pdp__category-dot {
	flex-shrink: 0;
	width: 0.375rem;
	height: 0.375rem;
	border-radius: var(--radius-full);
	background: var(--color-highlight);
}

.newgen-pdp__summary .product_title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(var(--text-xl), 3.5vw, var(--text-2xl));
	font-weight: var(--font-weight-semibold);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-h1);
	color: var(--color-text);
}

.newgen-pdp__summary .woocommerce-product-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	margin: 0;
}

.newgen-pdp__summary .woocommerce-product-details__short-description {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-md);
	font-weight: var(--font-weight-regular);
	line-height: var(--leading-body);
	color: var(--color-text-secondary);
}

.newgen-pdp__summary .woocommerce-product-details__short-description p {
	margin: 0;
}

/* —— Bulk pricing —— */

.newgen-pdp-bulk {
	box-sizing: border-box;
	display: grid;
	gap: var(--space-5);
	padding: var(--space-5);
	border: 0.5px solid var(--color-border-card);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
}

.newgen-pdp-bulk__header {
	display: grid;
	gap: var(--space-2);
}

.newgen-pdp-bulk__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0;
	font-family: var(--font-hero-brand);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--color-text-secondary);
}

.newgen-pdp-bulk__eyebrow-dot {
	flex-shrink: 0;
	width: 0.375rem;
	height: 0.375rem;
	border-radius: var(--radius-full);
	background: var(--color-highlight);
}

.newgen-pdp-bulk__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	color: var(--color-text);
}

.newgen-pdp-bulk__lede {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-body);
	color: var(--color-text-secondary);
}

.newgen-pdp-bulk__track {
	position: relative;
	padding-block: var(--space-2) var(--space-4);
}

.newgen-pdp-bulk__track-line {
	position: absolute;
	top: calc(var(--space-2) + 0.4375rem);
	left: 0.75rem;
	right: 0.75rem;
	height: 0.1875rem;
	border-radius: var(--radius-full);
	background: var(--color-background-muted);
	overflow: hidden;
}

.newgen-pdp-bulk__track-fill {
	height: 100%;
	border-radius: inherit;
	background: var(--color-primary);
	transition: width var(--duration-ui) var(--ease-ui);
}

.newgen-pdp-bulk__milestones {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.newgen-pdp-bulk__milestone {
	display: flex;
	justify-content: center;
}

.newgen-pdp-bulk__milestone-dot {
	display: block;
	width: 0.875rem;
	height: 0.875rem;
	border: 0.125rem solid var(--color-highlight);
	border-radius: var(--radius-full);
	background: var(--color-surface);
	transition:
		border-color var(--duration-ui) var(--ease-ui),
		background-color var(--duration-ui) var(--ease-ui),
		transform var(--duration-ui) var(--ease-ui);
}

.newgen-pdp-bulk__milestone--active .newgen-pdp-bulk__milestone-dot,
.newgen-pdp-bulk__milestone--complete .newgen-pdp-bulk__milestone-dot {
	border-color: var(--color-primary);
	background: var(--color-primary);
}

.newgen-pdp-bulk__milestone--complete .newgen-pdp-bulk__milestone-dot {
	transform: scale(1.08);
}

.newgen-pdp-bulk__tiers {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.newgen-pdp-bulk__tiers {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.newgen-pdp-bulk__tier {
	position: relative;
	box-sizing: border-box;
	display: grid;
	gap: var(--space-2);
	min-width: 0;
	padding: var(--space-4);
	border: 0.5px solid var(--color-border-card);
	border-radius: var(--radius-md);
	background: var(--color-background-muted);
	cursor: pointer;
	transition:
		border-color var(--duration-ui) var(--ease-ui),
		background-color var(--duration-ui) var(--ease-ui),
		transform var(--duration-ui) var(--ease-ui);
}

.newgen-pdp-bulk__tier:hover {
	border-color: color-mix(in srgb, var(--color-primary) 25%, var(--color-border-card));
}

.newgen-pdp-bulk__tier:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.newgen-pdp-bulk__tier--active {
	border-color: var(--color-primary);
	background: var(--color-tag-brand);
}

.newgen-pdp-bulk__tier--unlocked:not(.newgen-pdp-bulk__tier--active) {
	border-color: color-mix(in srgb, var(--color-primary) 18%, var(--color-border-card));
}

.newgen-pdp-bulk__tier--max {
	border-color: color-mix(in srgb, var(--color-primary-dark) 35%, var(--color-border-card));
}

.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--active,
.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--unlocked {
	border-color: var(--color-primary-dark);
	background: var(--color-primary-dark);
	color: var(--color-on-primary);
}

.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--active .newgen-pdp-bulk__tier-label,
.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--active .newgen-pdp-bulk__tier-meta,
.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--unlocked .newgen-pdp-bulk__tier-label,
.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--unlocked .newgen-pdp-bulk__tier-meta {
	color: color-mix(in srgb, var(--color-on-primary) 72%, transparent);
}

.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--active .newgen-pdp-bulk__tier-price,
.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--unlocked .newgen-pdp-bulk__tier-price,
.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--active .newgen-pdp-bulk__tier-qty,
.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--unlocked .newgen-pdp-bulk__tier-qty {
	color: var(--color-on-primary);
}

.newgen-pdp-bulk__tier-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
}

.newgen-pdp-bulk__tier-qty {
	font-family: var(--font-display);
	font-size: var(--text-lg);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	color: var(--color-text);
}

.newgen-pdp-bulk__tier-qty-compact {
	display: none;
}

.newgen-pdp-bulk__tier-badge {
	display: inline-flex;
	align-items: center;
	padding: var(--space-1) var(--space-2);
	border-radius: var(--radius-sm);
	background: var(--color-tag-brand);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--color-primary);
}

.newgen-pdp-bulk__tier-badge--neutral {
	background: var(--color-tag-neutral);
	color: var(--color-tag-neutral-text);
}

.newgen-pdp-bulk__tier-badge--max {
	background: var(--color-on-primary);
	color: var(--color-primary-dark);
}

.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--active .newgen-pdp-bulk__tier-badge--max,
.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--unlocked .newgen-pdp-bulk__tier-badge--max {
	background: color-mix(in srgb, var(--color-on-primary) 16%, transparent);
	color: var(--color-on-primary);
}

.newgen-pdp-bulk__tier-label {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	line-height: var(--leading-snug);
	color: var(--color-text-secondary);
}

.newgen-pdp-bulk__tier-price {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: var(--font-weight-semibold);
	line-height: var(--leading-snug);
	color: var(--color-text);
}

.newgen-pdp-bulk__tier-price .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

.newgen-pdp-bulk__tier-meta {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	line-height: var(--leading-snug);
	color: var(--color-text-secondary);
}

.newgen-pdp-bulk__tier-star {
	position: absolute;
	top: var(--space-3);
	right: var(--space-3);
	font-size: var(--text-sm);
	line-height: 1;
	color: var(--color-primary);
	opacity: 0;
	transition: opacity var(--duration-ui) var(--ease-ui);
}

.newgen-pdp-bulk__tier--unlocked .newgen-pdp-bulk__tier-star,
.newgen-pdp-bulk__tier--active .newgen-pdp-bulk__tier-star {
	opacity: 1;
}

.newgen-pdp-bulk__tier--max .newgen-pdp-bulk__tier-star {
	color: var(--color-on-primary);
}

.newgen-pdp-bulk__tier-status {
	display: none;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-1);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	color: var(--color-primary);
}

.newgen-pdp-bulk__tier--active .newgen-pdp-bulk__tier-status,
.newgen-pdp-bulk__tier--unlocked .newgen-pdp-bulk__tier-status {
	display: inline-flex;
}

.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--active .newgen-pdp-bulk__tier-status,
.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--unlocked .newgen-pdp-bulk__tier-status {
	color: var(--color-on-primary);
}

.newgen-pdp-bulk__tier-status svg {
	display: block;
	width: 0.875rem;
	height: 0.875rem;
}

.newgen-pdp-bulk__summary {
	display: grid;
	gap: var(--space-3);
}

.newgen-pdp-bulk__price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--space-5);
}

.newgen-pdp-bulk__price-block--compare[hidden],
.newgen-pdp-bulk__savings[hidden] {
	display: none !important;
}

.newgen-pdp-bulk__summary:not(.newgen-pdp-bulk__summary--discounted) .newgen-pdp-bulk__price-block--compare,
.newgen-pdp-bulk__summary:not(.newgen-pdp-bulk__summary--discounted) .newgen-pdp-bulk__savings {
	display: none;
}

.newgen-pdp-bulk__price-block {
	display: grid;
	gap: var(--space-1);
}

.newgen-pdp-bulk__price-label {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--color-text-secondary);
}

.newgen-pdp-bulk__price-current {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
	font-weight: var(--font-weight-semibold);
	line-height: var(--leading-snug);
	color: var(--color-text);
}

.newgen-pdp-bulk__price-compare {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: var(--font-weight-regular);
	line-height: var(--leading-snug);
	text-decoration: line-through;
	color: var(--color-text-secondary);
}

.newgen-pdp-bulk__savings {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-2);
	margin: 0;
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-sm);
	background: var(--color-tag-brand);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	color: var(--color-primary);
}

.newgen-pdp-bulk__savings-amount {
	font-weight: var(--font-weight-semibold);
}

.newgen-pdp-bulk__next-tier {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	line-height: var(--leading-body);
	color: var(--color-text-secondary);
}

.newgen-pdp-bulk__live {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.newgen-pdp-bulk__body {
	display: grid;
	gap: var(--space-5);
}

.newgen-pdp-bulk__placeholder {
	display: grid;
	place-items: center;
	min-height: 8rem;
	padding: var(--space-5);
	border: 0.5px dashed var(--color-border-card);
	border-radius: var(--radius-md);
	background: var(--color-background-muted);
	text-align: center;
}

.newgen-pdp-bulk__placeholder-text {
	margin: 0;
	max-width: 20rem;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	line-height: var(--leading-body);
	color: var(--color-text-secondary);
}

.newgen-pdp-bulk--awaiting-variation .newgen-pdp-bulk__header {
	margin-bottom: 0;
}

.newgen-pdp-bulk--variable.newgen-pdp-bulk--awaiting-variation {
	gap: var(--space-4);
}

@media (max-width: 639px) {
	.newgen-pdp-bulk {
		gap: var(--space-3);
		padding: var(--space-4);
	}

	.newgen-pdp-bulk__header {
		gap: var(--space-1);
	}

	.newgen-pdp-bulk__title {
		font-size: var(--text-lg);
	}

	.newgen-pdp-bulk__lede {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
		font-size: var(--text-sm);
		line-height: var(--leading-snug);
	}

	.newgen-pdp-bulk__track {
		padding-block: var(--space-1) var(--space-2);
	}

	.newgen-pdp-bulk__track-line {
		top: calc(var(--space-1) + 0.3125rem);
		left: 0.5rem;
		right: 0.5rem;
		height: 0.125rem;
	}

	.newgen-pdp-bulk__milestone-dot {
		width: 0.625rem;
		height: 0.625rem;
		border-width: 0.09375rem;
	}

	.newgen-pdp-bulk__body {
		gap: var(--space-3);
	}

	.newgen-pdp-bulk__tiers {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-2);
	}

	.newgen-pdp-bulk__tier {
		gap: var(--space-1);
		padding: var(--space-2) var(--space-1);
		text-align: center;
	}

	.newgen-pdp-bulk__tier-head {
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: var(--space-1);
	}

	.newgen-pdp-bulk__tier-qty {
		font-size: var(--text-sm);
		line-height: var(--leading-tight);
	}

	.newgen-pdp-bulk__tier-qty-compact {
		display: none;
	}

	.newgen-pdp-bulk__tier-qty-full {
		display: block;
		font-size: var(--text-xs);
		font-weight: var(--font-weight-medium);
		line-height: var(--leading-tight);
	}

	.newgen-pdp-bulk__tier-badge {
		padding: 0.125rem var(--space-1);
		font-size: var(--text-2xs);
		line-height: 1.2;
	}

	.newgen-pdp-bulk__tier-price {
		font-size: var(--text-sm);
		font-weight: var(--font-weight-semibold);
		line-height: var(--leading-tight);
	}

	.newgen-pdp-bulk__tier-meta {
		font-size: var(--text-2xs);
		line-height: var(--leading-tight);
		color: var(--color-text-secondary);
	}

	.newgen-pdp-bulk__tier-star {
		top: var(--space-1);
		right: var(--space-1);
		font-size: var(--text-2xs);
		line-height: 1;
	}

	.newgen-pdp-bulk__tier-status {
		justify-content: center;
		gap: var(--space-1);
		margin-top: 0;
		font-size: var(--text-2xs);
		line-height: var(--leading-tight);
	}

	.newgen-pdp-bulk__tier-status svg {
		width: 0.625rem;
		height: 0.625rem;
	}

	.newgen-pdp-bulk__tier--unlocked:not(.newgen-pdp-bulk__tier--active) .newgen-pdp-bulk__tier-status {
		display: none;
	}

	.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--active,
	.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--unlocked {
		border-color: var(--color-primary-dark);
		background: var(--color-primary-dark);
		color: var(--color-on-primary);
	}

	.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--active .newgen-pdp-bulk__tier-qty-full,
	.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--unlocked .newgen-pdp-bulk__tier-qty-full,
	.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--active .newgen-pdp-bulk__tier-price,
	.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--unlocked .newgen-pdp-bulk__tier-price {
		color: var(--color-on-primary);
	}

	.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--active .newgen-pdp-bulk__tier-meta,
	.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--unlocked .newgen-pdp-bulk__tier-meta {
		color: color-mix(in srgb, var(--color-on-primary) 72%, transparent);
	}

	.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--active .newgen-pdp-bulk__tier-badge--max,
	.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--unlocked .newgen-pdp-bulk__tier-badge--max {
		background: color-mix(in srgb, var(--color-on-primary) 16%, transparent);
		color: var(--color-on-primary);
	}

	.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--active .newgen-pdp-bulk__tier-star,
	.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--unlocked .newgen-pdp-bulk__tier-star,
	.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--active .newgen-pdp-bulk__tier-status,
	.newgen-pdp-bulk__tier--max.newgen-pdp-bulk__tier--unlocked .newgen-pdp-bulk__tier-status {
		color: var(--color-on-primary);
	}

	.newgen-pdp-bulk__summary {
		gap: var(--space-2);
	}

	.newgen-pdp-bulk__price-current {
		font-size: var(--text-xl);
	}

	.newgen-pdp-bulk__next-tier {
		font-size: var(--text-xs);
		line-height: var(--leading-snug);
	}
}

/* —— Add to cart —— */

.newgen-pdp__summary form.cart {
	display: grid;
	gap: var(--space-4);
	margin: 0;
	background: var(--color-surface);
}

.newgen-pdp__summary form.variations_form.cart {
	gap: var(--space-5);
}

.newgen-pdp__summary form.variations_form.cart > .variations {
	order: 1;
}

.newgen-pdp__summary form.variations_form.cart > .newgen-pdp-bulk {
	order: 2;
}

.newgen-pdp__summary form.variations_form.cart > .newgen-pdp-trust {
	order: 3;
}

.newgen-pdp__summary form.variations_form .newgen-pdp-bulk {
	margin: 0;
}

.newgen-pdp-purchase-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-4);
}

.newgen-pdp-purchase-row .woocommerce-variation-availability {
	margin: 0;
}

.newgen-pdp-purchase-row .stock {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	color: var(--color-primary);
}

.newgen-pdp__summary form.variations_form .woocommerce-variation-add-to-cart {
	display: grid;
	gap: var(--space-4);
}

.newgen-pdp__summary .woocommerce-variation-price {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.newgen-pdp__summary .variations {
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin: 0;
	padding: var(--space-4) var(--space-5);
	border: 0.5px solid var(--color-border-card);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
}

.newgen-pdp__summary .variations tbody,
.newgen-pdp__summary .variations tr {
	display: block;
	width: 100%;
}

.newgen-pdp__summary .variations tbody {
	display: grid;
	gap: var(--space-4);
}

.newgen-pdp__summary .variations td,
.newgen-pdp__summary .variations th {
	display: block;
	padding: 0;
	border: 0;
}

.newgen-pdp__summary .variations label {
	display: block;
	margin-bottom: var(--space-2);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	color: var(--color-text-secondary);
}

.newgen-pdp__summary .reset_variations {
	display: none;
}

.newgen-pdp__summary .quantity {
	display: inline-flex;
	align-items: stretch;
	width: fit-content;
	max-width: 100%;
	border: 0.5px solid var(--color-border);
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--color-surface);
}

.newgen-pdp__summary .quantity .qty {
	box-sizing: border-box;
	width: 3rem;
	height: var(--size-touch);
	padding: 0;
	border: 0;
	border-inline: 0.5px solid var(--color-border);
	border-radius: 0;
	background: transparent;
	font-family: var(--font-body);
	font-size: var(--text-md);
	font-weight: var(--font-weight-medium);
	line-height: 1;
	text-align: center;
	color: var(--color-text);
	-moz-appearance: textfield;
}

.newgen-pdp__summary .quantity .qty::-webkit-outer-spin-button,
.newgen-pdp__summary .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.newgen-pdp__summary .quantity .qty:focus-visible {
	outline: var(--focus-ring);
	outline-offset: -2px;
}

.newgen-pdp__summary .newgen-qty-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--size-touch);
	height: var(--size-touch);
	padding: 0;
	border: 0;
	background: var(--color-background-muted);
	font-family: var(--font-body);
	font-size: var(--text-lg);
	font-weight: var(--font-weight-medium);
	line-height: 1;
	color: var(--color-text);
	cursor: pointer;
	transition:
		background-color var(--duration-ui) var(--ease-ui),
		color var(--duration-ui) var(--ease-ui);
}

.newgen-pdp__summary .newgen-qty-btn:hover:not(:disabled) {
	background: var(--color-tag-brand);
	color: var(--color-primary);
}

.newgen-pdp__summary .newgen-qty-btn:focus-visible {
	outline: var(--focus-ring);
	outline-offset: -2px;
}

.newgen-pdp__summary .newgen-qty-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.newgen-pdp__summary .single_add_to_cart_button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: var(--size-touch-lg);
	padding: var(--space-3) var(--space-5);
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--color-primary);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	color: var(--color-on-primary);
	cursor: pointer;
	transition:
		background-color var(--duration-ui) var(--ease-ui),
		color var(--duration-ui) var(--ease-ui);
}

.newgen-pdp__summary .single_add_to_cart_button:hover:not(:disabled) {
	background: var(--color-primary-dark);
}

.newgen-pdp__summary .single_add_to_cart_button:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.newgen-pdp__summary .single_add_to_cart_button:disabled,
.newgen-pdp__summary .single_add_to_cart_button.disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.newgen-pdp__purchase--unavailable {
	padding: var(--space-5);
	border: 0.5px solid var(--color-border-card);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
}

.newgen-pdp__summary .variations select {
	box-sizing: border-box;
	width: 100%;
	height: 40px;
	padding: var(--space-2) var(--space-3);
	border: 0.5px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	color: var(--color-text);
}

.newgen-variation-toggle-group {
	display: grid;
	gap: var(--space-3);
}

.newgen-variation-toggle-group__label {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0;
	font-family: var(--font-hero-brand);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--color-text-secondary);
}

.newgen-variation-toggle-group__label-dot {
	flex-shrink: 0;
	width: 0.375rem;
	height: 0.375rem;
	border-radius: var(--radius-full);
	background: var(--color-highlight);
}

.newgen-variation-toggle-options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.newgen-variation-toggle {
	box-sizing: border-box;
	flex: 1 1 6rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 3rem;
	padding: var(--space-3) var(--space-5);
	border: 1px solid var(--color-border-card);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	font-family: var(--font-body);
	font-size: var(--text-md);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	white-space: nowrap;
	color: var(--color-text);
	cursor: pointer;
	transition:
		border-color var(--duration-ui) var(--ease-ui),
		background-color var(--duration-ui) var(--ease-ui),
		color var(--duration-ui) var(--ease-ui),
		box-shadow var(--duration-ui) var(--ease-ui);
}

.newgen-variation-toggle:hover {
	border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border-card));
	color: var(--color-primary);
}

.newgen-variation-toggle.is-selected,
.newgen-variation-toggle[aria-pressed="true"] {
	border-color: var(--color-primary);
	background: var(--color-tag-brand);
	color: var(--color-primary);
	font-weight: var(--font-weight-semibold);
}

.newgen-variation-toggle:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.newgen-variation-toggle:disabled,
.newgen-variation-toggle[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
}

.newgen-variation-native-select {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* —— Trust strip —— */

.newgen-pdp-trust {
	display: grid;
	gap: var(--space-4);
	padding: var(--space-5);
	border: 0.5px solid var(--color-border-card);
	border-radius: var(--radius-lg);
	background: var(--color-background-muted);
}

.newgen-pdp-trust__list {
	display: grid;
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.newgen-pdp-trust__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-4);
	}
}

.newgen-pdp-trust__item {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	line-height: var(--leading-body);
	color: var(--color-text-secondary);
}

.newgen-pdp-trust__item svg {
	flex-shrink: 0;
	margin-top: 0.125rem;
	color: var(--color-primary);
}

.newgen-pdp-trust__item a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--duration-ui) var(--ease-ui);
}

.newgen-pdp-trust__item a:hover {
	color: var(--color-primary-dark);
}

.newgen-pdp-trust__disclaimer {
	margin: 0;
	padding-top: var(--space-3);
	border-top: 0.5px solid var(--color-border-card);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	line-height: var(--leading-body);
	color: var(--color-highlight);
}

/* —— Product tabs —— */

.newgen-pdp__tabs {
	display: grid;
	gap: var(--space-8);
	min-width: 0;
}

.newgen-pdp__tabs .woocommerce-tabs {
	box-sizing: border-box;
	border: 0.5px solid var(--color-border-card);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
	overflow: hidden;
}

.newgen-pdp__tabs .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 0.5px solid var(--color-border-card);
	background: var(--color-background-muted);
}

.newgen-pdp__tabs .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.newgen-pdp__tabs .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: var(--space-4) var(--space-5);
	border-bottom: 2px solid transparent;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	text-decoration: none;
	color: var(--color-text-secondary);
	transition:
		color var(--duration-ui) var(--ease-ui),
		border-color var(--duration-ui) var(--ease-ui),
		background-color var(--duration-ui) var(--ease-ui);
}

.newgen-pdp__tabs .woocommerce-tabs ul.tabs li.active a,
.newgen-pdp__tabs .woocommerce-tabs ul.tabs li a:hover {
	border-bottom-color: var(--color-primary);
	background: var(--color-surface);
	color: var(--color-primary);
}

.newgen-pdp__tabs .woocommerce-Tabs-panel {
	padding: var(--space-6);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-body);
	color: var(--color-text-secondary);
}

.newgen-pdp__tabs .woocommerce-Tabs-panel h2 {
	margin: 0 0 var(--space-4);
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	color: var(--color-text);
}

.newgen-pdp__tabs .woocommerce-Tabs-panel p {
	margin: 0 0 var(--space-4);
}

.newgen-pdp__tabs .woocommerce-Tabs-panel p:last-child {
	margin-bottom: 0;
}

/* —— Details (related / upsells) —— */

.newgen-pdp__details {
	display: grid;
	gap: var(--space-10);
}

/* —— Related products —— */

.newgen-pdp__details .related.products,
.newgen-pdp__details .upsells.products {
	display: grid;
	gap: var(--space-6);
}

.newgen-pdp__details .related.products > h2,
.newgen-pdp__details .upsells.products > h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-h1);
	color: var(--color-text);
}

.newgen-pdp__details ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-4) !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
	float: none !important;
	clear: none;
}

.newgen-pdp__details ul.products::before,
.newgen-pdp__details ul.products::after {
	content: none !important;
	display: none !important;
}

@media (min-width: 768px) {
	.newgen-pdp__details ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-6) !important;
	}
}

@media (min-width: 1024px) {
	.newgen-pdp__details ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.newgen-pdp__details ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	clear: none !important;
}

/* —— Mobile sticky buy bar —— */

.newgen-pdp-mobile-buy {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	border-top: 0.5px solid var(--color-border-card);
	background: var(--color-surface);
}

.newgen-pdp-mobile-buy__inner {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	max-width: var(--layout-max);
	margin-inline: auto;
	padding: var(--space-3) var(--space-4);
}

.newgen-pdp-mobile-buy__price-wrap {
	display: grid;
	gap: var(--space-1);
	min-width: 0;
}

.newgen-pdp-mobile-buy__label {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--color-text-secondary);
}

.newgen-pdp-mobile-buy__price {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--text-lg);
	font-weight: var(--font-weight-semibold);
	line-height: var(--leading-snug);
	color: var(--color-text);
}

.newgen-pdp-mobile-buy__price .price {
	margin: 0;
	font: inherit;
	color: inherit;
}

.newgen-pdp-mobile-buy__cta {
	box-sizing: border-box;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--size-touch-lg);
	padding: var(--space-3) var(--space-5);
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--color-primary);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-medium);
	line-height: var(--leading-snug);
	color: var(--color-on-primary);
	cursor: pointer;
	transition: background-color var(--duration-ui) var(--ease-ui);
}

.newgen-pdp-mobile-buy__cta:hover:not(:disabled) {
	background: var(--color-primary-dark);
}

.newgen-pdp-mobile-buy__cta:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.newgen-pdp-mobile-buy__cta:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

@media (min-width: 1024px) {
	.newgen-pdp-mobile-buy {
		display: none;
	}
}

@media (max-width: 1023px) {
	body:has(.newgen-pdp-mobile-buy:not([hidden])) {
		padding-bottom: calc(var(--size-touch-lg) + var(--space-6));
	}
}

/* —— Reduced motion —— */

@media (prefers-reduced-motion: reduce) {
	.newgen-pdp-bulk__track-fill,
	.newgen-pdp-bulk__tier,
	.newgen-pdp-bulk__milestone-dot,
	.newgen-pdp-bulk__tier-star,
	.newgen-pdp__media .flex-control-thumbs img,
	.newgen-pdp__summary .newgen-qty-btn,
	.newgen-pdp__summary .single_add_to_cart_button,
	.newgen-pdp-mobile-buy__cta,
	.newgen-pdp-trust__item a,
	.newgen-pdp__tabs .woocommerce-tabs ul.tabs li a {
		transition: none;
	}

	.newgen-pdp-bulk__milestone--complete .newgen-pdp-bulk__milestone-dot {
		transform: none;
	}
}
