/* ==========================================================================
   KODE GARMENT — Blanks Catalogue (blanks-catalogue.php)
   A dark search hero with the brand medallions, then categories, filters and
   product cards. Markup inside the [data-bc-*] containers is rendered by
   assets/js/catalogue.js from assets/js/catalogue-data.js.
   Loads after site.css and blanks.css.
   ========================================================================== */

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

/* no overflow clip: the suggestion list must be able to hang past the hero */
.bc-hero { position: relative; z-index: 5; isolation: isolate; background: #111113; color: #fff; }
.bc-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bc-hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 75% at 92% 6%, rgba(255,255,255,.07), transparent 62%),
    radial-gradient(45% 60% at 0% 100%, rgba(255,255,255,.03), transparent 60%);
}
.bc-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M0 22L22 0' stroke='%23FFFFFF' stroke-opacity='.07' stroke-width='2' stroke-dasharray='3.889 3.889'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(70% 85% at 100% 0%, #000 0%, rgba(0,0,0,.25) 50%, transparent 78%);
          mask-image: radial-gradient(70% 85% at 100% 0%, #000 0%, rgba(0,0,0,.25) 50%, transparent 78%);
}
.bc-hero__in { padding-top: 26px; }
@media (min-width: 1024px) { .bc-hero__in { padding-top: 36px; } }

.bc-crumb { font-family: var(--kg-font-mono); font-size: 12.5px; color: rgba(255,255,255,.48); }
.bc-crumb a { color: inherit; text-decoration: none; }
.bc-crumb a:hover { color: #fff; }
.bc-crumb span { margin-inline: 8px; }

/* explicit minmax(0,1fr): an implicit auto column grows to the stats panel's max-content and pushes the hero past a phone screen */
.bc-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; margin-top: 40px; }
.bc-hero__grid > * { min-width: 0; }
@media (min-width: 1100px) { .bc-hero__grid { grid-template-columns: minmax(0, 1fr) 372px; gap: 64px; align-items: end; } }

.bc-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-family: var(--kg-font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #FF9A5C; }
.bc-kicker::before { content: ""; width: 28px; border-top: 2px dashed #F37021; }
.bc-title {
  margin: 20px 0 0; font-family: var(--kg-font-display); font-weight: 800; font-variation-settings: 'wdth' 90, 'wght' 800;
  font-size: clamp(44px, 6vw, 104px); line-height: .9; letter-spacing: -.025em; text-transform: uppercase; color: #fff; text-wrap: balance;
}
.bc-title span { display: block; color: #F37021; }
.bc-lede { max-width: 54ch; margin-top: 22px; font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.6; color: rgba(255,255,255,.7); }

.bc-search { position: relative; z-index: 20; display: flex; gap: 10px; max-width: 760px; margin-top: 30px; }
.bc-search__box {
  display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; height: 60px; padding: 0 8px 0 18px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.06);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.bc-search__box:hover { border-color: rgba(255,255,255,.34); }
.bc-search__box:focus-within { border-color: rgba(255,255,255,.62); background: rgba(255,255,255,.1); box-shadow: 0 0 0 4px rgba(255,255,255,.1); }
.bc-search__box > .kg-ico { width: 22px; height: 22px; color: rgba(255,255,255,.6); }
.bc-search__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 17px var(--kg-font-body); color: #fff; }
.bc-search__input:focus-visible { outline: none; }
.bc-search__input::placeholder { font-weight: 400; color: rgba(255,255,255,.5); }
.bc-search__input::-webkit-search-cancel-button { display: none; }
.bc-kbd { flex: none; padding: 2px 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; font-family: var(--kg-font-mono); font-size: 12px; color: rgba(255,255,255,.6); }
.bc-search__clear { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.6); cursor: pointer; }
.bc-search__clear:hover { background: rgba(255,255,255,.1); color: #fff; }
.bc-search__go { height: 60px; padding: 0 28px; border-radius: 14px; font-size: 16px; }
@media (max-width: 639px) {
  .bc-kbd { display: none; }
  .bc-search__box { height: 54px; padding-left: 14px; }
  .bc-search__go { height: 54px; padding: 0 18px; }
}

.bc-suggest {
  position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 30;
  max-height: min(70vh, 560px); overflow: auto; padding: 6px;
  border: 1px solid var(--kg-line); border-radius: 16px; background: var(--kg-ground); color: var(--kg-ink);
  box-shadow: 0 30px 70px -24px rgba(0,0,0,.55);
}
.bc-suggest__group { padding: 4px 0; }
.bc-suggest__group + .bc-suggest__group { border-top: 1px solid var(--kg-line-soft); }
.bc-suggest__label { padding: 8px 12px 4px; font-family: var(--kg-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--kg-muted); }
.bc-opt { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--kg-ink); cursor: pointer; }
.bc-opt.is-active, .bc-opt:hover { background: var(--kg-accent-wash); }
.bc-opt__thumb { display: grid; flex: none; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--kg-line); color: var(--kg-ink-soft); }
.bc-opt__thumb img { max-width: 86%; max-height: 86%; object-fit: contain; }
.bc-opt__thumb .kg-ico { width: 24px; height: 24px; }
.bc-opt__logo { border-radius: 50%; }
.bc-opt__logo img { max-width: 72%; max-height: 42%; filter: brightness(0); }
.bc-opt__logo.is-knockout img { max-width: 100%; max-height: 60%; filter: invert(1) grayscale(1) contrast(1.8); mix-blend-mode: multiply; }
.bc-opt__logo .bc-medal__word { padding: 0 4px; font-size: 7px; }
.bc-opt__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bc-opt__meta { overflow: hidden; font-family: var(--kg-font-mono); font-size: 12.5px; font-weight: 400; color: var(--kg-muted); white-space: nowrap; text-overflow: ellipsis; }
.bc-opt mark { background: transparent; font-weight: 700; color: var(--kg-accent-ink); }
.bc-opt__all { justify-content: space-between; font-family: var(--kg-font-mono); font-size: 13px; color: var(--kg-accent-ink); }
.bc-opt__all .kg-ico { width: 16px; height: 16px; }

.bc-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.bc-quick__label { margin-right: 6px; font-family: var(--kg-font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.bc-quick button { padding: 5px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: transparent; font-family: var(--kg-font-mono); font-size: 12.5px; color: rgba(255,255,255,.86); cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.bc-quick button:hover { border-color: #fff; background: #fff; color: #111113; }

.bc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.12); }
.bc-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 22px 24px; background: #1A1A1D; }
.bc-stats dd { margin: 0; font-family: var(--kg-font-display); font-weight: 800; font-variation-settings: 'wdth' 90, 'wght' 800; font-size: clamp(26px, 2.2vw, 34px); line-height: 1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-stats dd small { margin-left: 5px; font-size: .46em; letter-spacing: .02em; color: #FF9A5C; }
.bc-stats dt { font-family: var(--kg-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.bc-stat--live dt::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; background: #3FBF7F; box-shadow: 0 0 0 3px rgba(63,191,127,.22); }
@media (max-width: 479px) {
  .bc-stats > div { padding: 16px; }
  .bc-stats dd { font-size: 24px; }
  .bc-kicker { gap: 10px; font-size: 11px; letter-spacing: .12em; }
  .bc-kicker::before { width: 18px; }
  .bc-hero__grid { margin-top: 28px; }
}

/* ---------- brand medallions ---------- */

.bc-eyebrow { margin: 0; font-family: var(--kg-font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--kg-muted); }
.bc-medals-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-top: 54px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.bc-medals-head .bc-eyebrow { color: rgba(255,255,255,.55); }
.bc-brandhint { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0; font-family: var(--kg-font-mono); font-size: 12.5px; color: rgba(255,255,255,.55); }
.bc-brandhint button { padding: 2px 0; border: 0; background: none; font: inherit; color: #FF9A5C; cursor: pointer; }
.bc-brandhint button:hover { text-decoration: underline; text-underline-offset: 3px; }

.bc-medals { display: flex; gap: clamp(12px, 1.4vw, 20px); margin-inline: calc(-1 * var(--gut)); padding: 24px var(--gut) 48px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.bc-medals::-webkit-scrollbar { display: none; }
@media (min-width: 1180px) { .bc-medals { justify-content: space-between; overflow: visible; } }

.bc-medal { --d: clamp(84px, 7vw, 104px); position: relative; display: flex; flex: none; flex-direction: column; align-items: center; gap: 12px; width: var(--d); padding: 0; border: 0; background: none; color: #fff; cursor: pointer; scroll-snap-align: start; }
.bc-medal:focus-visible { outline: none; }
.bc-medal__disc {
  position: relative; display: grid; place-items: center; width: var(--d); height: var(--d);
  overflow: hidden; border-radius: 50%; background: #fff; box-shadow: 0 16px 34px -16px rgba(0,0,0,.85);
  transition: transform .3s cubic-bezier(.2,.9,.3,1), box-shadow .3s ease;
}
.bc-medal:hover .bc-medal__disc { transform: translateY(-5px); box-shadow: 0 0 0 3px rgba(255,255,255,.3), 0 24px 40px -18px rgba(0,0,0,.95); }
.bc-medal:focus-visible .bc-medal__disc { box-shadow: 0 0 0 3px #111113, 0 0 0 6px #F37021; }
.bc-medal[aria-pressed="true"] .bc-medal__disc { box-shadow: 0 0 0 3px #F37021, 0 24px 40px -18px rgba(0,0,0,.95); }
/* per-brand optical sizing comes from the data as --lw / --lh */
.bc-medal__disc img { display: block; width: auto; height: auto; max-width: var(--lw, 66%); max-height: var(--lh, 42%); object-fit: contain; filter: brightness(0); opacity: .92; }
/* white-on-dark logo boxes: invert to ink on white, and let the white box vanish into the disc */
.bc-medal__disc.is-knockout img { width: var(--lw, 96%); max-width: none; max-height: none; filter: invert(1) grayscale(1) contrast(1.8); mix-blend-mode: multiply; opacity: 1; }
.bc-medal__word { padding: 0 8px; font-family: var(--kg-font-display); font-weight: 800; font-variation-settings: 'wdth' 90, 'wght' 800; font-size: calc(var(--d, 104px) * .1); line-height: 1.05; letter-spacing: .01em; text-align: center; text-transform: uppercase; color: #111113; }
.bc-medal__check { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #F37021; color: #fff; box-shadow: 0 0 0 3px #111113; opacity: 0; transform: scale(.5); transition: opacity .2s ease, transform .2s ease; }
.bc-medal__check .kg-ico { width: 14px; height: 14px; stroke-width: 2.6; }
.bc-medal[aria-pressed="true"] .bc-medal__check { opacity: 1; transform: none; }
.bc-medal__n { font-family: var(--kg-font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); white-space: nowrap; transition: color .2s ease; }
.bc-medal:hover .bc-medal__n { color: rgba(255,255,255,.85); }
.bc-medal[aria-pressed="true"] .bc-medal__n { color: #FF9A5C; }

/* ---------- category rail ---------- */

.bc-main { padding-block: 6px 96px; }
.bc-cats { display: flex; gap: 8px; padding: 34px 2px 6px; overflow-x: auto; scrollbar-width: none; }
.bc-cats::-webkit-scrollbar { display: none; }
.bc-cat {
  display: inline-flex; flex: none; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 13px;
  border: 1px solid var(--kg-line); border-radius: 999px; background: var(--kg-ground);
  font: 500 14.5px var(--kg-font-body); color: var(--kg-ink); white-space: nowrap; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.bc-cat .kg-ico { width: 19px; height: 19px; color: var(--kg-muted); }
.bc-cat__n { font-family: var(--kg-font-mono); font-size: 12px; color: var(--kg-muted); }
.bc-cat:hover { border-color: var(--kg-ink); }
.bc-cat:disabled { opacity: .4; cursor: default; }
.bc-cat:disabled:hover { border-color: var(--kg-line); }
.bc-cat[aria-pressed="true"] { border-color: #111113; background: #111113; color: #fff; }
.bc-cat[aria-pressed="true"] .kg-ico { color: #fff; }
.bc-cat[aria-pressed="true"] .bc-cat__n { color: rgba(255,255,255,.6); }

/* ---------- layout + pill buttons ---------- */

.bc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 20px; }
.bc-layout > * { min-width: 0; }
@media (min-width: 1024px) { .bc-layout { grid-template-columns: 256px minmax(0, 1fr); gap: 44px; align-items: start; } }
.bc-main .kg-btn { border-radius: 999px; }
.bc-results { scroll-margin-top: calc(var(--hd) + var(--tick) + 16px); }

/* ---------- filters ---------- */

.bc-filters__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--kg-line); }
.bc-filters__title { margin: 0; font-family: var(--kg-font-display); font-weight: 800; font-variation-settings: 'wdth' 90, 'wght' 800; font-size: 14.5px; letter-spacing: .08em; text-transform: uppercase; }
.bc-linkbtn { margin-left: auto; padding: 4px 0; border: 0; background: none; font-family: var(--kg-font-mono); font-size: 12.5px; color: var(--kg-accent-ink); cursor: pointer; }
.bc-linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.bc-group { border-bottom: 1px solid var(--kg-line); }
.bc-group > summary { display: flex; align-items: center; gap: 8px; padding: 15px 0; list-style: none; font-size: 15px; font-weight: 600; cursor: pointer; }
.bc-group > summary::-webkit-details-marker { display: none; }
.bc-group > summary > .kg-ico { width: 16px; height: 16px; margin-left: 8px; color: var(--kg-muted); transition: transform .2s ease; }
.bc-group[open] > summary > .kg-ico { transform: rotate(180deg); }
.bc-group__sel { margin-left: auto; font-family: var(--kg-font-mono); font-size: 12px; font-weight: 400; color: var(--kg-accent-ink); }
.bc-group__body { padding-bottom: 14px; }

.bc-find { display: flex; align-items: center; gap: 8px; height: 38px; margin-bottom: 8px; padding: 0 12px; border: 1px solid var(--kg-line); border-radius: 999px; color: var(--kg-muted); }
.bc-find:focus-within { border-color: var(--kg-ink); }
.bc-find .kg-ico { width: 16px; height: 16px; }
.bc-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 14.5px var(--kg-font-body); color: var(--kg-ink); }
.bc-find input:focus-visible { outline: none; }

.bc-check { position: relative; display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 15px; color: var(--kg-ink); cursor: pointer; }
.bc-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bc-check__box { display: grid; flex: none; place-items: center; width: 18px; height: 18px; border: 1.5px solid var(--kg-line); border-radius: 5px; background: var(--kg-ground); transition: background-color .12s ease, border-color .12s ease; }
.bc-check__box svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.bc-check:hover .bc-check__box { border-color: var(--kg-ink-soft); }
.bc-check input:checked + .bc-check__box { border-color: var(--kg-ink); background: var(--kg-ink); }
.bc-check input:checked + .bc-check__box svg { opacity: 1; }
.bc-check input:focus-visible + .bc-check__box { outline: 2px solid var(--kg-accent); outline-offset: 2px; }
.bc-check__label { flex: 1; min-width: 0; }
.bc-check__n { font-family: var(--kg-font-mono); font-size: 12.5px; color: var(--kg-muted); }
.bc-check.is-empty { opacity: .45; cursor: default; }
.bc-check.is-hidden { display: none; }

.bc-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-swatch { width: 30px; height: 30px; padding: 0; border: 1px solid rgba(18,18,20,.22); border-radius: 50%; box-shadow: inset 0 0 0 2px var(--kg-ground); cursor: pointer; }
.bc-swatch[aria-pressed="true"] { outline: 2px solid var(--kg-ink); outline-offset: 2px; }
.bc-swatch:disabled { opacity: .22; cursor: default; }
.bc-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-size { min-width: 46px; height: 34px; padding: 0 8px; border: 1px solid var(--kg-line); border-radius: 999px; background: var(--kg-ground); font: 600 12.5px var(--kg-font-mono); color: var(--kg-ink); cursor: pointer; }
.bc-size:hover { border-color: var(--kg-ink-soft); }
.bc-size[aria-pressed="true"] { border-color: var(--kg-ink); background: var(--kg-ink); color: #fff; }
.bc-size:disabled { opacity: .35; cursor: default; }

.bc-filters .bc-filters__x, .bc-filters__apply, .bc-filterbtn { display: none; }
.bc-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(11,11,13,.45); }
@media (min-width: 1024px) {
  .bc-filters { position: sticky; top: calc(var(--hd) + var(--tick) + 18px); max-height: calc(100vh - var(--hd) - var(--tick) - 36px); overflow: auto; padding-right: 8px; scrollbar-width: thin; }
  .bc-scrim { display: none; }
}
@media (max-width: 1023px) {
  .bc-filterbtn { display: inline-flex; }
  .bc-filters {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(92vw, 380px); overflow: auto;
    padding: 16px 20px 0; background: var(--kg-ground); box-shadow: -24px 0 60px -20px rgba(0,0,0,.45);
    translate: 100% 0; visibility: hidden; transition: translate .25s ease, visibility 0s linear .25s;
  }
  .bc-filters.is-open { translate: 0 0; visibility: visible; transition-delay: 0s; }
  .bc-filters .bc-filters__x { display: grid; }
  .bc-filters__apply { position: sticky; bottom: 0; display: block; margin: 0 -20px; padding: 12px 20px; border-top: 1px solid var(--kg-line); background: var(--kg-ground); }
  .bc-filters__apply .kg-btn { width: 100%; }
}

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

.bc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--kg-line); }
.bc-count { font-family: var(--kg-font-mono); font-size: 13.5px; color: var(--kg-muted); }
.bc-count b { font-weight: 600; color: var(--kg-ink); }
.bc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bc-filterbtn { gap: 8px; }
.bc-filterbtn [data-bc-nsel] { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--kg-accent); font: 600 12px/20px var(--kg-font-mono); color: #fff; text-align: center; }
.bc-select {
  height: 40px; padding: 0 36px 0 16px; border: 1px solid var(--kg-line); border-radius: 999px; appearance: none;
  background: var(--kg-ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6862' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") right 12px center / 14px no-repeat;
  font: 500 14.5px var(--kg-font-body); color: var(--kg-ink); cursor: pointer;
}
.bc-select:hover { border-color: var(--kg-ink); }
.bc-seg { display: flex; overflow: hidden; border: 1px solid var(--kg-line); border-radius: 999px; }
.bc-seg button { display: grid; place-items: center; width: 42px; height: 38px; border: 0; background: var(--kg-ground); color: var(--kg-muted); cursor: pointer; }
.bc-seg button + button { border-left: 1px solid var(--kg-line); }
.bc-seg button[aria-pressed="true"] { background: #111113; color: #fff; }
.bc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border: 0; border-radius: 999px; background: #111113; font: 500 13.5px var(--kg-font-body); color: #fff; cursor: pointer; }
.bc-chip .kg-ico { width: 14px; height: 14px; opacity: .7; }
.bc-chip:hover .kg-ico { opacity: 1; }

/* ---------- product cards: gallery — a large photo on a light panel, the label beneath ---------- */

.bc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 44px 22px; margin-top: 24px; }
.bc-card { display: flex; flex-direction: column; min-width: 0; }
/* the panel stays light in both themes: photos are shot on white and multiply into it */
.bc-card__media {
  --bg: #EEEEF0;
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 22px; background: var(--bg); color: #161619; text-decoration: none; cursor: pointer;
  transition: background-color .35s ease;
}
.bc-card__media:focus-visible { outline: 2px solid var(--kg-accent); outline-offset: 3px; }
.bc-card__photo { position: absolute; inset: 13%; width: 74%; height: 74%; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.bc-card:hover .bc-card__photo { transform: scale(1.07) translateY(-3%); }
/* portrait model shots fill the panel (the script flags them once the photo loads) */
.bc-card__media.is-cover .bc-card__photo { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.bc-card:hover .bc-card__media.is-cover .bc-card__photo { transform: scale(1.04); }
.bc-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--kg-ink-soft); }
.bc-ph .kg-ico { width: 34%; height: 34%; stroke-width: 1.1; }
.bc-card__media .bc-ph { position: absolute; inset: 0; color: #3A3A3F; }

.bc-card__bottom { position: absolute; right: 14px; bottom: 14px; left: 14px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; pointer-events: none; }
.bc-card__sizes { display: flex; flex-wrap: wrap; gap: 4px; opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; }
.bc-card__sizes span { padding: 4px 7px; border-radius: 7px; background: #fff; font-family: var(--kg-font-mono); font-size: 11px; font-weight: 600; color: #161619; }
.bc-card__sizes span.is-out { color: #B9B9BF; text-decoration: line-through; }
.bc-card__go { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #111113; color: #fff; opacity: 0; transform: scale(.7); transition: opacity .3s ease, transform .3s cubic-bezier(.3,1.6,.5,1); }
.bc-card__go svg { width: 18px; height: 18px; }
.bc-card:hover .bc-card__sizes, .bc-card:focus-within .bc-card__sizes,
.bc-card:hover .bc-card__go, .bc-card:focus-within .bc-card__go { opacity: 1; transform: none; }

.bc-card__body { display: flex; flex: 1; flex-direction: column; padding: 16px 4px 0; }
/* a long brand name truncates; the style number always stays whole */
.bc-card__brand { display: flex; margin: 0; font-family: var(--kg-font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--kg-muted); white-space: nowrap; }
.bc-card__brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bc-card__brand b { flex: none; font-weight: 400; }
.bc-card__name { margin: 5px 0 0; font-family: var(--kg-font-body); font-size: 17px; font-weight: 600; line-height: 1.25; }
.bc-card__name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: inherit; text-decoration: none; }
.bc-card__name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* colours, then stock on its own line, so every card in a row lines up the same way */
.bc-card__row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: auto; padding-top: 12px; }
.bc-card__sws { display: flex; align-items: center; gap: 5px; }
.bc-card__sw { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(18,18,20,.2); transition: transform .15s ease; }
.bc-card__sw:hover { transform: scale(1.25); }
.bc-card__more { margin-left: 3px; font-family: var(--kg-font-mono); font-size: 11px; color: var(--kg-muted); }
.bc-card__stock { margin: 0; font-family: var(--kg-font-mono); font-size: 12px; color: var(--kg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-card__stock b { font-weight: 600; color: var(--kg-ink); }
.bc-card__stock.is-low b { color: var(--kg-warn); }
.bc-card__stock.is-out { color: var(--kg-stop); }

.bc-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
.bc-grid.is-list .bc-card { flex-direction: row; align-items: center; gap: 22px; padding-block: 14px; border-bottom: 1px solid var(--kg-line-soft); }
.bc-grid.is-list .bc-card__media { flex: none; width: 112px; aspect-ratio: 1 / 1; border-radius: 16px; }
.bc-grid.is-list .bc-card__photo { inset: 10%; width: 80%; height: 80%; }
.bc-grid.is-list .bc-card__media.is-cover .bc-card__photo { inset: 0; width: 100%; height: 100%; }
.bc-grid.is-list .bc-card:hover .bc-card__photo { transform: none; }
.bc-grid.is-list .bc-card__bottom { display: none; }
.bc-grid.is-list .bc-card__body { min-width: 0; padding: 0; }
.bc-grid.is-list .bc-card__row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 0; }

@media (max-width: 559px) {
  .bc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .bc-card__media { border-radius: 16px; }
  .bc-card__photo { inset: 10%; width: 80%; height: 80%; }
  .bc-card__bottom { display: none; }
  .bc-card__body { padding-top: 12px; }
  .bc-card__name { font-size: 14.5px; }
  .bc-card__sw { width: 14px; height: 14px; }
  .bc-grid.is-list .bc-card__media { width: 92px; }
}

.bc-more-wrap { display: flex; justify-content: center; margin-top: 40px; }
.bc-empty { margin-top: 24px; padding: 44px 24px; border: 1px dashed var(--kg-line); border-radius: 20px; text-align: center; }
.bc-empty h3 { margin: 0; font-family: var(--kg-font-display); font-weight: 800; font-variation-settings: 'wdth' 90, 'wght' 800; font-size: 22px; }
.bc-empty p { margin-top: 8px; color: var(--kg-muted); }
.bc-empty div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* the phone filter sheet locks page scroll while open */
html.bc-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .bc-medal:hover .bc-medal__disc, .bc-card:hover .bc-card__photo { transform: none; }
  .bc-card__media, .bc-card__photo, .bc-card__sizes, .bc-card__go { transition: none; }
}
