
/* ==================================================
   CASA CONTABIL
   HEADER.CSS
   VERSAO 3.0.0

   CABECALHO COMPARTILHADO
   COMPLEMENTO DO STYLE.CSS
   ================================================== */

/* 01. NAVEGACAO PRINCIPAL */

.site-header .main-nav {
    gap: 14px;
}

.site-header .main-nav a {
    font-size: 0.8rem;
    color: #FFFFFF;
    text-decoration: none;
}

.site-header .main-nav a:hover {
    color: #B8935B;
}

.site-header .main-nav a:focus-visible {
    outline: 2px solid #B8935B;
    outline-offset: 5px;
}

/* 02. IDENTIDADE VISUAL */

.site-header .brand {
    color: #FFFFFF;
}

.site-header .brand-mark {
    background: #B8935B;
    color: #0A2540;
}

.site-header .header-cta {
    color: #0A2540;
}

/* 03. CHECKOUT */

body.cc-checkout {
    padding-top: var(--header-h, 80px);
    background: var(--white, #FFFFFF);
}

.cc-checkout .site-header .brand {
    color: #FFFFFF;
}

.cc-checkout .site-header .brand-mark {
    color: #0A2540;
}

.cc-checkout .site-header .header-cta {
    color: #0A2540;
}

/* 04. CONTADOR DO CARRINHO */

.site-header [data-cart-count] {
    background: #B8935B;
    color: #0A2540;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    padding: 2px 5px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
}

.site-header [data-cart-count][hidden] {
    display: none;
}

/* 05. MENU RESPONSIVO */

@media (max-width: 1200px) {

    .site-header .main-nav {

        position: fixed;

        top: var(--header-h, 80px);

        left: 0;
        right: 0;

        background: var(--navy-900, #0A2540);

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        max-height: 0;

        overflow: hidden;
        visibility: hidden;

        transition: max-height 0.25s ease;

        border-bottom:
            1px solid rgba(184, 147, 91, 0.25);
    }

    .site-header .main-nav.is-open {

        max-height:
            calc(100dvh - var(--header-h, 80px));

        overflow-y: auto;
        visibility: visible;
    }

    .site-header .main-nav a {

        padding: 16px 24px;

        border-top:
            1px solid rgba(255, 255, 255, 0.06);

        font-size: 0.92rem;
    }

    .site-header .main-nav a::after {
        display: none;
    }

    .site-header .header-cta {
        margin-left: auto;
    }

    .site-header .nav-toggle {
        display: flex;
    }
}

/* 06. ACESSIBILIDADE */

@media (prefers-reduced-motion: reduce) {

    .site-header .main-nav {
        transition: none;
    }
}

/* ==================================================
   FIM - HEADER.CSS V3.0.0
   ================================================== */

