/* Results Container */
.elastic-ajax-results {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    margin-top: 5px;
    display: none;
}

/* Loading */
.elastic-ajax-loading {
    padding: 15px;
    text-align: center;
    color: #666;
}

.elastic-ajax-loading:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results */
.elastic-ajax-no-results {
    padding: 15px;
    text-align: center;
    color: #666;
}

/* Error */
.elastic-ajax-error {
    padding: 15px;
    text-align: center;
    color: #d63638;
}

/* Results List */
.elastic-ajax-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Result Item */
.elastic-ajax-item {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

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

.elastic-ajax-item:hover,
.elastic-ajax-item.elastic-ajax-selected {
    background-color: #f7f7f7;
}

.elastic-ajax-item a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    gap: 12px;
}

/* Image */
.elastic-ajax-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-center: center;
}

.elastic-ajax-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Content */
.elastic-ajax-content {
    flex: 1;
    min-width: 0;
}

.elastic-ajax-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.elastic-ajax-sku {
    font-size: 12px;
    color: #777;
    margin-bottom: 3px;
}

.elastic-ajax-price {
    font-size: 14px;
    font-weight: 600;
    color: #96588a;
    margin-top: 4px;
}

.elastic-ajax-stock {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

/* Mobile */
@media (max-width: 768px) {
    .elastic-ajax-results {
    }

    .elastic-ajax-item a {
        padding: 10px 12px;
    }

    .elastic-ajax-image {
        width: 40px;
        height: 40px;
    }
}
