/* JBA v15.2.65 - Mobile Performance Pack */
@media (max-width: 900px), (pointer: coarse) {
  html.jba-mobile-performance-pack {
    scroll-behavior: auto;
  }

  /* Render genuinely below-fold blocks only when they approach the viewport. */
  html.jba-mobile-performance-pack .jba-v165-defer-render {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }

  /* Avoid keeping permanent GPU layers alive on long mobile pages. */
  html.jba-mobile-performance-pack .jba-v1044-mobile-drawer,
  html.jba-mobile-performance-pack #jbaModernCartRoot .jba-modern-cart-dialog {
    will-change: auto !important;
  }

  html.jba-mobile-performance-pack body.jba-v1044-mobile-open .jba-v1044-mobile-drawer,
  html.jba-mobile-performance-pack body.jba-v126-mobile-open .jba-v1044-mobile-drawer,
  html.jba-mobile-performance-pack #jbaModernCartRoot:not([aria-hidden="true"]) .jba-modern-cart-dialog {
    will-change: transform !important;
  }

  /* Isolate cards without clipping menus, modals or sliders. */
  html.jba-mobile-performance-pack .whole-jewels > article,
  html.jba-mobile-performance-pack article.item-slider.jewel-item-slider,
  html.jba-mobile-performance-pack .jba-v140-card {
    contain: layout style paint;
  }

  html.jba-mobile-performance-pack img {
    image-rendering: auto;
  }

  /* Background tabs should spend virtually no time on decorative animation. */
  html.jba-v165-page-hidden *,
  html.jba-v165-page-hidden *::before,
  html.jba-v165-page-hidden *::after {
    animation-play-state: paused !important;
  }

  /* Data-saver / 2G mode: keep the interface readable while removing costly motion. */
  html.jba-mobile-low-data *,
  html.jba-mobile-low-data *::before,
  html.jba-mobile-low-data *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  html.jba-mobile-low-data .slick-dots,
  html.jba-mobile-low-data .jba-vitrine-progress,
  html.jba-mobile-low-data .animated,
  html.jba-mobile-low-data [class*="pulse"] {
    animation: none !important;
  }

  /* Reduce repaint cost on large fixed layers while retaining the design. */
  html.jba-mobile-performance-pack .menu-bot-mob,
  html.jba-mobile-performance-pack .jba-v1044-mobile-drawer,
  html.jba-mobile-performance-pack #jbaModernCartRoot .jba-modern-cart-dialog,
  html.jba-mobile-performance-pack #jba-adv-sidebar-filter {
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  @media (prefers-reduced-motion: reduce) {
    html.jba-mobile-performance-pack *,
    html.jba-mobile-performance-pack *::before,
    html.jba-mobile-performance-pack *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
    }
  }
}
