/* Expanded catalog filters use exactly three mobile rows. Reuse the existing
   Clear filters button and handler; the count and clear action share row 3. */
@media(max-width:768px){
 #products .catalog-search-panel.mobile-filters-open{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:repeat(3,42px)!important;gap:4px!important;align-items:stretch!important;
 }
 #products .catalog-search-panel.mobile-filters-open>:is(.catalog-searchbox,#catalogMobileFilterToggle,#catalogBrandFilter,#ltnModelCombo,#catalogPartFilter,#catalogResultCount,#catalogClearFilter){
  min-width:0!important;height:42px!important;min-height:42px!important;
  margin:0!important;align-self:stretch!important;order:0!important;
 }
 #products .catalog-search-panel.mobile-filters-open>.catalog-searchbox{grid-row:1!important;grid-column:1!important}
 #products .catalog-search-panel.mobile-filters-open>#catalogMobileFilterToggle{grid-row:1!important;grid-column:2/4!important}
 #products .catalog-search-panel.mobile-filters-open>#catalogBrandFilter{grid-row:2!important;grid-column:1!important}
 #products .catalog-search-panel.mobile-filters-open>#ltnModelCombo{grid-row:2!important;grid-column:2/4!important}
 #products .catalog-search-panel.mobile-filters-open>#catalogPartFilter{grid-row:3!important;grid-column:1!important}
 #products .catalog-search-panel.mobile-filters-open>#catalogResultCount{
  display:flex!important;grid-row:3!important;grid-column:2!important;
  position:static!important;inset:auto!important;transform:none!important;
  width:100%!important;padding:0 4px!important;border-radius:10px!important;
  font-size:12px!important;line-height:1.25!important;white-space:normal!important;text-align:center;
 }
 #products .catalog-search-panel.mobile-filters-open>#catalogClearFilter{
  display:flex!important;grid-row:3!important;grid-column:3!important;
  align-items:center!important;justify-content:center!important;width:100%!important;
  padding:4px 6px!important;border-radius:10px!important;font-size:12px!important;
  font-weight:650;line-height:1.25!important;white-space:normal!important;text-align:center;
 }
 html[data-theme="light"] #products .catalog-search-panel.mobile-filters-open>#catalogClearFilter{
  background:#edf5ff!important;color:#1753a0!important;border:1px solid #b9d2f4!important;
 }
}
