/* lebuh-nojs.css — compensating styles for the stripped Shopify component JS.
 *
 * Dawn 16.1 hides content until its own JavaScript runs:
 *
 *   .scroll-trigger.animate--fade-in,
 *   .scroll-trigger.animate--slide-in { opacity: .01 }
 *   .scroll-trigger.animate--slide-in { transform: translateY(2rem) }
 *
 * Those rules are undone when Dawn's ScrollTrigger component adds
 * `scroll-trigger--offscreen` / finishes the animation. This build ships no
 * Shopify component JS (cart, facets, predictive search, analytics are all gone
 * by design), so nothing would ever reveal the product grids and article cards.
 *
 * The final painted state of the live site is "fully visible", so forcing that
 * state here keeps the clone pixel-identical instead of leaving it blank.
 */

.scroll-trigger,
.scroll-trigger.animate--fade-in,
.scroll-trigger.animate--slide-in,
.scroll-trigger.animate--zoom-in {
  opacity: 1 !important;
  transform: none !important;
  /* Jump to the animation's final frame and hold: a large negative delay puts
     the clock at the end, and paused keeps it there. Using `animation: none`
     instead would drop the compositing layer the live site keeps, which shifts
     how Chrome resamples the scaled product images by a sub-pixel and shows up
     as edge-only pixel noise in the diff. */
  animation-delay: -9999s !important;
  animation-play-state: paused !important;
  animation-fill-mode: both !important;
}

/* Slider tracks remain swipe/scroll enabled; the arrows are wired in
   /assets/js/lebuh-ui.js. Nothing else in the theme depends on component JS
   for its initial painted state. */

/* Mobile menu drawer scroll-lock.
 *
 * Dawn's MenuDrawer added `overflow-hidden-tablet` to <body> while the drawer
 * was open. That class exists in base.css, but with `overflow:hidden` on the
 * body alone Chrome still scrolls the viewport (the scroll port is <html>), so
 * the page drifted behind the open drawer. Scope the html lock to the widths
 * where the drawer exists — never to desktop, where it would break the diff. */
@media screen and (max-width: 989px) {
  html.overflow-hidden-tablet {
    overflow: hidden;
  }
}

