/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/


/* === OFFERBANGLA V2 DESIGN PATCH START === */

/*
 * ---------------------------------------------------------
 * TYPOGRAPHY FALLBACK
 *
 * WoodMart DB typography is updated to Hind Siliguri as the
 * source of truth. These variables make the result immediate
 * without globally overriding every HTML element.
 * ---------------------------------------------------------
 */

:root {
    --wd-text-font:
        "Hind Siliguri", sans-serif !important;

    --wd-title-font:
        "Hind Siliguri", sans-serif !important;

    --wd-entities-title-font:
        "Hind Siliguri", sans-serif !important;

    --wd-widget-title-font:
        "Hind Siliguri", sans-serif !important;

    --wd-header-el-font:
        "Hind Siliguri", sans-serif !important;

    --btn-font-family:
        "Hind Siliguri", sans-serif !important;

    --btn-default-font-family:
        "Hind Siliguri", sans-serif !important;

    --btn-accented-font-family:
        "Hind Siliguri", sans-serif !important;
}


/*
 * ---------------------------------------------------------
 * HEADER CATEGORY
 *
 * Exact audited Header Builder component:
 * wjlcubfdmlq3d7jvmt23
 *
 * Raw Header Builder source and generated CSS are updated too.
 * This selector is a safe immediate frontend fallback.
 * ---------------------------------------------------------
 */

.whb-wjlcubfdmlq3d7jvmt23 .menu-opener {
    background-color:
        #DB2777 !important;

    color:
        #ffffff !important;
}


/*
 * ---------------------------------------------------------
 * HOMEPAGE PRODUCT IMAGE VIEWPORT
 *
 * Exact Elementor widget: 6b0232b.
 *
 * Parent is a strict 1:1 visual viewport.
 * The actual source image is absolutely contained inside it,
 * so portrait/landscape source dimensions cannot expand the
 * card and no image is stretched or destructively cropped.
 * ---------------------------------------------------------
 */

.elementor-element-6b0232b
.wd-product:not(.product-list-item)
.product-element-top {
    position:
        relative !important;

    width:
        100% !important;

    aspect-ratio:
        1 / 1 !important;

    overflow:
        hidden !important;

    background-color:
        #ffffff;
}


.elementor-element-6b0232b
.wd-product:not(.product-list-item)
.product-image-link {
    position:
        absolute !important;

    inset:
        0 !important;

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    width:
        100% !important;

    height:
        100% !important;
}


.elementor-element-6b0232b
.wd-product:not(.product-list-item)
.product-image-link > img,

.elementor-element-6b0232b
.wd-product:not(.product-list-item)
.product-image-link picture,

.elementor-element-6b0232b
.wd-product:not(.product-list-item)
.product-image-link picture img {
    width:
        100% !important;

    height:
        100% !important;

    max-width:
        100% !important;

    max-height:
        100% !important;

    object-fit:
        contain !important;

    object-position:
        center center !important;
}


.elementor-element-6b0232b
.wd-product:not(.product-list-item)
.hover-img {
    position:
        absolute !important;

    inset:
        0 !important;

    width:
        100% !important;

    height:
        100% !important;
}


.elementor-element-6b0232b
.wd-product:not(.product-list-item)
.hover-img picture,

.elementor-element-6b0232b
.wd-product:not(.product-list-item)
.hover-img img {
    width:
        100% !important;

    height:
        100% !important;

    object-fit:
        contain !important;

    object-position:
        center center !important;
}


/*
 * Stable two-line title region.
 * Equal-card stretching itself is now handled natively
 * by WoodMart rather than custom height/margin hacks.
 */
.elementor-element-6b0232b
.wd-product:not(.product-list-item)
.wd-entities-title {
    min-height:
        2.8em;

    line-height:
        1.4;

    display:
        -webkit-box;

    -webkit-box-orient:
        vertical;

    -webkit-line-clamp:
        2;

    overflow:
        hidden;
}


/*
 * ---------------------------------------------------------
 * STANDALONE CART BUTTON
 *
 * This is NOT the Order button.
 * No selectors below target .add-to-cart-loop.
 *
 * WoodMart's original Order button remains native.
 * ---------------------------------------------------------
 */

.wd-product.wd-hover-standard
.wd-add-btn
.offerbangla-cart-button {
    position:
        relative;

    display:
        inline-flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    flex:
        0 0 36px !important;

    width:
        36px !important;

    min-width:
        36px !important;

    max-width:
        36px !important;

    height:
        36px !important;

    min-height:
        36px !important;

    padding:
        0 !important;

    margin:
        0 !important;

    border:
        1px solid #DB2777 !important;

    border-radius:
        var(--btn-accented-brd-radius) !important;

    background:
        #ffffff !important;

    color:
        #DB2777 !important;

    box-shadow:
        none !important;

    text-decoration:
        none !important;

    overflow:
        hidden;
}


.wd-product.wd-hover-standard
.wd-add-btn
.offerbangla-cart-button:hover {
    border-color:
        #DB2777 !important;

    background:
        #DB2777 !important;

    color:
        #ffffff !important;

    box-shadow:
        none !important;
}


.offerbangla-cart-button-icon {
    display:
        inline-block !important;

    width:
        auto !important;

    height:
        auto !important;

    padding:
        0 !important;

    margin:
        0 !important;

    font-family:
        "woodmart-font" !important;

    font-size:
        18px !important;

    font-weight:
        400 !important;

    font-style:
        normal !important;

    line-height:
        1 !important;

    opacity:
        1;

    transform:
        none !important;

    transition:
        opacity .2s ease;
}


.offerbangla-cart-button::after {
    position:
        absolute;

    top:
        calc(50% - 9px);

    left:
        calc(50% - 9px);

    display:
        block;

    width:
        18px;

    height:
        18px;

    border:
        1px solid transparent;

    border-left-color:
        currentColor;

    border-radius:
        50%;

    content:
        "";

    opacity:
        0;

    pointer-events:
        none;

    animation:
        wd-rotate 450ms infinite linear
        var(--wd-anim-state, paused);
}


.offerbangla-cart-button.loading
.offerbangla-cart-button-icon {
    opacity:
        0;
}


.offerbangla-cart-button.loading::after {
    opacity:
        1;

    --wd-anim-state:
        running;
}


/*
 * NO .add-to-cart-loop visual override here.
 * NO checkout/thank-you custom color override here.
 *
 * The existing Order button and pre-existing red/orange
 * business buttons are therefore left to their native styles.
 */

/* === OFFERBANGLA V2 DESIGN PATCH END === */

/* === OFFERBANGLA PHASE 3 UI PATCH START === */

/* Keep the original Order button text visible on hover. */
.wd-product.wd-hover-standard
.wd-add-btn-replace
.add-to-cart-loop:before {
    display: none !important;
}

.wd-product.wd-hover-standard
.wd-add-btn-replace
.add-to-cart-loop:hover span {
    opacity: 1 !important;
    transform: none !important;
}

/* === OFFERBANGLA PHASE 3 UI PATCH END === */

/* === OFFERBANGLA FINAL COLOR POLISH START === */

/*
 * Final brand-color normalization.
 *
 * COLOR ONLY:
 * - WoodMart primary/alternative yellow -> Offer Bangla pink
 * - default/accented button yellow -> Offer Bangla pink
 * - warning yellow -> Offer Bangla pink
 * - native yellow rating stars -> Offer Bangla pink
 *
 * No dimensions, typography, layout, markup or behavior
 * are modified by this block.
 */

html:root {
    --wd-primary-color:
        #DB2777 !important;

    --wd-alternative-color:
        #BE185D !important;

    --btn-default-bgcolor:
        #DB2777 !important;

    --btn-default-bgcolor-hover:
        #BE185D !important;

    --btn-accented-bgcolor:
        #DB2777 !important;

    --btn-accented-bgcolor-hover:
        #BE185D !important;

    --notices-warning-bg:
        #DB2777 !important;
}


/*
 * WoodMart native product rating.
 * Only the active star color changes.
 */
.star-rating {
    color:
        #DB2777 !important;
}

/* === OFFERBANGLA FINAL COLOR POLISH END === */
