/* Amazon-style Autocomplete Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: -1px;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: none;
    background: #fff;
    transition: background-color 0.1s;
    font-size: 14px;
    color: #111;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #f3f3f3;
}

/* Search icon for each suggestion */
.suggestion-item::before {
    content: "\f002"; /* Font Awesome search icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: #888;
    font-size: 13px;
}

.suggestion-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.suggestion-name {
    font-weight: 400;
    color: #111;
    line-height: 1.2;
}

/* Highlight matching text */
.suggestion-highlight {
    font-weight: 700;
    color: #111;
}

/* Category badge */
.suggestion-category {
    font-size: 11px;
    color: #565959;
    margin-left: 8px;
    font-style: italic;
}

.no-results {
    padding: 12px;
    text-align: center;
    color: #565959;
    font-size: 13px;
}

.search-loading {
    padding: 12px;
    text-align: center;
    color: #565959;
    font-size: 13px;
}

/* Remove image styling - Amazon style doesn't show images */
.suggestion-item img {
    display: none;
}

/* Make search bar rounded when suggestions are open */
.wrap.suggestions-open .searchTerm {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-suggestions {
        max-height: 300px;
    }

    .suggestion-item {
        padding: 10px 12px;
        font-size: 16px; /* Larger font for mobile */
    }
}
