/* Container adjustments */
#cabecalho>.conteiner>.row-fluid {
    width: 1180px;
    max-width: 100%;
    margin: auto;
    height: 103px;
}

/* Logo adjustments */
.logo a img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    max-height: 100%;
    max-width: 89px;
}

/* Search icon adjustment */
.icon-search:before {
    content: none;
}

/* Search button adjustment */
#cabecalho>.conteiner .main-header .busca #form-buscar .botao-busca:before {
    content: "\f002";
}

/* Action menu icons */
#cabecalho>.conteiner .main-header .conteudo-topo .actions-menu>* .carrinho>a>i,
#cabecalho>.conteiner .main-header .conteudo-topo .actions-menu>*>a>i {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    z-index: 1;
    border-radius: 100%;
    color: #fff;
    font-size: 23px;
    background: #451f55;
}

/* Search input field */
#cabecalho>.conteiner .main-header .busca #form-buscar input {
    width: 428px;
    padding-left: 39px;
    border-color: #ddd;
    background: #f1f1f1;
    font-weight: 400;
    box-sizing: border-box;
}

/* Remove background from search icon */
#cabecalho>.conteiner .main-header .conteudo-topo .actions-menu>.busca>i {
    background: none;
}

/* Search button */
#cabecalho>.conteiner .main-header .busca #form-buscar .botao-busca {
    right: 0;
    height: 40px;
    padding: 0 10px;
    color: #451f55;
    font-size: 18px;
    background: none;
}

/* Menu styling */
#cabecalho .menu.superior {
    margin-top: 0;
    text-align: center;
    background: #f2f2f2;
    display:block;
}

#cabecalho .menu.superior .nivel-um {
    display: inline-flex;
    flex-flow: row wrap;
    max-width: 100%;
    margin: auto;
    color: #3d3d3d;
    font-weight: 400;
    background: inherit;
}

/* Hide separators between menu items */
#cabecalho .menu.superior .nivel-um>li:nth-child(n+2):before {
    content: "";
    display: block;
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 0;
    border-left: none;
}

/* Menu item text adjustments */
#cabecalho .menu.superior .nivel-um>li>a strong {
    margin: 14px 0;
    font-size: inherit;
    font-weight: inherit;
}

/* Search input field radius */
input#auto-complete {
    border-radius: 32px;
}

/* Menu item order adjustments */
li.menu-login {
    order: 2;
}

li.menu-carrinho {
    order: 1; /* Change order to 1 */
}

li.visible-phone {
    order: 3; /* Change order to 3 */
}

/* Section banners margin */
.secao-banners {
    margin-top: 20px;
}

/* Hide caret icons */
i.fa.fa-caret-left,
i.fa.fa-caret-right {
    display: none !important;
}


.floating-whatsapp {
    display:none;
}


#corpo .listagem .listagem-item .acoes-produto .botao {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 110px;
    padding: 0;
    border: 0;
    border-radius: 100%;
    font-size: 0;
    font-weight: 400;
    letter-spacing: 0;
    background-image: none;
    transform: translate(-50%, -50%);
    pointer-events: all;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 900;
    width: 180px;
    height: 10px;
    border-radius: 50%;
    font-size: 32px;
    text-align: center;
    transition: .25s ease;
}

.logo-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 51px;
    left: -51px;
    z-index: 900;
    width: 180px;
    height: 10px;
    font-size: 32px;
    text-align: center;
    transition: .25s ease;
}

/* Media queries for responsive design */
@media screen and (max-width: 767px) {
    #cabecalho>.conteiner .main-header .conteudo-topo .actions-menu .menu-carrinho {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
    }
    
    #cabecalho .menu-handler {
        appearance: none;
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        right: 0;
        width: 54px;
        height: 54px;
        z-index: 9999;
        border: 0;
        color: var(--principal, #555);
        background: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    
    #cabecalho .logo img {
        position: relative;
        max-height: 60px;
        margin: 0 auto;
        padding: 0 15px;
        -o-object-fit: scale-down;
        object-fit: scale-down;
        box-sizing: border-box;
    }
    
    .icon-search:before {
        content: none;
    }
    
    #cabecalho>.conteiner .main-header .conteudo-topo .actions-menu>.busca>i {
        background: none;
    }
}

@media (max-width: 768px) {
    /* Header adjustments for mobile */
    .main-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .conteudo-topo {
        order: 2;
    }

    .menu-handler {
        display: block;
        background-color: #f8f8f8;
        border: none;
        font-size: 24px;
        padding: 10px;
        cursor: pointer;
    }

    .menu-handler:focus {
        outline: none;
    }

    .menu.superior {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .menu.superior ul {
        flex-direction: column;
        width: 100%;
    }

    .menu.superior li {
        width: 100%;
        text-align: center;
    }

    .menu.superior a {
        display: block;
        width: 100%;
        padding: 15px;
    }

    .visible-phone {
        display: none !important;
    }

    .menu-login {
        display: none !important;
    }
    
    #cabecalho>.conteiner .main-header .busca #form-buscar input {
        width: 320px;
    }
    
    #cabecalho>.conteiner .main-header .conteudo-topo .actions-menu .menu-carrinho {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 9999;
    }
    
    #cabecalho .menu-handler {
        appearance: none;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        right: 0;
        width: 54px;
        height: 54px;
        z-index: 9999;
        border: 0;
        color: #451f55;
        background: none;
        -webkit-tap-highlight-color: transparent;
    }
    
        #cabecalho>.conteiner .main-header .busca {
        grid-column: 1;
        grid-row: 2 / 3;
        border-top: 20px solid transparent;
    }
    
}

/* Toggle menu on button click */
.menu-handler.active + .menu.superior {
    display: flex;
}
