/* wholesale.golddubs.com
   Golddubs palette (matches golddubs.com and HQ). Garment cards follow the
   Flight Dreams shop card: tall 3:4 image, square corners, an action bar that
   rises on hover, and name / tag beneath. */

:root {
  --ground: #0a0a0a;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --line: #262626;
  --line-soft: #1c1c1c;
  --gold: #d4af37;
  --gold-bright: #e5c158;
  --text: #ffffff;
  --muted: #a3a3a3;      /* 7.9:1 on ground */
  --faint: #7a7a7a;      /* 4.6:1 on ground */
  --wrap: 1180px;
  --gutter: 20px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--ground); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: var(--wrap); margin: 0 auto; width: 100%;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- header ---------- */

.announce {
  background: var(--gold); color: #000; text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 7px var(--gutter); padding-top: calc(7px + env(safe-area-inset-top, 0px));
}
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 10, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) 12px max(var(--gutter), env(safe-area-inset-left, 0px));
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 36px; height: 36px; }
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.logo-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); padding: 2px 7px; }
.nav { display: flex; gap: 22px; }
.nav a { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- hero ---------- */

.hero { padding: 56px 0 28px; border-bottom: 1px solid var(--line-soft); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -0.5px; max-width: 18ch; text-wrap: balance; }
.lede { margin-top: 14px; max-width: 58ch; color: var(--muted); font-size: 16.5px; }

/* ---------- toolbar ---------- */

.section { padding: 32px 0 56px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 7px 12px;
}
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip.active { background: var(--gold); border-color: var(--gold); color: #000; }
.search input { width: 240px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); padding: 9px 12px; }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--gold); }

/* ---------- garment cards ---------- */

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 16px; }
.status { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; }

.card { position: relative; cursor: pointer; text-align: left; background: none; border: 0; padding: 0; width: 100%; }
.card-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.16, 1, .3, 1); }
.card:hover .card-img img { transform: scale(1.04); }
.placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.placeholder svg { width: 42%; fill: none; stroke: #3a3a3a; stroke-width: 1.2; }
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  background: #fff; color: #000; padding: 4px 8px;
}
.card-action {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  background: #fff; color: #000; padding: 13px 14px; text-align: center;
  font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  transform: translateY(calc(100% + 14px)); transition: transform 0.4s cubic-bezier(.16, 1, .3, 1);
}
.card:hover .card-action, .card:focus-visible .card-action { transform: none; }
@media (hover: none) { .card-action { transform: none; } }
.card-meta { padding-top: 13px; }
.card-name { font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-tag { font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.card-quote { font-size: 13px; font-weight: 700; color: var(--gold); white-space: nowrap; }

/* ---------- how pricing works ---------- */

.how { border-top: 1px solid var(--line-soft); }
.how h2 { font-size: 22px; margin-bottom: 16px; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); padding: 18px; color: var(--muted); }
.steps li::before { content: counter(step); display: block; font-size: 28px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.steps strong { color: var(--text); display: block; }
.fine { margin-top: 16px; color: var(--faint); font-size: 13.5px; max-width: 70ch; }

.site-footer { border-top: 1px solid var(--line); padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px)); color: var(--faint); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-inner a:hover { color: var(--gold); }

/* ---------- quote dialog ---------- */

.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog {
  position: relative; width: min(940px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--ground); border: 1px solid var(--line); display: grid; grid-template-columns: 0.85fr 1fr;
}
.dialog-img { background: var(--surface); aspect-ratio: 3 / 4; }
.dialog-img img { width: 100%; height: 100%; object-fit: cover; }
.dialog-body { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dialog-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-size: 16px; z-index: 3; }
.dialog-close:hover { border-color: var(--gold); color: var(--gold); }
.dialog h2 { font-size: 24px; line-height: 1.2; padding-right: 36px; text-wrap: balance; }

.qty { display: grid; gap: 6px; }
.qty label { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line); width: max-content; }
.stepper button { width: 46px; background: var(--surface); border: 0; cursor: pointer; font-size: 20px; }
.stepper button:hover { color: var(--gold); }
.stepper input { width: 96px; text-align: center; background: var(--ground); border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 20px; font-weight: 700; padding: 10px 6px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }

.price-box { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; display: grid; gap: 6px; }
.price-each { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-each b { font-size: 34px; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.price-each span { color: var(--muted); font-size: 14px; }
.price-tier { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.totals { display: grid; gap: 4px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14.5px; }
.totals div.total { color: var(--text); font-weight: 700; font-size: 17px; }
.nudge { font-size: 14px; color: var(--gold-bright); }
.nudge button { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

.ladder { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.ladder th { text-align: left; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 0 10px 6px; }
.ladder td { padding: 9px 10px; border-top: 1px solid var(--line-soft); }
.ladder td:last-child, .ladder th:last-child { text-align: right; }
.ladder tr[data-min] { cursor: pointer; }
.ladder tr[data-min]:hover td { background: var(--surface); }
.ladder tr.active td { background: var(--surface-2); color: var(--gold); font-weight: 700; }
.ladder tr.active td:first-child { box-shadow: inset 2px 0 0 var(--gold); }

.dialog-note { font-size: 13px; color: var(--faint); }

@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px; }
  .steps { grid-template-columns: 1fr; }
  .dialog { grid-template-columns: 1fr; }
  .dialog-img { aspect-ratio: 4 / 3; }
  .nav { display: none; }
  .search, .search input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-img img, .card-action { transition: none; }
}
