/* ==========================================================================
   5. NEW ARRIVALS (V6). A draggable horizontal rail of product cards (native scroll-snap; the module adds pointer drag), magnetic round arrows and a thin progress bar.
   The rail bleeds to the right edge of the screen and starts at the container's left edge. Product cards: garment photograph on a rounded sand tile.
   ========================================================================== */
.arr__view { position: relative; }
.arr__rail {
  --arr-pad: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  display: flex; gap: clamp(.8rem, 1.6vw, 1.5rem); margin: 0; padding: .25rem var(--arr-pad) .5rem; list-style: none; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--arr-pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y;
}
.arr__rail::-webkit-scrollbar { display: none; }
.arr__rail:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--r-card); }
.arr__item { flex: none; inline-size: clamp(11.5rem, 62vw, 17rem); scroll-snap-align: start; min-inline-size: 0; }
@media (min-width: 48em) { .arr__item { inline-size: clamp(14rem, 27vw, 19rem); } }
@media (min-width: 80em) { .arr__item { inline-size: clamp(16rem, 19vw, 21rem); } }
.arr__rail.is-dragging { scroll-snap-type: none; cursor: grabbing; scroll-behavior: auto; }
.arr__rail.is-dragging a, .arr__rail.is-dragging button { pointer-events: none; }
.arr__rail img { -webkit-user-drag: none; user-select: none; }

.arr__foot { display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 4vw, 3rem); margin-block-start: clamp(1.2rem, 2.2vw, 2rem); }
.arr__foot[hidden] { display: none; }
.arr__bar { position: relative; flex: 1 1 auto; block-size: 2px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.arr__bar > span { position: absolute; inset: 0; border-radius: inherit; background: var(--cocoa); transform-origin: 0 50%; transform: scaleX(var(--p, .2)); transition: transform .25s var(--ease-soft); }
.arr__arrows { display: flex; gap: .6rem; flex: none; }
.arr__btn[disabled] { opacity: .4; cursor: default; pointer-events: none; }
.arr__empty { display: grid; justify-items: start; gap: 1rem; padding-block: var(--space-6); color: var(--muted); font-size: var(--fs-md); }
.arr__empty p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .arr .pc__img, .arr__bar > span { transition: none; } .arr__rail { scroll-behavior: auto; } }
html.reduced-motion .arr .pc__img, html.reduced-motion .arr__bar > span { transition: none; }
