/* ===============================================
   AJAX SEARCH RESULTS STYLES
   =============================================== */

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 0.5rem;
    border: 1px solid #e9ecef;
}

.search-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.search-loading i {
    margin-right: 0.5rem;
    color: #3498db;
}

.results-content {
    padding: 1rem 0;
}

.result-section {
    margin-bottom: 1.5rem;
}

.result-section:last-child {
    margin-bottom: 0;
}

.result-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 1rem;
    margin-bottom: 0.75rem;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #2c3e50;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

.result-item:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
}

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

.result-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.result-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.result-placeholder i {
    color: white;
    font-size: 1.2rem;
}

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

.result-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-meta {
    font-size: 0.8rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-price {
    font-weight: 600;
    color: #e74c3c;
}

.result-category {
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

.no-results i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.view-all-results {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-top: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.view-all-results:hover {
    background: #e9ecef;
    color: #2980b9;
    text-decoration: none;
}

/* Search Container Position */
.search-container {
    position: relative;
}

/* Mobile Search Results */
@media (max-width: 768px) {
    .search-results {
        left: -1rem;
        right: -1rem;
        border-radius: 8px;
        max-height: 300px;
    }
    
    .result-item {
        padding: 1rem;
    }
    
    .result-image,
    .result-placeholder {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
    }
    
    .result-name {
        font-size: 0.85rem;
    }
    
    .result-meta {
        font-size: 0.75rem;
    }
} 