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

/*** ELEMENTOR BETTER GLOBALS ***/
body{
    --color-green: var(--e-global-color-primary);
    --color-secondary: var(--e-global-color-secondary);
    --color-text: var(--e-global-color-text);
    --color-red: var(--e-global-color-accent);
    --color-border: var(--e-global-color-1749216);
    --color-background-light: var(--e-global-color-a720d94);
    --color-header-icons: var(--e-global-color-2befdc3);
    --color-black: var(--e-global-color-5a63278);
    --color-white: #ffffff;
}
/*** ELEMENTOR BETTER GLOBALS ***/


/*** ELEMENTOR FIXES ***/
.elementor-icon-wrapper{
    display: flex;
}
.elementor-widget-text-editor a,
.elementor-widget-text-editor a:hover{
    font-size: inherit;
    font-weight: inherit;
}
 
.elementor-widget-theme-post-content p:only-child,
.elementor-widget-theme-post-content *:last-child{
    margin: 0;
}
 
.elementor-widget-text-editor p:only-child,
.elementor-widget-text-editor p:last-child{
    margin: 0;
}
 
.elementor-lightbox .dialog-lightbox-widget-content .dialog-close-button{
    cursor: pointer; 
    will-change: transform;
}
.elementor-lightbox .dialog-lightbox-widget-content .dialog-close-button{
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    transition: all 0.4s ease;
}
.elementor-lightbox .dialog-lightbox-widget-content .dialog-close-button:hover{
    transform: rotate(90deg); 
    -moz-transform: rotate(90deg); 
    -webkit-transform: rotate(90deg); 
    -o-transform: rotate(90deg); 
    -ms-transform: rotate(90deg); 
    transform-origin: center; 
    -moz-transform-origin: center; 
    -webkit-transform-origin: center; 
    -o-transform-origin: center; 
    -ms-transform-origin: center; 
    transform-style: preserve-3d; 
    -moz-transform-style: preserve-3d; 
    -webkit-transform-style: preserve-3d; 
    -o-transform-style: preserve-3d; 
    -ms-transform-style: preserve-3d; 
    -webkit-backface-visibility: hidden;
 
    font-size: var(--lightbox-header-icons-size);
}
 
.elementor-heading-title > a{
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-transform: inherit;
}
.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    font-family: inherit;
    font-weight: inherit;
    text-transform: inherit;
}
 
@media (width > 782px) {
    body.admin-bar .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container{
        top: 32px;
    }
    body.admin-bar .elementor-menu-cart__main{
        height: calc(100% - 32px);
    }
}
@media (600px <= width <= 782px) {
    body.admin-bar .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container{
        top: 46px;
    }
}
/*** ELEMENTOR FIXES ***/


/*** WOODMART FIXES ***/
body.home #main-content{
    max-width: 100%;
    padding: 0;
}
.wd-grid-g{
    gap: 60px;
}
.wd-loop-builder-off .wd-product-wrapper{
    height: 100%;
}

.woodmart-loop .products{
    @media (width <= 1024px) {
        --wd-col: 3;
    }
    @media (width <= 620px) {
        --wd-col: 2;
    }
}
/*** WOODMART FIXES ***/


/*** CLASSES ***/
.aspect-ratio-1-1{
    aspect-ratio: 1 / 1;
}
/*** CLASSES ***/


/*** PRELOADER ***/
.loader{
    position: fixed; 
    left: 0px; 
    top: 0px; 
    width: 100%; 
    height: 100%; 
    z-index: 9999; 
    opacity: 1; 
    background: var(--color-background-light);
}
.loader-icon{
    width: 50px; 
    height: 50px; 
    border: 4px solid rgba(0, 0, 0, 0.1); 
    border-top: 4px solid var(--color-red); 
    border-radius: 50px; 
    background-color: transparent; 
    -webkit-animation: plrotate 1.5s infinite linear; 
    animation: plrotate 1.5s infinite linear; 
    position: absolute; 
    left: calc(50% - 25px); 
    top: calc(50% - 25px);
}
@-webkit-keyframes plrotate {
    0% { -webkit-transform: rotate(0deg) }
    50% { -webkit-transform: rotate(180deg) }
    100% { -webkit-transform: rotate(360deg) }
}
/*** PRELOADER ***/


/*** HEADER ***/
.whb-col-1 .wd-header-html{
    width: 100%;
    padding: 0;
}
header .whb-main-header{
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}
header .elementor-widget-woocommerce-menu-cart .amount{
    color: var(--color-header-icons);
    font-weight: inherit;
}
header .elementor-menu-cart__toggle .elementor-button{
    background-color: inherit;
    border-radius: inherit;
    color: inherit;
    display: flex;
    fill: inherit;
    font-size: inherit;
    line-height: 1;
    padding: inherit;
    text-align: center;
    transition: all .3s;
}
.elementor-menu-cart--items-indicator-bubble .elementor-menu-cart__toggle .elementor-button-icon .elementor-button-icon-qty[data-counter]{
    line-height: 1.6em !important;
}

header .woodmart-ajax-search .searchform input[type="text"]{
    font-size: 18px;
    font-style: italic;
}
header .woodmart-ajax-search .wd-search-form .wd-dropdown-results.wd-opened{
    left: -13px;
    right: 13px;
}

header pe-search form.pe-sb-form .pe-sb-btn{
    background: var(--color-red);
}
header pe-search form.pe-sb-form:focus-within{
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px color-mix(in srgb,var(--color-red) 18%,transparent);
}

@media (width <= 1150px) {
    .header-search-form-container{
        width: 100% !important;
        --width: 100% !important;
    }
    .tursene-po-motor{
        display: none;
    }
}

@media (width <= 1024px) {
    header .header-search{
        padding: 70px 0 0 0;
    }
    header .header-logo{
        position: absolute;
        left: 0;
        top: 10px;
    }
    header .header-buttons{
        position: absolute;
        right: 0;
        top: 10px;
    }
}

@media (width <= 1024px) {
    header .whb-main-header{

        & .whb-general-header{
            & .container{
                padding: 0;

                & .whb-general-header-inner{
                    height: 130px;
                    max-height: 130px;

                    & .whb-mobile-left{
                        margin: 0;
                    }
                }
            }
        }
    }
}
/*** HEADER ***/


/*** HEADER MEGA MENU ***/
.mega-menu-container{
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    right: 0;
    transform: translate(-50%, 0);
    width: 100%;
    box-shadow: 0 6px 20px #00000014;
    border: 1px solid var( --e-global-color-1749216 );
}
.mega-menu-container.visible-menu{
    display: block;
}
.mega-menu-trigger{
    cursor: pointer;
}
/*** HEADER MEGA MENU ***/


/*** HAMBURGER ***/
/* Optimized for Elementor */
.hamburger:active,
.hamburger:focus{
    border: 0 none; 
    outline: none;
    background-color: transparent;
    color: inherit;
}
.hamburger{
    display: block; 
    cursor: pointer; 
    transition-property: opacity, filter; 
    transition-duration: 0.15s; 
    transition-timing-function: linear; 
    font: inherit; 
    color: inherit; 
    text-transform: none; 
    background-color: transparent; 
    border: 0;
    margin: 0; 
    padding: 0;
    overflow: visible; 
    order: 2; 
    z-index: 20; 
    position: relative;
}
.hamburger:hover{
    opacity: 1; 
    border: 0 none; 
    outline: 0; 
    background: transparent;
}
.hamburger.is-active:hover{
    opacity: 1;
}
.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after{
    background-color: var(--color-white);
}
.hamburger-box{
    width: 18px; 
    height: 18px; 
    display: flex; 
    position: relative; 
}
.hamburger-inner{
    display: block; 
    top: 50%; 
    margin-top: 0;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after{
    width: 18px; 
    height: 2px; 
    background-color: var(--color-white); 
    border-radius: 0; 
    position: absolute; 
    transition-property: transform; 
    transition-duration: 0.15s; 
    transition-timing-function: ease;
}
.hamburger-inner::before,
.hamburger-inner::after{
    content: ""; 
    display: block;
}
.hamburger-inner::before{
    top: -6px;
}
.hamburger-inner::after{
    bottom: -6px;
}
 
.hamburger--squeeze .hamburger-inner{
    transition-duration: 0.075s; 
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.hamburger--squeeze .hamburger-inner::before{
    transition: top 0.075s 0.12s ease, opacity 0.075s ease;
}
.hamburger--squeeze .hamburger-inner::after{
    transition: bottom 0.075s 0.12s ease, transform 0.075s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.hamburger--squeeze.is-active .hamburger-inner{
    transform: rotate(-45deg); 
    transition-delay: 0.12s; 
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
.hamburger--squeeze.is-active .hamburger-inner::before{
    top: 0; 
    opacity: 0; 
    transition: top 0.075s ease, opacity 0.075s 0.12s ease;
}
.hamburger--squeeze.is-active .hamburger-inner::after{
    bottom: 0; 
    transform: rotate(90deg); 
    transition: bottom 0.075s ease, transform 0.075s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}
/*** HAMBURGER ***/


/*** FOOTER ***/
.wd-footer .main-footer{
    max-width: 100%;
    padding: 0;
}
/*** FOOTER ***/


/*** LOOPS ***/
.loop-attribute-wrapper{
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 3px 0 0 0;

    & .loop-attribute-item{
        background-color: var(--color-text);
        color: #000;
        padding: 4px 8px;
        font-size: 13px;
        line-height: 16px;
        font-weight: 300;
    }
}
.product-loop-item .product-prices .combo-price .price{
    display: flex;
    gap: 7px;
    text-decoration: none !important;

    @media (width <= 480px) {
        flex-direction: column;
        gap: 0;
    }
}
.product-loop-item .product-prices .combo-price .price > del{
    order: 2;
}
.product-loop-item .product-prices .combo-price .price > ins{
    text-decoration: none;
    order: 1;
}
.product-loop-item .product-prices .combo-price .price > .amount{
    color: var( --e-global-color-d0b830e );
    font-family: var( --e-global-typography-e79e8a7-font-family ), Sans-serif;
    font-size: var( --e-global-typography-e79e8a7-font-size );
    font-weight: var( --e-global-typography-e79e8a7-font-weight );
    text-transform: var( --e-global-typography-e79e8a7-text-transform );
    font-style: var( --e-global-typography-e79e8a7-font-style );
    line-height: var( --e-global-typography-e79e8a7-line-height );
}

/* Square product thumb */
.product-grid-item .wd-product-thumb{
    aspect-ratio: 1 / 1;
    overflow: hidden;

    & .wd-product-img-link{
        width: 100%;
        height: 100%;

        img{
            width: auto;
            height: 100%;
            object-fit: contain;
        }
    }

}

.dark-background{
    .wd-products{
        --wd-prods-brd: 1px solid var(--e-global-color-6a2906f);
        border: 1px solid var(--e-global-color-6a2906f);

        .wd-product{
            border: 0 none;

            & .product-element-bottom{
                background-color: var(--color-gray-900);
                margin: -10px;
                width: calc(100% + 20px);
                padding: 20px;

                a{
                    color: var(--color-white);

                    &:hover{
                        color: var(--color-red);
                    }
                }

                & .wd-entities-title{
                    font-size: 18px;
                }
                & .price{
                    font-size: 20px;
                }

            }
        }
    }
}

@media (620px < width <= 1280px) {
    .one-row-loop .elementor-loop-container{
        grid-template-columns: repeat(3,1fr);
    }
}

.elementor-widget-taxonomy-filter .e-filter{
    gap: calc(var(--e-filter-space-between) / 3);

    & button{
        height: auto;
        min-height: unset;
    }
}
/*** LOOPS ***/


/*** CONTENT WIDTH FIX ***/
main .site-content .single-product-content > .container,
main .site-content .single-product-content .product-tabs-wrapper > .container,
body.archive #main-content{
    max-width: 1600px;
}
/*** CONTENT WIDTH FIX ***/
