
:root {
  --surface:  #ffffff;
  --ink:      #1d1d1f;
  --muted:    #6e6e73;
  --border:   #d2d2d7;
  --pill:     50px;
  --card-r:   20px;
  --shadow:   0 4px 28px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; }


/* ── Section ── */
.configurator {
  padding: 72px 0 96px;
}

/* ── Step header ── */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-eyebrow {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.step-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.15;
  margin: 0;
}
.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
  opacity: .55;
}

/* ── Card ── */
.card-surface {
  background: var(--surface);
  border-radius: var(--card-r);
  box-shadow: var(--shadow);
  padding: 40px;
}
@media (max-width: 576px) {
  .card-surface { padding: 24px 20px; }
}

/* ── Tier badge pill ── */
.tier-pill {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 7px 22px;
  border-radius: var(--pill);
}

/* ─────────────────────────────
    STEP 1 — JERSEY GRID
───────────────────────────── */

.jersey-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 960px) {
  .jersey-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}
@media (max-width: 540px) {
  .jersey-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
.jersey-item {
  border-radius: 14px;
  padding: 10px 8px 8px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.jersey-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.bestseller-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff3e0;
  color: #b35a00;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 20px;
}

/* ─────────────────────────────
    STEP 2 — COLOR PICKERS
───────────────────────────── */
.color-tiers {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.color-tier-col {
  flex: 1;
  min-width: 200px;
}
.tier-col-label {
  margin-bottom: 16px;
}
.tier-desc {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 14px;
  margin-top: 8px;
}

/* Basic — square swatches grid */
.color-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
}
@media (max-width: 480px) {
  .color-grid { grid-template-columns: repeat(6, 1fr); }
}
.color-sq {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1.5px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.color-sq.white-sq { border-color: #d0d0d5; }

/* Pro — spectrum bar */
.pro-spectrum-bar {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(to right,
    #ff0000, #ff7700, #ffff00, #00cc00,
    #00cccc, #0044ff, #cc00cc, #ff0000);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  position: relative;
  overflow: hidden;
}
.pro-spectrum-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.35) 0%, transparent 45%, rgba(0,0,0,.2) 100%);
}
.pro-hue-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.hue-track {
  flex: 1;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right,
    #ff0000, #ff7700, #ffff00, #00cc00,
    #00cccc, #0044ff, #cc00cc, #ff0000);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  position: relative;
}
.hue-thumb {
  position: absolute;
  top: 50%;
  left: 22%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(0,0,0,.18);
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
.pro-preview-chip {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ff7700;
  border: 2.5px solid rgba(0,0,0,.07);
  box-shadow: 0 3px 10px rgba(0,0,0,.14);
  flex-shrink: 0;
}
.pro-hex-box {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f0f0f5;
  border-radius: 10px;
  padding: 9px 14px;
  margin-top: 12px;
}
.pro-hex-box .hash {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
  user-select: none;
}
.pro-hex-box .hex-val {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pro-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.pro-preset {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1.5px solid rgba(0,0,0,.07);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

/* tier column separator */
.color-tier-col + .color-tier-col {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
@media (max-width: 700px) {
  .color-tier-col + .color-tier-col {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 24px;
    margin-top: 8px;
  }
}

/* ─────────────────────────────
    STEP 3 — FINISH TABLE
───────────────────────────── */
.finish-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .finish-table { width: 100%; min-width: 520px; border-collapse: collapse; }
    .finish-table thead {
      /*position: sticky;
      top: 90px;
      z-index: 1029;*/
      background: var(--background);
    }
    .finish-table thead th {
      padding: 0 12px 20px;
      text-align: center;
      font-weight: 400;
    }
    .finish-table thead th:first-child {
      text-align: right;
      width: 140px;
      padding-right: 20px;
    }
    .finish-table tbody tr { border-top: 1px solid var(--border); }
    .finish-table td {
      padding: 18px 12px;
      vertical-align: middle;
      text-align: center;
    }
    .finish-table td.row-label {
      text-align: right;
      padding-right: 20px;
      font-size: .8rem;
      color: var(--muted);
      line-height: 1.5;
      white-space: nowrap;
      vertical-align: middle;
    }
    .finish-table td.row-label strong { display: block; color: var(--ink); }
    .finish-table td:not(:first-child) { border-left: 1px solid var(--border); }

    @media (max-width: 768px) {
    .finish-table td.row-label strong { display: inline;margin-left:5px; }
    }

    .opts {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
    }
    .opt { display: flex; flex-direction: column; align-items: center; gap: 5px; }
    .opt-lbl { font-size: .62rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
    .opt img {
      display: block;
      object-fit: contain;
      border-radius: 6px;
    }
    .opt img.sm  { width: 75px; height: 40px; }
    .opt img.md  { width: 105px; height: 105px; }
    .opt img.cut { width: 75px; height: 75px; }

    @media (max-width: 768px) {
    .opt img.sm  { width: 50px; height: 26px; }
    .opt img.md  { width: 70px; height: 70px; }
    .opt img.cut { width: 50px; height: 50px; }
    }

    .cell-text { font-size: .82rem; color: var(--muted); line-height: 1.7; }
    .cell-text strong { color: var(--ink); }
    .cell-empty { font-size: .8rem; color: var(--border); }

    @media (max-width: 768px) {
      .finish-table thead tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
      .finish-table thead th:first-child { display: none; }
      .finish-table thead th { padding: 0 0 12px 0; width: auto; text-align: center; }
      .finish-table tbody tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
      .finish-table td.row-label {
        grid-column: 1 / -1;
        text-align: left;
        padding: 12px 0 8px 0;
        padding-right: 0;
        white-space: normal;
        background: var(--surface-secondary);
        padding-left: 12px;
        border-left: none;
      }
      .finish-table td {
        padding: 12px 6px;
        border-left: none !important;
        border-top: none;
      }
      .finish-wrap { overflow-x: visible; }
      .finish-table { min-width: auto; }
    }
