/*
 Theme Name:   Luman Child
 Description:  Luman Child Theme
 Author:       XTemos
 Author URI:   https://xtemos.com
 Template:     xts-luman
 Version:      1.0.0
 Text Domain:  xts-theme
*/
:root {
    --primary-color: var(--e-global-color-primary);
}

/* Keep grayscale filter for out of stock products in archive but not in related products */
.outofstock img.attachment-woocommerce_thumbnail {
    filter: grayscale(100%);
}

/* Apply grayscale filter for out of stock products in single product page */
.single-product .outofstock img,
.single-product .outofstock .wp-post-image,
.single-product .outofstock .zoomImg {
    filter: grayscale(100%);
}

/* Remove grayscale filter for all images in related products section */
.related.products img.attachment-woocommerce_thumbnail {
    filter: none !important;
}

/* Also remove grayscale filter for any product images in related section */
.related.products .xts-product-image img {
    filter: none !important;
}

.xts-shipping-progress-bar.xts-style-bordered .xts-free-progress-bar {
    border: 2px dashed rgb(22 38 183);
}

@media (min-width: 1025px) {
    a.product-loop-align {
        white-space: normal !important;
    }
}

@media (max-width: 390px) {
    .expire-date {
        font-size: 15px;
    }
}

.xts-title-limit-two .woocommerce-loop-product__title {
    min-height: 44px;
}

[class*=xts-animation] {
    opacity: 1;
}

.bold {
    font-weight: 600;
}

/*
Single
*/


/*
Single
*/

.widget_shopping_cart .xts-free-progress-bar {
    padding-bottom: 20px;
    margin-bottom: 10px;
}

@media (max-width: 575px) {
    /*
       .xts-sticky-navbar-enabled .xts-sticky-atc {
           display: none;
       }
    */
    .xts-sticky-atc .price {
        display: grid;
        text-align: center;
        width: 100%;
        margin-left: 0px;
        direction: rtl;
        font-size: 30px;
    }

    .xts-sticky-atc .price del {
        font-size: 15px;


    }

    .xts-sticky-atc .col-auto {

        direction: ltr;
    }

    .xts-sticky-navbar-enabled .xts-sticky-atc,
    .variable-type-product .add-to-cart-button {
        border-radius: 20px;
        background-color: var(--e-global-color-1dbf153);
        margin: 8px 10px;
        padding: 10px 0;
        box-shadow: 0px 4px 4px 0px #0000003b;
    }

    .xts-sticky-atc .price span.amount {
        color: white;
    }

    .xts-sticky-atc {
        transition: none;
        transform: none;
    }

    .product-type-variable .xts-sticky-atc .price {
        display: none;
    }

    .xts-sticky-atc .quantity:not(.hidden) + button,
    .xts-sticky-atc .single_add_to_cart_button {
        background-color: transparent;
        color: var(--e-global-color-1dbf153);
        font-size: 11px;
    }

    .xts-sticky-atc .quantity:not(.hidden) + button.loading,
    .xts-sticky-atc .single_add_to_cart_button.loading {
        background-color: transparent !important;
        color: transparent !important;
    }

    .xts-sticky-atc .cart {
        position: relative;
        width: 70%;
        background-color: #E8E9F8;
        margin-right: 20px;
        border-radius: 20px;
    }

    .xts-sticky-atc span.woocommerce-Price-currencySymbol {
        font-size: 10px;
    }

    .xts-sticky-atc .price del span.woocommerce-Price-amount bdi {
        font-size: 15px; /* For the first bdi */
        margin-left: 50px;
    }

    .xts-sticky-atc .price del span.woocommerce-Price-amount bdi span.woocommerce-Price-currencySymbol {
        display: none;
    }

    .xts-sticky-atc .price ins span.woocommerce-Price-amount bdi,
    .xts-sticky-atc .price span.woocommerce-Price-amount bdi
    {
        font-size: 28px; /* For the second bdi */
    }


    .variable-type-product .add-to-cart-button::before {
        content: ''; /* Empty content to create the pseudo-element */
        position: absolute; /* Absolute positioning */
        right: 31%; /* Position icon */
        top: 50%; /* Center vertically */
        transform: translateY(-50%); /* Adjust vertical centering */
        width: 20px; /* Width of the icon */
        height: 20px; /* Height of the icon */
        background-image: url('https://azura.ir/wp-content/uploads/2024/10/Buy.svg'); /* Path to your SVG icon */
        background-size: contain; /* Ensure the icon fits */
        background-repeat: no-repeat; /* Prevent repeating */
        filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    }

    .variable-type-product .xts-sticky-atc {
        display: none;
    }

}
@media (max-width: 419px) {
    .xts-sticky-atc .quantity:not(.hidden) + button,
    .xts-sticky-atc .single_add_to_cart_button {
        font-size: 10px;
    }

    .xts-sticky-atc .quantity:not(.hidden) + button.loading,
    .xts-sticky-atc .single_add_to_cart_button.loading {
        font-size: 10px;
    }
}


.product-options-button {
    position: fixed;
    z-index: 200;
    bottom: 60px;
    width: 100%;
    max-width: 100%;
}

.variable-type-product .add-to-cart-button {
    color: white;
    font-size: 16px;
    width: -webkit-fill-available;
    padding-right: 20px;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 18px;
}

.add-to-cart-button .icon {
    margin-right: 8px; /* Space between icon and text */
}

/* Show button only on variable products and max-width 575px */
@media (max-width: 575px) {
    .product-options-button {
        display: flex; /* Show the button */
    }
    .xts-sticky-navbar-enabled .xts-scroll-to-top.xts-sticky-atc-shown {
        bottom: 162px;
    }
    .variable-type-product a.xts-scroll-to-top.xts-shown.xts-sticky-atc-shown {
        bottom: 135px;
    }
}
h2.woocommerce-loop-product__title.xts-entities-title a {
    padding: 0px 5px;
}

@media (max-width: 767px) {
    #chaty-widget-0 .chaty-widget {
        bottom: 70px !important;
    }
    .single-product #chaty-widget-0 .chaty-widget {
        bottom: 162px !important;
    }
    .single-product .variable-type-product #chaty-widget-0 .chaty-widget {
        bottom: 132px !important;
    }
}
.xts-sticky-atc .price {
    color: white;
}


/*

@media (max-width: 575px) {
    .xts-sticky-navbar-enabled .xts-sticky-atc,
    .variable-type-product .product-options-button {
        display: none;
    }
    #chaty-widget-0 .chaty-widget,
    .variable-type-product #chaty-widget-0 .chaty-widget{
        bottom: 72px !important;
    }
}
*/

.woocommerce-checkout tr.woocommerce-shipping-totals.shipping td {
    width: 55%;
}
.woocommerce-checkout input#coupon_code {
    background-color: #f1f1f1;
}
.woocommerce-checkout .woocommerce-form-coupon-toggle {
    box-shadow: 0 2px 66px rgba(173, 188, 200, .3);
    -webkit-box-shadow: rgba(173, 188, 200, .3) 0 2px 66px;
    padding: 10px;
    border-radius: 5px;
}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    margin-bottom: 0px;
}
.woocommerce-checkout form.checkout.woocommerce-checkout.row{
    margin-top: 30px;
}
.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon {
    border: 1px solid #f4f6f8;
    border-right: unset;
    border-left: unset;
    border-bottom: unset;
    box-shadow: 0 2px 66px rgba(173, 188, 200, .3);
    -webkit-box-shadow: rgba(173, 188, 200, .3) 0 2px 66px;
}
button.single_add_to_cart_button.button.alt.xts-not-added {
    background: transparent;
}