/* Single-product polish. Loaded only on a native product route, after the
 * common Woo presentation. WooCommerce owns the gallery, variation state,
 * purchasing controls and tabs; no gallery viewport heights are overridden. */
.single-product.woocommerce .woocommerce-main {
	padding-bottom: var(--mos-section-tight);
}

.single-product.woocommerce .woocommerce-breadcrumb {
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

/* Preserve the native two-column float layout and its clear points. Only the
 * main product's direct gallery/summary children receive these proportions. */
.single-product.woocommerce .woocommerce-main > div.product > div.images {
	width: 44%;
	max-width: 34rem;
	margin-bottom: 2rem;
}

.single-product.woocommerce .woocommerce-main > div.product > div.summary {
	width: 52%;
	min-width: 0;
	margin-bottom: 2rem;
	padding: clamp(1.25rem, 2.5vw, 2rem);
	border: 1px solid var(--mos-line);
	border-top: 0.25rem solid var(--mos-brand);
	border-radius: var(--mos-radius);
	background: var(--mos-surface);
	box-shadow: var(--mos-shadow-sm);
}

/* Constrain the displayed photo, preserving its own aspect ratio. Exclude
 * zoomImg, the slider track and full-size lightbox media from these rules. */
.single-product.woocommerce div.images .woocommerce-product-gallery__image > a > img,
.single-product.woocommerce div.images .woocommerce-product-gallery__image > a > picture > img,
.single-product.woocommerce div.images .woocommerce-product-gallery__image--placeholder > img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: clamp(22rem, 60svh, 38rem);
	margin-inline: auto;
}

.single-product.woocommerce div.images .woocommerce-product-gallery__image > a,
.single-product.woocommerce div.images .woocommerce-product-gallery__image > a > picture {
	display: block;
	background: var(--mos-paper);
	border-radius: var(--mos-radius);
}

.single-product.woocommerce div.images .woocommerce-product-gallery__trigger {
	top: 0.75rem;
	right: 0.75rem;
	box-shadow: var(--mos-shadow-sm);
}

.single-product.woocommerce div.images .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.65rem;
	max-width: 22rem;
	margin-top: 0.75rem;
	margin-inline: auto;
	padding: 0.15rem;
}

.single-product.woocommerce div.images .flex-control-thumbs::before,
.single-product.woocommerce div.images .flex-control-thumbs::after {
	display: none;
	content: none;
}

.single-product.woocommerce div.images .flex-control-thumbs li {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

.single-product.woocommerce div.images .flex-control-thumbs li img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border: 2px solid var(--mos-line);
	border-radius: var(--mos-radius-sm);
	opacity: 0.75;
}

.single-product.woocommerce div.images .flex-control-thumbs li img.flex-active,
.single-product.woocommerce div.images .flex-control-thumbs li img:hover,
.single-product.woocommerce div.images .flex-control-thumbs li img:focus-visible {
	border-color: var(--mos-brand);
	opacity: 1;
}

.single-product.woocommerce .summary .mos-product-family {
	font-size: 0.8125rem;
}

.single-product.woocommerce .summary .product_title {
	max-width: none;
	margin-bottom: 0.6em;
	font-size: var(--mos-page-title);
	line-height: 1.08;
	overflow-wrap: anywhere;
}

.single-product.woocommerce .summary p.price,
.single-product.woocommerce .summary span.price {
	margin-bottom: 1.1rem;
	font-size: clamp(1.4rem, 2.2vw, 1.75rem);
	font-variant-numeric: tabular-nums;
	line-height: 1.45;
}

.single-product.woocommerce .summary .price del {
	color: var(--mos-muted);
	font-size: 0.8em;
	font-weight: 620;
	opacity: 1;
}

.single-product.woocommerce .summary .price ins {
	background: transparent;
	text-decoration: none;
}

.single-product.woocommerce .summary .woocommerce-product-details__short-description {
	font-size: 1rem;
	line-height: 1.65;
	overflow-wrap: anywhere;
}

.single-product.woocommerce .summary .woocommerce-product-details__short-description > :last-child {
	margin-bottom: 0;
}

.single-product.woocommerce .summary .mos-product-specs--single {
	margin: 1.25rem 0 0.75rem;
	border-radius: var(--mos-radius-sm);
	overflow: hidden;
}

.single-product.woocommerce .summary .mos-product-specs--single li {
	padding: 0.75rem;
}

.single-product.woocommerce .summary .mos-product-specs--single span {
	font-size: 0.75rem;
}

.single-product.woocommerce .summary .mos-product-specs--single strong {
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.single-product.woocommerce .summary .mos-product-specs__basis--single {
	margin: 0 0 1.25rem;
	font-size: 0.8125rem;
	line-height: 1.55;
}

.single-product.woocommerce .summary form.cart {
	margin: 1.25rem 0 0;
	padding-top: 1.25rem;
}

/* Configuration names are often long. Put the native label above the native
 * select at every width; keep WooCommerce's visibility/disabled states intact. */
.single-product.woocommerce .summary form.cart table.variations {
	margin-bottom: 1rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	table-layout: fixed;
}

.single-product.woocommerce .summary form.cart .variations tbody,
.single-product.woocommerce .summary form.cart .variations tr,
.single-product.woocommerce .summary form.cart .variations th,
.single-product.woocommerce .summary form.cart .variations td {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
}

.single-product.woocommerce .summary form.cart .variations label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
}

.single-product.woocommerce .summary form.cart .variations select {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: var(--mos-control-height);
	margin: 0;
	font-size: 1rem;
}

.single-product.woocommerce .summary form.cart .reset_variations {
	display: inline-block;
	margin: 0.35rem 0 0.75rem;
	padding-block: 0.35rem;
	font-size: 0.875rem;
}

.single-product.woocommerce .summary form.cart div.quantity {
	margin: 0 0.75rem 0.75rem 0;
}

.single-product.woocommerce .summary form.cart .quantity .qty {
	width: 5rem;
	min-height: var(--mos-control-height);
}

.single-product.woocommerce .summary form.cart .single_add_to_cart_button {
	max-width: 100%;
	min-height: var(--mos-control-height);
	margin-bottom: 0.75rem;
	white-space: normal;
	text-align: center;
}

.single-product.woocommerce .summary .stock {
	font-size: 0.875rem;
}

.single-product.woocommerce .summary .mos-product-meta {
	clear: both;
	margin-top: 1rem;
	font-size: 0.875rem;
	overflow-wrap: anywhere;
}

.single-product.woocommerce div.product .woocommerce-tabs {
	clear: both;
	padding-top: clamp(1.75rem, 4vw, 3rem);
}

.single-product.woocommerce div.product .woocommerce-tabs ul.tabs {
	gap: 0.25rem 1.25rem;
	margin-bottom: 2rem;
	padding: 0;
	border-bottom: 1px solid var(--mos-line);
}

.single-product.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
	content: none;
}

.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	background: transparent;
}

.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	border-bottom-color: var(--mos-brand);
	background: transparent;
}

.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	min-height: var(--mos-control-height);
	padding: 0.75rem 0.15rem;
	color: var(--mos-muted);
	font-size: 1rem;
	font-weight: 760;
	line-height: 1.4;
}

.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--mos-brand);
}

/* Readable native tab content, including editor-authored technical tables
 * and file blocks. No descriptions, downloads, or review forms are replaced. */
.single-product.woocommerce div.product .woocommerce-tabs .panel {
	width: 100%;
	max-width: var(--mos-reading);
	margin: 0 auto 2.5rem;
	font-size: 1rem;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.single-product.woocommerce .woocommerce-tabs .panel :where(h1, h2, h3, h4, h5, h6) {
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
	line-height: 1.2;
}

.single-product.woocommerce .woocommerce-tabs .panel h2 {
	font-size: var(--mos-content-heading);
}

.single-product.woocommerce .woocommerce-tabs .panel h3 {
	font-size: 1.375rem;
}

/* Descriptions include legacy editor HTML, inline sizes, and Gutenberg font
 * presets. Bound those headings here instead of letting a nested H1 or a
 * saved display size inherit the page hero's scale. Important declarations
 * are limited to that legacy content, never commerce controls or galleries. */
.single-product.woocommerce .woocommerce-Tabs-panel--description :is(h1, h2) {
	font-size: clamp(1.5rem, 1.25rem + 0.6vw, 1.875rem) !important;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description h3 {
	font-size: 1.375rem !important;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description :is(h4, h5, h6) {
	font-size: 1.125rem !important;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description :is(h1, h2, h3, h4, h5, h6) {
	max-width: 100%;
	margin-block: 1.5rem 0.75rem !important;
	line-height: 1.3 !important;
	overflow-wrap: anywhere;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description :is(h1, h2, h3, h4, h5, h6) :is(span, strong, em, a) {
	font-size: inherit !important;
	line-height: inherit !important;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description :is(p, ul, ol).has-large-font-size,
.single-product.woocommerce .woocommerce-Tabs-panel--description :is(p, ul, ol).has-x-large-font-size,
.single-product.woocommerce .woocommerce-Tabs-panel--description p[style*="font-size"] {
	font-size: 1.0625rem !important;
	line-height: 1.65;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description hr {
	margin-block: 1.25rem;
}

/* Foundation enhances the saved .dropdown-toggle/.dropdown-content pairs.
 * Keep its button, ARIA and hidden state intact; correct only the inherited
 * heading margins, font size, padding, and wrapping. Also cover native details. */
.single-product.woocommerce .woocommerce-Tabs-panel--description .dropdown-toggle {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 1.125rem !important;
	line-height: 1.4 !important;
	letter-spacing: -0.015em;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description .mos-foundation-disclosure__button,
.single-product.woocommerce .woocommerce-Tabs-panel--description details > summary {
	min-height: 3.25rem;
	max-width: 100%;
	margin: 0;
	padding: 0.85rem 0 !important;
	border-radius: 0;
	font-size: 1.125rem !important;
	font-weight: 760;
	line-height: 1.4 !important;
	letter-spacing: -0.015em;
	white-space: normal;
	overflow-wrap: anywhere;
	box-shadow: none;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description .mos-foundation-disclosure__button::after {
	flex: 0 0 auto;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description :is(.dropdown-toggle, summary) :is(h1, h2, h3, h4, h5, h6) {
	margin: 0 !important;
	font-size: inherit !important;
	line-height: inherit !important;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description .dropdown-content {
	margin-block: 0;
	padding-block: 0.5rem 1rem;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description details {
	margin-block: 0 0.5rem;
	padding-block: 0;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description :is(.dropdown-content, details) > :last-child {
	margin-bottom: 0;
}

.single-product.woocommerce div.product .woocommerce-tabs .panel > :first-child {
	margin-top: 0 !important;
}

.single-product.woocommerce .woocommerce-tabs .panel :where(ul, ol) {
	padding-left: 1.4rem;
}

.single-product.woocommerce .woocommerce-tabs .panel li + li {
	margin-top: 0.45rem;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description table,
.single-product.woocommerce .woocommerce-Tabs-panel--additional_information table {
	width: 100%;
	table-layout: fixed;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description :where(th, td),
.single-product.woocommerce .woocommerce-Tabs-panel--additional_information :where(th, td) {
	padding: 0.75rem;
	white-space: normal;
	overflow-wrap: anywhere;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description :where(blockquote, .wp-block-file) {
	padding: 1.1rem 1.25rem;
	border-left: 0.25rem solid var(--mos-brand);
	background: var(--mos-paper);
	font-size: 1rem;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description a[href$=".pdf" i],
.single-product.woocommerce .woocommerce-Tabs-panel--description a[download] {
	font-weight: 760;
	text-underline-offset: 0.2em;
}

.single-product.woocommerce .woocommerce-Tabs-panel--description .wp-block-file__button {
	display: inline-flex;
	min-height: var(--mos-control-height);
	align-items: center;
	margin: 0.75rem 0 0.25rem;
	padding: 0.65rem 1rem;
	border-radius: var(--mos-radius-sm);
	background: var(--mos-brand);
	color: var(--mos-white);
	font-size: 0.875rem;
}

.single-product.woocommerce div.product > .related,
.single-product.woocommerce div.product > .upsells {
	clear: both;
	margin-top: var(--mos-section-tight);
	padding-top: 2rem;
	border-top: 1px solid var(--mos-line);
}

@media (max-width: 64rem) {
	.single-product.woocommerce .woocommerce-main > div.product > div.images,
	.single-product.woocommerce .woocommerce-main > div.product > div.summary {
		float: none;
		width: 100%;
		max-width: var(--mos-reading);
		margin-right: auto;
		margin-left: auto;
	}

	.single-product.woocommerce div.images .woocommerce-product-gallery__image > a > img,
	.single-product.woocommerce div.images .woocommerce-product-gallery__image > a > picture > img,
	.single-product.woocommerce div.images .woocommerce-product-gallery__image--placeholder > img {
		max-height: clamp(18rem, 52svh, 32rem);
	}
}

@media (max-width: 36rem) {
	.single-product.woocommerce .woocommerce-main > div.product > div.summary {
		padding: 1.1rem;
	}

	.single-product.woocommerce .summary .product_title {
		font-size: var(--mos-page-title);
	}

	.single-product.woocommerce .woocommerce-Tabs-panel--description :where(th, td),
	.single-product.woocommerce .woocommerce-Tabs-panel--additional_information :where(th, td) {
		padding: 0.6rem;
	}
}
