/* HEADER */
#cabecalho .conteiner {
    max-width: 100%;
    width: 100%;
    padding: 0;
    background: #004673;
}

#cabecalho .conteiner>.row-fluid {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 170px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

/* LOGO */
#cabecalho .logo {
    margin: 0;
}

#cabecalho .logo img {
    max-width: 470px;
    width: 100%;
    height: auto;
}

/* CONTEÚDO DO TOPO */
#cabecalho .conteudo-topo {
    width: 100%;
}

#cabecalho .conteudo-topo.span9 {
    margin-left: 30px;
}

#cabecalho .superior {
    display: none !important;
}

#cabecalho .inferior {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
}

/* BUSCA */
#cabecalho .busca-mobile {
    width: 50%;
    margin-left: 0;
}

#cabecalho .busca {
    border: 0;
    background: transparent;
}

#cabecalho .busca form {
    display: flex;
    height: 40px;
}

#cabecalho .busca input {
    width: 100%;
    height: 40px;
    border: 2px solid #72b99c;
    border-right: 0;
    border-radius: 0;
    padding: 0 20px;
    font-size: 16px;
    color: #666;
    box-sizing: border-box;
}

#cabecalho .busca input::placeholder {
    color: #777;
}

#cabecalho .botao-busca {
    width: 76px;
    height: 40px;
    border: 0;
    background: #7cc6a9 !important;
    color: #fff;
    font-size: 16px;
}

/* ÁREA CONTA */
#cabecalho .inferior .span4.hidden-phone {
    width: 35%;
    display: flex !important;
    justify-content: flex-end;
    margin: 0 0 0 110px;
    /* align-items: center; */
}

#cabecalho .area-conta-custom {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}

#cabecalho .minha-conta-custom {
    display: flex;
    align-items: end;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
}

#cabecalho .minha-conta-custom .icone-user {
    width: 46px;
    height: 46px;
    font-size: 0;
    margin-right: 15px;
    background-size: cover;
    background-image: url('https://ibram.org.br/wp-content/themes/ibram/dist/imgs/icon-user-lj.png');
}

#cabecalho .minha-conta-custom .seta {
    margin-left: 10px;
    font-size: 0;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid #ffffff;
    position: relative;
    bottom: 3px;
}

/* CARRINHO */
#cabecalho .carrinho {
    margin: 0;
}

#cabecalho .carrinho>a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #00a1a9;
    /* min-width: 145px; */
    height: 46px;
    color: #fff;
    text-decoration: none;
    border-radius: 20px 0 0 20px;
}

#cabecalho .carrinho i {
    width: 46px;
    height: 46px;
    margin: 0;
    background: #014673 !important;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cabecalho .carrinho .qtd-carrinho {
    display: block !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    margin-left: 12px;
    margin-right: 10px;
}

#cabecalho .carrinho .vazio-text {
    display: none !important;
}

#cabecalho .carrinho span:not(.qtd-carrinho):not(.vazio-text) {
    display: none !important;
}

/* MENU CATEGORIAS */
#cabecalho .menu.superior {
    display: block !important;
    width: 100%;
    background: #f3f3f3;
    box-shadow: 0 0 12px rgba(0, 0, 0, .18);
    padding: 0 45px;
    box-sizing: border-box;
}

#cabecalho .menu.superior .nivel-um {
    max-width: 1180px;
    height: auto;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

#cabecalho .menu.superior .nivel-um>li {
    border: 0;
    display: flex;
    align-items: center;
    padding: 0;
}

#cabecalho .menu.superior .nivel-um>li>a {
    color: #004673 !important;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 0;
    margin-right: 26px;
}

#cabecalho .menu.superior .nivel-um>li>a i {
    display: none;
}

#cabecalho .menu.superior .nivel-dois {
    display: flex !important;
    position: static;
    visibility: visible;
    opacity: 1;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#cabecalho .menu.superior .nivel-dois li {
    display: flex;
    align-items: center;
    position: relative;
}

#cabecalho .menu.superior .nivel-dois li::before {
    content: "|";
    color: #00618c;
    margin: 0;
    font-size: 16px;
    position: absolute;
    right: 0;
}

#cabecalho .menu.superior .nivel-dois a {
    color: #004673 !important;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0;
    white-space: nowrap;
}

#cabecalho .minha-conta-custom span:nth-child(1) {
    position: relative;
}

#cabecalho .minha-conta-custom span:nth-child(2) {
    width: 130px;
}

.menu.superior .titulo {
    color: #004673 !important;
}

#cabecalho .menu.superior .nivel-um>li {
    border-top-width: 0 !important;
    margin-top: 0 !important;
}

.menu.superior .nivel-um>li:hover {
    border-top-width: 0 !important;
    margin-top: 0 !important;
}

.menu .nivel-dois li {
    border: 0 !important;
}

/* CONTEUDO */
.listagem .imagem-produto img {
    width: 165px;
    height: 180px;
    object-fit: cover;
    object-position: center center;
}

.listagem .titulo-categoria:first-child {
    margin-top: 0;
}

.listagem .titulo-categoria:hover {
    background: transparent;
    padding-left: 0;
}

#rodape .redes-sociais {
    display: none !important;
}


@media (min-width: 1200px) {
    #cabecalho .row-fluid .span3 {
        width: 37%;
    }
}

#cabecalho .atalho-menu,
#cabecalho .botao.principal {
    display: none !important;
}

/* MOBILE */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    #cabecalho .conteiner {
        background: #004673;
    }

    #cabecalho .conteiner > .row-fluid {
        min-height: 0 !important;
        padding: 28px 16px 24px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 18px !important;
        box-sizing: border-box;
    }

    #cabecalho .row-fluid [class*="span"] {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        min-height: 0 !important;
    }

    /* LOGO */
    #cabecalho .logo {
        width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
    }

    #cabecalho .logo img {
        max-width: 280px !important;
        width: 70vw !important;
        height: auto !important;
        display: inline-block;
    }

    #cabecalho .conteudo-topo,
    #cabecalho .conteudo-topo.span9 {
        width: 100% !important;
        margin-left: 0 !important;
    }

    #cabecalho .inferior {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        align-items: stretch !important;
    }

    /* BUSCA */
    #cabecalho .busca-mobile {
        width: 100% !important;
        margin: 0 !important;
    }

    #cabecalho .busca {
        width: 100% !important;
    }

    #cabecalho .busca form {
        width: 100% !important;
        height: 48px !important;
        display: flex !important;
    }

    #cabecalho .busca input {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        height: 48px !important;
        padding: 0 16px !important;
        font-size: 18px !important;
        border: 2px solid #72b99c !important;
        border-right: 0 !important;
        box-sizing: border-box !important;
    }

    #cabecalho .botao-busca {
        flex: 0 0 58px !important;
        width: 58px !important;
        height: 48px !important;
        background: #7cc6a9 !important;
        border: 0 !important;
    }

    /* Esconde o botão quadrado de categorias do mobile,
       porque o menu já está aparecendo logo abaixo */
    #cabecalho .atalho-menu,
    #cabecalho .botao.principal {
        display: none !important;
    }

    /* MENU CATEGORIAS */
    #cabecalho .menu.superior {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #f3f3f3 !important;
        overflow: hidden !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .16) !important;
    }

    #cabecalho .menu.superior .nivel-um {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 14px 12px !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box !important;
    }

    #cabecalho .menu.superior .nivel-um > li {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #cabecalho .menu.superior .nivel-um > li > a {
        margin-right: 22px !important;
        padding: 0 !important;
        font-size: 17px !important;
        line-height: 1.2 !important;
        letter-spacing: 2px !important;
        white-space: nowrap !important;
    }

    #cabecalho .menu.superior .nivel-dois {
        display: flex !important;
        flex-wrap: nowrap !important;
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #cabecalho .menu.superior .nivel-dois li {
        flex: 0 0 auto !important;
    }

    #cabecalho .menu.superior .nivel-dois a {
        font-size: 16px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        padding: 0 18px 0 0 !important;
    }

    /* CONTA + CARRINHO */
    #cabecalho .inferior .span4.hidden-phone {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }

    #cabecalho .area-conta-custom {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }

    #cabecalho .minha-conta-custom {
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        font-size: 16px !important;
        line-height: 1.15 !important;
    }

    #cabecalho .minha-conta-custom .icone-user {
        flex: 0 0 48px !important;
        width: 48px !important;
        height: 48px !important;
        margin-right: 10px !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    #cabecalho .minha-conta-custom span:nth-child(2) {
        width: auto !important;
        max-width: 160px !important;
        overflow: hidden !important;
    }

    #cabecalho .minha-conta-custom .seta {
        flex: 0 0 auto !important;
        margin-left: 8px !important;
    }

    #cabecalho .carrinho {
        width: auto !important;
        margin: 0 !important;
    }

    #cabecalho .carrinho > a {
        width: 104px !important;
        min-width: 0 !important;
        height: 48px !important;
        padding: 0 10px 0 0 !important;
        border-radius: 24px 0 0 24px !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    #cabecalho .carrinho i {
        flex: 0 0 48px !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 27px !important;
    }

    #cabecalho .carrinho .qtd-carrinho {
        font-size: 17px !important;
        margin-left: 10px !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 420px) {
    #cabecalho .conteiner > .row-fluid {
        padding: 22px 12px 20px !important;
    }

    #cabecalho .logo img {
        max-width: 240px !important;
        width: 72vw !important;
    }

    #cabecalho .minha-conta-custom {
        font-size: 14px !important;
    }

    #cabecalho .minha-conta-custom span:nth-child(2) {
        max-width: 125px !important;
    }

    #cabecalho .carrinho > a {
        width: 92px !important;
    }

    #cabecalho .carrinho i {
        width: 46px !important;
        height: 46px !important;
        flex-basis: 46px !important;
        font-size: 25px !important;
    }
}

@media (max-width: 768px) {

    /* BOTÃO DO MENU MOBILE */
    #cabecalho .atalho-menu {
        display: flex !important;
        width: 58px !important;
        height: 48px !important;
        align-items: center !important;
        justify-content: center !important;
        background: #012d75 !important;
        color: #fff !important;
        border: 0 !important;
        cursor: pointer !important;
    }

    #cabecalho .atalho-menu i {
        color: #fff !important;
        font-size: 24px !important;
    }

    /* MENU FECHADO POR PADRÃO */
    #cabecalho .menu.superior {
        display: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #f3f3f3 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .16) !important;
        overflow: hidden !important;
    }

    /* MENU ABERTO AO CLICAR */
    body.menu-mobile-aberto #cabecalho .menu.superior {
        display: block !important;
    }

    #cabecalho .menu.superior .nivel-um {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 14px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    #cabecalho .menu.superior .nivel-um > li {
        width: 100% !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(0, 70, 115, .15) !important;
    }

    #cabecalho .menu.superior .nivel-um > li > a {
        display: block !important;
        width: 100% !important;
        padding: 14px 8px !important;
        margin: 0 !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        color: #004673 !important;
        letter-spacing: 2px !important;
        box-sizing: border-box !important;
    }

    #cabecalho .menu.superior .nivel-dois {
        display: block !important;
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 0 10px 15px !important;
    }

    #cabecalho .menu.superior .nivel-dois li {
        display: block !important;
        width: 100% !important;
    }

    #cabecalho .menu.superior .nivel-dois li::before {
        display: none !important;
    }

    #cabecalho .menu.superior .nivel-dois a {
        display: block !important;
        padding: 8px 8px !important;
        font-size: 14px !important;
        color: #004673 !important;
        white-space: normal !important;
    }
}

@media (max-width: 768px) {
    #cabecalho .menu.superior {
        display: none !important;
    }

    body.menu-mobile-aberto #cabecalho .menu.superior {
        display: block !important;
    }
}