/* Chrysalis v2: "Shop by category" rolls on phones (Claude, 21 Nov 2026; work copy arol). Loaded with v2-areas-roll.js, only
   while the switch is on (inc/v2/v2-areas-roll.php), on the homepage. Everything here is for phones (under 768 px): tablets
   and computers keep today's row untouched.
   1. The moving row (class axr on the section, added by the script): the same areas at the same size and in the same places
      as today's row (the first one 20 px from the edge, 136 px wide, 4 px apart), now in a sideways scroller that runs from
      edge to edge with a soft, eased fade at both ends (30 px on the left, 44 px on the right where the areas come in).
      Height exactly as today: 30 px above the icons for their glow, the row itself, 4 px below. Each set of seven is exactly
      one step long (its 4 px gap included), so the loop has no seam. The strip of nine sets is placed under the visible part
      by the script (left), the scroller's length comes from an empty spacer (axr-sp).
   2. Reduced motion (nothing is built, nothing moves): today's swipe row, the areas closer together (104 px, the icon's own
      width, 6 px apart) so that the fourth icon peeks in at the right edge (40 px of it on a 390 px phone), under the same soft
      right edge. Nothing is cut: the longest word ("Melanocortin", 91 px) and the longest compound ("BPC-157 + TB-500 ·",
      101 px) fit in 104 px. */
@media (max-width:767.98px){
  .c3-root.ax.axr .axr-vp{margin:58px 0 0;padding:30px 0 4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;
    overscroll-behavior-x:contain;overflow-anchor:none;scroll-behavior:auto;-webkit-overflow-scrolling:touch;
    -webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,0) 0,rgba(0,0,0,.25) 12px,rgba(0,0,0,.7) 22px,#000 30px,#000 calc(100% - 44px),rgba(0,0,0,.65) calc(100% - 28px),rgba(0,0,0,.2) calc(100% - 14px),rgba(0,0,0,0) 100%);
    mask-image:linear-gradient(90deg,rgba(0,0,0,0) 0,rgba(0,0,0,.25) 12px,rgba(0,0,0,.7) 22px,#000 30px,#000 calc(100% - 44px),rgba(0,0,0,.65) calc(100% - 28px),rgba(0,0,0,.2) calc(100% - 14px),rgba(0,0,0,0) 100%)}
  .c3-root.ax.axr .axr-vp::-webkit-scrollbar{display:none}
  .c3-root.ax.axr .axr-track{position:relative;display:flex;width:max-content;will-change:transform}
  .c3-root.ax.axr .axr-track>.ax-row{flex:none;margin:0;padding:0 4px 0 0;overflow:visible;scroll-snap-type:none}
  .c3-root.ax.axr .axr-track .ax-li{scroll-snap-align:none}
  .c3-root.ax.axr .axr-sp{height:0}
}
@media (max-width:767.98px) and (prefers-reduced-motion:reduce){
  .c3-root.ax:not(.axr) .ax-row{gap:6px;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 44px),rgba(0,0,0,.65) calc(100% - 28px),rgba(0,0,0,.2) calc(100% - 14px),rgba(0,0,0,0) 100%);
    mask-image:linear-gradient(90deg,#000 calc(100% - 44px),rgba(0,0,0,.65) calc(100% - 28px),rgba(0,0,0,.2) calc(100% - 14px),rgba(0,0,0,0) 100%)}
  .c3-root.ax:not(.axr) .ax-li{width:104px}
  .c3-root.ax:not(.axr) .ax-t{padding:0}
}
