/* Save is independent of both product navigation and the WooCommerce cart. */
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) .sts-wish-card > :is(a.button,a.added_to_cart,.wc-block-grid__product-add-to-cart,.wc-block-components-product-button,.wp-block-woocommerce-product-button) {
    display: none !important;
}
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) .sts-wish-card > .sts-wish-heart {
    position: absolute !important;
    inset: 4px 4px auto auto !important;
    z-index: 5;
    display: grid !important;
    place-items: center;
    width: 44px !important;
    height: 44px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: #242020 !important;
    background: #fff !important;
    box-shadow: 0 1px 4px #23191621 !important;
    cursor: pointer;
    touch-action: manipulation;
}
:root .sts-wish-heart svg, :root .sts-wish-open svg, :root .sts-wish-close svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
:root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) .sts-wish-card > .sts-wish-heart[aria-pressed="true"] { color: #b62c26 !important; }
:root .sts-wish-heart[aria-pressed="true"] svg { fill: currentColor; }
.sts-wish-tools { display: flex; justify-content: flex-end; margin: 0 0 .55rem; }
:root .sts-wish-open { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 4px; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.25; color: #242020 !important; text-decoration: none !important; }
:root .sts-wish-open svg { width: 19px; height: 19px; }
.sts-wish-open-count { font-variant-numeric: tabular-nums; }
:root :is(.sts-wish-heart,.sts-wish-open,.sts-wish-close,.sts-wish-remove,.sts-wish-product):focus-visible { outline: 2px solid #a42320 !important; outline-offset: 2px; }
:root dialog.sts-wish-dialog {
    position: fixed;
    inset: 0;
    width: min(30rem, calc(100% - 24px));
    height: fit-content;
    max-height: min(85vh, 42rem);
    max-height: min(85dvh, 42rem);
    margin: auto;
    padding: 0;
    border: 1px solid #e7e3df;
    border-radius: 14px;
    background: #fff;
    color: #242020;
    box-shadow: 0 14px 60px #241c193b;
    overflow: auto;
    overscroll-behavior: contain;
    font: inherit;
    text-align: left;
}
:root dialog.sts-wish-dialog:not([open]) { display: none; }
:root dialog.sts-wish-dialog::backdrop { background: #211c1959; }
:root .sts-wish-heading { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 10px 20px; border-bottom: 1px solid #e7e3df; background: #fff; }
:root .sts-wish-heading h2 { margin: 0; color: inherit; font-family: inherit; font-weight: 700; font-size: 22px; line-height: 1.3; }
:root .sts-wish-heading .sts-wish-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; padding: 0; background: #f4f2f0; color: #242020; cursor: pointer; }
:root .sts-wish-body { padding: 8px 20px 18px; }
:root .sts-wish-body p { margin: 12px 0; font-size: 15px; line-height: 1.45; }
:root .sts-wish-items { margin: 0; padding: 0; list-style: none; }
:root .sts-wish-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 11px 0; margin: 0; border-bottom: 1px solid #e7e3df; }
:root .sts-wish-items li:last-child { border-bottom: 0; }
:root .sts-wish-product { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.32; text-decoration: none !important; color: #242020 !important; overflow-wrap: anywhere; }
:root .sts-wish-product img { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 6px; object-fit: contain; background: #f6f4f2; }
:root .sts-wish-product small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; }
:root .sts-wish-remove { min-height: 44px; padding: 5px; border: 0; background: transparent; color: #585452; font-family: inherit; font-size: 13px; line-height: 1.4; text-transform: none; text-decoration: underline; cursor: pointer; }
:root .sts-wish-feedback { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 480px) {
    :root :is(body.sts-catalog-layout, .sts-pdp-shelves, .sts-card-grid-context) .sts-wish-card > .sts-wish-heart { inset: 2px 2px auto auto !important; }
}

/* Keep saved products and the cart in the same actions group at every breakpoint. */
:root .elementor-location-header .sts-header-wish {
    position: relative;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 4px;
    color: inherit !important;
}
:root .sts-header-wish svg { width: 22px; height: 22px; }
:root .sts-header-wish .sts-wish-open-count {
    display: inline-grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 0 3px;
    border-radius: 10px;
    background: #a92729;
    color: #fff;
    font: 700 10px/1 system-ui, sans-serif;
    box-sizing: border-box;
}
:root .sts-header-wish .sts-wish-open-count[hidden] { display: none; }
html body [data-elementor-id="22"].elementor-location-header [data-id="7e2f3ac"]:has(.sts-header-wish) {
    display: flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
}
html body [data-elementor-id="22"].elementor-location-header [data-id="7e2f3ac"] > .e-con-inner:has(.sts-header-wish) {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: auto !important;
    padding: 0 !important;
}
html body [data-elementor-id="22"].elementor-location-header .sts-header-wish + [data-id="8ce87d3"] {
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
}
@media (max-width: 1024px) {
    :root .sts-header-wish .sts-wish-label { display: none; }
    :root .sts-header-wish .sts-wish-open-count { position: absolute; top: 0; right: 0; }
    html body [data-elementor-id="22"].elementor-location-header [data-id="7e2f3ac"] > .e-con-inner:has(.sts-header-wish) { gap: 0 !important; }
}

/* Personal wishlist page. All product state stays in the shopper's own browser. */
.sts-wishlist-page {width:100%;max-width:1180px;margin:0 auto 3rem;padding:0 clamp(12px,2vw,28px);color:inherit;font-family:inherit;box-sizing:border-box;}
.sts-wishlist-page *, .sts-wishlist-page *::before, .sts-wishlist-page *::after {box-sizing:border-box;}
.sts-wishlist-page .sts-wish-page-count {margin:0 0 16px;color:#625d59;font-size:.94rem;}
.sts-wishlist-page .sts-wish-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 18px;margin:0;padding:0;list-style:none;}
.sts-wishlist-page .sts-wish-tile {position:relative;display:flex;flex-direction:column;align-items:stretch;min-width:0;margin:0;padding:0;color:#25221f;list-style:none;}
:root .sts-wishlist-page .sts-wish-product {display:flex;flex-flow:column nowrap;align-items:stretch;gap:10px;color:inherit!important;text-decoration:none!important;font:inherit;}
.sts-wishlist-page .sts-wish-photo {display:block;width:100%;overflow:hidden;aspect-ratio:1;border-radius:9px;background:#f5f3f0;}
:root .sts-wishlist-page .sts-wish-photo img {display:block;width:100%;height:100%;object-fit:contain;border-radius:0;background:transparent;}
.sts-wishlist-page .sts-wish-product strong {font-family:inherit;font-size:clamp(.91rem,1.25vw,1.05rem);font-weight:600;line-height:1.32;overflow-wrap:anywhere;}
:root .sts-wishlist-page .sts-wish-remove {position:absolute;top:7px;right:7px;display:grid;place-items:center;width:44px;height:44px;min-height:44px;border:1px solid #e8e4df;border-radius:50%;color:#aa302b;background:white;padding:10px;box-shadow:none;}
.sts-wishlist-page .sts-wish-remove svg,.sts-wishlist-page .sts-wish-empty svg {width:21px;height:21px;fill:currentColor;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;}
.sts-wishlist-page .sts-wish-meta {display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 9px;margin:5px 0 12px;}
.sts-wishlist-page .sts-wish-price {font-weight:650;font-variant-numeric:tabular-nums;}
.sts-wishlist-page .sts-wish-stock {font-size:.84rem;color:#625d59;}
:root .sts-wishlist-page .sts-wish-page-cta {display:inline-flex;align-items:center;justify-content:center;align-self:stretch;margin-top:auto;min-height:44px;padding:7px 12px;border:1px solid #97332d;border-radius:6px;background:#a3352f;color:#fff!important;font:600 .91rem/1.24 system-ui,sans-serif;text-align:center;white-space:normal;text-decoration:none;text-transform:none;cursor:pointer;}
:root .sts-wishlist-page .sts-wish-page-cta:hover {background:#832b25;}
:root .sts-wishlist-page .sts-wish-page-secondary {color:#302a26!important;background:white;border-color:#bcb5af;}
:root .sts-wishlist-page .sts-wish-page-secondary:hover {background:#f5f3ef;}
.sts-wishlist-page .sts-wish-cart-add:disabled {opacity:.6;cursor:wait;}
.sts-wishlist-page .sts-wish-page-status:not(:empty) {margin:0 0 16px;padding:12px 15px;border-inline-start:3px solid #ae3b33;background:#faf4ef;color:#272321;}
.sts-wishlist-page .sts-wish-page-status a {color:inherit;font-weight:650;text-decoration:underline;text-underline-offset:3px;}
.sts-wishlist-page .sts-wish-empty {max-width:35rem;margin:clamp(2rem,7vw,5rem) auto;text-align:center;}
.sts-wishlist-page .sts-wish-empty svg {width:32px;height:32px;fill:none;color:#aa302b;}
.sts-wishlist-page .sts-wish-empty h2 {margin:12px 0 5px;font-size:1.45rem;}
.sts-wishlist-page .sts-wish-empty p {margin:0 0 18px;}
.sts-wishlist-page .sts-wish-refresh {padding:.25rem .5rem;border:0;background:none;color:#792925;text-decoration:underline;cursor:pointer;}
:root .sts-wishlist-page :is(a,button):focus-visible {outline:2px solid #842d27!important;outline-offset:3px;}
@media(max-width:970px){.sts-wishlist-page .sts-wish-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:680px){.sts-wishlist-page{padding:0 12px;}.sts-wishlist-page .sts-wish-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px;}}
