/* ==========================================================================
   Catalog slice: /wholesale/ (route-catalog) and /wholesale/{sport}/ (route-sport).
   Spec Sheet direction: hairline rules, mono labels, facts before pictures.
   ========================================================================== */

/* ---------- shared hero layout: copy left, spec card right ---------- */
.cx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(24px, 4vw, 56px); align-items: end; }
.cx-hero-copy { min-width: 0; }
.cx-hero-copy .lede { max-width: 60ch; }

.cx-spec { background: var(--surface); color: var(--ink); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 18px 20px 8px; box-shadow: var(--shadow); position: relative; }
.cx-spec::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--accent); border-radius: var(--radius) var(--radius) 0 0; }
.cx-spec-h { margin: 0 0 6px; font: 600 .7rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.cx-spec dl { margin: 0; }
.cx-spec dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.cx-spec dt { font: 500 .68rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cx-spec dd { margin: 0; font-size: .9rem; font-weight: 600; line-height: 1.35; }
.cx-spec dd small { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-2); }
.cx-spec-price { margin: 4px 0 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.cx-spec-price b { font: 600 2rem/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cx-spec-price small { font-size: .78rem; color: var(--ink-2); }

/* ---------- catalog index ---------- */
.route-catalog .cx-hero { padding-block: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--rule); }
.route-catalog .cx-hero h1.display { font-size: clamp(2rem, 4.4vw, 3.4rem); }

/* Catalog search: GET /wholesale/?q= */
.cx-search { margin: 22px 0 0; max-width: 560px; }
.cx-search-label { display: block; margin: 0 0 8px; font: 600 .7rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.cx-search-row { display: flex; gap: 8px; }
.cx-search input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; box-shadow: inset 0 1px 2px rgba(14, 27, 44, .06); }
.cx-search input::placeholder { color: #6b788a; opacity: 1; }
.cx-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.cx-search .btn { flex: none; min-height: 48px; padding-inline: 22px; }
.cx-search-hint { margin: 6px 0 0; font-size: .8rem; color: var(--ink-2); }
.cx-try { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cx-try .chip { min-height: 44px; padding-inline: 12px; }
.cx-try .chip:hover, .cx-try .chip:focus-visible { border-color: var(--accent); color: var(--accent-ink); }
.cx-try .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cx-try .chip[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }

.cx-results-band { padding-block: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--rule); }
.cx-results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.cx-results-head h2 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.6rem); overflow-wrap: anywhere; }
.cx-results-n { font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.cx-results-q { color: var(--ink-2); }
.cx-results-clear { display: inline-flex; align-items: center; min-height: 44px; font: 500 .78rem/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); }
.cx-results-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; }
.cx-results-in > span { margin-right: 4px; font: 500 .68rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.cx-results-in a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: .84rem; text-decoration: none; }
.cx-results-in a b { font: 500 .7rem/1 var(--f-mono); color: var(--accent-ink); }
.cx-results-in a:hover, .cx-results-in a:focus-visible { border-color: var(--accent); }
.cx-none { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; padding: clamp(18px, 3vw, 28px); border: 2px dashed #b9c8ef; border-radius: var(--radius); background: var(--accent-soft); }
.cx-none-copy { flex: 1 1 420px; max-width: 64ch; }
.cx-none-copy p { margin: 0; }
.cx-none-copy p + p { margin-top: 8px; color: var(--ink-2); }
.custom-banner .custom-strip { margin-top: 12px; }

.cx-sports-band { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 88px); }
.cx-sports-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.cx-sports-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0; }
.cx-sports-head p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.cx-sports-head b { font-family: var(--f-mono); color: var(--ink); }

.cx-sports { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cx-sports li { min-width: 0; }
.cx-sport { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.cx-sport-img { display: block; aspect-ratio: 16 / 7; overflow: hidden; background: var(--navy); }
.cx-sport-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.cx-sport-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 12px; flex: 1; }
.cx-sport-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cx-sport-top strong { font: 600 1.15rem/1.15 var(--f-display); letter-spacing: -.01em; }
.cx-sport-n { font: 500 .68rem/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.cx-sport-items { font-size: .82rem; line-height: 1.45; color: var(--ink-2); }
.cx-sport-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .78rem; color: var(--ink-2); }
.cx-sport-foot b { font: 600 1rem/1 var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.cx-sport .go { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule-strong); color: var(--accent-ink); transition: background .2s, color .2s, border-color .2s; }
.cx-sport:hover, .cx-sport:focus-visible { border-color: var(--accent); box-shadow: var(--shadow-hover); }
.cx-sport:hover .go, .cx-sport:focus-visible .go { background: var(--accent); border-color: var(--accent); color: #fff; }
.cx-sport:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) { .cx-sport:hover { transform: translateY(-2px); } .cx-sport:hover .cx-sport-img img { transform: scale(1.04); } }
.cx-note { margin-top: 14px; }

@media (max-width: 1100px) { .cx-sports { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .cx-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .cx-spec { max-width: 560px; }
  .cx-sports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cx-sports { grid-template-columns: 1fr; gap: 8px; }
  /* Cards stay stacked: a narrow strip cropped the wide photos down to empty field or ice. */
  .cx-sport-img { aspect-ratio: 16 / 6; }
  .cx-sport-body { padding: 10px 12px; gap: 6px; }
  .cx-sport-items { font-size: .78rem; }
  .cx-spec dl div { grid-template-columns: 84px minmax(0, 1fr); }
}

/* ---------- sport page ---------- */
.cx-sport-hero::after { background: linear-gradient(90deg, rgba(14,27,44,.94) 0%, rgba(14,27,44,.80) 55%, rgba(14,27,44,.55)); }
.cx-sport-hero .sport-hero-inner { padding-block: clamp(28px, 4vw, 56px); }
.cx-sport-hero h1.display { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.cx-sport-hero .hero-cta { margin-top: 22px; }
.cx-sport-hero .cx-spec { border-color: transparent; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.cx-range-h { margin: 20px 0 8px; font: 500 .68rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #9db6ff; }
.cx-range { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cx-range a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; color: #fff; text-decoration: none; font-size: .86rem; background: rgba(255,255,255,.06); transition: background .2s, border-color .2s; }
.cx-range a span { font: 500 .7rem/1 var(--f-mono); color: #9db6ff; }
.cx-range a:hover, .cx-range a:focus-visible { background: rgba(255,255,255,.14); border-color: #9db6ff; }

.cx-styles-band { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 88px); }
.cx-styles-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 4px; }
.cx-styles-head h2 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.6rem); display: flex; align-items: baseline; gap: 10px; }
.cx-styles-head h2 span { font: 500 .8rem/1 var(--f-mono); color: var(--ink-2); }
.cx-styles-head .cx-custom { margin: 0; font-size: .8rem; color: var(--ink-2); }
.route-sport .filter-bar { margin-bottom: 20px; border-bottom: 1px solid var(--rule); }

/* Product cards on sport pages and search results: name, code, price first. The custom promise sits once outside the grid. */
.route-sport .products, .cx-results { gap: 12px; }
.route-sport .pcard, .cx-results .pcard { border-radius: var(--radius); box-shadow: none; }
.route-sport .pcard .cat, .cx-results .pcard .cat { color: var(--accent-ink); font-weight: 600; }
.route-sport .pcard h3, .route-sport .pcard h4, .cx-results .pcard h3 { font-size: 1rem; }
.route-sport .pcard .pdesc, .cx-results .pcard .pdesc { margin: 0; font-size: .82rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.route-sport .pcard:not(.pcard-custom) .pcard-custom, .cx-results .pcard .pcard-custom { display: none; }
.route-sport .pcard .price span:first-child, .cx-results .pcard .price span:first-child { font: 500 .66rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.route-sport .group-h { font-size: 1.15rem; display: flex; align-items: center; gap: 12px; }
.route-sport .group-h::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.route-sport .group + .group { margin-top: 32px; }

@media (max-width: 560px) {
  .cx-sport-hero .cx-spec { box-shadow: none; }
  .cx-range a { min-height: 40px; }
  .cx-search .btn { padding-inline: 16px; }
  .cx-try { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; overscroll-behavior-x: contain; }
  .cx-try::-webkit-scrollbar { display: none; }
  .cx-try .chip { flex: none; }
  .cx-results .pcard .body { padding: 10px 10px 12px; gap: 4px; }
  .cx-results .pcard h3 { font-size: .98rem; line-height: 1.22; overflow-wrap: anywhere; }
  .cx-results .pcard .cat { font-size: .64rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cx-results .pcard .price { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 8px; }
  .cx-none .cta-actions { width: 100%; }
  .cx-results-in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .cx-results-in::-webkit-scrollbar { display: none; }
  .cx-results-in a { flex: none; }
}
/* On a search result page, phones see the results right under the search box; the full terms card shows on /wholesale/ itself. */
@media (max-width: 860px) {
  .cx-hero.is-searching .cx-spec { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cx-sport, .cx-sport-img img, .cx-sport .go, .cx-range a { transition: none; }
  .cx-sport:hover { transform: none; }
  .cx-sport:hover .cx-sport-img img { transform: none; }
}
