/* ================================================================
   INTERACTIONS — small touches that make the site feel alive.
   Driven by script.js (press, fade-up) and cart.js (add to cart).
   Everything here only moves `translate`, `scale` and `opacity`,
   so the browser never has to redo the page layout (no lag).
   ================================================================ */

/* ---------- 1. Add to cart: charm flies to the cart, cart bounces ---------- */

.cart-fly {
    position: fixed;
    z-index: 3000;
    margin: 0;
    object-fit: contain;
    pointer-events: none;
}

#cartBtn.is-bumped {
    animation: cart-bump 0.45s ease;
}

#cartBtn.is-bumped .cart-badge {
    animation: cart-bump 0.45s ease 0.05s;
}

@keyframes cart-bump {
    0%   { scale: 1; }
    35%  { scale: 1.3; }
    65%  { scale: 0.92; }
    100% { scale: 1; }
}

/* ---------- 2. Fade-up on scroll (home + About Us) ---------- */

.reveal {
    opacity: 0;
    translate: 0 28px;
}

.reveal.is-visible {
    opacity: 1;
    translate: 0 0;
    transition: opacity 0.7s ease, translate 0.7s ease;
}

/* ---------- 3. Press feedback (works on phones too) ---------- */

.is-pressed {
    animation: press 0.25s ease;
}

@keyframes press {
    0%   { scale: 1; }
    40%  { scale: 0.94; }
    100% { scale: 1; }
}
