/**
Theme Name: Resultado de Mestre
Theme URI: https://resultadodemestre.pt
Template: astra
Author: Fábio Ferreira
Author URI: https://fabio-ferreira.vercel.app
Version: 1.0.0
**/
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* header */

.site-header {
    padding: 0 40px;
}

a.madeby-link:hover {
    color: var(--ast-global-color-0) !important;
}

a.menu-link {
    transition: all 0.3s;
    font-weight: bold;
    flex-direction: column;
    color: white !important;
}

a.menu-link::after {
    content: "";
    height: 2px;
    width: 0%;
    background-color: var(--ast-global-color-0);
    transition: all .3s;
    margin-top: -5px;
    opacity: 0;
}

a.menu-link:hover:after {
    opacity: 1;
    content: "";
    width: 100%;
}

a.menu-link:hover {
    color: var(--ast-global-color-0) !important;
}

.wp-block-uagb-container {
    --z-index-desktop: unset !important;
}

.main-header-menu>.menu-item {
    line-height: unset !important;
}

/* Landing Page */

.dynamic-category-title {
    color: #fff;
    font-size: var(--wp--preset--font-size--medium);
    text-align: center;
}

.ast-plain-container.ast-no-sidebar .entry-content>.alignfull,
.ast-page-builder-template .ast-no-sidebar .entry-content>.alignfull {
    margin-left: unset;
    margin-right: unset;
}

.uagb-container-inner-blocks-wrap {
    padding: 0px 40px !important
}

.ast-container {
    padding: 0;
    max-width: unset;
}

.ast-container-fluid {
    padding: 0px 40px;
}

.landing-page-title h1 {
    margin-bottom: -10px;
}

.entry-content .wp-block-button__link,
.entry-content .wpforms-submit {
    border: 1px solid var(--ast-global-color-0);
    transition: all .3s;
}

.entry-content .wp-block-button__link:hover,
.entry-content .wpforms-submit:hover {
    background-color: white;
    color: var(--ast-global-color-0);
    transition: all .3s;
}

#produtos {
    height: 300px;
    min-height: unset;
}

.wp-element-button {
    padding: 10px 14px !important;
}

.product-image {
    height: 300px;
}

.product-image img {
    height: 100%;
    border-radius: 5px 5px 0px 0px;
}

.product-categories {
    display: flex;
    flex-direction: column;
}

.wpforms-field-container textarea {
    resize: vertical;
}




@media only screen and (max-width: 921px) {
    .site-header {
        padding: unset;
    }

    a.menu-link {
        color: #333 !important;
    }

}

@media only screen and (max-width: 768px) {
    .uagb-block-49ff26af.wp-block-uagb-image--layout-default figure img {
        border-radius: 0;
    }

}

/* Produtos */

.categories-wrapper {
    display: flex;
    max-width: var(--wp--custom--ast-content-width-size);
    margin: auto;
    padding: 0px 40px;
}

.categories-container {
    margin-top: 40px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    border-bottom: 1px solid #8A8A8A;
}

.categories-container h3 {
    color: #333;
    font-size: 21px;
    font-weight: normal;
    margin: 0;
}

.produtos-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    padding: 0px 40px;
    margin: 40px 0px 20px 0px;
}

.produtos-item-container {
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: box-shadow .25s;
    background-color: white;
    color: #333;
    font-size: 16px;
    opacity: 0;
}

.produtos-item-container h3 {
    color: #333;
    font-size: 21px;
    font-weight: normal;
    margin: 0;
}

.produtos-item-container:hover {
    box-shadow: 0 0 12px rgba(7, 36, 86, .150);
}

.produtos-item-container .product-item-text {
    display: block;
    flex-direction: column;
    padding: 20px 30px;
}

.product-category {
    display: inline;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #e6e6e6;
    line-height: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0 0 0;
    font-weight: bold;
    height: 58px;
}

.pagination span {
    margin: 0 5px;
}

.pagination a {
    color: var(--ast-global-color-0);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
}

.pagination a:hover {
    background-color: var(--ast-global-color-0);
    border: 1px solid var(--ast-global-color-0);
    color: #fff;
}

.pagination .current {
    background-color: var(--ast-global-color-0);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid var(--ast-global-color-0);
}

.pagination .prev,
.pagination .next {
    font-weight: bold;
}

.category-item {
    display: flex;
}

.category-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -1px;
    margin-left: -1px;
    border-radius: 7px;
    height: 38px;
    border: 1px solid #C5C5C5;
    border-bottom-color: #8A8A8A;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding: 0px 20px;
    line-height: 1;
    text-decoration: none;
    transition: all .3s;
}

.category-item a:hover {
    background-color: var(--ast-global-color-0);
    color: #fff;
}

.no-products-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    width: 100%;
    font-size: 24px;
    padding: 0px 40px;
}

.category-item.active-category {
    position: relative;
}

.category-item.active-category::before,
.category-item.active-category::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: transparent;
    position: absolute;
    bottom: -1px;
    left: -10px;
    border-width: 0 1px 1px 0;
    border-style: solid;
    border-color: #8A8A8A;
    border-bottom-right-radius: 7px;
    z-index: 102;
}

.category-item.active-category::after {
    content: '';
    bottom: -1px;
    right: -9px;
    left: unset;
    border-width: 0 0 1px 1px;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: unset;
}

.category-item.active-category a {
    border-color: #8A8A8A;
    border-bottom-color: #fff;
    border-radius: 7px;
    z-index: 100;
    position: relative;
    font-weight: bold;
}

.category-item.active-category a:hover {
    background-color: #fff;
    color: #333;
}

.category-item.active-category a::before,
.category-item.active-category a::after {
    content: '';
    width: 10px;
    height: 9px;
    position: absolute;
    background-color: #fff;
    bottom: 0px;
    left: -1px;
    width: 100%;
    z-index: 101;
    padding: 0 1px;
    box-sizing: unset;
}

.category-item.active-category a::after {
    content: '';
    bottom: -1px;
    right: -9px;
    background-color: #fff;
    width: 100%;
    height: 1px;
    left: unset;
    padding: 0 9px;
}

.category-item.active-category+.category-item a {
    border-bottom-left-radius: 7px;
}

.category-item:has(+ .category-item.active-category) a {
    border-bottom-right-radius: 7px;
}

.ast-plain-container.ast-no-sidebar .entry-content>.alignfull {
    width: 100% !important;
}

.initial-load,
.come-in {
    transform: translateY(150px);
    animation: come-in 0.5s ease forwards;
    opacity: 1;
    transition: opacity .5s;
}

.initial-load:nth-child(3n+1),
.come-in:nth-child(3n+1) {
    animation-delay: 0s;
}

/* Second item in the row */
.initial-load:nth-child(3n+2),
.come-in:nth-child(3n+2) {
    animation-delay: 0.1s;
}

/* Third item in the row */
.initial-load:nth-child(3n+3),
.come-in:nth-child(3n+3) {
    animation-delay: 0.3s;
}

.come-in:nth-child(odd) {
    animation-duration: 0.4s;
}

.not-found-wrapper{
    height: 100%;
}

.not-found-wrapper #page{
    height: 100%;
    display: flex;
    flex-direction: column;
}

.not-found-wrapper .site-header{
    background-color: #333;
}

.not-found-wrapper .site-content{
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.not-found-page{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.not-found-title{
    font-size: 100px;
    line-height: 1;
    color: var(--ast-global-color-0);
    font-weight: 600;
}

.not-found-text{
    font-size: 40px;
}

@keyframes come-in {
    to {
        transform: translateY(0);
    }
}

@keyframes initial-come-in {
    to {
        transform: translateY(0);
    }
}

@media only screen and (max-width: 1050px) {
    .produtos-container {
        grid-template-columns: 1fr 1fr;
    }

    .product-image img {
        width: 100%;
        object-fit: cover;
    }
}

@media only screen and (max-width: 976px) {
    .uagb-container-inner-blocks-wrap {
        padding: 0px;
    }

    .uagb-block-cec217ed.wp-block-uagb-advanced-heading,
    .uagb-block-ffbecba9.wp-block-uagb-advanced-heading {
        padding: 0;
    }

    .pagination {
        padding-bottom: 50px;
    }

    .categories-container {
        border-bottom: none;
    }

    .categories-wrapper {
        gap: 10px;
        flex-wrap: wrap;
    }

    .category-item a {
        border: 1px solid #C5C5C5;
        border-radius: 5px;
    }

    .category-item a:hover {
        border: 1px solid var(--ast-global-color-0);
    }

    .category-item.active-category a {
        background-color: var(--ast-global-color-0);
        color: #fff;
        border: 1px solid var(--ast-global-color-0);
        border-radius: 5px;
    }

    .category-item.active-category::before,
    .category-item.active-category::after {
        content: none;
    }

    .category-item.active-category a::before,
    .category-item.active-category a::after {
        content: none;

    }

}

@media only screen and (max-width: 720px) {
    .produtos-container {
        grid-template-columns: 1fr;
    }
}