.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem 1.4rem;
}
@media (max-width: 860px) {
  .store-grid { grid-template-columns: 1fr; }
}
.store-item {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.store-item:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 6px;
}
.store-frame {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--studio);
  border-radius: 0.35rem;
}
.store-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  pointer-events: none;
}
/* Store first-visit: dock the consent card under the nav so it cannot
   cover product cards (the previous bottom-left card sat on the USB title). */
body:has(.shop-preview) .cookie-banner {
  top: calc(var(--measured-nav, 4.75rem) + 0.65rem);
  bottom: auto;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 60;
  pointer-events: none;
}
body:has(.shop-preview) .cookie-banner .cookie-btn,
body:has(.shop-preview) .cookie-banner .cookie-x,
body:has(.shop-preview) .cookie-banner a {
  pointer-events: auto;
}
html.has-cookie .shop-preview {
  padding-top: calc(var(--cookie-h, 12rem) + 0.35rem);
}
html.has-cookie:has(.shop-preview) body {
  padding-bottom: 0;
}
.store-item h2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 0.95rem 0 0.4rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.store-item .name-soon,
.store-detail .name-soon {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.store-item p {
  margin: 0;
  max-width: 34ch;
  color: var(--mute);
  font-size: 0.92rem;
}
.store-dialog {
  width: min(1040px, calc(100vw - 1.5rem));
  max-width: none;
  height: min(760px, calc(100vh - 1.5rem));
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 0.55rem;
  box-shadow: 0 30px 80px rgba(17, 17, 17, 0.28);
}
.store-dialog::backdrop {
  background: rgba(17, 17, 17, 0.58);
}
.store-dialog-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.85fr);
  height: 100%;
  min-height: 0;
}
.store-stage {
  position: relative;
  min-height: 0;
  background: var(--studio);
  touch-action: none;
}
.store-stage canvas,
.store-stage .store-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.store-stage canvas { display: block; z-index: 1; }
.store-stage .store-fallback { display: none; z-index: 0; }
.store-stage.is-fallback { touch-action: auto; }
.store-stage.is-fallback canvas { display: none; }
.store-stage.is-fallback .store-fallback { display: block; }
.store-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.35rem 1.4rem 1.6rem;
  border-left: 1px solid rgba(17, 17, 17, 0.08);
}
.store-detail-bar {
  display: flex;
  justify-content: flex-end;
}
.store-close {
  appearance: none;
  margin: 0;
  padding: 0.35rem 0.15rem 0.35rem 0.6rem;
  border: 0;
  background: none;
  color: var(--mute);
  font: 400 0.82rem/1 Outfit, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.store-close:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}
.store-detail h2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}
.store-detail p {
  margin: 0;
  color: var(--mute);
  font-size: 0.98rem;
  line-height: 1.55;
}
.store-scroller {
  flex: 1 1 auto;
  min-height: 8rem;
  margin-top: 1.2rem;
  overflow: auto;
  overscroll-behavior: contain;
}
.store-scroller-track {
  height: 220vh;
}
.store-hint {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--mute);
  font-size: 0.78rem;
}
@media (max-width: 760px) {
  .store-dialog {
    width: calc(100vw - 0.8rem);
    height: calc(100dvh - 0.8rem);
  }
  .store-dialog-inner {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(42vh, 1fr) auto;
  }
  .store-detail {
    border-left: 0;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    max-height: 48vh;
  }
  .store-scroller { min-height: 5rem; }
  .store-scroller-track { height: 160vh; }
}
@media (prefers-reduced-motion: reduce) {
  .store-scroller-track { height: auto; }
  .store-stage canvas { display: none !important; }
  .store-stage .store-fallback { display: block !important; visibility: visible; }
}
