/* ==========================================================================
   discover.gogofunlearning.com — site.css
   Kmellia-aligned design system for Go Go Fun Learning (audit 2026-08-02:
   docs/kmellia-design-audit/). White field + warm cream bands, near-black
   ink with the GGFL plum kept for brand accents, condensed-sans display
   (Archivo Narrow 600), outline-caps secondary buttons, one filled honey
   primary for conversion CTAs. The book photography supplies saturation.
   ========================================================================== */

:root {
  /* chrome — white page field, warm cream alternate bands (kmellia pattern) */
  --field: #ffffff;
  --cream: #ffffff; /* text-on-dark + field alias (kept for cart.js-era rules) */
  --cream-2: #f9f5ec; /* footer + alternate bands */
  --paper: #ffffff;
  --line: #e4ddcf;
  --line-soft: #efe9dd;
  /* ink — near-black with a plum undertone; GGFL plum stays for brand accents */
  --ink: #201827; /* 17.19:1 on white, 15.80:1 on cream-2 */
  --plum: #2a0a52; /* brand accent: announcement, wordmark, badges, added state */
  --ink-soft: #4f4657; /* 8.95:1 on white, 8.23:1 on cream-2 */
  --muted: #6b607a; /* 5.87:1 on white, 5.39:1 on cream-2 */
  /* the one warm accent — honey (filled conversion CTAs + stars) */
  --honey: #e8a33d; /* ink on honey: 7.97:1 */
  --honey-deep: #8a5e0b; /* accent text: 5.70:1 on white, 5.24:1 on cream-2 */
  /* type — condensed sans display (kmellia: Archivo Narrow 600, normal tracking) */
  --font-display: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
  --font-body: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --track: 0.18em; /* micro labels (nav, counts, badges) */
  --track-wide: 0.32em; /* wordmark */
  --track-eyebrow: 0.4em; /* eyebrow: 12px / 4.8px tracking */
  --track-btn: 0.02em; /* buttons: 14px / 0.28px tracking */
  /* shape + shadow — kmellia is radius 0; cards keep a minimal 2px */
  --radius-sm: 0px; /* buttons, inputs, badges */
  --radius: 2px; /* cards, media */
  --shadow-sm: 0 1px 3px rgba(42, 10, 82, 0.06);
  --shadow-md: 0 10px 30px rgba(42, 10, 82, 0.1);
  /* motion — kmellia default transition */
  --dur: 0.25s;
  --ease: cubic-bezier(0.104, 0.204, 0.492, 1);
}

/* ------------------------------------------------------------------ reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--field);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}

/* visible focus everywhere, on white, cream, and plum */
:focus-visible {
  outline: 3px solid var(--honey-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible,
.add-btn:focus-visible {
  outline-offset: 4px;
}

/* ------------------------------------------------------------- utilities */
.wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
}
.section {
  padding: 60px 0;
}
.section--tint {
  background: var(--cream-2);
}
.section--paper {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* type roles — display scale ref (desktop): h1 52/60, h2 40/48, h3 34/42, wt 600 */
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--honey-deep);
  margin-bottom: 14px;
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: normal;
}
.display em {
  font-style: italic;
  font-weight: inherit;
}
h1.display {
  font-size: clamp(2.35rem, 5.4vw, 3.25rem); /* → 52px desktop */
  line-height: 1.15; /* 52/60 */
}
h2.display {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem); /* → 40px desktop */
  line-height: 1.2; /* 40/48 */
}
h3.display {
  font-size: clamp(1.6rem, 3vw, 2.125rem); /* → 34px desktop */
  line-height: 1.24; /* 34/42 */
}
.section-head {
  max-width: 620px;
  margin-bottom: 36px;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head .lede {
  margin-top: 14px;
  color: var(--ink-soft);
}

/* buttons — 14px/600/uppercase, near-zero tracking, radius 0, min 48px target.
   Primary (.btn) stays a FILLED honey conversion CTA; ghost is the kmellia
   outline pattern. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.8em 2em;
  background: var(--honey);
  color: var(--ink);
  border: 1px solid var(--honey);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: var(--track-btn);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.btn:hover {
  background: #d9942e;
  border-color: #d9942e;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

/* the Add-to-bundle button (cart.js binds [data-add]) — a conversion CTA,
   so it shares the filled-honey primary treatment */
.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.7em 1em;
  background: var(--honey);
  color: var(--ink);
  border: 1px solid var(--honey);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: var(--track-btn);
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.add-btn:hover {
  background: #d9942e;
  border-color: #d9942e;
}
/* while the product is in the bundle (cart.js toggles this) — brand plum */
.add-btn--added {
  background: var(--plum);
  border-color: var(--plum);
  color: #ffffff;
}
.add-btn--added:hover {
  background: #3d1a6e;
  border-color: #3d1a6e;
}

/* +/- stepper cart.js injects after the first add — circular tap targets
   (mirrors kmellia's one radius exception: circular icon buttons) */
.basket-stepper {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.basket-stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.basket-stepper__btn:hover {
  background: var(--ink);
  color: #ffffff;
}
.basket-stepper__btn--dec,
.basket-stepper__btn--inc {
  flex: 0 0 auto; /* the 44px targets never shrink in the flex row */
}
.basket-stepper__value {
  min-width: 2ch;
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* star ratings — honey fill over faint track, numeric value alongside */
.stars {
  position: relative;
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #ded4c2;
  white-space: nowrap;
}
.stars .stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: var(--honey);
}
.rating-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  color: var(--muted);
}

/* prices */
.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  flex-wrap: wrap;
}
.price {
  font-weight: 800;
  color: var(--ink);
  font-size: 1.05rem;
}
.compare-at {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}

/* ------------------------------------------------------ announcement bar */
.announcement {
  background: var(--plum);
  color: #ffffff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- header */
.site-header {
  background: var(--field);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 0 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--plum);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark img {
  width: 34px;
  height: 34px;
}
.site-nav {
  align-self: stretch;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 4px;
  display: flex;
  gap: 26px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color var(--dur) var(--ease);
}
.site-nav a:hover {
  border-bottom-color: var(--honey);
}

/* ------------------------------------------------------------------- hero */
.hero {
  background: var(--field);
  padding: 56px 0;
}
.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero-copy .lede {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 1.1rem;
}
.hero-ctas {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* collection page hero variant */
.collection-hero {
  padding: 56px 0 8px;
}
.collection-hero .hero-media img {
  aspect-ratio: 5 / 4;
}

/* ------------------------------------------------------------ trust band */
.trust-band {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
  padding: 44px 20px;
}
.trust-band .big-claim {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trust-band .sub-claim {
  margin-top: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ------------------------------------------------------ collection cards */
/* kmellia-confirmed treatment: white eyebrow/headline/CTA overlaid ON the
   lifestyle image, over a plum scrim. White on the scrim's text zone is
   9.76:1 even over a pure-white image (worst case). */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.collection-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.collection-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform var(--dur) var(--ease);
}
.collection-card:hover img {
  transform: scale(1.03);
}
.collection-card .collection-card-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 84px 18px 18px;
  background: linear-gradient(
    to bottom,
    rgba(26, 8, 46, 0) 0,
    rgba(26, 8, 46, 0.78) 64px,
    rgba(26, 8, 46, 0.78)
  );
}
.collection-card .collection-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  color: #ffffff;
}
.collection-card .collection-tagline {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #efe9f6;
}
/* the underlined-caps CTA cue of the kmellia overlay treatment */
.collection-card .collection-card-label::after {
  content: "Shop the collection";
  display: inline-block;
  margin-top: 12px;
  padding-bottom: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
}

/* --------------------------------------------------------- product cards */
/* Collection pages: EXACTLY 2 per row at every viewport (owner requirement —
   never adopt kmellia's 4-up here). Media is 4:5 portrait, cover-fit, with
   the badge tray top-left (8px inset mobile, 16px desktop) and centered
   title/price below the image (kmellia centers card info). */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  row-gap: 40px;
}
.product-card {
  display: flex;
  flex-direction: column;
}
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media .img-hover {
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
@media (hover: hover) {
  .product-card:hover .img-hover,
  .card-media:focus-visible .img-hover {
    opacity: 1;
  }
}
.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  background: var(--plum);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: var(--track);
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}
.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px 4px 0;
  flex: 1;
}
.card-body .rating-line,
.card-body .price-line {
  justify-content: center;
}
.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}
.card-title a {
  text-decoration: none;
}
.card-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card-actions {
  margin-top: auto;
  padding-top: 10px;
  width: 100%;
}
.card-actions .btn {
  width: 100%;
  padding-inline: 0.5em;
  font-size: 0.8125rem;
}

/* ---------------------------------------------------------------- videos */
.video-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}
.video-item .video-caption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.yt-facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #14062b;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.yt-facade::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92)
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 6.5v11l9-5.5z" fill="%232a0a52"/></svg>')
    center / 28px no-repeat;
  transition: transform var(--dur) var(--ease);
  pointer-events: none;
}
.yt-facade:hover::after {
  transform: translate(-50%, -50%) scale(1.08);
}
.yt-facade.is-landscape {
  aspect-ratio: 16 / 9;
}
.yt-facade.is-vertical {
  aspect-ratio: 9 / 16;
  max-width: 300px;
  margin-inline: auto;
}
/* one-frame feedback while cart.js builds the iframe */
.yt-facade--loading {
  opacity: 0.6;
}
/* the wrapper cart.js swaps in for the facade on click */
.yt-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #14062b;
  box-shadow: var(--shadow-sm);
}
.yt-embed--landscape {
  aspect-ratio: 16 / 9;
}
.yt-embed--vertical {
  aspect-ratio: 9 / 16;
  max-width: 300px;
  margin-inline: auto;
}
.yt-embed__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ----------------------------------------------------------- testimonials */
.testimonial-grid {
  display: grid;
  gap: 28px;
}
.testimonial {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}
.testimonial figcaption {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.testimonial figcaption strong {
  color: var(--ink-soft);
  font-weight: 800;
  letter-spacing: var(--track);
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* --------------------------------------------------------- bundle ladder */
.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  text-align: center;
}
.ladder li {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 8px 18px;
}
.ladder .ladder-pct {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  color: var(--ink);
}
.ladder .ladder-qty {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--honey-deep);
}
.ladder-note {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ------------------------------------------------------------- club form */
.club {
  text-align: center;
}
.club-form {
  margin: 26px auto 0;
  max-width: 460px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.club-form input[type="email"] {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 0 16px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
}
.club-form input[type="email"]::placeholder {
  color: var(--muted);
}
.club-form input[type="email"]:focus-visible {
  outline: 3px solid var(--honey-deep);
  outline-offset: 2px;
}
.club-fineprint {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ------------------------------------------------------------ cross-links */
.cross-links {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  text-align: center;
}
.cross-links p {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.cross-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
}
.cross-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 2px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
.cross-links a:hover {
  border-bottom-color: var(--honey);
}

/* ----------------------------------------------------------------- footer */
/* kmellia-confirmed: warm cream footer field (#f9f5ec) with ink text */
.site-footer {
  background: var(--cream-2);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 36px;
}
.site-footer .wordmark {
  color: var(--plum);
  font-size: 0.88rem;
}
.footer-tagline {
  margin-top: 14px;
  max-width: 34ch;
  line-height: 1.6;
}
.footer-col h2 {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer :focus-visible {
  outline-color: var(--honey-deep);
}
.footer-legal {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ------------------------------------------------ sticky basket bar */
/* cart.js renders the basket into #discover-basket and adds .basket-bar
   plus the __ classes below (see the CLASS INVENTORY in cart.js). */
.basket-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: var(--paper);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(42, 10, 82, 0.14);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  font-size: 0.9rem;
  transform: translateY(16px);
  opacity: 0;
  transition:
    transform var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}
.basket-bar--visible {
  transform: translateY(0);
  opacity: 1;
}
/* a BUNDLESAVE tier is unlocked — let the honey accent show */
.basket-bar--tier {
  border-top-color: var(--honey);
}
.basket-bar :focus-visible {
  outline-color: var(--honey-deep);
}
/* the page pads its own bottom so the fixed bar never hides content
   (cart.js measures the bar into --basket-bar-height) */
body.has-basket-bar {
  padding-bottom: calc(var(--basket-bar-height, 96px) + 12px);
}

/* mobile-first: summary + actions share the top row, nudge wraps below;
   from 720px the three columns sit side by side */
.basket-bar__inner {
  width: min(1160px, 100%);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.basket-bar__summary {
  order: 1;
  flex: 1 1 auto;
  min-width: 140px;
}
.basket-bar__actions {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
}
.basket-bar__upsell {
  order: 3;
  flex: 1 1 100%;
  min-width: 0;
}

.basket-bar__count {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
}
.basket-bar__prices {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  flex-wrap: wrap;
}
.basket-bar__was {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.85rem;
}
.basket-bar__now {
  font-weight: 800;
  color: var(--ink);
  font-size: 1.05rem;
}
.basket-bar__save {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--honey-deep);
}

.basket-bar__nudge {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.basket-bar__progress {
  margin-top: 6px;
  height: 4px;
  border-radius: 0;
  background: var(--line);
  overflow: hidden;
}
.basket-bar__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--honey);
  border-radius: inherit;
  transition: width var(--dur) var(--ease);
}

.basket-bar__tier {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--honey-deep);
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  white-space: nowrap;
}
.basket-bar__tier:empty {
  display: none;
}
/* primary CTA — same filled-honey conversion language as .btn */
.basket-bar__checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.8em 1.6em;
  background: var(--honey);
  color: var(--ink);
  border: 1px solid var(--honey);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: var(--track-btn);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.basket-bar__checkout:hover {
  background: #d9942e;
  border-color: #d9942e;
}
.basket-bar__checkout[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}
.basket-bar__clear {
  min-height: 44px;
  padding: 0 6px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.basket-bar__clear:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------ breakpoints */
@media (min-width: 720px) {
  .section {
    padding: 96px 0;
  }
  .hero {
    padding: 80px 0;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
  }
  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .product-grid {
    gap: 32px;
    row-gap: 56px;
  }
  /* home bestsellers may go 4-up on desktop; collection grids keep 2-up */
  .product-grid--quad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }
  /* badge tray: 16px inset on desktop (8px mobile) */
  .card-badge {
    top: 16px;
    left: 16px;
  }
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
  .video-grid--with-vertical {
    grid-template-columns: 5fr 5fr 3fr;
  }
  .video-grid--pair {
    grid-template-columns: 7fr 3fr;
  }
  .site-nav ul {
    justify-content: center;
  }
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
  }
  .site-header .wrap {
    padding-top: 28px;
  }
  .basket-bar__inner {
    flex-wrap: nowrap;
  }
  .basket-bar__upsell {
    order: 2;
    flex: 1 1 260px;
  }
  .basket-bar__actions {
    order: 3;
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }
}

@media (max-width: 719.98px) {
  .ladder {
    grid-template-columns: repeat(2, 1fr);
  }
  .ladder li:last-child {
    grid-column: 1 / -1;
  }
  /* keep the overlay text readable in the 2-up mobile collection grid */
  .collection-card .collection-card-label {
    padding: 56px 12px 12px;
    background: linear-gradient(
      to bottom,
      rgba(26, 8, 46, 0) 0,
      rgba(26, 8, 46, 0.78) 44px,
      rgba(26, 8, 46, 0.78)
    );
  }
  .collection-card .collection-name {
    font-size: 1.05rem;
  }
  .collection-card .collection-tagline {
    font-size: 0.78rem;
  }
  .collection-card .collection-card-label::after {
    margin-top: 8px;
    font-size: 0.62rem;
  }
}

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .collection-card:hover img {
    transform: none;
  }
}
