.typesee-product {
	--product-base: var(--wp--preset--color--base, #0d0d0d);
	--product-surface: var(--wp--preset--color--surface, #161616);
	--product-ink: var(--wp--preset--color--contrast, #f5f5f2);
	--product-accent: var(--wp--preset--color--accent, #e72a00);
	--product-muted: var(--wp--preset--color--muted, #8f8f8a);
	--product-line: #2e2e2c;
	--product-soft: #1c1c1a;
	background: var(--product-base);
	color: var(--product-ink);
	margin-block: 0 !important;
}

.typesee-product-page {
	margin-block: 0 !important;
}

.typesee-product .alignwide {
	width: min(1440px, calc(100% - clamp(2rem, 6vw, 5rem)));
	max-width: none;
	margin-inline: auto;
}

.typesee-product__eyebrow,
.typesee-license-summary__eyebrow {
	margin: 0 0 0.7rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.typesee-gallery {
	width: 100%;
	overflow: hidden;
	background: var(--product-base);
}

.typesee-gallery__viewport {
	overflow: hidden;
}

.typesee-gallery__track {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
	touch-action: pan-x pan-y;
}

.typesee-gallery__track::-webkit-scrollbar {
	display: none;
}

.typesee-gallery__track:focus-visible {
	outline: 2px solid var(--product-accent);
	outline-offset: -2px;
}

.typesee-gallery__slide {
	display: grid;
	place-items: center;
	overflow: hidden;
	min-width: 0;
	height: auto;
	aspect-ratio: 2 / 1;
	margin: 0;
	background: var(--product-surface);
	flex: 0 0 50%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.typesee-gallery__slide img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
}

/* Identity stays on the black stage — the font name is the marquee */
.typesee-product__identity {
	padding-block: clamp(1.5rem, 3.5vw, 3rem) clamp(1.5rem, 3.5vw, 3.25rem);
}

.typesee-product__identity .typesee-product__eyebrow {
	margin-bottom: 0.5rem;
	color: var(--product-muted);
}

.typesee-product__discount {
	display: inline-flex;
	margin-bottom: 0.8rem;
	padding: 0.38rem 0.6rem;
	border: 1px solid var(--product-accent);
	color: var(--product-ink);
	background: var(--product-accent);
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.typesee-product__identity h1 {
	margin: 0;
	font-size: clamp(3.4rem, 9vw, 9rem);
	font-weight: normal;
	letter-spacing: normal;
	line-height: 0.95;
}

.typesee-product__lede {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem 3rem;
	margin-top: clamp(1.1rem, 2.5vw, 1.9rem);
	padding-top: 1.1rem;
	border-top: 1px solid var(--product-line);
}

.typesee-product__summary {
	max-width: 52ch;
	font-size: clamp(1rem, 1.4vw, 1.2rem);
	line-height: 1.4;
}

.typesee-product__summary p {
	margin: 0;
}

.typesee-product__cta {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	white-space: nowrap;
}

.typesee-product__price {
	font-size: 1.1rem;
	font-weight: 700;
}

.typesee-product__price .price {
	font-size: inherit;
}

.typesee-product__price .typesee-discount-price {
	display: inline-flex;
	align-items: baseline;
	gap: 0.55rem;
}

.typesee-product__price .typesee-discount-price del {
	color: var(--product-muted);
	font-size: 0.82em;
}

.typesee-product__price .typesee-discount-price ins {
	color: var(--product-accent);
	text-decoration: none;
}

.typesee-product__license-link {
	padding: 0.65rem 1.1rem;
	border: 1px solid var(--product-ink);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--product-ink);
	text-decoration: none;
	transition: border-color 160ms ease, color 160ms ease;
}

.typesee-product__license-link:hover,
.typesee-product__license-link:focus-visible {
	border-color: var(--product-accent);
	color: var(--product-accent);
}

.typesee-product__about {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.6fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	padding-block: clamp(2rem, 4.5vw, 3.75rem);
}

.typesee-product__license h2 {
	margin: 0 0 1.5rem;
	font-size: clamp(2.3rem, 5vw, 5rem);
	letter-spacing: -0.055em;
	line-height: 0.9;
}

.typesee-product__about h2 {
	margin: 0 0 0.9rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--product-muted);
}

.typesee-product__about > div:first-child {
	max-width: 62ch;
}

.typesee-product__about > div:first-child > p {
	margin: 0 0 0.9em;
	font-size: clamp(1rem, 1.2vw, 1.12rem);
	line-height: 1.5;
}

.typesee-product__about > div:first-child > p:last-child {
	margin-bottom: 0;
}

.typesee-product__uses {
	padding-left: clamp(1.5rem, 4vw, 4rem);
	border-left: 1px solid var(--product-line);
}

.typesee-product__uses h3 {
	margin: 0 0 0.75rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--product-muted);
}

.typesee-product__uses ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.typesee-product__uses li {
	padding-block: 0.45rem;
	border-bottom: 1px solid var(--product-line);
	font-size: 0.94rem;
	text-transform: capitalize;
}

.typesee-product__eyebrow a {
	color: inherit;
	text-decoration: none;
}

.typesee-product__eyebrow a:hover,
.typesee-product__eyebrow a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.typesee-product__uses li a {
	color: inherit;
	text-decoration: none;
}

.typesee-product__uses li a:hover,
.typesee-product__uses li a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.typesee-product__tester {
	padding-block: clamp(2.5rem, 6vw, 6rem);
	border-block: 1px solid var(--product-line);
}

.typesee-product__license {
	--license-tint: var(--typesee-cinematic-tint, #1a0e0a);
	--license-deep: var(--typesee-cinematic-ink, #ffcfc4);
	--license-line: var(--typesee-cinematic-line, #45201a);
	padding-block: clamp(2rem, 4vw, 3.5rem);
	background-color: var(--license-tint);
	border-bottom: 1px solid var(--license-deep);
}

.typesee-product__license .typesee-product__eyebrow {
	color: var(--license-deep);
}

.typesee-product__license h2 {
	color: var(--license-deep);
}

.typesee-product__license h2 {
	max-width: none;
	margin-bottom: 0.5rem;
	font-size: clamp(1.9rem, 3.2vw, 3rem);
}

/* Express-pay buttons render detached below the option list; checkout still offers them. */
.typesee-product__license .ppcp-messages,
.typesee-product__license .ppc-button-wrapper {
	display: none !important;
}

.typesee-product__license form.variations_form.cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	align-items: start;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin: 1.25rem 0 0;
}

.typesee-product__license .variations {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

.variations select[aria-hidden="true"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

.variations tbody,
.variations tr,
.variations th,
.variations td {
	display: block;
	width: 100%;
	padding: 0;
}

.variations .label {
	margin-bottom: 0.75rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-align: left;
	text-transform: uppercase;
}

.variation-radio-buttons {
	margin: 0;
	padding: 0;
	border: 0;
	border-top: 1px solid var(--license-deep, var(--product-ink));
}

.variation-radio-label {
	margin: 0;
	border-bottom: 1px solid var(--license-line, var(--product-line));
	color: var(--product-ink);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.variation-radio-label:hover {
	background: var(--product-surface);
}

.variation-radio-label:has(input:checked),
.variation-radio-label.is-selected {
	background: var(--product-accent);
	color: #fff;
	box-shadow: inset 3px 0 0 #0d0d0d;
}

.variation-radio-choice {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	padding: 0.85rem 1.1rem;
	color: inherit;
	cursor: pointer;
}

.variation-radio-button {
	appearance: none;
	width: 1rem;
	height: 1rem;
	margin: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	flex: 0 0 auto;
	align-self: center;
	cursor: pointer;
}

.variation-radio-button:checked {
	border: 4px solid var(--product-accent);
}

.variation-radio-button:focus-visible {
	outline: 2px solid var(--product-accent);
	outline-offset: 2px;
}

.variation-radio-text {
	flex: 1;
	min-width: 0;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.variation-radio-badge {
	padding: 0.25em 0.6em;
	background: var(--product-accent);
	color: #fff;
	font-size: 0.58rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
	align-self: center;
}

.variation-radio-price {
	font-size: 1.1rem;
	white-space: nowrap;
}

.variation-radio-detail {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
}

.variation-radio-detail__inner {
	overflow: hidden;
	min-height: 0;
}

@media (min-width: 961px) {
	.variation-radio-detail__inner {
		columns: 2;
		column-gap: 0;
	}

	.variation-radio-detail p {
		break-inside: avoid;
	}
}

.variation-radio-label:has(input:checked) .variation-radio-detail,
.variation-radio-label.is-selected .variation-radio-detail {
	grid-template-rows: 1fr;
}

.variation-radio-detail p {
	position: relative;
	margin: 0;
	padding: 0.22rem 1.1rem 0.22rem 4.1rem;
	font-size: 0.86rem;
	line-height: 1.45;
	color: inherit;
}

.variation-radio-detail p::before {
	content: "✓";
	position: absolute;
	left: 2.9rem;
	color: var(--product-accent);
	font-weight: 700;
}

.variation-radio-detail p:first-child {
	padding-top: 0.2rem;
}

.variation-radio-detail p:last-child {
	padding-bottom: 0.85rem;
}

.reset_variations {
	display: none !important;
}

.typesee-product__license .single_variation_wrap {
	position: sticky;
	top: 100px;
	padding: 1.25rem;
	border: 1px solid var(--license-deep);
	background: var(--product-surface);
}

.typesee-product__license .quantity input.qty {
	border-color: var(--license-deep);
}

.typesee-product__license .typesee-license-trust {
	border-top-color: var(--license-line);
}

.typesee-license-summary__eyebrow {
	color: var(--product-muted);
}

.typesee-license-summary__title {
	margin: 0 0 1rem;
	font-size: 1.35rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.2;
}

.typesee-product__license .woocommerce-variation-price .price {
	display: block;
	margin-bottom: 0.5rem;
	font-size: clamp(1.9rem, 3vw, 2.6rem);
	line-height: 1;
}

/* Terms live inline in the option list; keep the summary card compact. */
.typesee-product__license .woocommerce-variation-description {
	display: none !important;
}

.woocommerce-variation-add-to-cart,
.typesee-product__license form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.75rem;
	margin-top: 1rem;
}

/* wpautop wraps the form buttons in stray <p>/<br>; flatten them so flex sees the buttons. */
.woocommerce-variation-add-to-cart > p {
	display: contents;
}

.woocommerce-variation-add-to-cart br,
.typesee-product__license .quantity br {
	display: none;
}

.typesee-buy-now {
	flex: 1 1 100%;
	min-height: 48px;
	padding-inline: 1.5rem;
	border: 1px solid var(--product-accent);
	border-radius: 0;
	background: var(--product-accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.typesee-buy-now:hover,
.typesee-buy-now:focus-visible {
	background: var(--product-ink);
	border-color: var(--product-ink);
	color: var(--product-base);
}

.quantity input.qty {
	min-height: 48px;
	border: 1px solid var(--product-ink);
	border-radius: 0;
	background: var(--product-surface);
	color: var(--product-ink);
}

.single_add_to_cart_button {
	min-height: 48px;
	padding-inline: 1.5rem !important;
	border: 1px solid var(--product-ink) !important;
	border-radius: 0 !important;
	background: var(--product-ink) !important;
	color: var(--product-surface) !important;
	font-size: 0.72rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	flex: 1;
}

.single_add_to_cart_button:hover {
	background: var(--product-accent) !important;
	border-color: var(--product-accent) !important;
	color: #fff !important;
}

.single_add_to_cart_button.disabled {
	opacity: 0.45;
}

.typesee-license-trust {
	margin: 0.9rem 0 0;
	padding: 0.75rem 0 0;
	border-top: 1px solid var(--product-line);
	list-style: none;
}

.typesee-license-trust li {
	position: relative;
	padding: 0.18rem 0 0.18rem 1.4rem;
	font-size: 0.84rem;
	line-height: 1.45;
	color: var(--product-muted);
}

.typesee-license-trust li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--product-accent);
	font-weight: 700;
}

.typesee-product__related {
	padding-block: clamp(3rem, 7vw, 6rem);
}

.typesee-related__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
}

.typesee-related__header h2 {
	margin: 0;
	font-size: clamp(2.3rem, 5vw, 5rem);
	letter-spacing: -0.055em;
	line-height: 0.9;
}

.typesee-related__all {
	padding-bottom: 0.2rem;
	border-bottom: 2px solid var(--product-ink);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--product-ink);
	text-decoration: none;
	transition: color 160ms ease, border-color 160ms ease;
}

.typesee-related__all:hover,
.typesee-related__all:focus-visible {
	color: var(--product-accent);
	border-color: var(--product-accent);
}

/* Transparent grid — matches the archive's title wall */
.typesee-related__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
	padding: 0;
	list-style: none;
}

.typesee-related__grid li {
	margin: 0;
	min-width: 0;
}

.typesee-related-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--product-ink);
	text-decoration: none;
}

.typesee-related-card:focus-visible {
	outline: 2px solid var(--product-accent);
	outline-offset: -2px;
}

.typesee-related-card__specimen {
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	flex: 1;
	min-height: clamp(180px, 24vw, 320px);
}

.typesee-related-card__specimen img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.typesee-related-card__preview {
	padding: clamp(1.25rem, 3vw, 2.5rem);
	font-size: clamp(2rem, 4.5vw, 4rem);
	line-height: 0.95;
	text-align: center;
	overflow-wrap: anywhere;
	transition: transform 350ms ease;
}

.typesee-related-card:hover .typesee-related-card__preview,
.typesee-related-card:focus-visible .typesee-related-card__preview {
	transform: scale(1.03);
}

.typesee-related-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.75rem;
	padding: 0.85rem clamp(1rem, 2vw, 1.5rem) 1rem;
	border-top: 1px solid var(--product-line);
}

.typesee-related-card__name {
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	transition: color 160ms ease;
}

.typesee-related-card:hover .typesee-related-card__name,
.typesee-related-card:focus-visible .typesee-related-card__name {
	color: var(--product-accent);
}

.typesee-related-card__category {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--product-muted);
}

.typesee-related-card__price {
	margin-left: auto;
	font-size: 0.82rem;
	color: var(--product-muted);
}

@media (max-width: 960px) {
	.typesee-product__license form.variations_form.cart {
		grid-template-columns: 1fr;
	}

	.typesee-product__license .single_variation_wrap {
		position: static;
	}

}

@media (max-width: 700px) {
	.typesee-product .alignwide {
		width: calc(100% - 2rem);
	}

	.typesee-gallery__slide {
		flex-basis: 100%;
	}

	.typesee-product__about {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.typesee-product__identity h1 {
		font-size: clamp(3rem, 15vw, 5.5rem);
	}

	.typesee-product__lede {
		align-items: stretch;
		flex-direction: column;
		gap: 1rem;
	}

	.typesee-product__cta {
		justify-content: space-between;
	}

	.typesee-product__uses {
		padding: 1.5rem 0 0;
		border-top: 1px solid var(--product-line);
		border-left: 0;
	}

	.variation-radio-choice {
		padding-inline: 0.75rem;
	}

	.variation-radio-detail p {
		padding: 0.4rem 0.75rem 0.4rem 2.1rem;
	}

	.variation-radio-detail p::before {
		left: 0.75rem;
	}
}

@media (max-width: 520px) {
	.woocommerce-variation-add-to-cart,
	.typesee-product__license form.cart:not(.variations_form) {
		flex-direction: column;
	}

	.quantity input.qty,
	.single_add_to_cart_button {
		width: 100%;
	}

	.typesee-related__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.typesee-gallery__track {
		scroll-behavior: auto;
	}

	.variation-radio-detail,
	.variation-radio-label,
	.typesee-related-card__preview {
		transition: none;
	}
}
