/* ================================================================
   UNITS BY STAF — Build Configurator Stylesheet
   build.css
   Three-panel configurator: Picker | Preview | Color + Summary
   ================================================================ */

/* ---------------------------------------------------------------
   BUILD PAGE RESET & BASE
   --------------------------------------------------------------- */
.build-page {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  overflow: hidden; /* prevent body scroll — panels scroll internally */
}

.build-page *,
.build-page *::before,
.build-page *::after {
  box-sizing: border-box;
  word-break: keep-all;
  hyphens: none;
}

/* ---------------------------------------------------------------
   THREE-PANEL GRID
   --------------------------------------------------------------- */
.build-layout {
  display: grid;
  grid-template-columns: 300px 1fr 280px;
  height: calc(100vh - 60px);
  overflow: hidden;
}

/* ---------------------------------------------------------------
   SHARED PANEL STYLES
   --------------------------------------------------------------- */
.build-panel {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 248, 244, 0.15) transparent;
}

.build-panel::-webkit-scrollbar {
  width: 4px;
}

.build-panel::-webkit-scrollbar-track {
  background: transparent;
}

.build-panel::-webkit-scrollbar-thumb {
  background: rgba(250, 248, 244, 0.15);
  border-radius: 2px;
}

/* ---------------------------------------------------------------
   LEFT PANEL — GARMENT PICKER
   --------------------------------------------------------------- */
.build-left {
  background: var(--black);
  border-right: 1px solid rgba(250, 248, 244, 0.08);
  display: flex;
  flex-direction: column;
}

.build-left__header {
  padding: var(--space-6) var(--space-5) var(--space-4);
  border-bottom: 1px solid rgba(250, 248, 244, 0.08);
  flex-shrink: 0;
}

.build-left__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 var(--space-2) 0;
}

.build-left__sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(250, 248, 244, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 var(--space-4) 0;
}

/* Mode toggle pill */
.build-mode-toggle {
  display: flex;
  background: rgba(250, 248, 244, 0.06);
  border-radius: 3px;
  padding: 2px;
  gap: 2px;
}

.build-mode-toggle__btn {
  flex: 1;
  background: none;
  border: none;
  color: rgba(250, 248, 244, 0.45);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-3);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.build-mode-toggle__btn.is-active {
  background: var(--cream);
  color: var(--black);
}

/* Panel scroll area */
.build-left__scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 248, 244, 0.1) transparent;
}

.build-left__scroll::-webkit-scrollbar {
  width: 3px;
}

.build-left__scroll::-webkit-scrollbar-thumb {
  background: rgba(250, 248, 244, 0.1);
}

/* ---------------------------------------------------------------
   MODE VIEWS (position / garment)
   --------------------------------------------------------------- */
.build-mode-view {
  display: none;
}

.build-mode-view.is-active {
  display: block;
}

/* ---------------------------------------------------------------
   POSITION LIST
   --------------------------------------------------------------- */
.build-position-list {
  list-style: none;
  margin: 0;
  padding: var(--space-3) 0;
}

.build-position-item {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgba(250, 248, 244, 0.05);
  cursor: pointer;
  transition: background 0.15s ease;
  gap: var(--space-1);
}

.build-position-item:hover {
  background: rgba(250, 248, 244, 0.04);
}

.build-position-item.is-active {
  background: var(--cream);
  color: var(--black);
}

.build-position-item__name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: inherit;
  transition: color 0.15s ease;
}

.build-position-item:not(.is-active) .build-position-item__name {
  color: var(--cream);
}

.build-position-item__meta {
  font-size: var(--text-xs);
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.build-position-item.is-active .build-position-item__meta {
  opacity: 0.6;
}

.build-position-item__garment-count {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  font-family: var(--font-body);
}

.build-position-item:not(.is-active) .build-position-item__garment-count {
  color: rgba(250, 248, 244, 0.35);
}

/* ---------------------------------------------------------------
   GARMENT LIST (by-garment mode)
   --------------------------------------------------------------- */
.build-garment-list {
  list-style: none;
  margin: 0;
  padding: var(--space-3) 0;
}

.build-garment-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-5) var(--space-2) var(--space-4);
  border-bottom: 1px solid rgba(250, 248, 244, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
}

.build-garment-item:hover {
  background: rgba(250, 248, 244, 0.04);
}

.build-garment-item.is-active {
  background: rgba(250, 248, 244, 0.08);
}

.build-garment-item__thumb {
  width: 36px;
  height: 46px;
  flex-shrink: 0;
  background: rgba(250, 248, 244, 0.06);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(250, 248, 244, 0.08);
}

.build-garment-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
}

.build-garment-item__info {
  flex: 1;
  min-width: 0;
}

.build-garment-item__name {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--cream);
  line-height: 1.3;
  margin: 0 0 var(--space-1) 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.build-slot-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid rgba(250, 248, 244, 0.18);
  color: rgba(250, 248, 244, 0.45);
  line-height: 1.5;
}

.build-slot-tag--base    { border-color: rgba(93, 122, 94, 0.5);  color: rgba(93, 122, 94, 0.9); }
.build-slot-tag--mid     { border-color: rgba(61, 90, 128, 0.5);  color: rgba(61, 90, 128, 0.9); }
.build-slot-tag--outer   { border-color: rgba(139, 105, 20, 0.5); color: rgba(139, 105, 20, 0.9); }
.build-slot-tag--bottom  { border-color: rgba(139, 129, 120, 0.5); color: rgba(139, 129, 120, 0.9); }
.build-slot-tag--fullbody{ border-color: rgba(107, 58, 90, 0.5);  color: rgba(107, 58, 90, 0.9); }
.build-slot-tag--knit    { border-color: rgba(199, 91, 57, 0.5);  color: rgba(199, 91, 57, 0.9); }

.build-garment-item__add {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(250, 248, 244, 0.25);
  background: none;
  color: var(--cream);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-family: var(--font-body);
}

.build-garment-item__add:hover {
  background: rgba(250, 248, 244, 0.1);
  border-color: var(--cream);
}

.build-garment-item.is-active .build-garment-item__add {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--black);
  font-size: 13px;
}

/* ---------------------------------------------------------------
   CENTER PANEL — MODEL PREVIEW
   --------------------------------------------------------------- */
.build-center {
  background: #121210;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(250, 248, 244, 0.05);
  border-right: 1px solid rgba(250, 248, 244, 0.05);
}

/* Avatar picker row */
.build-avatar-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid rgba(250, 248, 244, 0.06);
  flex-shrink: 0;
}

.build-avatar-row__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(250, 248, 244, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: var(--space-2);
}

.build-avatar-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.build-avatar-thumb:hover {
  transform: scale(1.08);
}

.build-avatar-thumb.is-active {
  border-color: var(--cream);
}

.build-avatar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Main preview area */
.build-preview {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.build-preview__figure {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  padding-bottom: 0;
}

.build-preview__avatar-img {
  height: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: brightness(0.95) contrast(1.02);
  transition: opacity 0.3s ease;
}

/* Garment overlay strip */
.build-preview__overlay-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--space-4);
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(18, 18, 16, 0.85) 0%, transparent 100%);
  min-height: 80px;
  pointer-events: none;
}

.build-overlay-thumb {
  position: relative;
  width: 44px;
  height: 56px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(250, 248, 244, 0.15);
  flex-shrink: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.build-overlay-thumb:hover {
  transform: translateY(-3px);
  border-color: rgba(250, 248, 244, 0.4);
}

.build-overlay-thumb.is-active {
  border-color: var(--cream);
  transform: translateY(-3px);
}

.build-overlay-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.build-overlay-thumb__color {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: background 0.25s ease;
}

/* Layer indicator (right edge) */
.build-layer-indicator {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-2);
  background: rgba(18, 18, 16, 0.6);
  backdrop-filter: blur(4px);
  border-left: 1px solid rgba(250, 248, 244, 0.07);
  border-radius: 4px 0 0 4px;
  min-width: 90px;
  max-width: 110px;
}

.build-layer-slot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.build-layer-slot__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px dashed rgba(250, 248, 244, 0.25);
  transition: background 0.2s ease, border 0.2s ease;
}

.build-layer-slot__dot.is-filled {
  border-style: solid;
  border-color: transparent;
}

.build-layer-slot__info {
  flex: 1;
  min-width: 0;
}

.build-layer-slot__label {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.3);
  line-height: 1.2;
}

.build-layer-slot__name {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  color: rgba(250, 248, 244, 0.65);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom action bar */
.build-center-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid rgba(250, 248, 244, 0.06);
  flex-shrink: 0;
  gap: var(--space-3);
}

.build-center-bar__btn {
  background: none;
  border: 1px solid rgba(250, 248, 244, 0.2);
  color: rgba(250, 248, 244, 0.6);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.build-center-bar__btn:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.build-center-bar__btn--reset {
  color: rgba(250, 248, 244, 0.35);
}

.build-center-bar__btn--reset:hover {
  color: rgba(250, 248, 244, 0.8);
  border-color: rgba(250, 248, 244, 0.4);
  background: rgba(250, 248, 244, 0.04);
}

.build-center-bar__count {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(250, 248, 244, 0.3);
  letter-spacing: 0.05em;
  text-align: center;
}

/* Toast notification */
.build-toast {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-6);
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  white-space: nowrap;
}

.build-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------------------------------------------------------------
   RIGHT PANEL — COLOR + SUMMARY
   --------------------------------------------------------------- */
.build-right {
  background: var(--black);
  border-left: 1px solid rgba(250, 248, 244, 0.08);
  display: flex;
  flex-direction: column;
}

.build-right__scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 248, 244, 0.1) transparent;
  padding-bottom: 0;
}

.build-right__scroll::-webkit-scrollbar {
  width: 3px;
}

.build-right__scroll::-webkit-scrollbar-thumb {
  background: rgba(250, 248, 244, 0.1);
}

/* Section headers */
.build-section-header {
  padding: var(--space-5) var(--space-5) var(--space-3);
  border-bottom: 1px solid rgba(250, 248, 244, 0.06);
}

.build-section-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.4);
  margin: 0;
}

/* Color section */
.build-color-section {
  padding: var(--space-5);
  border-bottom: 1px solid rgba(250, 248, 244, 0.06);
}

.build-color-section .build-section-title {
  padding: 0 0 var(--space-4) 0;
  border-bottom: none;
}

.build-active-garment-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(250, 248, 244, 0.35);
  margin: 0 0 var(--space-4) 0;
  min-height: 1em;
  transition: color 0.2s ease;
}

.build-active-garment-label span {
  color: var(--cream);
  font-weight: 400;
}

/* Dye swatch grid */
.build-swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: 0;
}

.build-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.build-swatch:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.build-swatch.is-active {
  opacity: 1;
}

.build-swatch__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  border: 1.5px solid transparent;
  flex-shrink: 0;
}

/* Natural swatch needs visible border */
.build-swatch[data-id="natural"] .build-swatch__circle {
  border-color: rgba(250, 248, 244, 0.2);
}

.build-swatch.is-active .build-swatch__circle {
  box-shadow: 0 0 0 2px var(--black), 0 0 0 4px var(--cream);
}

.build-swatch__name {
  font-family: var(--font-body);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.45);
  text-align: center;
  line-height: 1.2;
}

.build-swatch.is-active .build-swatch__name {
  color: var(--cream);
}

/* Color section — no active state */
.build-color-section--inactive .build-swatch {
  opacity: 0.3;
  pointer-events: none;
}

.build-color-hint {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(250, 248, 244, 0.25);
  text-align: center;
  padding: var(--space-4) 0 0;
  display: none;
}

.build-color-section--inactive .build-color-hint {
  display: block;
}

/* ---------------------------------------------------------------
   BUILD LIST (YOUR BUILD)
   --------------------------------------------------------------- */
.build-list-section {
  padding: var(--space-5) var(--space-5) var(--space-4);
  flex: 1;
}

.build-list-section .build-section-title {
  margin: 0 0 var(--space-4) 0;
}

.build-position-badge {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--text-sm);
  color: rgba(250, 248, 244, 0.55);
  margin: 0 0 var(--space-4) 0;
  display: none;
}

.build-position-badge.is-visible {
  display: block;
}

.build-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.build-list__empty {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(250, 248, 244, 0.25);
  line-height: 1.6;
  padding: var(--space-2) 0;
}

.build-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid rgba(250, 248, 244, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease;
  background: rgba(250, 248, 244, 0.02);
}

.build-list-item:hover {
  background: rgba(250, 248, 244, 0.06);
  border-color: rgba(250, 248, 244, 0.12);
}

.build-list-item.is-active {
  background: rgba(250, 248, 244, 0.08);
  border-color: rgba(250, 248, 244, 0.2);
}

.build-list-item__color {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  border: 1px solid rgba(250, 248, 244, 0.12);
  transition: background 0.2s ease;
}

.build-list-item__info {
  flex: 1;
  min-width: 0;
}

.build-list-item__name {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin: 0 0 2px 0;
}

.build-list-item__meta {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(250, 248, 244, 0.35);
  text-transform: uppercase;
  line-height: 1.2;
}

.build-list-item__remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(250, 248, 244, 0.25);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  border-radius: 2px;
  transition: color 0.15s ease, background 0.15s ease;
}

.build-list-item__remove:hover {
  color: var(--cream);
  background: rgba(250, 248, 244, 0.08);
}

/* ---------------------------------------------------------------
   ORDER SUMMARY (pinned bottom)
   --------------------------------------------------------------- */
.build-order-summary {
  flex-shrink: 0;
  padding: var(--space-5);
  border-top: 1px solid rgba(250, 248, 244, 0.08);
  background: rgba(250, 248, 244, 0.02);
}

.build-order-summary__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.35);
  margin: 0 0 var(--space-4) 0;
}

.build-order-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
}

.build-order-summary__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(250, 248, 244, 0.4);
  letter-spacing: 0.04em;
}

.build-order-summary__value {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(250, 248, 244, 0.65);
  letter-spacing: 0.04em;
}

.build-order-summary__total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-3);
  margin-top: var(--space-3);
  border-top: 1px solid rgba(250, 248, 244, 0.1);
  margin-bottom: var(--space-4);
}

.build-order-summary__total-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--cream);
  letter-spacing: 0.05em;
}

.build-order-summary__total-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--cream);
  letter-spacing: -0.02em;
}

.build-inquire-btn {
  display: block;
  width: 100%;
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: var(--space-3) var(--space-4);
  border-radius: 2px;
  transition: opacity 0.15s ease, background 0.15s ease;
  border: none;
  cursor: pointer;
}

.build-inquire-btn:hover {
  opacity: 0.88;
}

.build-inquire-btn:disabled,
.build-inquire-btn.is-empty {
  background: rgba(250, 248, 244, 0.15);
  color: rgba(250, 248, 244, 0.4);
  pointer-events: none;
}

/* ---------------------------------------------------------------
   EMPTY PREVIEW STATE
   --------------------------------------------------------------- */
.build-preview__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.build-preview__empty.is-visible {
  opacity: 1;
}

.build-preview__empty-text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.2);
  text-align: center;
}

/* ---------------------------------------------------------------
   MOBILE STYLES (max 768px)
   --------------------------------------------------------------- */
@media (max-width: 768px) {
  .build-page {
    overflow: auto;
  }

  .build-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    height: auto;
    min-height: calc(100vh - 60px);
  }

  /* Center panel at top — sticky preview */
  .build-center {
    position: sticky;
    top: 0;
    height: 42vh;
    min-height: 280px;
    max-height: 380px;
    z-index: 10;
    border: none;
    border-bottom: 1px solid rgba(250, 248, 244, 0.1);
  }

  .build-avatar-row {
    padding: var(--space-3) var(--space-4);
  }

  .build-avatar-row__label {
    display: none;
  }

  .build-avatar-thumb {
    width: 30px;
    height: 30px;
  }

  .build-layer-indicator {
    display: none;
  }

  .build-center-bar {
    padding: var(--space-2) var(--space-4);
  }

  /* Left panel — garment picker, full width below preview */
  .build-left {
    order: 2;
    height: auto;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid rgba(250, 248, 244, 0.08);
  }

  .build-left__scroll {
    overflow: visible;
    max-height: none;
  }

  .build-left__header {
    padding: var(--space-4) var(--space-4) var(--space-3);
  }

  .build-left__title {
    font-size: var(--text-xl);
  }

  /* Right panel — full width */
  .build-right {
    order: 3;
    height: auto;
    overflow: visible;
    border-left: none;
  }

  .build-right__scroll {
    overflow: visible;
  }

  /* Mobile tab layout */
  .build-mobile-tabs {
    display: flex;
    border-bottom: 1px solid rgba(250, 248, 244, 0.08);
    background: var(--black);
    position: sticky;
    top: 42vh;
    z-index: 9;
  }

  .build-mobile-tab {
    flex: 1;
    background: none;
    border: none;
    color: rgba(250, 248, 244, 0.45);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
  }

  .build-mobile-tab.is-active {
    color: var(--cream);
    border-bottom-color: var(--cream);
  }

  .build-mobile-content {
    display: none;
  }

  .build-mobile-content.is-active {
    display: block;
  }

  /* Garment list compact on mobile */
  .build-garment-item {
    padding: var(--space-2) var(--space-4);
  }

  /* Fixed order summary bar on mobile */
  .build-order-summary {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: var(--black);
    border-top: 1px solid rgba(250, 248, 244, 0.12);
  }

  .build-swatch-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
  }

  .build-swatch__circle {
    width: 28px;
    height: 28px;
  }
}

/* ---------------------------------------------------------------
   MOBILE TABS — hidden on desktop
   --------------------------------------------------------------- */
.build-mobile-tabs {
  display: none;
}

/* ---------------------------------------------------------------
   NAV SCROLL STATE (matching other Units pages)
   --------------------------------------------------------------- */
.build-page .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
}

.build-page .build-layout {
  margin-top: 60px;
}

/* ---------------------------------------------------------------
   TRANSITIONS & ANIMATIONS
   --------------------------------------------------------------- */
.build-list-item {
  animation: buildItemIn 0.2s ease;
}

@keyframes buildItemIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.build-overlay-thumb {
  animation: thumbIn 0.2s ease;
}

@keyframes thumbIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------------
   POSITION ITEM — suggested look preview dots
   --------------------------------------------------------------- */
.build-position-item__dots {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.build-position-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(250, 248, 244, 0.2);
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.build-position-item.is-active .build-position-item__dot {
  border-color: rgba(26, 26, 24, 0.2);
}

/* ---------------------------------------------------------------
   UTILITY
   --------------------------------------------------------------- */
.build-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
