/**
 * JT TypePro Metal — single product page (wireframe layout).
 *
 * @package JT_TypePro
 */

.jt-single-product--metal-layout {
	--jt-mt-shell-max: 1800px;
	--jt-mt-accent: #c41e2a;
	--jt-mt-accent-deep: #8f1219;
	--jt-mt-panel: #080808;
	--jt-mt-bg: #050505;
	--jt-product-shell-max: var(--jt-mt-shell-max);
	--jt-product-shell-x: clamp(20px, 4vw, 48px);
}

.jt-single-product--metal-layout .jt-tp-product-tester-section {
	margin-bottom: 0;
	background: transparent;
}

.jt-single-product--metal-layout .jt-tp-product-metal-canvas {
	padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px);
	background:
		radial-gradient(ellipse 80% 50% at 50% 0%, rgba(196, 30, 42, 0.06), transparent 55%),
		var(--jt-bg, #030303);
}

.jt-single-product--metal-layout .jt-product-test-layout {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.jt-single-product--metal-layout .jt-product-test-layout__shell {
	width: min(100%, var(--jt-mt-shell-max));
	max-width: var(--jt-mt-shell-max);
	margin: 0 auto;
	padding: 0 var(--jt-product-shell-x);
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(24px, 3.5vw, 36px);
}

.jt-single-product--metal-layout .jt-product-test-layout__content {
	gap: clamp(24px, 3.5vw, 36px);
}

.jt-single-product--metal-layout .jt-tp-font-sampler-band {
	display: none !important;
}

.jt-single-product--metal-layout .jt-mt-product-intro {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.jt-single-product--metal-layout .jt-mt-product-intro__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.jt-single-product--metal-layout .jt-mt-product-intro__title {
	margin: 0;
	font-family: "Cinzel", Georgia, serif;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.96);
	text-transform: uppercase;
}

.jt-single-product--metal-layout .jt-mt-product-intro__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 2px;
	background: rgba(196, 30, 42, 0.18);
	color: var(--jt-mt-accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.jt-single-product--metal-layout .jt-mt-product-intro__excerpt {
	margin: 0;
	max-width: 62ch;
	font-size: clamp(14px, 1.6vw, 16px);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.58);
}

.jt-single-product--metal-layout .jt-tp-product-tester {
	min-width: 0;
}

.jt-single-product--metal-layout .jt-tp-tester__card.jt-tp-tester-metal {
	--jt-tp-tester-bg: var(--jt-mt-bg);
	--jt-tp-tester-text: rgba(255, 255, 255, 0.92);
	--jt-tp-tester-muted: rgba(255, 255, 255, 0.46);
	--jt-tp-tester-border: rgba(143, 18, 25, 0.32);
	--jt-tp-tester-accent: var(--jt-mt-accent);
	border: 0;
	border-radius: 4px;
	background: var(--jt-mt-panel);
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.jt-single-product--metal-layout .jt-tp-tester-metal .jt-tp-tester__toolbar {
	border: 0;
	border-bottom: 0;
	background: #060606;
}

.jt-single-product--metal-layout .jt-tp-tester-metal .jt-tp-tester__stage {
	background:
		radial-gradient(ellipse 90% 70% at 50% 40%, rgba(255, 255, 255, 0.03), transparent 70%),
		var(--jt-mt-bg);
}

.jt-single-product--metal-layout .jt-tp-tester-metal .jt-tp-tester__preview-wrap {
	position: relative;
	isolation: isolate;
	min-height: clamp(320px, 46vw, 500px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(40px, 7vw, 68px) clamp(20px, 4vw, 40px);
}

.jt-single-product--metal-layout .jt-tp-tester-metal .jt-tp-tester__preview-wrap:hover {
	background: rgba(196, 30, 42, 0.04);
}

.jt-single-product--metal-layout .jt-tp-tester__red-line {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	opacity: 0;
	padding: 2px;
	overflow: hidden;
	transition: opacity 0.18s ease;
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask-composite: exclude;
}

.jt-single-product--metal-layout .jt-tp-tester__preview-wrap:hover > .jt-tp-tester__red-line {
	opacity: 1;
}

.jt-single-product--metal-layout .jt-tp-tester__red-line::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 220%;
	height: 220%;
	transform: translate(-50%, -50%);
	background: conic-gradient(
		from 0deg,
		transparent 0deg 338deg,
		var(--jt-mt-accent) 338deg 352deg,
		transparent 352deg 360deg
	);
	filter:
		drop-shadow(0 0 2px rgba(255, 120, 130, 0.95))
		drop-shadow(0 0 8px rgba(196, 30, 42, 0.8));
	animation: jt-tp-metal-red-line-spin 1.15s linear infinite;
}

@keyframes jt-tp-metal-red-line-spin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

.jt-single-product--metal-layout .jt-tp-tester-metal .jt-tp-tester__preview {
	position: relative;
	z-index: 1;
	max-width: 100%;
	color: #ededed;
	text-shadow:
		0 0 1px rgba(255, 255, 255, 0.35),
		0 2px 12px rgba(0, 0, 0, 0.65);
}

.jt-single-product--metal-layout .jt-tp-tester-metal.jt-tp-tester-dark .jt-tp-tester__stage,
.jt-single-product--metal-layout .jt-tp-tester-metal:not(.jt-tp-tester-light) .jt-tp-tester__stage {
	background:
		radial-gradient(ellipse 90% 70% at 50% 40%, rgba(255, 255, 255, 0.03), transparent 70%),
		var(--jt-mt-bg);
}

.jt-single-product--metal-layout .jt-mt-product-tabs {
	border-radius: 4px;
	background: var(--jt-mt-panel);
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.jt-single-product--metal-layout .jt-mt-product-tabs__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: clamp(12px, 2vw, 16px) clamp(14px, 2.2vw, 20px) 0;
	background: #060606;
}

.jt-single-product--metal-layout .jt-mt-product-tabs__tab {
	margin: 0;
	padding: 10px 18px;
	border: 0;
	border-radius: 4px 4px 0 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.48);
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.jt-single-product--metal-layout .jt-mt-product-tabs__tab:hover,
.jt-single-product--metal-layout .jt-mt-product-tabs__tab:focus-visible {
	color: rgba(255, 255, 255, 0.82);
	outline: none;
}

.jt-single-product--metal-layout .jt-mt-product-tabs__tab.is-active {
	background: rgba(196, 30, 42, 0.14);
	color: var(--jt-mt-accent);
}

.jt-single-product--metal-layout .jt-mt-product-tabs__panels {
	padding: clamp(18px, 2.5vw, 28px) clamp(16px, 2.5vw, 24px) clamp(22px, 3vw, 32px);
	background: var(--jt-mt-bg);
}

.jt-single-product--metal-layout .jt-mt-product-tabs__panel[hidden] {
	display: none !important;
}

.jt-single-product--metal-layout .jt-mt-product-tabs .jt-product-glyphs {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.jt-single-product--metal-layout .jt-mt-product-tabs .jt-tp-glyph-map-bar {
	margin-bottom: 16px;
	padding: 0;
	border: 0;
	background: transparent;
}

.jt-single-product--metal-layout .jt-mt-product-tabs .jt-tp-glyph-map-bar__title {
	font-size: clamp(1rem, 2vw, 1.25rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.88);
}

.jt-single-product--metal-layout .jt-mt-product-tabs .jt-tp-glyph-map-bar__total-value {
	color: var(--jt-mt-accent);
}

.jt-single-product--metal-layout .jt-mt-glyph-menu {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(10px, 1.5vw, 24px);
	margin: 0 0 16px;
	padding: 0 0 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jt-single-product--metal-layout .jt-mt-glyph-menu__item {
	position: relative;
	padding: 2px 0 10px;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.5);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.18s ease;
}

.jt-single-product--metal-layout .jt-mt-glyph-menu__item::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: #d94f7e;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.18s ease;
}

.jt-single-product--metal-layout .jt-mt-glyph-menu__item:hover,
.jt-single-product--metal-layout .jt-mt-glyph-menu__item:focus-visible {
	color: rgba(255, 255, 255, 0.82);
	outline: none;
}

.jt-single-product--metal-layout .jt-mt-glyph-menu__item.is-active {
	color: rgba(255, 255, 255, 0.96);
}

.jt-single-product--metal-layout .jt-mt-glyph-menu__item.is-active::after {
	transform: scaleX(1);
}

.jt-single-product--metal-layout .jt-mt-product-tabs .jt-glyph-group[hidden] {
	display: none !important;
}

.jt-single-product--metal-layout .jt-mt-product-tabs .jt-glyph-group__title,
.jt-single-product--metal-layout .jt-mt-product-tabs .jt-glyph-cell__name,
.jt-single-product--metal-layout .jt-mt-product-tabs .jt-glyph-cell__unicode {
	display: none;
}

.jt-single-product--metal-layout .jt-mt-product-tabs .jt-product-glyphs__viewport--metal,
.jt-single-product--metal-layout .jt-mt-product-tabs .jt-product-glyphs__viewport--metal.is-expanded .jt-product-glyphs__grid-wrap {
	max-height: none;
	overflow: visible;
}

.jt-single-product--metal-layout .jt-mt-product-tabs .jt-product-glyphs__grid {
	display: grid;
	grid-template-columns: repeat(9, minmax(64px, 1fr));
	gap: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	border-left: 1px solid rgba(255, 255, 255, 0.12);
	background: transparent;
}

.jt-single-product--metal-layout .jt-mt-product-tabs .jt-glyph-cell {
	min-height: 104px;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0;
	background: #070707;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
}

.jt-single-product--metal-layout .jt-mt-product-tabs .jt-glyph-cell:hover {
	background: #0b0b0b;
}

.jt-single-product--metal-layout .jt-mt-product-tabs .jt-glyph-cell__char {
	font-size: clamp(38px, 5vw, 62px);
	font-weight: 700;
	line-height: 1;
	color: #f2f2f2;
}

.jt-single-product--metal-layout .jt-mt-product-desc__headline,
.jt-single-product--metal-layout .jt-mt-product-tabs .jt-tp-desc-feature__headline {
	font-family: "Cinzel", Georgia, serif;
}

.jt-single-product--metal-layout .jt-tp-product-side-panel__license {
	display: contents;
}

.jt-single-product--metal-layout .jt-mt-license-panel-inline {
	grid-column: auto;
	grid-row: auto;
	position: static;
	top: auto;
	align-self: auto;
	z-index: auto;
	max-height: none;
	width: 100%;
	margin-top: clamp(20px, 3vw, 28px);
}

.jt-single-product--metal-layout .jt-mt-license-panel-inline .jt-product-info-panel__frame {
	max-height: none;
	overflow: visible;
}

.jt-single-product--metal-layout .jt-mt-license-panel-inline .jt-product-info-panel__license-head {
	margin-bottom: 4px;
}

.jt-single-product--metal-layout .jt-mt-license-panel-inline .jt-product-info-panel__license-heading {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.48);
}

.jt-single-product--metal-layout .jt-mt-license-panel-inline .jt-product-info-panel__license-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.jt-single-product--metal-layout .jt-mt-license-panel-inline .jt-license-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.jt-single-product--metal-layout .jt-mt-license-panel-inline .jt-license-card__head {
	flex: 1 1 auto;
}

.jt-single-product--metal-layout .jt-mt-license-panel-inline .jt-license-card__row {
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.jt-single-product--metal-layout .jt-mt-license-panel-inline .jt-license-card__price {
	align-self: flex-start;
}

.jt-single-product--metal-layout .jt-mt-license-panel-inline .jt-product-info-panel__qty,
.jt-single-product--metal-layout .jt-mt-license-panel-inline .jt-product-info-panel__cart {
	margin-top: 12px;
}

.jt-single-product--metal-layout .jt-mt-license-panel-inline .jt-product-info-panel__cart {
	width: 100%;
}

.jt-single-product--metal-layout .jt-mt-product-side-panel-fallback--inline {
	position: static;
	width: 100%;
	margin-top: clamp(20px, 3vw, 28px);
}

.jt-single-product--metal-layout .jt-product-info-panel__frame {
	border: 0;
	border-radius: 4px;
	background: var(--jt-mt-panel);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.jt-single-product--metal-layout .jt-mt-product-side-panel-fallback {
	position: sticky;
	top: var(--jt-sticky-top, calc(var(--jt-header-h, 72px) + 16px));
	align-self: start;
}

.jt-single-product--metal-layout .jt-mt-product-side-panel-fallback__frame {
	padding: 24px 22px;
	border-radius: 4px;
	background: var(--jt-mt-panel);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.jt-single-product--metal-layout .jt-mt-product-side-panel-fallback__title {
	margin: 0 0 10px;
	font-family: "Cinzel", Georgia, serif;
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.94);
}

.jt-single-product--metal-layout .jt-mt-product-side-panel-fallback__lead,
.jt-single-product--metal-layout .jt-mt-product-side-panel-fallback__stock {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.58);
}

.jt-single-product--metal-layout .jt-mt-product-side-panel-fallback__stock {
	margin-top: 10px;
	color: var(--jt-mt-accent);
}

.jt-single-product--metal-layout .jt-product-info-panel__name {
	font-family: "Cinzel", Georgia, serif;
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.jt-single-product--metal-layout .jt-product-sale-flash {
	background: var(--jt-mt-accent);
}

.jt-single-product--metal-layout .jt-license-card {
	border-color: rgba(143, 18, 25, 0.35);
	background: rgba(255, 255, 255, 0.02);
}

.jt-single-product--metal-layout .jt-license-card.is-selected {
	border-color: rgba(196, 30, 42, 0.72);
	background: rgba(196, 30, 42, 0.08);
	box-shadow: 0 0 24px rgba(196, 30, 42, 0.12);
}

.jt-single-product--metal-layout .jt-product-info-panel__cart {
	border-color: rgba(196, 30, 42, 0.92);
	background: linear-gradient(180deg, rgba(20, 8, 9, 0.96) 0%, rgba(8, 4, 4, 0.98) 100%);
	color: var(--jt-mt-accent);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.jt-single-product--metal-layout .jt-product-info-panel__cart:hover,
.jt-single-product--metal-layout .jt-product-info-panel__cart:focus-visible {
	color: #fff;
	border-color: #e8323f;
	box-shadow: 0 0 28px rgba(196, 30, 42, 0.35);
}

.jt-single-product--metal-layout .jt-single-product__related {
	padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
	background: #060606;
}

.jt-single-product--metal-layout .jt-product-related__shell {
	width: min(100%, var(--jt-mt-shell-max));
	max-width: var(--jt-mt-shell-max);
	margin: 0 auto;
	padding: 0 var(--jt-product-shell-x);
}

.jt-single-product--metal-layout .jt-product-related__title {
	font-family: "Cinzel", Georgia, serif;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (max-width: 1024px) {
	.jt-single-product--metal-layout .jt-mt-license-panel-inline .jt-product-info-panel__license-list {
		grid-template-columns: 1fr;
	}

	.jt-single-product--metal-layout .jt-mt-product-tabs .jt-product-glyphs__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.jt-single-product--metal-layout .jt-mt-product-tabs .jt-product-glyphs__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.jt-single-product--metal-layout .jt-mt-product-tabs__bar {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jt-single-product--metal-layout .jt-tp-tester__red-line::before {
		animation: none;
		transform: translate(-50%, -50%) rotate(20deg);
	}

	.jt-single-product--metal-layout .jt-tp-tester__preview-wrap:hover > .jt-tp-tester__red-line {
		opacity: 0.85;
	}
}
