/*
 * GAINVO Storefront v0.10.53 — Scrolling Phase 2
 * Authoritative horizontal-rail behaviour across touch, trackpad and mouse.
 *
 * Design contract:
 * - rails scroll only on the inline (left/right) axis;
 * - a vertical/diagonal finger gesture that starts on a rail can still move the page;
 * - snap is proximity, never mandatory;
 * - scrollbars stay hidden without removing input/accessibility paths;
 * - overscroll containment is limited to the horizontal axis.
 */

/* Complete audited set of intentional horizontal surfaces. Keep this layer last
   so older page-specific CSS cannot restore mandatory snapping or visible bars. */
:where(
  .category-strip,
  .home-category-row,
  .home-category-rail,
  .home-category-rail-approved,
  .home-product-grid,
  .shop-rail,
  .filter-row,
  .category-row,
  .search-tabs,
  .search-chip-row,
  .search-active-chips,
  .search-kind-row,
  .search-category-row,
  .search-place-rail,
  .search-native-recent-list,
  .shop-discovery-rail,
  .shops-discovery-rail,
  .shops-category-rail,
  .shops-directory-filters,
  .shops-directory-filters-v985,
  .shops-featured-rail,
  .merchant-featured-scroll,
  .merchant-status-row,
  .merchant-status-row-v8,
  .merchant-fulfilment-row,
  .merchant-commerce-summary,
  .merchant-trust-strip,
  .shop-filter-row,
  .merchant-category-tags,
  .merchant-category-tags-v8,
  .pdp-thumbnails,
  .pdp-related-grid,
  .pdp-trust-pills,
  .pdp-buy-summary-v9,
  .order-summary-strip,
  .order-timeline,
  .ad-details-media,
  .gainvo-hscroll
){
  max-width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain!important;
  overscroll-behavior-block:auto!important;
  scroll-snap-type:x proximity!important;
  scroll-padding-inline:2px;
  scroll-behavior:auto;
  touch-action:pan-x pan-y pinch-zoom!important;
  scrollbar-width:none!important;
  scrollbar-gutter:auto!important;
  -ms-overflow-style:none!important;
}

:where(
  .category-strip,
  .home-category-row,
  .home-category-rail,
  .home-category-rail-approved,
  .home-product-grid,
  .shop-rail,
  .filter-row,
  .category-row,
  .search-tabs,
  .search-chip-row,
  .search-active-chips,
  .search-kind-row,
  .search-category-row,
  .search-place-rail,
  .search-native-recent-list,
  .shop-discovery-rail,
  .shops-discovery-rail,
  .shops-category-rail,
  .shops-directory-filters,
  .shops-directory-filters-v985,
  .shops-featured-rail,
  .merchant-featured-scroll,
  .merchant-status-row,
  .merchant-status-row-v8,
  .merchant-fulfilment-row,
  .merchant-commerce-summary,
  .merchant-trust-strip,
  .shop-filter-row,
  .merchant-category-tags,
  .merchant-category-tags-v8,
  .pdp-thumbnails,
  .pdp-related-grid,
  .pdp-trust-pills,
  .pdp-buy-summary-v9,
  .order-summary-strip,
  .order-timeline,
  .ad-details-media,
  .gainvo-hscroll
)::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}

/* Mandatory snap from any historical stylesheet must never win. Child items may
   retain snap-align, but each swipe is free to stop naturally between items. */
:where(.gainvo-hscroll)>*{
  scroll-snap-stop:normal!important;
}

/* Runtime only marks genuinely overflowing rails as .gainvo-hscroll. This
   avoids presenting a grab cursor/focus affordance on rows that already fit. */
@media (pointer:fine){
  .gainvo-hscroll{cursor:grab}
  .gainvo-hscroll.gainvo-mouse-dragging{
    cursor:grabbing!important;
    user-select:none!important;
    -webkit-user-select:none!important;
  }
  .gainvo-hscroll.gainvo-mouse-dragging *{
    user-select:none!important;
    -webkit-user-select:none!important;
  }
}

.gainvo-hscroll:focus-visible{
  outline:2px solid rgba(8,139,120,.32);
  outline-offset:2px;
}

/* Reduce motion affects scripted keyboard/button scrolling only; touch and
   trackpad remain native either way. */
@media (prefers-reduced-motion:reduce){
  .gainvo-hscroll{scroll-behavior:auto!important}
}
