/* 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. */
.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: var(--cat-dark); }
.showroom > .sr-status { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; margin: 0; }
.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; color: #fff; font-weight: 600; text-shadow: 0 1px 10px rgb(0 0 0 / .6); pointer-events: none; margin: 0; }

/* the sections */
.sr-nav { position: absolute; top: 12px; inset-inline: 12px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; z-index: 2; }
.sr-nav::-webkit-scrollbar { display: none; }
.sr-nav button { flex: none; padding: 7px 14px; border-radius: 999px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
  background: rgb(10 10 12 / .5); color: #fff; border: 1px solid rgb(255 255 255 / .25); backdrop-filter: blur(8px); }
.sr-nav button:first-child { background: var(--p); color: var(--onp); border-color: transparent; }
/* the guided tour: the accent's outline, filled while it runs */
.sr-nav .sr-tour { border-color: var(--s); }
.sr-nav .sr-tour.on { background: #fff; color: #151517; border-color: var(--s); }

/* 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: 9px 16px; border-radius: 999px; background: rgb(10 10 12 / .55); color: #fff; font-size: .86rem; text-align: center; backdrop-filter: blur(8px);
  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; border-radius: 999px; background: rgb(10 10 12 / .62); color: #fff; backdrop-filter: blur(10px); max-width: calc(100% - 24px); }
.sr-pager[hidden] { display: none; }
.sr-page { padding: 8px 16px; border-radius: 999px; border: 0; background: var(--p); color: var(--onp); font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; }
.sr-page:disabled { opacity: .35; cursor: default; }
.sr-count { font-size: .86rem; font-weight: 600; padding-inline: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-pager:not([hidden]) ~ .sr-hint, .sr-hint.gone { opacity: 0; }

/* a product's card */
.sr-card { position: absolute; top: 60px; inset-inline-end: 12px; width: min(340px, calc(100% - 24px)); max-height: calc(100% - 80px); overflow: auto; z-index: 3;
  background: var(--bg); color: var(--ink); border-radius: var(--r); box-shadow: 0 18px 50px rgb(0 0 0 / .35); padding: 16px; display: grid; gap: 8px; }
.sr-card[hidden] { display: none; }
.sr-card img { width: 100%; aspect-ratio: 2; object-fit: cover; border-radius: calc(var(--r) * .6); }
.sr-card small { color: var(--mut); font-size: .8rem; }
.sr-card h2 { font-size: 1.2rem; }
.sr-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .88rem; }
.sr-card dt { color: var(--mut); }
.sr-card dd { margin: 0; }
.sr-actions { display: grid; gap: 8px; margin-top: 6px; }
.sr-actions .btn { width: 100%; }
.sr-x { position: absolute; top: 8px; inset-inline-start: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .45); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }

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

@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-hint { font-size: .78rem; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
