/* ====== SEARCH AUTOCOMPLETE WRAPPER ====== */
.search-autocomplete {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    margin-top: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid #e6e6e6;
    max-height: 450px;
    overflow-y: auto;
    width: 380px !important;
    z-index: 9999999;
}

/* Scrollbar Styling */
.search-autocomplete::-webkit-scrollbar {
    width: 6px;
}
.search-autocomplete::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 6px;
}

/* ====== HEADER ====== */
.cv-search-header {
    list-style: none;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f1f1;
    background: #fafafa;
    text-align: left;
}

/* ====== PRODUCT ITEM ====== */
.cv-search-item {
    list-style: none;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
}

.cv-search-item:hover {
    background: #f5f7fa;
    cursor: pointer;
}

/* Link */
.cv-search-item a {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    width: 100%;
    gap: 14px;
}

/* Product Image */
.cv-search-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Product Name */
.cv-search-item .name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    display: block;
    line-height: 1.4;
    max-width: 180px;
}

/* Price on right */
.cv-search-item .price {
    margin-left: auto;
    font-size: 15px;
    font-weight: 700;
    color: #2d8f4e;
}

/* ====== FOOTER ====== */
.cv-search-footer {
    padding: 16px 18px;
    text-align: center;
    list-style: none;
    border-top: 1px solid #f1f1f1;
    background: #fafafa;
    font-size: 14px;
}

/* The "See all results" link */
.cv-search-footer .view-all {
    display: block;
    margin-top: 6px;
    font-weight: 600;
    color: #0066cc;
    text-decoration: none !important;
}

.cv-search-footer .view-all:hover {
    text-decoration: underline;
}

/* ====== EMPTY / NO RESULTS ====== */
.cv-search-no-result {
    padding: 15px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.cv-search-wrapper {
    display: flex;
    padding: 0 10px;
    gap: 20px;
}

.cv-search-left,
.cv-search-right {
    width: 50%;
}

.cv-search-right .cv-search-cat-item {
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cv-search-right .cv-search-cat-item a {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.cv-search-right .cv-search-cat-item:hover {
    background: #f5f7fa;
}
