/**
 * HYPRO — Custom single product page styles.
 * All classes are prefixed with `pd-`.
 *
 * Accent tokens injected inline by PHP:
 *   --pd-accent       accent oklch color
 *   --pd-accent-dark  darker accent
 *   --pd-glow         rgba glow color for image background
 */

/* ─── Nav offset ───────────────────────────────────────────────────────────── */
body.single-product {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* ─── Base Tokens ──────────────────────────────────────────────────────────── */
.pd-wrapper {
	--pd-blue:        #1526BE;
	--pd-near-black:  #0C0C0A;
	--pd-off-white:   #F4F3EF;
	--pd-muted:       #6B6B68;
	--pd-border:      #E2E1DC;
	--pd-card-bg:     #ffffff;
	--pd-card-bg2:    #F8F7F3;
	margin-top: 68px;
}

.admin-bar .pd-wrapper {
	margin-top: 68px;
}

/* ─── Breadcrumb ───────────────────────────────────────────────────────────── */
.pd-breadcrumb {
	position: sticky;
	top: 68px; /* matches nav height */
	z-index: 90;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--pd-border);
}

.admin-bar .pd-breadcrumb {
	top: 100px; /* 68px nav + 32px admin bar */
}

.pd-breadcrumb__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.pd-breadcrumb__trail {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13px;
	color: var(--pd-muted);
	flex-wrap: wrap;
}

.pd-breadcrumb__item {
	display: flex;
	align-items: center;
}

.pd-breadcrumb__link {
	color: var(--pd-muted);
	text-decoration: none;
	transition: color 0.15s;
}

.pd-breadcrumb__link:hover {
	color: var(--pd-near-black);
}

.pd-breadcrumb__item--current {
	color: var(--pd-near-black);
	font-weight: 600;
}

.pd-breadcrumb__sep {
	color: var(--pd-border);
	font-size: 11px;
}

.pd-breadcrumb__flavors {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.pd-breadcrumb__also-label {
	font-size: 12px;
	color: var(--pd-muted);
	white-space: nowrap;
}

.pd-breadcrumb__pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 14px;
	border-radius: 999px;
	border: 1px solid var(--pd-border);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	color: var(--pd-near-black);
	background: transparent;
	transition: background 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.pd-breadcrumb__pill:hover {
	background: var(--pd-off-white);
	border-color: #ccc;
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.pd-hero {
	background: #ffffff;
	padding: 88px 24px 80px;
}

.pd-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	max-width: 1200px;
	margin: 0 auto;
	align-items: center;
}

/* Image column */
.pd-hero__image-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pd-hero__glow {
	position: absolute;
	inset: 0;
	border-radius: 32px;
	background: radial-gradient(ellipse at 50% 40%, var(--pd-glow, rgba(160,255,0,0.2)) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.pd-hero__image-card {
	position: relative;
	z-index: 1;
	width: 100%;
	border-radius: 32px;
	background: linear-gradient(160deg, #F8F7F3 0%, #EDECE8 100%);
	padding: 56px 48px;
	min-height: 480px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.pd-hero__badge {
	position: absolute;
	top: 20px;
	left: 20px;
	background: var(--pd-near-black);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
}

.pd-hero__img {
	max-height: 380px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.pd-hero__img-placeholder {
	width: 280px;
	height: 380px;
	background: linear-gradient(160deg, #E8E7E3 0%, #D8D7D3 100%);
	border-radius: 16px;
}

/* Info column */
.pd-hero__info {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.pd-hero__meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pd-hero__flavor-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--pd-accent, var(--pd-blue));
	flex-shrink: 0;
}

.pd-hero__meta-text {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--pd-muted);
}

.pd-hero__name {
	font-family: var(--hypro-font-display, 'Yumex', sans-serif);
	font-weight: 800;
	font-size: clamp(52px, 7vw, 84px);
	line-height: 0.9;
	letter-spacing: -0.02em;
	color: var(--pd-near-black);
	margin: 0;
	display: flex;
	flex-direction: column;
}

.pd-hero__name-brand {
	display: block;
}

.pd-hero__name-flavor {
	display: block;
	color: var(--pd-accent, var(--pd-blue));
}

.pd-hero__descriptor {
	font-size: 16px;
	line-height: 1.6;
	color: var(--pd-muted);
	margin: 0;
}

/* ─── Stats Grid ───────────────────────────────────────────────────────────── */
.pd-stats-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	background: var(--pd-border);
	border: 1px solid var(--pd-border);
	border-radius: 10px;
	overflow: hidden;
	gap: 1px;
}

.pd-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px 8px;
	background: #ffffff;
	text-align: center;
}

.pd-stat__num {
	font-family: var(--hypro-font-display, 'Yumex', sans-serif);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	color: var(--pd-near-black);
}

.pd-stat__label {
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--pd-muted);
	margin-top: 3px;
}

/* ─── Allergen Chips ───────────────────────────────────────────────────────── */
.pd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pd-chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid var(--pd-border);
	font-size: 12px;
	font-weight: 500;
	color: var(--pd-near-black);
	background: #fff;
	line-height: 1.2;
}

.pd-chip--warn {
	border-color: #f59e0b;
	color: #92400e;
	background: #fffbeb;
}

/* ─── Price ────────────────────────────────────────────────────────────────── */
.pd-price {
	font-family: var(--hypro-font-display, 'Yumex', sans-serif);
	font-size: 48px;
	font-weight: 800;
	line-height: 1;
	color: var(--pd-near-black);
	margin: 0;
}

.pd-price .woocommerce-Price-amount {
	color: inherit;
}

/* ─── Cart Form ────────────────────────────────────────────────────────────── */
.pd-cart-form {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* Quantity stepper */
.pd-qty {
	display: flex;
	align-items: stretch;
	border: 1.5px solid var(--pd-border);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.pd-qty__btn {
	width: 44px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	font-size: 20px;
	font-weight: 700;
	color: var(--pd-near-black);
	cursor: pointer;
	line-height: 1;
	transition: background 0.15s;
}

.pd-qty__btn:hover {
	background: var(--pd-off-white);
}

.pd-qty__input {
	width: 40px;
	border: none;
	border-left: 1px solid var(--pd-border);
	border-right: 1px solid var(--pd-border);
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	color: var(--pd-near-black);
	outline: 2px solid transparent;
	-moz-appearance: textfield;
	background: #fff;
}

.pd-qty__input:focus {
	outline: 2px solid var(--pd-near-black, #1a1a1a);
	outline-offset: 2px;
}

.pd-qty__input::-webkit-inner-spin-button,
.pd-qty__input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Add to cart button */
.pd-atc-btn {
	flex: 1;
	min-width: 180px;
	height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--pd-blue);
	color: #ffffff;
	border: none;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s, transform 0.1s;
}

.pd-atc-btn:hover {
	background: #0B1590;
}

.pd-atc-btn:active {
	transform: scale(0.98);
}

.pd-atc-btn.is-adding {
	background: var(--pd-muted);
	pointer-events: none;
}

.pd-atc-btn.is-added {
	background: #16a34a;
}

/* ─── Tabs Section ─────────────────────────────────────────────────────────── */
.pd-tabs {
	background: var(--pd-off-white);
	padding: 0 24px 80px;
}

.pd-tabs__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.pd-tab-bar {
	display: flex;
	border-bottom: 1px solid var(--pd-border);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.pd-tab-bar::-webkit-scrollbar {
	display: none;
}

.pd-tab-btn {
	flex-shrink: 0;
	padding: 20px 28px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	font-size: 14px;
	font-weight: 600;
	color: var(--pd-muted);
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.pd-tab-btn:hover {
	color: var(--pd-near-black);
}

.pd-tab-btn.is-active {
	color: var(--pd-blue);
	border-bottom-color: var(--pd-blue);
}

.pd-tab-panel {
	display: none;
	padding-top: 40px;
}

.pd-tab-panel.is-active {
	display: block;
}

/* ─── Nutrition Table ──────────────────────────────────────────────────────── */
.pd-nutr-layout {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 40px;
	align-items: start;
}

.pd-nutrition-table {
	background: var(--pd-card-bg);
	border-radius: 16px;
	border: 1px solid var(--pd-border);
	overflow: hidden;
}

.pd-nutr-row {
	display: grid;
	grid-template-columns: 2fr 1.2fr 1fr 0.6fr;
	padding: 10px 20px;
	border-bottom: 1px solid var(--pd-off-white);
	font-size: 13px;
	line-height: 1.4;
	color: var(--pd-near-black);
	align-items: center;
}

.pd-nutr-row:last-of-type {
	border-bottom: none;
}

.pd-nutr-row--header {
	background: var(--pd-near-black);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 12px 20px;
}

.pd-nutr-row--child {
	padding-left: 36px;
	color: var(--pd-muted);
	font-size: 12px;
}

.pd-nutr-row--parent {
	font-weight: 600;
}

.pd-nutr-row--highlight {
	background: color-mix(in srgb, var(--pd-accent, var(--pd-blue)) 10%, transparent);
	font-weight: 700;
}

.pd-nutr-row--vitamin {
	border-left: 3px solid var(--pd-accent, var(--pd-blue));
	padding-left: 17px;
}

.pd-nutr-disclaimer {
	font-size: 11px;
	color: var(--pd-muted);
	line-height: 1.5;
	padding: 12px 20px;
	border-top: 1px solid var(--pd-off-white);
	margin: 0;
}

/* Nutrition right stats */
.pd-nutr-right {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pd-stat-card {
	background: var(--pd-card-bg);
	border-radius: 16px;
	border: 1px solid var(--pd-border);
	padding: 20px 24px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.pd-stat-card__num {
	font-family: var(--hypro-font-display, 'Yumex', sans-serif);
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	color: var(--pd-accent, var(--pd-blue));
	flex-shrink: 0;
}

.pd-stat-card__label {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--pd-near-black);
}

.pd-stat-card__sub {
	display: block;
	font-size: 12px;
	color: var(--pd-muted);
	margin-top: 2px;
}

.pd-nutr-vd-note {
	font-size: 11px;
	color: var(--pd-muted);
	line-height: 1.5;
	margin: 0;
	padding: 4px 0;
}

/* ─── Ingredients Tab ──────────────────────────────────────────────────────── */
.pd-ingr-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}

.pd-ingr-text {
	font-size: 15px;
	line-height: 1.7;
	color: var(--pd-muted);
	max-width: 720px;
	margin: 0;
}

.pd-ingr-card {
	background: var(--pd-card-bg);
	border-radius: 16px;
	border: 1px solid var(--pd-border);
	padding: 28px;
	margin-bottom: 16px;
}

.pd-ingr-card__title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pd-muted);
	margin: 0 0 12px;
}

.pd-ingr-card__text {
	font-size: 14px;
	line-height: 1.7;
	color: var(--pd-near-black);
	margin: 0;
}

.pd-allergen-box {
	background: #fffbeb;
	border: 1px solid #fcd34d;
	border-radius: 12px;
	padding: 16px 20px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #78350f;
	font-size: 13px;
	line-height: 1.5;
}

.pd-allergen-box p {
	margin: 0;
}

.pd-allergen-box__icon {
	flex-shrink: 0;
	color: #d97706;
	margin-top: 1px;
}

/* Clean list */
.pd-ingr-right__title {
	font-family: var(--hypro-font-display, 'Yumex', sans-serif);
	font-size: 28px;
	font-weight: 800;
	color: var(--pd-near-black);
	margin: 0 0 20px;
	line-height: 1.1;
}

.pd-clean-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pd-clean-list__item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 500;
	color: var(--pd-near-black);
}

.pd-clean-list__check {
	color: var(--pd-accent, var(--pd-blue));
	flex-shrink: 0;
}

.pd-disclaimer-card {
	background: var(--pd-near-black);
	color: rgba(255, 255, 255, 0.7);
	border-radius: 16px;
	padding: 20px 24px;
	font-size: 12px;
	line-height: 1.6;
}

.pd-disclaimer-card p {
	margin: 0;
}

/* ─── Description Tab ──────────────────────────────────────────────────────── */
.pd-desc-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

.pd-desc-heading {
	font-family: var(--hypro-font-display, 'Yumex', sans-serif);
	font-size: 36px;
	font-weight: 800;
	line-height: 1.05;
	color: var(--pd-near-black);
	margin: 0 0 20px;
}

.pd-desc-body {
	font-size: 15px;
	line-height: 1.7;
	color: var(--pd-muted);
}

.pd-desc-body p {
	margin: 0 0 16px;
}

.pd-desc-body p:last-child {
	margin-bottom: 0;
}

/* Feature cards */
.pd-desc-right {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pd-feature-card {
	background: var(--pd-card-bg);
	border-radius: 16px;
	border: 1px solid var(--pd-border);
	padding: 20px 24px;
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.pd-feature-card__num {
	font-family: var(--hypro-font-display, 'Yumex', sans-serif);
	font-size: 28px;
	font-weight: 800;
	color: var(--pd-accent, var(--pd-blue));
	opacity: 0.4;
	flex-shrink: 0;
	line-height: 1;
	width: 36px;
}

.pd-feature-card__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--pd-near-black);
	margin: 0 0 4px;
}

.pd-feature-card__body {
	font-size: 13px;
	color: var(--pd-muted);
	line-height: 1.5;
	margin: 0;
}

/* ─── Also Available ───────────────────────────────────────────────────────── */
.pd-also {
	background: #ffffff;
	padding: 80px 24px;
}

.pd-also__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}

.pd-also__eyebrow {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--pd-muted);
	margin: 0 0 12px;
}

.pd-also__name {
	font-family: var(--hypro-font-display, 'Yumex', sans-serif);
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 800;
	line-height: 0.95;
	color: var(--pd-near-black);
	margin: 0 0 16px;
}

.pd-also__desc {
	font-size: 15px;
	line-height: 1.6;
	color: var(--pd-muted);
	margin: 0 0 28px;
}

.pd-also__btn {
	display: inline-flex;
	align-items: center;
	padding: 14px 32px;
	border-radius: 12px;
	background: var(--pd-blue);
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s;
}

.pd-also__btn:hover {
	background: #0B1590;
	color: #ffffff;
}

.pd-also__image-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pd-also__glow {
	position: absolute;
	inset: -20px;
	background: radial-gradient(ellipse at 50% 50%, var(--pd-glow, rgba(160,255,0,0.2)) 0%, transparent 70%);
	pointer-events: none;
}

.pd-also__img {
	position: relative;
	z-index: 1;
	max-height: 220px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.pd-hero__inner {
		gap: 48px;
	}

	.pd-nutr-layout {
		grid-template-columns: 1fr;
	}

	.pd-ingr-layout {
		grid-template-columns: 1fr;
	}

	.pd-desc-layout {
		grid-template-columns: 1fr;
	}

	.pd-also__inner {
		gap: 40px;
	}
}

@media (max-width: 768px) {
	.pd-breadcrumb__inner {
		padding: 0 16px;
	}

	.pd-breadcrumb__flavors {
		display: none;
	}

	.pd-hero {
		padding: 48px 16px 56px;
	}

	.pd-hero__inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.pd-hero__image-card {
		padding: 40px 32px;
		min-height: 320px;
	}

	.pd-hero__img {
		max-height: 260px;
	}

	.pd-hero__name {
		font-size: clamp(44px, 12vw, 64px);
	}

	.pd-stats-grid {
		grid-template-columns: repeat(5, 1fr);
	}

	.pd-stat__num {
		font-size: 16px;
	}

	.pd-stat__label {
		font-size: 9px;
	}

	.pd-stat {
		padding: 8px 5px;
	}

	.pd-price {
		font-size: 36px;
	}

	.pd-cart-form {
		flex-direction: column;
		align-items: stretch;
	}

	.pd-qty {
		align-self: flex-start;
	}

	.pd-atc-btn {
		min-width: auto;
	}

	.pd-tabs {
		padding: 0 16px 56px;
	}

	.pd-tab-btn {
		padding: 16px 18px;
		font-size: 13px;
	}

	.pd-nutr-row {
		grid-template-columns: 2fr 1fr 0.8fr 0.5fr;
		font-size: 12px;
		padding: 9px 12px;
	}

	.pd-nutr-row--child {
		padding-left: 22px;
	}

	.pd-also {
		padding: 56px 16px;
	}

	.pd-also__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.pd-also__image-wrap {
		order: -1;
	}

	.pd-also__img {
		max-height: 180px;
	}
}

@media (max-width: 480px) {
	.pd-hero__image-card {
		border-radius: 24px;
		padding: 32px 24px;
	}

	.pd-hero__name {
		font-size: clamp(40px, 14vw, 56px);
	}

	.pd-stats-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.pd-feature-card {
		flex-direction: column;
		gap: 8px;
	}
}
