.nav-search-box.show {
    display: block !important;
}

.search-suggestions {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: white;
    max-height: 400px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
    width: 100%;
}

.suggestion-item:hover {
    background-color: #e9ecef;
    text-decoration: none;
    color: #333;
}

.suggestion-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    flex-shrink: 0;
    border: 1px solid #ccc;
}

.suggestion-item .d-flex {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
}

.suggestion-item .fw-semibold {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 4px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-item .text-muted {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.2;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

/* Custom scrollbar for suggestions */
.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 8px 8px 0;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (max-width: 767px) {
    .nav-search-box {
        min-width: calc(70vw) !important;
    }

    .suggestion-item img {
        width: 50px;
        height: 50px;
    }

    .suggestion-item {
        padding: 8px 10px;
    }

    .suggestion-item img {
        margin-right: 10px;
    }
}