/* The product page: the trail, the product large on mist, the label and buy box beside it, the description, the spec sheet, the installation row. */
.exhibit {
	width: min(100% - 2 * var(--gutter), var(--page-max)); margin-inline: auto; padding-top: var(--s-4);
	display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr); gap: var(--s-4) clamp(24px, 4.5vw, 80px); align-items: start;
}
/* The trail takes the row the hall link had (base.css, .crumbs); the gap under it stays the grid's. */
.exhibit__crumbs { grid-column: 1 / -1; }

/* The stage: the product on mist; drag, swipe, arrows or the keyboard turn through its views (turntable.js). */
.exhibit__stage { position: relative; isolation: isolate; aspect-ratio: 1 / 0.9; max-height: 760px; display: grid; place-items: center; background: var(--mist); border-radius: var(--r-lg); overflow: hidden; cursor: grab; touch-action: pan-y; }
.exhibit__stage.is-dragging { cursor: grabbing; }
.exhibit__stage:focus-visible { outline-offset: 3px; }
.exhibit__light, .exhibit__plinth { display: none; }
.exhibit__views { position: absolute; inset: 9% 8% 15%; }
.exhibit__view { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; transform: translateX(48px) scale(0.97); transition: opacity var(--dur-3) var(--ease-in), transform var(--dur-3) var(--ease-in); pointer-events: none; }
.exhibit__view.is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity var(--dur-4) var(--ease-out-expo), transform var(--dur-4) var(--ease-out-expo); }
.exhibit__view.is-leaving { opacity: 0; transform: translateX(-48px) scale(0.97); }
.exhibit__view.is-leaving.is-back { transform: translateX(48px) scale(0.97); }
.exhibit__view img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.exhibit__view--standing img { filter: drop-shadow(0 30px 26px rgb(0 0 0 / 0.16)); }
.exhibit__view--case img { max-width: 88%; max-height: 88%; padding: 4%; background: var(--paper); border-radius: var(--r-md); box-shadow: 0 1px 3px rgb(16 24 40 / 0.08); }
.exhibit__view--empty { color: var(--hairline-strong); gap: var(--s-4); font-weight: 700; }
.exhibit__view--empty svg { width: 120px; height: 120px; }
.exhibit__turn { position: absolute; left: 50%; bottom: var(--s-5); translate: -50% 0; display: flex; align-items: center; gap: var(--s-4); padding: 4px; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.9); box-shadow: 0 6px 18px -10px rgb(16 24 40 / 0.35); }
.exhibit__arrow { border-color: transparent; }
.exhibit__count { margin: 0; min-width: 3.2em; text-align: center; font: 500 var(--text-sm)/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.exhibit__note { position: absolute; left: 50%; top: var(--s-4); translate: -50% 0; margin: 0; padding: 6px 12px; border-radius: var(--r-pill); background: var(--paper); font-size: var(--text-xs); font-weight: 700; color: var(--muted); white-space: nowrap; }

/* The buy column. */
.exhibit__label { position: sticky; top: calc(var(--header-tight) + var(--s-5)); display: grid; gap: var(--s-4); padding-top: var(--s-2); }
.exhibit__buy { display: flex; gap: var(--s-3); margin-top: var(--s-2); }
.exhibit__buy .btn { flex: 1; }
.exhibit__wa .icon { color: inherit; }
.btn--wide { width: 100%; }
.qty { display: inline-flex; align-items: center; flex: none; border: 1.5px solid var(--line-control); border-radius: var(--r-pill); transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.qty__step { width: 44px; height: 53px; display: grid; place-items: center; background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: var(--r-pill); transition: color var(--dur-1) var(--ease-out); }
.qty__step:hover { color: var(--action); }
.qty__step .icon { width: 18px; height: 18px; }
.qty__input { width: 44px; height: 53px; text-align: center; border: 0; background: none; font: 600 var(--text-md)/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink); -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; }
.qty:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.exhibit__promises { list-style: none; margin: var(--s-2) 0 0; padding: var(--s-5) 0 0; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); }
.exhibit__promises li { display: flex; align-items: center; gap: 0.6rem; font-size: var(--text-sm); color: var(--ink-2); font-weight: 700; }
.exhibit__promises .icon { color: var(--accent); width: 24px; height: 24px; }

/* The description: the importer's few sentences on paper, in a reading measure, just above the spec sheet. */
.product-text { width: min(100% - 2 * var(--gutter), var(--page-max)); margin: var(--section-y) auto 0; }
.product-text h2 { font-size: var(--text-2xl); margin-bottom: var(--s-5); }
.product-text__body { max-width: 68ch; color: var(--ink-2); font-size: var(--text-md); }
.product-text__body > :last-child { margin-bottom: 0; }
.product-text__lead { color: var(--ink); font-size: var(--text-lg); line-height: 1.5; }
.product-text + .spec-wall { margin-top: var(--s-7); }

/* The spec sheet. */
.spec-wall { width: min(100% - 2 * var(--gutter), var(--page-max)); margin: var(--section-y) auto 0; padding: clamp(24px, 4vw, 56px); background: var(--mist); border-radius: var(--r-lg); }
.spec-wall h2 { font-size: var(--text-2xl); margin-bottom: var(--s-6); }
.spec-wall__list { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 var(--s-6); }
.spec-wall__list > div { padding: var(--s-4) 0; border-top: 1px solid var(--hairline-strong); }
.spec-wall__list dt { font-size: var(--text-sm); font-weight: 700; color: var(--muted); margin-bottom: 0.3rem; }
.spec-wall__list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; text-wrap: pretty; }
.spec-wall__wide { grid-column: 1 / -1; }
.spec-wall__wide ul { margin: 0.25rem 0 0; padding: 0; list-style: none; columns: 2 320px; column-gap: var(--s-7); }
.spec-wall__wide li { break-inside: avoid; padding: 0.3rem 0 0.3rem 1.2rem; position: relative; font-weight: 500; color: var(--ink-2); text-wrap: pretty; }
.spec-wall__wide li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* What completes the installation. */
.installation { width: min(100% - 2 * var(--gutter), var(--page-max)); margin: var(--section-y) auto 0; }
.installation h2 { font-size: var(--text-2xl); margin-bottom: var(--s-6); }
.vitrine--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1023px) {
	.exhibit { grid-template-columns: minmax(0, 1fr); }
	.exhibit__label { position: static; }
	.exhibit__stage { aspect-ratio: 1 / 0.82; }
	.vitrine--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.exhibit { padding-top: var(--s-2); }
	.exhibit__stage { aspect-ratio: 1 / 0.92; border-radius: var(--r-md); }
	.exhibit__views { inset: 8% 6% 18%; }
	.exhibit__turn { bottom: var(--s-3); }
	.exhibit__buy .btn { padding-inline: 1em; }
	.exhibit__buy .btn .icon { display: none; }
	.exhibit__promises { grid-template-columns: 1fr 1fr; }
	.spec-wall { border-radius: var(--r-md); }
	.installation .vitrine--row { gap: var(--s-3); }
}
/* Phones: the short facts pair up, so the sheet reads as a sheet rather than a long column; long rows keep the width. */
@media (max-width: 599px) {
	.spec-wall { padding-inline: 20px; }
	.spec-wall__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); }
	.spec-wall__list > div { padding: var(--s-3) 0; }
	.spec-wall__list dd { font-size: 0.9375rem; hyphens: auto; }
	.spec-wall__wide ul { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { .exhibit__view, .exhibit__view.is-leaving { transform: none !important; } }
