/* Product page + gallery + 3D modal (matches homepage minimalism) */

html.is-model-preview-open,
html.is-model-preview-open body {
	overflow: hidden;
}

.product-gallery__loading[hidden],
.product-gallery__error[hidden],
.viewer-coach[hidden],
.model-preview__loading[hidden],
.model-preview__error[hidden],
.model-preview[hidden],
.product-gallery__slide[hidden] {
	display: none !important;
}

/* Gallery
--------------------------------------------- */

.product-gallery {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.product-gallery__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 3;
	padding: 0.3rem 0.65rem;
	border: 1px solid var(--color-line, #e4e2dc);
	background: var(--color-surface, #fff);
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-ink, #1a1a1a);
}

.product-gallery__stage-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--color-line, #e4e2dc);
	background: #f3efe6;
	overflow: hidden;
}

.product-gallery__slide {
	position: absolute;
	inset: 0;
}

.product-gallery__slide--image {
	display: grid;
	place-items: center;
	background: #f4f2ed;
}

.product-gallery__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-gallery__viewer {
	position: relative;
	width: 100%;
	height: 100%;
}

.product-gallery__canvas,
.model-preview__canvas {
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
}

.product-gallery__loading,
.product-gallery__error,
.model-preview__loading,
.model-preview__error {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 1.5rem;
	text-align: center;
	font-size: 0.9rem;
	color: #6b6b6b;
	pointer-events: none;
	z-index: 2;
}

.product-gallery__error,
.model-preview__error {
	color: #7a2e2e;
	background: rgb(243 239 230 / 0.88);
}

.product-gallery__expand {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	z-index: 3;
	min-height: 2rem;
	padding: 0 0.75rem;
	border: 1px solid #cfcbc3;
	background: rgb(255 255 255 / 0.88);
	color: #1a1a1a;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}

.product-gallery__expand:hover,
.product-gallery__expand:focus-visible {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

/* 3D control coachmark
--------------------------------------------- */

.viewer-coach {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 0.55rem;
	padding: 1rem;
	background: rgb(243 239 230 / 0.42);
	pointer-events: none;
	opacity: 0;
	transition: opacity 280ms ease;
}

.viewer-coach.is-visible {
	opacity: 1;
}

.viewer-coach.is-leaving {
	opacity: 0;
}

.viewer-coach__mouse {
	position: relative;
	width: 1.65rem;
	height: 2.55rem;
	animation: viewer-coach-nudge 1.6s ease-in-out infinite;
}

.viewer-coach__body {
	display: block;
	width: 100%;
	height: 100%;
	border: 1.5px solid #1a1a1a;
	border-radius: 0.85rem;
	background: rgb(255 255 255 / 0.75);
	box-shadow: 0 4px 14px rgb(0 0 0 / 0.08);
}

.viewer-coach__wheel {
	position: absolute;
	top: 0.45rem;
	left: 50%;
	width: 0.28rem;
	height: 0.55rem;
	margin-left: -0.14rem;
	border-radius: 999px;
	background: #1a1a1a;
	animation: viewer-coach-scroll 1.6s ease-in-out infinite;
}

.viewer-coach__text,
.viewer-coach__sub {
	margin: 0;
	font-family: "Outfit", "Segoe UI", sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	color: #1a1a1a;
}

.viewer-coach__text {
	font-size: 0.72rem;
	font-weight: 500;
}

.viewer-coach__sub {
	font-size: 0.65rem;
	font-weight: 400;
	color: #6b6b6b;
}

@keyframes viewer-coach-nudge {
	0%,
	100% {
		transform: translateX(-0.55rem) rotate(-8deg);
	}
	50% {
		transform: translateX(0.55rem) rotate(8deg);
	}
}

@keyframes viewer-coach-scroll {
	0%,
	100% {
		transform: translateY(0);
		opacity: 0.55;
	}
	50% {
		transform: translateY(0.28rem);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.viewer-coach__mouse,
	.viewer-coach__wheel {
		animation: none;
	}

	.viewer-coach {
		transition: none;
	}
}

.product-gallery__slide--empty {
	display: grid;
	place-items: center;
	gap: 0.5rem;
	background: #f4f2ed;
}

.product-gallery__placeholder {
	display: block;
	width: 4rem;
	height: 4rem;
	border: 1px dashed #cfcbc3;
}

.product-gallery__empty-text {
	margin: 0;
	font-size: 0.85rem;
	color: #6b6b6b;
}

.product-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.product-gallery__thumb {
	width: 4rem;
	height: 4rem;
	padding: 0;
	border: 1px solid var(--color-line, #e4e2dc);
	background: #f4f2ed;
	cursor: pointer;
	overflow: hidden;
}

.product-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover,
.product-gallery__thumb:focus-visible {
	border-color: #1a1a1a;
}

.product-gallery__thumb--3d {
	display: grid;
	place-items: center;
	background: #f3efe6;
	color: #1a1a1a;
}

.product-gallery__thumb-label {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
}

/* Modal
--------------------------------------------- */

.model-preview {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.model-preview__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(20 18 16 / 0.6);
	border: 0;
	cursor: pointer;
}

.model-preview__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(64rem, 100%);
	height: min(88vh, 46rem);
	background: #fff;
	border: 1px solid #e4e2dc;
	box-shadow: 0 18px 50px rgb(0 0 0 / 0.18);
}

.model-preview__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #e4e2dc;
}

.model-preview__title {
	margin: 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.35rem;
	font-weight: 500;
}

.model-preview__close {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 1px solid #e4e2dc;
	background: #f7f6f3;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.model-preview__close:hover,
.model-preview__close:focus-visible {
	border-color: #1a1a1a;
}

.model-preview__stage {
	position: relative;
	flex: 1;
	min-height: 0;
	background: #f3efe6;
}

.model-preview__hint {
	margin: 0;
	padding: 0.65rem 1rem 0.85rem;
	border-top: 1px solid #e4e2dc;
	font-size: 0.8rem;
	color: #6b6b6b;
}

/* Single product layout (homepage language)
--------------------------------------------- */

.page--product .site-main > .container,
.woocommerce.single-product .site-main > .container {
	padding-block: 1.5rem 3.5rem;
}

.woocommerce div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .product-gallery {
	width: 100%;
	float: none;
	margin: 0;
}

.woocommerce div.product .summary {
	width: 100%;
	float: none;
	margin: 0;
	padding: 0;
}

.woocommerce div.product .product_title {
	margin: 0 0 0.65rem;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 500;
	font-size: clamp(1.75rem, 2.6vw, 2.35rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #1a1a1a;
}

.woocommerce div.product .price {
	margin: 0 0 1.25rem;
	font-family: "Outfit", "Segoe UI", sans-serif;
	font-size: 1.05rem;
	font-weight: 500;
	color: #1a1a1a;
}

.woocommerce div.product .price del {
	opacity: 0.45;
	margin-right: 0.4rem;
}

.woocommerce div.product .price ins {
	text-decoration: none;
	background: none;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	margin: 0 0 1.25rem;
	font-weight: 300;
	color: #6b6b6b;
	line-height: 1.55;
}

.woocommerce div.product .cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 1.5rem;
}

.woocommerce div.product .quantity .qty {
	width: 4.25rem;
	min-height: 2.5rem;
	padding: 0 0.5rem;
	border: 1px solid #e4e2dc;
	border-radius: 0.125rem;
	background: #fff;
}

.woocommerce div.product .single_add_to_cart_button,
.woocommerce div.product .button {
	min-height: 2.5rem;
	padding: 0 1.25rem;
	border: 0;
	border-radius: 0.125rem;
	background: #2c2a26 !important;
	color: #fff !important;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: none !important;
}

.woocommerce div.product .single_add_to_cart_button:hover,
.woocommerce div.product .button:hover {
	background: #000 !important;
}

.woocommerce div.product .product_meta {
	padding-top: 1rem;
	border-top: 1px solid #e4e2dc;
	font-size: 0.85rem;
	color: #6b6b6b;
}

.woocommerce div.product .product_meta a {
	color: #1a1a1a;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb {
	margin: 0 0 1.25rem;
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	color: #6b6b6b;
}

.woocommerce-breadcrumb a {
	color: #6b6b6b;
}

.woocommerce-breadcrumb a:hover {
	color: #1a1a1a;
}

.woocommerce div.product .woocommerce-tabs {
	grid-column: 1 / -1;
	margin-top: 1.5rem;
	border-top: 1px solid #e4e2dc;
	padding-top: 1.25rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
	list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	border: 0;
	background: none;
	padding: 0;
	margin: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: 0.35rem 0;
	border-bottom: 1px solid transparent;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #6b6b6b;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: #1a1a1a;
	border-bottom-color: #1a1a1a;
}

.woocommerce div.product .woocommerce-Tabs-panel {
	margin: 0;
	padding: 0;
	border: 0;
	font-weight: 300;
	color: #6b6b6b;
	line-height: 1.6;
}

.woocommerce table.shop_attributes {
	border: 0;
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
	border-bottom: 1px solid #e4e2dc;
	font-style: normal;
	padding: 0.65rem 0;
}

.woocommerce span.onsale {
	display: none;
}

.product-specs-note {
	margin: 0 0 1.25rem;
	padding: 0.85rem 0 0;
	border-top: 1px solid #e4e2dc;
	font-size: 0.95rem;
	color: #6b6b6b;
}

.product-specs-note p:last-child {
	margin-bottom: 0;
}

.product-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, #f0eeea 0%, #faf9f7 50%, #ebe8e2 100%);
}

.catalog__pagination {
	margin-top: 2.5rem;
}

.catalog__pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.catalog__pagination .page-numbers li {
	margin: 0;
}

.catalog__pagination a,
.catalog__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	min-height: 2.25rem;
	padding: 0 0.55rem;
	border: 1px solid #e4e2dc;
	background: #fff;
	font-size: 0.85rem;
}

.catalog__pagination .current {
	border-color: #1a1a1a;
	background: #1a1a1a;
	color: #fff;
}

.header .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.header .custom-logo {
	max-height: 2.25rem;
	width: auto;
}

@media (max-width: 900px) {
	.woocommerce div.product {
		grid-template-columns: 1fr;
	}
}
