/* shop.css — "Inside the shop": the tour video, the room, and the LED grid motif */

.shop {
  overflow: hidden;
}

/* The ceiling grid from the video, drawn as a faint triangular lattice that
   fades out toward the edges of the section. */
.shop::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='103.92' viewBox='0 0 60 103.92'><g fill='none' stroke='white' stroke-width='0.8'><path d='M0 0H60M0 51.96H60'/><path d='M0 0L60 103.92M30 0L60 51.96M0 51.96L30 103.92'/><path d='M60 0L0 103.92M30 0L0 51.96M60 51.96L30 103.92'/></g></svg>");
  background-size: 120px 207.84px;
  opacity: 0.055;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
}

.shop > .container { position: relative; z-index: 1; }

.shop__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

@media (min-width: 720px) {
  .shop__grid {
    grid-template-columns: 1fr 1fr;
  }
  .shop__head { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .shop__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 3.5vw, 3.5rem);
  }
  .shop__head {
    grid-column: 1;
    margin-bottom: 0;
    position: sticky;
    top: 96px;
  }
}

/* --- Plates: video and photo share the same frame --- */
.shop__video,
.shop__room {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--ink-3);
  box-shadow: var(--shadow-plate);
  aspect-ratio: 2 / 3;
}

.shop__video::after,
.shop__room::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--plate-frame);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}

.shop__room picture { height: 100%; }

.shop__player,
.shop__room img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop__room img {
  object-position: 50% 40%;
  filter: saturate(0.94);
  transition: transform 1.4s var(--ease-curtain);
}
.shop__room:hover img { transform: scale(1.025); }

/* --- Sound and pause, over the bottom of the tour (.video-btn in components.css) --- */
.shop__controls {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shop__sound-body { fill: currentColor; stroke: none; }

.shop__sound-wave { opacity: 0; transition: opacity var(--t-fast); }
.shop__sound[aria-pressed="true"] .shop__sound-wave { opacity: 1; }
.shop__sound[aria-pressed="true"] .shop__sound-off  { display: none; }

/* Reduced motion or no autoplay: the poster stays and a play affordance shows */
.shop__video.is-paused .shop__player { cursor: pointer; }
