.devvn_form_quicksearch {
    position: relative;
}
.quick-search-results{
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    color: #111;
    left: 0;
    position: absolute;
    right: 0;
    text-align: left;
    top: 105%;
    z-index: 9;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}
.quicksearch_load_noresult .quick-search-results{
    min-height: auto !important;
}
strong.title_sec {
    display: block;
    padding: 5px 10px ;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 14px;
    clear: both;
}

.quicksearch_item {
    overflow: hidden;
    padding: 5px 10px 2.5px;
    display: block;
    color: #000;
}

.quicksearch_item:hover {
    background: #f5f5f5;
}

.quicksearch_thumb {
    width: 50px;
    height: auto;
    float: left;
    margin: 0 5px 0 0;
}

.quicksearch_info {
    overflow: hidden;
}
.quicksearch_info .title {
    line-height: 18px !important;
    font-size: 14px;
    max-height: 36px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}
.quicksearch_info > span.price > .amount, .quicksearch_info > span.price ins > .amount {
    color: red;
    font-size: 16px;
}
.quicksearch_info > span.price del, .quicksearch_info > span.price del > .amount {
    font-size: 14px;
    color: #111;
    opacity: .8;
}
.quicksearch_info .qs-stock-out {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    font-size: 11px;
    line-height: 1.7;
    font-weight: 600;
    color: #fff;
    background-color: #e53935;
    border-radius: 3px;
    vertical-align: middle;
    white-space: nowrap;
}
.quicksearch_item_outofstock {
    opacity: .7;
}
.quicksearch_item_outofstock .qs-stock-out {
    opacity: 1;
}

.quicksearch_load_noresult .quick-search-results {
    padding: 5px 10px;
}

.quicksearch_item_col_2 {
    width: 50%;
    float: left;
}

[class*="taxsync_"] strong.title {
    font-weight: normal;
}

.quicksearch_item_wrap:after {
    content: "";
    clear: both;
    display: table;
    margin-bottom: 10px;
}

[class*="taxsync_"] > .quicksearch_item:nth-child(2n+1) {
    clear: both;
}

#search-lightbox .quick-search-results {
    position: relative;
    min-height: auto !important;
    max-height: 500px !important;
    max-height: calc(100vh - 200px) !important;
}

@media (max-width: 676px){
    .quick-search-results{
        min-height: auto !important;
        max-height: 500px !important;
        max-height: calc(100vh - 200px) !important;
    }
}
/* ── Trạng thái đang tìm ─────────────────────────────────────────────
   Bản trước bật/tắt class quickseach_loading nhưng chưa từng có rule CSS
   nào cho nó, nên khách gõ xong không thấy dấu hiệu gì. */
.devvn_form_quicksearch.quickseach_loading:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    z-index: 10;
    pointer-events: none;
    background-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,0) 100%);
    background-size: 40% 100%;
    background-repeat: no-repeat;
    animation: devvnQsLoadingBar 1s ease-in-out infinite;
}

@keyframes devvnQsLoadingBar {
    0%   { background-position: -40% 0; }
    100% { background-position: 140% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .devvn_form_quicksearch.quickseach_loading:after {
        animation: none;
        background-size: 100% 100%;
        opacity: .35;
    }
}

/* ── Không có kết quả ────────────────────────────────────────────── */
.quicksearch_empty {
    padding: 12px 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
}
