.wishlist-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #071E63;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 2px;
}
.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #071E63;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 2px;
}


/* Hide the text label */
.yith-wcwl-add-to-wishlist-button__label {
    display: none;
}

/* Make the YITH block and anchor fill the icon circle properly */
.wishlist-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wishlist-icon-wrap .yith-add-to-wishlist-button-block,
.wishlist-icon-wrap .yith-wcwl-add-to-wishlist-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Ensure the anchor is fully clickable */
.wishlist-icon-wrap a.yith-wcwl-add-to-wishlist-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    text-decoration: none;
}

/* SVG icon color */
.yith-wcwl-add-to-wishlist-button:not(.yith-wcwl-add-to-wishlist-button--themed-button) svg.yith-wcwl-add-to-wishlist-button-icon {
    color: #46578b !important;
    stroke-width: 1;
    width: 23px !important;
    height: 23px !important;
}

/* Hover state on the wrapper circle */
/* .product_side_icon_item:hover, */
.wishlist-icon-wrap:hover {
    background-color: #071E63;
    border-color: #071E63;
    color: #fff;
}

/* SVG turns white on hover */
.wishlist-icon-wrap:hover svg.yith-wcwl-add-to-wishlist-button-icon {
    color: #fff;
}


.ajax_add_to_cart.loading {
    opacity: 0.6;
    pointer-events: none;
}

.ajax_add_to_cart.added i {
    color: #28a745;
}



.ajax-search-results , .ajax-search-mobileresults {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 9999;
    display: none;
    max-height: 400px;
    overflow-y: auto;
        border-radius: 15px;
    margin-top: 5px;
}

.result-group h6 {
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    margin: 0;
    background: #f5f5f5;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #eee;
}

.result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.result-item:hover {
    background: #f9f9f9;
}


/* Make button relative */
.add_to_wishlist {
    position: relative;
}

/* While AJAX is processing */
.add_to_wishlist.loading {
    pointer-events: none;
}

/* Spinner overlay */
.add_to_wishlist.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-top: 2px solid #e63946;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: wishlist-spin 0.6s linear infinite;
}

/* Optional: hide heart icon while loading */
.add_to_wishlist.loading i,
.add_to_wishlist.loading svg {
    opacity: 0.3;
}

/* Animation */
@keyframes wishlist-spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.bestsellers_title h5 a{
    font-size: 16px;
    color: #000;
    font-weight: 400;
    line-height: 1.5;
}


.product_side_icon_item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hide icon when loading */
.product_side_icon_item.loading i {
    opacity: 0;
}

/* Loader */
.product_side_icon_item.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    border: 2px solid #000;
    border-top: 2px solid transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: spin 0.6s linear infinite;
}

/* FIXED animation */
@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}