/* NG Suprema: cards, gaps e faixas de atendimento. Aplicação opcional. */
.home .wd-tabs.wd-products-tabs,
#wd-6adfd88a3cfc2.wd-tabs {
    --wd-row-gap: 30px !important;
}

/* Grade: mantém os estilos nativos da visualização em lista. */
:is(.home .wd-products, #wd-6adfd88a3cfc2 .wd-products):not(.ngs-visualizacao-lista) {
    align-items: stretch;
}
:is(.home .wd-products, #wd-6adfd88a3cfc2 .wd-products):not(.ngs-visualizacao-lista) > .product-grid-item {
    display: flex;
    align-self: stretch;
    min-width: 0;
}
:is(.home .wd-products, #wd-6adfd88a3cfc2 .wd-products):not(.ngs-visualizacao-lista) > .product-grid-item > .product-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
}
:is(.home .wd-products, #wd-6adfd88a3cfc2 .wd-products):not(.ngs-visualizacao-lista) > .product-grid-item .product-element-top {
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}
:is(.home .wd-products, #wd-6adfd88a3cfc2 .wd-products):not(.ngs-visualizacao-lista) > .product-grid-item .product-element-top > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
:is(.home .wd-products, #wd-6adfd88a3cfc2 .wd-products):not(.ngs-visualizacao-lista) > .product-grid-item .product-element-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
:is(.home .wd-products, #wd-6adfd88a3cfc2 .wd-products):not(.ngs-visualizacao-lista) > .product-grid-item .product-element-bottom {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
/* Títulos maiores ficam abreviados em três linhas. */
:is(.home .wd-products, #wd-6adfd88a3cfc2 .wd-products):not(.ngs-visualizacao-lista) > .product-grid-item .wd-entities-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.4;
    height: 4.2em;
    min-height: 4.2em;
    overflow: hidden;
}
:is(.home .wd-products, #wd-6adfd88a3cfc2 .wd-products):not(.ngs-visualizacao-lista) > .product-grid-item .price {
    display: block;
    min-height: 100px;
    margin-bottom: 12px;
}
:is(.home .wd-products, #wd-6adfd88a3cfc2 .wd-products):not(.ngs-visualizacao-lista) > .product-grid-item .wd-add-btn {
    width: 100%;
    margin-top: auto;
}
:is(.home .wd-products, #wd-6adfd88a3cfc2 .wd-products):not(.ngs-visualizacao-lista) > .product-grid-item .wd-add-btn > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .wd-tabs.wd-products-tabs {
        --wd-row-gap: 30px !important;
    }
    :is(.home .wd-products, #wd-6adfd88a3cfc2 .wd-products):not(.ngs-visualizacao-lista) > .product-grid-item .price {
        min-height: 110px;
    }
    /* Remove toda a linha desktop, incluindo seu fundo e padding. */
    .vc_row.ngs-footer-desktop,
    .vc_row.wd-rs-68fa68e325ae2,
    .vc_row:has(> .wpb_column.wd-rs-6adfe4262ae40),
    .vc_row.wd-rs-6adfe48cd12b5,
    .vc_row.vc_custom_1793057941605 {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
    }
    .vc_row.wd-rs-6adfe50e912b1 {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
        height: auto !important;
        min-height: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }
    .vc_row.wd-rs-6adfe50e912b1::before,
    .vc_row.wd-rs-6adfe50e912b1::after {
        display: none !important;
    }
    .vc_row.wd-rs-6adfe50e912b1 > .wpb_column {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        float: none !important;
        margin: 0 !important;
    }
    .vc_row.wd-rs-6adfe50e912b1 > .wpb_column > .vc_column-inner {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .vc_row.wd-rs-6adfe50e912b1 > .wd-rs-6adfe0914e917 {
        order: 1 !important;
    }
    .vc_row.wd-rs-6adfe50e912b1 > .wd-rs-6adfe0ad2b26e {
        order: 2 !important;
    }
    #wd-6adfe093c2a36 {
        margin-bottom: 0 !important;
        text-align: center !important;
    }
    #wd-6adfe079d0927 {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        text-align: center;
    }
    #wd-6adfe079d0927 > a {
        width: 100%;
        min-height: 48px;
        white-space: normal;
        box-sizing: border-box;
    }
}

@media (min-width: 768px) {
    /* Linhas mobile: consultoria, informações, segurança e separador. */
    .vc_row.ngs-footer-mobile,
    .vc_row.wd-rs-67c9a31b4fcba,
    .vc_row.wd-rs-67d31fcee4e9c,
    .vc_row:has(> .wpb_column.wd-rs-6adfe439b754d),
    .vc_row.wd-rs-6adfe50e912b1,
    .vc_row.vc_custom_1793058078681 {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
    }
}

/* Ação principal uniforme, com ou sem contatos no card. */
.product-grid-item .wd-add-btn.wd-add-btn-replace,
.product-grid-item .wd-add-btn:has(> a.button) {
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}
.product-grid-item .wd-add-btn > a.button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 8px 12px !important;
    border: 0 !important;
    margin: 0 !important;
    line-height: 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    white-space: normal !important;
}
.product-grid-item .wd-add-btn > a.button > span {
    line-height: 18px !important;
}

/* Tipografia dos botões do catálogo, incluindo os textos internos do tema. */
.product-grid-item .wd-add-btn > a.button,
.product-grid-item .wd-add-btn > a.button > span,
.product-grid-item .wd-add-btn > a.button .wd-action-text,
.product-grid-item .ngsuprema-contatos-catalogo > a {
    font-size: 12px !important;
    line-height: 18px !important;
    font-family: inherit !important;
}
