/* Kicks & Kits catalogue - styling for every .kkc-* element rendered by catalog.js
   (shop grid + filters, leagues & clubs directory, club page, kit page).
   v3, 15 Sep 2026: restyled to the backprint theme in editorial.css. The markup
   hooks (data-kkc-*) and the render logic in catalog.js are unchanged. */

/* ---------- shop (all-products.html) ---------- */
.shop-head{ padding-top: calc(var(--promo-h) + var(--header-h) + clamp(22px, 4vw, 48px)); }
.shop-title-row{ display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.shop-title{ font-size: clamp(2.4rem, 7vw, 5.4rem); margin: 0; }
.shop-count{ font-family: var(--font-mono); font-stretch: 87.5%; font-size: 14px; color: var(--color-text-muted); }
.shop-cats{ display: flex; gap: 8px; margin-top: clamp(18px, 2.4vw, 28px); overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; }
.shop-cats::-webkit-scrollbar{ display: none; }
.shop-body{ padding-top: clamp(14px, 2vw, 22px); padding-bottom: clamp(40px, 6vw, 80px); }
.shop-bar{
  position: sticky; top: calc(var(--promo-h) + var(--header-h)); z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 12px 0; margin-bottom: 18px;
  background: var(--color-bg); border-bottom: 1px solid var(--hair);
}
.shop-search{
  flex: 1 1 280px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
  background: #fff; border: 1px solid var(--hair); border-radius: var(--radius-full);
}
.shop-search:focus-within{ border-color: var(--ink); }
.shop-search svg{ width: 18px; height: 18px; color: var(--color-text-faint); flex: none; }
.shop-search input{ flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; }
.shop-active{ flex-basis: 100%; font-size: 13px; color: var(--color-text-muted); }
.shop-active:empty{ display: none; }
.shop-filter-toggle{ min-height: 46px; }
.shop-layout{ display: grid; gap: 22px; align-items: start; }
.shop-layout > *{ min-width: 0; }
.shop-more{ text-align: center; margin-top: clamp(28px, 4vw, 48px); }

.kkc-filters{ display: none; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; background: #fff; border-radius: var(--radius-lg); }
.kkc-filters.is-open{ display: grid; }
.kkc-field{ display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kkc-field span{ font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.kkc-field select{
  width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis;
  height: 46px; padding: 0 36px 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--hair-strong); background-color: #fff; color: var(--color-text);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230D0E10' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.kkc-field select:focus{ outline: none; border-color: var(--ink); }
.kkc-filters .kkc-reset{ grid-column: 1 / -1; }
@media (min-width: 1080px){
  .shop-layout{ grid-template-columns: 236px minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); }
  .kkc-filters, .kkc-filters.is-open{
    display: grid; grid-template-columns: 1fr; gap: 16px; padding: 0; background: transparent;
    position: sticky; top: calc(var(--promo-h) + var(--header-h) + 90px);
  }
  .shop-filter-toggle{ display: none; }
  .shop-layout .product-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1440px){ .shop-layout .product-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.kkc-empty{
  grid-column: 1 / -1; padding: clamp(40px, 7vw, 90px) 24px; text-align: center;
  color: var(--color-text-muted); background: #fff; border-radius: var(--radius-lg);
}
.kkc-empty strong{ display: block; margin-bottom: 8px; color: var(--color-text); font-family: var(--font-display); font-weight: 900; font-stretch: 118%; font-size: 22px; text-transform: uppercase; }

/* card extras (kkcCard renders inside .card / .card-media / .card-body) */
.kkc-card-foot{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin-top: 6px; }
.kkc-card .card-price{ margin-top: 0; }
.kkc-from{ font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--color-text-faint); text-transform: none; margin-right: 2px; letter-spacing: 0; }
.kkc-tags{ display: flex; gap: 4px; flex-wrap: nowrap; justify-content: flex-end; } /* the group drops under the price as one line, not one tag per line */
.kkc-tags span{
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
  color: var(--color-text-muted); background: rgba(13,14,16,0.06); border-radius: 3px; padding: 3px 6px;
}
.card-media img.is-flat, .card-media img.is-model{ object-fit: cover; }

/* header search suggestions */
.kkc-suggest{
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 280px; z-index: 60;
  background: #fff; border: 1px solid var(--hair); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.kkc-suggest a{ display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--color-text); border-bottom: 1px solid var(--hair); }
.kkc-suggest a:last-child{ border-bottom: 0; }
.kkc-suggest a:hover{ background: var(--color-bg); }
.kkc-suggest a small{ margin-left: auto; font-family: var(--font-mono); font-stretch: 80%; font-size: 11px; color: var(--color-text-faint); }
.kkc-suggest-all{ font-weight: 700; }
.kkc-swatch{
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--_pc, #C9C9C6) 0 55%, var(--_sc, #EDEDEA) 55% 100%);
  box-shadow: inset 0 0 0 1px rgba(13,14,16,0.14);
}

/* ---------- leagues & clubs directory (clubs.html) ---------- */
.dir-head{ padding-top: calc(var(--promo-h) + var(--header-h) + clamp(22px, 4vw, 48px)); padding-bottom: clamp(18px, 3vw, 32px); }
.dir-head h1{ font-size: clamp(2.4rem, 7vw, 5.4rem); margin: 0; }
.dir-head p{ margin-top: 12px; color: var(--color-text-muted); max-width: 56ch; }
.dir-search{ margin-top: 20px; max-width: 520px; }
.kkc-league-section + .kkc-league-section{ margin-top: clamp(36px, 5vw, 64px); }
.kkc-dir-title{
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px;
  font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted);
}
.kkc-dir-title span{ font-family: var(--font-mono); font-stretch: 80%; letter-spacing: 0; color: var(--color-text-faint); }
.kkc-league-list{ border-top: 1px solid var(--hair); }
.kkc-league-row{
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name go" "rack go";
  align-items: center; gap: 10px 16px;
  padding: clamp(14px, 2vw, 22px) 4px; border-bottom: 1px solid var(--hair); color: var(--color-text);
  transition: padding-left .35s var(--ease-out), background .25s ease;
}
.kkc-league-row:hover{ padding-left: 14px; background: rgba(255,255,255,0.6); }
.kkc-league-name{ grid-area: name; font-family: var(--font-display); font-weight: 900; font-stretch: 118%; text-transform: uppercase; font-size: clamp(1.4rem, 3.4vw, 2.6rem); line-height: 1; letter-spacing: -0.01em; }
/* the league's clubs as a rack of shirt colours: primary body, secondary hem */
.kkc-league-rack{ grid-area: rack; display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.kkc-league-rack i{
  display: block; width: 6px; height: 100%; border-radius: 1.5px;
  background: linear-gradient(to bottom, var(--_pc) 0 64%, var(--_sc) 64% 100%);
  box-shadow: inset 0 0 0 1px rgba(13, 14, 16, 0.08);
  transition: transform .3s var(--ease-out); transition-delay: calc(var(--i, 0) * 14ms);
}
.kkc-league-row:hover .kkc-league-rack i{ transform: translateY(-4px); }
.kkc-league-meta{ grid-area: meta; display: none; font-family: var(--font-mono); font-stretch: 80%; font-size: 12px; color: var(--color-text-muted); white-space: nowrap; }
.kkc-league-go{ grid-area: go; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair-strong); display: inline-flex; align-items: center; justify-content: center; transition: background .25s ease, color .25s ease; }
.kkc-league-row:hover .kkc-league-go{ background: var(--ink); color: #fff; border-color: var(--ink); }
@media (min-width: 761px){
  .kkc-league-row{ grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "name rack meta go"; gap: 16px 24px; }
  .kkc-league-rack{ height: 36px; gap: 3px; }
  .kkc-league-rack i{ width: 8px; border-radius: 2px; }
  .kkc-league-meta{ display: block; min-width: 19ch; text-align: right; }
}
@media (prefers-reduced-motion: reduce){ .kkc-league-rack i{ transition: none; } }

.kkc-dir-block{ padding-block: clamp(20px, 3vw, 36px); scroll-margin-top: 120px; }
.kkc-dir-list{ display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 24px; }
.kkc-dir-list a{ display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--color-text); font-size: 15px; }
.kkc-dir-name{ flex: 1; }
.kkc-dir-count{ font-size: 12px; color: var(--color-text-faint); }
/* 19 Sep, his ask "quick ins and outs": a league page is a picker, not a gallery. It was one
   506px photo per club on a phone (Premier League = 12 screens of scrolling). Now 3 across on
   phones. He wants the faces in (19 Sep), so tiles stay 4:5 and anchor to the top. */
.kkc-dir-list-tiles{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
@media (min-width: 560px){ .kkc-dir-list-tiles{ grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 720px){ .kkc-dir-list-tiles{ grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 14px; } }
@media (min-width: 1080px){ .kkc-dir-list-tiles{ grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (min-width: 1560px){ .kkc-dir-list-tiles{ grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.kkc-dir-list-tiles .kkc-club-tile{ display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 0; }
.kkc-tile-media{ position: relative; display: block; aspect-ratio: 4/5; border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.kkc-tile-media::after{ content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--_pc, transparent) 0 76%, var(--_sc, transparent) 76% 100%); }
.kkc-tile-media img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transition: transform .6s var(--ease-out); }
.kkc-club-tile:hover .kkc-tile-media img{ transform: scale(1.04); }
.kkc-dir-list-tiles .kkc-dir-name{ font-weight: 700; font-size: 13px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.kkc-dir-list-tiles .kkc-dir-count{ font-size: 11.5px; margin-top: -3px; }
.kkc-dir-list-tiles .kkc-dir-count::after{ content: ' products'; font-family: var(--font-body); }
.kkc-dir-list-tiles .kkc-swatch{ width: 100%; height: auto; aspect-ratio: 4/5; border-radius: var(--radius-md); }

/* ---------- club page (club.html) ---------- */
.kkc-club-hero{
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: calc(var(--promo-h) + var(--header-h) + clamp(22px, 4vw, 48px));
  padding-bottom: clamp(28px, 4vw, 56px);
  background: var(--_pc, var(--ink)); color: var(--_tc, #fff);
}
.kkc-club-hero::before{
  content: ''; position: absolute; right: -8%; bottom: -30%; width: 55%; aspect-ratio: 1; z-index: -1;
  background: var(--_sc, transparent); opacity: .18; transform: rotate(-24deg); border-radius: 12%;
}
.kkc-club-hero::after{ content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--_sc, transparent); }
.kkc-club-hero .breadcrumb, .kkc-club-hero .breadcrumb a{ color: var(--_tc, #fff); opacity: .8; }
.kkc-club-hero .eyebrow{ color: var(--_tc, #fff); opacity: .8; }
.kkc-club-hero-grid{ display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px){ .kkc-club-hero-grid{ grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); } }
.kkc-club-name{
  margin-top: 10px; font-family: var(--font-display); font-weight: 900; font-stretch: 120%;
  text-transform: uppercase; line-height: .9; letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 7.4vw, 6.6rem); overflow-wrap: anywhere;
}
.kkc-club-meta{ margin-top: 14px; font-size: 15px; font-weight: 600; opacity: .9; }
.kkc-jump{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.kkc-club-hero .chip{ border-color: currentColor; color: var(--_tc, #fff); }
.kkc-club-hero .chip:hover{ background: var(--_tc, #fff); color: var(--_pc, var(--ink)); }
.kkc-club-print{ justify-self: center; color: var(--_tc, #fff); }
.kkc-club-print .backprint{ --bp-name: clamp(13px, 1.4vw, 19px); --bp-num: clamp(110px, 13vw, 210px); --bp-stroke: 0.03em; --bp-edge: var(--_ec, transparent); }
.kkc-club-print .backprint-name{ white-space: normal; max-width: 16ch; line-height: 1.15; }
@media (max-width: 899px){ .kkc-club-print{ display: none; } }

.kkc-club-section{ scroll-margin-top: 120px; }
.kkc-club-section + .kkc-club-section{ border-top: 1px solid var(--hair); }
.kkc-season-head{ display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.kkc-season-head .eyebrow{ margin: 0; font-family: var(--font-display); font-weight: 900; font-stretch: 118%; font-size: clamp(1.6rem, 3.4vw, 2.8rem); letter-spacing: -0.01em; color: var(--color-text); line-height: 1; }
.kkc-season-sub{ font-family: var(--font-mono); font-stretch: 80%; font-size: 13px; color: var(--color-text-muted); }
.kkc-kit-group{ margin-top: clamp(28px, 4vw, 48px); }
.kkc-kit-group:first-child{ margin-top: 0; }
.kkc-kit-group-title{ display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text); }
.kkc-kit-group-title::after{ content: ''; flex: 1; height: 1px; background: var(--hair); }

/* ---------- kit (product) page ---------- */
.kkc-kit{ padding-top: calc(var(--promo-h) + var(--header-h) + 18px); }
.kkc-main-media{ position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.kkc-main-media::after{ content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 3; background: linear-gradient(90deg, var(--_pc, transparent) 0 76%, var(--_sc, transparent) 76% 100%); }
.kkc-main-media img{ position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.kkc-kit-title{ margin-top: 8px; font-family: var(--font-display); font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; font-size: clamp(1.6rem, 2.5vw, 2.3rem); }
/* desktop: the rest of the photos laid out under the main one, in place of thumbnails */
.kkc-photo-wall{ display: none; }
@media (min-width: 1080px){
  .kkc-photo-wall{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
  .kkc-photo-wall:empty{ display: none; }
  .kkc-wall-shot{ margin: 0; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
  .kkc-wall-shot img{ width: 100%; height: 100%; object-fit: cover; }
  .kkc-kit .product-thumbs{ display: none; }
}
.kkc-help{ font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--color-text-muted); }
.kkc-note{ margin-top: 8px; font-size: 13px; color: var(--color-text-muted); }
.kkc-related{ scroll-margin-top: 120px; }
[data-kkc-sizes]{ display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
[data-kkc-sizes] .pill{ min-width: 0; }

/* live name & number preview inside the personalise panel */
.kkc-print-preview{
  display: grid; place-items: center; margin-bottom: 14px; padding: 18px 12px 14px;
  border-radius: var(--radius-md); background: var(--_pc, var(--ink)); color: var(--_tc, #fff);
  container-type: inline-size; overflow: hidden;
}
.kkc-print-preview .backprint{ --bp-name: clamp(13px, 5.2cqw, 22px); --bp-num: clamp(64px, 26cqw, 120px); --bp-stroke: 0.03em; --bp-edge: var(--_ec, transparent); }
.kkc-print-preview .backprint-name{ min-height: 1em; }

@media (max-width: 640px){
  /* :not() - this was also catching the club photo tiles and forcing one per row */
  .kkc-dir-list:not(.kkc-dir-list-tiles){ grid-template-columns: 1fr; }
}

/* ---------- sleeve patches on the kit page (19 Sep, £1.99 each) ---------- */
.kkc-patches .option-label{ align-items: baseline; }
.kkc-patch-fee{ font-family: var(--font-mono); font-stretch: 87.5%; font-size: 12px; color: var(--color-text-muted); }
.kkc-patch-head{ margin: 10px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.kkc-patch-row{ display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.kkc-patch{
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 6px 9px; background: #fff; color: var(--color-text); font: inherit; text-align: center; cursor: pointer;
  border: 1.5px solid var(--hair-strong); border-radius: var(--radius-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.kkc-patch:hover{ border-color: var(--ink); }
.kkc-patch:focus-visible{ outline: 2px solid var(--ink); outline-offset: 2px; }
.kkc-patch.is-active{ border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.kkc-patch.is-active::after{
  content: '\2713'; position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px;
}
/* the photo is pinned inside a fixed box - max-height:100% was ignored in the grid and the
   photo spilled over the label (his catch 19 Sep: "the writing is over the pic") */
.kkc-patch-img{ position: relative; display: block; width: 100%; height: 66px; overflow: hidden; margin-bottom: 4px; }
.kkc-patch-img img{ position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.kkc-patch-name{ font-size: 12px; font-weight: 700; line-height: 1.2; }
.kkc-patch-sub{ font-size: 11px; line-height: 1.2; color: var(--color-text-muted); }

/* ---- Tribute print (3 Oct 2026): free JOTA 20 on Liverpool shirts ------------
   Deliberately quiet. No red, no urgency, no "offer" language - this is a
   memorial, and dressing it up as a deal would read badly to the people most
   likely to want it. A plain bordered panel that sits apart from the pills. */
.kkc-tribute{
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: var(--space-4);
  background: var(--color-surface-2);
}
.kkc-tribute-eyebrow{
  display: block;
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%;
  text-transform: uppercase; letter-spacing: .08em; font-size: 12px; line-height: 1;
  color: var(--color-text);
}
.kkc-tribute-body{
  margin: 10px 0 14px;
  font-size: var(--fs-sm); line-height: 1.55; color: var(--color-text-muted);
}
.kkc-tribute-btn{
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--color-text); border-radius: var(--radius-sm);
  background: transparent; color: var(--color-text);
  padding: 10px 16px; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.kkc-tribute-btn:hover{ background: var(--color-text); color: var(--color-surface); }
.kkc-tribute.is-on{ border-color: var(--color-text); }
.kkc-tribute.is-on .kkc-tribute-btn{ background: var(--color-text); color: var(--color-surface); }
.kkc-tribute.is-on .kkc-tribute-btn::before{ content: '\2713'; font-weight: 700; }
