/* ==========================================================================
   bouncelab.co — Vile Parle's ball shop
   Global stylesheet
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Typography
   5.  Buttons, chips & badges
   6.  Header, nav & drawer
   7.  Footer
   8.  Ball art & product cards
   9.  Home page sections
   10. Shop page
   11. Product detail page
   12. Cart page
   13. Forms
   14. About & bulk pages
   15. Accordion, toast, modal
   16. Utilities & motion
   ========================================================================== */

/* ----------------------------------------------------------------- 1. Tokens */
:root {
  /* Brand palette */
  --court:        #e8622c;   /* basketball orange — the primary */
  --court-deep:   #b8420f;
  --court-soft:   #ffb583;
  --turf:         #1f7a4d;   /* football green */
  --turf-deep:    #14532d;
  --turf-soft:    #a7dcbf;
  --moon:         #c9cfd8;   /* moon-ball silver */
  --moon-deep:    #6b7688;
  --smile:        #ffcf2e;   /* smiley yellow */
  --smile-deep:   #d99b00;

  --night:        #12161f;
  --night-2:      #1c2230;
  --night-3:      #2b3446;
  --chalk:        #f7f4ee;
  --chalk-2:      #efeae1;
  --white:        #ffffff;

  /* Semantic */
  --bg:           var(--chalk);
  --surface:      var(--white);
  --surface-alt:  var(--chalk-2);
  --ink:          var(--night);
  --ink-soft:     #4a5364;
  --ink-mute:     #7b8494;
  --line:         #e2dcd1;
  --line-soft:    #eee9e0;
  --brand:        var(--court);
  --brand-deep:   var(--court-deep);
  --ok:           #2f8055;
  --warn:         #b47613;
  --danger:       #c0392b;

  /* Type */
  --font-display: "Anton", "Haettenschweiler", "Arial Narrow", Impact, sans-serif;
  --font-body:    "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.75rem;
  --fs-4xl:  3.75rem;
  --fs-5xl:  5rem;

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Shape */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-xl:   30px;
  --r-2xl:  42px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm:   0 2px 6px rgba(18, 22, 31, .06);
  --sh-md:   0 10px 26px -12px rgba(18, 22, 31, .24);
  --sh-lg:   0 26px 60px -24px rgba(18, 22, 31, .34);
  --sh-glow: 0 18px 44px -18px rgba(232, 98, 44, .5);

  /* Layout */
  --wrap: 1220px;
  --wrap-narrow: 760px;
  --header-h: 72px;

  --ease: cubic-bezier(.4, .14, .3, 1);
  --ease-back: cubic-bezier(.34, 1.4, .5, 1);
}

/* -------------------------------------------------------- 2. Reset & base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 34%, transparent);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--court);
  outline-offset: 3px;
  border-radius: 4px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

::selection { background: var(--smile); color: var(--night); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--night);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------- 3. Layout primitives */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section-dark {
  background: var(--night);
  color: var(--chalk);
}
.section-dark .lede,
.section-dark .muted { color: #a9b3c4; }
.section-alt { background: var(--surface-alt); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.section-head > div { max-width: 62ch; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ------------------------------------------------------- 4. Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 7vw, var(--fs-4xl)); }
h2 { font-size: clamp(2rem, 5vw, var(--fs-3xl)); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
}
.section-dark .eyebrow { color: var(--smile); }

.lede {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-soft);
}
.small { font-size: var(--fs-sm); }
.muted { color: var(--ink-mute); }
.strike { text-decoration: line-through; opacity: .55; }

.price {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: .02em;
}
.price-was {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-mute);
  text-decoration: line-through;
  margin-left: var(--sp-2);
}

/* ------------------------------------------- 5. Buttons, chips & badges */
.btn {
  --btn-bg: var(--court);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: .78rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: transform .18s var(--ease-back), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-primary { --btn-bg: var(--court); --btn-fg: var(--white); box-shadow: var(--sh-glow); }
.btn-primary:hover { --btn-bg: var(--court-deep); }
.btn-dark    { --btn-bg: var(--night); --btn-fg: var(--chalk); }
.btn-dark:hover { --btn-bg: var(--night-3); }
.btn-chalk   { --btn-bg: var(--chalk); --btn-fg: var(--night); }
.btn-turf    { --btn-bg: var(--turf); --btn-fg: var(--white); }
.btn-whatsapp{ --btn-bg: #25d366; --btn-fg: #06331a; }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: currentColor;
}
.btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--chalk); border-color: var(--ink); }
.section-dark .btn-ghost { --btn-fg: var(--chalk); }
.section-dark .btn-ghost:hover { --btn-bg: var(--chalk); --btn-fg: var(--night); }

.btn-sm    { padding: .55rem 1.05rem; font-size: var(--fs-xs); }
.btn-lg    { padding: 1rem 2rem; font-size: var(--fs-base); }
.btn-block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section-dark .link-arrow { color: var(--smile); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .42rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--ink-mute); }
.chip.is-on {
  background: var(--night);
  border-color: var(--night);
  color: var(--chalk);
}
.chip .ball-mark { width: 18px; height: 18px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: .3rem .6rem;
  border-radius: var(--r-sm);
  background: var(--night);
  color: var(--chalk);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.2;
}
.badge-best { background: var(--court); }
.badge-new  { background: var(--turf); }
.badge-sale { background: var(--smile); color: var(--night); }
.badge-out  { background: var(--ink-mute); }

.stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--smile-deep);
}
.stars svg { width: 14px; height: 14px; }
.stars .count {
  margin-left: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-mute);
}

/* ------------------------------------------------ 6. Header, nav, drawer */
.announce {
  background: var(--night);
  color: var(--chalk);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .55rem 0;
  overflow: hidden;
}
.announce-track {
  display: flex;
  gap: var(--sp-8);
  width: max-content;
  animation: marquee 34s linear infinite;
}
.announce-track span { display: flex; align-items: center; gap: var(--sp-3); white-space: nowrap; }
.announce-track span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--court);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--chalk) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -14px rgba(18, 22, 31, .5);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex: none;
}
/* The logo is a square-ish badge on its own cream ground, so it is used as a
   mark beside the wordmark rather than stretched across the header. The
   rounded corner keeps the badge edge from reading as a stray rectangle. */
.brand-logo {
  height: 44px;
  width: auto;
  flex: none;
  border-radius: 9px;
}
.footer-brand .brand-logo { height: 76px; border-radius: 12px; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: .9;
  display: flex;
  flex-direction: column;
}
.brand-text small {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-left: auto;
}
.nav a {
  position: relative;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding-block: .4rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--court);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: var(--sp-4);
}
.nav + .header-actions { margin-left: var(--sp-4); }
.header-inner > .header-actions:first-of-type:not(.nav + *) { margin-left: auto; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: background .18s var(--ease);
}
.icon-btn:hover { background: var(--chalk-2); }
.icon-btn svg { width: 21px; height: 21px; }

.cart-count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--court);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  opacity: 0;
  transform: scale(.5);
  transition: all .2s var(--ease-back);
}
.cart-count.is-visible { opacity: 1; transform: scale(1); }
.cart-count.is-bump { animation: bump .4s var(--ease-back); }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.nav-toggle { display: none; }

/* drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  visibility: hidden;
}
.drawer.is-open { visibility: visible; }
.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 31, .5);
  opacity: 0;
  transition: opacity .26s var(--ease);
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 86vw);
  background: var(--chalk);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  overflow-y: auto;
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
}
.drawer-head strong {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  text-transform: uppercase;
}
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  text-transform: uppercase;
}
.drawer nav a.is-active { color: var(--court); }
.drawer-foot { margin-top: auto; padding-top: var(--sp-5); }

/* ------------------------------------------------------------ 7. Footer */
.site-footer {
  background: var(--night);
  color: var(--chalk);
  padding-top: var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}
.site-footer h4 {
  font-size: var(--fs-sm);
  letter-spacing: .16em;
  color: var(--smile);
  margin-bottom: var(--sp-4);
}
.site-footer a { color: #c6cddb; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-links { display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-sm); }
.footer-brand .brand-text { color: var(--chalk); }
.footer-brand p { color: #98a2b3; font-size: var(--fs-sm); margin-top: var(--sp-4); max-width: 34ch; }
.footer-social { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--night-3);
  border-radius: 50%;
}
.footer-social a:hover { background: var(--night-3); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  padding-block: var(--sp-4);
  border-top: 1px solid var(--night-3);
  font-size: var(--fs-xs);
  color: #7d8798;
}

/* --------------------------------------------- 8. Ball art & product cards */
.ball-art { width: 100%; height: auto; display: block; overflow: visible; }
.ball-art .ball-body { transform-origin: 100px 95px; }
.ball-art.is-spinning .ball-body { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ball-mark { display: inline-block; vertical-align: middle; flex: none; }

.bcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .2s var(--ease);
}
.bcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}
.bcard.is-out { opacity: .72; }

.bcard-media {
  position: relative;
  background: var(--bcard-bg, var(--chalk-2));
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  aspect-ratio: 1 / .92;
  display: grid;
  place-items: center;
}
.bcard-media .ball-art {
  width: 78%;
  transition: transform .3s var(--ease-back);
}
.bcard:hover .bcard-media .ball-art { transform: translateY(-6px) scale(1.04); }

.bcard-flags {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 2;
}
.bcard-quick {
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: var(--sp-3);
  opacity: 0;
  transform: translateY(8px);
  transition: all .24s var(--ease);
}
.bcard:hover .bcard-quick,
.bcard:focus-within .bcard-quick { opacity: 1; transform: translateY(0); }

.bcard-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: 6px; }
.bcard-cat {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.bcard-title { font-size: var(--fs-lg); }
.bcard-title a { text-decoration: none; }
.bcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bcard-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}
.bcard-size {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Bounce/grip/durability meters */
.meters { display: grid; gap: var(--sp-3); }
.meter-row {
  display: grid;
  grid-template-columns: 90px 1fr 42px;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}
.meter-row dt { font-weight: 600; color: var(--ink-soft); }
.meter-row dd { margin: 0; }
.meter-track {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--line-soft);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--court), var(--smile));
  width: 0;
  transition: width .9s var(--ease);
}
.meter-val { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.section-dark .meter-track { background: var(--night-3); }
.section-dark .meter-row dt { color: #a9b3c4; }

/* ------------------------------------------------- 9. Home page sections */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(232, 98, 44, .16), transparent 46%),
    radial-gradient(circle at 12% 78%, rgba(31, 122, 77, .14), transparent 42%),
    var(--chalk);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
}
/* faint court markings behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(18, 22, 31, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 22, 31, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero h1 { margin-bottom: var(--sp-4); }
.hero h1 em {
  font-style: normal;
  color: var(--court);
  -webkit-text-stroke: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: 1;
  color: var(--court);
}
.hero-stat span {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* The stacked hero balls */
.hero-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-ball {
  position: absolute;
  filter: drop-shadow(0 18px 30px rgba(18, 22, 31, .18));
}
/* the big one stays in flow so the grid centres it; the rest orbit it */
.hero-ball-1 { position: relative; width: 62%; z-index: 3; animation: bob 5.2s ease-in-out infinite; }
.hero-ball-2 { width: 34%; top: 4%; left: 2%;  z-index: 2; animation: bob 6.4s ease-in-out infinite .5s; }
.hero-ball-3 { width: 30%; bottom: 6%; right: 3%; z-index: 2; animation: bob 5.8s ease-in-out infinite 1.1s; }
.hero-ball-4 { width: 22%; bottom: 16%; left: 8%; z-index: 1; animation: bob 7s ease-in-out infinite .8s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-5); }
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--cat-bg, var(--chalk-2));
  color: var(--cat-ink, var(--night));
  text-decoration: none;
  overflow: hidden;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.cat-card .ball-art {
  width: 62%;
  margin: var(--sp-4) auto;
  transition: transform .34s var(--ease-back);
}
.cat-card:hover .ball-art { transform: scale(1.09) rotate(-6deg); }
.cat-card h3 { font-size: var(--fs-xl); }
.cat-card p { font-size: var(--fs-sm); opacity: .82; margin: var(--sp-2) 0 0; }
.cat-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.cat-card-foot svg { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.cat-card:hover .cat-card-foot svg { transform: translateX(5px); }

/* Service / promise strip */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-5); }
.service {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.section-dark .service { background: var(--night-2); border-color: var(--night-3); }
.service-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--court) 14%, transparent);
  color: var(--court);
}
.service-icon svg { width: 24px; height: 24px; }
.service h3 { font-size: var(--fs-lg); }
.service p { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }
.section-dark .service p { color: #a9b3c4; }



/* Newsletter */
.newsletter {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: var(--sp-6);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, var(--court), var(--court-deep));
  color: var(--white);
}
.newsletter h2 { color: var(--white); }
.newsletter p { opacity: .92; }
.newsletter-form { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.newsletter-form input {
  flex: 1 1 200px;
  min-width: 0;
  padding: .85rem 1.1rem;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .16);
  color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .72); }
.newsletter-form input:focus { outline-color: var(--white); background: rgba(255, 255, 255, .24); }

/* Page head (inner pages) */
.page-head {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  padding-block: var(--sp-6) var(--sp-7);
}
.page-head .wrap { position: relative; }
.page-head-inner { max-width: 64ch; }
.breadcrumb {
  display: flex;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--court); }
.page-head .deco {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  opacity: .9;
  pointer-events: none;
}

/* ------------------------------------------------------- 10. Shop page */
.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.filters {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  display: grid;
  gap: var(--sp-5);
}
.filter-group h4 {
  font-size: var(--fs-sm);
  letter-spacing: .14em;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-opt {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: .45rem .6rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  text-align: left;
  font-size: var(--fs-sm);
  font-weight: 600;
  width: 100%;
  transition: background .16s var(--ease);
}
.filter-opt:hover { background: var(--chalk-2); }
.filter-opt.is-on { background: var(--night); color: var(--chalk); }
.filter-opt .count { margin-left: auto; font-size: var(--fs-xs); opacity: .6; font-variant-numeric: tabular-nums; }
.filter-opt .ball-mark { width: 20px; height: 20px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.search-box { position: relative; flex: 1 1 240px; }
.search-box svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-mute);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: .7rem 1rem .7rem 2.6rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
}
.toolbar select {
  padding: .7rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.result-count { font-size: var(--fs-sm); color: var(--ink-mute); font-weight: 600; }
.filters-toggle { display: none; }

.active-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.active-filters .chip { cursor: pointer; }
.active-filters .chip::after { content: "×"; font-size: 1.1em; line-height: 1; margin-left: 2px; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
}
.empty-state .ball-art { width: 120px; margin: 0 auto var(--sp-4); opacity: .5; }

/* ---------------------------------------------- 11. Product detail page */
.pdp {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
/* The image column sticks as a whole, so the thumbnails travel with it. */
.pdp-stack {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  display: grid;
  gap: var(--sp-3);
}
.pdp-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--sp-7) var(--sp-6);
  border-radius: var(--r-2xl);
  background: var(--pdp-bg, var(--chalk-2));
  aspect-ratio: 1 / .96;
  overflow: hidden;
}
.pdp-media .ball-art { width: 82%; }

/* Extra shots of the same stock, under the main image. */
.shot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: var(--sp-3); }
.shot {
  margin: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--chalk-2);
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-flags { position: absolute; top: var(--sp-4); left: var(--sp-4); display: flex; gap: 4px; flex-wrap: wrap; }

.pdp-head { display: flex; flex-direction: column; gap: var(--sp-3); }
.pdp-price { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.pdp-price .price { font-size: var(--fs-2xl); }
.pdp-price .save {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--turf);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.opt-group { margin-top: var(--sp-6); }
.opt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.opt-head h4 { font-size: var(--fs-sm); letter-spacing: .14em; }
.opt-head .opt-note { font-size: var(--fs-sm); color: var(--ink-mute); }

.size-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.size-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: .6rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: left;
  transition: all .18s var(--ease);
}
.size-btn strong { font-size: var(--fs-sm); font-weight: 700; }
.size-btn span { font-size: var(--fs-xs); color: var(--ink-mute); }
.size-btn:hover { border-color: var(--ink-mute); }
.size-btn.is-on { border-color: var(--court); background: color-mix(in srgb, var(--court) 8%, var(--surface)); }
.size-btn.is-on span { color: var(--court-deep); }

.swatch-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.swatch {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .4rem .8rem .4rem .4rem;
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all .18s var(--ease);
}
.swatch i {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sw, #ccc);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .18), inset 0 3px 6px rgba(255, 255, 255, .4);
}
.swatch:hover { border-color: var(--ink-mute); }
.swatch.is-on { border-color: var(--night); }

.qty-row { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-6); }
.qty {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.qty button {
  width: 42px; height: 44px;
  border: 0;
  background: transparent;
  font-size: var(--fs-lg);
  line-height: 1;
}
.qty button:hover { background: var(--chalk-2); }
.qty input {
  width: 44px;
  height: 44px;
  border: 0;
  text-align: center;
  font-weight: 700;
  background: transparent;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stock-note {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-top: var(--sp-4);
}
.stock-note::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.stock-note.is-low { color: var(--warn); }
.stock-note.is-low::before { background: var(--warn); }
.stock-note.is-out { color: var(--danger); }
.stock-note.is-out::before { background: var(--danger); }

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td {
  padding: .7rem 0;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.spec-table th { width: 42%; font-weight: 700; color: var(--ink-soft); }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
/* The tick is positioned, not a grid column. A grid here put every inline
   run (a <strong> lead-in and the text after it) into its own column, which
   squeezed the copy down to one word per line on narrow screens. */
.tick-list li {
  position: relative;
  padding-left: 34px;
  font-size: var(--fs-sm);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--turf) 18%, transparent) no-repeat center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px;
}

/* ------------------------------------------------------- 12. Cart page */
.cart-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: var(--sp-7); align-items: start; }
/* Grid items default to min-width:auto and refuse to shrink below their
   content, which pushed the delivery form past the viewport on phones. */
.cart-layout > * { min-width: 0; }
.cart-lines { display: grid; gap: var(--sp-3); }
.cart-line {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.cart-line-media {
  border-radius: var(--r-md);
  background: var(--cl-bg, var(--chalk-2));
  padding: var(--sp-2);
  display: grid;
  place-items: center;
}
.cart-line h3 { font-size: var(--fs-base); }
.cart-line-opts { font-size: var(--fs-sm); color: var(--ink-mute); }
.cart-line-actions { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-2); }
.cart-line .qty button { width: 34px; height: 36px; font-size: var(--fs-base); }
.cart-line .qty input { width: 36px; height: 36px; }
.link-remove {
  border: 0;
  background: none;
  padding: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: underline;
}
.link-remove:hover { color: var(--danger); }

.summary {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-2);
  font-size: var(--fs-sm);
}
.summary-row.is-total {
  border-top: 2px solid var(--ink);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.summary-row .free { color: var(--turf); font-weight: 700; }

/* The line under Delivery that explains how the fee was reached. */
.summary-row.is-sub { padding-top: 0; margin-top: -6px; }
.summary-row.is-sub span:last-child { text-align: right; }

/* Shown on the total while the distance is still unknown. */
.price .plus,
.summary-row .plus {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-mute);
  text-transform: none;
  letter-spacing: 0;
}

/* An anchor cannot be `disabled`, so it is muted and made unclickable. */
.is-disabled {
  opacity: .45;
  pointer-events: none;
  cursor: not-allowed;
}

.promo-row { display: flex; gap: var(--sp-2); margin-block: var(--sp-4); }
.promo-row input {
  flex: 1;
  min-width: 0;
  padding: .65rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--chalk);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .06em;
}
.promo-note { font-size: var(--fs-sm); font-weight: 600; }
.promo-note.is-ok { color: var(--turf); }
.promo-note.is-bad { color: var(--danger); }

.cart-empty { text-align: center; padding: var(--sp-8) var(--sp-4); }
.cart-empty .ball-art { width: 150px; margin: 0 auto var(--sp-5); }

/* ---------------------------------------------------------- 13. Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 700; }
.field label .req { color: var(--court); }
.field input, .field select, .field textarea {
  padding: .78rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--court); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-mute); }
.field .error {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--danger);
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error .error { display: block; }

.radio-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: .7rem 1.1rem;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card strong { font-size: var(--fs-sm); }
.radio-card span { font-size: var(--fs-xs); color: var(--ink-mute); }
.radio-card:hover { border-color: var(--ink-mute); }
.radio-card:has(input:checked) { border-color: var(--court); background: color-mix(in srgb, var(--court) 8%, var(--surface)); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--court); outline-offset: 2px; }

.form-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}

/* --------------------------------------------- 14. About & bulk pages */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-art {
  display: grid;
  place-items: center;
  padding: var(--sp-7);
  border-radius: var(--r-2xl);
  background: var(--split-bg, var(--chalk-2));
}
.split-art .ball-art { width: 70%; }
.split-art.has-photo { padding: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.split-art.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.timeline { display: grid; gap: 0; }
.tl-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  border-left: 2px solid var(--line);
  padding-left: var(--sp-5);
  margin-left: var(--sp-3);
  position: relative;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: calc(var(--sp-5) + 8px);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--court);
  border: 3px solid var(--bg);
}
.tl-year {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--court);
  line-height: 1;
}
.tl-item h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.tl-item p { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-5);
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--court);
}
.stat span {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.section-dark .stat span { color: #98a2b3; }

/* Tier cards (bulk page) */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-5); }
.tier {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-xl);
}
.tier.is-featured { border-color: var(--court); box-shadow: var(--sh-glow); }
.tier-badge {
  align-self: flex-start;
  padding: .25rem .7rem;
  border-radius: var(--r-pill);
  background: var(--court);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tier h3 { font-size: var(--fs-xl); }
.tier-price { font-family: var(--font-display); font-size: var(--fs-2xl); color: var(--court); line-height: 1; }
.tier-price small { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-mute); display: block; text-transform: uppercase; letter-spacing: .08em; }

.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--sp-5); counter-reset: step; }
.step { position: relative; padding-top: var(--sp-6); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: color-mix(in srgb, var(--court) 40%, transparent);
  line-height: 1;
}
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-5); }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.contact-card h3 { font-size: var(--fs-base); }
.contact-card a { font-weight: 700; text-decoration: none; color: var(--court); }

.hours-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.hours-table td { padding: .6rem 0; border-bottom: 1px solid var(--line-soft); }
.hours-table td:last-child { text-align: right; font-weight: 700; }

/* Google Maps embed */
.map-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--chalk-2);
  border: 1px solid var(--line);
}
.map-card svg { width: 100%; height: auto; display: block; }
.map-card iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 46vw, 460px);
  border: 0;
}

/* ------------------------------------------ 15. Accordion, toast, modal */
.acc { display: grid; gap: var(--sp-2); }
.acc-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-4) var(--sp-5);
  border: 0;
  background: none;
  text-align: left;
  font-weight: 700;
  font-size: var(--fs-base);
}
.acc-trigger::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .22s var(--ease);
}
.acc-item.is-open .acc-trigger::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s var(--ease);
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 var(--sp-5) var(--sp-5); font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }

.toast-stack {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 160;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  max-width: 340px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--night);
  color: var(--chalk);
  font-size: var(--fs-sm);
  box-shadow: var(--sh-lg);
  opacity: 0;
  transform: translateY(14px);
  transition: all .3s var(--ease-back);
  pointer-events: auto;
}
.toast.is-in { opacity: 1; transform: translateY(0); }
.toast a { color: var(--smile); }
.toast-art { width: 40px; flex: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  visibility: hidden;
}
.modal.is-open { visibility: visible; }
.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 31, .55);
  opacity: 0;
  transition: opacity .24s var(--ease);
}
.modal.is-open .modal-scrim { opacity: 1; }
.modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  transform: translateY(16px) scale(.97);
  opacity: 0;
  transition: all .26s var(--ease-back);
}
.modal.is-open .modal-card { transform: none; opacity: 1; }
.modal-close {
  position: absolute;
  top: var(--sp-3); right: var(--sp-3);
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--chalk-2);
  display: grid;
  place-items: center;
}
.modal-close svg { width: 18px; height: 18px; }

/* -------------------------------------------------- 16. Utilities & motion */
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.center { text-align: center; }
.center-x { margin-inline: auto; }
.flex { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.hide { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Content is visible by default and only hidden once JS has confirmed it can
   observe and un-hide it again. If scripting or IntersectionObserver is
   unavailable, the page reads normally instead of staying blank. */
.reveal { transition: opacity .62s var(--ease), transform .62s var(--ease); }
html.js-reveal .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(22px);
}

/* ------------------------------------------- 17. Product photography
   Photos are cropped to their frame rather than squashed into it, so every
   card keeps the same shape whatever the source aspect ratio. `is-contain`
   is for cut-outs shot on white, which should sit inside the frame. */
.ball-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--chalk-2);
}

.bcard-media.has-photo,
.pdp-media.has-photo,
.cart-line-media.has-photo { padding: 0; }

.bcard-media.has-photo .ball-photo,
.pdp-media.has-photo .ball-photo { position: absolute; inset: 0; }

/* white-background cut-outs breathe instead of bleeding to the edge */
.bcard-media.has-photo .ball-photo.is-contain,
.pdp-media.has-photo .ball-photo.is-contain {
  inset: 7%;
  width: 86%;
  height: 86%;
  object-fit: contain;
  background: transparent;
}

.cart-line-media .ball-photo { aspect-ratio: 1; border-radius: var(--r-sm); }
.toast-art .ball-photo { aspect-ratio: 1; border-radius: 6px; }

/* The card hover lift applies to art and photography alike. */
.bcard:hover .bcard-media.has-photo .ball-photo { transform: scale(1.04); }
.bcard-media.has-photo .ball-photo { transition: transform .3s var(--ease); }

/* Bundle maths, under the price on a card. */
.bcard-unit {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--turf);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 210px 1fr; gap: var(--sp-5); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 300px; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-stack { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .split { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .page-head .deco { display: none; }

  .shop-layout { grid-template-columns: 1fr; }
  .filters {
    position: static;
    display: none;
    padding: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin-bottom: var(--sp-5);
  }
  .filters.is-open { display: grid; }
  .filters-toggle { display: inline-flex; }
}

@media (max-width: 620px) {
  :root { --header-h: 64px; }

  /* "bouncelab.co" is a long wordmark — shrink it rather than let it push
     the cart and menu buttons off the right edge. */
  .header-inner { gap: var(--sp-2); }
  .brand { min-width: 0; }
  .brand-logo { height: 34px; border-radius: 7px; }
  .footer-brand .brand-logo { height: 62px; }
  .brand-text { font-size: 1.05rem; min-width: 0; }
  .brand-text small { font-size: 9px; letter-spacing: .14em; }
  .icon-btn { width: 38px; height: 38px; }
  .icon-btn svg { width: 19px; height: 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .grid-4 { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: var(--sp-3); }
  .bcard-media { padding: var(--sp-3); }
  .bcard-body { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
  .bcard-title { font-size: var(--fs-base); }
  .bcard-quick { opacity: 1; transform: none; position: static; margin-top: var(--sp-3); }
  .cart-line { grid-template-columns: 70px 1fr; }
  .cart-line-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .tl-item { grid-template-columns: 1fr; gap: var(--sp-2); }
  .meter-row { grid-template-columns: 74px 1fr 38px; }
  .toast-stack { left: var(--sp-4); right: var(--sp-4); }
  .toast { max-width: none; }
  .hero-stats { gap: var(--sp-5); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .announce-track { animation: none; }
}
