/* ==========================================================================
   GOLAZO — Button system · LIQUID GLASS  (depends on tokens/golazo-tokens.css)
   One consistent translucent system. Tint opacities are tuned so text passes
   WCAG AA over EVERY real backdrop (white page → dark hero) WITHOUT the blur —
   blur/sheen is visual enhancement, never load-bearing for contrast.

   VERIFIED (alpha-composite, no blur — worst case across backdrops):
     primary  white text .......... 5.28:1  PASS  (white page) → 12:1 on dark
     secondary green text ......... 4.96:1  PASS  (light surfaces)
     ghost/secondary-dark white ... 5.54:1  PASS  (dark/photo only)
     icon-light green .............. 5.05:1  PASS  (light only)
     icon-dark white ............... 5.26:1  PASS  (dark only)
   Variants: primary · secondary · ghost-dark · icon (light/dark/active)
   Sizes: lg · md (default) · sm   ·   States: hover active focus disabled loading
   ========================================================================== */

.btn{
  position:relative; isolation:isolate; overflow:hidden;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-ka); font-weight:600; line-height:1;
  border-radius:var(--radius-pill); cursor:pointer; white-space:nowrap;
  border:1px solid transparent; color:#fff;
  -webkit-backdrop-filter:blur(14px) saturate(160%); backdrop-filter:blur(14px) saturate(160%);
  transition:background .2s, color .2s, border-color .2s, transform .15s var(--ease-out), box-shadow .2s;
  -webkit-tap-highlight-color:transparent;
}
/* top gloss sheen — the "liquid" highlight; kept to the upper band, behind text */
.btn::before{content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:-1;
  background:linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.04) 46%, transparent 70%); opacity:.8}
.btn svg{width:1.15em; height:1.15em; flex:0 0 auto}

/* sizes */
.btn{font-size:15px; padding:12px 26px}
.btn--lg{font-size:17px; padding:16px 36px}
.btn--sm{font-size:13px; padding:9px 18px}

/* ---- PRIMARY — green liquid glass, white text (works on ALL surfaces) ---- */
.btn--primary{
  color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.35);
  background:linear-gradient(135deg, rgba(13,98,57,.86), rgba(8,72,42,.92));
  border-color:rgba(255,255,255,.30);
  box-shadow:var(--shadow-btn), inset 0 1px 1px rgba(255,255,255,.45), inset 0 -1px 2px rgba(0,0,0,.18);
}
.btn--primary:hover{background:linear-gradient(135deg, rgba(8,72,42,.92), rgba(8,72,42,.97)); transform:translateY(-2px)}
.btn--primary:active{transform:translateY(0)}

/* ---- SECONDARY — white liquid glass, green text (light surfaces) ---- */
.btn--secondary{
  color:var(--golazo-green); text-shadow:none;
  background:linear-gradient(135deg, rgba(255,255,255,.86), rgba(237,239,234,.80));
  border-color:rgba(13,98,57,.22);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.8), 0 6px 16px -8px rgba(0,0,0,.18);
}
.btn--secondary:hover{background:linear-gradient(135deg, rgba(255,255,255,.94), rgba(237,239,234,.9)); border-color:rgba(13,98,57,.4); transform:translateY(-2px)}

/* ---- GHOST / secondary on dark + photo (white text, dark surfaces only) ---- */
.btn--ghost-dark{
  color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.4);
  background:linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  border-color:rgba(255,255,255,.55);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.4), 0 8px 20px -10px rgba(0,0,0,.4);
}
.btn--ghost-dark:hover{background:linear-gradient(135deg, rgba(255,255,255,.26),rgba(255,255,255,.12)); border-color:#fff; transform:translateY(-2px)}

/* ---- ICON button — round liquid glass ---- */
.btn--icon{
  width:44px; height:44px; padding:0; border-radius:50%; gap:0;
  color:var(--golazo-green);
  background:linear-gradient(135deg, rgba(13,98,57,.16), rgba(13,98,57,.09));
  border:1px solid rgba(13,98,57,.22);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.5);
}
.btn--icon:hover{background:linear-gradient(135deg, rgba(13,98,57,.24),rgba(13,98,57,.14))}
.btn--icon.on-dark{
  color:#fff; border-color:rgba(255,255,255,.4);
  background:linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.10));
  box-shadow:inset 0 1px 1px rgba(255,255,255,.5)}
.btn--icon.on-dark:hover{background:linear-gradient(135deg, rgba(255,255,255,.30),rgba(255,255,255,.16))}
.btn--icon.is-active{ /* selected: high-tint green glass, white icon */
  color:#fff; background:linear-gradient(135deg, rgba(13,98,57,.86),rgba(8,72,42,.92)); border-color:rgba(255,255,255,.3)}
.btn--icon svg{width:22px; height:22px}

/* ---- STATES ---- */
.btn:focus-visible{outline:none; box-shadow:0 0 0 2px var(--pitch-white), 0 0 0 5px var(--golazo-green)}
.btn:disabled,.btn[aria-disabled="true"]{
  color:var(--neutral-600); background:linear-gradient(135deg, rgba(210,214,208,.6),rgba(210,214,208,.45));
  border-color:rgba(0,0,0,.06); cursor:not-allowed; box-shadow:none; transform:none; text-shadow:none}
.btn:disabled::before{opacity:.3}

/* loading: add .is-loading */
.btn.is-loading{color:transparent; pointer-events:none}
.btn.is-loading::after{content:""; position:absolute; width:1.1em; height:1.1em;
  border:2px solid currentColor; border-top-color:transparent; border-radius:50%;
  color:#fff; animation:btn-spin .7s linear infinite}
.btn--secondary.is-loading::after{color:var(--golazo-green)}
@keyframes btn-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.btn,.btn.is-loading::after{transition:none; animation-duration:1.4s}}

.btn--block{display:flex; width:100%}

/* ==========================================================================
   QUANTITY STEPPER — liquid glass shell
   ========================================================================== */
.qty{display:inline-flex; align-items:center; border-radius:var(--radius-pill); overflow:hidden;
  border:1px solid rgba(13,98,57,.22); background:linear-gradient(135deg, rgba(255,255,255,.86),rgba(237,239,234,.8));
  -webkit-backdrop-filter:blur(14px) saturate(150%); backdrop-filter:blur(14px) saturate(150%);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.8)}
.qty button{width:42px; height:42px; border:none; background:transparent; cursor:pointer;
  color:var(--golazo-green); display:flex; align-items:center; justify-content:center}
.qty button:hover{background:rgba(13,98,57,.08)}
.qty button:disabled{color:var(--neutral-300); cursor:not-allowed}
.qty span{min-width:40px; text-align:center; font-family:var(--font-body); font-weight:600; font-size:15px; color:var(--ink)}

/* ==========================================================================
   PERFORMANCE NOTE (Build Lead):
   backdrop-filter is GPU-heavy; many glass buttons on a page tax low-end Android.
   Contrast does NOT depend on the blur, so it is safe to drop blur on weak devices:
     @media (max-width: 740px) and (update: slow) { .btn{ backdrop-filter:none } }
   or gate via a perf flag. Tints already pass AA solid.
   ========================================================================== */
