/* Search Autocomplete Styles */
.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

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

.search-autocomplete-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.search-autocomplete-item:hover,
.search-autocomplete-item.selected {
    background-color: #f8f9fa;
}

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

.search-autocomplete-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-autocomplete-info {
    flex: 1;
    min-width: 0;
}

.search-autocomplete-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-autocomplete-price {
    font-size: 14px;
    font-weight: 600;
    color: #d32f2f;
}

.search-autocomplete-category {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

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

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

.search-autocomplete-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
