﻿.menu-right { 
    position: relative;
}

.qs-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 50;
}

.qs-wrap[hidden] {
    display: none;
}

.qs-panel {
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 22rem;
    min-width: 260px;
}

.qs-results {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    max-height: 16.5rem;
}

.qs-item {
    display: flex;
    gap: 0.85rem;
    padding: 1rem;
    text-decoration: none;
    background: rgba(15, 15, 15, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.qs-item:last-child { border-bottom: none; }

.qs-item:hover {
    background: rgba(30, 30, 30, 0.9);
}

.qs-thumb {
    width: 82px;
    height: 82px;
    border-radius: 0.5rem;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.qs-texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}

.qs-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.qs-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.qs-category {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.qs-status {
    padding: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.qs-see-all {
    display: block;
    text-align: center;
    padding: 0.85rem;
    color: #fff;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.92);
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
}

.qs-see-all:hover {
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
    .qs-results {
        grid-template-columns: 1fr;
    }

    .qs-item {
        align-items: center;
    }

    .qs-thumb {
        width: 72px;
        height: 72px;
    }
}
