/* Valor r6, r6-catalog: owned by one builder only (see docs/PLAN-2026-10-08.md). Loaded after fc.css and page stylesheets.
   Builder C, 8 Oct 2026: the catalogue (the Courage series page, the bat page template, search, the inner pages, gloves).
   Every rule is scoped to a class this file introduces. Measures from Avinash's series fold (1:236 to 1:344) at 1920:
   cards 314.7 x 526.5 on a 984 px column, image 363.5 px (ratio 0.86 inside the 1 px border), body 18 px inset with 8 px between name, spec and row,
   radius 16, 1 px line, 20 px gaps, 3 x 2. Text roles from his file: name ExtraBold 15 / 21, spec Regular 12 / 24 #6B7185,
   price Bold 20 / 24, Add to cart the 40 px pill. Phones stack to two columns. */

/* ===== the series grid and the tier card (scoped to .cat-tiers; the homepage styles its own under body.home) ===== */
.cat { padding-top: clamp(28px, 4vw, 64px); }
.cat__h { font-size: clamp(2rem, 3.8vw, 3.3rem); line-height: 1.38; letter-spacing: -0.03em; color: var(--ink); }
/* his head frame (1:235): eyebrow box 0 to 17, heading box from 10.6 (73 px leading), sub from 89.6, 572 px wide; grid 64 px below */
.cat__head { gap: 0; margin-bottom: clamp(36px, 5vw, 64px); }
.cat__head .hand { margin-bottom: -6px; }
.cat__head .sub { margin-top: 6px; max-width: 572px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; }
.cat-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-tiers .tier-card { position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; }
.cat-tiers .tier-card[hidden] { display: none; }
.cat-tiers .tier-card__img { display: block; }
.cat-tiers .tier-card .ph { --ratio: 0.86; background: var(--slot); }
.cat-tiers .tier-card__body { display: grid; grid-template-rows: auto auto 1fr; gap: 6px; padding: 12px; min-width: 0; }
.cat-tiers .tier-card__name { margin: 0; font-family: var(--condensed); font-weight: 800; font-size: 14px; line-height: 20px; letter-spacing: -0.01em; color: var(--ink); }
.cat-tiers .tier-card__spec { font-size: 12px; line-height: 18px; color: var(--ink-3); }
.cat-tiers .tier-card__row { display: grid; gap: 8px; align-items: center; margin-top: 2px; align-self: end; }
.cat-tiers .tier-card__price { font-weight: 700; font-size: 17px; line-height: 24px; color: var(--ink); }
.cat-tiers .tier-card__row .pill { width: 100%; padding: 0 10px; }
@media (hover: hover) { .cat-tiers .tier-card__name a:hover { color: var(--blue); } }
@media (min-width: 600px) {
  .cat-tiers { gap: 16px; }
  .cat-tiers .tier-card__body { padding: 16px; gap: 8px; }
  .cat-tiers .tier-card__name { font-size: 15px; line-height: 21px; letter-spacing: -0.15px; }
  .cat-tiers .tier-card__spec { line-height: 24px; }
  .cat-tiers .tier-card__row { display: flex; justify-content: space-between; gap: 10px; margin-top: 0; }
  .cat-tiers .tier-card__price { font-size: 20px; }
  .cat-tiers .tier-card__row .pill { width: auto; padding: 0 16px; }
}
@media (min-width: 1024px) {
  .cat-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .cat-tiers .tier-card__body { padding: 18px; }
  .cat-tiers--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* the search results grid sits beside the facets: two across until the column is wide enough for three */
@media (min-width: 1024px) and (max-width: 1279px) { .cat-tiers--sp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the sixth cell: a photo door under 50 % black with his #C7D7FE border (his Shop all card, 1:340 to 1:344) */
.cat-photo { position: relative; display: grid; place-items: center; min-height: 260px; border: 1px solid #C7D7FE; border-radius: 16px; overflow: hidden; color: #FFFFFF; isolation: isolate; text-align: center; }
.cat-photo__bg { position: absolute; inset: 0; z-index: -1; }
.cat-photo__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.cat-photo__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.cat-photo__in { display: grid; justify-items: center; gap: 16px; padding: 18px; width: 100%; min-width: 0; }
.cat-photo__in .pill { max-width: 100%; }
@media (max-width: 599px) { .cat-photo__in { padding: 12px; gap: 12px; } .cat-photo__in .pill { white-space: normal; height: auto; min-height: 40px; padding: 10px 12px; line-height: 1.3; text-align: center; } }
.cat-photo__t { font-family: var(--condensed); font-weight: 600; font-size: clamp(18px, 2vw, 24px); line-height: 1.3; letter-spacing: -0.216px; max-width: 11ch; }
.cat-photo .pill { color: #101828; }
@media (hover: hover) { .cat-photo:hover .cat-photo__bg img { transform: scale(1.03); } .cat-photo:hover .pill--white { background: #FFFFFF; } }

/* the quiz row: his dropdown footer (5:798, 5:800), a rule, the line, a ghost Find your fit */
.cat-quiz { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: clamp(32px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--line); }
.cat-quiz p { font-size: 14px; line-height: 20px; color: var(--ink-3); max-width: 52ch; }

/* ===== the bat page ===== */
.buy__spec { font-size: 14px; line-height: 22px; color: var(--ink-3); }
.box--r6 fieldset { gap: 10px; }
.box--r6 legend { padding: 0; font-family: var(--text); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.tpills { display: flex; flex-wrap: wrap; gap: 8px; }
.tpill { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-family: var(--ui); font-style: italic; font-weight: 600; font-size: 12.5px; letter-spacing: 0.75px; text-transform: uppercase; transition: border-color 140ms, background-color 140ms; }
.tpill[aria-current="page"] { border-color: var(--blue); background: var(--tint); box-shadow: inset 0 0 0 1px var(--blue); }
@media (hover: hover) { .tpill:hover { border-color: var(--blue); } }
.ropts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ropt { position: relative; display: block; min-width: 0; cursor: pointer; }
.ropt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ropt span { display: flex; align-items: center; justify-content: center; height: 46px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font-family: var(--text); font-weight: 600; font-size: 13px; text-align: center; line-height: 1.15; transition: border-color 140ms, background-color 140ms; }
.ropt input:checked + span { border-color: var(--blue); background: var(--tint); box-shadow: inset 0 0 0 1px var(--blue); }
.ropt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .ropt:hover span { border-color: var(--blue); } }

/* the gallery: a rail on phones; on desktop the bat four across two columns at the packshot ratio, the shoot photos at 3:2 */
.gal--r6 .gal__card .ph { --ratio: 0.8; border-radius: 14px; }
.gal--r6 .ph--tier { background: var(--slot); }
.gal--r6 .ph--pack { background: #FFFFFF; }
@media (min-width: 1024px) {
  .gal--r6 .gal__card--bat .ph { --ratio: 0.8; }   /* every SKU photo is 1200 x 1500 (4:5), 21 Oct */
  .gal--r6 .gal__card--shot .ph { --ratio: 1.5; }
  .gal--r6 .gal__card--shot:last-child { grid-column: 1 / -1; }
  .gal--r6 .gal__card--shot:last-child .ph { --ratio: 2.4; }
}

/* ===== the record page: his three craft steps ===== */
.rsteps { display: grid; gap: 28px; }
.rstep { margin: 0; display: grid; gap: 16px; align-content: start; }
.rstep .ph { --ratio: 0.9; border-radius: 14px; }
.rstep figcaption { display: grid; gap: 6px; }
.rstep__n { font-weight: 700; font-size: 14px; line-height: 21px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-2); }
.rstep b { font-weight: 600; font-size: 24px; line-height: 31px; letter-spacing: -0.216px; color: var(--ink); }
.rstep figcaption > span:last-child { font-size: 14px; line-height: 23.25px; color: var(--ink-2); max-width: 36ch; }
@media (min-width: 900px) { .rsteps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== players: his workshop photo at 60 % black, his three cards with the Verified buyer badge ===== */
.plyr--r6 .plyr__bg::after { background: rgba(0, 0, 0, 0.6); }
.plyr--r6 h2 { max-width: 12ch; }
.vbuy { display: inline-flex; align-items: center; gap: 4px; font-family: var(--text); font-weight: 500; font-size: 12px; line-height: 16px; color: #32D583; white-space: nowrap; }
.vbuy svg { width: 16px; height: 16px; flex: none; }
.plyr--r6 .pl figcaption, .rev figcaption { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
.plyr--r6 .pl figcaption > span:last-child, .rev figcaption > span:last-child { grid-column: 1 / -1; }
.plyr--r6 .pl figcaption .vbuy { opacity: 1; font-size: 12px; }
.rev figcaption .vbuy { font-size: 12px; color: #039855; }
.rev .stars { color: var(--blue); }
.rev .stars svg { width: 14px; height: 14px; }
[data-theme="dark"] .rev figcaption .vbuy { color: #32D583; }

/* ===== wicket keeping gloves: his next-drop band (1:459 to 1:472) as the page head, 70 % black ===== */
.gl { position: relative; overflow: hidden; color: #FFFFFF; padding: clamp(88px, 12vw, 168px) 0; isolation: isolate; }
.gl__bg { position: absolute; inset: 0; z-index: -1; }
.gl__bg img { width: 100%; height: 100%; object-fit: cover; }
.gl__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.gl__in { display: grid; justify-items: center; gap: 18px; }
.gl .hand { color: #FCFCFD; }
.gl__h { font-size: clamp(2.2rem, 5.8vw, 4.8rem); line-height: 1.15; color: #FFFFFF; max-width: 14ch; }
.gl .sub { color: #FCFCFD; margin-top: 0; }
.gl__form { display: flex; gap: 10px; align-items: center; width: min(524px, 100%); margin-top: 8px; }
.gl__form input { flex: 1; min-width: 0; height: 56px; border-radius: 999px; border: 1px solid rgba(250, 250, 248, 0.3); background: rgba(250, 250, 248, 0.08); padding: 0 22px; font: inherit; font-size: 15px; color: #FFFFFF; }
.gl__form input::placeholder { color: rgba(250, 250, 248, 0.55); }
.gl__form input:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.gl__form .pill { flex: none; }
@media (max-width: 479px) { .gl__form { flex-direction: column; align-items: stretch; } .gl__form input { flex: none; } .gl__form .pill { width: 100%; } }

/* ===== the custom builder: five tiers ===== */
.opts--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts--5 .opt { white-space: normal; line-height: 1.15; }
@media (min-width: 700px) { .opts--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* round 2: the builder's choices are radios inside label.opt, drawn like the old aria-pressed buttons; the input is hidden but focusable */
.build label.opt { position: relative; text-align: center; -webkit-user-select: none; user-select: none; }
.build label.opt > input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.build label.opt:has(> input:checked) { border-color: var(--blue); background: var(--tint); box-shadow: inset 0 0 0 1px var(--blue); }
.build label.opt:has(> input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ===== the save heart on every tier card (mounted by ux.js): a 40 x 40 tap target, the 18 px glyph centred ===== */
.tier-card > .heart { width: 40px; height: 40px; }

/* ===== the cart line quantity (rendered by ux.js inside the drawer): 40 px tap targets ===== */
.cq { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.cq__b { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; display: grid; place-items: center; color: var(--ink); background: var(--white); }
.cq__b svg { width: 14px; height: 14px; }
.cq__n { min-width: 18px; text-align: center; font-weight: 700; font-size: 14px; }
.cq .cartd__rm { display: inline-flex; align-items: center; min-height: 40px; margin: 0 0 0 8px; }
/* the options as chosen, and the Change link back to the tier page with them preselected */
.cq-chg { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; margin: -10px 0 -10px 2px; vertical-align: middle; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ===== form notes (ux.js) and the guide's series weight line ===== */
.form-note { margin-top: 10px; }
.form-note:empty { display: none; }
.guide3__note { margin-top: 12px; }
.guide3__note a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .cq__b:hover { border-color: var(--ink); } }
[data-theme="dark"] .series-line img { filter: invert(1); }

/* SKU photo sets (21 Oct): all five images per tier are 4:5 on the same warm white; fill the card, no letterbox */
.gal--r6 .gal__card--bat .ph > img, .gal--r6 .ph--pack > img { object-fit: cover; }
.gal--r6 .ph--tier, .gal--r6 .ph--pack { background: #F7F5F0; }
