/*
 * Lili Gallery - additional WoodMart product surfaces.
 * Version 2.3.0
 * Native WoodMart hover variants are intentionally preserved.
 */
:root {
    --lili-prod-bg:#fff;
    --lili-prod-border:#eceff3;
    --lili-prod-border-hover:#d8dce5;
    --lili-prod-text:#1f2340;
    --lili-prod-title:#2b2f4a;
    --lili-prod-muted:#8b91a1;
    --lili-prod-line:#f0f1f4;
    --lili-prod-accent:var(--wd-primary-color,#8f1b86);
    --lili-prod-radius:var(--lili-ui-radius,9px);
}

:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .wd-product {
    --wd-brd-radius:var(--lili-prod-radius);
    --wd-thumb-brd-radius:var(--lili-prod-radius);
    --wd-prod-gap:10px;
    min-width:0;
}

:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .product-grid-item .product-wrapper {
    border:1px solid var(--lili-prod-border);
    border-radius:var(--lili-prod-radius)!important;
    background:#fff;
    box-shadow:0 2px 8px rgba(17,24,39,.035);
    transition:border-color .22s ease,box-shadow .22s ease,transform .3s ease;
}
@media (hover:hover) and (pointer:fine) {
    :where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .product-grid-item:hover .product-wrapper {
        border-color:var(--lili-prod-border-hover);
        box-shadow:0 12px 28px rgba(31,35,48,.09);
    }
}

/* Don't normalize all hover templates: only skin common surfaces. */
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .wd-product:not(.wd-hover-small):not(.wd-hover-info):not(.wd-hover-tiled) .product-element-top {
    border-bottom:1px solid var(--lili-prod-line);
    background:linear-gradient(180deg,#fff 0%,#fff 88%,#fcfcfd 100%);
}
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .wd-product:not(.wd-hover-small):not(.wd-hover-info):not(.wd-hover-tiled) :is(.product-image-link,.wd-product-img-link) {
    padding:14px;
}

/* Labels */
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .product-labels {
    top:11px;right:11px;left:auto;gap:5px;
}
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .product-label {
    min-width:0;min-height:0;padding:5px 9px;border-radius:var(--lili-prod-radius)!important;font-size:10.5px;font-weight:800;line-height:1.15;box-shadow:none;
}
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .product-label.onsale {
    background:var(--lili-prod-accent)!important;color:#fff!important;
}

/* Visual skin for native action icons; placement/visibility remains WoodMart-owned. */
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .wd-buttons .wd-action-btn > a,
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .wd-buttons > div > a {
    border-radius:var(--lili-prod-radius)!important;
}

/* Titles/prices only. No flex/position/overflow changes to native hover containers. */
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .product-grid-item .wd-entities-title {
    display:-webkit-box!important;height:auto!important;min-height:48px!important;max-height:50px!important;overflow:hidden!important;color:var(--lili-prod-title)!important;font-size:13.5px!important;font-weight:500!important;line-height:1.85!important;text-align:right!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;
}
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .wd-entities-title a {color:inherit!important;}
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .wd-entities-title a:hover {color:var(--lili-prod-accent)!important;}

:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .price {color:var(--lili-prod-text)!important;font-variant-numeric:tabular-nums;}
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .price ins {color:var(--lili-prod-text)!important;text-decoration:none!important;}
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .price > .amount,
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .price ins .amount {color:var(--lili-prod-text)!important;font-size:19px!important;font-weight:900!important;line-height:1.3!important;}
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .price del,
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .price del .amount {color:var(--lili-prod-muted)!important;font-size:10.5px!important;font-weight:500!important;opacity:1!important;}

/* Restore WoodMart BUTTON hover overlay explicitly (previous skin suppressed it). */
@media (min-width:1025px) {
    :where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .wd-product.wd-hover-button .wd-product-thumb:before {
        display:block!important;background:rgba(27,25,40,.48)!important;
    }
    :where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .wd-product.wd-hover-button .wd-add-btn > a {
        border-radius:var(--lili-prod-radius)!important;
    }
}

/* Base/FW use JS-calculated fade blocks outside the base card. Never clip them. */
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .wd-hover-with-fade .product-wrapper {overflow:visible!important;}
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .wd-hover-with-fade .wd-product-card-bg {border-color:var(--lili-prod-border)!important;border-radius:var(--lili-prod-radius)!important;background:#fff!important;box-shadow:0 14px 34px rgba(31,35,48,.12);}

/* Full-width buttons retain native behavior; visual only. */
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) :is(.wd-hover-fw-button,.wd-hover-standard,.wd-hover-buttons-on-hover) .wd-add-btn > a,
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .wd-hover-base .wd-bottom-actions .wd-add-btn > a {border-radius:var(--lili-prod-radius)!important;}

/* AJAX product-tabs navigation */
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs) .wd-nav-tabs {gap:8px;}
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs) .wd-nav-tabs > li > a {min-height:42px;padding:9px 16px;border:1px solid #e8ebf0;border-radius:var(--lili-prod-radius)!important;background:#fff;color:#52566c;box-shadow:0 1px 4px rgba(17,24,39,.025);font-size:13px;font-weight:700;}
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs) .wd-nav-tabs > li.wd-active > a,
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs) .wd-nav-tabs > li.active > a,
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs) .wd-nav-tabs > li > a:hover {border-color:var(--lili-prod-accent);background:var(--lili-prod-accent);color:#fff;}

/* Carousel controls */
:where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) :is(.wd-btn-arrow,.wd-nav-arrows .wd-btn-arrow) {width:40px;height:40px;border:1px solid #e5e7ec!important;border-radius:var(--lili-prod-radius)!important;background:rgba(255,255,255,.98)!important;box-shadow:0 6px 16px rgba(25,29,45,.08)!important;}

/* Archive list view: visual only. */
:where(body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .product-list-item .product-wrapper {border:1px solid var(--lili-prod-border);border-radius:var(--lili-prod-radius)!important;background:#fff;box-shadow:0 2px 8px rgba(17,24,39,.035);}

@media (max-width:1024px) {
    :where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .product-grid-item .wd-entities-title {min-height:46px!important;max-height:46px!important;font-size:12.7px!important;line-height:1.8!important;}
    :where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .price > .amount,
    :where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .price ins .amount {font-size:17px!important;}
}
@media (max-width:767px) {
    :where(.elementor-widget-wd_products_tabs,.wd-products-tabs) .wd-nav-tabs {flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding-bottom:4px;}
    :where(.elementor-widget-wd_products_tabs,.wd-products-tabs) .wd-nav-tabs > li > a {white-space:nowrap;}
    :where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .product-grid-item .wd-entities-title {min-height:40px!important;max-height:40px!important;font-size:11.2px!important;line-height:1.75!important;}
    :where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .price > .amount,
    :where(.elementor-widget-wd_products_tabs,.wd-products-tabs,.related-products,.upsells-products,.cross-sells,.wd-wishlist-content,body.woocommerce-shop,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product) .price ins .amount {font-size:15px!important;}
}
