
/* Compact mobile collection toolbar: search and controls follow the original stacked layout. */
@media(max-width:749px){
  html body.collection-page .CollectionBlackBox{margin:0 0 18px;padding:0 7px}
  html body.collection-page .boost-sd__toolbar-inner{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"search search" "filter filter" "count count" "sort sort"!important;
    align-items:center!important;
    gap:15px 10px!important;
    padding:15px!important;
    border-radius:8px!important;
  }
  html body.collection-page .CollectionBlackBox .searchPopCustomBox{grid-area:search!important;display:flex!important;position:relative!important;width:100%!important;min-width:0!important;gap:8px!important}
  html body.collection-page .CollectionBlackBox .searchPopCustomBox input{position:static!important;width:auto!important;min-width:0!important;flex:1 1 auto!important;height:55px!important;margin:0!important;padding:0 15px!important;border-radius:10px!important}
  html body.collection-page .CollectionBlackBox .searchPopCustomBox .formSearchPageButton{position:static!important;flex:0 0 58px!important;width:58px!important;min-width:58px!important;height:55px!important;margin:0!important;padding:0!important;border-radius:10px!important}
  html body.collection-page .boost-sd__filter-tree-toggle-button{grid-area:filter!important;width:110px!important;height:55px!important;margin:0!important}
  html body.collection-page .collection-result-count{grid-area:count!important;width:100%!important;margin:3px 0!important;text-align:center!important;color:#fff!important}
  html body.collection-page .collection-sort{grid-area:sort!important;margin:0!important;justify-self:start!important}
  html body.collection-page .collection-sort-btn{height:55px!important;min-width:190px!important}
}

@media(min-width:750px) and (max-width:899px){
  body.collection-page .boost-sd__toolbar-inner{flex-wrap:wrap}
  body.collection-page .searchPopCustomBox{flex:1 1 100%}
  body.collection-page .searchPopCustomBox input{width:auto;flex:1}
  body.collection-page .collection-result-count{flex:1 1 auto;text-align:center}
  body.collection-page .collection-sort{margin-left:auto}
}
