/* Zakka shop & app — "feel" layer (2026-11-16). Loaded LAST.
   Apple-style response: instant press feedback, translucent bars, springy
   sheets you can swipe down, 44px targets, steady numbers. Light polish only. */
:root {
  --spring: cubic-bezier(.2, .8, .2, 1);
  --spring: linear(0, .21 5%, .52 13%, .76 23%, .9 34%, .97 48%, .995 66%, 1);
  --press: 100ms;
}

/* 1. Press feedback on pointer-down ------------------------------------- */
.btn, .chip, .pick, .icon-btn, .tabbar a, .group, .bento .quick a {
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn { transition: transform var(--press) ease-out, background var(--dur), box-shadow var(--dur); }
.btn:active:not([disabled]) { transform: scale(.97); }
.chip, .pick, .icon-btn { transition: transform var(--press) ease-out, background var(--dur), border-color var(--dur); }
.chip:active, .pick:active { transform: scale(.97); }
.icon-btn:active { transform: scale(.92); background: rgba(255, 255, 255, .12); }
.tabbar a { transition: color var(--dur); }
.tabbar a:active svg { transform: scale(.88); }
.tabbar svg { transition: transform var(--press) ease-out; }

/* 2. Translucent chrome: content scrolls under the bars ------------------ */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* blur lives on a pseudo-layer: a backdrop-filter on .topbar itself would trap
     the fixed .tabbar (it is a child of the header) and pull it to the top */
  .topbar { background: transparent; isolation: isolate; }
  .topbar::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: rgba(17, 28, 65, .86);
    -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  }
  .tabbar {
    background: rgba(255, 255, 255, .84);
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    border-top-color: rgba(17, 28, 65, .08);
  }
  :root[data-theme="dark"] .tabbar { background: rgba(18, 26, 46, .84); border-top-color: rgba(255, 255, 255, .06); }
  .sheet-back { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
}

/* 3. Sheets: spring in, follow the finger, spring away ------------------- */
.sheet { animation: zk-up .34s var(--spring) both; will-change: transform; overscroll-behavior: contain; }
@keyframes zk-up { from { transform: translateY(100%); } }
.sheet-back { animation: zk-fade .2s ease-out both; }
@keyframes zk-fade { from { opacity: 0; } }
.sheet::before { width: 40px; height: 5px; background: var(--ink-faint); opacity: .45; }
.sheet.dragging { animation: none; transition: none; }
.sheet.settling { transition: transform .32s var(--spring); }

/* 4. Touch targets: 44px minimum ---------------------------------------- */
@media (pointer: coarse) {
  .btn.sm { min-height: 44px; }
  .chip { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
}

/* 5. Type: tight big headings, prices that line up ----------------------- */
h1 { letter-spacing: -.015em; line-height: 1.12; }
h2 { letter-spacing: -.008em; }
.price, .ab-price, .money, .total, [class*="price"] { font-variant-numeric: tabular-nums; }
.ar h1, .ar h2, [lang="ar"] h1, [lang="ar"] h2, h1.ar, h2.ar { letter-spacing: 0; } /* never track Arabic */

/* 6. Disabled looks disabled, not just paler ------------------------------ */
.btn[disabled] { cursor: not-allowed; filter: saturate(.4); transform: none; }

/* 7. Accessibility preferences ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet-back { animation: none; }
  .sheet.settling { transition: none; }
  .btn:active, .chip:active, .pick:active, .icon-btn:active, .tabbar a:active svg { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar::before { background: var(--navy); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabbar { background: var(--panel); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sheet-back { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #8b96a5; --ink-soft: #2c3646; --ink-faint: #475264; }
  .tabbar, .topbar::before { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabbar { background: var(--panel); }
  .topbar::before { background: var(--navy); }
}

/* Fix 2026-11-16: the decorative circle on the "Your car" mileage card sat on top
   of the Garage button and swallowed taps. Decorations never take taps. */
.garage-hero::before, .garage-hero::after { pointer-events: none; }
.garage-hero > .row, .garage-hero > .odo, .garage-hero > .odo-note, .garage-hero form { position: relative; z-index: 1; }
.garage-hero .btn.sm { min-height: 44px; }

/* Symmetry pass 2026-11-16 ------------------------------------------------
   Side-scrolling rows snapped their first card flush to the screen edge while
   every other card sits 16px in. Snap inside the same 16px margin both sides. */
.offers, .rail-track, .chips { scroll-padding-inline: var(--s4); }
@media (min-width: 700px) and (max-width: 959px) {
  .offers, .rail-track { scroll-padding-inline: 24px; }
}
.offer { scroll-snap-align: start; }
/* Hero: the two buttons get equal width */
.hero .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.hero .hero-cta .btn { width: 100%; padding-inline: var(--s3); }
/* "Your car" card: equal inner spacing, Garage button centred on the greeting line */
.garage-hero { padding: var(--s5); }
.garage-hero > .row { align-items: center; min-height: 44px; }
.garage-hero > .row h2, .garage-hero > .row .h2 { margin: 0; }
