/*
 * Recherche globale (T28) : suggestions sous le champ d'en-tête, et page de résultats de repli.
 */
.rb-search {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 30;
    max-height: min(70vh, 480px);
    overflow-y: auto;
    background-color: var(--rb-bg-panel);
    border: 1px solid var(--rb-border-strong);
    border-radius: var(--rb-radius-md);
    box-shadow: 0 12px 32px rgb(0 0 0 / 45%);
}

.rb-search__list {
    margin: 0;
    padding: 4px;
    list-style: none;
}

.rb-search__result {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 7px 8px;
    color: var(--rb-text-primary);
    text-decoration: none;
    border-radius: var(--rb-radius-sm);
}

.rb-search__result:hover,
.rb-search__result:focus-visible,
.rb-search__item[aria-selected="true"] .rb-search__result {
    background-color: var(--rb-bg-hover);
}

.rb-search__result:focus-visible {
    outline: 2px solid var(--rb-accent-cyan);
    outline-offset: -2px;
}

.rb-search__identity {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.rb-search__name,
.rb-search__meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rb-search__name {
    font-size: 13px;
    color: var(--rb-text-heading);
}

.rb-search__meta {
    font-size: 11px;
    color: var(--rb-text-muted);
}

.rb-search__price {
    font-family: var(--rb-font-mono);
    font-size: 12px;
    color: var(--rb-text-secondary);
    white-space: nowrap;
}

.rb-search__empty {
    margin: 0;
    padding: 14px 12px;
    font-size: 12.5px;
    color: var(--rb-text-muted);
}

.rb-search-page__title {
    margin: 0 0 6px;
    color: var(--rb-text-heading);
}

.rb-search-page__subtitle {
    margin: 0 0 14px;
    color: var(--rb-text-muted);
}

.rb-search-page__list {
    max-width: 720px;
    background-color: var(--rb-bg-panel);
    border: 1px solid var(--rb-border-default);
    border-radius: var(--rb-radius-md);
}
