/**
 * Editorial single product. New pd-* structure — does not restyle the old dashboard layout.
 */

/* Kill inherited wrappers that painted a giant product slab. */
body.product-page .pd-product.featured,
body.product-page div.product.featured {
	background: transparent;
	padding: 0;
}

body.product-page .woocommerce-product-gallery,
body.product-page .woocommerce-product-gallery .flex-viewport,
body.product-page .woocommerce-product-gallery__wrapper,
body.product-page .woocommerce-product-gallery__image,
body.product-page .woocommerce-product-gallery__image a,
body.product-page .tn-gallery-fallback {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.product-page {
	--pd-blue: #3174ff;
	--pd-ink: #f4f1ea;
	--pd-muted: #c5ced8;
	background: #0b0e12;
	color: var(--pd-ink);
}

body.product-page .site-header {
	background: #0b0e12;
	border-bottom-color: rgba(244, 241, 234, 0.1);
}

body.product-page .header-inner,
body.product-page .site-footer .container,
.pd-wrap {
	width: min(var(--ds-container), calc(100% - var(--ds-gutter)));
	margin-inline: auto;
}

.pd-page {
	background: #0b0e12;
	padding-bottom: 0;
}

.pd-product {
	background: transparent;
}

.pd-crumb {
	padding: 20px 0 0;
}

.pd-page .breadcrumbs {
	color: var(--pd-muted);
	font-size: 13px;
	letter-spacing: 0.04em;
}

.pd-page .breadcrumbs a {
	color: var(--pd-muted);
	text-decoration: none;
}

.pd-page .breadcrumbs a:hover {
	color: #fff;
}

/* —— Hero: editorial split, no panel —— */
.pd-hero {
	position: relative;
	padding: 12px 0 56px;
	background:
		radial-gradient(720px 420px at 22% 42%, rgba(49, 116, 255, 0.14), transparent 62%),
		#0b0e12;
	overflow: hidden;
}

.pd-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
	gap: 24px 56px;
	align-items: center;
	min-height: 0;
}

.pd-visual {
	position: relative;
	min-width: 0;
	display: grid;
	place-items: center;
}

.pd-visual::before {
	content: "";
	position: absolute;
	width: min(88%, 560px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(49, 116, 255, 0.2) 0%, rgba(49, 116, 255, 0.04) 42%, transparent 70%);
	pointer-events: none;
}

.pd-visual .woocommerce-product-gallery,
.pd-visual .pd-visual__figure,
.pd-visual .woocommerce-product-gallery__wrapper,
.pd-visual .flex-viewport {
	position: relative;
	z-index: 1;
	width: 100% !important;
	float: none;
	overflow: visible;
}

.pd-visual .woocommerce-product-gallery__image,
.pd-visual .pd-visual__figure {
	display: grid;
	place-items: center;
	margin: 0;
	aspect-ratio: auto;
	min-height: 0;
	padding: 0;
}

.pd-visual img {
	position: relative;
	z-index: 1;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: min(76vh, 740px) !important;
	object-fit: contain;
	filter: drop-shadow(0 32px 50px rgba(0, 0, 0, 0.45));
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-visual:hover img {
	transform: scale(1.04) translateY(-8px);
}

.pd-visual .flex-control-thumbs {
	display: flex;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.pd-visual .flex-control-thumbs li {
	width: 64px;
	aspect-ratio: 1;
	border: 1px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(16, 21, 28, 0.5);
}

.pd-visual .flex-control-thumbs .flex-active {
	border-color: var(--pd-blue);
}

.pd-visual .onsale {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	padding: 8px 12px;
	background: var(--pd-blue);
	color: #fff;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.pd-info {
	container-type: inline-size;
	min-width: 0;
	padding: 8px 0 0;
}

.pd-brand {
	margin: 0 0 18px;
	color: var(--pd-blue);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.pd-brand .brand-logo {
	display: block;
	height: 44px;
	width: auto;
	max-width: 240px;
	object-fit: contain;
	object-position: left center;
}

.pd-title {
	margin: 0;
	color: #f4f1ea;
	font-family: var(--ds-font-display);
	font-size: clamp(4.2rem, 12cqi, 7rem);
	line-height: 0.86;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-wrap: balance;
}

.pd-size {
	margin: 20px 0 0;
	color: #fff;
	font-family: var(--ds-font-display);
	font-size: clamp(1.9rem, 4.4cqi, 2.7rem);
	letter-spacing: 0.08em;
}

.pd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.pd-chips li {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 13px;
	border: 1px solid rgba(244, 241, 234, 0.18);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.pd-buy {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid rgba(244, 241, 234, 0.12);
}

.pd-stock .stock {
	margin: 0 0 10px;
	color: #cfe8d8;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.pd-stock .stock.out-of-stock {
	color: #f0b4b4;
}

.pd-stock .stock::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-radius: 50%;
	background: #7dcea0;
	vertical-align: 1px;
}

.pd-stock .stock.out-of-stock::before {
	background: #d47272;
}

.pd-page form.cart .stock {
	display: none;
}

.pd-info .price {
	margin: 0;
	color: #fff;
	font-family: var(--ds-font-display);
	font-size: clamp(4rem, 11cqi, 6.2rem);
	line-height: 0.9;
}

.pd-info .price del {
	display: block;
	margin-bottom: 4px;
	color: #8d97a3;
	font-size: 0.38em;
	text-decoration: line-through;
}

.pd-info .price ins {
	text-decoration: none;
}

.pd-buy .tax-note,
.pd-buy .delivery-note {
	max-width: 40ch;
	margin: 10px 0 0;
	color: var(--pd-muted);
	font-size: 14px;
	line-height: 1.5;
}

.pd-buy .delivery-note a,
.pd-buy .tn-gate-note a {
	color: #9eb6ff;
	text-decoration: none;
}

.pd-page form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	margin: 22px 0 0;
}

.pd-page .quantity .qty {
	width: 96px;
	min-height: 60px;
	border: 1px solid rgba(244, 241, 234, 0.16);
	border-radius: 10px;
	background: #10151c;
	color: #fff;
	font-size: 18px;
	text-align: center;
}

.pd-page form.cart .single_add_to_cart_button,
.pd-page .tn-gate-btn--single {
	display: inline-flex;
	flex: 1 1 240px;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	padding: 0 26px;
	border: 0;
	border-radius: 10px;
	background: var(--pd-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-page form.cart .single_add_to_cart_button:hover,
.pd-page .tn-gate-btn--single:hover {
	background: #1d5fe0;
	box-shadow: 0 14px 28px rgba(49, 116, 255, 0.3);
	transform: translateY(-2px);
	color: #fff;
}

.pd-page .tn-purchase-gate {
	display: flex;
	flex-direction: column;
	margin-top: 22px;
}

.pd-page .tn-purchase-gate .tn-gate-btn--single {
	width: 100%;
	flex: 0 0 auto;
}

.pd-page .tn-gate-btn--single.is-disabled,
.pd-page .tn-gate-btn--single[aria-disabled="true"] {
	background: #1a222d;
	color: #c5ccd6;
	box-shadow: none;
	transform: none;
	pointer-events: none;
}

.pd-page .tn-gate-note {
	margin: 12px 0 0;
	color: var(--pd-muted);
	font-size: 14px;
	line-height: 1.5;
}

/* —— Tech band: distinct surface, not a page box —— */
.pd-tech {
	padding: 72px 0 80px;
	background:
		linear-gradient(180deg, rgba(16, 21, 28, 0) 0%, #10151c 28px, #10151c calc(100% - 28px), rgba(16, 21, 28, 0) 100%);
	border-top: 1px solid rgba(244, 241, 234, 0.06);
	border-bottom: 1px solid rgba(244, 241, 234, 0.06);
}

.pd-kicker {
	margin: 0 0 12px;
	color: #9eb6ff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.pd-kicker span {
	color: var(--pd-blue);
	margin-right: 10px;
}

.pd-tech h2 {
	margin: 0 0 36px;
	font-family: var(--ds-font-display);
	font-size: clamp(2.6rem, 4vw, 4rem);
	line-height: 0.9;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.pd-specs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: 0;
}

.pd-specs__item {
	padding: 22px 28px 22px 0;
	border-top: 1px solid rgba(244, 241, 234, 0.1);
}

.pd-specs dt {
	color: #8d97a3;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.pd-specs dd {
	margin: 10px 0 0;
	font-family: var(--ds-font-display);
	font-size: clamp(1.7rem, 2.2vw, 2.25rem);
	letter-spacing: 0.02em;
	line-height: 1;
}

.pd-eu {
	margin-top: 40px;
}

.pd-eu h3 {
	margin: 0 0 16px;
	font-size: 1.1rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.pd-eu__note {
	margin: 14px 0 0;
	color: var(--pd-muted);
	font-size: 13px;
}

/* —— Related discovery —— */
.pd-related {
	padding: 80px 0 96px;
	background: #0b0e12;
}

.pd-related .related.products {
	margin: 0;
}

.pd-related .related.products > h2 {
	margin: 0 0 36px;
	font-family: var(--ds-font-display);
	font-size: clamp(2.4rem, 3.6vw, 3.6rem);
	line-height: 0.9;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.pd-related .related.products > h2::before {
	content: "03  Auswahl";
	display: block;
	margin-bottom: 12px;
	color: #9eb6ff;
	font-family: var(--ds-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
}

.pd-related ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 22px !important;
}

.pd-related .tire-card {
	background: #121820;
	border: 0;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pd-related .tire-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.pd-related .product-media {
	aspect-ratio: 1 / 1;
	padding: 18px;
	background: transparent;
}

.pd-page :focus-visible {
	outline: 2px solid var(--pd-blue);
	outline-offset: 3px;
}

@media (max-width: 1180px) {
	.pd-specs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pd-related ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 1023px) {
	.pd-hero__grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.pd-visual img {
		max-height: min(52vh, 460px) !important;
	}

	.pd-title {
		font-size: clamp(3.2rem, 10vw, 4.6rem);
	}

	.pd-hero {
		padding-bottom: 40px;
	}
}

@media (max-width: 767px) {
	body.product-page .header-inner,
	body.product-page .site-footer .container,
	.pd-wrap {
		width: min(var(--ds-container), calc(100% - var(--ds-gutter-sm, 24px)));
	}

	.pd-title {
		font-size: clamp(2.8rem, 13vw, 3.8rem);
	}

	.pd-info .price {
		font-size: clamp(3rem, 14vw, 4.2rem);
	}

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

	.pd-page form.cart {
		flex-direction: column;
	}

	.pd-page .quantity,
	.pd-page .quantity .qty,
	.pd-page form.cart .single_add_to_cart_button,
	.pd-page .tn-gate-btn--single {
		width: 100%;
		flex: 0 0 auto;
	}

	.pd-related ul.products {
		grid-template-columns: 1fr !important;
	}

	.pd-tech,
	.pd-related {
		padding: 52px 0 64px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pd-visual img,
	.pd-related .tire-card,
	.pd-page form.cart .single_add_to_cart_button,
	.pd-page .tn-gate-btn--single {
		transition: none;
		transform: none;
	}
}
