/* 7.1.12: mobile navigation and compact automatic catalog filters. */
#catalog-filter .catalog-options{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px}
#catalog-filter .catalog-sort{display:flex;align-items:center;flex:0 1 auto;gap:8px;min-width:0}
#catalog-filter .catalog-sort select{flex:none;width:155px;max-width:100%;height:44px;min-height:44px;font-size:14px}
#catalog-filter .catalog-available{flex:0 0 auto;margin:0;white-space:nowrap;min-height:44px}
@media(max-width:1024px){
 body>.category-nav,body .category-nav{display:none!important}
 .catalog-controls .catalog-browse-row>.catalog-control-button{display:none!important}
 .catalog-controls .catalog-browse-row{grid-template-columns:minmax(0,1fr)}
 .catalog-controls .catalog-browse-row.catalog-browse-all{display:none}
 .catalog-controls .catalog-search-row{grid-template-columns:minmax(0,1fr) 86px;gap:8px}
 #catalog-filter.category-search .catalog-search-row>input,.catalog-controls .catalog-search-row>.catalog-control-button{height:46px;min-height:46px}
 #catalog-filter .catalog-options{flex-wrap:nowrap;justify-content:flex-start;gap:12px}
 #catalog-filter .catalog-sort{flex:0 1 auto;justify-content:flex-start}
 #catalog-filter .catalog-sort>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #catalog-filter .catalog-sort select{flex:none;width:150px;max-width:100%;font-size:16px;padding-left:9px;padding-right:24px}
 #catalog-filter .catalog-available{font-size:13px;gap:7px}
 #catalog-filter .catalog-available input{width:17px;height:17px;min-height:17px;flex:0 0 17px}
}
@media(max-width:380px){#catalog-filter .catalog-options{gap:8px}#catalog-filter .catalog-sort select{width:132px}#catalog-filter .catalog-available{font-size:12px;gap:5px}}

/* Shared autocomplete: header and category search, touch and keyboard. */
.catalog-controls .catalog-search-row{grid-template-columns:minmax(0,1fr)}
.suggest-host{position:relative;overflow:visible}
.header .search.suggest-host{position:relative}
.header .search.suggest-host input{width:100%;min-width:0}
.search-suggestions{position:absolute;top:calc(100% + 7px);left:0;width:100%;min-width:min(360px,85vw);max-width:calc(100vw - 24px);z-index:100;background:#fffdf8;border:1px solid #bec9bd;border-radius:6px;box-shadow:0 12px 32px #173f3424;padding:6px;box-sizing:border-box;text-align:left;color:#173f34}
.search-suggestions[hidden]{display:none!important}
.header .search-suggestions{left:auto;right:0}
.search-suggestions [role=listbox]{max-height:320px;max-height:min(320px,42dvh);overflow-y:auto;overscroll-behavior:contain}
.search-suggestions .suggest-status{font:12px/1.4 Arial,sans-serif;margin:6px 8px 10px;color:#52695d}
.search-suggestions .suggest-product{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 8px;border-radius:4px;text-decoration:none;color:inherit;min-height:60px;box-sizing:border-box}
.search-suggestions .suggest-product:hover,.search-suggestions .suggest-product[aria-selected=true]{background:#edf2e8}
.suggest-product img{width:42px;height:42px;object-fit:contain;border-radius:4px;background:white}
.suggest-product strong{display:block;font:14px/1.35 Arial,sans-serif;overflow-wrap:anywhere}
.suggest-product small{display:block;font:11px/1.4 Arial,sans-serif;color:#6b786b;margin-top:3px}
.suggest-product .suggest-price{font:13px/1.4 Arial,sans-serif;white-space:nowrap}
.search-suggestions .suggest-all{display:block;padding:13px 8px;border-top:1px solid #e0e3d7;font:13px/1.4 Arial,sans-serif;color:#173f34;text-decoration:none;min-height:44px;box-sizing:border-box}
@media(max-width:800px){.header.search-open .header-right .search.suggest-host{position:absolute;left:12px;right:12px;top:100%;width:auto;max-width:none;z-index:100}.search-suggestions{min-width:0;max-width:100%}.header .search.suggest-host input{font-size:16px}.suggest-product strong{font-size:13px}.search-suggestions .suggest-product{gap:7px}}

#catalog-filter.category-search .catalog-search-row{grid-template-columns:minmax(0,1fr)}
@media(max-width:1024px){#main .catalog-controls .catalog-browse-row{grid-template-columns:minmax(0,1fr)}}
