.product-showroom-page {
  min-width: 320px;
  background: var(--ink-deep);
  color: var(--paper);
}

.product-showroom-page .site-header {
  background: rgba(7, 23, 34, .96);
  backdrop-filter: blur(18px);
}

.product-showroom-page .desktop-nav a.is-current {
  opacity: 1;
  color: var(--amber);
}

.showroom-main {
  padding-top: 76px;
  background: var(--ink-deep);
}

.showroom-shell {
  min-height: calc(100vh - 152px);
  display: grid;
  grid-template-columns: minmax(360px, .64fr) minmax(640px, 1.36fr);
  border-bottom: 1px solid var(--line-light);
}

.showroom-copy {
  min-width: 0;
  padding: clamp(76px, 9vh, 118px) clamp(34px, 4vw, 72px) 52px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border-right: 1px solid var(--line-light);
}

.viewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(239, 233, 220, .72);
  font: 650 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
}

.showroom-copy h1 {
  margin: 52px 0 0;
  max-width: 620px;
  font: 400 clamp(54px, 5.4vw, 88px)/.98 "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif SC", serif;
  letter-spacing: -.052em;
  text-wrap: balance;
}

[data-language="zh"] .showroom-copy h1 {
  font-size: clamp(56px, 5.2vw, 84px);
  line-height: 1.04;
}

.viewer-body {
  max-width: 570px;
  margin: 34px 0 0;
  color: rgba(239, 233, 220, .66);
  font-size: 16px;
  line-height: 1.76;
  text-wrap: pretty;
}

.viewer-instructions {
  margin: 34px 0 0;
  padding: 15px 0 15px 18px;
  border-left: 2px solid var(--amber);
  color: rgba(239, 233, 220, .68);
  font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
}

.material-language {
  margin-top: auto;
  padding-top: 54px;
}

.material-language > p {
  margin: 0 0 18px;
  color: rgba(239, 233, 220, .48);
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}

.material-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.material-list > div {
  min-width: 0;
  display: grid;
  gap: 11px;
}

.material-list b {
  max-width: 100px;
  color: rgba(239, 233, 220, .66);
  font: 500 10px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
}

.material-swatch {
  width: 56px;
  height: 56px;
  display: block;
  border: 1px solid rgba(239, 233, 220, .28);
  background: #34383a;
}

.material-swatch.graphite {
  background-color: #3a3d3d;
  background-image: radial-gradient(rgba(255,255,255,.16) .45px, transparent .75px);
  background-size: 4px 4px;
}

.material-swatch.smoked-teal {
  background: linear-gradient(135deg, #082e34, #0d555d 58%, #071d22);
}

.material-swatch.amber-signal {
  position: relative;
  background: #071722;
}

.material-swatch.amber-signal::after {
  content: "";
  position: absolute;
  inset: 11px 23px;
  border-radius: 8px;
  background: var(--amber);
  box-shadow: 0 0 13px rgba(231, 163, 63, .72);
}

.viewer-column {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(560px, 1fr) auto;
  background: var(--paper);
}

.viewer-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background: var(--paper);
  outline: none;
}

.viewer-stage:active { cursor: grabbing; }
.viewer-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--amber); }

.viewer-stage canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
}

.viewer-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  transition: opacity .55s ease;
}

.viewer-stage.is-ready .viewer-poster { opacity: 0; pointer-events: none; }
.viewer-stage.is-fallback .viewer-poster { opacity: 1; }

.stage-label {
  position: absolute;
  z-index: 4;
  top: 24px;
  left: 26px;
  right: 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(7, 23, 34, .52);
  font: 8px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em;
  pointer-events: none;
}

.stage-label span:last-child { color: #7d672f; }

.orbit-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 7%;
  width: min(78%, 720px);
  height: 19%;
  transform: translateX(-50%);
  border: 1px solid rgba(7, 23, 34, .15);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-cue span {
  position: absolute;
  top: 50%;
  left: 17%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(7, 23, 34, .45);
}

.viewer-loading {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 15px;
  color: rgba(7, 23, 34, .55);
  background: rgba(239, 233, 220, .86);
  transition: opacity .35s ease, visibility .35s ease;
}

.viewer-loading span {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(7, 23, 34, .18);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: viewer-spin .9s linear infinite;
}

.viewer-loading p {
  margin: 0;
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}

.viewer-stage.is-ready .viewer-loading,
.viewer-stage.is-fallback .viewer-loading { opacity: 0; visibility: hidden; }

.viewer-fallback {
  position: absolute;
  z-index: 5;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: none;
  margin: 0;
  padding: 13px 15px;
  color: var(--paper);
  background: rgba(7, 23, 34, .92);
  font-size: 11px;
  line-height: 1.5;
}

.viewer-stage.is-fallback .viewer-fallback { display: block; }

@keyframes viewer-spin { to { transform: rotate(360deg); } }

.viewer-controls {
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  color: var(--paper);
  background: var(--ink);
  border-top: 1px solid rgba(239, 233, 220, .16);
}

.view-button {
  min-width: 0;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-right: 1px solid rgba(239, 233, 220, .16);
  color: rgba(239, 233, 220, .61);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: .025em;
  transition: color .2s ease, background .2s ease;
}

.view-button:last-child { border-right: 0; }
.view-button:hover, .view-button:focus-visible { color: var(--paper); background: rgba(239, 233, 220, .045); }
.view-button.is-active, .view-button[aria-pressed="true"] { color: var(--amber); box-shadow: inset 0 -2px var(--amber); }

.control-mark {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-block;
  color: currentColor;
}

.square-mark, .back-mark { border: 1px solid currentColor; }
.side-mark { width: 10px; border: 1px solid currentColor; }
.back-mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid currentColor; }
.orbit-mark { border: 1px solid currentColor; border-radius: 50%; }
.orbit-mark::after { content: ""; position: absolute; top: -2px; left: 7px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.rotate-mark { border: 1px solid currentColor; border-left-color: transparent; border-radius: 50%; }
.rotate-mark::after { content: ""; position: absolute; right: -2px; top: 0; width: 5px; height: 5px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(15deg); }
.reset-mark { border: 1px solid currentColor; border-radius: 50%; }
.reset-mark::before, .reset-mark::after { content: ""; position: absolute; background: currentColor; }
.reset-mark::before { left: 8px; top: 3px; width: 1px; height: 10px; }
.reset-mark::after { left: 3px; top: 8px; width: 10px; height: 1px; }

.showroom-safety {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px clamp(24px, 4vw, 72px);
  color: var(--amber);
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line-light);
}

.showroom-safety p {
  margin: 0;
  font: 9px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}

.showroom-safety a {
  color: rgba(239, 233, 220, .66);
  font-size: 11px;
  border-bottom: 1px solid rgba(239, 233, 220, .28);
}

.safety-shield {
  width: 2px;
  height: 28px;
  display: block;
  background: var(--amber);
}

@media (max-width: 1080px) {
  .showroom-shell { grid-template-columns: minmax(310px, .7fr) minmax(0, 1.3fr); }
  .showroom-copy { padding-left: 32px; padding-right: 32px; }
  .showroom-copy h1 { font-size: clamp(50px, 6.2vw, 68px); }
  .viewer-column { grid-template-rows: minmax(500px, 1fr) auto; }
  .view-button { flex-direction: column; gap: 7px; font-size: 10px; }
  .material-list { gap: 10px; }
}

@media (max-width: 760px) {
  .showroom-main { padding-top: 64px; }
  .showroom-shell { min-height: 0; grid-template-columns: 1fr; }
  .showroom-copy { min-height: 570px; padding: 72px 20px 48px; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .showroom-copy h1 { max-width: 520px; margin-top: 38px; font-size: clamp(52px, 15vw, 72px); }
  [data-language="zh"] .showroom-copy h1 { font-size: clamp(54px, 14.5vw, 70px); }
  .viewer-body { margin-top: 28px; font-size: 15px; }
  .viewer-instructions { margin-top: 26px; }
  .material-language { margin-top: 54px; padding-top: 0; }
  .material-list { max-width: 420px; gap: 16px; }
  .material-swatch { width: 48px; height: 48px; }
  .material-swatch.amber-signal::after { inset: 9px 19px; }
  .viewer-column { grid-template-rows: minmax(520px, 66svh) auto; }
  .stage-label { top: 18px; left: 18px; right: 18px; font-size: 7px; }
  .stage-label span:last-child { display: none; }
  .orbit-cue { bottom: 9%; width: 88%; height: 16%; }
  .viewer-controls { grid-template-columns: repeat(3, 1fr); }
  .view-button { min-height: 64px; border-bottom: 1px solid rgba(239, 233, 220, .16); }
  .view-button:nth-child(3n) { border-right: 0; }
  .view-button:nth-child(n+4) { border-bottom: 0; }
  .showroom-safety { grid-template-columns: auto 1fr; }
  .showroom-safety a { grid-column: 2; justify-self: start; }
}

@media (max-width: 430px) {
  .showroom-copy { min-height: 600px; }
  .showroom-copy h1, [data-language="zh"] .showroom-copy h1 { font-size: 54px; }
  .material-list b { font-size: 9px; }
  .viewer-column { grid-template-rows: minmax(470px, 62svh) auto; }
  .view-button { padding: 9px 5px; font-size: 9px; }
  .control-mark { width: 16px; height: 16px; }
  .showroom-safety { padding: 20px; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .viewer-loading span { animation: none; }
}
