/* Classic Quick Search dropdown */
.cqs-dropdown {
    position: absolute;
    z-index: 99999;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 480px;
    overflow-y: auto;
    font-family: inherit;
    font-size: 14px;
    color: #1a1a1a;
}

.cqs-dropdown a {
    text-decoration: none;
    color: inherit;
}

.cqs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.12s;
    cursor: pointer;
}

.cqs-item:last-child {
    border-bottom: none;
}

.cqs-item:hover,
.cqs-item.cqs-active {
    background-color: #f7f7f7;
}

.cqs-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background-color: #f5f5f5;
}

.cqs-info {
    flex: 1;
    min-width: 0;
}

.cqs-name {
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 4px;
    color: #1a1a1a;
    word-break: break-word;
}

.cqs-name mark {
    background-color: #fff3a8;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
    font-weight: 600;
}

.cqs-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: #777;
    flex-wrap: wrap;
}

.cqs-brand {
    color: #555;
}

.cqs-price {
    color: #d24a3a;
    font-weight: 500;
}

.cqs-oos {
    color: #999;
    background: #f0f0f0;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.cqs-item-oos .cqs-thumb,
.cqs-item-oos .cqs-name,
.cqs-item-oos .cqs-price {
    opacity: 0.55;
}

.cqs-empty {
    padding: 16px;
    color: #777;
    text-align: center;
    font-size: 13px;
}

.cqs-view-all {
    display: block;
    padding: 10px 12px;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #eee;
    color: #1a73e8;
    font-size: 13px;
    font-weight: 500;
}

.cqs-view-all:hover {
    background: #f0f0f0;
}

/* An live search built-in cua theme Flatsome de tranh conflict */
.live-search-results {
    display: none !important;
}

/* Mobile */
@media (max-width: 640px) {
    .cqs-dropdown {
        border-radius: 6px;
        font-size: 13px;
    }
    .cqs-thumb {
        width: 44px;
        height: 44px;
    }
    .cqs-item {
        padding: 10px;
        gap: 10px;
    }
    .cqs-name {
        font-size: 13px;
        line-height: 1.3;
    }
    .cqs-meta {
        font-size: 11px;
        gap: 8px;
    }
    .cqs-view-all {
        padding: 12px;
        font-size: 13px;
    }
}
