/*
 * Lili Gallery - WoodMart native product hover polish.
 * Version 2.4.0
 * The hover mechanics remain WoodMart-owned; this file only styles each native variant.
 */

:root {
    --lili-pc-accent: var(--wd-primary-color, #8f1b86);
    --lili-pc-text: #20243f;
    --lili-pc-title: #31354d;
    --lili-pc-muted: #9398a6;
    --lili-pc-line: #edf0f4;
    --lili-pc-soft: #f8f9fb;
    --lili-pc-radius: var(--lili-ui-radius, 9px);
}

/* Shared scope for secondary WoodMart product surfaces. */
:is(.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-prod-gap: 10px;
    --wd-brd-radius: var(--lili-pc-radius);
    --wd-thumb-brd-radius: var(--lili-pc-radius);
}

:is(.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 #eaedf2;
    border-radius: var(--lili-pc-radius) !important;
    background: #fff;
    box-shadow: 0 2px 8px rgba(24, 29, 45, .035);
}

@media (hover:hover) and (pointer:fine) {
    :is(.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: #dfe2e8;
        box-shadow: 0 12px 30px rgba(27, 31, 49, .085);
    }
}

/* Image block: consistent shape, no forced crop. */
:is(.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 {
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-bottom: 1px solid var(--lili-pc-line);
    background: linear-gradient(180deg,#fff 0%,#fff 90%,#fcfcfd 100%);
}

:is(.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) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 18px;
}

:is(.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 img {
    width: 100%;
    height: 100%;
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    object-position: center;
}

/* Common labels. */
:is(.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: 12px;
    right: 12px;
    left: auto;
    gap: 5px;
}

:is(.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-pc-radius) !important;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.15;
}

:is(.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 {
    color: #fff !important;
    background: var(--lili-pc-accent) !important;
}

/* Common text rhythm. */
:is(.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: 50px !important;
    max-height: 50px !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    overflow: hidden !important;
    color: var(--lili-pc-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;
}

:is(.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 a {
    color: inherit !important;
}

:is(.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 .price {
    margin-top: 7px !important;
    color: var(--lili-pc-text) !important;
    font-variant-numeric: tabular-nums;
}

:is(.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 .price ins {
    color: var(--lili-pc-text) !important;
    text-decoration: none !important;
}

:is(.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 .price > .amount,
:is(.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 .price ins .amount {
    color: var(--lili-pc-text) !important;
    font-size: 19px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
}

:is(.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 .price del,
:is(.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 .price del .amount {
    color: var(--lili-pc-muted) !important;
    font-size: 10.5px !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

/* Native top action icons: quieter, consistent. */
:is(.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,
:is(.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-pc-radius) !important;
}

/* -------------------------------------------------------------
   BUTTON hover: full-image overlay + centered CTA, never static.
   ------------------------------------------------------------- */
@media (min-width:1025px) {
    :is(.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,.42) !important;
    }

    :is(.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 {
        --btn-color: var(--lili-pc-accent);
        --btn-brd-width: 1px;
        --btn-brd-color: rgba(255,255,255,.92);
        --btn-brd-color-hover: #fff;
        --btn-bgcolor: rgba(255,255,255,.96);
        --btn-bgcolor-hover: #fff;
        min-height: 42px;
        padding-inline: 18px;
        border-radius: var(--lili-pc-radius) !important;
        box-shadow: 0 10px 24px rgba(0,0,0,.14);
        font-weight: 800;
    }
}

/* -------------------------------------------------------------
   FW BUTTON: native fixed full-width CTA, but visually subtle.
   ------------------------------------------------------------- */
:is(.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-fw-button .product-element-bottom {
    padding: 13px 15px 15px;
}

:is(.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-fw-button .wd-add-btn {
    margin-top: 11px;
}

:is(.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-fw-button .wd-add-btn > a {
    --btn-accented-height: 40px;
    --btn-accented-bgcolor: #fff;
    --btn-accented-bgcolor-hover: var(--lili-pc-accent);
    --btn-accented-color: var(--lili-pc-accent);
    --btn-accented-color-hover: #fff;
    width: 100%;
    border: 1px solid rgba(143,27,134,.28) !important;
    border-radius: var(--lili-pc-radius) !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

/* -------------------------------------------------------------
   STANDARD: compact outline CTA, not a chunky purple block.
   ------------------------------------------------------------- */
:is(.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-standard .wd-add-btn {
    margin-top: 10px;
}

:is(.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-standard .wd-add-btn > a {
    --btn-accented-bgcolor: #fff;
    --btn-accented-bgcolor-hover: var(--lili-pc-accent);
    --btn-accented-color: var(--lili-pc-accent);
    --btn-accented-color-hover: #fff;
    border: 1px solid rgba(143,27,134,.26) !important;
    border-radius: var(--lili-pc-radius) !important;
    box-shadow: none !important;
}

:is(.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-standard .wd-add-btn .add-to-cart-loop span {
    min-height: 38px;
    padding: 5px 16px;
}

/* -------------------------------------------------------------
   BUTTONS ON HOVER: preserve slide-up footer; polish the reveal.
   ------------------------------------------------------------- */
:is(.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-buttons-on-hover .product-element-bottom {
    padding: 14px 15px !important;
}

:is(.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-buttons-on-hover .wd-add-btn > a {
    border-radius: var(--lili-pc-radius) !important;
    box-shadow: none !important;
}

/* -------------------------------------------------------------
   BASE: retain JS fade panel; make actions cleaner.
   ------------------------------------------------------------- */
:is(.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-base .product-element-bottom {
    padding: 12px 15px var(--wd-prod-gap) !important;
}

:is(.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-base .wd-product-card-hover {
    padding-inline: 15px;
    padding-bottom: 14px;
}

:is(.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-base .wd-bottom-actions:not(.wd-add-small-btn) .wd-add-btn > a {
    --btn-accented-bgcolor: #fff;
    --btn-accented-bgcolor-hover: var(--lili-pc-accent);
    --btn-accented-color: var(--lili-pc-accent);
    --btn-accented-color-hover: #fff;
    border: 1px solid rgba(143,27,134,.24) !important;
    border-radius: var(--lili-pc-radius) !important;
    box-shadow: none !important;
}

/* -------------------------------------------------------------
   ALT: keep price/action swap; only color the underline/action.
   ------------------------------------------------------------- */
:is(.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-alt .wd-add-btn > a {
    color: var(--lili-pc-accent) !important;
    font-weight: 800;
}

:is(.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-alt .wd-add-btn .wd-action-text {
    border-bottom-color: rgba(143,27,134,.18);
}

/* -------------------------------------------------------------
   ICONS: keep native hover tray, give it a compact premium surface.
   ------------------------------------------------------------- */
:is(.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-icons .wd-buttons {
    overflow: hidden;
    padding: 4px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: var(--lili-pc-radius) !important;
    background: rgba(255,255,255,.95);
    box-shadow: 0 8px 22px rgba(31,35,48,.12);
    backdrop-filter: blur(8px);
}

:is(.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-icons .wd-buttons .wd-action-btn > a {
    border-radius: calc(var(--lili-pc-radius) - 2px) !important;
}

/* Native fade variants must be free to extend below the card. */
:is(.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;
}

:is(.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: 1px solid #e4e7ec !important;
    border-radius: var(--lili-pc-radius) !important;
    background: #fff !important;
    box-shadow: 0 16px 36px rgba(31,35,48,.12);
}

/* Products tabs navigation. */
:is(.elementor-widget-wd_products_tabs,.wd-products-tabs) .wd-tabs-header {
    margin-bottom: 16px;
}

:is(.elementor-widget-wd_products_tabs,.wd-products-tabs) .wd-nav-tabs {
    gap: 8px;
    row-gap: 8px;
}

:is(.elementor-widget-wd_products_tabs,.wd-products-tabs) .wd-nav-tabs > li > a {
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid #e7eaf0;
    border-radius: var(--lili-pc-radius) !important;
    background: #fff;
    color: #53586c;
    box-shadow: 0 1px 4px rgba(17,24,39,.025);
    font-size: 13px;
    font-weight: 700;
}

:is(.elementor-widget-wd_products_tabs,.wd-products-tabs) .wd-nav-tabs > li.wd-active > a,
:is(.elementor-widget-wd_products_tabs,.wd-products-tabs) .wd-nav-tabs > li.active > a,
:is(.elementor-widget-wd_products_tabs,.wd-products-tabs) .wd-nav-tabs > li > a:hover {
    border-color: var(--lili-pc-accent);
    background: var(--lili-pc-accent);
    color: #fff;
}

/* Carousel controls. */
:is(.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 #e4e7ec !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 7px 18px rgba(25,29,45,.09) !important;
}

@media (max-width:1024px) {
    :is(.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;
    }

    :is(.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;
    }

    :is(.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 .price > .amount,
    :is(.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 .price ins .amount {
        font-size: 17px !important;
    }
}

@media (max-width:767px) {
    :is(.elementor-widget-wd_products_tabs,.wd-products-tabs) .wd-nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    :is(.elementor-widget-wd_products_tabs,.wd-products-tabs) .wd-nav-tabs > li > a {
        white-space: nowrap;
    }

    :is(.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: 10px;
    }

    :is(.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;
    }

    :is(.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 .price > .amount,
    :is(.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 .price ins .amount {
        font-size: 15px !important;
    }
}
