/* STL shop: page changes blur out and blur in, the same motion as the staff pages
   (static/css/admin_glass.css; spec Code/GLASS_DASHBOARD_DESIGN_SPEC.md section 5.1).
   Loaded after shop.css only when brand.shop_transition (STL); it refines shop.css's existing
   cross-document View Transition (plain 340ms cross-fade) and leaves its per-card FLIP alone.
   Whole-page only: no per-card blur, which would be heavy on phones with a grid of 24+ laptops.
   Only between shop pages (a visitor arriving from Google sees no animation), and only in
   browsers with View Transitions (Chrome/Edge 126+, Safari 18.2+); others swap instantly. */

/* The glass sidebar and the WhatsApp button stay put while the page changes under them. Old and
   new are never drawn together: the sidebar is translucent and would look doubled. */
.gs { view-transition-name: shop-side; }
.wa-float { view-transition-name: shop-wa; }
::view-transition-group(shop-side), ::view-transition-group(shop-wa) { animation-duration: .32s; }
::view-transition-old(shop-side), ::view-transition-old(shop-wa) { display: none; }
::view-transition-new(shop-side), ::view-transition-new(shop-wa) { animation: none; }

/* outgoing page: soft and gone in 220ms; incoming comes into focus, overlapping a little */
::view-transition-old(root) { animation: shop-vt-out .22s cubic-bezier(.65, 0, .35, 1) both; }
::view-transition-new(root) { animation: shop-vt-in .52s cubic-bezier(.22, 1, .36, 1) .12s both; }
@keyframes shop-vt-out { to { opacity: 0; filter: blur(12px); transform: scale(.985); } }
@keyframes shop-vt-in { from { opacity: 0; filter: blur(14px); transform: translateY(8px); } }

/* phones: same timing, no full-screen blur (the costly part on budget Android phones) */
@media (max-width: 819px) {
    @keyframes shop-vt-out { to { opacity: 0; transform: scale(.985); } }
    @keyframes shop-vt-in { from { opacity: 0; transform: translateY(8px); } }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root) { animation: shop-vt-fade-out .15s linear both; }
    ::view-transition-new(root) { animation: none; }
}
@keyframes shop-vt-fade-out { to { opacity: 0; } }
