.cm2-search-box {
    position: relative;
    max-width: 480px;
}
#cm2-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.cm2-search-results {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: none;
    z-index: 999;
}
.cm2-search-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    padding: 4px;
    gap: 6px;
}

.cm2-search-tabs button {
    flex: 1;
    padding: 8px 10px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #333 !important; /* 🔹 chữ đen mặc định */
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.cm2-search-tabs button:hover {
    background: #f1f1f1;
    color: #000 !important; /* 🔹 hover chữ đậm */
}
.cm2-search-tabs button.active {
    background: #0073aa;
    color: #fff !important; /* 🔹 chữ trắng khi active */
    font-weight: bold;
}


.cm2-search-content {
    max-height: 380px;
    overflow-y: auto;
}
.cm2-search-section {
    display: none;
    padding: 6px 0;
}
.cm2-search-section.active { display: block; }
.cm2-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    text-decoration: none;
    color: #333;
}
.cm2-search-item:hover { background: #f9f9f9; }
.cm2-search-item img {
    width: 40px; height: 40px;
    object-fit: cover;
    border-radius: 4px;
}
.cm2-price { color: #e53935; font-weight: bold; font-size: 13px; }
.cm2-add-cart {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 4px 6px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}
.cm2-add-cart:hover { background: #005f8d; }
.cm2-search-item strong {
    color: #0073aa;
}
