/* Option 1C: retain the full showroom, give its browsing controls deliberate agency. */
body.showroom-full-polish-page .showroom-selector-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

body.showroom-full-polish-page [data-showroom-product-card="scroll"] { order: 1; }
body.showroom-full-polish-page [data-showroom-product-card="lightbox"] { order: 2; }
body.showroom-full-polish-page [data-showroom-product-card="edge"] { order: 3; }

body.showroom-full-polish-page .showroom-selector-card {
  min-width: 0;
  height: 100%;
}

body.showroom-full-polish-page .showroom-selector-card:focus-visible,
body.showroom-full-polish-page .showroom-hero-card:focus-visible,
body.showroom-full-polish-page .home-v2-reel-card:focus-visible {
  outline: 3px solid #8f69e8;
  outline-offset: 4px;
}

body.showroom-full-polish-page .showroom-selector-card:active,
body.showroom-full-polish-page .showroom-hero-card:active {
  transform: translateY(-2px) scale(0.99);
}

/* Preserve the full light box composition instead of cropping every image into a square. */
body.showroom-full-polish-page .showroom-lightbox-feature .showroom-feature-media {
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: end;
  width: min(100%, 44rem);
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #050408;
}

body.showroom-full-polish-page .showroom-lightbox-feature .showroom-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: var(--image-object-x, 50%) var(--image-object-y, 50%);
  border-radius: 0;
}

body.showroom-full-polish-page .showroom-reel-actions {
  display: flex;
  align-items: flex-end;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.75rem;
}

body.showroom-full-polish-page .showroom-reel-controls[hidden] {
  display: none !important;
}

body.showroom-full-polish-page .showroom-reel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

body.showroom-full-polish-page .showroom-reel-controls [data-reel-status] {
  min-width: 8.9rem;
  color: rgba(34, 27, 43, 0.68);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-align: right;
}

body.showroom-full-polish-page .showroom-reel-controls button {
  appearance: none;
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(91, 55, 143, 0.22);
  border-radius: 50%;
  background: #fff;
  color: #4f2f78;
  box-shadow: 0 9px 24px rgba(52, 34, 79, 0.1);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

body.showroom-full-polish-page .showroom-reel-controls button svg {
  width: 1.15rem;
  height: 1.15rem;
}

body.showroom-full-polish-page .showroom-reel-controls button:hover:not(:disabled) {
  border-color: rgba(111, 47, 189, 0.5);
  background: #efe7fb;
  color: #3e1f66;
  transform: translateY(-2px);
}

body.showroom-full-polish-page .showroom-reel-controls button:active:not(:disabled) {
  transform: scale(0.94);
}

body.showroom-full-polish-page .showroom-reel-controls button:focus-visible {
  outline: 3px solid #8f69e8;
  outline-offset: 3px;
}

body.showroom-full-polish-page .showroom-reel-controls button:disabled {
  opacity: 0.34;
  cursor: default;
  box-shadow: none;
}

body.showroom-full-polish-page .home-v2-reel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: max(1rem, calc((100vw - 1320px) / 2));
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(91, 55, 143, 0.28) transparent;
  scrollbar-width: thin;
}

/* Legacy edge fades move with a scrollable viewport; controls now provide that affordance. */
body.showroom-full-polish-page .showroom-reel-section .home-v2-reel-viewport::before,
body.showroom-full-polish-page .showroom-reel-section .home-v2-reel-viewport::after {
  content: none;
  display: none;
  width: 0;
  background: none;
}

body.showroom-full-polish-page .home-v2-reel-viewport:focus-visible {
  outline: 3px solid rgba(143, 105, 232, 0.72);
  outline-offset: -3px;
}

body.showroom-full-polish-page .home-v2-reel-viewport::-webkit-scrollbar {
  height: 0.5rem;
}

body.showroom-full-polish-page .home-v2-reel-viewport::-webkit-scrollbar-track {
  background: transparent;
}

body.showroom-full-polish-page .home-v2-reel-viewport::-webkit-scrollbar-thumb {
  border: 2px solid #f4f1eb;
  border-radius: 999px;
  background: rgba(91, 55, 143, 0.3);
}

body.showroom-full-polish-page .home-v2-reel-track[data-reel-user-controlled] {
  width: max-content;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - 1320px) / 2));
  animation: none !important;
  transform: none !important;
  will-change: auto;
}

body.showroom-full-polish-page .home-v2-reel-track[data-reel-user-controlled] .home-v2-reel-card {
  scroll-snap-align: start;
}

body.showroom-full-polish-page .home-v2-reel-track[data-reel-user-controlled] .home-v2-reel-card[aria-hidden="true"] {
  display: none !important;
}

body.showroom-full-polish-page .home-v2-reel-card:focus-visible .home-v2-reel-card-label {
  opacity: 1;
  transform: translateY(0);
}

body.showroom-full-polish-page .home-v2-reel-card:focus-visible .home-v2-reel-card-glow {
  opacity: 0.92;
}

@media (max-width: 1040px) {
  body.showroom-full-polish-page .showroom-selector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.showroom-full-polish-page .showroom-lightbox-feature .showroom-feature-media {
    justify-self: center;
    width: min(100%, 52rem);
  }
}

@media (max-width: 720px) {
  body.showroom-full-polish-page .home-v2-reel-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body.showroom-full-polish-page .showroom-reel-actions {
    width: 100%;
    align-items: stretch;
    gap: 0.65rem;
  }

  body.showroom-full-polish-page .showroom-reel-controls {
    width: 100%;
    justify-content: flex-start;
  }

  body.showroom-full-polish-page .showroom-reel-controls [data-reel-status] {
    min-width: 0;
    margin-right: auto;
    text-align: left;
  }

  body.showroom-full-polish-page .home-v2-reel-viewport {
    scroll-padding-inline: 0.75rem;
    scroll-snap-type: x mandatory;
  }

  body.showroom-full-polish-page .home-v2-reel-track[data-reel-user-controlled] {
    padding-inline: 0.75rem;
  }
}

@media (max-width: 620px) {
  body.showroom-full-polish-page .showroom-selector-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.showroom-full-polish-page .showroom-selector-card,
  body.showroom-full-polish-page .showroom-hero-card,
  body.showroom-full-polish-page .showroom-reel-controls button,
  body.showroom-full-polish-page .home-v2-reel-card,
  body.showroom-full-polish-page .home-v2-reel-card img {
    transition: none !important;
  }

  body.showroom-full-polish-page .home-v2-reel-viewport {
    scroll-behavior: auto;
  }
}
