/* NABWORK v36 — restore all 8 categories + 6 discovery tiles.
   Mobile-only correction to approved v35. Desktop/catalog remains unchanged. */
@media (max-width:600px){
  /* Two actual horizontal rows, scrollable sideways. All original buttons stay reachable. */
  #homeView:not(.nw-v26-catalog-mode) .nab-category-rail.nw-v30-category-rail{
    display:grid!important;
    grid-auto-flow:column!important;
    grid-template-columns:none!important;
    grid-template-rows:repeat(2,minmax(86px,auto))!important;
    grid-auto-columns:clamp(146px,43vw,185px)!important;
    grid-auto-rows:auto!important;
    width:100%!important;
    max-width:100%!important;
    column-gap:10px!important;
    row-gap:10px!important;
    padding:2px 2px 13px!important;
    margin:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x proximity!important;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none!important;
    align-items:stretch!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nab-category-rail.nw-v30-category-rail::-webkit-scrollbar{display:none!important}
  #homeView:not(.nw-v26-catalog-mode) .nab-category-rail.nw-v30-category-rail>button:nth-child(n+5){
    display:flex!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nab-category-rail.nw-v30-category-rail>button{
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:86px!important;
    height:auto!important;
    align-self:stretch!important;
    scroll-snap-align:start!important;
    box-sizing:border-box!important;
    padding:10px 9px!important;
    gap:8px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-category-rail .nw-v6-cat-label{
    font-size:clamp(10.5px,2.85vw,12px)!important;
    overflow-wrap:break-word!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-category-rail .nw-v6-cat-icon{
    flex-basis:37px!important;
    min-width:37px!important;
    width:37px!important;height:41px!important;
  }
  /* Keep existing fifth-eighth card labels. First four retain descriptive subtitle. */
  #homeView:not(.nw-v26-catalog-mode) .nab-category-rail.nw-v30-category-rail>button:nth-child(n+5) .nw-v6-cat-label{
    padding-right:9px!important;
    font-size:clamp(10.5px,2.9vw,12.1px)!important;
    line-height:1.35!important;
  }
  /* Exactly one horizontal rail of six, slightly smaller photo cards. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid{
    display:flex!important;
    flex-flow:row nowrap!important;
    grid-template-columns:none!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:10px!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:2px 2px 13px!important;
    margin:0!important;
    scroll-snap-type:x proximity!important;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid::-webkit-scrollbar{display:none!important}
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid>.nw-v30-popular-card{
    display:flex!important;
    flex:0 0 clamp(152px,45vw,194px)!important;
    width:clamp(152px,45vw,194px)!important;
    max-width:194px!important;
    min-width:0!important;
    height:auto!important;
    align-self:stretch!important;
    scroll-snap-align:start!important;
    box-sizing:border-box!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-picture{
    flex:0 0 auto!important;
    width:100%!important;
    height:auto!important;
    aspect-ratio:1.55!important;
    min-height:0!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-info{
    flex:1 1 auto!important;
    min-height:79px!important;
    padding:9px 10px 10px!important;
    gap:4px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-name{
    font-size:clamp(10.9px,2.95vw,12.3px)!important;
    line-height:1.34!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-description{
    font-size:clamp(9.3px,2.4vw,10.2px)!important;
    line-height:1.4!important;
    padding-right:10px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v35-hero-illustration{
    right:-3px!important;
    top:48px!important;
    width:min(48%,182px)!important;
    max-height:192px!important;
    object-fit:contain!important;
  }
}
@media(max-width:359px){
  #homeView:not(.nw-v26-catalog-mode) .nab-category-rail.nw-v30-category-rail{
    grid-auto-columns:clamp(142px,45vw,165px)!important;
    column-gap:8px!important;row-gap:8px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v30-popular-grid>.nw-v30-popular-card{
    flex-basis:151px!important;width:151px!important;
  }
}
