/* mms-plp-subcats.css (Mms_PlpTweaks, 2026-11-20): on phones the Apptrian subcategory tiles (7 big tiles, ~1,000 px)
   become one sideways row of compact chips – small photo + name – so the products start about 1½ screens higher.
   Desktop keeps the tile grid. Colours from the --mb-* tokens (css/mms-header.css). */
@media (max-width:767px){
  body.catalog-category-view .apptrian-subcategories-grid{display:flex!important;flex-wrap:nowrap!important;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;scrollbar-width:none;margin:4px -12px 14px!important;padding:2px 12px 6px!important;scroll-padding-left:12px;list-style:none;width:auto!important}
  body.catalog-category-view .apptrian-subcategories-grid::-webkit-scrollbar{display:none}
  body.catalog-category-view .apptrian-subcategories-grid>li.apptrian-subcategories-category-wrapper{flex:none!important;width:auto!important;max-width:220px;float:none!important;
    margin:0!important;padding:0!important;scroll-snap-align:start;list-style:none}
  body.catalog-category-view .apptrian-subcategories-category{position:relative;display:flex!important;align-items:center;gap:8px;height:52px;padding:4px 14px 4px 4px!important;margin:0!important;
    background:#fff;border:1px solid var(--mb-line,#dde6ee);border-radius:12px;box-shadow:none!important;min-height:0!important}
  body.catalog-category-view .apptrian-subcategories-category-image{flex:none;width:44px!important;height:44px!important;margin:0!important;padding:0!important;border-radius:8px;overflow:hidden;background:var(--mb-t1,#f3f8fc)}
  body.catalog-category-view .apptrian-subcategories-category-image a{display:block;width:44px;height:44px}
  body.catalog-category-view .apptrian-subcategories-category-image img{width:44px!important;height:44px!important;object-fit:contain;display:block}
  body.catalog-category-view .apptrian-subcategories-category-name{margin:0!important;padding:0!important;text-align:left!important;min-height:0!important}
  body.catalog-category-view .apptrian-subcategories-category-name a{position:static;display:block;font:600 14px/1.25 var(--mb-font,'Archivo',system-ui,sans-serif)!important;color:var(--mb-ink,#14202b)!important;
    text-decoration:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px;height:auto!important}
  /* whole chip is tappable */
  body.catalog-category-view .apptrian-subcategories-category-name a::after{content:"";position:absolute;inset:0;border-radius:12px}
  body.catalog-category-view .apptrian-subcategories-category:active{background:var(--mb-t1,#f3f8fc)}
  body.catalog-category-view .apptrian-subcategories-category-description{display:none!important}
}
