/*
|--------------------------------------------------------------------------
| DIGIFLEXO ERP PRO
| VIEWPORT.CSS
|--------------------------------------------------------------------------
| Versão: 6.2.2
|--------------------------------------------------------------------------
| RESPONSABILIDADE
|--------------------------------------------------------------------------
| Controla SOMENTE o macro da Viewport Web ERP.
| Não controla galeria, tabs, thumbs, zoom, inputs, botões, frete ou checkout.
|--------------------------------------------------------------------------
*/

:root {
    --dfx-content-width: 1400px;
    --dfx-gap: 48px;
    --dfx-main-padding-x: 0;
    --dfx-section-spacing: 25px;
    --dfx-separator-color: #ddd;
}

/*
|--------------------------------------------------------------------------
| BODY ERP
|--------------------------------------------------------------------------
*/

html,
body.dfx-erp-active {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #fff !important;
}

/*
|--------------------------------------------------------------------------
| LIBERA CONTAINERS ASTRA/WOO SOMENTE NA ROTA ERP
|--------------------------------------------------------------------------
*/

body.dfx-erp-active #page,
body.dfx-erp-active #content,
body.dfx-erp-active .site-content,
body.dfx-erp-active #primary,
body.dfx-erp-active .ast-container,
body.dfx-erp-active #content .ast-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/*
|--------------------------------------------------------------------------
| VIEWPORT ERP
|--------------------------------------------------------------------------
*/

.dfx-erp-page {
    width: 100%;
    margin: 0;
    padding: var(--dfx-section-spacing) 0 0;
    box-sizing: border-box;
    background: #fff;
    position: relative;
}

/*
|--------------------------------------------------------------------------
| SEPARADOR CABEÇALHO → CONTEÚDO ERP
|--------------------------------------------------------------------------
*/

.dfx-erp-page::before {
    content: "";
    position: absolute;

    top: 0;
    left: 50%;

    width: 100vw;
    height: 1px;

    background: var(--dfx-separator-color);

    transform: translateX(-50%);
}

/*
|--------------------------------------------------------------------------
| SEPARADOR CONTEÚDO ERP → RODAPÉ
|--------------------------------------------------------------------------
*/

.dfx-erp-page::after {
    content: "";
    position: absolute;

    bottom: 0;
    left: 50%;

    width: 100vw;
    height: 1px;

    background: var(--dfx-separator-color);

    transform: translateX(-50%);
}

/*
|--------------------------------------------------------------------------
| CONTAINER PRINCIPAL ERP
|--------------------------------------------------------------------------
*/

.dfx-erp-main {
    width: 100%;
    max-width: var(--dfx-content-width);
    margin: 0 auto;
    padding: 0 var(--dfx-main-padding-x);
    box-sizing: border-box;
}

/*
|--------------------------------------------------------------------------
| GRID PRINCIPAL ERP
|--------------------------------------------------------------------------
*/

.dfx-erp-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
    gap: var(--dfx-gap);
    align-items: start;

    width: 100%;
    margin: 0;
    padding: 0;

    height: auto;
    min-height: auto;

    box-sizing: border-box;
}

/*
|--------------------------------------------------------------------------
| COLUNAS PRINCIPAIS
|--------------------------------------------------------------------------
*/

.dfx-erp-product-gallery,
.dfx-erp-product-panel {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/*
|--------------------------------------------------------------------------
| SEPARADOR ENTRE COLUNAS E TABS
|--------------------------------------------------------------------------
*/

.dfx-erp-product-body {
    width: 100%;

    margin-top: var(--dfx-section-spacing);
    padding-top: var(--dfx-section-spacing);

    border-top: 0 !important;

    box-sizing: border-box;
    position: relative;
}

.dfx-erp-product-body::before {
    content: "";
    position: absolute;

    top: 0;
    left: 50%;

    width: 100vw;
    height: 1px;

    background: var(--dfx-separator-color);

    transform: translateX(-50%);
}

/*
|--------------------------------------------------------------------------
| SEPARADOR ENTRE TABS E PRODUTOS RELACIONADOS
|--------------------------------------------------------------------------
*/

.dfx-erp-product-related-section {

    margin-top: 10px;
    padding-top: var(--dfx-section-spacing);

    margin-bottom: 0;
    padding-bottom: var(--dfx-section-spacing);

    border-top: 0 !important;

    box-sizing: border-box;
    position: relative;
}

.dfx-erp-product-related-section::before {
    content: "";
    position: absolute;

    top: 0;
    left: 50%;

    width: 100vw;
    height: 1px;

    background: var(--dfx-separator-color);

    transform: translateX(-50%);
}

/*
|--------------------------------------------------------------------------
| SEPARADOR PRODUTOS RELACIONADOS → RODAPÉ
|--------------------------------------------------------------------------
*/

/*
.dfx-erp-product-related-section::after {
    content: "";
    position: absolute;

    bottom: 0;
    left: 50%;

    width: 100vw;
    height: 1px;

    background: var(--dfx-separator-color);

    transform: translateX(-50%);
}
*/

/*
|--------------------------------------------------------------------------
| RESPONSIVO MACRO
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {
    :root {
        --dfx-gap: 32px;
        --dfx-main-padding-x: 18px;
        --dfx-section-spacing: 25px;
    }

    .dfx-erp-product-grid {
        grid-template-columns: 1fr;
    }
}
