/**
 * ECP Product Card styles — Pixel-for-pixel port of ecp-category-v-a.html prototype.
 * Scoped under body.ecp-va-active / body.ecp-vssv-active so collection + individual archives share chrome.
 * Cache-bust 1.5.5: .card-add-btn.is-added white check SVG styles
 */

/* ── Products Grid (WC's ul.products) ─────────────────────────────────── */

body.ecp-va-active.woocommerce ul.products,
body.ecp-vssv-active.woocommerce ul.products,
body.ecp-va-active .woocommerce ul.products,
body.ecp-vssv-active .woocommerce ul.products,
body.ecp-va-active.woocommerce-page ul.products,
body.ecp-vssv-active.woocommerce-page ul.products,
body.ecp-va-active .woocommerce-page ul.products,
body.ecp-vssv-active .woocommerce-page ul.products,
body.ecp-va-active .elementor-wc-products ul.products,
body.ecp-vssv-active .elementor-wc-products ul.products,
.elementor-179073 .elementor-element-f792c72.elementor-wc-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    /* Kill WPVibe preview Tailwind `.columns-4 { columns:4 }` colliding with WC columns-N */
    columns: auto !important;
    column-count: auto !important;
    column-width: auto !important;
    align-items: stretch;
    /* Beat Elementor widget grid-column-gap:60px — tighter equal gutters, larger thumbs */
    gap: 28px 18px !important;
    grid-row-gap: 28px !important;
    grid-column-gap: 18px !important;
    column-gap: 18px !important;
    row-gap: 28px !important;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 30px 60px;
    list-style: none;
}

/* WooCommerce uses class columns-N for product count; WPVibe preview injects Tailwind
   `.columns-4 { columns:4 }` which enables CSS multi-column and fragments the grid.
   IMPORTANT: `.woocommerce.columns-N` is a WRAPPER around `ul.products` + BeRocket LMP.
   Never set display:grid / grid-template-columns on that wrapper — it turns the product
   list and Load More into skinny sibling columns (~1/4 width) on every viewport. */
.woocommerce.columns-4,
.woocommerce.columns-3,
.woocommerce.columns-2,
.woocommerce.columns-5,
.woocommerce.columns-6 {
    display: block !important;
    grid-template-columns: none !important;
    columns: auto !important;
    column-count: auto !important;
    column-width: auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Grid belongs only on the product UL (and wishlist UL), never the WC columns wrapper */
ul.products.columns-4,
ul.products.columns-3,
ul.products.columns-2,
ul.products.columns-5,
ul.products.columns-6,
ul.products.elementor-grid,
body.ecp-wishlist-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    columns: auto !important;
    column-count: auto !important;
    column-width: auto !important;
    align-items: stretch !important;
    gap: 28px 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* Reset WooCommerce/Hello Elementor default LI padding + width */
body.ecp-va-active.woocommerce ul.products li.product,
body.ecp-vssv-active.woocommerce ul.products li.product,
body.ecp-va-active .woocommerce ul.products li.product,
body.ecp-vssv-active .woocommerce ul.products li.product,
body.ecp-va-active.woocommerce-page ul.products li.product,
body.ecp-vssv-active.woocommerce-page ul.products li.product,
body.ecp-va-active .woocommerce-page ul.products li.product,
body.ecp-vssv-active .woocommerce-page ul.products li.product,
body.ecp-va-active ul.products li.product,
body.ecp-vssv-active ul.products li.product,
body.ecp-va-active ul.products .product-card,
body.ecp-vssv-active ul.products .product-card {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    list-style: none !important;
    box-sizing: border-box !important;
}

/* Hide WBW Product Filter's ghost span that steals a grid cell */
body.ecp-va-active.woocommerce ul.products > .wpfHidden,
body.ecp-vssv-active.woocommerce ul.products > .wpfHidden,
body.ecp-va-active .woocommerce ul.products > .wpfHidden,
body.ecp-vssv-active .woocommerce ul.products > .wpfHidden,
body.ecp-va-active.woocommerce-page ul.products > .wpfHidden,
body.ecp-vssv-active.woocommerce-page ul.products > .wpfHidden,
body.ecp-va-active .woocommerce-page ul.products > .wpfHidden,
body.ecp-vssv-active .woocommerce-page ul.products > .wpfHidden {
    display: none !important;
}

/* Kill WooCommerce's clearfix pseudo-elements that eat grid cells */
body.ecp-va-active.woocommerce ul.products::before,
body.ecp-vssv-active.woocommerce ul.products::before,
body.ecp-va-active.woocommerce ul.products::after,
body.ecp-vssv-active.woocommerce ul.products::after,
body.ecp-va-active .woocommerce ul.products::before,
body.ecp-vssv-active .woocommerce ul.products::before,
body.ecp-va-active .woocommerce ul.products::after,
body.ecp-vssv-active .woocommerce ul.products::after,
body.ecp-va-active.woocommerce-page ul.products::before,
body.ecp-vssv-active.woocommerce-page ul.products::before,
body.ecp-va-active.woocommerce-page ul.products::after,
body.ecp-vssv-active.woocommerce-page ul.products::after,
body.ecp-va-active .woocommerce-page ul.products::before,
body.ecp-vssv-active .woocommerce-page ul.products::before,
body.ecp-va-active .woocommerce-page ul.products::after,
body.ecp-vssv-active .woocommerce-page ul.products::after,
body.ecp-va-active.woocommerce ul.products li.product::before,
body.ecp-vssv-active.woocommerce ul.products li.product::before,
body.ecp-va-active.woocommerce ul.products li.product::after,
body.ecp-vssv-active.woocommerce ul.products li.product::after,
body.ecp-va-active .woocommerce ul.products li.product::before,
body.ecp-vssv-active .woocommerce ul.products li.product::before,
body.ecp-va-active .woocommerce ul.products li.product::after,
body.ecp-vssv-active .woocommerce ul.products li.product::after {
    content: none !important;
    display: none !important;
}

/* Hide WC's default title/price/rating that some themes force-render */
body.ecp-va-active.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
body.ecp-vssv-active.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
body.ecp-va-active .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
body.ecp-vssv-active .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
body.ecp-va-active.woocommerce ul.products li.product > .price,
body.ecp-vssv-active.woocommerce ul.products li.product > .price,
body.ecp-va-active .woocommerce ul.products li.product > .price,
body.ecp-vssv-active .woocommerce ul.products li.product > .price,
body.ecp-va-active.woocommerce ul.products li.product > .star-rating,
body.ecp-vssv-active.woocommerce ul.products li.product > .star-rating,
body.ecp-va-active .woocommerce ul.products li.product > .star-rating,
body.ecp-vssv-active .woocommerce ul.products li.product > .star-rating,
body.ecp-va-active.woocommerce ul.products li.product > .button,
body.ecp-vssv-active.woocommerce ul.products li.product > .button,
body.ecp-va-active .woocommerce ul.products li.product > .button,
body.ecp-vssv-active .woocommerce ul.products li.product > .button {
    display: none !important;
}

/* ── Product Card — Variation A (verbatim from prototype) ─────────────── */

/* Beat Elementor wc-archive-products: li.product { text-align:center } + --align-center */
body.ecp-va-active .elementor-wc-products ul.products li.product,
body.ecp-vssv-active .elementor-wc-products ul.products li.product,
body.ecp-va-active.woocommerce ul.products li.product,
body.ecp-vssv-active.woocommerce ul.products li.product,
body.ecp-va-active .woocommerce ul.products li.product,
body.ecp-vssv-active .woocommerce ul.products li.product,
.elementor-179073 .elementor-element-f792c72.elementor-wc-products ul.products li.product {
    text-align: left !important;
}

body.ecp-va-active .product-card,
body.ecp-vssv-active .product-card {
    text-align: left !important;
    padding-bottom: 8px;
    align-self: stretch;
    font-family: 'Lato', sans-serif;
    color: #333;
    position: relative;
}

/* Sold-out: badge appears + quick-add hides. No fade or grayscale on the image. */
body.ecp-va-active .product-card.is-sold-out .card-add-btn,
body.ecp-vssv-active .product-card.is-sold-out .card-add-btn { display: none !important; }

/* Image wrap — square via aspect-ratio, transparent bg so any sub-pixel gap doesn't show as a gray strip */
body.ecp-va-active .card-img-wrap,
body.ecp-vssv-active .card-img-wrap {
    position: relative;
    overflow: hidden;
    background: transparent;
    margin-bottom: 11px;
    aspect-ratio: 1 / 1;
    width: 100%;
    display: block;
    line-height: 0;
    font-size: 0;
}
body.ecp-va-active .card-img-link,
body.ecp-vssv-active .card-img-link {
    display: block !important;
    line-height: 0 !important;
    font-size: 0 !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}
body.ecp-va-active .card-img-wrap img,
body.ecp-vssv-active .card-img-wrap img,
body.ecp-va-active .card-main-img,
body.ecp-vssv-active .card-main-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
    vertical-align: bottom !important;
    transition: transform 0.35s ease !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.ecp-va-active .product-card:hover .card-img-wrap img,
body.ecp-vssv-active .product-card:hover .card-img-wrap img { transform: scale(1.04) !important; }

/* Sold-out badge */
body.ecp-va-active .card-sold-out-badge,
body.ecp-vssv-active .card-sold-out-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: #2a3a52;
    color: #fff;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 3px;
    z-index: 4;
    font-family: 'Lato', sans-serif;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Archive hearts — heart is rightmost on the name/price row (.card-name-price). */

/* Wishlist — YITH v4 renders an async block inside .card-wishlist.
   Paint our own heart via ::before (same pattern as PDP). Hide YITH chrome. */
body.ecp-va-active .card-wishlist,
body.ecp-vssv-active .card-wishlist {
    position: relative;
    top: auto; right: auto;
    z-index: 2;
    width: 28px; height: 28px;
    flex-shrink: 0;
    line-height: 0;
    cursor: pointer;
    margin-left: 4px;
}
/* Outline heart over product image */
body.ecp-va-active .card-wishlist::before,
body.ecp-vssv-active .card-wishlist::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a3a52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") no-repeat center / contain;
    filter: none;
    pointer-events: none;
    z-index: 1;
    transition: background 0.15s;
}
/* Filled navy heart when wishlisted (JS .is-wishlisted + YITH v4 --added / classic fallbacks) */
body.ecp-va-active .card-wishlist.is-wishlisted::before,
body.ecp-vssv-active .card-wishlist.is-wishlisted::before,
body.ecp-va-active .card-wishlist:has(.yith-wcwl-add-to-wishlist-button--added)::before,
body.ecp-vssv-active .card-wishlist:has(.yith-wcwl-add-to-wishlist-button--added)::before,
body.ecp-va-active .card-wishlist:has(.yith-wcwl-wishlistaddedbrowse)::before,
body.ecp-vssv-active .card-wishlist:has(.yith-wcwl-wishlistaddedbrowse)::before,
body.ecp-va-active .card-wishlist:has(.yith-wcwl-wishlistexistsbrowse)::before,
body.ecp-vssv-active .card-wishlist:has(.yith-wcwl-wishlistexistsbrowse)::before,
body.ecp-va-active .card-wishlist:has(.wishlist-added)::before,
body.ecp-vssv-active .card-wishlist:has(.wishlist-added)::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232a3a52'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") no-repeat center / contain;
    filter: none;
}
/* After category remove-by-parent: never show filled via leftover YITH :has() markers */
body.ecp-va-active .card-wishlist[data-ecp-wl-cleared]::before,
body.ecp-vssv-active .card-wishlist[data-ecp-wl-cleared]::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a3a52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") no-repeat center / contain;
    filter: none;
}
/* Keep YITH clickable but invisible — our ::before is the visual */
body.ecp-va-active .card-wishlist .yith-wcwl-add-to-wishlist,
body.ecp-vssv-active .card-wishlist .yith-wcwl-add-to-wishlist,
body.ecp-va-active .card-wishlist .yith-add-to-wishlist-button-block,
body.ecp-vssv-active .card-wishlist .yith-add-to-wishlist-button-block,
body.ecp-va-active .card-wishlist .yith-wcwl-add-button,
body.ecp-vssv-active .card-wishlist .yith-wcwl-add-button,
body.ecp-va-active .card-wishlist .yith-wcwl-wishlistaddedbrowse,
body.ecp-vssv-active .card-wishlist .yith-wcwl-wishlistaddedbrowse,
body.ecp-va-active .card-wishlist .yith-wcwl-wishlistexistsbrowse,
body.ecp-vssv-active .card-wishlist .yith-wcwl-wishlistexistsbrowse,
body.ecp-va-active .card-wishlist .yith-wcwl-add-to-wishlist-button,
body.ecp-vssv-active .card-wishlist .yith-wcwl-add-to-wishlist-button,
body.ecp-va-active .card-wishlist .yith-wcwl-add-to-wishlist-button__wrapper,
body.ecp-vssv-active .card-wishlist .yith-wcwl-add-to-wishlist-button__wrapper,
body.ecp-va-active .card-wishlist a,
body.ecp-vssv-active .card-wishlist a,
body.ecp-va-active .card-wishlist button,
body.ecp-vssv-active .card-wishlist button {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px;
    overflow: hidden !important;
    position: relative;
    z-index: 2;
    cursor: pointer !important;
    text-decoration: none !important;
}
body.ecp-va-active .card-wishlist svg,
body.ecp-vssv-active .card-wishlist svg,
body.ecp-va-active .card-wishlist img,
body.ecp-vssv-active .card-wishlist img,
body.ecp-va-active .card-wishlist .yith-wcwl-icon,
body.ecp-vssv-active .card-wishlist .yith-wcwl-icon,
body.ecp-va-active .card-wishlist .yith-wcwl-icon-svg,
body.ecp-vssv-active .card-wishlist .yith-wcwl-icon-svg,
body.ecp-va-active .card-wishlist .yith-wcwl-icon-svg__wrapper,
body.ecp-vssv-active .card-wishlist .yith-wcwl-icon-svg__wrapper,
body.ecp-va-active .card-wishlist .yith-wcwl-label,
body.ecp-vssv-active .card-wishlist .yith-wcwl-label,
body.ecp-va-active .card-wishlist .yith-wcwl-icon-label-wrapper,
body.ecp-vssv-active .card-wishlist .yith-wcwl-icon-label-wrapper,
body.ecp-va-active .card-wishlist .yith-wcwl-add-to-wishlist__counter,
body.ecp-vssv-active .card-wishlist .yith-wcwl-add-to-wishlist__counter,
body.ecp-va-active .card-wishlist .yith-wcwl-tooltip,
body.ecp-vssv-active .card-wishlist .yith-wcwl-tooltip {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Info section */
body.ecp-va-active .card-info,
body.ecp-vssv-active .card-info { position: relative; }

body.ecp-va-active .card-name-price,
body.ecp-vssv-active .card-name-price {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 9px;
    padding-right: 0;
}
body.ecp-va-active .card-name-price .card-price,
body.ecp-vssv-active .card-name-price .card-price {
    flex-shrink: 0;
}

body.ecp-va-active .card-name,
body.ecp-vssv-active .card-name {
    font-family: 'Merriweather', serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #2a3a52 !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
    text-decoration: none !important;
    display: block !important;
    flex: 1 !important;
    text-transform: none !important;
    text-align: left !important;
}
body.ecp-va-active .card-name:hover,
body.ecp-vssv-active .card-name:hover { color: #1a2a3a !important; }

body.ecp-va-active .card-price,
body.ecp-vssv-active .card-price {
    font-size: 13px !important;
    color: #555 !important;
    flex-shrink: 0 !important;
    padding-top: 1px !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}
body.ecp-va-active .card-price .woocommerce-Price-amount,
body.ecp-vssv-active .card-price .woocommerce-Price-amount,
body.ecp-va-active .card-price .woocommerce-Price-currencySymbol,
body.ecp-vssv-active .card-price .woocommerce-Price-currencySymbol,
body.ecp-va-active .card-price ins,
body.ecp-vssv-active .card-price ins,
body.ecp-va-active .card-price del,
body.ecp-vssv-active .card-price del,
body.ecp-va-active .card-price bdi,
body.ecp-vssv-active .card-price bdi {
    font-size: inherit !important;
    color: inherit !important;
    font-weight: inherit !important;
    text-decoration: inherit !important;
}
body.ecp-va-active .card-price ins,
body.ecp-vssv-active .card-price ins { text-decoration: none !important; }
body.ecp-va-active .card-price del,
body.ecp-vssv-active .card-price del { opacity: 0.55 !important; margin-right: 4px !important; }
body.ecp-va-active .card-price .screen-reader-text,
body.ecp-vssv-active .card-price .screen-reader-text { display: none !important; }

/* Color label */
body.ecp-va-active .color-label,
body.ecp-vssv-active .color-label {
    font-size: 11.5px;
    color: #888;
    margin: 0 0 5px;
    min-height: 15px;
    font-family: 'Lato', sans-serif;
    line-height: 1.3;
    text-align: left !important;
}

body.ecp-va-active .card-info,
body.ecp-vssv-active .card-info {
    text-align: left !important;
}

/* Swatch row + individual swatches (prototype markup: .card-swatch) */
body.ecp-va-active .swatch-row,
body.ecp-vssv-active .swatch-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, 20px) !important;
    max-width: calc(11 * 20px + 10 * 5px) !important;
    gap: 5px !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    list-style: none !important;
    align-content: start !important;
    width: 100% !important;
    min-height: 20px;
}
body.ecp-va-active .swatch-row .card-swatch,
body.ecp-vssv-active .swatch-row .card-swatch,
body.ecp-va-active .card-swatch,
body.ecp-vssv-active .card-swatch {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    border-radius: 50% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
    cursor: pointer !important;
    border: 1.5px solid #ddd !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    box-sizing: border-box !important;
    flex: none !important;
    transform: none !important;
}
body.ecp-va-active .card-swatch.active,
body.ecp-vssv-active .card-swatch.active {
    border-color: transparent !important;
    box-shadow: 0 0 0 2px #2a3a52 !important;
    transform: none !important;
}
body.ecp-va-active .card-swatch:hover:not(.active),
body.ecp-vssv-active .card-swatch:hover:not(.active) {
    border-color: #888 !important;
    transform: none !important;
}
body.ecp-va-active .card-swatch[data-in-stock="0"],
body.ecp-vssv-active .card-swatch[data-in-stock="0"] {
    opacity: 0.5;
}


/* Quick-add shopping-bag button — hover to reveal (like old +); always visible on touch */
body.ecp-va-active .card-add-btn,
body.ecp-vssv-active .card-add-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    top: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #2a3a52;
    border: none;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s, background 0.15s;
    font-family: 'Lato', sans-serif;
    text-decoration: none;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    z-index: 4;
}
body.ecp-va-active .card-add-btn svg,
body.ecp-vssv-active .card-add-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}
body.ecp-va-active .product-card:hover .card-add-btn,
body.ecp-vssv-active .product-card:hover .card-add-btn { opacity: 1; }
body.ecp-va-active .card-add-btn:hover,
body.ecp-vssv-active .card-add-btn:hover {
    background: #fff;
    transform: scale(1.06);
    box-shadow: 0 3px 12px rgba(0,0,0,0.22);
}
body.ecp-va-active .card-add-btn.is-added,
body.ecp-vssv-active .card-add-btn.is-added {
    background: #31856c;
    color: #fff;
    opacity: 1;
}
body.ecp-va-active .card-add-btn.is-added .card-add-btn__check,
body.ecp-vssv-active .card-add-btn.is-added .card-add-btn__check {
    display: block;
    width: 18px;
    height: 18px;
}
body.ecp-va-active .card-add-btn.is-added .card-add-btn__icon,
body.ecp-vssv-active .card-add-btn.is-added .card-add-btn__icon {
    display: none;
}
body.ecp-va-active .card-add-btn.is-loading,
body.ecp-vssv-active .card-add-btn.is-loading { opacity: 0.6; cursor: wait; }
body.ecp-va-active .card-add-btn.is-disabled,
body.ecp-vssv-active .card-add-btn.is-disabled { opacity: 0.4; cursor: not-allowed; }

/* Touch / no-hover devices: keep bag visible (can't hover) */
@media (hover: none) {
    body.ecp-va-active .card-add-btn,
    body.ecp-vssv-active .card-add-btn {
        opacity: 1;
    }
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    body.ecp-va-active .woocommerce.columns-4,
    body.ecp-va-active .woocommerce.columns-3,
    body.ecp-vssv-active .woocommerce.columns-4,
    body.ecp-vssv-active .woocommerce.columns-3 {
        display: block !important;
        grid-template-columns: none !important;
    }

    body.ecp-va-active.woocommerce ul.products,
    body.ecp-vssv-active.woocommerce ul.products,
    body.ecp-va-active .woocommerce ul.products,
    body.ecp-vssv-active .woocommerce ul.products,
    body.ecp-va-active.woocommerce-page ul.products,
    body.ecp-vssv-active.woocommerce-page ul.products,
    body.ecp-va-active .woocommerce-page ul.products,
    body.ecp-vssv-active .woocommerce-page ul.products,
    body.ecp-va-active .elementor-wc-products ul.products,
    body.ecp-vssv-active .elementor-wc-products ul.products,
    body.ecp-va-active ul.products.columns-4,
    body.ecp-vssv-active ul.products.columns-4,
    body.ecp-va-active ul.products.elementor-grid,
    body.ecp-vssv-active ul.products.elementor-grid,
    .elementor-179073 .elementor-element-f792c72.elementor-wc-products ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 28px 16px !important;
        grid-row-gap: 28px !important;
        grid-column-gap: 16px !important;
        columns: auto !important;
        column-count: auto !important;
        column-width: auto !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    /* Wrapper must stay block so UL + BeRocket LMP stack full-width (not 4-col siblings) */
    body.ecp-va-active .woocommerce.columns-4,
    body.ecp-va-active .woocommerce.columns-3,
    body.ecp-va-active .woocommerce.columns-2,
    body.ecp-vssv-active .woocommerce.columns-4,
    body.ecp-vssv-active .woocommerce.columns-3,
    body.ecp-vssv-active .woocommerce.columns-2,
    body.ecp-va-active .elementor-wc-products .woocommerce,
    body.ecp-vssv-active .elementor-wc-products .woocommerce {
        display: block !important;
        grid-template-columns: none !important;
        columns: auto !important;
        column-count: auto !important;
        column-width: auto !important;
        width: 100% !important;
        max-width: none !important;
    }

    /* 2-col mobile — beat global columns-N 4-col + Elementor archive widget */
    body.ecp-va-active.woocommerce ul.products,
    body.ecp-vssv-active.woocommerce ul.products,
    body.ecp-va-active .woocommerce ul.products,
    body.ecp-vssv-active .woocommerce ul.products,
    body.ecp-va-active.woocommerce-page ul.products,
    body.ecp-vssv-active.woocommerce-page ul.products,
    body.ecp-va-active .woocommerce-page ul.products,
    body.ecp-vssv-active .woocommerce-page ul.products,
    body.ecp-va-active .elementor-wc-products ul.products,
    body.ecp-vssv-active .elementor-wc-products ul.products,
    body.ecp-va-active ul.products.columns-4,
    body.ecp-vssv-active ul.products.columns-4,
    body.ecp-va-active ul.products.columns-3,
    body.ecp-vssv-active ul.products.columns-3,
    body.ecp-va-active ul.products.elementor-grid,
    body.ecp-vssv-active ul.products.elementor-grid,
    body.ecp-va-active ul.products.elementor-grid.columns-4,
    body.ecp-vssv-active ul.products.elementor-grid.columns-4,
    .elementor-179073 .elementor-element-f792c72.elementor-wc-products ul.products,
    body.ecp-va-active .elementor-179073 .elementor-element-f792c72.elementor-wc-products ul.products,
    body.ecp-vssv-active .elementor-179073 .elementor-element-f792c72.elementor-wc-products ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        columns: auto !important;
        column-count: auto !important;
        column-width: auto !important;
        gap: 28px 12px !important;
        grid-row-gap: 28px !important;
        grid-column-gap: 12px !important;
        column-gap: 12px !important;
        row-gap: 28px !important;
        padding: 10px 12px 40px !important;
        margin-left: -16px;
        margin-right: -16px;
        max-width: none !important;
        width: auto !important;
        box-sizing: border-box !important;
    }

    /* BeRocket Load More — full width under the grid, never a grid sibling track.
       Do NOT force display — BeRocket toggles visibility via .show()/.hide().
       display:block !important previously overrode hide at end of archive. */
    body.ecp-va-active .lmp_load_more_button,
    body.ecp-vssv-active .lmp_load_more_button,
    body.ecp-va-active .lmp_products_loading,
    body.ecp-vssv-active .lmp_products_loading {
        width: 100% !important;
        max-width: 100% !important;
        clear: both !important;
        float: none !important;
        margin: 16px 0 24px !important;
        grid-column: 1 / -1 !important;
        position: relative !important;
        height: auto !important;
        min-height: 0 !important;
    }
    /* Exhausted / no next page — beat any leftover inline show */
    body.ecp-va-active .lmp_load_more_button.ecp-lmp-exhausted,
    body.ecp-vssv-active .lmp_load_more_button.ecp-lmp-exhausted,
    .lmp_load_more_button.ecp-lmp-exhausted {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    body.ecp-va-active .card-add-btn,
body.ecp-vssv-active .card-add-btn {
        opacity: 1;
        right: 8px !important;
        bottom: 8px !important;
        z-index: 4;
    }
    body.ecp-va-active .card-info,
body.ecp-vssv-active .card-info { padding: 0 2px; overflow: hidden; }
    body.ecp-va-active .card-name,
body.ecp-vssv-active .card-name {
        font-size: 14px !important;
        line-height: 1.25 !important;
    }
    body.ecp-va-active .swatch-row,
body.ecp-vssv-active .swatch-row {
        grid-template-columns: repeat(auto-fill, 18px) !important;
        gap: 6px !important;
    }

    /* Features And Facts — force full-viewport width on mobile */
    body.ecp-va-active .elementor-element-c1000005,
body.ecp-vssv-active .elementor-element-c1000005 {
        margin-left: -16px !important;
        margin-right: -16px !important;
        width: auto !important;
        max-width: none !important;
    }
}


@media (max-width: 480px) {
    body.ecp-va-active.woocommerce ul.products,
    body.ecp-vssv-active.woocommerce ul.products,
    body.ecp-va-active .woocommerce ul.products,
    body.ecp-vssv-active .woocommerce ul.products,
    body.ecp-va-active.woocommerce-page ul.products,
    body.ecp-vssv-active.woocommerce-page ul.products,
    body.ecp-va-active .woocommerce-page ul.products,
    body.ecp-vssv-active .woocommerce-page ul.products,
    body.ecp-va-active .elementor-wc-products ul.products,
    body.ecp-vssv-active .elementor-wc-products ul.products,
    body.ecp-va-active ul.products.columns-4,
    body.ecp-vssv-active ul.products.columns-4,
    body.ecp-va-active ul.products.elementor-grid,
    body.ecp-vssv-active ul.products.elementor-grid,
    body.ecp-va-active ul.products.elementor-grid.columns-4,
    body.ecp-vssv-active ul.products.elementor-grid.columns-4,
    .elementor-179073 .elementor-element-f792c72.elementor-wc-products ul.products,
    body.ecp-va-active .elementor-179073 .elementor-element-f792c72.elementor-wc-products ul.products,
    body.ecp-vssv-active .elementor-179073 .elementor-element-f792c72.elementor-wc-products ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        columns: auto !important;
        column-count: auto !important;
        column-width: auto !important;
        gap: 24px 8px !important;
        grid-column-gap: 8px !important;
        padding: 10px 8px 32px !important;
        margin-left: -16px;
        margin-right: -16px;
        width: auto !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }
}


/* Kill residual horizontal overflow from archive full-bleeds (white right-edge sliver on mobile) */
html:has(body.ecp-va-active),
html:has(body.ecp-vssv-active) {
    overflow-x: clip;
}


/* Category heart: do not let YITH "browse wishlist" navigate — JS owns toggle */
body.ecp-va-active .card-wishlist .yith-wcwl-wishlistaddedbrowse a,
body.ecp-vssv-active .card-wishlist .yith-wcwl-wishlistaddedbrowse a,
body.ecp-va-active .card-wishlist .yith-wcwl-wishlistexistsbrowse a,
body.ecp-vssv-active .card-wishlist .yith-wcwl-wishlistexistsbrowse a,
body.ecp-va-active .card-wishlist a[href*="wishlist"]:not(.remove_from_wishlist):not(.delete_item):not(.add_to_wishlist),
body.ecp-vssv-active .card-wishlist a[href*="wishlist"]:not(.remove_from_wishlist):not(.delete_item):not(.add_to_wishlist) {
    pointer-events: none;
}

/* ── Wishlist page (YITH Free → ECP SSV grid) ───────────────────────────
   body.ecp-wishlist-page + ecp-vssv-active set by inc/ecp-wishlist.php.
   Uses individual cards only (no V-A swatch row). Archive hearts sit beside the title; wishlist page uses remove heart + bag. */

body.ecp-wishlist-page #yith-wcwl-form {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 0 48px;
}

body.ecp-wishlist-page .wishlist-title-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 30px 4px;
}

body.ecp-wishlist-page .wishlist-title h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 400;
    color: #2a3a52;
    margin: 0 0 8px;
}

/* Div.wishlist_table (not a real <table>) — neutralize YITH table CSS */
body.ecp-wishlist-page .ecp-wishlist-grid.wishlist_table {
    display: block !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.ecp-wishlist-page .ecp-wishlist-empty {
    max-width: 560px;
    margin: 40px auto 60px;
    padding: 48px 28px;
    text-align: center;
    background: #f7f4ef;
    border: 1px solid #e6dfd4;
    border-radius: 4px;
}

body.ecp-wishlist-page .ecp-wishlist-empty__title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.35rem;
    color: #2a3a52;
    margin: 0 0 10px;
}

body.ecp-wishlist-page .ecp-wishlist-empty__hint {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #5a6575;
    margin: 0 0 22px;
    line-height: 1.5;
}

body.ecp-wishlist-page .ecp-wishlist-empty__cta {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: #2a3a52;
    padding: 12px 22px;
    border-radius: 2px;
}

body.ecp-wishlist-page .ecp-wishlist-empty__cta:hover {
    background: #1e2b3d;
    color: #fff;
}

body.ecp-wishlist-page .ecp-wishlist-pagination {
    text-align: center;
    padding: 12px 30px 24px;
}

/* YITH/WooCommerce removal feedback is replaced by the shared toast. */
body.ecp-wishlist-page .woocommerce-message,
body.ecp-wishlist-page .woocommerce-notices-wrapper,
body.ecp-wishlist-page .yith-wcwl-feedback,
body.ecp-wishlist-page .yith-wcwl-notice {
    display: none !important;
}

/* Archives / shop grids: hide leftover YITH add feedback (toast owns UX). */
body.ecp-archive-active .yith-wcwl-add-to-wishlist__feedback,
body.ecp-archive-active .yith-wcwl-feedback-messages-container,
body.ecp-archive-active .yith-wcwl-popup-feedback,
body.ecp-archive-active .yith-wcwl-feedback,
body.ecp-archive-active .yith-wcwl-notice,
body.tax-product_cat .yith-wcwl-add-to-wishlist__feedback,
body.tax-product_cat .yith-wcwl-feedback-messages-container,
body.tax-product_cat .yith-wcwl-popup-feedback,
body.woocommerce-shop .yith-wcwl-add-to-wishlist__feedback,
body.woocommerce-shop .yith-wcwl-feedback-messages-container,
body.single-product .yith-wcwl-add-to-wishlist__feedback,
body.single-product .yith-wcwl-feedback-messages-container,
body.single-product .yith-wcwl-popup-feedback {
    display: none !important;
}

/* Keep wishlist cards and their Add to cart controls aligned across each row. */
body.ecp-wishlist-page ul.products > li.product-card,
body.ecp-wishlist-page ul.products > li.product {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
}

body.ecp-wishlist-page ul.products > li.product-card .card-info,
body.ecp-wishlist-page ul.products > li.product .card-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

/* Remove heart: filled via existing .is-wishlisted ::before; link fills hit area */
body.ecp-wishlist-page .card-wishlist--remove a.remove_from_wishlist {
    text-indent: 0 !important;
    font-size: 0 !important;
    color: transparent !important;
}

/* Wishlist page — full-width Add to cart under card info (FN favorites pattern) */
body.ecp-wishlist-page .card-wishlist-atc {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: auto 0 0;
    padding: 0.7rem 0.85rem;
    box-sizing: border-box;
    appearance: none;
    background: #faf8f5;
    border: 1.5px solid #2a3a52;
    border-radius: 6px;
    color: #2a3a52;
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
body.ecp-wishlist-page .card-wishlist-atc:hover:not(:disabled) {
    background: #2a3a52;
    color: #fff;
}
body.ecp-wishlist-page .card-wishlist-atc:disabled,
body.ecp-wishlist-page .card-wishlist-atc.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
body.ecp-wishlist-page .card-wishlist-atc.is-loading {
    opacity: 0.7;
    pointer-events: none;
}
body.ecp-wishlist-page .card-wishlist-atc.is-added {
    background: #2a3a52;
    color: #fff;
}

@media (max-width: 1024px) {
    body.ecp-wishlist-page ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    body.ecp-wishlist-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 28px 12px !important;
    }
}

/* ── BeRocket Load More — Gentle Monster–style outlined ghost ─────────────
   Overrides Customizer navy pill + BeRocket inline styles.
   Do NOT force display on the wrapper — BeRocket .show()/.hide() + .ecp-lmp-exhausted. */
.lmp_load_more_button.br_lmp_button_settings {
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    float: none !important;
    margin: 28px auto 48px !important;
    padding: 0 16px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    grid-column: 1 / -1 !important;
    position: relative !important;
}

.lmp_load_more_button.br_lmp_button_settings .lmp_button,
.lmp_load_more_button.br_lmp_button_settings a.lmp_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: var(--ecp-navy, #2a3a52) !important;
    border: 1px solid #cccccc !important;
    border-top: 1px solid #cccccc !important;
    border-right: 1px solid #cccccc !important;
    border-bottom: 1px solid #cccccc !important;
    border-left: 1px solid #cccccc !important;
    border-radius: 8px !important;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    font-family: var(--ecp-font-body, 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    text-decoration: none !important;
    padding: 14px 24px !important;
    padding-top: 14px !important;
    padding-right: 24px !important;
    padding-bottom: 14px !important;
    padding-left: 24px !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

.lmp_load_more_button.br_lmp_button_settings .lmp_button:hover,
.lmp_load_more_button.br_lmp_button_settings .lmp_button:focus,
.lmp_load_more_button.br_lmp_button_settings a.lmp_button:hover,
.lmp_load_more_button.br_lmp_button_settings a.lmp_button:focus {
    background: #fafafa !important;
    background-color: #fafafa !important;
    color: var(--ecp-navy, #2a3a52) !important;
    border-color: #bbbbbb !important;
    border: 1px solid #bbbbbb !important;
    text-decoration: none !important;
}

.lmp_load_more_button.br_lmp_button_settings .lmp_button:focus-visible,
.lmp_load_more_button.br_lmp_button_settings a.lmp_button:focus-visible {
    outline: 2px solid var(--ecp-navy, #2a3a52) !important;
    outline-offset: 2px !important;
}

/* Desktop: centered with a calm max-width under the grid */
@media (min-width: 769px) {
    .lmp_load_more_button.br_lmp_button_settings {
        padding: 0 30px !important;
        margin: 32px auto 56px !important;
    }
    .lmp_load_more_button.br_lmp_button_settings .lmp_button,
    .lmp_load_more_button.br_lmp_button_settings a.lmp_button {
        max-width: 420px !important;
        width: 100% !important;
    }
}

/* Exhausted / no next page — global (not only mobile) */
.lmp_load_more_button.ecp-lmp-exhausted,
body.ecp-va-active .lmp_load_more_button.ecp-lmp-exhausted,
body.ecp-vssv-active .lmp_load_more_button.ecp-lmp-exhausted {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
