/* ==========================================================================
   SEARCH AUTOCOMPLETE DROPDOWN
   ========================================================================== */
.search-autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    max-height: 420px;
    overflow-y: auto;
    border-radius: 0 0 4px 4px;
    text-align: left;
}

.search-section {
    border-bottom: 1px solid #eee;
}

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

.search-section-title {
    padding: 8px 12px;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    background: #f9f9f9;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.12s ease;
}

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

.search-item:hover,
.search-item.active {
    background: #eaf3ff;
    text-decoration: none;
    color: #184484;
}

.search-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 10px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 3px;
}

.search-item i.fa {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin-right: 10px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #666;
    flex-shrink: 0;
    font-size: 16px;
}

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

.search-item-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.search-item-price {
    font-size: 12px;
    color: #e44d26;
    font-weight: 600;
    margin-top: 2px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.search-footer {
    padding: 10px 12px;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
}

.search-footer a {
    font-size: 12px;
    color: #184484;
    text-decoration: none;
    font-weight: 500;
}

.search-footer a:hover {
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .search-autocomplete-dropdown {
        max-height: 320px;
    }
    .search-item img,
    .search-item i.fa {
        width: 32px;
        height: 32px;
    }
    .search-item i.fa {
        line-height: 32px;
        font-size: 14px;
    }
}
