/* Live results under the header search boxes (src/js/search-suggest.js). */
.search-suggest-form {
    position: relative;
}

.search-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    margin-top: 4px;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.search-suggest[hidden] {
    display: none;
}

.search-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.search-suggest-item:hover,
.search-suggest-item:focus,
.search-suggest-item.is-active {
    background: #fdf8d8;
    color: #000;
    text-decoration: none;
}

.search-suggest-item img,
.search-suggest-noimg {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #f7f7f7;
    border-radius: 4px;
}

.search-suggest-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-suggest-name mark {
    padding: 0;
    background: none;
    color: inherit;
    font-weight: 700;
}

/* The currency formatter prints "<div>12.34 €</div>24.13 лв.": euro first, lev below. */
.search-suggest-price {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: right;
    font-size: 12px;
    font-weight: 400;
    color: #777;
}

.search-suggest-price div {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.search-suggest-special div {
    color: #c9302c;
}

.search-suggest-price s {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: #999;
}

.search-suggest-special {
    color: #c9302c;
}

.search-suggest-all {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: #f7f7f7;
    color: #337ab7;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.search-suggest-all:hover {
    background: #eee;
    text-decoration: underline;
}

.search-suggest-empty {
    padding: 12px;
    color: #777;
    font-size: 14px;
}
