/**
 * Custom styles for product search dropdown
 */

/* Product dropdown styling */
.product-results {
    max-height: 350px;
    overflow-y: auto;
    z-index: 1050;
}

/* Product item styling */
.dropdown-item.product-item {
    padding: 0.5rem 1rem;
    white-space: normal;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-item.product-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

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

/* Product thumbnail */
.product-thumbnail {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.product-thumbnail img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* Product details */
.product-details {
    flex-grow: 1;
    min-width: 0;
}

.product-name {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.product-meta {
    color: var(--bs-secondary-color);
}

/* Loading state */
.position-relative .spinner-border {
    z-index: 5;
}

/* Dropdown header */
.product-results .dropdown-header {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--bs-secondary);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Error state */
.product-error {
    color: var(--bs-danger);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Empty state */
.product-empty {
    padding: 1rem;
    text-align: center;
    color: var(--bs-secondary);
}
