/* =========================================================
   Wholesale section — flea's ts branded styling.
   Special Elite, lowercase, light & professional.
   Everything is scoped under .ws so the nav/footer stay untouched.
   ========================================================= */

/* Light page background for the whole wholesale section (site body is black). */
body.ws-page { background: #f6f3ec; }
body.ws-page main { color: #18120f; }
body.ws-page .tabbar { display: none !important; }  /* hide the ecommerce mobile tabbar */

/* ---- Wholesale (dance) navbar — dusk ---- */
.wnav {
  background: #4a4e69;
  color: #f3f0e7;
  font-family: 'Special Elite', 'Courier New', monospace;
  text-transform: lowercase;
}
.wnav__inner {
  max-width: 1100px; margin: 0 auto; padding: .7rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap;
}
.wnav__brand {
  color: #f3f0e7; text-decoration: none; font-size: 1.25rem; letter-spacing: .03em;
  display: inline-flex; align-items: baseline; gap: .5rem;
}
.wnav__brand:hover { color: #fff; }
.wnav__tag { font-size: .62rem; letter-spacing: .2em; color: #c8a84b; }
.wnav__links { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.wnav__links a { color: #d8d6e0; text-decoration: none; font-size: .92rem; }
.wnav__links a:hover { color: #fff; }
.wnav__shop {
  background: #c8a84b; color: #18120f !important;
  padding: .4rem .9rem; border-radius: 999px; font-weight: 700;
}
.wnav__shop:hover { filter: brightness(1.06); }

/* ---- Wholesale (dance) footer — dusk, matches the navbar ---- */
.wfoot {
  background: #4a4e69;
  color: #d8d6e0;
  font-family: 'Special Elite', 'Courier New', monospace;
  text-transform: lowercase;
  margin-top: 3rem;
}
.wfoot__top {
  max-width: 1100px; margin: 0 auto; padding: 2.25rem 1rem;
  display: flex; gap: 2.5rem; flex-wrap: wrap;
}
.wfoot__brand { flex: 1; min-width: 200px; }
.wfoot__wordmark { color: #f3f0e7; text-decoration: none; font-size: 1.3rem; letter-spacing: .03em; }
.wfoot__tag { color: #c8a84b; font-size: .72rem; letter-spacing: .12em; margin: .25rem 0 .75rem; }
.wfoot__contact a { color: #d8d6e0; text-decoration: none; font-size: .85rem; }
.wfoot__col { min-width: 150px; }
.wfoot__col h4 { color: #fff; font-size: .85rem; margin: 0 0 .6rem; text-transform: lowercase; letter-spacing: .04em; }
.wfoot__col ul { list-style: none; margin: 0; padding: 0; }
.wfoot__col li { margin-bottom: .45rem; }
.wfoot__col a { color: #d8d6e0; text-decoration: none; font-size: .85rem; }
.wfoot__col a:hover, .wfoot__contact a:hover, .wfoot__wordmark:hover { color: #fff; }
.wfoot__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center; padding: 1rem; font-size: .75rem; color: #b9b7c6;
}

.ws {
  font-family: 'Special Elite', 'Courier New', monospace;
  text-transform: lowercase;
  color: #18120f;
}
/* core/base.css forces h1-h6 UPPERCASE site-wide — keep wholesale lowercase. */
.ws h1, .ws h2, .ws h3, .ws h4, .ws h5, .ws h6 {
  text-transform: lowercase;
  letter-spacing: normal;
}
/* keep typed field values legible (not force-lowercased) */
.ws input, .ws select, .ws textarea { text-transform: none; }
/* keep user-typed data legible (don't force-lowercase field contents) */
.ws input,
.ws select,
.ws textarea { text-transform: none; }

.ws-wrap { max-width: 980px; margin: 2.25rem auto 3.5rem; padding: 0 1rem; }
.ws-narrow { max-width: 620px; }

/* ---- panels / cards ---- */
.ws-panel {
  border: 1px solid #e7e1d3;
  border-radius: 16px;
  background: #ffffff;
  padding: 1.9rem 1.6rem;
  box-shadow: 0 6px 24px rgba(24, 18, 15, .05);
}
.ws-card {
  border: 1px solid #e7e1d3;
  border-radius: 14px;
  background: #fff;
  padding: 1.25rem;
}
.ws-card__icon { font-size: 1.5rem; line-height: 1; }
.ws-card__title { font-size: 1.05rem; margin: .55rem 0 .25rem; color: #18120f; }
.ws-card p { margin: 0; color: #6b655c; font-size: .9rem; line-height: 1.6; }
.ws-step-num { color: #c8a84b; font-size: 1.4rem; }

/* ---- headings ---- */
.ws-form-title { font-size: 1.7rem; text-align: center; margin: 0 0 .3rem; }
.ws-form-sub { text-align: center; color: #8a8378; font-size: .92rem; margin: 0 0 1.6rem; line-height: 1.6; }
.ws-section-title { text-align: center; font-size: 1.4rem; margin: 2.75rem 0 1.25rem; }

/* ---- grids ---- */
.ws-grid { display: grid; gap: 1rem; }
.ws-grid--auto { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---- hero ---- */
.ws-hero {
  background: #18120f;
  color: #f3f0e7;
  border-radius: 18px;
  padding: 3.25rem 1.5rem;
  text-align: center;
}
.ws-hero h1 { font-size: 2.05rem; line-height: 1.15; margin: .6rem 0 .5rem; color: #f3f0e7; }
.ws-hero p { max-width: 580px; margin: 0 auto 1.6rem; color: #e7e2d6; font-size: 1rem; line-height: 1.7; }
.ws-kicker { color: #c8a84b; letter-spacing: .22em; font-size: .72rem; }

/* ---- form ---- */
.ws-field { margin-bottom: 1rem; }
.ws-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ws-label { display: block; font-size: .8rem; color: #6b655c; margin-bottom: .35rem; }
.ws-input {
  width: 100%;
  padding: .72rem .85rem;
  border: 1px solid #c9d6ea;
  border-radius: 10px;
  background: #eef4fc;
  color: #18120f;
  font-family: inherit;
  font-size: .95rem;
}
.ws-input:focus { outline: none; border-color: #c8a84b; box-shadow: 0 0 0 3px rgba(200, 168, 75, .18); }
.ws-checkrow { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: #4a443c; margin: 1.1rem 0; }
.ws-checkrow input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px; margin: 1px 0 0; padding: 0;
  flex-shrink: 0;
  border: 2px solid #d8d2c4;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background .15s ease, border-color .15s ease;
}
.ws-checkrow input[type="checkbox"]:hover { border-color: #c8a84b; }
.ws-checkrow input[type="checkbox"]:checked { background: #c8a84b; border-color: #c8a84b; }
.ws-checkrow input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #18120f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ws-checkrow input[type="checkbox"]:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(200, 168, 75, .35);
}
.ws-errors { color: #b3261e; font-size: .85rem; margin-top: .5rem; }
.ws-footnote { text-align: center; font-size: .85rem; color: #8a8378; margin-top: 1.3rem; }
.ws-footnote a, .ws a.ws-link { color: #18120f; text-decoration: underline; }

/* ---- buttons ---- */
.ws-btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: inherit; font-size: 1rem; text-transform: lowercase;
  padding: .85rem 1.8rem; border-radius: 10px; border: none; letter-spacing: .02em;
}
.ws-btn--dark { background: #18120f; color: #f3f0e7; }
.ws-btn--gold { background: #c8a84b; color: #18120f; }
.ws-btn--block { width: 100%; text-align: center; }

/* ---- product matrix (per-variant order table) ---- */
.ws-prod-head { display: flex; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.ws-prod-img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid #e7e1d3; }
.ws-prod-title { font-size: 1.4rem; margin: 0; }
.ws-prod-sub { color: #6b655c; font-size: .9rem; margin-top: .2rem; }
.ws-prod-links { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 1rem; }
.ws-prod-links a { color: #777; text-decoration: none; }
.ws-prod-order { color: #18120f; font-weight: 700; }

.ws-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ws-table thead th {
  text-align: left; font-weight: 400; color: #8a8378; font-size: .76rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 0 .5rem .6rem; border-bottom: 1px solid #ece6d8;
}
.ws-table td { padding: .6rem .5rem; border-bottom: 1px solid #f1ece0; vertical-align: middle; }
.ws-table .ws-c { text-align: center; }
.ws-table .ws-r { text-align: right; }
.ws-table tfoot td { border-bottom: none; padding-top: .9rem; }

.ws-item { display: flex; align-items: center; gap: .7rem; }
.ws-thumb {
  width: 42px; height: 42px; object-fit: cover; border-radius: 8px;
  border: 1px solid #e7e1d3; background: #f6f3ec; flex-shrink: 0;
}
.ws-item-name { font-weight: 400; }
.ws-stock { color: #8a8378; font-size: .85rem; }
.ws-qty {
  width: 72px; padding: .5rem; text-align: center;
  border: 1px solid #c9d6ea; border-radius: 8px; background: #eef4fc; color: #18120f;
  font-family: inherit; font-size: .95rem;
}
.ws-qty:focus { outline: none; border-color: #c8a84b; box-shadow: 0 0 0 3px rgba(200, 168, 75, .18); }
.ws-sub { color: #18120f; }

/* ---- checkout: radios + card field ---- */
.ws-radio { display: flex; align-items: center; gap: .6rem; padding: .55rem .2rem; font-size: .92rem; cursor: pointer; }
.ws-radio input[type="radio"] {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin: 0; flex-shrink: 0;
  border: 2px solid #d8d2c4; border-radius: 50%; background: #fff;
  cursor: pointer; position: relative; transition: border-color .15s ease;
}
.ws-radio input[type="radio"]:hover { border-color: #c8a84b; }
.ws-radio input[type="radio"]:checked { border-color: #c8a84b; }
.ws-radio input[type="radio"]:checked::after {
  content: ""; position: absolute; left: 4px; top: 4px;
  width: 8px; height: 8px; border-radius: 50%; background: #c8a84b;
}
.ws-radio input[type="radio"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(200, 168, 75, .3); }
.ws-card-field { border: 1px solid #d8d2c4; border-radius: 10px; padding: .5rem .7rem; background: #fff; min-height: 48px; }

/* multi-line checkbox list (registration) */
.ws-checkboxes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.ws-checkboxes li label { display: flex; align-items: center; gap: .6rem; font-size: .92rem; cursor: pointer; }

/* inline spinner (e.g. estimating shipping) */
.ws-spinner { width: 16px; height: 16px; border: 2px solid #d8d2c4; border-top-color: #c8a84b; border-radius: 50%; display: inline-block; animation: ws-spin .7s linear infinite; }
@keyframes ws-spin { to { transform: rotate(360deg); } }

/* horizontal-scroll wrapper so data tables never break the layout */
.ws-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ================================ mobile-first ============================= */
@media (max-width: 600px) {
  .ws-wrap { padding: 0 .75rem; margin: 1.25rem auto 2.5rem; }
  .ws-panel { padding: 1.25rem 1rem; border-radius: 12px; }
  .ws-row-2 { grid-template-columns: 1fr; gap: 0; }

  .ws-form-title { font-size: 1.45rem; }
  .ws-section-title { font-size: 1.25rem; margin: 2rem 0 1rem; }
  .ws-prod-title { font-size: 1.25rem; }
  .ws-hero { padding: 2.4rem 1.1rem; }
  .ws-hero h1 { font-size: 1.7rem; }

  /* 16px form text stops iOS focus-zoom; roomier tap targets */
  .ws-input, .ws select, .ws textarea, .ws-qty { font-size: 16px; }
  .ws-input { padding: .8rem .85rem; }
  .ws-qty { width: 64px; padding: .65rem .4rem; }

  /* denser tables */
  .ws-table { font-size: .9rem; }
  .ws-table thead th { padding: 0 .35rem .5rem; }
  .ws-table td { padding: .55rem .35rem; }
  .ws-item { gap: .55rem; }
  .ws-thumb { width: 36px; height: 36px; }

  /* comfortable buttons */
  .ws-btn { padding: .9rem 1.4rem; }

  /* navbar + footer */
  .wnav__inner { padding: .6rem .85rem; gap: .45rem .9rem; }
  .wnav__brand { font-size: 1.1rem; }
  .wnav__links { gap: .85rem; }
  .wnav__links a { font-size: .9rem; }
  .wfoot__top { gap: 1.5rem; padding: 1.75rem 1rem; }
}
