[data-catalog-search] {
    position: relative;
}

.catalog-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: min(60vh, 36rem);
    overflow: auto;
    margin: 0;
    padding: .5rem;
    color: #222;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: .4rem;
    box-shadow: 0 .4rem 1.4rem rgb(0 0 0 / 12%);
    list-style: none;
    text-align: left;
}

.dir-up .catalog-suggestions {
    top: auto;
    bottom: 100%;
}

.catalog-suggestions-heading {
    padding: .4rem .8rem;
    font-weight: 700;
}

.catalog-suggestion, .catalog-suggestion-all {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .8rem;
    border-top: 1px solid #eee;
    line-height: 1.35;
}

.catalog-suggestion:hover, .catalog-suggestion:focus, .catalog-suggestion-all:hover {
    background: #f5f5f5;
}

.catalog-suggestion img {
    flex: none;
    object-fit: contain;
}

.catalog-suggestion-name {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.catalog-suggestion-name small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.catalog-suggestion-price {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    column-gap: .5rem;
    white-space: nowrap;
}

.catalog-suggestion-discount {
    font-weight: 700;
}

.catalog-suggestion-all {
    justify-content: center;
    font-weight: 700;
}

.search-category-link {
    display: block;
    padding: .75rem;
    white-space: normal;
    text-transform: none;
}

@media (max-width: 575px) {
    .catalog-suggestion-price {
        flex-direction: column;
        text-align: right;
    }
}
