/* 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; }
}

/* Native YITH favourites, presented as cards. Preserve original links and events. */
body.sx-favorites-page #secondary-right, body.sx-favorites-page #secondary-left { display:none; }
body.sx-favorites-page #primary { width:100%!important; float:none!important; margin:0!important; padding:0; font-family:Montserrat,Arial,sans-serif; }
body.sx-favorites-page #primary .page-header { margin:24px 0 30px; border:0; }
body.sx-favorites-page #primary .page-title { border:0; padding:0; text-transform:none; }
body.sx-favorites-page #primary .page-title::before,body.sx-favorites-page #primary .page-title::after { content:none; }
body.sx-favorites-page #primary h1 { color:#ba065f; font:500 clamp(28px,3vw,40px)/1.2 Montserrat,Arial,sans-serif; margin:0 0 12px; }
body.sx-favorites-page .sx-favorites-intro { font-size:15px; line-height:1.6; color:#65525e; margin:0; }
body.sx-favorites-page #yith-wcwl-form .wishlist-title-container,
body.sx-favorites-page #yith-wcwl-form .yith-wcwl-share,
body.sx-favorites-page #yith-wcwl-form .wishlist_manage { display:none; }
body.sx-favorites-page #yith-wcwl-form { margin:0; }
body.sx-favorites-page #yith-wcwl-form table.wishlist_table { display:block; width:100%; border:0; margin:0; font-size:15px; }
body.sx-favorites-page #yith-wcwl-form table.wishlist_table thead { display:none; }
body.sx-favorites-page #yith-wcwl-form table.wishlist_table tbody { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px 24px; }
body.sx-favorites-page #yith-wcwl-form table.wishlist_table tr { position:relative; display:flex; flex-direction:column; min-width:0; background:#fff; border:0; }
body.sx-favorites-page #yith-wcwl-form table.wishlist_table td { display:block; width:auto!important; padding:0; border:0; text-align:left; background:transparent; }
body.sx-favorites-page #yith-wcwl-form table.wishlist_table td::before { display:none; }
body.sx-favorites-page #yith-wcwl-form .product-thumbnail { order:0; max-width:none; margin-bottom:14px; }
body.sx-favorites-page #yith-wcwl-form .product-thumbnail a { display:block; width:100%; max-width:none; aspect-ratio:1; border-radius:16px; overflow:hidden; background:#f7f4f5; }
body.sx-favorites-page #yith-wcwl-form .product-thumbnail img { display:block; width:100%; height:100%; max-width:none; object-fit:contain; }
body.sx-favorites-page #yith-wcwl-form .product-name { order:1; margin-bottom:10px; }
body.sx-favorites-page #yith-wcwl-form .product-name a { font:500 15px/1.5 Montserrat,Arial,sans-serif; color:#29232e; text-decoration:none; }
body.sx-favorites-page #yith-wcwl-form .product-price { order:2; margin-top:auto; margin-bottom:8px; font:600 19px/1.4 Montserrat,Arial,sans-serif; color:#29232e; }
body.sx-favorites-page #yith-wcwl-form .product-price small { font-size:11px; font-weight:400; }
body.sx-favorites-page #yith-wcwl-form .product-stock-status { order:3; margin-bottom:12px; font-size:13px; }
body.sx-favorites-page #yith-wcwl-form .product-add-to-cart { order:4; }
body.sx-favorites-page #yith-wcwl-form .product-add-to-cart a { display:flex!important; align-items:center; justify-content:center; min-height:48px; margin:0!important; padding:12px 10px!important; border:1px solid #ba065f!important; border-radius:26px!important; background:#ba065f!important; color:white!important; font:600 15px/1.4 Montserrat,Arial,sans-serif!important; text-decoration:none!important; box-sizing:border-box; }
body.sx-favorites-page #yith-wcwl-form .product-add-to-cart a:hover { background:white!important; color:#ba065f!important; }
body.sx-favorites-page #yith-wcwl-form td.product-remove { position:absolute; top:10px; right:10px; z-index:2; }
body.sx-favorites-page #yith-wcwl-form .product-remove a { display:flex!important; align-items:center; justify-content:center; width:44px!important; height:44px!important; padding:10px; box-sizing:border-box; border-radius:50%; background:#fff!important; color:#ba065f!important; box-shadow:0 2px 8px #00000012; }
body.sx-favorites-page #yith-wcwl-form .product-remove svg { width:22px; height:22px; fill:#ba065f; }
body.sx-favorites-page #yith-wcwl-form .product-remove a:hover svg { fill:none; }
body.sx-favorites-page #yith-wcwl-form tr:has(.wishlist-empty) { grid-column:1/-1; }
body.sx-favorites-page #yith-wcwl-form .wishlist-empty { padding:48px 24px; border-radius:16px; background:#fff2f7; text-align:center; font:400 16px/1.7 Montserrat,Arial,sans-serif; }
body.sx-favorites-page #sx-favorites-continue { display:inline-flex; margin:30px 0; padding:12px 20px; min-height:44px; box-sizing:border-box; align-items:center; border:1px solid #ba065f; border-radius:24px; color:#ba065f; font:500 14px/1.4 Montserrat,Arial,sans-serif; text-decoration:none; }
body.sx-favorites-page #primary a:focus-visible { outline:2px solid #ba065f; outline-offset:4px; }
body.sx-favorites-page #primary .woocommerce-error { font-size:14px; }
@media(max-width:1024px) {
 body.sx-favorites-page #yith-wcwl-form table.wishlist_table tbody { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px 16px; }
}
@media(max-width:767px) {
 body.sx-favorites-page #yith-wcwl-form table.wishlist_table tbody { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 12px; }
 body.sx-favorites-page #yith-wcwl-form .product-name a { font-size:13px; }
 body.sx-favorites-page #yith-wcwl-form .product-add-to-cart a { font-size:12px!important; padding:10px 5px!important; }
 body.sx-favorites-page #yith-wcwl-form .product-price { font-size:17px; }
}
body.sx-favorites-page #primary .post-edit-link { display:none; }

/* Header action belongs to the page, not to the first product. */
body.sx-favorites-page #primary .page-header { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 24px; align-items:center; }
body.sx-favorites-page #primary .page-title { grid-column:1; grid-row:1; }
body.sx-favorites-page .sx-favorites-intro { grid-column:1; grid-row:2; }
body.sx-favorites-page #primary #sx-favorites-continue { grid-column:2; grid-row:1 / 3; margin:0; border-radius:10px; background:#fff; font-weight:600; }
body.sx-favorites-page #primary #sx-favorites-continue:hover { background:#fff2f7; }
body.sx-favorites-empty #primary #sx-favorites-continue { display:table; margin:24px auto 36px; background:#ba065f; color:#fff; }

/* Support YITH's real mobile list, including AJAX replacements. */
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px 14px; margin:0; padding:0; width:100%; list-style:none; border:0; }
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile > li { display:flex; flex-direction:column; position:relative; min-width:0; width:auto; margin:0; padding:0; border:0; float:none; }
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile .item-wrapper,
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile .item-details,
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile .additional-info-wrapper { display:contents; }
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile .product-thumbnail { width:100%!important; max-width:none!important; float:none; margin:0 0 12px; }
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile .product-name { margin:0 0 10px; text-align:left; }
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile table { display:block; width:100%!important; margin:0 0 10px; padding:0; border:0; background:none; }
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile table tbody,
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile table tr,
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile table td.value { display:block; width:100%!important; margin:0; padding:0; border:0; background:none; text-align:left; }
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile table td.label,
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile table td::before { display:none; }
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile table.item-details-table { order:2; margin-top:auto; font:600 17px/1.4 Montserrat,Arial,sans-serif; }
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile table.item-details-table small { font-size:10px; font-weight:400; }
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile table.additional-info { order:3; font-size:12px; }
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile .product-remove { position:absolute; top:8px; right:8px; z-index:2; margin:0; }
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile > .wishlist-empty { grid-column:1/-1; }
@media(max-width:767px) {
 body.sx-favorites-page #primary { padding:0 14px; box-sizing:border-box; min-width:0; }
 body.sx-favorites-page #primary .page-header { grid-template-columns:minmax(0,1fr); gap:10px; margin:22px 0 26px; }
 body.sx-favorites-page #primary #sx-favorites-continue { grid-column:1; grid-row:3; justify-self:start; min-height:44px; padding:11px 16px; font-size:13px; }
 body.sx-favorites-page .sx-favorites-intro { font-size:14px; }
 body.sx-favorites-page #yith-wcwl-form .product-thumbnail a { position:relative; }
 body.sx-favorites-page #yith-wcwl-form .product-thumbnail img { position:absolute; inset:0; }
 body.sx-favorites-page #yith-wcwl-form .product-name a { overflow-wrap:anywhere; }
}
body.sx-favorites-page .woocommerce-breadcrumb,
body.sx-favorites-page .breadcrumb,
body.sx-favorites-page .breadcrumbs { background:transparent!important; border:0!important; box-shadow:none!important; padding:10px 0!important; font:400 12px/1.5 Montserrat,Arial,sans-serif; color:#756b71; }
body.sx-favorites-page #yith-wcwl-form ul.wishlist_table.mobile .product-name h3 { margin:0; padding:0; line-height:1.5; }

/* Decorative hearts reuse the site's existing icon, without an image download. */
body.sx-favorites-page #primary h1 { display:flex; align-items:center; gap:12px; }
body.sx-favorites-page .sx-favorites-title-heart { display:inline-flex; flex:0 0 auto; width:28px; height:28px; color:#ba065f; }
body.sx-favorites-page .sx-favorites-title-heart svg { width:100%; height:100%; fill:none; stroke-width:1.5; }
body.sx-favorites-page #yith-wcwl-form .sx-favorites-empty-heart { display:flex; align-items:center; justify-content:center; width:88px; height:88px; margin:0 auto 20px; border-radius:50%; background:#fff; color:#ba065f; }
body.sx-favorites-page .sx-favorites-empty-heart svg { width:44px; height:44px; fill:none; stroke-width:1.3; }
body.sx-favorites-page .wishlist-empty > span:last-child { display:block; max-width:440px; margin:0 auto; }
@media(max-width:767px) {
 body.sx-favorites-page .sx-favorites-title-heart { width:24px; height:24px; }
}

/* Keep the native keyboard shortcut available, hidden until focused. */
body a.skip-link.screen-reader-text:not(:focus) {
 position:absolute!important; width:1px!important; height:1px!important;
 padding:0!important; margin:-1px!important; overflow:hidden!important;
 clip:rect(0,0,0,0)!important; clip-path:inset(50%)!important;
 border:0!important; white-space:nowrap!important;
}
body a.skip-link.screen-reader-text:focus {
 position:fixed!important; top:12px!important; left:12px!important; right:auto!important;
 z-index:100001!important; display:block!important; width:auto!important; height:auto!important;
 max-width:calc(100vw - 24px); box-sizing:border-box;
 clip:auto!important; clip-path:none!important; overflow:visible!important;
 margin:0!important; padding:12px 18px!important; min-height:44px;
 background:#ba065f!important; color:#fff!important;
 border:1px solid #ba065f!important; border-radius:8px;
 font:600 14px/1.4 Montserrat,Arial,sans-serif!important;
 text-decoration:none!important; outline:2px solid #ba065f!important; outline-offset:3px;
 box-shadow:0 4px 16px rgba(60,10,35,.16)!important;
}
body.admin-bar a.skip-link.screen-reader-text:focus { top:44px!important; }
@media(max-width:782px) { body.admin-bar a.skip-link.screen-reader-text:focus { top:58px!important; } }

/* The theme decorates every span in .page-title; exclude the heart emblem. */
body.sx-favorites-page #primary .page-title .sx-favorites-title-heart::before,
body.sx-favorites-page #primary .page-title .sx-favorites-title-heart::after {
 content:none!important; display:none!important;
}

/* Product content owns its stacking context: gallery controls stay below navigation.
   No overflow clipping: native magnifier may still extend across the summary. */
body.single-product #primary { isolation:isolate; }
