/* Unified product contract: natural media, readable rich content and real 3D states. */

body.glade-single-product .product-entry-wrapper {
	width: min(1320px, calc(100% - 48px));
	align-items: start;
}

body.glade-single-product .woocommerce-product-gallery,
body.glade-single-product .summary.entry-summary {
	min-width: 0;
	margin-top: 0;
}

body.glade-single-product .woocommerce-product-gallery .ct-product-gallery-container,
body.glade-single-product .woocommerce-product-gallery .ct-media-container {
	height: auto !important;
	min-height: 0;
	background: #f0ece6;
}

body.glade-single-product .woocommerce-product-gallery .ct-media-container img {
	display: block;
	width: 100%;
	height: auto !important;
	max-height: min(76vh, 820px);
	aspect-ratio: auto !important;
	object-fit: contain !important;
	object-position: center;
}

body.glade-single-product .woocommerce-tabs {
	width: min(1280px, calc(100% - 48px));
	margin-inline: auto;
}

body.glade-single-product .woocommerce-tabs .wc-tab {
	width: 100%;
	max-width: none;
	margin-inline: auto;
	word-break: normal;
	overflow-wrap: break-word;
	hyphens: none;
}

body.glade-single-product .woocommerce-tabs .wc-tab > * {
	max-width: 100%;
}

body.glade-single-product .woocommerce-tabs .wc-tab p,
body.glade-single-product .woocommerce-tabs .wc-tab li,
body.glade-single-product .woocommerce-tabs .wc-tab dd {
	word-break: normal;
	overflow-wrap: break-word;
}

body.glade-single-product .woocommerce-tabs .wc-tab img,
body.glade-single-product .woocommerce-tabs .wc-tab video {
	display: block;
	max-width: 100%;
	height: auto;
}

body.glade-single-product .glade-product-contract {
	width: 100%;
	margin-inline: auto;
	background: var(--glade-child-bg);
}

body.glade-single-product .glade-product-contract__intro {
	max-width: 66ch;
	margin: 0 auto 24px;
	color: var(--glade-child-muted);
	font-size: .96rem;
	line-height: 1.7;
	text-align: center;
}

body.glade-single-product .glade-product-contract .glade-bento-row {
	grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
	align-items: stretch;
	gap: 0;
	background: #fff;
}

body.glade-single-product .glade-product-contract .glade-bento-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #eee9e1;
}

body.glade-single-product .glade-product-contract .glade-bento-main > img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 720px;
	aspect-ratio: auto;
	object-fit: contain;
}

body.glade-single-product .glade-product-contract .glade-bento-side,
body.glade-single-product .glade-product-contract .glade-bento-side > .glade-bento-box {
	min-width: 0;
}

body.glade-single-product .glade-product-contract__specifications {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 18px;
	margin: 26px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--glade-child-border);
}

body.glade-single-product .glade-product-contract__specification {
	min-width: 0;
}

body.glade-single-product .glade-product-contract__specification dt {
	color: var(--glade-child-muted);
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

body.glade-single-product .glade-product-contract__specification dd {
	margin: 3px 0 0;
	font-size: .88rem;
}

body.glade-single-product .glade-product-contract__cta {
	margin: 28px 0 0;
}

body.glade-single-product .glade-product-contract__cta a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--glade-child-ink);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-decoration: underline;
	text-underline-offset: 5px;
	text-transform: uppercase;
}

body.glade-single-product .glade-product-model {
	position: relative;
	display: grid;
	min-height: 300px;
	margin-top: 18px;
	overflow: hidden;
	background-color: #f0ece6;
	background-image: none;
	isolation: isolate;
	contain: layout paint;
}

body.glade-single-product .glade-product-model__viewer {
	grid-area: 1 / 1;
	min-width: 0;
	min-height: 300px;
}

body.glade-single-product .glade-product-model__poster,
body.glade-single-product .glade-legacy-model-fallback,
body.glade-single-product .glade-model-stage .glade-model-fallback {
	display: none !important;
}

body.glade-single-product .glade-product-model__viewer {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, visibility .2s ease;
}

	body.glade-single-product .glade-product-model__viewer model-viewer {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 300px;
	background: transparent !important;
	--poster-color: transparent;
}

body.glade-single-product .glade-product-model[data-glade-model-state="ready"] .glade-product-model__viewer {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

body.glade-single-product .glade-product-model[data-glade-model-state="loading"] .glade-product-model__viewer {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

body.glade-single-product .glade-product-model[data-glade-model-state="error"] .glade-product-model__viewer {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

body.glade-single-product .glade-product-model__launch {
	position: absolute;
	bottom: 24px;
	left: 50%;
	z-index: 4;
	display: inline-flex;
	transform: translateX(-50%);
	min-height: 40px;
	padding: 9px 14px;
	border: 1px solid rgba(40, 35, 31, .14);
	background: rgba(255, 255, 255, .92);
	color: var(--glade-child-ink);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
}

body.glade-single-product .glade-product-model__launch[hidden],
body.glade-single-product .glade-legacy-model-retry[hidden] {
	display: none !important;
}

body.glade-single-product .glade-product-model__launch:focus-visible {
	outline: 3px solid var(--glade-child-accent);
	outline-offset: 3px;
}

body.glade-single-product .glade-product-model[data-glade-model-state="ready"] .glade-product-model__launch {
	display: none;
}

body.glade-single-product .glade-product-model__status {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	margin: 0;
	padding: 24px;
	color: #6c665e;
	font-size: .75rem;
	line-height: 1.45;
	text-align: center;
	pointer-events: none;
}

body.glade-single-product .glade-product-model[data-glade-model-state="loading"] .glade-product-model__status::before,
body.glade-single-product .glade-legacy-model-host.glade-model-loading .glade-legacy-model-status::before {
	content: '';
	display: block;
	width: 16px;
	height: 16px;
	margin-bottom: 12px;
	border: 1.5px solid rgba(108, 102, 94, .24);
	border-top-color: var(--glade-child-ink);
	border-radius: 50%;
	animation: glade-model-spinner .8s linear infinite;
}

body.glade-single-product .glade-product-model[data-glade-model-state="error"] .glade-product-model__status::before,
body.glade-single-product .glade-legacy-model-host.glade-model-error .glade-legacy-model-status::before {
	display: none;
}

body.glade-single-product .glade-product-model[data-glade-model-state="ready"] .glade-product-model__status,
body.glade-single-product .glade-legacy-model-host.glade-model-ready .glade-legacy-model-status {
	display: none;
}

@keyframes glade-model-spinner {
	to { transform: rotate(360deg); }
}

body.glade-single-product .glade-product-model__label {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 4;
	padding: 8px 12px;
	background: rgba(255, 255, 255, .92);
	color: var(--glade-child-ink);
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

body.glade-single-product .glade-legacy-model-host {
	position: relative;
	display: flow-root;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	isolation: isolate;
	contain: layout paint;
	background-color: #f0ece6;
	background-image: none;
}

body.glade-single-product .glade-legacy-model-host [data-glade-interactive-label-state="pending"] {
	display: none !important;
}

body.glade-single-product .model-shell > model-viewer,
body.glade-single-product .glade-legacy-model-host model-viewer {
	display: block;
	width: 100%;
	max-width: 100%;
	position: relative;
	z-index: 0;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	background: transparent !important;
	--poster-color: transparent;
	transition: opacity .2s ease, visibility .2s ease;
}

body.glade-single-product .glade-legacy-model-host.glade-model-ready model-viewer {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

body.glade-single-product .glade-legacy-model-status {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	margin: 0;
	padding: 24px;
	color: #6c665e;
	font-size: .75rem;
	line-height: 1.45;
	text-align: center;
	pointer-events: none;
}

body.glade-single-product .glade-legacy-model-retry {
	position: absolute;
	bottom: 24px;
	left: 50%;
	z-index: 4;
	display: inline-flex;
	transform: translateX(-50%);
	min-height: 40px;
	padding: 9px 14px;
	border: 1px solid rgba(40, 35, 31, .14);
	background: rgba(255, 255, 255, .92);
	color: var(--glade-child-ink);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
}

@media (max-width: 900px) {
	body.glade-single-product .product-entry-wrapper {
	grid-template-columns: 1fr;
	width: min(calc(100% - 32px), 720px);
	gap: 42px;
	}

	body.glade-single-product .woocommerce-tabs,
	body.glade-single-product .glade-related-products {
	width: min(calc(100% - 32px), 720px);
	}

	body.glade-single-product .glade-product-contract .glade-bento-row {
	grid-template-columns: 1fr;
	}

	body.glade-single-product .glade-product-contract .glade-bento-main > img {
	max-height: none;
	}
}

@media (max-width: 560px) {
	body.glade-single-product .glade-product-contract__specifications {
	grid-template-columns: 1fr;
	}

	body.glade-single-product .glade-product-model,
	body.glade-single-product .glade-product-model__poster,
	body.glade-single-product .glade-product-model__viewer {
	min-height: 240px;
	}

	body.glade-single-product .glade-product-model__viewer model-viewer {
	min-height: 240px;
	}
}
