:root {
    --main-color: #5CBC5C;
    --main-color-light: #EFF8EF;
    --light-gray: #F8F8F8;
    --gray: #898686;
    --border: #EAEAEA;
    --black: #474747;
    --white: #FFFFFF;
}

body {
    overflow-x: hidden;

    a:focus {
        outline: none;
        text-decoration: none;
    };
}

.tm-search-bar {
    .wp-block-search__input{
        background-color: var(--light-gray);
        max-width: 12em;
        padding-left: 2.5em;

        &:placeholder-shown {

            &::after {
                content: 'Pesquisar';
                font-size: 1.05rem;
                position: absolute;
                top: 0.6em;
                left: 1.5em;
                display: block;
            }
        }

    }

   

    &:has(.wp-block-search__input:focus){
        .wp-block-search__input{
            outline-color: var(--main-color);
        }
        
        &::after {
            display: none;
        }


    }

    .search-icon {
        position: absolute;
        top: 0;
        margin: 7px;
        left: 13px;
        width: 1em;
    }

}

.wp-block-template-part:has(.tm-header) {
    position: sticky;
    z-index: 10;
    top: 0px;

    max-height: 125px;
    overflow: hidden;
}


header:has(.tm-header) {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding-top: 0.8rem;
        padding-bottom: 0.8rem ;

    .tm-navbar-top {
        background-color: var(--white);
        padding: 8px;
    }

    a.wp-block-navigation-item__content {
        font-size: 1rem;
    }

    .tm-header-wrapper {
        
        display: grid;
        grid-template-columns: 1fr auto 1fr;

        .tm-header-logo {
            p {margin: 0;
                text-align: center;
                font-size: 1rem;
                font-variant: small-caps;
                letter-spacing: 4.95px;
                margin-left: 2px !important;
                margin-top: -8px;} 
        }

        .tm-header-operations {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 1rem;
            padding: 0px 30px;

            .tm-search-bar, .tm-header-cta {
                margin-left: 0 !important;
                margin-right: 0 !important;
                margin-top: 0 !important;
            }

            .tm-cart-link {
                margin: 0 !important;
                border-radius: 2rem;
                padding: 0.4rem;
                width: max-content;
            }
        }
    }

    .tm-header-content {
        width: 100%;
        gap: 1em;
        

        nav {
            flex: 1;
            justify-content: flex-start !important;

            a {font-weight: 500 !important; font-size: 1.1rem; text-decoration: none;
                transition: all 0.5s ease; color: var(--black) !important;
                &:hover {
                    color: var(--main-color) !important;
                    transform: scale(1.1);
                }
            }
            
        }
    }
}

#tm-mobile-btn {
    display: none;
   }



.tm-home-content {
    padding: 0;
    margin-top: -85px !important;

    .tm-cover {
        max-height: 100vh;
        overflow: hidden;
        figure {
            width: 100%;
            margin: 0;
            max-width: fit-content;
            position: relative;

            &::after {
                content: " ";
                position: absolute;
                bottom: 0;
                background-color: red;
                height: 1em;
                width: 1em;
                

            }
        }

        .tm-cover-margin {
            position: absolute;
            max-width: 1450px;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            right: 0;
            margin: auto;
        }

        .tm-cover-text  {
            position: relative;
            top: 0;
            left: 0;
            height: 100%;
            z-index: 2;
            display: grid;
            place-content: center;
            padding: 2em;
            width: 50%;
            margin-left: 0 !important;

            h1 {
                font-size: 2rem;
                font-weight: 800;
                text-align: center;
            }
            p {text-align: center;}
        }
    }

    .tm-home-services {
        margin-top: 5rem;
        p {font-size: 1rem !important;}

        .tm-home-service-item {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            p {position: absolute; 
                bottom: 0; 
                width: calc(100% - 2rem);
                padding: 1.5rem 1rem; 
                background-color:rgb(71, 71, 71, 0.75);
                color: var(--white);
                backdrop-filter: blur(4px);
            }
        }
    }

    .tm-home-history {
        display: flex;
        max-width: 1340px;
        margin: 3rem auto;
        justify-content: space-between;
        align-items: center;

        .tm-home-history-title {
            width: max-content;
            margin-left: 0 !important;
            margin-right: 0 !important;
            max-width:100%;
        }

        .tm-home-history-content {
            display: flex;
            gap: 1em;
            overflow-x: scroll;
            margin-left: 0 !important;
            margin-right: 2rem !important;
            max-width: 100% !important;
           


            .tm-history-card {
                min-width: 250px;
                min-height: 300px;
                width: 250px;
                margin: 1rem;
                border: 1px solid var(--border);
                padding: 2rem;
                border-radius: 10px;
            }
        }
        
    }


    .wp-block-group:has( figure.tm-about-shape-top ) {
        width: 100%;
        max-width: none;
        padding-left: 0!important;
        padding-right: 0 !important;
        margin-top: -9.2vw;

        figure {
            width: 100%;
            max-width: none;

            img { width: 100%;}
        }

        h2 {margin-top: -4vw; max-width: 1200px; font-size: 1.4rem;}
        p {max-width: 700px; font-size: 1rem; padding: 0 2rem !important;} 
    }
}


.entry-content:has( .tm-banner-page ),
.wp-site-blocks:has( .tm-banner-page) {

    padding-right: 0 !important;
    padding-left: 0 !important;

    .tm-banner-page {
        padding: 0;
        position: relative;
        margin-bottom: 4rem;
        margin-top: 0 !important;
        figure {max-width: 100%; width: 100%; margin-top: 0;
        img {max-width: 100%; width: 100%; max-height: 300px; object-fit: cover; object-position: top;}}

        h1 {
            position: absolute; 
            color: var(--white); 
            max-width: 1340px; 
            width: 100%; 
            height: 100%; 
            place-content: center; 
            padding:  0 1em; 
            margin: auto;
            font-weight: 600;
            font-size: 2.5rem;
            left: 0;
            right: 0;
        }

        .tm-breadcrumb {
            position: absolute;
            bottom: -2rem;
            max-width: 1340px; 
            left: 0;
            right: 0;

        &:has(nav) {
            display: flex;
            align-items: center;
            gap:0;

            p {
                margin-right: 0 !important;
                padding-right: 0px !important;
                border-top-right-radius: 0px !important;
                border-bottom-right-radius: 0px !important;
            }

            .wc-block-breadcrumbs {
                margin-top: 0 !important;
                padding-left: 0px !important;
                border-top-left-radius: 0px !important;
                border-bottom-left-radius: 0px !important;


                nav a:nth-child(1) {
                    display: none;
                }
            }
        } 
            

            p, .wc-block-breadcrumbs {
                background-color: var(--white); 
                width: max-content; 
                margin-left: 0 !important;
                padding: 1rem 2rem;
                border-radius: 200px;

                color: var(--main-color);
                font-weight: 600;

                a {
                    text-decoration: none;
                    color: var(--black);
                }

                nav {font-size: 22px; margin-bottom: 0;}
            }
        }
    }

    
}


.tm-productDetail-container .tm-breadcrumb nav {
    font-size: 1rem;
    a {text-decoration: none; font-weight: 600; color: var(--black);}
}

.tm-container-group {
    padding: 1em 2rem;
    max-width: 1340px;
    margin: auto;

    h2 {
        font-size: 1.6rem;
        font-weight: 800;
        margin-left: 0 !important;
    }
}

.tm-categories {

    .wc-block-featured-category {
        min-height: 275px !important;
        border: 2px solid var( --light-gray);

        .background-dim__overlay {
            background-color: transparent !important;
        }

        .wc-block-featured-category__wrapper {
            h2 {                
                color: var(--black);
                font-size: 1rem;
                background: #ffffffde;
                backdrop-filter: blur(3px);
                position: absolute;
                padding: 1rem;
                font-weight: 600;
                bottom: 0;}
        }

        .wc-block-featured-category__description {
            display: none;
        }


        .wc-block-featured-category__link {
            opacity: 1;
            position: absolute;
            top: 0;
            width: 100%;
            height: 100%;
            

            
            
            .wp-block-buttons,.wp-block-button, .wp-block-buttons__link, .wp-block-button__link {
                width: 100%;
                height: 100%;
            }

           
            .wp-block-button__link  {
                place-content: center;
                border-radius: 0;
                opacity: 0;
                transition: all 0.5s ease;
                transform: scale(1.2);

                &:hover {
                    background-color: #5cbc5cae;
                    transform: scale(1);
                    opacity: 1;
                }
            }
        }
    }
}

.tm-brands {
    figure {
        border: 2px solid var(--light-gray);
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5em;
        flex-direction: column;
        justify-content: center;
        min-height: 105px;

        a {
            max-width: 130px;
            width: 100%;
            display: block;
        }

        figcaption {
            margin-top: 1rem;
            margin-bottom: 0;
            text-align: center;
        }
    }
}

.tm-service-list {
    max-width: 1340px;
    width: 100%;
    .tm-service-item {
        width: calc(100% - 4rem);

        margin: 2rem;
        display: block;
        overflow: hidden;
        border-radius: 1rem;
        border: 1px solid var(--border);
    
        figure {
            position: absolute;
            top: 0;
            z-index: -1;
            width: 100%;
            height: 100%;
            max-width: 1340px;
    
            img {
                width: 100%;
                object-fit: cover;
                height: 100%;
            }
        }
    
        .tm-service-content {
            background: linear-gradient(90deg, rgb(255 255 255) 0%, rgb(255 255 255) 60%, rgb(255 255 255 / 0%) 100%);
            margin: 0 !important;
            padding: 2rem;
            width: 100%;
            max-width: 1000px;
            display: flex;
            flex-direction: column;
    
            &.right-content{
                background: linear-gradient(90deg, rgb(255 255 25 / 0%) 0%, rgb(255 255 255) 40%, rgb(255 255 255) 100%);
                float: right;
                align-items: flex-end;
                p, h2, .wp-block-buttons{
                    margin-left: initial !important;
                    margin-right: 0 !important;
                    text-align: right;
                }
            }
            h2 {font-size: 1.6rem; font-weight: 800; margin-left: 0!important;}
            p {font-size: 0.9rem; line-height: 1.8; max-width: 500px; margin-left: 0!important;}
            .wp-block-buttons {
                margin-left: 0 !important;
                .wp-block-button a {
                    background-color: var(--main-color); font-size: 1rem; font-weight: 600; padding: 0.8rem 1.5rem;
                }
            }
            
        }
    
    }
}


.tm-contact-banner {
    background-color: rgb(92, 188, 92, 0.10);
    overflow: hidden;

    figure {
        position: absolute;
        top: -4rem;
        right: 0;
        opacity: 0.1;
        filter: blur(2px);
    }
   

    .tm-contact-banner-content {
        max-width: 1340px; margin: auto;
        padding: 3rem 2rem;
        position: relative;
       

        h2 {
            font-size: 1.6rem; font-weight: 800; margin-left: 0!important;
        }
        p {
            margin-left: 0!important;
            max-width: 400px; 
            font-size: 0.95rem;
            line-height: 1.8;
        }

        .wp-block-buttons {
            position: absolute;
            top: 0;
            right: 0;
            width: 50%;
            margin: 0;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
            .wp-block-button a {
                font-size: 1rem; font-weight: 600; padding: 0.8rem 1.5rem;
            }
        }
    }
}

.object-fit-center, .object-fit-center img {
    object-position: center !important;
}

.tm-catalog {
    max-width: 1340px;
    margin: auto;
    padding: 0;

    &:has(.tm-catalog-filters) {

    max-width: 1340px;
    margin: auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 4fr;
    grid-column-gap: 1.25rem;
    }

        .add_to_cart_button {
            display: none !important;
        }

        .woocommerce-Price-amount {
            font-weight: 600;
            font-size: 1rem;
            color: var(--main-color);
        }


    

    .tm-catalog-filters {
        margin-left: 2rem !important;
        margin-top: 0rem!important;
        h2 {
            font-weight: 800;
            border-left: 3px solid var(--main-color);
            padding-left: 1rem;
            font-size: 1.2rem;
        }
        ul {
            list-style: none;
            padding: 0;
            display: grid;
            li {font-size: 1rem;
                a {text-decoration: none;}
            }
        }

        .tm-subcategories-filter {
            display: none;
        }

        .tm-subcategories-filter:has(.wc-block-product-categories-list) {
            display: block;
            margin-top: 1.2rem;
        }

        .wc-block-product-categories-list--depth-1 {
            display: none;
        }

        .tecnimoove-categoryList ul{
            gap: 1rem;
            
        }

        .wc-block-attribute-filter__actions {
            justify-content: flex-start;
            font-size: 0.9rem;
        }
    }
    .tm-subcategories-filter{
        display: none;
    }

    .tm-subcategories-filter:has(.wc-block-product-categories-list) {
        display: block;
        width: 100%;
        max-width: inherit;
        grid-column: 1/3;
        margin-bottom: 3rem;
        h2 {
            font-weight: 800;
            border-left: 3px solid var(--main-color);
            padding-left: 1rem;
            font-size: 1.2rem;
            margin-left: 2rem !important;
            margin-right: 2rem !important;
        }

        .tecnimoove-categoryList {
            margin-left: 2rem !important;
            margin-right: 2rem !important;
            /*border-bottom: 1px solid var(--border);*/
            width: calc(100% - 3rem);            width: calc(100% - 3rem);
            max-width: inherit;
        }
  
        ul {
            list-style: none;
            padding: 0;
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
            gap: 1.25rem;
            place-items: center;
            text-align: center;
            li {                
                font-size: 1rem;
                border: 1px solid var(--main-color);
                width: calc(100% - 2rem);
                height: calc(100% - 2rem);
                display: flex
;
                justify-content: center;
                align-items: center;
                padding: 1rem;
                background: rgb(92, 188, 92, 0.10);
                font-weight: 600;
                a {text-decoration: none;}

                ul {
                    display: none;
                }
            }
        }
    }

    
}

.tm-catalog-product  {
    margin-top: 0 !important;
    padding: 0 1rem;
    .wc-block-catalog-sorting {
        margin-top: 0 !important;
        margin-right: 0!important;
        width: max-content;
        padding-right: 1rem;
    }

    .wp-block-woocommerce-product-collection {
        margin-top: 0 !important;
    }

    .woocommerce.wc-block-product-results-count
    {
        margin-top: -2.5rem !important;
        font-size: 1rem;
        text-align: right;
    }

    .add_to_cart_button {
            display: none !important;
        }

        .woocommerce-Price-amount {
            font-weight: 600;
            font-size: 1rem;
            color: var(--main-color);
        }

    h3 {
        font-weight: 600;
        font-size: 1rem !important;
    }

    .wp-block-woocommerce-product-button {
        a {
            background: transparent;
            border: 0px;
            outline: 0px;
            color: var(--main-color);
            font-size: 1rem !important;
            font-weight: 600;
            padding: 0 !important;
            border-radius: 0 !important;
        }
    }

    .wp-block-query-pagination {
        justify-content: flex-start;

        .wp-block-query-pagination-numbers {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        span.current{
            background-color: var(--main-color-light);
            height: 2.5rem;
            width: 2.5rem;
            border-radius: 2rem;
            display: flex;
            justify-content: center;
            align-items: center;
            color: var(--main-color);
        }

        a {
            background-color: var(--light-gray);
            height: 2.5rem;
            width: 2.5rem;
            border-radius: 2rem;
            display: flex;
            justify-content: center;
            align-items: center;
            color: var(--gray);
            text-decoration: none;
        }
        span {
            margin-left: 0 !important;
            margin-right: 0 !important;
        }
    }


}

.tm-productDetail-container {

    .tm-productDetails-side {

        

        .wp-block-woocommerce-product-meta .taxonomy-product_tag {
            a {text-decoration: none;}
            font-size: 1rem;
        }

        .wp-block-post-title {
            font-weight: 600;
            font-size: 1.6rem;
        }

        .wp-block-post-excerpt {
            p {font-size: 1rem; 
                color: var(--gray); 
                max-width: 60ch;
                line-height: 1.7;
            }
        }

        .secondary .wp-block-button__link {
            background-color: var(--white);
            color: var(--main-color);
            border: 1px solid var(--main-color);
        }

        .wp-block-button__link {
            background-color: var(--main-color);
            padding: 0.7rem 2.5rem;
            font-weight: 600;
            font-size: 1rem;
        }
    }
    .tm-productDetails-details {
        .woocommerce-Tabs-panel {
            h2  {
                display: none;
            }
            p {
                font-size: 1rem;
                max-width: 80ch;
                line-height: 1.7;
                color: var(--gray);
            }

            iframe {
                max-width: 800px;
                width: 100%;
                aspect-ratio: 16 / 9;
            }
        }
    }

    &:has(.tm-add-to-cart) {
        #toggleModal{
            display: none !important;
        }
    }


    .tm-add-to-cart {

        form {
            margin-bottom: 0 !important;
        }
        .input-text.qty {
                border-radius: 3rem;
                min-height: 3rem;
                margin-bottom: 0px;
                border: 1px solid var(--border);  
        }

        .single_add_to_cart_button {
            background-color: var(--main-color);
            border-radius: 2rem;
            padding: 0.8rem 2rem;
            font-weight: 600;
            font-size: 1rem;

            &::after {
            content: "";
            display: inline-block;
            width: 1.2rem;
            height: 1.2rem;
            margin-left: 0.5em; /* opcional, para espaçar do texto */
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3C!-- Icon from Material Symbols by Google - https://github.com/google/material-design-icons/blob/master/LICENSE --%3E%3Cpath fill='white' d='M11 6H9q-.425 0-.712-.288T8 5t.288-.712T9 4h2V2q0-.425.288-.712T12 1t.713.288T13 2v2h2q.425 0 .713.288T16 5t-.288.713T15 6h-2v2q0 .425-.288.713T12 9t-.712-.288T11 8zM7 22q-.825 0-1.412-.587T5 20t.588-1.412T7 18t1.413.588T9 20t-.587 1.413T7 22m10 0q-.825 0-1.412-.587T15 20t.588-1.412T17 18t1.413.588T19 20t-.587 1.413T17 22M3 4H2q-.425 0-.712-.288T1 3t.288-.712T2 2h1.65q.275 0 .525.15t.375.425L8.525 11h7l3.625-6.5q.125-.25.35-.375T20 4q.575 0 .863.488t.012.987L17.3 11.95q-.275.5-.737.775T15.55 13H8.1L7 15h11q.425 0 .713.288T19 16t-.288.713T18 17H7q-1.125 0-1.713-.975T5.25 14.05L6.6 11.6z'/%3E%3C/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
            vertical-align: middle;
            }

        }
    }
}

.tm-contact-store {
    max-width: 1340px;
    width: calc(100% - 2rem);
    margin: 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    align-items: flex-start;

    .tm-contact-details {
        flex: 1;
        padding: 2rem;
        
    }

    h2 {
        font-size: 1.6rem;
                font-weight: 800;
                margin-left: 0 !important;
                margin-bottom: 2rem;
    }

    p {
        font-size: 1rem;
    }
}

.tm-text-container {
    max-width: 1340px;
    width: 100%;
    margin: auto;
    padding: 2rem;
    margin-bottom: 2rem;
    
    * {
        width:100%;
        max-width: inherit;
    }

    h2 {
        font-weight: 700;
        font-size: 1.6rem;
        color: var(--main-color);
        padding-top: 1.5rem;
    }

    h3 {
        font-weight: 600;
        font-size: 1.2rem;
    }

    p {font-size: 1.2rem; line-height: 1.8}

     ol {
        width: 100%;
        max-width: max-content;

        
    }

    li {
            font-size: 1.2rem; line-height: 1.8;
        }


}


.wp-block-woocommerce-product-collection {
    h2 {
        font-size: 1.6rem;
        font-weight: 800;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        
    }
    p {
        font-size: 1rem;
        color: var(--gray);
        margin-top: 5px !important;
    }

    .tm-catalog-product {padding: 0rem; margin-top: 2rem !important; margin-bottom: 2rem !important;}
}

.tm-productDetails-details {

    #tab-title-documents_tab {
        display: none;
    }

    &:has(#tab-documents_tab > ul > li) {
        #tab-title-documents_tab {
            display: inline-block;
        }
    }

    #tab-documents_tab {
        min-height: 100px;
        ul { list-style: none;
            padding-left: 0 !important;

            li {
                position: relative;

                display: flex;
                align-items: center;
                gap: 1rem;
            }
            a {
                font-size: 1.2rem; text-decoration: none;
                
            }
        }
    }

    
    .woocommerce-tabs {
        position: relative;

            &::after {
                content: " ";
                position: absolute;
                display: block;
                width: 100%;
                height: 2px;
                background-color: var(--border);
                top: 65px;
            }
        li {

            &.active {
                border-bottom: 5px solid var(--main-color) !important;
            }

            &:hover:not(.active) {border-bottom: 0px!important;}
            a{
                font-size: 1.6rem;
                    font-weight: 800;
                    margin-left: 0 !important;
                    padding-left: 0 !important;
            }

        } 
    }

    .woocommerce-product-attributes {
        th {font-size: 1rem; width: 250px !important; text-align: left;}
        td p{ padding-left: 1rem !important;}
    }

    
} 




.tm-form-page {
    display: flex;
    flex-direction: column;

    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 1rem;

    background-color: var(--white);
    
    label {
      font-size:0.9rem;
      padding: 0.5rem;
    }

    .title {
        text-align: center;
        font-size: 0.9rem;
    }
    
    input {
      padding: 0.7rem 1rem;
      border-radius: 0.5rem;
      border: 0px;
      font-size: 1.1rem;
      font-family: var(--wp--preset--font-family--manrope);

      background: var(--light-gray);
      margin-bottom: 0.5rem;
      font-weight: 400 !important;

      &:focus {
        outline: var(--main-color) auto 1px;
      }
    }

    .two-inputs {
        display: flex;
        gap: 1rem;

        & > div {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
    }
    
    textarea {
      padding: 0.7rem 1rem;
      border-radius: 0.5rem;
      border: 0px;
      font-size: 1.1rem;
      font-family: var(--wp--preset--font-family--manrope);
      background: var(--light-gray);
      margin-bottom: 0.5rem;

      &:focus {
        outline: var(--main-color) auto 1px;
      }
    }

    input[type="radio"] {
        accent-color: var(--main-color);
        transform: scale(1.5);
      }
    
    button {
      margin-top: 1rem;
      padding: 0.7rem 1rem;
      border-radius: 0.5rem;
      border: 0px;
      background: var(--main-color);
      color: var(--white);
      cursor: pointer;
    }
  }

body:has(.pop-up.active) {
    overflow: hidden;
    height: 100vh;
}



.pop-up:has( .tm-form-page) {
    position: fixed;
    top: 0;
    z-index: 100;
    background-color: rgb(255 255 255 / 90%);
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(1px);
    transition-delay: 100ms;
    transition: opacity 0.5s ease;
    opacity: 0;
    display: none;

    .closeModal {
        position: absolute;
        right: 0;
        top: 0;
        padding: 1rem;
    }

    .tm-form-page {
        box-shadow: 0px 0px 10px var(--border);
        width: 100% ;
        max-width: 700px;
        position: relative;
    }

    label {margin-bottom:0rem;}

    .dialog {
        display: none;
        flex-direction: column;
        position: relative;
        border: 1px solid var(--border);
        padding: 1rem;
        border-radius: 1rem;
    
        background-color: var(--white);

        &.active {
            display: flex;
        }

        h2 {
            font-weight: 600;
            font-size: 1.2rem;
            text-align: center;
        }

        p {
            text-align: center;
        font-size: 0.9rem;
        }
    }
}

.tm-form-container {
    p {font-size: 1.2rem;}

    .dialog {
        display: none;

        &.active {
            display: block;
            padding: 2rem;
            border: 1px solid var(--border);
            border-radius: 1rem;
            margin: 3rem;

            strong {
                display: block;
    margin-bottom: 1rem;
            }
        }
    }
}

.pop-up.active:has( .tm-form-page) {
    opacity: 1;
    
    display: flex;
}

.tm-search-bar.mobile-version {display: none;
}

.mobile-menu-bottom {
    display: none !important;
}

.casos-de-sucesso {
    width: 100%;
    max-width: 100%;
    margin: auto;

    .grid-casos {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}


@media screen and (max-width: 1300px) {  
    header:has(.tm-header) { 
        .tm-search-bar, .tm-cart-link {
            display: none;
        }

        .tm-search-bar.mobile-version {
            display: block;
            margin: 0;
            margin-top: 1rem;
    
            width: 100%;
            max-width: none;

            form {
                margin: 0;
                width: 100%;
                max-width: none;

                .wp-block-search__inside-wrapper {
                    width: 100%;
                    max-width: 100%;

                    input.wp-block-search__input{
                        border-radius: 100px;
                        width: 100%;
                        max-width: none;
                    }
                }
            }
        
        }
    }

    
    .tm-home-content {
        margin-top: -85px !important;
    }
    
}

@media screen and (max-width: 1050px) {
    .tm-header-cta {display: none !important;}

    header:has(.tm-header) {

    .tm-header-wrapper {
        
        display: grid;
        grid-template-columns: 1fr auto;
        row-gap: 0;

        .tm-header-content  {
            padding-left: 0rem !important;
        }
    }

    }

    .tm-home-content {
        margin-top: 0px !important;
    }
}


@media screen and (max-width: 800px) {

    .wp-block-template-part:has(.tm-header) {
        position: relative;
    }

    header:has(.tm-header) {
        .tm-header-wrapper {
            grid-template-columns: 1fr;
        }
    }

    body:has(.tm-header-content.active) {
        overflow: hidden!important;
        main {opacity: 0.1;}


        .tm-header-content  {
            left: 0;
        }
        
        .tm-header-operations {
            left: 0;
        }
    }

    .wp-block-template-part:has(.tm-header)  {
        overflow: inherit;
    }
    #tm-mobile-btn {
     display: block;
    }
 
    .tm-header-content  {
        position: absolute;
        top: 131px;
        left: -100vw;
        width: 100vw !important;
        padding:0 !important;
        background-color:var(--white); 
        border-top: 1px solid var(--border);
        transition: left 0.5s ease;
        nav ul{
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 2rem;
            gap: 2rem;
            
        }
    }

    .tm-service-list .tm-service-item{
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 0 !important;

        & .tm-service-content {
            &.right-content {
                
                align-items: flex-start;
                h2, p {
                    text-align: left;
                    margin-left: 0 !important;
                }
            }
        }
            

        figure {
            position: relative;
        }
        

    }

    .tm-header-cta {display: block !important;}

    .tm-header-logo {
        width: max-content;
        margin: auto !important;
    }

    .tm-header-operations {
        
    position: absolute;
    width: 100vw;
    top: 331px;
    left: -100vw;
    transition: left 0.5s ease;
    justify-content: center !important;
    padding: 1rem !important;
    border: 1px solid var(--border);
    background:  var(--white);
    }
 
    .tm-header-wrapper {
     justify-content: space-between !important;
    }

    .mobile-menu-bottom {
        display: flex !important;
        position: sticky;
        bottom: 0rem;
        left: 0;
        width: 100vw;
        background-color: var(--light-gray);
        gap: 1px !important;
        z-index: 100;
        border-top: 1px solid var(--light-gray);
        box-shadow: 0px 80px 0px white;

        & > div {
            
            background-color: var(--white);
            height: 80px;
            flex: 1;

        }
        /*
        .wp-block-group.highlight{
            height: 120px;
            margin-top: -42px;
            border-top-left-radius: 100px;
            border-top-right-radius: 100px;
            border-top: 2px solid var(--light-gray);

            .wp-block-outermost-icon-block {
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

            .icon-container {
                    aspect-ratio: 1;
                    height: 45px;
            }
        }
        */

        .wp-block-group {
           display: flex;
           flex-direction: column;
           justify-content: center;
           align-items: center;
           gap: 0.5rem ;
           padding: 0;
           
           a {
            display: flex;
            justify-content: center;
            align-items: center;
            text-decoration: none;
 
           }
        }


        svg {
            width: 24px;
            height: 24px;

            
        }

        p {
            font-size: 0.8rem !important;
            text-align: center;
            max-width: 20px;
            margin: 0!important;
         }
    }

    .tm-catalog {
    & .tm-subcategories-filter:has(.wc-block-product-categories-list) {
        & ul {
            display: flex;
            flex-direction: column;
            li {
                flex: 1;
            }
        }
        }
    }

    .tm-catalog-product .woocommerce.wc-block-product-results-count {
        margin-top: auto !important;
        text-align: center;
    }

    .tm-text-container {
        .wp-block-list {
            padding-left: 1.4rem;
        }
    }
    
    .tm-contact-store {
        iframe {
            width: 100% !important;
        }
    }


    .tm-form-page {
        .two-inputs {
            flex-direction: column;
        }
    }
 }


 @media screen and (max-width: 700px) {
    #tm-cover-img {
        opacity: 0.25;
        filter: blur(3px);
    }

    .tm-home-content {
        & .tm-cover {
            .tm-cover-text {  
                width: 100%;
                padding: 2rem 4rem;
            }

        }
        & .wp-block-group:has(figure.tm-about-shape-top) {
            h2 {
                margin-top: 2rem;
            }
        }
        .tm-home-services {
            margin-top: 7rem;

            & > .wp-block-group > p {
                padding: 0rem !important;
            }

            .is-layout-flex:has(div.tm-home-service-item) {
                flex-direction: column;

                img {
                    height: 21rem ;
                }
            }
        }

        .tm-home-history {
            flex-direction: column;

            div:has(>h2) {
                h2, p {
                    text-align: center;
                }
            }

            .tm-home-history-content{
                margin-right: 0 !important;
                padding: 0 2rem !important;
            }
        }
    }

    .tm-contact-banner {
        .tm-contact-banner-content  {
            display: flex;
            flex-direction: column;
    
            > *{
                text-align: center;
            }
    
            .wp-block-buttons {
                position: initial;
                margin-top: 1rem;
                width: 100%;
            }
        }
    }

    .tm-banner-page {
        margin-bottom: 0rem !important;

        h1 {
            display: none;
        }

        .tm-breadcrumb {
            bottom: 0 !important;
            position: inherit !important;
        }
        
        figure {
            display: none;
        }
    }

    .tm-form-container {
        padding: 2rem;

        .two-inputs {
            flex-direction: column;
        }
    }

    .tm-productDetail-container {
        position: relative;
        padding-top: 2rem;
          & .tm-breadcrumb {
            margin-left: -2rem !important;
            left: 0;
            width: calc(100% + 4rem);
            top: -3.2rem;
            z-index: 2;
          }

          .wp-block-buttons {margin: 2rem 0;}
        .wp-block-button, .wp-block-button__link {
            width: 100%;
        }

        & .woocommerce-tabs {
            &::after {
                display: none;
            }
        }

          .tabs {
            display: flex;
            font-size: 0.9rem;
            border-bottom: 1px solid var(--border);
            li {
                border-bottom: 1px solid var(--border);
            }
            li a { font-size: 0.9rem;}
            li:hover {border-left: 0px !important;}
            li.active {
                border-bottom: 1px solid var(--main-color) !important;
                border-left: 0px !important;
            }
        }
    }

    .tm-productDetail-container,
    .entry-content:has(.tm-banner-page) .tm-banner-page, 
    .wp-site-blocks:has(.tm-banner-page) .tm-banner-page {
        & .tm-breadcrumb {
             font-size: 0.9rem;
                background-color: var(--light-gray);
                margin-top: 0 !important;
                padding: 1rem 2rem;
                border-bottom: 1px solid var(--border);
                margin-bottom: 2rem;
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                justify-content: flex-start;
            
            p {
                align-self: flex-start;
            }
                
            p, .wc-block-breadcrumbs { 
            background-color: transparent;
                width: 100%;
                margin: 0 !important;
                padding: 0;
                border-radius: 0;
                color: var(--main-color);
                font-weight: 400;
                display: flex;
                gap: 0.1rem;

                a {
                    width: max-content;
                }

                nav {
                    font-size: 0.9rem;
                    margin-bottom: 0;
                }
        }  
            }
        }   

    .tm-contact-store {
        flex-direction: column;
    }


        .tm-catalog {
            &:has(.tm-catalog-filters) {
                display: flex;
                flex-direction: column;

                .tm-catalog-filters {
                    width: 100%;

                    
                     h2 {
                        border-bottom: 1px solid var(--border);
                        padding-bottom: 1rem;
                    }
                }
            }
            
        }


    .tm-productDetails-details .woocommerce-product-attributes {
        tbody > tr {
            display: flex;
            flex-direction: column;
            overflow: hidden;

           

            th, td {
                width: 100% !important;
                max-width: 100%;
            }
        }
    }

    }

/* 
@media screen and (max-width: 800px) { 

    body { 
        background-color: var(--light-gray);
        &::after {
            content: "Versão mobile em desenvolvimento";
            position: absolute;
            top: 3rem;
            left: 0;
            right: 0;
            z-index: 1000;
            text-align: center;
        }
    }
    body > * {display: none;}
} */
