/* Smooth scrolling (23 Nov 2026, measured on the owner's laptop).
   The page-wide light and page-wide stars stay still (on desktop a single looping video gives
   the background its motion). Section light waves and section stars animate (cheap, only while
   on screen). The product-button shine and sparkles run when a card is hovered instead of on
   every button at once: thirty clipped moving layers were the main cost while scrolling.
   Loaded last. */
.site-atmosphere::before,
.site-atmosphere::after,
.site-stars,
.product-card-action > .product-card-shine,
.product-card-sparkles { animation: none !important; }
.site-atmosphere { transform: translateZ(0); }
.site-atmosphere::after { opacity: .85; }
.site-stars { opacity: .55; }
.site-stars-distant { opacity: .38; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not([data-motion='off']) .shop-product-card:hover .product-card-action > .product-card-shine { animation: product-price-gradient 2.6s ease-in-out infinite alternate !important; }
  html:not([data-motion='off']) .shop-product-card:hover .product-card-sparkles { animation: product-price-stars 1.8s ease-in-out infinite !important; }
}

/* Navigation: on wider screens the category menu stays pinned while the logo row scrolls away
   (--header-tuck is the logo row's height, set by storefront.js). On phones the whole header
   hides while scrolling down and returns as soon as you scroll up. */
.site-header { position: sticky; top: calc(var(--header-tuck, 0px) * -1); z-index: 40; }
.site-header .category-nav { background: rgb(255 255 255 / 97%); transition: box-shadow .25s ease; }
.site-header.is-stuck .category-nav { box-shadow: 0 10px 26px rgb(22 43 67 / 9%); }
.category-nav .nav-inner > a[aria-current='location'] { color: var(--blue, #155caa); }
.category-nav .nav-inner > a[aria-current='location']::after { transform: scaleX(1); }
html { scroll-padding-top: calc(var(--nav-height, 0px) + 20px); }

@media (max-width: 800px) {
  .site-header { top: 0; transition: transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease; }
  .site-header.is-stuck { box-shadow: 0 8px 22px rgb(22 43 67 / 8%); }
  .site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }
  html { scroll-padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header .category-nav { transition: none; }
}

/* Background video (tools/make-atmosphere-video.py): fades in over the still glow, which then
   steps aside. The still star field stays on top; video compression would erase dots that small. */
.site-atmosphere-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity 1.2s ease; }
.site-atmosphere::before, .site-atmosphere::after { transition: opacity 1.2s ease; }
.site-atmosphere.is-video-playing .site-atmosphere-video { opacity: 1; }
.site-atmosphere.is-video-playing::before, .site-atmosphere.is-video-playing::after { opacity: 0; }
@media (max-width: 800px) { .site-atmosphere-video { display: none; } }
@media (prefers-reduced-motion: reduce) { .site-atmosphere-video { display: none; } }

/* hero-hold.js: a held hero layer keeps its exact current frame as inline styles. */
[data-held] { animation: none !important; }
