/* =========================================================================
   Kicks & Kits — TAKEOVER LAYER
   Loaded after style.css on every shop page. style.css now carries the light
   palette and the new type stack at :root; this file does the structure, the
   type roles and the one signature component.

   THE THESIS
   A shop that sells three hundred shirts is selling three hundred colours, so
   the building itself is colourless: concrete ground, ink type, white where a
   photograph needs to breathe. Every bit of chroma on the page comes out of
   data.js - the club's own colours. There is no brand accent to fight them.

   Consequences worth stating, because they are easy to undo by accident:
   - Actions are solid ink. On a light page that is the loudest thing there is.
   - Red is functional only: a stock count running out. Never decoration.
   - The Flash Drop is the one INK band on a light page. It used to be the one
     white band on a dark page. Same job, inverted.
   - Archivo is set WIDE (font-stretch 112-118%) and heavy. Condensed display
     type is the sports-tabloid default and we are not doing it.

   Delete this file's <link> from a page and that page falls back to plain
   style.css. Nothing here is load-bearing for the cart or the checkout.
   ========================================================================= */

:root{
  --hair: rgba(21,23,26,0.12);
  --hair-strong: rgba(21,23,26,0.26);
  --ink: #15171A;
  --rack-h: clamp(180px, 22vw, 300px);
}

/* -------------------------------------------------------------------------
   0. The display face
   Anton was one weight and permanently condensed, so nothing in style.css
   ever declared axes for it. Archivo is variable and defaults to a normal
   width at weight 400, which reads limp. Every display surface is set here
   in one place: wide, heavy, tight.
   ------------------------------------------------------------------------- */
.display-1, .display-2, .display-3,
.section-head h2, .league-hero h1, .card-title, .team-card-name,
.product-price, .refer-num, .refer-code, .reviews-avg, .review-avatar,
.hero-stat b, .mystery-tag, .promo-item, .wordmark,
.dropstrip h2, .drophero-title, .rack-head h2{
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.9;
}
/* Long display lines get a touch less width so they still fit a phone. */
.league-hero h1, .display-1{ font-stretch: 112%; }

/* Data voice: anything that is a number a shopper compares. */
.card-price, .product-price, .flash-price,
.team-card-count, .drop-timer-clock, .pill, .size-pill,
.dcard .p, .dcard .l, .stock-count{
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.product-price, .card-price{ font-weight: 700; text-transform: none; }

/* Small-caps labels: used wherever a line is a signpost rather than prose. */
.eyebrow, .card-eyebrow, .breadcrumb, .label{
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* -------------------------------------------------------------------------
   1. Header — thin, light, typographic. The logo is set in type now, so it
   scales, stays sharp at any size and costs nothing to load.
   ------------------------------------------------------------------------- */
.site-header{
  background: rgba(232,232,230,0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  background: rgba(232,232,230,0.94);
  border-bottom-color: var(--hair);
}
/* The wordmark replaces logo-header.png. Nothing else in the shop uses it. */
.brand img{ display: none; }
.brand::after{
  content: 'Kicks & Kits';
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: 19px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-text);
  white-space: nowrap;
}
.footer-brand .brand::after{ font-size: 24px; color: #fff; }
@media (max-width: 420px){ .site-header .brand::after{ content: 'K&K'; font-size: 20px; } }

.main-nav ul{ gap: clamp(12px, 1.5vw, 24px); }
.main-nav a,
.main-nav .nav-dropdown-toggle{
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}
.main-nav a:hover, .main-nav a.is-active{ color: var(--color-text); }
.main-nav .nav-dropdown{ background: #fff; border: 1px solid var(--hair); box-shadow: var(--shadow-md); }
.main-nav .nav-dropdown a{ white-space: nowrap; font-size: var(--fs-sm); letter-spacing: 0.02em; }
.header-search{ background: rgba(21,23,26,0.05); border: 1px solid transparent; }
.header-search:focus-within{ border-color: var(--hair-strong); background: #fff; }
@media (min-width: 1100px){ .header-search{ max-width: 190px; } }

/* -------------------------------------------------------------------------
   2. Promo bar — solid ink. On a light page an ink bar is emphatic without
   needing a colour, and it frames the top of the site like a scoreboard.
   ------------------------------------------------------------------------- */
.promo-bar{ background: var(--ink); color: #fff; border-bottom: 0; }
.promo-bar::before{ background: linear-gradient(90deg, var(--ink), rgba(21,23,26,0)); }
.promo-bar::after{ background: linear-gradient(270deg, var(--ink), rgba(21,23,26,0)); }
.promo-item{
  font-family: var(--font-body);
  font-weight: 600; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.promo-item::after{ content: "\2014"; opacity: 0.35; }

/* -------------------------------------------------------------------------
   3. Page masthead — the coloured league wash is gone. A page opens with a
   hairline, an eyebrow and a very large wide title. Nothing else.
   ------------------------------------------------------------------------- */
.league-hero{
  padding-top: calc(var(--promo-h) + var(--header-h) + var(--space-12));
  padding-bottom: var(--space-10);
}
.league-hero::before{ display: none; }   /* kills the per-page --_lc tint */
.breadcrumb{ margin-bottom: var(--space-8); }
.breadcrumb a:hover{ color: var(--color-text); }
.league-hero h1{ font-size: clamp(2.6rem, 8vw, 6.8rem); margin-top: var(--space-3); }
.league-hero p{
  font-size: var(--fs-base); max-width: 50ch;
  color: var(--color-text-muted); margin-top: var(--space-5);
}
@media (min-width: 900px){
  .league-hero .container{
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    column-gap: clamp(32px, 5vw, 88px);
    align-items: end;
  }
  .league-hero .breadcrumb,
  .league-hero .league-filters{ grid-column: 1 / -1; }
  .league-hero .eyebrow, .league-hero h1{ grid-column: 1; }
  .league-hero p{ grid-column: 2; margin-top: 0; padding-bottom: 0.5rem; }
}

/* Category index: a line of words, current one marked by an ink rule. */
.league-filters{
  margin-top: var(--space-10);
  padding-top: var(--space-5);
  border-top: 1px solid var(--hair);
  gap: 0 clamp(14px, 1.8vw, 26px);
  row-gap: 4px;
}
.chip{
  padding: 4px 0; min-height: 0; border: 0; border-radius: 0;
  border-bottom: 2px solid transparent;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--color-text-faint);
}
.chip:hover{ color: var(--color-text); border-bottom-color: var(--hair-strong); }
.chip.is-active{ background: none; color: var(--color-text); border-bottom-color: var(--color-text); }

/* -------------------------------------------------------------------------
   4. Section heads
   ------------------------------------------------------------------------- */
.section{ padding-block: clamp(48px, 6vw, 88px); }
.section-head{
  align-items: baseline; gap: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--hair);
  margin-bottom: var(--space-8);
}
.section-head h2{ margin-top: var(--space-2); font-size: clamp(1.6rem, 3vw, 2.6rem); }
.section-head p{ font-size: var(--fs-sm); margin-top: 0; }

/* -------------------------------------------------------------------------
   5. Product cards
   The photograph is the card. It sits on white so the studio backdrops of the
   model shots run straight into the page. The club's own colour appears as a
   rule under the name - the only chroma in the component, and it comes from
   the data, so no two cards agree.
   ------------------------------------------------------------------------- */
.team-grid, .product-grid{ gap: clamp(18px, 2vw, 34px) clamp(12px, 1.4vw, 22px); }
@media (min-width: 1500px){
  .team-grid, .product-grid{ grid-template-columns: repeat(5, 1fr); }
}
.card{ background: transparent; border: 0; border-radius: 0; overflow: visible; }
.card:hover{ transform: none; box-shadow: none; border-color: transparent; }
/* The club's colour is drawn as a rule under its photograph. --_pc is already
   set inline on .card-media by render.js, so this needs no JS change and no
   two cards on a grid agree - which is the whole point. */
.card-media{
  border-radius: 0;
  background: var(--color-surface);
  overflow: hidden;
  border-bottom: 3px solid var(--_pc, var(--hair));
}
.card:hover .card-media img{ transform: scale(1.035); }

.card-body{ padding: 12px 0 0; }
.card-eyebrow{ font-size: 10px; letter-spacing: 0.16em; }
.card-title, .team-card-name{
  font-family: var(--font-body);
  font-weight: 600; font-size: 14px;
  letter-spacing: 0; line-height: 1.35;
  text-transform: none; margin-top: 3px;
}
.card-price{ margin-top: 6px; font-size: 13px; }
.team-card-count{ font-size: 10px; letter-spacing: 0.1em; margin-top: 4px; }

/* Badges: ink chip, white type, no colour. */
.badge{
  top: 12px; left: 12px; padding: 5px 10px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.16em;
  background: var(--ink); color: #fff; border: 0; border-radius: 0;
}
.badge.badge-gold{ background: var(--color-gold); }
.badge.badge-dark{ background: rgba(21,23,26,0.72); color: #fff; border: 0; }

/* Stock urgency is the one place red is allowed. */
.stock-count.is-low, .flash-stock.is-low{ color: var(--color-danger); }

/* -------------------------------------------------------------------------
   6. THE RACK — the signature
   Every club we stock, as its own colour, in a row you drag along like a rail
   of shirts. Built entirely from team.colors in data.js, so it is a true
   picture of the catalogue rather than decoration: when he adds a club, the
   rack grows a stripe. Hovering lifts the shirt out of it.
   ------------------------------------------------------------------------- */
.rack{ background: var(--color-surface); border-block: 1px solid var(--hair); }
.rack-inner{ padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 34px); }
.rack-head{
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; padding: 0 var(--space-8) var(--space-5);
  max-width: var(--container); margin: 0 auto;
}
.rack-head h2{ font-size: clamp(1.5rem, 2.6vw, 2.4rem); }
.rack-head a{
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-text-muted);
}
.rack-head a:hover{ color: var(--color-text); }

.rack-track{
  display: flex; align-items: stretch; gap: 3px;
  padding: 0 var(--space-8);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--hair-strong) transparent;
}
.rack-track::-webkit-scrollbar{ height: 3px; }
.rack-track::-webkit-scrollbar-thumb{ background: var(--hair-strong); }

.rack-bar{
  position: relative; flex: 0 0 auto;
  width: clamp(34px, 4.4vw, 58px);
  height: var(--rack-h);
  scroll-snap-align: start;
  background: var(--_pc, #ccc);
  overflow: hidden;
  transition: width .42s cubic-bezier(.2,.7,.2,1);
}
/* The second colour reads as the away strip - a diagonal flash across the bar. */
.rack-bar::after{
  content: '';
  position: absolute; inset: auto 0 0 0; height: 34%;
  background: var(--_sc, transparent);
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 100%);
  opacity: .95;
  transition: opacity .3s ease;
}
.rack-name{
  position: absolute; left: 50%; bottom: 14px; z-index: 2;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--_tc, #fff); white-space: nowrap;
  max-height: calc(var(--rack-h) - 28px); overflow: hidden;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
  pointer-events: none;
}
.rack-shot{
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: center 12%;
  opacity: 0; transition: opacity .42s ease;
}
.rack-bar:hover, .rack-bar:focus-visible{ width: clamp(150px, 17vw, 230px); }
.rack-bar:hover .rack-shot, .rack-bar:focus-visible .rack-shot{ opacity: 1; }
.rack-bar:hover .rack-name, .rack-bar:focus-visible .rack-name{
  writing-mode: horizontal-tb; transform: translateX(-50%) rotate(0deg); color: #fff;
  font-size: 11px; text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.rack-bar:hover::after, .rack-bar:focus-visible::after{ opacity: 0; }
.rack-note{
  max-width: var(--container); margin: 0 auto;
  padding: var(--space-5) var(--space-8) 0;
  font-size: 11px; color: var(--color-text-faint);
}
@media (hover: none){
  /* No hover on touch, so the bars are wider and always show their shirt. */
  .rack-bar{ width: clamp(96px, 30vw, 150px); }
  .rack-shot{ opacity: 1; }
  .rack-name{ writing-mode: horizontal-tb; transform: translateX(-50%); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
  .rack-bar::after{ opacity: 0; }
}

/* -------------------------------------------------------------------------
   7. Flash Drop strip — the one ink band on a light site.
   ------------------------------------------------------------------------- */
.dropstrip{ background: var(--ink); color: #fff; margin-top: clamp(40px, 6vw, 80px); }
.dropstrip-inner{
  max-width: var(--container); margin: 0 auto;
  padding: clamp(30px, 4vw, 56px) var(--space-8);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(20px, 4vw, 56px); flex-wrap: wrap;
}
.dropstrip-copy{ min-width: min(100%, 280px); }
.dropstrip-flag{
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.dropstrip-flag::before{
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.14);
}
.dropstrip h2{ font-size: clamp(1.9rem, 4vw, 3.4rem); margin: 14px 0 0; color: #fff; }
.dropstrip h2 b{ font-weight: 800; background: none; padding: 0; }
.dropstrip p{ margin: 12px 0 0; max-width: 42ch; font-size: var(--fs-sm); color: rgba(255,255,255,0.68); }
.dropstrip-side{ display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); flex-wrap: wrap; }
.dropstrip-thumbs{ display: flex; gap: 6px; }
.dropstrip-thumbs img{
  width: clamp(64px, 8vw, 92px); aspect-ratio: 4/5;
  object-fit: cover; object-position: center top; background: #fff;
}
.dropstrip-cta{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 0;
  background: #fff; color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  transition: transform var(--dur-base), background var(--dur-base);
}
.dropstrip-cta:hover{ transform: translateY(-2px); background: #E8E8E6; }
@media (max-width: 720px){
  .dropstrip-inner{ flex-direction: column; align-items: flex-start; }
  .dropstrip-thumbs img:nth-child(n+4){ display: none; }
}

/* -------------------------------------------------------------------------
   8. Flash Drop page masthead
   ------------------------------------------------------------------------- */
.drophero{
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  padding-top: calc(var(--header-h) + var(--promo-h));
}
.drophero-media{ position: relative; }
.drophero-media img{
  width: 100%; height: clamp(460px, 54vw, 740px);
  object-fit: cover; object-position: 50% 10%;
}
.drophero-media::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(21,23,26,0) 34%, rgba(21,23,26,0.88) 62%, var(--ink) 82%);
}
.drophero-copy{
  position: absolute; inset: 0; z-index: 2;
  top: calc(var(--header-h) + var(--promo-h));
  display: flex; align-items: center;
}
.drophero-inner{ width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-8); }
.drophero-inner > *{ max-width: min(460px, 70%); }
.drophero .breadcrumb{ color: rgba(255,255,255,0.45); margin-bottom: var(--space-6); }
.drophero .breadcrumb a{ color: rgba(255,255,255,0.75); }
.drophero .breadcrumb a:hover{ color: #fff; }
.drophero-flag{
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.drophero-flag::before{
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.14);
}
.drophero-title{ font-size: clamp(2.6rem, 6.6vw, 5.6rem); margin: 14px 0 0; color: #fff; }
.drophero-price{ display: block; margin-top: 6px; }
.drophero-price b{ font-weight: 800; background: none; padding: 0; }
.drophero p{ margin-top: var(--space-5); font-size: var(--fs-sm); color: rgba(255,255,255,0.7); }
/* A real cut-off for the next post run, not a sale timer. Set quietly. */
.drophero .drop-timer{
  margin-top: var(--space-6); padding: 14px 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  display: inline-block;
}
.drophero .drop-timer-label,
.drophero .drop-timer-note{
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.drophero .drop-timer-clock{
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1.6rem; line-height: 1; margin: 6px 0; color: #fff;
}
@media (max-width: 860px){
  .drophero-media img{ height: clamp(320px, 76vw, 470px); object-position: 62% 8%; }
  .drophero-media::after{ background: linear-gradient(0deg, var(--ink) 0%, rgba(21,23,26,0) 42%); }
  .drophero-copy{ position: static; top: auto; padding-bottom: clamp(28px, 7vw, 44px); }
  .drophero-inner > *{ max-width: none; }
}

/* Facts row, still on ink so the whole drop masthead reads as one block. */
.dropfacts{ background: var(--ink); color: #fff; padding: clamp(22px, 3vw, 34px) 0 clamp(30px, 4vw, 46px); }
.dropfacts .stock-usps{
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 44px); list-style: none; margin: 0; padding: 0;
}
.dropfacts .stock-usps li{
  display: flex; flex-direction: column; gap: 6px;
  font-size: var(--fs-sm); color: rgba(255,255,255,0.62);
  padding-left: clamp(14px, 2vw, 22px);
  border-left: 1px solid rgba(255,255,255,0.2);
}
.dropfacts .stock-usps li span{
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%;
  font-size: 1.15rem; letter-spacing: -0.01em; color: #fff; text-transform: uppercase;
}
@media (max-width: 760px){ .dropfacts .stock-usps{ grid-template-columns: 1fr; gap: 16px; } }

.stock-elsewhere-block{
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6); flex-wrap: wrap;
}
.stock-elsewhere-block .stock-elsewhere{
  margin: 0; max-width: 52ch; color: var(--color-text-muted); font-size: var(--fs-sm);
}
.stock-elsewhere-block .stock-elsewhere-cta{ margin: 0; }

/* -------------------------------------------------------------------------
   9. Buttons, pills, footer
   ------------------------------------------------------------------------- */
.btn{ border-radius: 0; letter-spacing: 0.14em; }
.btn-primary{ background: var(--ink); color: #fff; }
.pill, .size-pill{ border-radius: 0; font-size: 12px; }

.site-footer{ background: var(--ink); color: rgba(255,255,255,0.7); border-top: 0; }
.site-footer p{ color: rgba(255,255,255,0.55); }
.site-footer .footer-col h4{
  font-family: var(--font-body);
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.site-footer .footer-col a{ font-size: var(--fs-sm); color: rgba(255,255,255,0.72); }
.site-footer .footer-col a:hover{ color: #fff; }
.site-footer .social-row a{ border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.72); }
.site-footer .social-row a:hover{ background: #fff; color: var(--ink); border-color: #fff; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 11px; color: rgba(255,255,255,0.45);
}

/* -------------------------------------------------------------------------
   10. Motion — restrained. Short reveals, colour and scale hovers, nothing
   that moves for its own sake.
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  .rack-bar, .rack-shot, .card-media img, .dropstrip-cta{ transition: none !important; }
}

/* -------------------------------------------------------------------------
   11. Small-screen header
   The homepage injects a reviews badge and the header also carries a search
   field, a bag and a menu button. At 375px that came to 461px of content and
   pushed the BAG AND THE MENU BUTTON off the right edge - both unreachable on
   a phone, which is fatal for a shop. Search folds away first (the nav gets
   you anywhere), then the badge.
   ------------------------------------------------------------------------- */
@media (max-width: 620px){
  .header-search{ display: none; }
}
@media (max-width: 480px){
  .kk-rating-badge{ display: none; }
}
@media (max-width: 620px){
  .site-header .container{ gap: var(--space-3); }
  .header-actions{ gap: var(--space-2); margin-left: auto; }
}
