

/* Заглушка "Ничего не найдено" */
.search-suggest-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 25px 15px;
    color: #818084;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    text-align: center;
}

.search-suggest-empty svg {
    flex-shrink: 0;
    opacity: 0.6;
}/* Стили для формы поиска в шапке */
.header-search-form {
    flex-grow: 1;
    position: relative;
    max-width: 377px;
    transition: all 0.3s ease;
    width: 100%;
    /* ВАЖНО: Заставляем контейнер не обрезать выпадающий список */
    overflow: visible !important; 
    z-index: 1002;
}

.header-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
}

.header-search-input {
    width: 100%;
    height: 100%;
    padding: 10px 15px;
    border: 1px solid #8AC0ED;
    outline: none;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    background: white;
    box-sizing: border-box;
    color: #303030;
    transition: all 0.3s ease;
}

.header-search-input:focus {
    border-color: #1481DB;
    color: #303030;
}

.header-search-input::placeholder {
    color: #818084;
    opacity: 0.8;
}

/* ============================================
   Выпадающий список подсказок (Стиль сайта)
   ============================================ */

.header-search-suggestions {
    position: absolute;
    top: 100%; /* Располагается ровно под полем ввода */
    left: 0;
    right: auto; /* ОТМЕНЯЕМ растягивание до правого края инпута */
    min-width: 100%; /* Гарантируем, что список будет не уже поля ввода */
    width: 500px; /* ЗАДАЕМ НУЖНУЮ ШИРИНУ ВЫПАДАЮЩЕГО СПИСКА */
    background: #ffffff;
    border: 1px solid #8AC0ED;
    border-top: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1003;
    max-height: 450px; /* Ограничение высоты (~10 элементов) */
    overflow-y: auto;   /* Прокрутка, если много результатов */
    border-radius: 0 0 8px 8px;
    display: none; /* Скрыт по умолчанию */
    
    /* Красивая прокрутка */
    scrollbar-width: thin;
    scrollbar-color: #8AC0ED #F2F3F5;
}

.header-search-suggestions::-webkit-scrollbar { width: 6px; }
.header-search-suggestions::-webkit-scrollbar-track { background: #F2F3F5; border-radius: 3px; }
.header-search-suggestions::-webkit-scrollbar-thumb { background: #8AC0ED; border-radius: 3px; }
.header-search-suggestions::-webkit-scrollbar-thumb:hover { background: #1481DB; }

.header-search-suggestions::-webkit-scrollbar { width: 6px; }
.header-search-suggestions::-webkit-scrollbar-track { background: #F2F3F5; border-radius: 3px; }
.header-search-suggestions::-webkit-scrollbar-thumb { background: #8AC0ED; border-radius: 3px; }
.header-search-suggestions::-webkit-scrollbar-thumb:hover { background: #1481DB; }

/* Заголовок категории */
.search-suggest-category-title {
    padding: 12px 15px 6px;
    font-size: 12px;
    font-weight: 600;
    color: #818084;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #F2F3F5;
    font-family: 'Inter Tight', sans-serif;
    border-bottom: 1px solid #e1e1e1;
}

.search-suggest-category-title:not(:first-child) {
    margin-top: 4px;
}

/* Элемент выпадающего списка */
.search-suggest-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    font-size: 14px;
    color: #303030;
    font-family: 'Inter Tight', sans-serif;
    border-bottom: 1px solid #f0f0f2;
    text-decoration: none;
}

.search-suggest-item:last-child { border-bottom: none; }

.search-suggest-item:hover,
.search-suggest-item.selected {
    background: #F2F3F5;
    color: #1481DB;
    text-decoration: none;
}

.search-suggest-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid #f0f0f2;
    padding: 2px;
}

.search-suggest-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.search-suggest-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.search-suggest-price { 
    font-size: 13px; 
    color: #818084; 
    font-weight: 500;
}

.search-suggest-item.selected .search-suggest-price,
.search-suggest-item:hover .search-suggest-price {
    color: #1481DB;
}

/* Заглушка для картинок */
.search-suggest-no-photo {
    width: 45px;
    height: 45px;
    background: #F2F3F5;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .header-search-form { max-width: 100%; margin: 10px 0; }
    .header-search-input { height: 44px; font-size: 16px; }
    .header-search-suggestions {
        position: fixed;
        top: auto; bottom: 0; left: 0; right: 0;
        max-height: 40vh;
        border-radius: 10px 10px 0 0;
        border: 1px solid #8AC0ED;
    }
}

/* Заглушка "Ничего не найдено" */
.search-suggest-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 25px 15px;
    color: #818084;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    text-align: center;
}

.search-suggest-empty svg {
    flex-shrink: 0;
    opacity: 0.6;
}