.art3d-home-products {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin: 0 calc(50% - 50vw);
	padding: clamp(3.25rem, 5vw, 4.5rem) 0 clamp(2.75rem, 4vw, 3.5rem);
	color: var(--text-primary, #f3f8fb);
	background: #0b1015;
}

.art3d-home-products__inner {
	width: min(var(--container-wide, 1400px), calc(100% - 48px));
	margin-inline: auto;
}

.art3d-home-products__header {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
	gap: clamp(1rem, 3vw, 4rem);
	margin-bottom: clamp(1.25rem, 2vw, 2rem);
	align-items: end;
}

.art3d-home-products__title,
.art3d-home-products__support,
.art3d-home-products__product-title,
.art3d-home-products__cta {
	margin: 0;
}

.art3d-home-products__title {
	font-size: var(--text-xl, clamp(2rem, 4vw, 3.5rem));
	font-weight: 600;
	line-height: 1.08;
	text-wrap: balance;
}

.art3d-home-products__support {
	max-width: 42rem;
	color: var(--text-secondary, #aab8c6);
	font-size: var(--text-md, 1rem);
	line-height: 1.65;
}

.art3d-home-products__grid {
	display: grid;
	grid-template-columns: repeat(var(--art3d-home-products-columns, 3), minmax(0, 1fr));
	gap: clamp(1.25rem, 2.4vw, 2.5rem);
}

.art3d-home-products__card {
	min-width: 0;
}

.art3d-home-products__viewer,
.art3d-home-products__stage {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 5 / 4;
	border: 0;
	background: transparent;
}

.art3d-home-products__stage {
	--art3d-home-viewer-footer-height: 34px;
}

.art3d-home-products__fallback,
.art3d-home-products__canvas,
.art3d-home-products__image-placeholder {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.art3d-home-products__fallback {
	object-fit: contain;
	object-position: center;
	transition: opacity 180ms ease;
}

.art3d-home-products__stage.is-ready .art3d-home-products__fallback {
	opacity: 0;
}

.art3d-home-products__canvas {
	cursor: grab;
	outline: 0;
	touch-action: pan-y;
}

.art3d-home-products__canvas:active {
	cursor: grabbing;
}

.art3d-home-products__canvas:focus-visible {
	outline: 2px solid var(--accent, #00a7d8);
	outline-offset: -2px;
}

.art3d-home-products__loading {
	position: absolute;
	right: 12px;
	bottom: 10px;
	left: 12px;
	z-index: 3;
	color: var(--text-secondary, #aab8c6);
	font-size: var(--text-xs, 0.75rem);
	text-align: center;
}

.art3d-home-products__reset {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 4;
	display: grid;
	width: 34px;
	height: 34px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(225, 230, 232, 0.42);
	border-radius: 50%;
	background: rgba(7, 11, 16, 0.52);
	color: var(--text-primary, #f3f8fb);
	font: inherit;
}

.art3d-home-products__reset:focus-visible {
	outline: 2px solid var(--accent, #00a7d8);
	outline-offset: 3px;
}

.art3d-home-products__help {
	position: absolute;
	right: 0;
	bottom: 4px;
	left: 0;
	z-index: 3;
	display: none;
	width: 100%;
	max-width: none;
	height: var(--art3d-home-viewer-footer-height);
	margin: 0;
	padding: 0 8px;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: var(--text-secondary, #aab8c6);
	font-size: var(--text-xs, 0.75rem);
	pointer-events: none;
}

.art3d-home-products__stage.is-ready .art3d-home-products__help {
	display: flex;
}

.art3d-home-products__help-icon {
	display: block;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("../icons/catalog-drag.svg") center / contain no-repeat;
	mask: url("../icons/catalog-drag.svg") center / contain no-repeat;
}

.art3d-home-products__viewer [hidden] {
	display: none !important;
}

.art3d-home-products__product-title {
	margin-top: 0.625rem;
	font-size: var(--text-lg, 1.25rem);
	line-height: 1.3;
	text-align: center;
}

.art3d-home-products__product-title a,
.art3d-home-products__cta a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 5px;
	transition: color var(--t-fast, 0.2s) var(--ease, ease), text-decoration-color var(--t-fast, 0.2s) var(--ease, ease);
}

.art3d-home-products__product-title a:hover,
.art3d-home-products__cta a:hover {
	color: var(--accent-hover, #35c8f2);
	text-decoration-color: currentColor;
}

.art3d-home-products__product-title a:focus-visible,
.art3d-home-products__cta a:focus-visible {
	border-radius: var(--r-sm, 4px);
	outline: 2px solid var(--accent, #00a7d8);
	outline-offset: 4px;
}

.art3d-home-products__product-title a:focus-visible {
	color: var(--accent-hover, #35c8f2);
	text-decoration-color: currentColor;
}

.art3d-home-products__technical {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.25rem;
	margin: 0.9rem 0 0;
	color: var(--text-secondary, #aab8c6);
	font-size: var(--text-xs, 0.75rem);
}

.art3d-home-products__technical div {
	display: flex;
	gap: 0.4rem;
}

.art3d-home-products__technical dt {
	font-weight: 600;
}

.art3d-home-products__technical dd {
	margin: 0;
}

.art3d-home-products__cta {
	max-width: none;
	margin-top: clamp(1.5rem, 2.2vw, 2rem);
	text-align: center;
}

.art3d-home-products__cta a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--text-primary, #f3f8fb);
	font-size: var(--text-sm, 0.875rem);
	font-weight: 500;
	text-decoration-color: color-mix(in srgb, currentColor 48%, transparent);
}

.art3d-home-products__cta a::after {
	content: "→";
	color: var(--accent, #00a7d8);
}

.art3d-home-products__editor-empty {
	padding: 2rem;
	border: 1px dashed #7b8a96;
	color: #26323a;
	background: #f4f7f8;
}

.art3d-home-products__editor-empty p {
	margin: 0.5rem 0 0;
}

@media (max-width: 900px) {
	.art3d-home-products__header {
		grid-template-columns: 1fr;
	}

	.art3d-home-products.has-columns-3 .art3d-home-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.art3d-home-products {
		padding: 2.75rem 0 2.25rem;
	}

	.art3d-home-products__inner {
		width: min(100% - 24px, 420px);
	}

	.art3d-home-products__grid,
	.art3d-home-products.has-columns-3 .art3d-home-products__grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}
}
