/* Search (search.js): the hint under the header field and the search heading of the catalog. */
/* .bp-search button (blue-pearl.css) sizes the arrow of the field: the buttons of the hint are text. */
.bp-search .bs-drop button{width:auto;height:auto;padding:0;color:inherit;font:inherit;background:none;border:0;cursor:pointer}
.bs-drop{display:grid;gap:10px}
.bp-search-results .bs-count,.bp-search-results .bs-fixed{margin:0}
.bs-count{font-size:12px;color:var(--muted)}
.bs-fixed{font-size:12px;color:var(--ink)}
.bs-hint{line-height:1.5}
/* A ready selection of the catalog: «Ламинат · 33 класс  379» */
.bs-facet{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:6px;color:var(--ink);text-decoration:none;font-size:13px;font-weight:600}
.bs-facet small{color:var(--muted);font-weight:400;font-size:12px;white-space:nowrap}
.bs-facet small::after{content:' →'}
.bs-facet:hover,.bs-facet:focus-visible{border-color:var(--primary);background:var(--surface-hover,var(--paper))}
.bs-list{display:grid;margin:0 -8px}
.bs-item{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;padding:7px 8px;border-radius:6px;color:var(--ink);text-decoration:none}
.bs-item:hover,.bs-item:focus-visible{background:var(--paper)}
.bs-photo{position:relative;width:40px;height:40px;border-radius:4px;overflow:hidden;background:var(--wood)}
.bs-photo img{width:100%;height:100%;object-fit:cover;display:block}
.bs-text{min-width:0}
.bs-text b,.bs-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bs-text b{font-size:13px;font-weight:600}
.bs-text small{margin-top:2px;font-size:11px;color:var(--muted)}
.bs-price{font-size:12px;font-weight:600;white-space:nowrap;text-align:right}
.bs-price small{display:block;font-weight:400;font-size:10px;color:var(--muted)}
.bp-search .bs-drop .bs-all{justify-self:start;font-size:12px;font-weight:700;color:var(--primary);text-decoration:underline;text-underline-offset:4px}
.bp-search .bs-drop .bs-retry{justify-self:start;font-size:13px;font-weight:600;color:var(--primary);text-align:left}
.bs-sections{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;font-size:12px}
.bs-sections span{color:var(--muted)}
.bs-sections a,.bs-selection{color:var(--ink);text-underline-offset:3px}
.bs-selection{font-size:12px;font-weight:600}
/* Catalog: the section tiles show whole sections, not the search (browse.css gives them display:grid). */
.bp2-groups[hidden]{display:none!important}
.page-head .bs-fixed{display:inline;font-size:inherit}
.page-head .bs-clear{margin-left:6px;padding:0;border:0;background:none;color:var(--primary);font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.no-results .bs-retry{display:block;margin:14px 0 0;padding:0;border:0;background:none;color:var(--primary);font:600 14px var(--sans);text-align:left;cursor:pointer}
.no-results .bs-sections{margin-top:14px;font-size:13px}
.no-results .bs-selection{display:inline-block;margin-top:12px;font-size:13px}
@media(max-width:640px){
  .bs-item{grid-template-columns:36px minmax(0,1fr) auto;gap:10px}
  .bs-photo{width:36px;height:36px}
  /* Four products fit the hint above the keyboard together with «Показать все». */
  .bs-list .bs-item:nth-child(n+5){display:none}
  /* mobile.css hides the lede of the catalog; a search keeps its count and «Сбросить поиск». */
  body[data-page=catalog] .page-head.bs-head p{display:block;margin-top:10px;font-size:14px}
}
