/* =============================================================== store == */
/* The shop as you walk in (store.js): the picture zooms in through the door, then into the section tapped */
.room--store { background: #0B0A09; }
.store { max-width: var(--sc-maxw); margin: 0 auto; }
.store__bar { scroll-margin-top: calc(var(--bar-h) + 12px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-height: 48px; margin-bottom: 14px; }
.store__where { font: 400 var(--sc-t-xl)/1 var(--sc-font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.store__standin {
  margin-left: auto; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor;
  font-size: var(--sc-t-xs, 0.8rem); color: var(--sc-ink-soft);
}
.store__stage { position: relative; }
.store__view {
  --ar: 16 / 9; --arn: 1.7778; position: relative; aspect-ratio: var(--ar);
  /* the whole picture fits on the screen, under the bar and the line above it */
  width: min(100%, calc((100svh - var(--bar-h) - 120px) * var(--arn))); margin-inline: auto; overflow: hidden; border-radius: 16px; background: #121110;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8);
}
.store__world {
  position: absolute; inset: 0; transform-origin: 0 0;
  transition: transform 720ms cubic-bezier(0.65, 0, 0.35, 1);
}
.store.no-anim .store__world { transition: none; }
.store__world > img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.store__world--inside::after {
  content: ""; position: absolute; inset: 0; background: rgb(8 7 6 / 0.42); opacity: 0; pointer-events: none;
  transition: opacity 360ms var(--sc-ease-out);
}
.store.is-dim .store__world--inside::after { opacity: 1; }

/* a button over the door and over each section: lit when pointed at, with its name on a tag */
.store__spot {
  position: absolute; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer;
  box-shadow: inset 0 0 0 2px rgb(216 242 60 / 0); transition: box-shadow 200ms var(--sc-ease-out), background-color 200ms var(--sc-ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.store__spot:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--volt), 0 0 48px rgb(216 242 60 / 0.3); background: rgb(216 242 60 / 0.07); }
@media (hover: hover) and (pointer: fine) {
  .store__spot:hover { box-shadow: inset 0 0 0 2px var(--volt), 0 0 48px rgb(216 242 60 / 0.25); background: rgb(216 242 60 / 0.06); }
}
.store__tag {
  position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px);
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 8px 11px; border-radius: 10px;
  background: rgb(11 10 9 / 0.8); color: #F2F1EA; text-align: left;
  font: 600 var(--sc-t-sm)/1.1 var(--sc-font-text); transition: opacity 240ms var(--sc-ease-out);
}
.store__tag small { font-weight: 400; color: #ABA397; }
.store__spot--door .store__tag {
  left: 50%; top: 50%; translate: -50% -50%; padding: 14px 22px; border-radius: 999px; white-space: nowrap;
  background: var(--sc-accent); color: var(--sc-accent-ink); font-size: var(--sc-t-base);
}
.store.is-zoomed .store__tag { opacity: 0; }
/* until a section has its own photo: a line over the zoomed stand-in, in the part beside the list */
.store__caption {
  position: absolute; left: 0; top: 50%; translate: 0 -50%; width: calc(100% - min(46%, 540px) - 24px); padding: 0 24px; text-align: center;
  font: 400 var(--sc-t-xl)/1.05 var(--sc-font-display); text-transform: uppercase; color: rgb(242 241 234 / 0.55); pointer-events: none;
}
@media (max-width: 700px) { .store__caption { width: 100%; } }
/* the section's own photo (store.js showPhotos): whole, beside the list, over a dark blurred copy of itself */
.store__close { position: absolute; inset: 0; overflow: hidden; background: #0B0A09; }
.store__close[hidden] { display: none; }
.store__close-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(0.45); }
.store__close-pic { position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% - min(46%, 540px) - 24px); }
.store__close-pic img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 40px rgb(0 0 0 / 0.5)); }
.store__close[data-fit="cover"] .store__close-pic img { object-fit: cover; }
.store__close-pick { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; }
.store__close-pick[hidden] { display: none; }

/* the section's shelves: over the picture's right side on a wide screen, under it on a phone */
.store__panel {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(46%, 540px); overflow-y: auto; overscroll-behavior: contain;
  padding: 22px 20px 26px; border-radius: 14px; background: rgb(13 12 11 / 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.store__panel h3 { font: 400 var(--sc-t-2xl, 2.4rem)/0.95 var(--sc-font-display); text-transform: uppercase; }
.store__panel h3:focus { outline: none; }
.store__count { margin-top: 6px; color: var(--sc-ink-soft); }
.store__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.store__acts .pill { min-height: 42px; padding: 0 16px; font-size: var(--sc-t-sm); }
.store__group { margin: 22px 0 10px; font-size: var(--sc-t-xs, 0.8rem); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-ink-soft); }
.store__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 10px; }
.store-card { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 14px; border-radius: 12px; background: rgb(255 255 255 / 0.06); }
.store-card__brand { font-size: var(--sc-t-xs, 0.8rem); font-weight: 600; color: var(--sc-ink-soft); min-height: 1em; }
.store-card__name { font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.store-card__meta { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); line-height: 1.35; overflow-wrap: anywhere; }
.store-card__stock { display: inline-flex; align-items: center; gap: 6px; font-size: var(--sc-t-sm); font-weight: 600; }
.store-card__stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.store-card__foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.store-card__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.store-card__price s { font-weight: 400; color: var(--sc-ink-soft); margin-left: 4px; }
.store-card .pill { min-height: 40px; padding: 0 16px; font-size: var(--sc-t-sm); }
.store__more { margin-top: 20px; color: var(--sc-ink-soft); }
.store__ask { color: var(--wa); font-weight: 600; }

.store__hint { display: none; }
.store__jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

@media (max-width: 700px) {
  /* on a phone the picture is wider than the screen: swipe across it */
  .store__view { width: auto; aspect-ratio: auto; height: min(58svh, 520px); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
  .store__view::-webkit-scrollbar { display: none; }
  .store.is-zoomed .store__view { overflow-x: hidden; }
  .store__world { right: auto; width: auto; height: 100%; aspect-ratio: var(--ar); }
  .store__hint { display: block; margin-top: 8px; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
  .store[data-state="section"] .store__hint { display: none; }
  .store__jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--sc-gutter) * -1); padding-inline: var(--sc-gutter); }
  .store__jump::-webkit-scrollbar { display: none; }
  .store__jump .chip { flex: none; }
  .store__close { right: auto; }
  .store__close-pic { width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
  .store__close-pic::-webkit-scrollbar { display: none; }
  .store__close-pic img { width: auto; max-width: none; height: 100%; filter: none; }
  .store__close[data-fit="cover"] .store__close-pic img { width: 100%; }
  .store__close-pick { left: 12px; bottom: 12px; }
  .store__panel { position: static; width: auto; margin-top: 12px; padding: 20px 16px 22px; background: var(--sc-surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .store__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store__standin { margin-left: 0; }
}
@media (max-width: 380px) { .store__cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .store__world, .store__tag, .store__world--inside::after { transition: none; }
}

/* the boot wall (store.js showWall): the shop picture gives way to the real wall with every boot on it */
.store__wall { border-radius: 16px; background: #1A1918; padding: 18px 0 22px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8); }
.store__wall[hidden] { display: none; }
.store__wall-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 0 20px 14px; }
.store__wall-head h3 { font: 600 var(--sc-t-base)/1.2 var(--sc-font-text); }
.store__wall-head h3:focus { outline: none; }
.store__wall-head p { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.store__wall-head .pill { margin-left: auto; min-height: 42px; padding: 0 16px; font-size: var(--sc-t-sm); }
.store__wall-scroll { padding: 0 12px; }
.store__wall-hint { display: none; }
@media (max-width: 699px) {
  /* along the wall on a phone: swipe sideways */
  .store__wall { margin-inline: calc(var(--sc-gutter) * -1); border-radius: 0; }
  .store__wall-head { padding: 0 var(--sc-gutter) 12px; }
  .store__wall-head .pill { margin-left: 0; }
  .store__wall-scroll { overflow-x: auto; overflow-y: hidden; padding: 0 var(--sc-gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .store__wall-scroll::-webkit-scrollbar { display: none; }
  .store__wall-hint { display: block; padding: 10px var(--sc-gutter) 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
}
.store__wall-note { margin: 16px 20px 0; max-width: none; }
.store__wall-note a { color: var(--sc-ink); }
