/* ============================================================
   TF Wishlist Overlay — Archive Page
   Only touches YITH positioning and icon styling.
   Does NOT modify ul.products grid/float layout.
   ============================================================ */

/* 1. Positioning context on the <li> */
ul.products li.product {
    position: relative;
}

/* 2. Pin the YITH block to top-right of the card */
ul.products li.product .yith-add-to-wishlist-button-block {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

/* 3. Reset YITH wrapper margins */
ul.products li.product .yith-add-to-wishlist-button-block .yith-wcwl-add-to-wishlist {
    margin: 0;
    padding: 0;
}

/* 4. Style the button as a small semi-transparent white chip */
ul.products li.product .yith-wcwl-add-to-wishlist a.add_to_wishlist,
ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a,
ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    border-radius: 3px !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
    padding: 0 !important;
}

ul.products li.product .yith-wcwl-add-to-wishlist a.add_to_wishlist:hover,
ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a:hover,
ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a:hover {
    background: rgba(255, 255, 255, 1) !important;
}

/* 5. Hide all YITH default text, labels and built-in icons */
ul.products li.product .yith-wcwl-add-to-wishlist a.add_to_wishlist span,
ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a span,
ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a span,
ul.products li.product .yith-wcwl-add-to-wishlist i,
ul.products li.product .yith-wcwl-add-to-wishlist svg,
.yith-wcwl-add-to-wishlist-button__label {
    display: none !important;
}

/* 6. Not wishlisted — FA bookmark outline */
ul.products li.product .yith-wcwl-add-to-wishlist a.add_to_wishlist::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 400 !important;
    content: "\f02e" !important;
    font-size: 15px !important;
    color: #1a1a1a !important;
    display: block !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased;
}

/* 7. Wishlisted — FA bookmark solid */
ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse a::before,
ul.products li.product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse a::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    content: "\f02e" !important;
    font-size: 15px !important;
    color: #1a1a1a !important;
    display: block !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased;
}

/* 8. Hide loading/feedback states */
ul.products li.product .yith-wcwl-add-to-wishlist .ajax-loading,
ul.products li.product .yith-wcwl-add-to-wishlist .feedback {
    display: none !important;
}