/* Умный поиск — автодополнение */
.search-suggest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    z-index: 9999;
    max-height: 480px;
    overflow-y: auto;
}
.search-suggest-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    transition: background .15s;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.search-suggest-item:last-child { border-bottom: none; }
.search-suggest-item:hover,
.search-suggest-item.active { background: #f5f0fa; }
.search-suggest-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
    background: #f9f9f9;
}
.search-suggest-img-placeholder {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 20px;
}
.search-suggest-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.search-suggest-name {
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-suggest-name mark {
    background: #e8d5f5;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}
.search-suggest-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.search-suggest-price {
    font-size: 14px;
    font-weight: 600;
    color: #A089C1;
    white-space: nowrap;
    flex-shrink: 0;
}
.search-suggest-showall {
    display: block;
    text-align: center;
    padding: 10px;
    color: #A089C1;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border-top: 1px solid #eee;
}
.search-suggest-showall:hover {
    background: #f5f0fa;
    color: #8a6fb0;
}
.search-suggest-empty {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 14px;
}
.search-suggest-loading {
    padding: 16px;
    text-align: center;
    color: #bbb;
}
@media (max-width: 767px) {
    .search-suggest-dropdown {
        max-height: 60vh;
    }
}
