/* Live Search Results Styles */

/* Ensure the container is positioned relatively for the absolute dropdown */
.search-container {
    position: relative;
    z-index: 1000;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    /* Above eveything */
    display: none;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f9f9f9;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #fff;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #fff8f5;
    /* Light orange tint */
}

/* Image */
.search-result-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 15px;
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info */
.search-result-info {
    flex: 1;
    min-width: 0;
    /* Truncation fix */
}

.search-result-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.search-result-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-brand {
    color: #777;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.search-price {
    font-weight: 700;
    color: #ff6b00;
    font-size: 13px;
}

/* "No Results" & "View All" */
.search-no-results {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
    background: #fcfcfc;
}

.search-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    text-align: center;
    background: #fdfdfd;
    color: #ff6b00;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border-top: 1px solid #eee;
    transition: all 0.2s;
}

.search-view-all:hover {
    background: #fff5eb;
    color: #e55e00;
}

.search-view-all i {
    font-size: 14px;
}