/* ============================================================
   XVR Search — выпадающий список подсказок
   ============================================================ */

.xvr-suggest {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    max-height: 420px;
    overflow-y: auto;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    scrollbar-width: thin;
}

.xvr-suggest .xvr-group-label {
    padding: 8px 12px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.xvr-suggest .xvr-group-label:first-child {
    border-top: none;
}

.xvr-suggest a.xvr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.12s ease;
}

.xvr-suggest a.xvr-item:last-child {
    border-bottom: none;
}

.xvr-suggest a.xvr-item:hover,
.xvr-suggest a.xvr-item.is-active {
    background: #f5f5f5;
    text-decoration: none;
}

/* --- Иконки/превью --- */

.xvr-suggest .xvr-thumb {
    /*flex: 0 0 40px;
    width: 40px;
    height: 40px;*/
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 3px;
    overflow: hidden;
}

.xvr-suggest .xvr-thumb img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.xvr-suggest .xvr-cat-icon,
.xvr-suggest .xvr-query-icon {
    flex: 0 0 24px;
    width: 24px;
    text-align: center;
    font-size: 16px;
    color: #999;
}

/* --- Тело --- */

.xvr-suggest .xvr-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.xvr-suggest .xvr-name {
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xvr-suggest .xvr-model {
    font-size: 11px;
    color: #888;
    margin-top: 1px;
}

.xvr-suggest .xvr-category {
    font-size: 11px;
    color: #999;
    margin-top: 1px;
}

.xvr-suggest .xvr-meta {
    margin-top: 3px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.xvr-suggest .xvr-price {
    font-weight: 700;
    color: #e53935;
}

.xvr-suggest .xvr-price-old {
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    font-size: 12px;
}

.xvr-suggest .xvr-price-special {
    color: #e53935;
    font-weight: 700;
}

.xvr-suggest .xvr-stock {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
}

.xvr-suggest .xvr-stock-in {
    background: #e8f5e9;
    color: #2e7d32;
}

.xvr-suggest .xvr-stock-out {
    background: #fdecea;
    color: #c62828;
}

/* --- Подсветка совпадений --- */

.xvr-suggest .xvr-highlight {
    color: #e53935;
    font-weight: 700;
    background: #fff0f0;
}


/* --- Кнопка Показать все --- */
.xvr-suggest .xvr-suggest-btn-search {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    background: #f5f5f5;
    position: sticky;
    bottom: 0;
    cursor: pointer;
    border-radius: 0px;
}
.xvr-suggest .xvr-suggest-btn-search a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}