/* Стили для автодополнения поиска */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-top: 4px;
    z-index: 1000;
    display: none;
    max-height: none;
    overflow: visible;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-suggestions.active {
    display: block;
}

.search-suggestions-header {
    padding: 12px 16px 8px 16px;
    font-size: 13px;
    font-weight: 400;
    color: #666666;
    background: transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    text-align: left;
}

.search-suggestions-list {
    padding: 0;
    background: #ffffff;
    max-height: none;
    overflow: visible;
}

.search-suggestion-item {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

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

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background: #f8f9fa;
}

.search-suggestion-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}

.search-suggestion-image {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
    margin-right: 12px;
    background-color: #f5f5f5;
    flex-shrink: 0;
}

.search-suggestion-image svg {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

.search-suggestion-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-suggestion-name {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-suggestion-price {
    font-size: 13px;
    color: #000000;
    font-weight: 400;
    line-height: 1.3;
}

.search-suggestions-footer {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    text-align: center;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
}

.search-suggestions-all {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    text-decoration: none;
    color: #000000;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    background: #ffffff;
    line-height: 1.4;
}

.search-suggestions-all:hover {
    background: #f5f5f5;
    border-color: #bbbbbb;
    text-decoration: none;
    color: #000000;
}

.search-suggestions-loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Позиционирование для десктопной версии */
.h-desktop__middle-search {
    position: relative;
}

.h-desktop__middle-search .search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    min-width: 300px;
}

/* Позиционирование для мобильной версии */
.h-mobile__input {
    position: relative;
}

.h-mobile__input .search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .search-suggestion-image {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    .search-suggestion-name {
        font-size: 13px;
    }
    
    .search-suggestion-price {
        font-size: 12px;
    }
}
