﻿.searchbar {
    position: relative;
    display: flex;
    justify-content: center;
}

.q_complete {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 640px; /* adjust to your preference */
    margin-top: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    z-index: 9999;
}


/*.q_complete {
    position: absolute;
    top: 45px;
    left: 0;
    width: 600px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    z-index: 2000;
    overflow: hidden;
    display: none;
}*/

    .q_complete .q_result {
        width: 60%;
        float: left;
        max-height: 360px;
        overflow: auto;
    }

        .q_complete .q_result ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .q_complete .q_result li {
            display: flex;
            width:100%;
            align-items: center;
            gap: 10px;
            padding: 8px 10px;
            border-bottom: 1px solid #f1f1f1;
            cursor: pointer;
        }

            .q_complete .q_result li:hover {
                background: #f9f9f9;
            }

    .q_complete .thumb {
        width: 36px;
        height: 36px;
        border-radius: 6px;
        object-fit: cover;
        background: #f4f4f4;
    }

    .q_complete .meta {
        flex: 1;
        min-width: 0;
    }

    .q_complete .title {
        font-size: 14px;
        color: #222;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .q_complete .subtitle {
        font-size: 12px;
        color: #777;
    }

.q_preview {
    width: 40%;
    float: right;
    padding: 12px;
    border-left: 1px solid #eee;
    min-height: 200px;
}

    .q_preview img {
        width: 100%;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .q_preview h4 {
        font-size: 15px;
        margin: 0 0 6px;
    }

    .q_preview .price {
        color: #111;
        font-weight: 600;
        margin-top: 6px;
    }

    .q_preview .old {
        color: #888;
        text-decoration: line-through;
        margin-left: 6px;
    }

.q_complete .showall {
    display: block;
    width: 100%;
    padding: 10px;
    border-top: 1px solid #eee;
    text-align: center;
    background: #fafafa;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}
