/* ASE Live Search Dropdown */

.ase-nav-search {
    position: relative;
}

/* Dropdown container */
.ase-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Result rows */
.ase-search-result {
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.1s;
}

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

/* Part number line */
.ase-search-part {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cross-reference line */
.ase-search-xref {
    display: block;
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.ase-search-result:hover,
.ase-search-active {
    background: #f0f6ff;
    color: #1e73be;
}

/* No results */
.ase-search-no-results {
    padding: 12px;
    font-size: 14px;
    color: #888;
    text-align: center;
}

/* Loading indicator — tiny dot pulsing */
.ase-search-loading {
    padding: 12px;
    text-align: center;
}

.ase-search-loading::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #999;
    animation: ase-search-pulse 0.6s ease-in-out infinite alternate;
}

@keyframes ase-search-pulse {
    from { opacity: 0.3; }
    to   { opacity: 1; }
}

/* Mobile */
@media (max-width: 768px) {
    .ase-search-dropdown {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 50vh;
        border: none;
        border-top: 1px solid #ddd;
        border-radius: 12px 12px 0 0;
        z-index: 99999;
    }
}
