/* INCASE STUDIOS — Custom Styling
   Refined Luxury Brushed Architectural Grey (#E5E5E2 / #E2E2DF)
   A4 & A3 Formats, Clean Single Poster Images, Glitch-Free Studio Hover */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-studio-grey: #e5e5e2;
  --border-arch: #d4d4d0;
  --card-white: #fafafa;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-studio-grey);
  color: #09090b;
  overflow-x: hidden;
  letter-spacing: -0.015em;
  position: relative;
}

/* Subtle, fine tactile studio grain/noise texture (opacity: 0.035) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Sharp UI overrides */
.btn-sharp, button, input, select, .sharp-box {
  border-radius: 2px;
}

/* ISO A4 & A3 Vertical Portrait Aspect Ratio (210/297) */
.portrait-spec {
  aspect-ratio: 210 / 297 !important;
}

/* Clean Single Poster Images inside the frame: 100% width, height, object-fit: cover */
.poster-frame-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0px !important;
}

/* Realistic Frame Container with Sharp 90-degree Corners */
.poster-frame-container {
  border-radius: 0px !important;
  box-shadow: 0 22px 45px -12px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* 1. Unframed (Hardback Envelope) — 0px Border, Razor-Thin Paper Edge, Flat Standoff */
.frame-unframed, .frame-none {
  border: 0px solid transparent !important;
  border-radius: 0px !important;
  outline: none !important;
  box-shadow: 
    0 10px 24px -6px rgba(0, 0, 0, 0.28),
    0 2px 6px -2px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.08) !important;
}

/* 2. Black Plastic Frame — 10px solid #111111 with 1px inner highlight bevel on cards/marquee */
.frame-black-plastic, .frame-plastic {
  border: 10px solid #111111 !important;
  border-radius: 0px !important;
  outline: none !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 16px 36px -8px rgba(0, 0, 0, 0.4) !important;
}

/* 3. Black Aluminium Frame — 10px solid #111111 with 1px inner highlight bevel on cards/marquee */
.frame-black-aluminium, .frame-aluminium {
  border: 10px solid #111111 !important;
  border-radius: 0px !important;
  outline: none !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 16px 36px -8px rgba(0, 0, 0, 0.45) !important;
}

/* Fallback for black class */
.frame-black {
  border: 10px solid #111111 !important;
  border-radius: 0px !important;
  outline: none !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 16px 36px -8px rgba(0, 0, 0, 0.4) !important;
}

/* Product Card Mat & Frame (18px Gallery Mat Backdrop #EBEAE6 with 10px Bezel) */
.product-card-mat {
  background: #EBEAE6;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #d4d4d0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

.product-card-frame {
  border: 10px solid #111111 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 12px 28px -6px rgba(0, 0, 0, 0.35) !important;
  background: #000;
  width: 100%;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

/* 12px Substantial Frame Borders strictly in Modals & Studio Visualizer */
#productModal .frame-black-plastic,
#productModal .frame-plastic,
#roomStudioModal .frame-black-plastic,
#roomStudioModal .frame-plastic,
#studioFrameWrapper .frame-black-plastic,
#studioFrameWrapper .frame-plastic,
.modal-frame-preview .frame-black-plastic,
.studio-framed-wall-art.frame-black-plastic,
.studio-framed-wall-art .frame-black-plastic,
.prism-face-front.frame-black-plastic {
  border: 12px solid #09090b !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 25px 50px -12px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

#productModal .frame-black-aluminium,
#productModal .frame-aluminium,
#roomStudioModal .frame-black-aluminium,
#roomStudioModal .frame-aluminium,
#studioFrameWrapper .frame-black-aluminium,
#studioFrameWrapper .frame-aluminium,
.modal-frame-preview .frame-black-aluminium,
.studio-framed-wall-art.frame-black-aluminium,
.studio-framed-wall-art .frame-black-aluminium,
.prism-face-front.frame-black-aluminium {
  border: 12px solid #09090b !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 25px 50px -12px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

/* 3-Piece Triptych Gallery Set Container */
.triptych-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.triptych-panel {
  flex: 1;
  aspect-ratio: 210 / 297;
  position: relative;
  overflow: hidden;
}

/* ===================================================
   CLEAN, GLITCH-FREE STUDIO PRODUCT CARD HOVER
   Smooth vertical lift, deep shadow, subtle image scale
   No 3D rotation, no diagonal white triangle clipping
   =================================================== */
.product-card {
  background-color: var(--card-white) !important;
  border: 1px solid var(--border-arch) !important;
  border-radius: 0px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: #09090b !important;
  box-shadow: 
    0 22px 38px -10px rgba(0, 0, 0, 0.22),
    0 10px 18px -6px rgba(0, 0, 0, 0.12);
}

.product-card .poster-img {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .poster-img {
  transform: scale(1.025);
}

/* Card details box (crisp gallery white with thin architectural border) */
.product-card-details {
  background-color: var(--card-white);
  border-top: 1px solid var(--border-arch);
}

/* ===================================================
   UNCLIPPED VELOCITY MARQUEE (DARK OBSIDIAN #0B0B0C)
   Hover with scale(1.06) translateY(-8px), deep shadow & zero clipping
   =================================================== */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #0b0b0c !important;
  border-top: 1px solid #1f1f23;
  border-bottom: 1px solid #1f1f23;
  padding: 0;
  user-select: none;
}

.marquee-gradient-left,
.marquee-gradient-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 20;
  pointer-events: none;
}

.marquee-gradient-left {
  left: 0;
  background: linear-gradient(90deg, #0b0b0c 0%, rgba(11, 11, 12, 0) 100%);
}

.marquee-gradient-right {
  right: 0;
  background: linear-gradient(-90deg, #0b0b0c 0%, rgba(11, 11, 12, 0) 100%);
}

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marqueeGlider 38s linear infinite;
  will-change: transform;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  align-items: center;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeGlider {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-item {
  width: 150px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), z-index 0.28s ease;
  will-change: transform;
  position: relative;
  z-index: 1;
}

.marquee-item:hover {
  transform: translateY(-8px) scale(1.06) !important;
  z-index: 30;
}

.marquee-item:hover .poster-frame-container {
  box-shadow: 
    0 32px 64px -12px rgba(0, 0, 0, 0.95),
    0 14px 28px -6px rgba(0, 0, 0, 0.7) !important;
}

@media (min-width: 640px) {
  .marquee-item {
    width: 175px;
  }
}

/* ===================================================
   HERO DUAL-FRAME FLOATING SHOWCASE & PARALLAX
   =================================================== */
.hero-stage-container {
  perspective: 1200px;
  position: relative;
}

.hero-frame-front {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  will-change: transform;
  transform: translate(0, 0) rotate(-1.5deg);
}

.hero-frame-back {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  will-change: transform;
  transform: translate(0, 0) rotate(3.5deg);
}

/* ===================================================
   PHOTOREALISTIC ROOM VISUALIZER (FRONT-FACING WALL STAGE)
   Upper 70%: Flat Unobstructed Architectural Wall with Gallery Spotlight
   Lower 30%: Strictly Anchored Orthogonal Front-Facing Furniture
   =================================================== */
#studioWall {
  position: relative;
  background-color: #EAE8E3;
  overflow: hidden;
  transition: background-color 0.35s ease;
  user-select: none;
}

/* Plaster / Fine Venetian Plaster Micro-Texture Overlay */
.studio-wall-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 2;
}

/* Realistic Overhead Museum Gallery Spotlight Cone (Soft-Light blend) */
.gallery-spotlight-cone {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 75%;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.12) 45%, rgba(0, 0, 0, 0.25) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.3s ease;
}

.room-ambient-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 32%,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(0, 0, 0, 0.05) 55%,
    rgba(0, 0, 0, 0.32) 100%
  );
  mix-blend-mode: soft-light;
  z-index: 3;
}

/* Architectural Skirting Board Separating Wall and Floor (Strictly at bottom: 18%) */
.studio-baseboard {
  position: absolute;
  bottom: 18%;
  left: 0;
  right: 0;
  height: 7px;
  background: linear-gradient(180deg, #edeae5 0%, #cdc7bd 40%, #8f887b 90%, #524d43 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 5;
  pointer-events: none;
}

/* Architectural French Hardwood Oak Floor Zone (Bottom 18% - Unified Interior Scene) */
.studio-floor-zone {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 18%;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 118px,
      rgba(0, 0, 0, 0.22) 118px,
      rgba(0, 0, 0, 0.22) 120px
    ),
    linear-gradient(180deg, #3d3228 0%, #2e241c 30%, #201812 70%, #140f0b 100%);
  box-shadow: 
    inset 0 12px 24px -6px rgba(0, 0, 0, 0.7),
    inset 0 2px 4px rgba(255, 255, 255, 0.05);
  z-index: 6;
  pointer-events: none;
}

/* Lower Furniture Silhouette Zone (Anchored to Bottom 0%, resting on 18% floor and cleanly overlapping skirting board) */
.studio-furniture-zone {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28%;
  pointer-events: none;
  z-index: 15;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.studio-furniture-img {
  width: 100%;
  max-width: 960px;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  filter: drop-shadow(0 -4px 14px rgba(0, 0, 0, 0.28));
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Framed art hanging on room wall (Seamless backdrop, zero inner box-shadow square) */
.studio-framed-wall-art {
  box-shadow: none !important;
  background: transparent !important;
  position: relative;
  z-index: 25;
}

/* ===================================================
   4 DISTINCT ARCHITECTURAL ROOM ENVIRONMENTS
   Wall color is 100% dynamic and controllable by user in ALL 4 rooms!
   =================================================== */
.room-living-room,
.room-bedroom,
.room-studio-office,
.room-gallery-loft {
  /* Dynamic wall background is applied via style.backgroundColor directly */
}

/* ===================================================
   TRUE 360° FRAME ROTATION ENGINE (6-SIDED 3D CSS PRISM)
   Consumer-Friendly • Zero-Clutter • Real Workshop Hardware
   =================================================== */

.prism-3d-viewport {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.prism-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.prism-3d-stage.no-transition {
  transition: none !important;
}

/* Front Face (0deg): 9mm Slim Bezel Moulding + Full-Bleed Artwork + Acrylic Reflection */
.prism-face-front {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: translateZ(6px);
  transform-style: preserve-3d !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  z-index: 2;
  box-sizing: border-box !important;
  overflow: hidden !important;
  box-shadow: 0 22px 45px -12px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

/* Image inside Front Face: 100% Flush, Zero Air Gap */
.prism-face-front img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Shatterproof Acrylic Glazing Sheen Overlay */
.prism-glazing-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.06) 24%, transparent 48%, rgba(255, 255, 255, 0.14) 75%, rgba(255, 255, 255, 0.02) 100%);
  mix-blend-mode: soft-light;
  z-index: 10;
  transition: opacity 0.3s ease;
}

/* ===================================================
   PROCEDURAL 3D REAR BACKBOARD MODEL (A4 & A3)
   100% Solid Black Rim (#111111) Flush to Edge (Zero White Gap)
   Clean Warm E1 MDF Board Surface (No Barcodes, No Stickers)
   Realistic Brushed Metallic Silver Holding Clips & Hardware
   =================================================== */
.prism-face-back {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: rotateY(180deg) translateZ(7px);
  transform-style: preserve-3d !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  background: #111111 !important;
  border: none !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  z-index: 1;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

.procedural-backboard-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #111111;
  padding: 6px;
  box-sizing: border-box;
  overflow: hidden;
}

.mdf-board-surface {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 45%, #A37549 0%, #9A6B40 55%, #8A5C33 100%);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  overflow: hidden;
}

.mdf-wood-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background: repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.08) 0px, rgba(255, 255, 255, 0.06) 2px, transparent 4px, transparent 7px);
}

/* Brushed Metallic Silver Retention Clips (linear-gradient(135deg, #E4E4E7, #71717A, #D4D4D8)) */
.mdf-silver-clip {
  position: absolute;
  background: linear-gradient(135deg, #E4E4E7 0%, #71717A 50%, #D4D4D8 100%);
  border: 1px solid #52525B;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 6;
}
.mdf-silver-clip.clip-pos-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 9px;
  border-radius: 0 0 2px 2px;
}
.mdf-silver-clip.clip-pos-bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 9px;
  border-radius: 2px 2px 0 0;
}
.mdf-silver-clip.clip-pos-left {
  left: 0;
  width: 9px;
  height: 20px;
  border-radius: 0 2px 2px 0;
}
.mdf-silver-clip.clip-pos-right {
  right: 0;
  width: 9px;
  height: 20px;
  border-radius: 2px 0 0 2px;
}

/* Sawtooth Wall Mounts on Back */
.backboard-sawtooth {
  position: absolute;
  background: linear-gradient(180deg, #c4c4c8 0%, #787880 100%);
  border: 1px solid #4a4a50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  border-radius: 1px;
  z-index: 5;
}
.backboard-sawtooth.sawtooth-top {
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 7px;
}
.backboard-sawtooth.sawtooth-side {
  left: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  width: 24px;
  height: 7px;
}

/* True Wide Die-Cut A4 Kickstand Strut (Matching Real A4 Backboard Photo) */
.a4-mdf-strut-assembly {
  position: absolute;
  top: 38%;
  left: 44%;
  width: 24%;
  height: 64%;
  transform-origin: top center;
  transform: rotate(28deg);
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.strut-metal-hinge {
  width: 20px;
  height: 9px;
  background: linear-gradient(180deg, #2a2a2e 0%, #111114 100%);
  border: 1px solid #000000;
  border-radius: 1px 1px 0 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  z-index: 5;
  margin-bottom: -1px;
}

.strut-mdf-body {
  width: 100%;
  height: 100%;
  background: linear-gradient(105deg, #9C6D43 0%, #B07D4F 40%, #8E6038 100%);
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 1px;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.45);
  position: relative;
  box-sizing: border-box;
}

/* A3 Scale Comparison Dashed Outline (Shows when A4 is selected) */
.a3-scale-dashed-outline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 141.4%;
  height: 141.4%;
  border: 2px dashed rgba(17, 17, 20, 0.45);
  border-radius: 0px;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.a3-scale-dashed-outline::before {
  content: "A3 STATEMENT SIZE (2× LARGER AREA)";
  position: absolute;
  top: -12px;
  background: #111114;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Base Extruded Side Walls (Zero Middle Seam • Solid Enclosure) */
.prism-wall-left,
.prism-wall-right,
.prism-wall-top,
.prism-wall-bottom {
  position: absolute !important;
  pointer-events: none;
  box-sizing: border-box !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  border: none !important;
}
.prism-wall-left,
.prism-wall-right {
  top: 0 !important;
  bottom: 0 !important;
}
.prism-wall-top,
.prism-wall-bottom {
  left: 0 !important;
  right: 0 !important;
}

/* ===================================================
   BLACK PLASTIC FRAME: 12mm Standard Side Depth (12px 3D Extrusion)
   One solid, smooth matte-black side bar with zero middle seam
   =================================================== */
.prism-depth-plastic .prism-face-front {
  transform: translateZ(6px) !important;
}
.prism-depth-plastic .prism-face-back {
  transform: rotateY(180deg) translateZ(6px) !important;
}
.prism-depth-plastic .prism-wall-left,
.prism-depth-plastic .prism-wall-right {
  width: 12px !important;
}
.prism-depth-plastic .prism-wall-right {
  right: -6px !important;
  transform-origin: center center;
  transform: rotateY(90deg);
}
.prism-depth-plastic .prism-wall-left {
  left: -6px !important;
  transform-origin: center center;
  transform: rotateY(-90deg);
}
.prism-depth-plastic .prism-wall-top,
.prism-depth-plastic .prism-wall-bottom {
  height: 12px !important;
}
.prism-depth-plastic .prism-wall-top {
  top: -6px !important;
  transform-origin: center center;
  transform: rotateX(90deg);
}
.prism-depth-plastic .prism-wall-bottom {
  bottom: -6px !important;
  transform-origin: center center;
  transform: rotateX(-90deg);
}
.prism-wall-plastic {
  background: #141416 !important;
  border: none !important;
  box-shadow: none !important;
}

/* ===================================================
   BLACK ALUMINIUM FRAME: Exactly 1.5× Plastic Width (18px 3D Extrusion)
   ★ Brushed anodized black metal with realistic metallic sheen & zero middle seam
   =================================================== */
.prism-depth-aluminium .prism-face-front {
  transform: translateZ(9px) !important;
}
.prism-depth-aluminium .prism-face-back {
  transform: rotateY(180deg) translateZ(9px) !important;
}
.prism-depth-aluminium .prism-wall-left,
.prism-depth-aluminium .prism-wall-right {
  width: 18px !important;
}
.prism-depth-aluminium .prism-wall-right {
  right: -9px !important;
  transform-origin: center center;
  transform: rotateY(90deg);
}
.prism-depth-aluminium .prism-wall-left {
  left: -9px !important;
  transform-origin: center center;
  transform: rotateY(-90deg);
}
.prism-depth-aluminium .prism-wall-top,
.prism-depth-aluminium .prism-wall-bottom {
  height: 18px !important;
}
.prism-depth-aluminium .prism-wall-top {
  top: -9px !important;
  transform-origin: center center;
  transform: rotateX(90deg);
}
.prism-depth-aluminium .prism-wall-bottom {
  bottom: -9px !important;
  transform-origin: center center;
  transform: rotateX(-90deg);
}
.prism-wall-aluminium {
  background: linear-gradient(180deg, #24252a 0%, #3a3b44 25%, #1e1f24 55%, #32333b 80%, #202126 100%) !important;
  border: none !important;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.22) !important;
}

/* ===================================================
   FLOATING SIDE-PROFILE POINTER BADGES
   Cleanly positioned below the top navigation bar (top: 70px) so it is never clipped
   =================================================== */
.side-profile-pointer-badge {
  position: absolute;
  top: 70px !important;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 9999px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.side-profile-badge-plastic {
  background: rgba(18, 18, 20, 0.95);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.side-profile-badge-alum {
  background: rgba(6, 78, 59, 0.96);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.6);
}
.side-profile-pointer-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* ===================================================
   CATEGORY FILTER BAR (Clean 2-Tier Luxury Layout)
   =================================================== */
.category-filter-bar {
  max-width: 1400px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  background: #111113;
  border-radius: 2px;
  border: 1px solid #27272A;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.category-scroll-track {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  align-items: center;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch;
}

.category-scroll-track::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Expanded multi-row grid mode */
.category-scroll-track.grid-mode {
  flex-wrap: wrap !important;
  overflow-x: visible !important;
  gap: 8px !important;
}

.category-tab-btn {
  height: 38px;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  border: 1px solid #27272A;
  background: #18181B;
  color: #A1A1AA;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.category-tab-btn:hover {
  background: #27272A;
  color: #FFFFFF;
  border-color: #3F3F46;
}

.category-tab-btn.category-tab-active,
.category-tab-active {
  background-color: #FFFFFF !important;
  color: #09090B !important;
  border-color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.category-tab-btn.category-tab-custom {
  background: #F59E0B;
  color: #09090B;
  border-color: #D97706;
  font-weight: 800;
}

.category-tab-btn.category-tab-custom:hover {
  background: #FBBF24;
  color: #000000;
}

.category-tab-btn.category-tab-custom.category-tab-active {
  background-color: #FFFFFF !important;
  color: #09090B !important;
  border-color: #FFFFFF !important;
}

/* ===================================================
   UNIFIED STICKY HEADER & MOBILE SCROLL COLLAPSE
   =================================================== */
.app-global-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.announcement-bar {
  max-height: 48px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, padding 0.35s ease;
}
.app-global-header.scrolled .announcement-bar {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  pointer-events: none;
}

/* Smooth Fade-Up & Scale-In Reveal Animations */
.reveal-card {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-card.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===================================================
   TOP-DOWN UNBOXING & ARCHITECTURAL BREAKDOWN MODAL
   Clean, Consumer-Friendly 5-Layer Precision Spec
   =================================================== */
.top-down-layer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #141418;
  border: 1px solid #27272e;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.top-down-layer-row:hover {
  background: #191920;
  border-color: #3f3f4a;
  transform: translateX(3px);
}
.top-down-layer-num {
  font-family: monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* ===================================================
   STREAMLINED CONSUMER 3D INSPECTION CONTROLS
   Clean, Apple/Rockstar-level visual clarity
   =================================================== */

.studio-consumer-pill {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 13, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  z-index: 30;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.studio-controls-bar-clean {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 13, 15, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  padding: 8px 14px;
  max-width: 520px;
  width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.clean-view-btn {
  padding: 5px 10px;
  background: #1c1c22;
  border: 1px solid #32323a;
  border-radius: 6px;
  color: #d4d4d8;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.clean-view-btn:hover {
  background: #272730;
  color: #ffffff;
  border-color: #52525e;
}
.clean-view-btn.active {
  background: #ffffff !important;
  color: #09090b !important;
  border-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.25);
}

.hud-leader-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 360 Rotation Controls Bar */
.prism-controls-bar {
  background: rgba(13, 13, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}

/* ===================================================
   PROFILE ZOOM: 17MM SIDE DEPTH & REAL MACRO INSPECTION
   =================================================== */
.profile-zoom-box {
  background: #0d0d0f;
  border: 1px solid #27272a;
}
.profile-zoom-indicator {
  font-family: monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}


/* Sale Strikethrough Badge */
.sale-pill {
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
}

/* Scroll Reveal Animation */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   SECTION 3: ROCKSTAR STICKY SCROLL PILLARS (#111114)
   Deep Studio Charcoal with High-Contrast Indicator
   =================================================== */
.sticky-pillar-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.sticky-pillar-card:hover {
  transform: translateY(-4px);
  border-color: #3f3f46 !important;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}

/* Interactive Pillar Left Navigation Bar */
.pillar-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background-color: #18181c;
  border: 1px solid #2e2e34;
  border-left: 4px solid transparent;
  color: #d4d4d8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.pillar-nav-btn:hover {
  background-color: #222228;
  color: #ffffff;
  border-color: #3f3f46;
}

/* Active Glowing Left Indicator Bar */
.pillar-nav-btn.active {
  background-color: #24242c !important;
  color: #ffffff !important;
  border-color: #3f3f46 !important;
  border-left: 4px solid #e11d48 !important;
  box-shadow: 
    inset 0 0 20px -5px rgba(225, 29, 72, 0.15),
    0 8px 24px -6px rgba(0, 0, 0, 0.6);
}

.pillar-nav-btn.active .pillar-num {
  color: #e11d48 !important;
}

/* Primary Action Buttons with Sliding Right Arrow */
.btn-primary-action {
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-action:hover {
  transform: translateY(-1px);
}

.btn-primary-action:hover .arrow-slide {
  transform: translateX(4px);
}

.arrow-slide {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================================
   BEHIND-THE-SCENES PACKING STUDIO VIDEO PLAYER (9:16)
   =================================================== */
.studio-video-card {
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 
    0 0 50px -10px rgba(255, 255, 255, 0.07),
    0 35px 70px -15px rgba(0, 0, 0, 0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: #000;
}

.studio-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 0 65px -8px rgba(255, 255, 255, 0.12),
    0 40px 85px -15px rgba(0, 0, 0, 0.98);
}

.studio-video-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===================================================
   ROOM VISUALIZER TOP STAGE CONTROLS & ZOOM CONTROLS
   =================================================== */
.studio-top-controls-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 14px 20px !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 30 !important;
  pointer-events: none !important;
}

.studio-top-controls-bar .studio-zoom-floating-pill {
  position: static !important;
  top: auto !important;
  right: auto !important;
}

.studio-zoom-floating-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  background: rgba(18, 18, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  padding: 3px 5px;
  gap: 3px;
  z-index: 30;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.studio-zoom-pill-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.18s ease;
}

.studio-zoom-pill-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.studio-zoom-pill-btn:active {
  transform: scale(0.95);
}

.studio-zoom-pill-label {
  padding: 0 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  color: #34d399;
  background: transparent;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color 0.18s ease;
}

.studio-zoom-pill-label:hover {
  color: #6ee7b7;
}

/* ===================================================
   MOBILE LAYOUT OVERHAUL (@media (max-width: 768px))
   Clean 64px single-row navbar, full-width hero CTAs,
   2-column catalog grid, and 100dvh modal sheets
   =================================================== */
@media (max-width: 768px) {
  /* 1. Mobile Navbar Header */
  .main-nav-header {
    height: 64px !important;
  }
  .main-nav-inner {
    height: 64px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .nav-brand-container {
    height: 36px !important;
    padding: 3px 8px !important;
  }
  .nav-brand-img {
    height: 22px !important;
    max-width: 105px !important;
  }
  .nav-brand-title {
    font-size: 15px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }
  .nav-brand-sub {
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    margin-top: 2px !important;
  }
  .nav-admin-upload-btn {
    display: none !important;
  }

  /* 2. Full-Width Stacked Hero Buttons */
  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
  }
  .hero-cta-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* 3. 2-Column Mobile Catalog Grid */
  #posterGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .product-card {
    padding: 0 !important;
  }
  .product-card-mat {
    padding: 10px !important;
  }
  .product-card-frame {
    border-width: 8px !important;
  }

  /* 4. Full-Screen 100dvh Lock on Modals & 38dvh / calc(62dvh - 52px) Locked Split on Mobile */
  #productModal,
  #roomStudioModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 2147483647 !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }
  #roomStudioModal {
    background: #0a0a0c !important;
  }
  .modal-top-navbar {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    flex-shrink: 0 !important;
    background: #0a0a0c !important;
    border-bottom: 1px solid #27272a !important;
  }
  .modal-preview-stage-pane {
    height: 38dvh !important;
    min-height: 38dvh !important;
    max-height: 38dvh !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    padding: 4px 8px 6px 8px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #F2F0EA !important;
    position: relative !important;
    box-sizing: border-box !important;
  }
  #modalPreviewContainer {
    width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #modalPreviewContainer .prism-3d-viewport {
    max-height: 26dvh !important;
    height: 26dvh !important;
    width: auto !important;
    aspect-ratio: 210 / 297 !important;
  }
  /* Hide oversized dashed A3 box on mobile to prevent clipping off screen edges */
  .a3-scale-dashed-outline {
    display: none !important;
  }
  .modal-options-pane {
    height: calc(62dvh - 52px) !important;
    min-height: calc(62dvh - 52px) !important;
    max-height: calc(62dvh - 52px) !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding: 12px 14px 18px 14px !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
  }
  .modal-sticky-checkout {
    position: sticky !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    padding: 10px 12px !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.14) !important;
    border-top: 1px solid #e4e4e7 !important;
    z-index: 25 !important;
  }
}

/* Hero Frameless Posters: Slim 9mm Scale (6px solid #111111 with 1px inner highlight bevel) */
.hero-frameless-poster {
  border: 6px solid #111111 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
  box-sizing: border-box !important;
}

/* ===================================================
   DEDICATED 0.4MM UNFRAMED 3D PAPER MODEL
   Front: 200gsm glossy print face (0deg)
   Edges: 1px razor-thin paper edge (90deg)
   Rear: Crisp white photographic paper backing (180deg)
   With Rigid Hardback Envelope Guarantee Badge
   =================================================== */
.prism-face-paper-front {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: translateZ(1px) !important;
  transform-style: preserve-3d !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  z-index: 2;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border: 0px solid transparent !important;
  box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.32), 0 2px 6px -2px rgba(0, 0, 0, 0.18) !important;
}

.prism-face-paper-back {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: rotateY(180deg) translateZ(1px) !important;
  transform-style: preserve-3d !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  background: #ffffff !important;
  background-image: radial-gradient(circle at 50% 50%, #ffffff 0%, #f7f7f8 100%) !important;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.06), 0 14px 32px -6px rgba(0, 0, 0, 0.32) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  border: 1px solid #e4e4e7 !important;
}

.prism-paper-edge-left,
.prism-paper-edge-right {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 2px !important;
  background: #f4f4f5 !important;
  border-left: 0.5px solid #d4d4d8 !important;
  border-right: 0.5px solid #d4d4d8 !important;
  pointer-events: none;
}
.prism-paper-edge-right {
  right: -1px !important;
  transform-origin: center center;
  transform: rotateY(90deg);
}
.prism-paper-edge-left {
  left: -1px !important;
  transform-origin: center center;
  transform: rotateY(-90deg);
}

.paper-envelope-guarantee {
  border: 1.5px dashed #a1a1aa;
  padding: 10px 14px;
  background: #fafafa;
  border-radius: 2px;
  max-width: 90%;
}

/* ===================================================
   CRISP FULL-BLEED STUDIO BACKDROP (Zero Blur Guarantee)
   =================================================== */
.studio-backdrop {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  filter: none !important;
}

.studio-backdrop.studio-bokeh-active {
  filter: none !important;
}

/* Subtle Architectural Side Props */
.studio-side-props {
  transition: opacity 0.35s ease;
}
.studio-side-props.props-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.studio-prop-sconce {
  opacity: 0.78;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
  transition: opacity 0.3s ease;
}
.studio-prop-plant {
  opacity: 0.82;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
  transition: opacity 0.3s ease;
}

/* ===================================================
   ARCHITECTURAL DIMENSION LINES
   A4: 21 × 29.7 cm  |  A3: 29.7 × 42 cm
   =================================================== */
.studio-dimension-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  pointer-events: none;
  opacity: 0.88;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.studio-dimension-bar.dimension-hidden {
  opacity: 0 !important;
}

.studio-dimension-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.38);
  position: relative;
}
.studio-dimension-line::before,
.studio-dimension-line::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: rgba(255, 255, 255, 0.55);
}
.studio-dimension-line::before { left: 0; }
.studio-dimension-line::after { right: 0; }

.studio-dimension-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  color: #34d399;
  background: rgba(13, 13, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ===================================================
   3-PIECE ISLAMIC SETS SINGLE-FRAME GLIDE INSPECTION
   Outer frames fade out smoothly on rotation > 5°
   =================================================== */
.triptych-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.triptych-panel {
  flex: 1;
  aspect-ratio: 210 / 297;
  position: relative;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.triptych-grid.inspecting-single .triptych-outer-left,
.triptych-grid.inspecting-single .triptych-outer-right {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.85);
}
.triptych-grid.inspecting-single .triptych-center {
  transform: scale(1.15);
  z-index: 10;
}

/* Clean View Preset Buttons without Brackets */
.clean-modal-btn {
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  cursor: pointer;
}
.clean-modal-btn.active {
  background: #ffffff !important;
  color: #09090b !important;
  border-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.25);
}

/* ===================================================
   FULL-SCREEN 100VW x 100DVH MODAL LOCK (z-index: 2147483647)
   Desktop & Mobile: Zero background page visible or scrollable
   =================================================== */
#productModal,
#roomStudioModal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  z-index: 2147483647 !important;
  background: #ffffff !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

#roomStudioModal {
  background: #0a0a0c !important;
}

.modal-top-navbar {
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  background: #0a0a0c;
  color: #ffffff;
  border-bottom: 1px solid #27272a;
}

/* Luxury Studio Visualizer & Configurator (55% Left / 45% Right) */
.studio-stage-55 {
  width: 55%;
  flex-shrink: 0;
  position: relative;
  background-color: #F2F0EA;
}

.studio-panel-45 {
  width: 45%;
  min-width: 460px;
  background: #ffffff;
}

@media (max-width: 1024px) {
  .studio-stage-55 {
    width: 100% !important;
    height: 44vh !important;
    min-height: 280px !important;
  }
  .studio-panel-45 {
    width: 100% !important;
    min-width: 100% !important;
    height: 56vh !important;
    flex: 1 !important;
  }
}

/* Horizontal Snap Scroll Container for Mobile Hero Posters */
.mobile-poster-snap-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 1px 12px 1px;
}
.mobile-poster-snap-track::-webkit-scrollbar {
  display: none;
}
.mobile-poster-snap-item {
  scroll-snap-align: center;
  flex: 0 0 72%;
  max-width: 260px;
}

/* ===================================================
   RESPONSIVE OVERRIDES: CATEGORY FILTER & STUDIO CONTROLS
   =================================================== */
@media (max-width: 768px) {
  .category-filter-bar {
    padding: 12px 14px !important;
    margin-bottom: 20px !important;
  }
  .category-filter-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding-bottom: 10px !important;
  }
  .category-filter-header > div:first-child {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  .category-filter-header > div:last-child {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-left: 0 !important;
    gap: 8px !important;
  }
  .category-filter-header > div:last-child #toggleCategoryGridBtn {
    flex: 1 !important;
    justify-content: center !important;
  }
  .category-filter-header > div:last-child > div {
    flex: 1 !important;
    justify-content: center !important;
  }
  .category-filter-header > div:last-child select {
    max-width: 130px !important;
  }
  .category-tab-btn {
    height: 36px;
    padding: 0 13px;
    font-size: 10.5px;
  }
  .studio-top-controls-bar {
    padding: 10px 12px !important;
  }
  .studio-top-controls-bar #studioColorDotsBar {
    padding: 4px 8px !important;
    gap: 6px !important;
  }
  .studio-top-controls-bar #studioColorDotsBar button {
    width: 17px !important;
    height: 17px !important;
  }
  .studio-top-controls-bar #studioViewOnWallBtn {
    padding: 4px 9px !important;
    font-size: 9px !important;
  }
  .studio-top-controls-bar .studio-zoom-floating-pill {
    padding: 2px 4px !important;
    gap: 2px !important;
  }
  .studio-top-controls-bar .studio-zoom-pill-btn {
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
  }
  .studio-top-controls-bar .studio-zoom-pill-label {
    font-size: 10px !important;
    padding: 0 4px !important;
  }
}

