/* Typography collection UI matched to the protected wholesale experience.
   This file styles the local proof only and does not alter wholesale sources. */

:root {
  --wholesale-bg: #06060c;
  --wholesale-surface: #0d0d18;
  --wholesale-raised: #151321;
  --wholesale-line: rgba(220, 213, 247, .18);
  --wholesale-line-strong: rgba(231, 222, 255, .52);
  --wholesale-text: #f3f6fb;
  --wholesale-muted: #bab5c8;
  --wholesale-lavender: #d9c7ff;
  --wholesale-pink: #ff27bd;
  --accent-line: linear-gradient(90deg, #765cff, #ff27bd);
}

html { background: var(--wholesale-bg); }

body {
  background: var(--wholesale-bg);
  color: var(--wholesale-text);
}

.shell { width: min(1160px, calc(100% - 32px)); }

.topbar {
  top: 0;
  background: rgba(6, 6, 12, .94);
  border-bottom-color: var(--wholesale-line);
  backdrop-filter: blur(12px);
}

.head { height: 66px; }
.brand-logo { width: 130px; }
.brand small { display: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  margin-right: 22px;
}

.site-nav button,
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--wholesale-muted);
  font-size: .82rem;
  text-decoration: none;
}

.site-nav button:hover,
.site-nav a:hover { color: #fff; }

.request-btn {
  border-color: var(--wholesale-line);
  background: var(--wholesale-surface);
  padding: 8px 14px;
  font-size: .8rem;
}

.status { display: none; }

.preview-strip {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--wholesale-line);
  background: #18122c;
  color: #ded9ec;
  padding: 8px 18px;
  font-size: .76rem;
  text-align: center;
}

.preview-strip strong { color: #fff; }

.wholesale-hero {
  min-height: min(820px, calc(100vh - 100px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: clamp(46px, 7vw, 100px);
  align-items: center;
  padding: 86px 0 92px;
}

.wholesale-hero .hero-copy { max-width: 700px; }

.wholesale-hero h1 {
  max-width: 700px;
  margin: 18px 0 26px;
  font-size: clamp(3.4rem, 5.25vw, 5.55rem);
  line-height: .89;
  letter-spacing: -.055em;
}

.wholesale-hero .accent {
  color: inherit;
}

.wholesale-hero p {
  max-width: 650px;
  color: var(--wholesale-muted);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.7;
}

.eyebrow {
  color: var(--wholesale-lavender);
  font-size: .73rem;
  letter-spacing: .17em;
}

.hero-actions { gap: 28px; margin-top: 30px; }

.line-action {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0 2px 10px;
  font-family: Archivo, Impact, sans-serif;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.line-action::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent-line);
}

.line-action.quiet { color: var(--wholesale-muted); }
.line-action.quiet::after { background: var(--wholesale-line-strong); }

.hero-step-board {
  position: relative;
  min-height: 510px;
  border: 1px solid var(--wholesale-line);
  background: #11101c;
  overflow: hidden;
}

.hero-step-board::before,
.hero-step-board::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-step-board::before {
  inset: 8% 12%;
  border: 1px dashed rgba(217, 199, 255, .18);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.hero-step-board::after {
  width: 240px;
  height: 240px;
  right: -110px;
  bottom: -110px;
  border: 1px solid rgba(255, 39, 189, .3);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 39, 189, .018), 0 0 0 76px rgba(118, 92, 255, .018);
}

.hero-step-card {
  position: absolute;
  width: 70%;
  min-height: 142px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 26px 28px;
  border: 1px solid var(--wholesale-line);
  background: #12111f;
  box-shadow: 18px 22px 54px rgba(0, 0, 0, .28);
  transform: rotate(var(--hero-card-rotate));
}

.hero-step-card:nth-child(1) { --hero-card-rotate: -3deg; left: 8%; top: 9%; }
.hero-step-card:nth-child(2) { --hero-card-rotate: 3deg; right: 8%; top: 35%; }
.hero-step-card:nth-child(3) { --hero-card-rotate: -1.5deg; left: 14%; bottom: 8%; }
.hero-step-card small { color: var(--wholesale-muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-step-card strong { font-family: Archivo, Impact, sans-serif; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: .95; text-transform: uppercase; }
.hero-step-card span { color: var(--wholesale-lavender); font-size: .78rem; font-weight: 700; }

.lab {
  padding: 34px 0 100px;
  scroll-margin-top: 72px;
}

.picker-intro {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(320px, 1.28fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 24px;
  padding: 4px 0 24px;
  border-bottom: 1px solid var(--wholesale-line);
}

.picker-intro h1 {
  margin: 7px 0 0;
  font-family: Archivo, Impact, sans-serif;
  font-size: clamp(2.25rem, 3.8vw, 3.7rem);
  line-height: .9;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.picker-intro p {
  max-width: 700px;
  margin: 0;
  color: var(--wholesale-muted);
  line-height: 1.65;
}

.builder-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.builder-intro h2 {
  max-width: 780px;
  margin: 12px 0 0;
  font-family: Archivo, Impact, sans-serif;
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: .9;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.builder-intro p { max-width: 430px; margin: 0; color: var(--wholesale-muted); }

.builder-step-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 22px;
  border: 1px solid var(--wholesale-line);
  border-bottom: 2px solid transparent;
  border-image: var(--accent-line) 1;
  background: var(--wholesale-surface);
}

.builder-step-strip span {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid var(--wholesale-line);
  color: var(--wholesale-text);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.builder-step-strip span:last-child { border-right: 0; }
.builder-step-strip b { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--wholesale-line-strong); border-radius: 50%; font-size: .65rem; }

.lab-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: clamp(30px, 5.4vw, 76px);
}

@media (min-width: 1051px) {
  .stage { min-height: 0 !important; }
  .mockup-window,
  .mockup-window.apparel {
    width: min(100%, 530px, calc((100dvh - 320px) * var(--mockup-ratio, .6666667))) !important;
  }
}

.preview-panel {
  position: sticky;
  top: 88px;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.panel,
.focus-design,
.design-card,
.rail-card,
.focus-art,
.art-frame,
.controls,
.trust { border-radius: 0; }

.panel {
  border-color: var(--wholesale-line);
  background: #171523;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .3);
}

.panel-head { padding: 15px 18px; border-bottom-color: var(--wholesale-line); }
.panel-head h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.family-meta { color: var(--wholesale-muted); }

.stage {
  min-height: min(72vh, 760px);
  padding: 28px 28px 58px;
  background: #171523;
}

.stage::before { inset: 16px; border-radius: 0; }

.mockup-window,
.mockup-window.apparel {
  width: min(100%, 530px);
  aspect-ratio: var(--mockup-aspect, 2/3);
  border-radius: 0;
  background: #11101a;
  box-shadow: none;
}

.placement-preview-note {
  margin: 0;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--wholesale-line);
  color: var(--wholesale-muted);
  font-size: .75rem;
  line-height: 1.5;
}

.placement-preview-note strong { color: var(--wholesale-lavender); text-transform: uppercase; letter-spacing: .08em; }
.local-badge { color: var(--wholesale-lavender); }

.catalog-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-width: 0; width: 100%; max-width: 100%; }

.builder-group {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 25px 0;
  border-top: 1px solid var(--wholesale-line);
}

#townPicker,
#builderIntro {
  scroll-margin-top: 92px;
}

.builder-group:first-child { padding-top: 4px; border-top: 0; }

.group-heading,
.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.group-heading h2,
.catalog-head h2 {
  margin: 0;
  font-family: Archivo, Impact, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.group-heading p,
.catalog-head p { max-width: 260px; margin: 0; color: var(--wholesale-muted); font-size: .74rem; text-align: right; }
.step-tag { display: inline-block; margin-bottom: 9px; color: var(--wholesale-lavender); font-size: .68rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }

.town-builder-group { margin-bottom: 26px; padding: 14px 0 24px; border-bottom: 1px solid var(--wholesale-line); }

.town-rail-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.town-rail-arrow { width: 44px; min-height: 48px; padding: 0; border: 1px solid var(--wholesale-line-strong); border-radius: 0; background: var(--wholesale-card, #11101c); color: var(--wholesale-lavender); font-size: 1.5rem; line-height: 1; }
.town-rail-arrow:hover:not(:disabled) { border-color: var(--wholesale-lavender); background: rgba(217, 199, 255, .12); }
.town-rail-arrow:focus-visible { outline: 2px solid var(--wholesale-lavender); outline-offset: 2px; }
.town-rail-arrow:disabled { opacity: .3; cursor: default; }

.route {
  display: flex;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
}
.route { scrollbar-width: none; }
.route::-webkit-scrollbar { display: none; }

.town-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  min-height: 64px;
  border-color: var(--wholesale-line);
  border-radius: 0;
  background: transparent;
  padding: 12px 13px;
}

.town-card strong { font-size: .86rem; letter-spacing: -.01em; }
.town-card span { color: var(--wholesale-muted); font-size: .62rem; }
.town-card:hover { transform: none; border-color: var(--wholesale-line-strong); background: rgba(255, 255, 255, .035); }
.town-card.active { border-color: var(--wholesale-lavender); background: rgba(217, 199, 255, .08); box-shadow: inset 3px 0 0 var(--wholesale-lavender); }
.town-card.active span { color: var(--wholesale-muted); }

.view-toggle,
.seg {
  border-color: var(--wholesale-line);
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.view-toggle button,
.seg button {
  min-height: 44px;
  border-radius: 0;
  color: var(--wholesale-muted);
}

.view-toggle button.active,
.seg button.active {
  background: rgba(217, 199, 255, .09);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--wholesale-lavender);
}

.catalog-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 190px); min-width: 0; }
.search,
.catalog-tools input,
.catalog-tools select,
.controls,
.control,
.control select { min-width: 0; max-width: 100%; }
.control select,
.search input,
.category-select { border-color: var(--wholesale-line-strong); border-radius: 0; background: #171523; }

.focus-picker { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 8px; }
.picker-arrow { width: 40px; height: 52px; border-radius: 0; background: transparent; }
.focus-design { grid-template-columns: minmax(180px, .76fr) minmax(180px, 1fr); gap: 16px; border-color: var(--wholesale-line); background: var(--wholesale-surface); padding: 12px; }
.focus-design:hover { border-color: var(--wholesale-line-strong); }
.focus-art { max-height: 310px; }
.focus-copy h3 { font-size: clamp(2rem, 4vw, 3rem); }
.focus-copy span { border-radius: 0; }
.design-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rail-card { border-color: var(--wholesale-line); background: var(--wholesale-surface); }
.rail-card.active { border-color: var(--wholesale-lavender); box-shadow: inset 3px 0 0 var(--wholesale-lavender); }
.design-card { border-color: var(--wholesale-line); background: var(--wholesale-surface); }
.design-card.active { border-color: var(--wholesale-lavender); background: rgba(217, 199, 255, .07); box-shadow: inset 3px 0 0 var(--wholesale-lavender); }

.design-grid.quick-grid-mode { display: block; min-width: 0; }
.quick-design-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; min-width: 0; }
.quick-card { min-width: 0; padding: 8px; }
.quick-card .art-frame { aspect-ratio: 1 / 1; min-width: 0; }
.quick-card .design-cat { min-height: 28px; font-size: .58rem; line-height: 1.3; }

.quick-grid-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  color: var(--wholesale-muted);
  font-size: .68rem;
  text-align: center;
}

.quick-grid-nav button {
  min-height: 42px;
  border: 1px solid var(--wholesale-line);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.quick-grid-nav button:last-child { justify-self: stretch; }
.quick-grid-nav button:disabled { opacity: .32; cursor: default; }

.controls { display: grid; gap: 17px; padding: 0; background: transparent; }
.control-row { gap: 11px; }
.control label { color: var(--wholesale-muted); }
.control input[type="number"] { width: 110px; padding: 10px 12px; border: 1px solid var(--wholesale-line-strong); border-radius: 0; background: var(--wholesale-raised); color: var(--wholesale-text); }
.control input[type="number"]:focus-visible { outline: 2px solid var(--wholesale-lavender); outline-offset: 3px; }
.swatches { gap: 12px; }
.swatch { width: 36px; height: 36px; }
.swatch.active { border-color: #fff; box-shadow: 0 0 0 2px var(--wholesale-bg), 0 0 0 4px var(--wholesale-lavender); }
.product-note { color: var(--wholesale-muted); }

.minimum-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--wholesale-lavender);
  background: rgba(217, 199, 255, .07);
  color: var(--wholesale-muted);
  font-size: .72rem;
  line-height: 1.5;
}

.minimum-note strong { color: #fff; }

.add-inquiry {
  position: relative;
  min-height: 50px;
  border: 1px solid var(--wholesale-line-strong);
  border-radius: 0;
  background: transparent;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .055em;
  font-size: .76rem;
}

.add-inquiry:hover { border-color: #fff; background: rgba(255, 255, 255, .05); }
.add-inquiry.active { border-color: var(--wholesale-lavender); background: rgba(217, 199, 255, .09); color: #fff; box-shadow: inset 3px 0 0 var(--wholesale-lavender); }

.trust { border-color: var(--wholesale-line); background: var(--wholesale-surface); }
/* Crop the complete native composition, never the artwork independently. */
.mockup-window.apparel { aspect-ratio: 1; }
.wholesale-program { scroll-margin-top: 90px; }
.wholesale-program a { color: var(--wholesale-lavender); }
.program-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.program-tiers div { padding: 14px 10px; border: 1px solid var(--wholesale-line); }
.program-tiers b, .program-tiers span { display: block; }
.program-tiers span { color: var(--wholesale-muted); font-size: .78rem; }
.giveback-card { padding: 20px; background: var(--wholesale-raised); }
.giveback-card p + p, .wholesale-program p + p { margin-top: 12px; }
.cart-breakdown { display: grid; gap: 5px; font-size: .82rem; margin-bottom: 12px; }
.cart-breakdown > div { display: flex; justify-content: space-between; gap: 12px; }
.cart-progress, .cart-giving { color: var(--wholesale-muted); font-size: .75rem; margin: 8px 0; }
.cart-giving strong { color: var(--wholesale-lavender); }
.inquiry-foot { max-height: 55dvh; overflow-y: auto; flex-shrink: 0; }
.trust-pills div { border-radius: 0; background: var(--wholesale-raised); }

@media (max-width: 980px) {
  .site-nav { display: none; }
  .wholesale-hero { grid-template-columns: 1fr; min-height: auto; padding: 72px 0; }
  .hero-step-board { width: min(660px, 100%); min-height: 460px; }
  .builder-intro { grid-template-columns: 1fr; align-items: start; }
  .picker-intro { grid-template-columns: 1fr; align-items: start; }
  .lab-grid { grid-template-columns: 1fr; gap: 34px; }
  .preview-panel { position: relative; top: auto; }
  .stage { min-height: 620px; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 24px, 1160px); }
  .head { height: 64px; }
  .brand-logo { width: 120px; }
  .wholesale-hero { padding: 54px 0 58px; gap: 42px; }
  .wholesale-hero h1 { font-size: clamp(3rem, 15vw, 4.65rem); }
  .hero-actions { display: grid; justify-items: start; }
  .hero-step-board { min-height: 400px; }
  .hero-step-card { width: 78%; min-height: 112px; padding: 19px; }
  .builder-intro h2 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .picker-intro { gap: 14px; padding-bottom: 20px; }
  .picker-intro h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .builder-step-strip span { min-height: 48px; gap: 6px; font-size: .62rem; }
  .builder-step-strip b { width: 19px; height: 19px; }
  .stage { min-height: 480px; padding: 16px 16px 52px; }
  .route { scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .town-card { flex: 0 0 min(68vw, 230px); }
  .group-heading,
  .catalog-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .group-heading p,
  .catalog-head p { text-align: left; }
  .view-toggle { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .catalog-tools,
  .control-row { grid-template-columns: 1fr; }
  .focus-design { grid-template-columns: 1fr; }
  .focus-art { max-height: none; }
  .design-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid-nav { grid-template-columns: 1fr 1fr; }
  .quick-grid-nav span { grid-column: 1 / -1; grid-row: 1; }
  .trust { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-step-card { transform: none; }
  .line-action,
  .town-card,
  .design-card,
  .focus-design,
  .swatch { transition: none !important; }
}
