/* Scoped to enhanced hearts; native YITH remains the no-JS fallback. */
body .yith-wcwl-add-to-wishlist[data-sx-favorite="ready"] > :not(.sx-favorite-toggle) { display:none !important; }
body .yith-wcwl-add-to-wishlist .sx-favorite-toggle { display:inline-flex !important; align-items:center; justify-content:center; position:relative; width:44px; height:44px; min-width:44px; padding:10px; margin:0; border:1px solid #eadfe5; border-radius:50%; background:#fff; color:#ba065f; box-shadow:0 2px 8px #30122208; cursor:pointer; vertical-align:middle; line-height:1; transition:border-color .18s,background .18s; }
body .yith-wcwl-add-to-wishlist .sx-favorite-toggle::before,body .yith-wcwl-add-to-wishlist .sx-favorite-toggle::after { content:none !important; }
body .yith-wcwl-add-to-wishlist .sx-favorite-toggle svg { display:block; width:22px; height:22px; margin:0; fill:none; stroke:currentColor; }
body .yith-wcwl-add-to-wishlist .sx-favorite-toggle[aria-pressed="true"] svg { fill:currentColor; }
body .yith-wcwl-add-to-wishlist .sx-favorite-toggle:hover { border-color:#ba065f; background:#fff5f9; }
body .yith-wcwl-add-to-wishlist .sx-favorite-toggle:focus-visible,body .sx-favorite-header:focus-visible { outline:2px solid #ba065f; outline-offset:3px; }
body .yith-wcwl-add-to-wishlist .sx-favorite-toggle:disabled { opacity:.65; cursor:wait; }
body #masthead .wishlist-box .sx-favorite-header { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-width:54px; min-height:56px; padding:0; text-decoration:none; }
body #masthead .sx-favorite-icon { display:block; position:relative; width:29px; height:29px; color:#ba065f; background:none; }
body #masthead .sx-favorite-icon svg { display:block; width:29px; height:29px; }
body #masthead .sx-favorite-count { position:absolute; top:-5px; right:-8px; display:flex; align-items:center; justify-content:center; min-width:17px; height:17px; padding:0 4px; border-radius:12px; box-sizing:border-box; background:#ba065f; color:#fff; font:600 10px/1 Arial,sans-serif; border:2px solid #fff; }
body #masthead .sx-favorite-count[hidden] { display:none !important; }
body #masthead .sx-favorite-header .my-wishlist { color:#342632; font:12px/1.25 Arial,sans-serif; text-transform:none; }
#sx-favorite-error { position:fixed; z-index:100000; bottom:20px; left:50%; transform:translateX(-50%); max-width:calc(100vw - 32px); width:420px; padding:14px 18px; color:#631238; background:#fff4f8; border:1px solid #ba065f; border-radius:10px; box-shadow:0 4px 24px #30122220; font:14px/1.5 Arial,sans-serif; }
#sx-favorite-error[hidden] { display:none !important; }
@keyframes sx-favorite-pop { 0%,100% {transform:scale(1)} 50% {transform:scale(1.2)} }
.sx-favorite-pop svg { animation:sx-favorite-pop .3s ease-out; }
@media(prefers-reduced-motion:reduce) { .sx-favorite-pop svg {animation:none !important} body .sx-favorite-toggle {transition:none !important} }

/* Single product: same heart over the main photograph, outside the zoom link. */
body.single-product #primary div.product > [data-sx-favorite-gallery="true"] { position:relative; }
body.single-product #primary .sx-product-favorite { position:absolute; top:10px; right:10px; width:44px; height:44px; z-index:1001; }
body.single-product #primary .sx-product-favorite > .yith-wcwl-add-to-wishlist { position:static !important; display:block; float:none; inset:auto !important; width:44px !important; max-width:44px; min-height:44px; height:auto; margin:0 !important; padding:0 !important; line-height:1; }
body.single-product #primary .sx-product-favorite > .yith-wcwl-add-to-wishlist::before { content:none !important; }
body.single-product #primary [data-sx-favorite-gallery="true"] a.yith_expand,
body.single-product #primary [data-sx-favorite-gallery="true"] .woocommerce-product-gallery__trigger { right:64px !important; left:auto !important; top:10px !important; }
/* Mobile header: replace the duplicate search shortcut with direct favorites. */
@media(max-width:1024px) {
 #sx-mobile-header.sx-favorite-mobile-ready #sx-mobile-search-toggle { display:none !important; }
 #sx-mobile-header .sx-mobile-favorite { position:relative; display:flex; align-items:center; justify-content:center; width:44px; min-width:44px; height:44px; padding:0; color:#ba065f; text-decoration:none; }
 #sx-mobile-header .sx-mobile-favorite .my-wishlist { display:none; }
 #sx-mobile-header .sx-favorite-icon { position:relative; display:block; width:26px; height:26px; }
 #sx-mobile-header .sx-favorite-icon svg { width:26px; height:26px; display:block; }
 #sx-mobile-header .sx-favorite-count { position:absolute; right:-7px; top:-6px; display:flex; align-items:center; justify-content:center; min-width:17px; height:17px; padding:0 4px; border-radius:20px; background:#ba065f; color:white; font:600 10px/1 Arial,sans-serif; box-sizing:border-box; }
 #sx-mobile-header .sx-favorite-count[hidden] { display:none; }
 #sx-mobile-header .sx-mobile-favorite:focus-visible { outline:2px solid #ba065f; outline-offset:2px; border-radius:6px; }
}
