/* Loaded only on listings that have a 3D model (item page) and on the shop grid when any listing has one. */
.shop-slide-stage { position: relative; outline: none; touch-action: pan-y; }
.shop-slide-stage:focus-visible { box-shadow: 0 0 0 3px var(--accent); border-radius: var(--radius); }
.shop-slide img { -webkit-user-drag: none; user-select: none; }
.shop-slide[hidden] { display: none !important; }
.shop-slide-3d .model-viewer { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #1a1f26; margin: 0; touch-action: none; }
.shop-slide-3d .model-viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.shop-slide-3d .viewer-status { color: #c9d6e8; padding: 14px; margin: 0; }
.shop-3d-hint { margin: 6px 0 0; color: var(--muted); text-align: center; }
.shop-slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(18, 21, 28, .78); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.shop-slide-nav[hidden] { display: none; }
.shop-slide-nav.prev { left: 8px; }
.shop-slide-nav.next { right: 8px; }
.shop-slides.on-3d .shop-slide-nav { top: calc(50% - 14px); }
.shop-slide-thumb { padding: 0; border: 2px solid var(--line); border-radius: 8px; background: var(--alt); cursor: pointer; width: 64px; height: 64px; overflow: hidden; }
.shop-slide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-slide-thumb.on { border-color: var(--accent); }
.shop-thumb-3d { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--ink); font-size: .72rem; font-weight: 700; }
.viewer-controls { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; z-index: 3; }
.viewer-controls button { min-width: 44px; height: 44px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(18, 21, 28, .8); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.shop-3d-badge { position: absolute; left: 8px; bottom: 8px; background: rgba(18, 21, 28, .82); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
