/* manticore_search: власний живий пошук - повністю самодостатній CSS,
   не залежить від стилів теми (catalog/view/theme/unishop2/stylesheet/
   livesearch.css), бо ті підключаються лише коли увімкнено сторонній
   модуль "uni_settings" (на практиці - ніде не увімкнено, перевірено
   напряму в БД). Класи .live-search/.live-search__ul - це вже наявна,
   завжди присутня розмітка теми (header-search.twig), ми лише стилізуємо
   і заповнюємо її своїм JS/CSS, самого контейнера не торкаємось. */
.header-search {
    position: relative;
}
.live-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    margin-top: 4px;
    max-height: 420px;
    overflow-y: auto;
}
.live-search__ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.live-search__section {
    padding: 8px 16px 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
}
.live-search__category {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 12px 8px;
}
.live-search__category-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}
.live-search__category-item:hover {
    border-color: #d75032;
    color: #d75032;
}
.live-search__category-item img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.live-search__item {
    border-top: 1px solid #f0f0f0;
}
.live-search__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
}
.live-search__link:hover {
    background: #f7f7f7;
}
.live-search__image img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}
.live-search__wrapper {
    min-width: 0;
    flex: 1;
}
.live-search__name {
    font-size: 14px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.live-search__price {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 600;
    color: #d75032;
}
.live-search__price-old {
    margin-left: 6px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}
.live-search__more a {
    display: block;
    padding: 10px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #d75032;
    text-decoration: none;
}
.live-search__empty {
    padding: 16px;
    text-align: center;
    color: #888;
    font-size: 13px;
}
