/* Single product row on phones; the existing tablet/desktop rails keep their layout. */
@media (max-width:640px){
  #grid-new.continuous-product-rail,
  #grid-featured.continuous-product-rail,
  #trend-grid.continuous-product-rail{
    grid-template-rows:minmax(0,1fr);
    grid-auto-flow:column;
    grid-auto-columns:calc((100% - 10px)/2);
  }
  #compare{display:none!important}
}

/* A measured, repeated cycle replaces the old hover/focus-sensitive track. */
#brand-marquee.lz-home-brands .brand-marquee__viewport{
  overflow-x:hidden;overflow-y:hidden;padding-right:0;
}
#brand-marquee .lz-brand-track{
  display:flex;width:max-content;gap:0;
  animation:lzHomeBrandLoop var(--lz-brand-duration,40s) linear infinite;
  will-change:transform;
}
#brand-marquee .lz-brand-cycle{
  display:flex;flex:none;align-items:center;width:max-content;
  gap:12px;padding:2px 12px 2px 0;
}
#brand-marquee .lz-brand-cycle .brand-marquee__item{flex:none}
#brand-marquee.is-keyboard-paused .lz-brand-track{animation-play-state:paused}
@keyframes lzHomeBrandLoop{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(var(--lz-brand-distance),0,0)}
}
@media(prefers-reduced-motion:reduce){
  #brand-marquee.lz-home-brands .brand-marquee__viewport{overflow-x:auto}
  #brand-marquee .lz-brand-track{animation:none;transform:none;will-change:auto}
  #brand-marquee .lz-brand-cycle[aria-hidden="true"]{display:none}
}
