/* PhoneYa2 site-wide smooth scrolling polish.
   Keep native touch momentum; do not hijack wheel/touch scrolling. */
html {
  scroll-behavior: smooth !important;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  overscroll-behavior-y: auto;
}
:where(
  .cat-nav-inner,
  .cat-showcase-mobile-cats,
  .cat-products-grid,
  .filter-bar-inner,
  .filter-pills,
  .product-scroll,
  .product-row,
  .product-rail,
  .product-carousel,
  .products-carousel,
  .related-products,
  .related-products-grid,
  .h-scroll,
  .horizontal-scroll,
  .carousel-scroll,
  [data-horizontal-scroll="true"]
) {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  scroll-padding-inline: 0;
  scrollbar-gutter: auto;
}
:where(
  .cat-nav-inner,
  .cat-showcase-mobile-cats,
  .cat-products-grid,
  .filter-bar-inner,
  .filter-pills,
  .product-scroll,
  .product-row,
  .product-rail,
  .product-carousel,
  .products-carousel,
  .related-products,
  .related-products-grid,
  .h-scroll,
  .horizontal-scroll,
  .carousel-scroll,
  [data-horizontal-scroll="true"]
)[style*="overflow-x"],
:where(
  .cat-nav-inner,
  .cat-showcase-mobile-cats,
  .cat-products-grid,
  .filter-bar-inner,
  .filter-pills,
  .product-scroll,
  .product-row,
  .product-rail,
  .product-carousel,
  .products-carousel,
  .related-products,
  .related-products-grid,
  .h-scroll,
  .horizontal-scroll,
  .carousel-scroll,
  [data-horizontal-scroll="true"]
) {
  touch-action: pan-x pan-y pinch-zoom;
}
.cat-products-grid,
.product-scroll,
.product-row,
.product-rail,
.product-carousel,
.products-carousel,
.related-products,
.related-products-grid,
.h-scroll,
.horizontal-scroll,
.carousel-scroll {
  scroll-snap-type: none;
}
.cat-products-grid > *,
.product-scroll > *,
.product-row > *,
.product-rail > *,
.product-carousel > *,
.products-carousel > *,
.related-products > *,
.related-products-grid > * {
  scroll-snap-align: start;
}
/* Homepage product rails move immediately with the finger.
   No easing or delayed settle after release. */
.h-track {
  transition: none !important;
  backface-visibility: hidden;
  will-change: transform;
  touch-action: pan-y pinch-zoom;
}
.h-track.is-dragging {
  transition: none !important;
  cursor: grabbing !important;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  :where(
    .cat-nav-inner,.cat-showcase-mobile-cats,.cat-products-grid,.filter-bar-inner,
    .filter-pills,.product-scroll,.product-row,.product-rail,.product-carousel,
    .products-carousel,.related-products,.related-products-grid,.h-scroll,
    .horizontal-scroll,.carousel-scroll,[data-horizontal-scroll="true"]
  ) { scroll-behavior: auto !important; }
  .h-track { transition-duration: .01ms !important; }
}
/* Product rails should follow the finger immediately: no eased native scroll or snap resistance. */
:where(.cat-products-grid,.product-scroll,.product-row,.product-rail,.product-carousel,.products-carousel,.related-products,.related-products-grid,.h-scroll,.horizontal-scroll,.carousel-scroll,[data-horizontal-scroll="true"]){scroll-behavior:auto!important;scroll-snap-type:none!important;touch-action:pan-x pan-y pinch-zoom}
.h-track{transition:transform 150ms cubic-bezier(.2,.65,.3,1)!important}
.h-track.is-dragging{transition:none!important}

/* Homepage product rows: native horizontal scrolling, no transform-driven drag delay. */
.h-track-wrap{overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;scroll-behavior:auto!important;touch-action:pan-x pan-y pinch-zoom!important;scrollbar-width:none!important;}
.h-track-wrap::-webkit-scrollbar{display:none!important;}
.h-track{width:max-content!important;min-width:100%;transition:none!important;will-change:auto!important;touch-action:pan-x pan-y pinch-zoom!important;}
