/* ==========================================================================
   SAINT DESTROY // ARCHIVE RACK 2026
   Aesthetic: 2D Architectural Minimalism & Pure Floating T-Shirt Rail
   Palette: Background #F4F4F5 | Rail/Text #09090B | Lines #D4D4D8
   Spring Motion: transform 0.85s cubic-bezier(0.25, 1.35, 0.45, 1)
   ========================================================================== */

:root {
  --bg-main: #F4F4F5;
  --bg-surface: #FFFFFF;
  --text-primary: #09090B;
  --text-muted: #71717A;
  --text-subtle: #A1A1AA;
  --line-light: #D4D4D8;
  --line-dark: #09090B;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --spring-slide: cubic-bezier(0.25, 1.35, 0.45, 1);
  --smooth-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Lock */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  user-select: none;
  position: relative;
}

/* Subtle Architectural Grid Pattern */
.arch-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(9, 9, 11, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(9, 9, 11, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  z-index: 1;
}

/* ==========================================================================
   HUD HEADER
   ========================================================================== */
.hud-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
  background: rgba(244, 244, 245, 0.85);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.hud-brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-primary);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E11D48;
  transition: background-color 0.3s ease;
}

body[data-state="expanded"] .status-indicator-dot {
  background: #10B981;
}

/* Minimalist Reset Button in Top Right */
.btn-reset {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s var(--smooth-ease);
}

.btn-reset:hover {
  background: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.reset-icon {
  width: 14px;
  height: 14px;
}

.kbd-badge {
  font-size: 9px;
  background: rgba(9, 9, 11, 0.06);
  padding: 2px 5px;
  border-radius: 3px;
  border: 1px solid rgba(9, 9, 11, 0.1);
}

.btn-reset:hover .kbd-badge {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

/* ==========================================================================
   SHOWCASE STAGE & METAL CLOTHES RAIL
   ========================================================================== */
.showcase-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px 24px;
  z-index: 10;
}

.rail-assembly {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rail-frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ==========================================================================
   CENTRAL LOCK UNIT (Attached to the Rail Tube when Closed)
   ========================================================================== */
.central-lock-unit {
  position: absolute;
  top: 96px; /* hooks onto tube at y=100 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 35;
  outline: none;
  transition: 
    transform 0.6s var(--spring-slide),
    opacity 0.4s ease;
}

body[data-state="expanded"] .central-lock-unit {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-28px) scale(0.9);
}

.lock-hook {
  width: 40px;
  height: 30px;
}

.lock-hook-svg {
  width: 100%;
  height: 100%;
}

.lock-tag-body {
  margin-top: -6px;
  width: 180px;
  background: var(--text-primary);
  color: #FFFFFF;
  padding: 12px 14px;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(9, 9, 11, 0.16);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.3s var(--smooth-ease);
}

.central-lock-unit:hover .lock-tag-body {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(9, 9, 11, 0.22);
}

.lock-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lock-brand {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.lock-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  background: #E11D48;
  padding: 2px 5px;
  border-radius: 2px;
  letter-spacing: 0.1em;
}

.lock-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: #A1A1AA;
  letter-spacing: 0.08em;
}

.lock-pulse-pill {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}

.pulse-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: beaconPulse 1.8s infinite ease-out;
}

@keyframes beaconPulse {
  0% { transform: scale(0.9); opacity: 1; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.lock-cta-key {
  font-size: 8px;
  color: #A1A1AA;
}

/* ==========================================================================
   RACK HANGERS STAGE (PURE FLOATING T-SHIRTS ON THE RAIL)
   No grey box! No borders! Physical Sliding Animation!
   ========================================================================== */
.rack-hangers-stage {
  position: absolute;
  top: 96px; /* Hanger hook hooks onto the tube at y=100 */
  left: 0;
  right: 0;
  height: 540px;
  pointer-events: auto;
  z-index: 10;
}

/* Individual Floating Hanger + T-Shirt Assembly */
.hanger-tshirt-unit {
  position: absolute;
  top: 0;
  left: 50%;
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0%; /* Pendulum pivot on the rail! */
  cursor: pointer;
  outline: none;
  
  /* Spring transition for sliding along the rail */
  transition: 
    transform 0.85s cubic-bezier(0.25, 1.35, 0.45, 1),
    opacity 0.4s ease;
  transition-delay: calc(var(--item-idx) * 45ms);
}

/* --------------------------------------------------------------------------
   CLOSED STATE: Clustered together in center like real hanging clothes!
   -------------------------------------------------------------------------- */
body[data-state="closed"] .hanger-tshirt-unit[data-index="0"] {
  transform: translateX(calc(-50% - 36px)) scale(0.95);
  z-index: 10;
  opacity: 0.9;
}
body[data-state="closed"] .hanger-tshirt-unit[data-index="1"] {
  transform: translateX(calc(-50% - 12px)) scale(0.97);
  z-index: 11;
  opacity: 0.94;
}
body[data-state="closed"] .hanger-tshirt-unit[data-index="2"] {
  transform: translateX(calc(-50% + 12px)) scale(0.99);
  z-index: 12;
  opacity: 0.97;
}
body[data-state="closed"] .hanger-tshirt-unit[data-index="3"] {
  transform: translateX(calc(-50% + 36px)) scale(1.01);
  z-index: 13;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   EXPANDED STATE: Slide out smoothly along the rail with real momentum!
   -------------------------------------------------------------------------- */
body[data-state="expanded"] .hanger-tshirt-unit[data-index="0"] {
  transform: translateX(calc(-50% - 380px)) scale(1);
  z-index: 15;
  opacity: 1;
  animation: settlePendulum 1.4s ease-out;
}
body[data-state="expanded"] .hanger-tshirt-unit[data-index="1"] {
  transform: translateX(calc(-50% - 130px)) scale(1);
  z-index: 16;
  opacity: 1;
  animation: settlePendulum 1.4s ease-out;
  animation-delay: 50ms;
}
body[data-state="expanded"] .hanger-tshirt-unit[data-index="2"] {
  transform: translateX(calc(-50% + 130px)) scale(1);
  z-index: 17;
  opacity: 1;
  animation: settlePendulum 1.4s ease-out;
  animation-delay: 100ms;
}
body[data-state="expanded"] .hanger-tshirt-unit[data-index="3"] {
  transform: translateX(calc(-50% + 380px)) scale(1);
  z-index: 18;
  opacity: 1;
  animation: settlePendulum 1.4s ease-out;
  animation-delay: 150ms;
}

/* Pendulum settling physics upon sliding stop */
@keyframes settlePendulum {
  0% { transform-origin: 50% 0; }
  35% { transform-origin: 50% 0; rotate: -3.2deg; }
  65% { transform-origin: 50% 0; rotate: 2deg; }
  85% { transform-origin: 50% 0; rotate: -0.8deg; }
  100% { transform-origin: 50% 0; rotate: 0deg; }
}

/* Wire Hanger Hook on Top */
.wire-hanger-hook {
  width: 120px;
  height: 48px;
  z-index: 5;
  pointer-events: none;
}

.wire-hanger-svg {
  width: 100%;
  height: 100%;
}

/* T-Shirt Floating Body */
.tshirt-float-body {
  position: relative;
  width: 100%;
  margin-top: -12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: none;
  transition: transform 0.35s var(--smooth-ease);
}

/* HD Image Frame - Crystal Clear & Crisp Rendering! */
.tshirt-photo-frame {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  /* NO borders, NO backgrounds - pure cutout floating in air! */
  background: transparent;
}

.tshirt-hd-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* HD Sharpness optimization */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 14px 28px rgba(9, 9, 11, 0.12));
  transition: transform 0.4s var(--smooth-ease), filter 0.4s ease;
}

.model-num-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--line-light);
  opacity: 0;
  transition: opacity 0.3s ease;
}

body[data-state="expanded"] .model-num-tag {
  opacity: 1;
}

/* Soft ambient floor shadow beneath each hanging shirt */
.tshirt-ground-shadow {
  width: 160px;
  height: 12px;
  margin-top: 4px;
  background: radial-gradient(ellipse at center, rgba(9, 9, 11, 0.14) 0%, rgba(9, 9, 11, 0.03) 60%, transparent 80%);
  border-radius: 50%;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* ==========================================================================
   FLOATING HOVER HUD CARD (Smoothly reveals beneath shirt on hover)
   ========================================================================== */
.tshirt-hud-card {
  position: absolute;
  bottom: -90px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 220px;
  background: var(--bg-surface);
  border: 1px solid var(--text-primary);
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: 0 16px 36px rgba(9, 9, 11, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: 
    opacity 0.25s ease,
    transform 0.3s var(--smooth-ease);
  z-index: 30;
}

.hud-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.hud-item-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-item-price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.hud-item-specs {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-card-buttons {
  display: flex;
  gap: 6px;
}

.btn-hud-inspect {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  background: #F4F4F5;
  color: var(--text-primary);
  border: 1px solid var(--line-light);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-hud-inspect:hover {
  background: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}

.hud-arrow {
  width: 9px;
  height: 9px;
}

.btn-hud-order {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  background: var(--text-primary);
  color: #FFFFFF;
  border: 1px solid var(--text-primary);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-hud-order:hover {
  background: #27272A;
}

/* ==========================================================================
   HOVER ACTIONS (Desktop)
   ========================================================================== */
body[data-state="expanded"] .hanger-tshirt-unit:hover {
  z-index: 35 !important;
}

body[data-state="expanded"] .hanger-tshirt-unit:hover .tshirt-float-body {
  transform: translateY(-8px) scale(1.04);
}

body[data-state="expanded"] .hanger-tshirt-unit:hover .tshirt-hd-img {
  filter: drop-shadow(0 20px 40px rgba(9, 9, 11, 0.22));
}

body[data-state="expanded"] .hanger-tshirt-unit:hover .tshirt-ground-shadow {
  transform: scale(1.15);
  opacity: 0.9;
}

body[data-state="expanded"] .hanger-tshirt-unit:hover .tshirt-hud-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   BOTTOM FOOTER
   ========================================================================== */
.hud-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-light);
  background: rgba(244, 244, 245, 0.9);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  z-index: 40;
}

/* ==========================================================================
   MINIMALIST MODAL (3D Flip & Size Select)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: var(--bg-surface);
  border-radius: 10px;
  box-shadow: 0 24px 48px rgba(9, 9, 11, 0.2);
  border: 1px solid var(--line-light);
  padding: 32px;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.3s var(--smooth-ease);
}

.modal-backdrop.is-open .modal-box {
  transform: scale(1) translateY(0);
}

.btn-close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: #F4F4F5;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: var(--text-primary);
  color: #FFFFFF;
}

.modal-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: center;
}

/* Visual Flip Card */
.modal-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 900px;
}

.flip-card-unit {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  transform-style: preserve-3d;
  transition: transform 0.55s var(--smooth-ease);
}

.flip-card-unit.is-flipped {
  transform: rotateY(180deg);
}

.flip-side {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 6px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-side.flip-back {
  transform: rotateY(180deg);
}

.modal-tee-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.flip-tag {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(9, 9, 11, 0.85);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  padding: 3px 8px;
  border-radius: 3px;
}

.btn-flip-view {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F4F4F5;
  border: 1px solid var(--line-light);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-flip-view:hover {
  background: var(--text-primary);
  color: #FFFFFF;
}

.flip-icon {
  width: 12px;
  height: 12px;
}

/* Modal Content Details */
.modal-content {
  display: flex;
  flex-direction: column;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.modal-lot {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-subtle);
}

.modal-stock-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #10B981;
}

.modal-heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.modal-price-tag {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
}

.modal-spec-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.spec-cell {
  display: flex;
  font-size: 11.5px;
  gap: 8px;
}

.spec-label {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-subtle);
  width: 80px;
  flex-shrink: 0;
}

.spec-value {
  color: var(--text-primary);
}

/* Size Pill Selector */
.size-module {
  margin-bottom: 20px;
}

.size-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.size-hint {
  color: var(--text-muted);
}

.size-buttons {
  display: flex;
  gap: 8px;
}

.size-pill {
  flex: 1;
  height: 36px;
  background: #F4F4F5;
  border: 1px solid var(--line-light);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-pill:hover {
  border-color: var(--text-primary);
}

.size-pill.active {
  background: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}

/* Modal Actions */
.modal-cta-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-modal-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  background: var(--text-primary);
  color: #FFFFFF;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-order:hover {
  background: #27272A;
  transform: translateY(-1px);
}

.modal-tg-arrow {
  width: 14px;
  height: 14px;
}

.btn-copy-spec {
  height: 38px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--line-light);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-spec:hover {
  background: #F4F4F5;
  border-color: var(--text-primary);
}

.modal-delivery-note {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   MOBILE & IPHONE ADAPTATION (< 768px)
   - Zero horizontal scroll (overflow-x: hidden)
   - Closed state: clustered stack in center
   - Expanded state: 2x2 air grid with clear titles and order buttons
   ========================================================================== */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden !important;
    width: 100vw;
  }

  .hud-top {
    padding: 0 16px;
    height: 56px;
  }

  .brand-sub {
    display: none;
  }

  .hud-status {
    display: none;
  }

  .hud-bottom {
    display: none;
  }

  .showcase-stage {
    padding: 64px 12px 24px 12px;
    min-height: 100vh;
    height: auto;
    align-items: flex-start;
  }

  .rail-assembly {
    height: auto;
    max-width: 100%;
    margin-top: 10px;
  }

  .rail-frame-svg {
    display: none;
  }

  /* Closed State on Phone */
  body[data-state="closed"] .central-lock-unit {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 20px auto 40px auto;
  }

  body[data-state="closed"] .rack-hangers-stage {
    position: relative;
    top: 0;
    height: 360px;
    width: 100%;
  }

  /* Expanded State on Phone: 2x2 Centered Air Grid */
  body[data-state="expanded"] .rack-hangers-stage {
    position: relative;
    top: 0;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
    padding: 10px 4px 40px 4px;
    width: 100%;
  }

  body[data-state="expanded"] .hanger-tshirt-unit {
    position: relative;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
  }

  .wire-hanger-hook {
    height: 32px;
    width: 80px;
  }

  .tshirt-photo-frame {
    max-width: 170px;
  }

  .tshirt-ground-shadow {
    width: 110px;
    margin-top: 2px;
  }

  /* Permanent Floating HUD Card on Mobile (Visible when expanded) */
  body[data-state="expanded"] .tshirt-hud-card {
    position: relative;
    bottom: 0;
    left: 0;
    transform: none !important;
    width: 100%;
    max-width: 170px;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
    padding: 8px;
  }

  .hud-item-name {
    font-size: 11px;
  }

  .hud-item-price {
    font-size: 11px;
  }

  .hud-item-specs {
    font-size: 8px;
    margin-bottom: 6px;
  }

  .hud-card-buttons {
    flex-direction: column;
    gap: 4px;
  }

  .btn-hud-inspect,
  .btn-hud-order {
    height: 26px;
    font-size: 9px;
  }

  /* Modal on Mobile */
  .modal-backdrop {
    padding: 12px;
  }

  .modal-box {
    padding: 20px 16px;
    max-height: 92vh;
    overflow-y: auto;
  }

  .modal-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-visual {
    max-width: 200px;
    margin: 0 auto;
  }

  .modal-heading {
    font-size: 18px;
  }

  .modal-price-tag {
    font-size: 17px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }
}
