/* ── In-store hero — MP4 scene video ── */

.is-shop-scene {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.is-shop-scene__frame {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(46, 49, 146, 0.38),
    0 10px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  background: #45b6fe;
}

.is-shop-scene__viewport {
  position: relative;
  width: 100%;
  min-height: clamp(300px, 50vh, 520px);
  aspect-ratio: 16 / 10;
  background: #45b6fe;
  overflow: hidden;
}

.is-shop-scene__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #45b6fe;
}

/* ── Live badge overlay ── */
.is-shop-scene__live {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 8px 22px rgba(46, 49, 146, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.is-shop-scene__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.65);
  animation: isLivePulse 2.4s ease-in-out infinite;
}

@keyframes isLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

.is-shop-scene__live-count {
  font-family: var(--font-system, system-ui, sans-serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ff6a00, #662d91);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.is-shop-scene__live-label {
  font-family: var(--font-system, system-ui, sans-serif);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #662d91;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .is-shop-scene__frame { max-width: 100%; border-radius: 24px; }
  .is-shop-scene__viewport {
    min-height: clamp(260px, 46vw, 420px);
    aspect-ratio: 4 / 3;
  }
  .is-shop-scene__live { top: 10px; right: 10px; padding: 8px 11px; }
  .is-shop-scene__live-count { font-size: 17px; }
}

@media (max-width: 480px) {
  .is-shop-scene__frame { border-radius: 20px; }
  .is-shop-scene__viewport { aspect-ratio: 1 / 1; }
}

/* ── Perf / reduced motion ── */
html.perf-lite .is-shop-scene__live-dot {
  animation: none !important;
}

html.perf-lite .is-shop-scene__video {
  display: none;
}

html.perf-lite .is-shop-scene__viewport {
  background:
    url("/assets/is-instore-hero.svg") center / cover no-repeat,
    #45b6fe;
}

@media (prefers-reduced-motion: reduce) {
  .is-shop-scene__live-dot {
    animation: none !important;
  }

  .is-shop-scene__video {
    display: none;
  }

  .is-shop-scene__viewport {
    background:
      url("/assets/is-instore-hero.svg") center / cover no-repeat,
      #45b6fe;
  }
}

html.perf-lite .is-shop-scene__frame {
  box-shadow: 0 12px 32px rgba(46, 49, 146, 0.25);
}
