/* ==========================================================================
   COACH KAL — KAL FAVOURITES page (kal-favourites.html)
   Builds on style.css (tokens, nav, buttons, pills, footer).
   ========================================================================== */

/* ---------- hero ---------- */
.fhero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 96px);
  align-items: end;
  padding: calc(var(--nav-h) + clamp(28px, 6vh, 72px)) var(--gutter) clamp(48px, 8vh, 96px);
  border-bottom: 1px solid var(--hair);
}
.fhero__crumbs { color: var(--muted); margin-bottom: clamp(20px, 4vh, 40px); display: flex; gap: 10px; flex-wrap: wrap; }
.fhero__crumbs a { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .35s var(--ease), color .3s; }
.fhero__crumbs a:hover, .fhero__crumbs a:focus-visible { color: var(--ink); background-size: 100% 1px; }
.fhero__crumbs [aria-current] { color: var(--ink); }
.fhero__title {
  font-family: var(--f-display); font-weight: 850; font-stretch: 66%; font-variation-settings: "wdth" 66;
  text-transform: uppercase; line-height: .84; letter-spacing: -.01em;
  font-size: clamp(56px, 8.6vw, 168px);
}
.fhero__title span { display: block; }
.fhero__title .accent-mark { background-size: 100% .07em; }
html:not([data-sport="none"]) .fhero__title .accent-mark { background-size: 100% .12em; }
.fhero__lede { margin-top: clamp(18px, 3vh, 28px); max-width: 520px; font-size: clamp(17px, 1.4vw, 21px); color: #2c3234; }
.fhero__facts { max-width: 520px; }

.fhero__media { position: relative; }
.fhero__frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--grey); max-height: 74vh; margin-left: auto; }
.fhero__frame img { width: 100%; height: 100%; object-fit: cover; }
.fhero__cap { margin-top: 10px; color: var(--muted); }
.fhero__media::before { /* court-line accent that follows the filter */
  content: ""; position: absolute; left: -14px; top: 0; bottom: 30px; width: 4px;
  background: var(--accent-mark); transition: background-color var(--t-sport);
}

/* ---------- products ---------- */
.favs { padding: clamp(56px, 10vh, 110px) var(--gutter) 0; }
.favs__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 660px); align-items: end; gap: 32px;
  margin-bottom: clamp(28px, 4vh, 48px);
}
.favs__intro { margin-top: 22px; max-width: 46ch; font-size: clamp(16px, 1.2vw, 18px); color: #2c3234; }
.favs__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.favs__status { font-size: 14.5px; color: var(--muted); text-align: right; }
.favs .chips .pill { background: rgba(255,255,255,.45); }
.favs .chips .pill[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
html[data-sport="none"] .favs .chips .pill[aria-checked="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .favs .chips .pill:not([aria-checked="true"]):hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.favs__noscript { font-size: 16px; }

.favgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.favgrid__empty { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); }

.favcard {
  --card: #141718;
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px var(--hair);
  border-top: 4px solid var(--card);
  transition: transform .5s var(--ease), box-shadow .4s var(--ease);
}
.favcard[data-accent="pickleball"]  { --card: #C9F24A; }
.favcard[data-accent="tennis"]      { --card: #356DFF; }
.favcard[data-accent="badminton"]   { --card: #4FD8E8; }
.favcard[data-accent="racquetball"] { --card: #FF7848; }
.favcard[data-accent="more"]        { --card: #8067E8; }

.favcard__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--grey); display: grid; place-items: center; }
.favcard__media picture, .favcard__media img { width: 100%; height: 100%; }
.favcard__media img { object-fit: cover; transition: transform 1s var(--ease); }
.favcard__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  /* a little court: outline + centre line */
  background:
    linear-gradient(var(--hair), var(--hair)) center / 1px 100% no-repeat,
    linear-gradient(var(--hair), var(--hair)) center / 100% 1px no-repeat,
    var(--grey);
}
.favcard__ph::before { content: ""; position: absolute; inset: 9%; box-shadow: inset 0 0 0 1px var(--hair); }
.favcard__ph svg {
  position: relative; width: 38%; height: auto; padding: 6%;
  fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round;
  background: var(--paper); border-radius: 50%; box-shadow: 0 0 0 6px color-mix(in srgb, var(--card) 70%, transparent);
  transition: transform .6s var(--ease);
}
.favcard__tag {
  position: absolute; left: 10px; top: 10px; padding: 5px 8px; font-size: 10.5px;
  background: var(--ink); color: var(--paper);
}

.favcard__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: clamp(16px, 1.6vw, 22px); }
.favcard__meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.favcard__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px rgba(20,23,24,.25); flex: none; }
.favcard__brand { font-size: 13px; color: var(--muted); margin-top: 4px; }
.favcard__name {
  font-family: var(--f-display); font-weight: 850; font-stretch: 72%; font-variation-settings: "wdth" 72;
  text-transform: uppercase; line-height: .95; font-size: clamp(24px, 2vw, 30px);
}
.favcard__note { font-size: 15px; color: #2c3234; }
.favcard__foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hair);
}
.favcard__btn { --btn-h: 40px; }
html[data-sport="none"] .favcard__btn .btn__chip { background: var(--paper); color: var(--ink); }
.favcard__soon { color: var(--muted); font-size: 11px; padding: 12px 0; }
.favcard__code { font-size: 11px; color: var(--muted); }
.favcard__code strong { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--card) 45%, transparent); padding: 2px 6px; }

@media (hover: hover) {
  .favcard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--ink), 0 18px 40px -24px rgba(20,23,24,.35); }
  .favcard:hover .favcard__media img { transform: scale(1.04); }
  .favcard:hover .favcard__ph svg { transform: rotate(-8deg) scale(1.06); }
}

/* whole card opens the product page (stretched link); shop button sits above it */
.favcard { position: relative; }
.favcard__title { text-decoration: none; color: inherit; }
.favcard__title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.favcard__title:focus-visible { outline: none; }
.favcard:has(.favcard__title:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.favcard__btn, .favcard__code { position: relative; z-index: 2; }
.favcard__code { margin-top: 2px; }
.favcard__more { margin-left: auto; font-size: 11px; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.favcard__arrow { display: inline-block; transition: transform .35s var(--ease); }
@media (hover: hover) { .favcard:hover .favcard__arrow { transform: translateX(4px); } }

/* reveal */
.favcard.will-reveal { opacity: 0; transform: translateY(24px); }
.favcard.will-reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease) calc(min(var(--i), 8) * 60ms), transform .8s var(--ease) calc(min(var(--i), 8) * 60ms), box-shadow .4s var(--ease);
}

.favs__disclosure {
  margin-top: clamp(24px, 4vh, 40px); padding: 14px 18px 14px 18px; max-width: 70em;
  border-left: 4px solid var(--accent-mark); background: rgba(255,255,255,.45);
  font-size: 14px; color: var(--muted); transition: border-color var(--t-sport);
}

/* ---------- closing band (dark) ---------- */
.favclose { margin-top: clamp(64px, 10vh, 120px); padding-top: clamp(56px, 9vh, 110px); }
.favclose__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 96px); align-items: end; }
.favclose .h-display { font-size: clamp(42px, 5.6vw, 96px); }
.favclose__aside { display: grid; gap: 24px; justify-items: start; }
.favclose__aside p { font-size: clamp(17px, 1.3vw, 20px); color: rgba(244,241,234,.86); max-width: 40ch; }
.footer__meta a[aria-current="page"] { color: var(--paper); background-size: 100% 2px; }

/* ---------- single product page (favourite.html) ---------- */
.pdp { display: block; padding: calc(var(--nav-h) + clamp(20px, 4vh, 44px)) var(--gutter) 0; }
.pdp__loading { min-height: 60vh; color: var(--muted); }
.pdp__crumbs { color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: clamp(18px, 3vh, 32px); }
.pdp__crumbs a { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .35s var(--ease), color .3s; }
.pdp__crumbs a:hover, .pdp__crumbs a:focus-visible { color: var(--ink); background-size: 100% 1px; }
.pdp__crumbs [aria-current] { color: var(--ink); }

.pdp__grid {
  --card: #141718;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: start;
}
.pdp__grid[data-accent="pickleball"]  { --card: #C9F24A; }
.pdp__grid[data-accent="tennis"]      { --card: #356DFF; }
.pdp__grid[data-accent="badminton"]   { --card: #4FD8E8; }
.pdp__grid[data-accent="racquetball"] { --card: #FF7848; }
.pdp__grid[data-accent="more"]        { --card: #8067E8; }

.pdp__media { position: sticky; top: calc(var(--nav-h) + 16px); }
.pdp__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--grey); border-top: 6px solid var(--card); display: grid; place-items: center; }
.pdp__frame img, .pdp__frame picture { width: 100%; height: 100%; }
.pdp__frame img { object-fit: cover; }
.pdp__frame .favcard__tag { left: 14px; top: 14px; font-size: 11px; }

.pdp__info { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.pdp__info .favcard__meta { font-size: 12px; }
.pdp__brand { color: var(--muted); font-size: 15px; }
.pdp__title {
  font-family: var(--f-display); font-weight: 850; font-stretch: 68%; font-variation-settings: "wdth" 68;
  text-transform: uppercase; line-height: .88; letter-spacing: -.005em;
  font-size: clamp(44px, 5.4vw, 92px);
}
.pdp__price { display: flex; align-items: baseline; gap: 10px; }
.pdp__price strong { font-size: clamp(26px, 2.2vw, 34px); font-weight: 750; }
.pdp__price .mono { color: var(--muted); font-size: 11px; }

.pdp__quote { margin: 8px 0 0; padding: 18px 20px; border-left: 4px solid var(--card); background: rgba(255,255,255,.55); }
.pdp__quote p { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; }
.pdp__quote footer { margin-top: 10px; color: var(--muted); font-size: 11px; }

.pdp__buy { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 8px; }
.pdp__buy .favcard__btn { --btn-h: 56px; }
.pdp__soon { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--hair); padding-right: 24px; cursor: not-allowed; }
.pdp__soon::before { display: none; }
.pdp__code { display: grid; gap: 4px; padding: 8px 12px; box-shadow: inset 0 0 0 1.5px var(--ink); min-width: 210px; }
.pdp__code > .mono { font-size: 10.5px; color: var(--muted); }
.pdp__code-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pdp__code-val { font: 600 20px/1 var(--f-mono); letter-spacing: .08em; background: color-mix(in srgb, var(--card) 45%, transparent); padding: 4px 8px; }
.pdp__copy { font-size: 11px; padding: 8px 10px; background: var(--ink); color: var(--paper); border-radius: 2px; }
.pdp__copy:hover { background: var(--graphite); }
.pdp__copied { font-size: 10.5px; color: var(--muted); min-height: 0; }
.pdp__copied:empty { display: none; }

.pdp__best { padding-top: 14px; border-top: 1px solid var(--hair); }
.pdp__best .mono { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.pdp__disclosure { font-size: 13px; color: var(--muted); }

.pdp__more {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px);
  margin-top: clamp(56px, 9vh, 110px); padding-top: clamp(32px, 5vh, 56px); border-top: 1px solid var(--hair);
}
.pdp__h2 {
  font-family: var(--f-display); font-weight: 850; font-stretch: 72%; font-variation-settings: "wdth" 72;
  text-transform: uppercase; line-height: .92; font-size: clamp(32px, 3.4vw, 56px); margin-bottom: 18px;
}
.pdp__details { font-size: clamp(16px, 1.2vw, 18px); color: #2c3234; max-width: 60ch; }
.pdp__highlights { margin-top: 22px; display: grid; gap: 10px; }
.pdp__highlights li { position: relative; padding-left: 30px; font-size: 16px; }
.pdp__highlights li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-mark); box-shadow: 0 0 0 1px rgba(20,23,24,.25);
}
html[data-sport="none"] .pdp__highlights li::before { background: var(--ink); }
.pdp__spec-list { display: grid; }
.pdp__spec-list div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.pdp__spec-list div:first-child { border-top: 1px solid var(--hair); }
.pdp__spec-list dt { color: var(--muted); font-size: 11px; padding-top: 3px; }
.pdp__spec-list dd { font-weight: 600; }

.pdp__missing { min-height: 50vh; display: grid; gap: 22px; align-content: center; justify-items: start; }
.pdp-more { padding-top: clamp(64px, 10vh, 120px); }
.pdp-more .favs__aside { justify-content: flex-end; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .fhero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fhero__title { font-size: clamp(52px, 7.2vw, 96px); }
}
@media (max-width: 900px) {
  .fhero { grid-template-columns: 1fr; align-items: start; }
  .fhero__title { font-size: clamp(48px, 15vw, 132px); }
  .fhero__media { order: -1; margin-top: 0; }
  .fhero__frame { aspect-ratio: 4 / 3; max-height: none; }
  .fhero__frame img { object-position: 50% 30%; }
  .fhero__media::before { display: none; }
  .favs__head, .favclose__row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .favs__aside { min-width: 0; align-self: stretch; }
  .favs__aside { align-items: flex-start; }
  .favs__status { text-align: left; }
  .favs .chips {
    justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; width: calc(100% + var(--gutter) * 2);
  }
  .favs .chips::-webkit-scrollbar { display: none; }
  .favs .chips .pill { flex: none; }
  .pdp__grid, .pdp__more { grid-template-columns: minmax(0, 1fr); }
  .pdp__media { position: relative; top: auto; }
  .pdp__frame { aspect-ratio: 1 / 1; }
  .pdp__buy > * { flex: 1 1 220px; }
  .pdp__buy .favcard__btn, .pdp__soon { justify-content: space-between; }
  .footer__row { grid-template-columns: 1fr; }
  .footer__sports { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .fhero { padding-top: calc(var(--nav-h) + 12px); }
  .fhero__crumbs { margin-bottom: 18px; }
  .favgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .favcard__body { padding: 12px; gap: 6px; }
  .favcard__name { font-size: 20px; }
  .favcard__note { font-size: 13.5px; }
  .favcard__btn { --btn-h: 36px; font-size: 11px; padding-left: 10px; gap: 8px; }
  .favcard__btn .btn__text { white-space: normal; line-height: 1.1; }
}
@media (max-width: 340px) {
  .favgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .favcard, .favcard__media img, .favcard__ph svg { transition: none !important; }
  .favcard.will-reveal { opacity: 1; transform: none; }
}

/* ---------- Coach Kal's own DriveDinkDrop products (Nov 2026) ---------- */
.favcard__tag--own { left: auto; right: 10px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pdp__frame .favcard__tag--own { left: auto; right: 14px; }
/* Dec 2026 QA: on phones the two badges overlapped; put "Sold by Coach Kal" on its own line */
@media (max-width: 480px) { .favcard .favcard__tag--own { left: 10px; right: auto; top: 42px; } }
.favcard__price { font-weight: 750; font-size: 18px; }
.favcard__add.is-off { color: var(--muted); font-size: 11px; cursor: default; }
a.favcard__add { position: relative; z-index: 2; text-decoration: none; }
.pdp__opt { display: grid; gap: 8px; margin-top: 6px; }
.pdp__opt-label { font-size: 11px; color: var(--muted); }
.pdp__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pdp__opts .pill { box-shadow: inset 0 0 0 1px var(--hair); min-width: 52px; justify-content: center; }
.pdp__opts .pill[aria-checked="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.pdp__own { margin-top: 8px; padding: 14px 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); display: grid; gap: 4px; font-size: 14.5px; line-height: 1.45; }
.pdp__own .mono { font-size: 11px; color: var(--muted); }
.pdp__soldout { padding: 14px 0; color: var(--muted); font-size: 12px; }

/* partner stores on a product page (Nov 2026): up to 4 stores, each with its own link + code */
.pdp__stores { display: grid; gap: 10px; margin-top: 8px; }
.pdp__stores-title { font-size: 11px; color: var(--muted); }
.pdp__store-list { display: grid; gap: 10px; }
.pdp__store {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px;
  padding: 14px 14px 14px 18px; box-shadow: inset 0 0 0 1.5px var(--hair); border-radius: 2px;
}
.pdp__store:first-child { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pdp__store-info { display: grid; gap: 6px; min-width: 0; }
.pdp__store-name { font-weight: 750; font-size: 18px; line-height: 1.2; }
.pdp__store .pdp__code-row { justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
.pdp__code-k { font-size: 10.5px; color: var(--muted); }
.pdp__store .pdp__code-val { font-size: 17px; }
.pdp__store .pdp__copied { font-size: 10.5px; color: var(--muted); min-height: 0; }
.pdp__store .pdp__copied:empty { display: none; }
.pdp__store-btn { --btn-h: 52px; }
@media (max-width: 600px) {
  .pdp__store-btn { width: 100%; justify-content: space-between; }
}
