/* Контейнер подсказок */
.hp-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    z-index: 99999;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: -1px;
}

.hp-search-wrapper {
    position: relative;
    width: 100%;
}

.hp-search-field {
    position: relative;
}

/* Элемент подсказки */
.hp-suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.hp-suggestion-item:last-child {
    border-bottom: none;
}

.hp-suggestion-item:hover {
    background: #f8fafc;
}

.hp-suggestion-item.highlighted {
    background: #eef2ff;
    border-left: 3px solid #2563eb;
}

/* Изображение в подсказке */
.hp-suggestion-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    background: #f1f5f9;
}

.hp-suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-suggestion-image-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Контент подсказки */
.hp-suggestion-content {
    flex: 1;
    min-width: 0;
}

.hp-suggestion-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-suggestion-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.hp-suggestion-price {
    color: #2563eb;
    font-weight: 600;
}

.hp-suggestion-category {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hp-suggestion-category i {
    color: #94a3b8;
}

/* Секции подсказок */
.hp-suggestions-section {
    padding: 8px 0;
}

.hp-suggestions-header {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Загрузка */
.hp-suggestions-loading {
    padding: 20px;
    text-align: center;
    color: #64748b;
}

.hp-suggestions-loading .spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Сообщение "ничего не найдено" */
.hp-suggestions-empty {
    padding: 20px;
    text-align: center;
    color: #64748b;
}

.hp-suggestions-empty i {
    font-size: 24px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
}

/* Кнопка просмотра всех */
.hp-suggestions-view-all {
    padding: 12px 16px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.hp-suggestions-view-all a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.hp-suggestions-view-all a:hover {
    text-decoration: underline;
}

/* Адаптация под тему */
.hp-search-wrapper input {
    width: 100%;
    padding-right: 40px !important;
}

.hp-search-wrapper .hp-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* Стили для поиска по продавцам */
.hp-suggestion-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    background: #f1f5f9;
}

.hp-suggestion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-suggestion-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.hp-suggestion-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    margin-left: 4px;
}

.hp-suggestion-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #f59e0b;
}

.hp-suggestion-rating i {
    color: #f59e0b;
}

.hp-suggestion-products-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hp-suggestions-header {
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.hp-suggestion-item {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.hp-suggestion-item:hover {
    background-color: #f8f9fa;
}

.hp-suggestion-phrase {
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.hp-suggestion-phrase strong {
    color: #0073aa;
    font-weight: 600;
}

.hp-suggestion-path {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-suggestions-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Секция продавцов */
.hp-suggestions-section-sellers {
    border-top: 8px solid #f0f0f0;
    margin-top: 5px;
}

.hp-suggestions-header-sellers {
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-suggestions-header-sellers i {
    color: #8b5cf6;
}

.hp-suggestion-item-seller {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.hp-suggestion-item-seller:hover {
    background-color: #f8f9fa;
}

.hp-suggestion-seller-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.hp-suggestion-seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-suggestion-seller-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.hp-suggestion-seller-info {
    flex: 1;
    min-width: 0;
}

.hp-suggestion-seller-name {
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hp-suggestion-seller-name strong {
    color: #0073aa;
    font-weight: 600;
}

.hp-suggestion-verified {
    color: #4caf50;
    font-size: 14px;
    font-weight: 600;
    background: #e8f5e9;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hp-suggestion-seller-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #999;
}

.hp-suggestion-seller-rating {
    color: #ffa41c;
    display: flex;
    align-items: center;
    gap: 2px;
}

.hp-suggestion-seller-products {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Разделитель между секциями */
.hp-suggestions-section-sellers::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin: 5px 0;
}