/* The virtual showroom (phase 7): the hall fills the screen under the header; the sections bar on top of it, a short hint
   at the bottom, and a product's card on the side. Colours, corners and the font are the company's tokens.
   Since the redesign of 2026-10-29 its controls belong to the vitrine's world: the company's velvet (--cat-dark), a hairline
   of its second colour (--s), its own corners; no glass, no pill shapes. */
.pg-showroom .foot { display: none; }   /* the hall is the whole page */
.showroom { position: relative; height: calc(100vh - 77px - env(safe-area-inset-top, 0px)); height: calc(100dvh - 77px - env(safe-area-inset-top, 0px)); min-height: 420px;
  background: radial-gradient(50% 60% at 50% 10%, rgb(255 240 214 / .1), transparent 72%), var(--w-bg); color: var(--w-ink); }
.showroom ::selection { background: var(--s-fill); color: var(--on-s); }
.showroom :focus-visible { outline: 2px solid var(--s-text); outline-offset: 3px; }
.showroom > .sr-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 1.1rem; }
.sr-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.sr-canvas { display: block; width: 100%; height: 100%; cursor: grab; outline: none; }
.sr-canvas:active { cursor: grabbing; }
.sr-stage .sr-status { position: absolute; inset-inline: 0; top: 50%; text-align: center; font-size: 1.1rem; font-weight: 600; pointer-events: none; margin: 0; }
/* the pictures arriving */
.sr-load { position: absolute; z-index: 4; top: 0; inset-inline-start: 0; height: 2px; width: calc(var(--k, 0) * 100%); background: var(--s); transition: width .3s ease, opacity .6s ease; }
.sr-load.done { opacity: 0; }

/* the controls on the hall: the company's velvet with its hairline */
.sr-nav button, .sr-hint, .sr-pager, .sr-card { background: color-mix(in srgb, var(--w-bg) 92%, transparent); color: var(--w-ink);
  border: 1px solid color-mix(in srgb, var(--s) 40%, transparent); border-radius: var(--r); }

/* the sections */
.sr-nav { position: absolute; top: 12px; inset-inline: 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; z-index: 2; }
.sr-nav::-webkit-scrollbar { display: none; }
.sr-nav button { flex: none; min-height: 44px; padding: 8px 16px; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; transition: border-color .2s ease; }
.sr-nav button:hover { border-color: var(--s); }
.sr-nav button:first-child { background: var(--s-fill); color: var(--on-s); border-color: transparent; }
/* the guided tour: the second colour's outline, filled while it runs */
.sr-nav .sr-tour { border-color: var(--s); }
.sr-nav .sr-tour.on { background: var(--w-ink); color: var(--w-bg); }

/* the hint */
.sr-hint { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
  margin: 0; padding: 10px 18px; font-size: .95rem; text-align: center; transition: opacity .6s ease; pointer-events: none; }
.sr-hint.gone { opacity: 0; }

/* the pages of the section in view */
.sr-pager { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 6px; max-width: calc(100% - 24px); }
.sr-pager[hidden] { display: none; }
.sr-page { min-height: 44px; padding: 8px 18px; border-radius: calc(var(--r) * .8); border: 0; background: var(--s-fill); color: var(--on-s); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
.sr-page:disabled { opacity: .35; cursor: default; }
.sr-count { font-size: .95rem; font-weight: 600; padding-inline: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-pager:not([hidden]) ~ .sr-hint { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }   /* above the bar, until the visitor's first move */

/* a product's card: the piece's tag, on the velvet */
.sr-card { position: absolute; top: 68px; inset-inline-end: 12px; width: min(360px, calc(100% - 24px)); max-height: calc(100% - 88px); overflow: auto; z-index: 3;
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / .7); padding: 18px; display: grid; gap: 10px; scrollbar-color: color-mix(in srgb, var(--w-ink) 26%, transparent) transparent; }
.sr-card[hidden] { display: none; }
.sr-card img { width: 100%; aspect-ratio: 2; object-fit: cover; border-radius: 1px; }
.sr-card small { color: var(--s-text); font-size: .92rem; font-weight: 600; }
.sr-card h2 { font-size: 1.4rem; line-height: 1.25; }
.sr-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .95rem; }
.sr-card dt { color: color-mix(in srgb, var(--w-ink) 68%, var(--w-bg)); }
.sr-card dd { margin: 0; }
.sr-actions { display: grid; gap: 8px; margin-top: 8px; }
.sr-actions .btn { width: 100%; }
.sr-actions .btn-p { background: var(--s-fill); color: var(--on-s); }
.sr-actions .btn-o { background: none; color: var(--w-ink); border-color: color-mix(in srgb, var(--w-ink) 34%, transparent); }
.sr-actions .btn-o:hover { border-color: var(--s); filter: none; }
/* the close button: two hairlines, not a letter */
.sr-x { position: absolute; top: 10px; inset-inline-start: 10px; width: 44px; height: 44px; border-radius: var(--r); border: 0; background: color-mix(in srgb, var(--w-bg) 70%, transparent); color: var(--w-ink); cursor: pointer; }
.sr-x::before, .sr-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: currentColor; transform: rotate(45deg); }
.sr-x::after { transform: rotate(-45deg); }

/* no WebGL: the products as a list */
.sr-fallback { padding: 24px max(20px, env(safe-area-inset-left, 0px)); color: var(--w-ink); display: grid; gap: 18px; max-width: 1320px; margin-inline: auto; }
.sr-fallback h2 { font-size: 1.3rem; }
.sr-fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-top: 8px; }
.sr-fb-grid a { color: inherit; text-decoration: none; display: grid; gap: 8px; font-size: .95rem; }
.sr-fb-grid img { width: 100%; aspect-ratio: 2; object-fit: cover; border-radius: 1px; }

@media (max-width: 900px) {
  .sr-card { top: auto; bottom: 12px; inset-inline: 12px; width: auto; max-height: 62%; }
  .sr-card img { aspect-ratio: 2.4; }
  .sr-nav button { font-size: .9rem; padding: 8px 14px; }
  .sr-hint { font-size: .85rem; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .sr-load, .sr-hint { transition: none; } }
