/* Inline-поиск в шапке — Бум.Лавка */
.header-search { position: relative; }

.header-search__toggle { /* наследует .icon-button */ background: none; border: 0; padding: 0; }

.header-search__panel {
    position: absolute;
    top: calc(100% + 12px);
    right: -8px;
    width: min(440px, 90vw);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
    padding: 14px;
    z-index: 350;
    animation: blSearchFadeIn .14s ease-out;
}
@keyframes blSearchFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

.header-search__form {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #f6f4ec;
    border-radius: 12px;
    padding: 6px 6px 6px 14px;
}
.header-search__input {
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: #2a2a2a;
    padding: 8px 0;
    min-width: 0;
}
.header-search__input:focus { outline: 0; }
.header-search__input::placeholder { color: #999; }
.header-search__submit {
    flex: none;
    width: 38px;
    height: 38px;
    border: 0;
    background: #647d19;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
.header-search__submit:hover { background: #506415; }
.header-search__submit svg { display: block; }

.header-search__suggest {
    list-style: none;
    padding: 6px 0 0;
    margin: 8px 0 0;
    max-height: min(60vh, 480px);
    overflow-y: auto;
    border-top: 1px solid #eee;
}
.header-search__suggest[hidden] { display: none; }
.header-search__item { padding: 0; margin: 0; }
.header-search__item.is-active .header-search__link,
.header-search__link:hover { background: #f6f2e6; }
.header-search__link {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
}
.header-search__img {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 8px;
    object-fit: cover;
    background: #f4f0e3;
    display: block;
}
.header-search__img--placeholder {
    background: #e5e0cf;
}
.header-search__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.header-search__name {
    font-size: 14px;
    line-height: 1.3;
    color: #2a2a2a;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.header-search__price {
    font-size: 13px;
    font-weight: 600;
    color: #647d19;
}

.header-search__hint,
.header-search__empty {
    margin: 10px 4px 2px;
    font-size: 13px;
    color: #888;
    text-align: center;
}
.header-search__empty { color: #b04040; }
