/* ==========================================================
   RODAPÉ — EMIT SPORTS
========================================================== */

/* ---------- LINHA PRINCIPAL ---------- */

.site-primary-footer-wrap {
    padding-top: 45px !important;
    padding-bottom: 45px !important;
}

/* Remove alturas e margens desnecessárias */
.site-primary-footer-wrap,
.site-primary-footer-wrap .ast-builder-grid-row,
.site-primary-footer-wrap .site-footer-section {
    min-height: 0 !important;
}

.site-primary-footer-wrap .widget,
.site-primary-footer-wrap .footer-widget-area,
.site-primary-footer-wrap .ast-builder-html-element {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Títulos */
.site-primary-footer-wrap .widget-title {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
}

/* Listas */
.site-primary-footer-wrap .widget ul {
    margin: 0 !important;
}

.site-primary-footer-wrap .widget li {
    margin-bottom: 8px !important;
    line-height: 1.35 !important;
}

.site-primary-footer-wrap p:last-child,
.site-primary-footer-wrap ul:last-child {
    margin-bottom: 0 !important;
}


/* ==========================================================
   RODAPÉ — DESKTOP
========================================================== */

@media (min-width: 922px) {

    /* Distribuição das quatro colunas */
    .site-primary-footer-wrap .ast-builder-grid-row {
        grid-template-columns:
            1.15fr
            1fr
            1fr
            1.15fr !important;

        column-gap: 55px !important;
        align-items: start !important;
    }

    /* Todas as colunas começam pelo topo */
    .site-primary-footer-wrap .site-footer-section {
        align-self: start !important;
    }

    /* Coluna 1 — logo + redes sociais */
    .site-primary-footer-wrap .site-footer-section-1 {
        transform: translateY(-10px);
    }

    /* Aproxima as redes sociais do logo */
    .site-primary-footer-wrap .site-footer-section-1 img {
        display: block;
        margin-bottom: 0 !important;
    }

    .site-primary-footer-wrap .ast-builder-social-element {
        margin-right: 14px !important;
    }

    /* Coluna 2 — Links úteis */
    .site-primary-footer-wrap .site-footer-section-2 {
        transform: translateY(0);
    }

    /* Coluna 3 — Nossos produtos */
    .site-primary-footer-wrap .site-footer-section-3 {
        transform: translateY(0);
    }

    /* Coluna 4 — contato e pagamentos */
    .site-primary-footer-wrap .site-footer-section-4 {
        transform: translateY(-10px);
    }
}

/* ---------- COLUNA 4 — CONTATO E PAGAMENTO ---------- */

/* Mantém todo o conteúdo alinhado pela esquerda */
.site-primary-footer-wrap .site-footer-section-4,
.site-primary-footer-wrap .site-footer-section-4 .widget,
.site-primary-footer-wrap .site-footer-section-4 .wp-block-group {
    text-align: left !important;
}

/* Espaço entre o e-mail e as formas de pagamento */
.site-primary-footer-wrap .site-footer-section-4 p {
    margin-top: 0 !important;
    margin-bottom: 26px !important;
}

/* Imagem das formas de pagamento alinhada com o e-mail */
.site-primary-footer-wrap .site-footer-section-4 img {
    display: block !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    transform: translateX(-12px);
}

/* ==========================================================
   RODAPÉ — MOBILE
   Somente faixa inferior
========================================================== */

@media (max-width: 767px) {

    /* ---------- FAIXA INFERIOR ---------- */

    .site-below-footer-wrap {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }

    .site-below-footer-wrap .ast-builder-grid-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .site-below-footer-wrap .site-footer-section {
        width: 100% !important;
        max-width: none !important;
        flex: 0 0 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Políticas + Cookies + Termos em uma linha */
    .site-below-footer-wrap .footer-nav-wrap .astra-footer-horizontal-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .site-below-footer-wrap .footer-nav-wrap .menu-item {
        margin: 0 !important;
    }

    .site-below-footer-wrap .footer-nav-wrap .menu-link {
        padding: 0 !important;
        white-space: nowrap !important;
        font-size: 12px !important;
    }

    /* EMIT ARTIGOS ESPORTIVOS */
    .site-below-footer-wrap .ast-builder-html-element {
        width: 100% !important;
        text-align: center !important;
        margin: 20px 0 !important;
    }

    /* Copyright */
    .site-below-footer-wrap .ast-footer-copyright {
        width: 100% !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .site-below-footer-wrap .ast-footer-copyright p {
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
    }

}