/* ============================================================================
 * MAZHAR WEAR — PHOTOREALISTIC ARCHITECTURAL STUDIO HANGING GARMENT RACK
 * File: assets/css/hanging-rack.css
 * Real studio backdrop photograph, large steady-scale garments (ZERO hover
 * zoom), flipped side-profile at rest -> straight face-forward on hover,
 * sliding rail interaction & Dark Carbon / Crimson Inspector
 * ============================================================================ */

:root {
  --rack-carbon: #0B0D11;
  --rack-slate: #141822;
  --rack-ink: #FFFFFF;
  --rack-muted: #9AA3B5;
  --rack-subtle: #6E7789;
  --rack-crimson: #E62E2D;
  --rack-crimson-glow: rgba(230, 46, 45, 0.35);
  --rack-border: rgba(255, 255, 255, 0.09);
  --rack-border-strong: rgba(255, 255, 255, 0.18);
  --rack-font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rack-font-display: 'Exo 2', 'Chakra Petch', 'Inter', sans-serif;
  --rack-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================================
 * 1. DARK CARBON & CRIMSON ARCHITECTURAL SHOWROOM SHELL
 * ============================================================================ */
.mw-rack-section {
  position: relative;
  background: linear-gradient(180deg, #090B0F 0%, #0D1017 48%, #080A0E 100%);
  color: var(--rack-ink);
  font-family: var(--rack-font-ui);
  border-top: 1px solid rgba(230, 46, 45, 0.32);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 26px 0 26px;
  overflow: hidden;
  isolation: isolate;
}

.mw-rack-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 32% at 50% 0%, rgba(230, 46, 45, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 0% 50%, rgba(230, 46, 45, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 100% 50%, rgba(230, 46, 45, 0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.mw-rack-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 0 clamp(14px, 2.8vw, 40px);
}

/* ============================================================================
 * 2. BAND 1 — TOP EYEBROW, CATEGORY TABS & SLIDER CONTROLS
 * ============================================================================ */
.mw-rack-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rack-border);
}

.mw-rack-eyebrow-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mw-rack-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rack-crimson);
  box-shadow: 0 0 12px var(--rack-crimson), 0 0 0 4px rgba(230, 46, 45, 0.2);
  flex-shrink: 0;
}

.mw-rack-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mw-rack-eyebrow span {
  color: var(--rack-muted);
  font-weight: 600;
}

.mw-rack-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.mw-rack-filter-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--rack-muted);
  font-family: var(--rack-font-ui);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mw-rack-filter-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.mw-rack-filter-btn.is-active {
  background: var(--rack-crimson);
  color: #FFFFFF;
  border-color: var(--rack-crimson);
  box-shadow: 0 4px 16px rgba(230, 46, 45, 0.42);
}

.mw-rack-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.mw-rack-mode-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rack-muted);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rack-border);
}

.mw-rack-mode-hint i {
  color: var(--rack-crimson);
}

.mw-rack-step-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rack-border-strong);
  background: var(--rack-slate);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--rack-ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mw-rack-step-btn:hover {
  background: var(--rack-crimson);
  border-color: var(--rack-crimson);
  box-shadow: 0 0 18px var(--rack-crimson-glow);
  transform: scale(1.06);
}

.mw-rack-step-btn:active {
  transform: scale(0.95);
}

/* ============================================================================
 * 3. BAND 2 — PHOTOREALISTIC OPEN SHOWROOM STUDIO & FULL-LENGTH STEEL RAIL
 * ============================================================================ */
.mw-rack-stage {
  position: relative;
  margin: 16px 0 14px;
  height: 660px;
  padding: 118px 0 0;
  border-radius: 16px;
  overflow: hidden;
  background-color: #0D1016;
  background-image: var(--rack-studio-photo, url('../images/showroom-studio-bg.jpg'));
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.2),
    0 26px 68px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-select: none;
}

/* Subtle edge shadow vignette for architectural frame depth without clipping the full-length rod */
.mw-rack-stage::before,
.mw-rack-stage::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 9;
  pointer-events: none;
}

.mw-rack-stage::before {
  left: 0;
  background: linear-gradient(to right, rgba(8, 10, 14, 0.3) 0%, rgba(8, 10, 14, 0) 100%);
}

.mw-rack-stage::after {
  right: 0;
  background: linear-gradient(to left, rgba(8, 10, 14, 0.3) 0%, rgba(8, 10, 14, 0) 100%);
}

/* Vertical Braided-Steel Ceiling Suspension Cables Dropping From Overhead Track Into Full-Length Rail */
.mw-rack-cable {
  position: absolute;
  top: 0;
  width: 2px;
  height: 160px;
  background: linear-gradient(90deg, #3A414E 0%, #E5E9F0 50%, #1B1F28 100%);
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.22);
  z-index: 5;
  pointer-events: none;
}

.mw-rack-cable--left  { left: 3.2%; }
.mw-rack-cable--right { right: 3.2%; }

.mw-rack-cable::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(90deg, #0B0D11 0%, #444C5C 48%, #11151C 100%);
  box-shadow: 0 4px 10px rgba(11, 13, 17, 0.42);
}

/* 3D Cylindrical Brushed-Steel Garment Suspension Rod Spanning FULL LENGTH Edge-to-Edge */
.mw-rack-rail {
  position: absolute;
  top: 158px;
  left: 0;
  right: 0;
  height: 7px;
  border-radius: 0;
  background: linear-gradient(
    180deg,
    #525A68 0%,
    #DCE2EC 24%,
    #252A34 62%,
    #0B0D11 100%
  );
  box-shadow:
    0 3px 7px rgba(11, 13, 17, 0.36),
    0 22px 24px rgba(11, 13, 17, 0.12);
  z-index: 5;
  pointer-events: none;
}

.mw-rack-rail::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 12px;
  background: linear-gradient(180deg, rgba(11, 13, 17, 0.11) 0%, rgba(11, 13, 17, 0) 100%);
  filter: blur(5px);
}

/* Full-Width Horizontally Slidable / Draggable Showroom Track Across Entire Rod Length */
.mw-rack-viewport {
  position: relative;
  z-index: 6;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  margin: 0;
  padding: 0 54px;
  scroll-behavior: auto;
}

.mw-rack-viewport::-webkit-scrollbar {
  display: none;
}

.mw-rack-viewport.is-dragging {
  cursor: grabbing;
}

.mw-rack-track {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  width: max-content;
  margin: 0 auto;
  padding: 6px 0 0;
  perspective: 1600px;
}

/* ============================================================================
 * 4. LARGE CONSTANT-SIZE GARMENTS — ZERO ZOOM ON HOVER/UNHOVER + FLOOR SHADOW
 * ============================================================================ */
.mw-rack-item {
  --pendulum-deg: 0deg;
  --shadow-shift: 0px;
  position: relative;
  flex: 0 0 auto;
  width: 148px;
  height: 526px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: width 0.48s var(--rack-ease);
  will-change: width;
}

.mw-rack-item.is-hidden {
  display: none;
}

/* Opens spacing along the rail cleanly when hovered so the full straight piece is unobstructed */
.mw-rack-item.is-active {
  width: 310px;
  z-index: 12;
}

.mw-rack-item.is-near-left,
.mw-rack-item.is-near-right {
  width: 138px;
  z-index: 6;
}

.mw-rack-item.is-far-left,
.mw-rack-item.is-far-right {
  width: 144px;
  z-index: 4;
}

/* Boutique Art # Hangtag Pill Above Rail (Steady Scale, Highlighted Color on Hover) */
.mw-rack-tag {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  margin-bottom: 5px;
  border-radius: 4px;
  background: rgba(11, 13, 17, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 3px 8px rgba(11, 13, 17, 0.24);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0.9;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.24s ease, opacity 0.22s ease;
}

.mw-rack-tag::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: var(--rack-crimson);
  flex-shrink: 0;
}

.mw-rack-tag::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 1px;
  height: 6px;
  background: rgba(11, 13, 17, 0.45);
  transform: translateX(-50%);
}

.mw-rack-item.is-active .mw-rack-tag,
.mw-rack-item:focus-visible .mw-rack-tag {
  background: var(--rack-crimson);
  border-color: #FF5958;
  color: #FFFFFF;
  opacity: 1;
  box-shadow: 0 6px 18px rgba(230, 46, 45, 0.45);
}

.mw-rack-item.is-active .mw-rack-tag::before {
  background: #FFFFFF;
  border-color: #FFFFFF;
}

/* Brushed-Chrome J-Hook Wrapping Directly Over the Steel Rail */
.mw-rack-hook-wrap {
  position: relative;
  z-index: 6;
  width: 22px;
  height: 22px;
  margin-top: -1px;
  margin-bottom: -5px;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(11, 13, 17, 0.3));
}

.mw-rack-hook-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Real 60fps Spring-Mass Pendulum Swing Assembly */
.mw-rack-pendulum {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0%;
  transform: rotate(var(--pendulum-deg));
  will-change: transform;
}

/* Fitted Matte-Carbon Neck Hanger — Constant Size, Flipped at Rest -> Straight on Hover */
.mw-rack-hanger-shoulders-svg {
  width: 96px;
  height: 20px;
  margin-bottom: -14px;
  position: relative;
  z-index: 2;
  opacity: 0.92;
  transform: perspective(1150px) rotateY(58deg);
  filter: drop-shadow(0 2px 3px rgba(11, 13, 17, 0.25));
  transition: transform 0.5s var(--rack-ease), opacity 0.25s ease;
  will-change: transform;
}

.mw-rack-item.is-active .mw-rack-hanger-shoulders-svg,
.mw-rack-item:focus-visible .mw-rack-hanger-shoulders-svg {
  opacity: 0.98;
  transform: perspective(1150px) rotateY(0deg);
}

.mw-rack-item.is-near-left .mw-rack-hanger-shoulders-svg {
  transform: perspective(1150px) rotateY(64deg);
}

.mw-rack-item.is-near-right .mw-rack-hanger-shoulders-svg {
  transform: perspective(1150px) rotateY(-64deg);
}

/* FIXED LARGE GARMENT CONTAINER — Never Zooms In or Out on Hover/Unhover! */
/* Always stays full 310px x 342px size; flips 58deg when unhovered -> 0deg straight on hover */
.mw-rack-garment-frame {
  position: relative;
  z-index: 3;
  width: 310px;
  height: 342px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transform-style: preserve-3d;
  transform: perspective(1150px) rotateY(58deg);
  filter: brightness(0.94) contrast(1.03) drop-shadow(8px 14px 12px rgba(11, 13, 17, 0.16));
  transition:
    transform 0.5s var(--rack-ease),
    filter 0.38s ease;
  will-change: transform, filter;
}

/* Turns straight (0deg) on hover — EXACT SAME 310x342 SIZE, zero zoom */
.mw-rack-item.is-active .mw-rack-garment-frame,
.mw-rack-item:focus-visible .mw-rack-garment-frame {
  transform: perspective(1150px) rotateY(0deg);
  filter: brightness(1.03) contrast(1.04) drop-shadow(0 18px 20px rgba(11, 13, 17, 0.22));
}

/* Neighbors remain flipped cleanly along the rail at FULL LARGE SIZE */
.mw-rack-item.is-near-left .mw-rack-garment-frame {
  transform: perspective(1150px) rotateY(64deg) translateX(-10px);
  filter: brightness(0.9) drop-shadow(6px 12px 10px rgba(11, 13, 17, 0.16));
}

.mw-rack-item.is-near-right .mw-rack-garment-frame {
  transform: perspective(1150px) rotateY(-64deg) translateX(10px);
  filter: brightness(0.9) drop-shadow(-6px 12px 10px rgba(11, 13, 17, 0.16));
}

.mw-rack-item.is-far-left .mw-rack-garment-frame {
  transform: perspective(1150px) rotateY(58deg) translateX(-4px);
}

.mw-rack-item.is-far-right .mw-rack-garment-frame {
  transform: perspective(1150px) rotateY(-58deg) translateX(4px);
}

/* Large Crisp Garment Image — Fixed Large Box, Melts Into Real Venetian Plaster Wall */
.mw-rack-garment-img {
  width: 310px;
  height: 342px;
  object-fit: contain;
  object-position: top center;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Cleanly trims watermark borders off seed 600x600 studio SVG drawings */
.mw-rack-garment-img.is-studio-svg {
  clip-path: inset(10% 8% 12% 8%);
  transform: scale(1.16) translateY(-4%);
  filter: brightness(1.06) contrast(1.05);
}

/* ============================================================================
 * FLAT GROUND-ANCHORED TWO-LAYER FLOOR CAST SHADOW (SITS ON CONCRETE FLOOR!)
 * Lives outside .mw-rack-pendulum so it glides horizontally across the floor
 * without ever tilting up onto the wall when garments swing!
 * ============================================================================ */
.mw-rack-floor-shadow-wrap {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 260px;
  height: 44px;
  transform: translateX(calc(-50% + var(--shadow-shift)));
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

/* Wide diffused spotlight penumbra cast onto the satin concrete floor */
.mw-rack-shadow-ambient {
  position: absolute;
  width: 148px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(11, 13, 17, 0.34) 0%,
    rgba(11, 13, 17, 0.16) 48%,
    rgba(11, 13, 17, 0) 76%
  );
  filter: blur(8px);
  mix-blend-mode: multiply;
  transition: width 0.5s var(--rack-ease), opacity 0.38s ease;
}

/* Tighter, darker directional core umbra shadow directly below the garment hem */
.mw-rack-shadow-core {
  position: absolute;
  width: 96px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(7, 9, 13, 0.58) 0%,
    rgba(11, 13, 17, 0.28) 52%,
    rgba(11, 13, 17, 0) 80%
  );
  filter: blur(3px);
  mix-blend-mode: multiply;
  transition: width 0.5s var(--rack-ease), opacity 0.38s ease;
}

/* Widens cleanly to match full straight silhouette when hovered */
.mw-rack-item.is-active .mw-rack-shadow-ambient,
.mw-rack-item:focus-visible .mw-rack-shadow-ambient {
  width: 246px;
  background: radial-gradient(
    ellipse at center,
    rgba(11, 13, 17, 0.44) 0%,
    rgba(11, 13, 17, 0.2) 50%,
    rgba(11, 13, 17, 0) 78%
  );
}

.mw-rack-item.is-active .mw-rack-shadow-core,
.mw-rack-item:focus-visible .mw-rack-shadow-core {
  width: 184px;
  height: 18px;
  background: radial-gradient(
    ellipse at center,
    rgba(5, 7, 11, 0.68) 0%,
    rgba(11, 13, 17, 0.34) 55%,
    rgba(11, 13, 17, 0) 82%
  );
}

.mw-rack-item:focus-visible {
  outline: 2px solid var(--rack-crimson);
  outline-offset: 6px;
  border-radius: 10px;
}

/* ============================================================================
 * 5. BAND 3 — BOTTOM TELEMETRY & EDITORIAL CRAFT BAR
 * ============================================================================ */
.mw-rack-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--rack-border);
}

.mw-rack-readout {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mw-rack-readout-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mw-rack-readout-line.is-updating {
  opacity: 0.4;
  transform: translateY(2px);
}

.mw-rack-readout-title {
  font-family: var(--rack-font-display);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.mw-rack-readout-price {
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #FF6B6A;
}

.mw-rack-readout-sku {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D2D8E4;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mw-rack-readout-status {
  font-size: 0.75rem;
  color: var(--rack-subtle);
  letter-spacing: 0.02em;
}

.mw-rack-craft {
  text-align: right;
  max-width: 340px;
}

.mw-rack-craft p {
  margin: 0 0 5px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #CBD2DF;
  font-weight: 500;
}

.mw-rack-craft-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rack-crimson);
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 46, 45, 0.45);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mw-rack-craft-link:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

/* ============================================================================
 * 6. CLEAN WHITE GALLERY SPLIT-PANEL GARMENT INSPECTOR MODAL
 * ============================================================================ */
.mw-rack-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.5vw, 28px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  font-family: var(--rack-font-ui);
}

.mw-rack-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.mw-rack-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 17, 0.72);
  backdrop-filter: blur(10px);
}

.mw-rack-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #FFFFFF;
  color: #0B0D11;
  border-radius: 16px;
  border: 1px solid rgba(11, 13, 17, 0.1);
  border-top: 3px solid var(--rack-crimson);
  box-shadow: 0 36px 90px rgba(11, 13, 17, 0.42);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.34s var(--rack-ease);
}

.mw-rack-modal.is-open .mw-rack-modal-dialog {
  transform: translateY(0) scale(1);
}

.mw-rack-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11, 13, 17, 0.16);
  background: #FFFFFF;
  color: #0B0D11;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mw-rack-modal-close:hover {
  background: #0B0D11;
  border-color: #0B0D11;
  color: #FFFFFF;
}

.mw-rack-inspector-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: 580px;
  background: #FFFFFF;
}

/* Left Panel — Pure White Gallery Studio Stage */
.mw-rack-inspector-left {
  position: relative;
  background: #FFFFFF;
  border-right: 1px solid rgba(11, 13, 17, 0.08);
  padding: 0 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.mw-rack-inspector-fixture {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  margin-bottom: -4px;
  position: relative;
  z-index: 4;
}

.mw-rack-inspector-wire {
  width: 2px;
  height: 28px;
  background: linear-gradient(90deg, #8B93A2 0%, #D9DEE6 50%, #3E4554 100%);
}

.mw-rack-inspector-hook-svg {
  width: 78px;
  height: 22px;
  margin-top: -1px;
  margin-bottom: -11px;
  position: relative;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(11, 13, 17, 0.18));
}

.mw-rack-inspector-canvas {
  --insp-swing: 0deg;
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 390px;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2px;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 10px;
  transform-origin: 50% 0%;
  transform: rotate(var(--insp-swing));
}

.mw-rack-inspector-canvas.is-zooming { cursor: zoom-out; }
.mw-rack-inspector-canvas.is-zooming .mw-rack-inspector-hook-svg {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.mw-rack-inspector-img {
  max-width: 90%;
  max-height: 410px;
  object-fit: contain;
  object-position: top center;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 22px 28px rgba(11, 13, 17, 0.14));
  transition: transform 0.22s ease, opacity 0.2s ease;
  will-change: transform;
  user-select: none;
}

.mw-rack-inspector-img.is-studio-svg {
  clip-path: inset(9% 7% 11% 7%);
  transform: scale(1.08) translateY(-3%);
  filter: brightness(1.06) contrast(1.05) drop-shadow(0 20px 24px rgba(11, 13, 17, 0.14));
}

.mw-rack-inspector-img.is-swapping {
  opacity: 0.12;
}

.mw-rack-inspector-floor-shadow {
  width: 46%;
  height: 16px;
  margin-top: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(11, 13, 17, 0.18) 0%, rgba(11, 13, 17, 0) 72%);
  filter: blur(3px);
  pointer-events: none;
}

.mw-rack-inspector-stage-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  position: relative;
  z-index: 5;
}

.mw-rack-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #F3F4F6;
  border: 1px solid rgba(11, 13, 17, 0.1);
}

.mw-rack-view-btn {
  border: none;
  background: transparent;
  color: #555D6E;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.mw-rack-view-btn.is-active {
  background: #0B0D11;
  color: #FFFFFF;
}

.mw-rack-zoom-toggle-btn {
  appearance: none;
  border: 1px solid rgba(11, 13, 17, 0.16);
  background: #FFFFFF;
  color: #0B0D11;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mw-rack-zoom-toggle-btn:hover,
.mw-rack-zoom-toggle-btn.is-active {
  background: var(--rack-crimson);
  border-color: var(--rack-crimson);
  color: #FFFFFF;
}

/* Right Panel — Clean White Editorial Spec & Inquiry Panel */
.mw-rack-inspector-right {
  padding: 50px 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background: #FFFFFF;
}

.mw-rack-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.mw-rack-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5F6777;
}

.mw-rack-brand-emblem {
  width: 24px;
  height: 12px;
  flex-shrink: 0;
}

.mw-rack-insp-sku {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rack-crimson);
  background: rgba(230, 46, 45, 0.08);
  border: 1px solid rgba(230, 46, 45, 0.22);
  padding: 3px 8px;
  border-radius: 4px;
}

.mw-rack-insp-title {
  font-family: var(--rack-font-display);
  font-size: clamp(1.32rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.18;
  color: #0B0D11;
  margin: 0 0 6px;
}

.mw-rack-insp-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.mw-rack-insp-price {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0B0D11;
}

.mw-rack-insp-moq {
  font-size: 0.74rem;
  font-weight: 700;
  color: #4B5363;
  padding: 3px 9px;
  border-radius: 999px;
  background: #F4F5F7;
  border: 1px solid rgba(11, 13, 17, 0.1);
}

.mw-rack-insp-group { margin-bottom: 14px; }

.mw-rack-insp-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B7280;
  margin-bottom: 8px;
}

.mw-rack-insp-label strong { color: #0B0D11; letter-spacing: 0.04em; }

.mw-rack-swatches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mw-rack-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(11, 13, 17, 0.18);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mw-rack-swatch:hover { transform: scale(1.12); }
.mw-rack-swatch.is-active { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #0B0D11; }

.mw-rack-sizes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mw-rack-size-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 13, 17, 0.18);
  background: #FFFFFF;
  color: #0B0D11;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.mw-rack-size-btn:hover { border-color: #0B0D11; }
.mw-rack-size-btn.is-active {
  background: #0B0D11;
  border-color: #0B0D11;
  color: #FFFFFF;
}

.mw-rack-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.mw-rack-qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(11, 13, 17, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: #F6F7F9;
}

.mw-rack-qty-box button {
  width: 34px;
  height: 36px;
  border: none;
  background: transparent;
  color: #0B0D11;
  font-weight: 700;
  cursor: pointer;
}

.mw-rack-qty-box button:hover { background: rgba(11, 13, 17, 0.08); }

.mw-rack-qty-box input {
  width: 64px;
  height: 36px;
  border: none;
  background: #FFFFFF;
  color: #0B0D11;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  outline: none;
}

.mw-rack-qty-hint { font-size: 0.74rem; color: #5F6777; }

.mw-rack-add-cta {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: #0B0D11;
  color: #FFFFFF;
  font-family: var(--rack-font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.mw-rack-add-cta:hover {
  background: var(--rack-crimson);
  box-shadow: 0 12px 26px rgba(230, 46, 45, 0.3);
}

.mw-rack-add-cta:disabled { opacity: 0.65; cursor: wait; }

.mw-rack-specs-panel {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #F6F7F9;
  border: 1px solid rgba(11, 13, 17, 0.09);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #1F2430;
}

.mw-rack-specs-panel.is-open { display: block; }

.mw-rack-specs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.mw-rack-specs-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mw-rack-specs-list i {
  color: var(--rack-crimson);
  margin-top: 3px;
  font-size: 0.72rem;
}

.mw-rack-insp-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(11, 13, 17, 0.08);
}

.mw-rack-link-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  color: #0B0D11;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mw-rack-link-btn:hover { color: var(--rack-crimson); }

/* ============================================================================
 * 7. RESPONSIVE BREAKPOINTS & REDUCED MOTION
 * ============================================================================ */
@media (max-width: 1024px) {
  .mw-rack-header {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
  }
  .mw-rack-filters { justify-content: flex-start; }
  .mw-rack-controls { width: 100%; justify-content: space-between; }
  .mw-rack-stage { height: 556px; padding: 96px 0 0; }
  .mw-rack-rail { top: 136px; left: 0; right: 0; }
  .mw-rack-cable { top: 0; height: 138px; }
  .mw-rack-cable--left { left: 3.5%; }
  .mw-rack-cable--right { right: 3.5%; }
  .mw-rack-viewport { margin: 0; padding: 0 36px; }
  .mw-rack-item { width: 132px; height: 438px; }
  .mw-rack-item.is-active { width: 274px; }
  .mw-rack-garment-frame,
  .mw-rack-garment-img { width: 268px; height: 300px; }
  .mw-rack-floor-shadow-wrap { bottom: 24px; }
  .mw-rack-inspector-grid { grid-template-columns: 1fr; }
  .mw-rack-inspector-left {
    border-right: none;
    border-bottom: 1px solid rgba(11, 13, 17, 0.08);
    padding: 0 20px 18px;
  }
  .mw-rack-inspector-canvas { min-height: 280px; max-height: 340px; }
  .mw-rack-inspector-img { max-height: 290px; }
  .mw-rack-inspector-right { padding: 24px 22px 22px; }
}

@media (max-width: 680px) {
  .mw-rack-section { padding: 20px 0; }
  .mw-rack-stage { height: 476px; padding: 78px 0 0; border-radius: 12px; }
  .mw-rack-rail { top: 118px; left: 0; right: 0; }
  .mw-rack-cable { top: 0; height: 120px; }
  .mw-rack-cable--left { left: 4%; }
  .mw-rack-cable--right { right: 4%; }
  .mw-rack-viewport { margin: 0; padding: 0 44px; }
  .mw-rack-stage::before,
  .mw-rack-stage::after { width: 22px; }
  .mw-rack-item { width: 128px; height: 378px; }
  .mw-rack-item.is-active { width: 246px; }
  .mw-rack-garment-frame,
  .mw-rack-garment-img { width: 236px; height: 256px; }
  .mw-rack-garment-frame { transform: perspective(1000px) rotateY(48deg); }
  .mw-rack-floor-shadow-wrap { bottom: 18px; }
  .mw-rack-shadow-ambient { width: 112px; height: 24px; }
  .mw-rack-shadow-core { width: 72px; height: 12px; }
  .mw-rack-item.is-active .mw-rack-shadow-ambient { width: 186px; }
  .mw-rack-item.is-active .mw-rack-shadow-core { width: 136px; }
  .mw-rack-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mw-rack-craft { text-align: left; }
  .mw-rack-mode-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mw-rack-item,
  .mw-rack-pendulum,
  .mw-rack-garment-frame,
  .mw-rack-modal,
  .mw-rack-modal-dialog {
    transition: none !important;
  }
}
