/* Plan B home page product strip: stepping mode (v282, see homepage-slider.js).
   Home page only. Every rule starts at .product-slider, so it outweighs the
   older single-class strip rules wherever this file sits in the page.

   The row is moved by a transform, which the browser hands to its compositor:
   nothing is laid out or scrolled while it moves, so it stays smooth on a
   phone that is busy loading the rest of the page. Until the script has
   started (or if it never does) the strip is an ordinary sideways-scrolling
   row, so the rules that stop scrolling wait for .is-stepping. */

/* Room for the pause button between the cards and the next arrow. The columns
   are sized by the buttons themselves, at every screen width. */
.product-slider .slider-shell{grid-template-columns:auto minmax(0,1fr) auto auto}
.product-slider .slider-toggle{font-size:.6rem;letter-spacing:-.1em}

.product-slider.is-stepping .slider-window{overflow:hidden;touch-action:pan-y;-webkit-user-select:none;user-select:none}
.product-slider.is-stepping .slider-track{transform:translate3d(0,0,0);will-change:transform;backface-visibility:hidden}
.product-slider.is-stepping .slider-item{-webkit-user-drag:none}
.product-slider.is-stepping .slider-item img{pointer-events:none;-webkit-user-drag:none}
.product-slider.is-stepping .slider-window.is-dragging .slider-item{cursor:grabbing}
/* Every product already fits across (a very wide screen): no following copy. */
.product-slider.is-still .slider-item[aria-hidden="true"]{display:none}

/* Phones: one whole card at a time, whatever the buttons leave over. */
@media (max-width:650px){
  .product-slider .slider-shell{gap:4px}
  .product-slider .slider-toggle{width:32px}
  .product-slider .slider-track{width:auto}
  .product-slider .slider-item{flex:0 0 100%}
}
