* {
    box-sizing: border-box;
}

body {
    padding-top: 155px;
}

.cabecalho-fixo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 99999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header-desktop {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 8px 55px 10px;
    gap: 8px;
}

.linha-topo-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-desktop {
    width: 220px;
    display: flex;
    align-items: center;
}

.logo-desktop img {
    height: 58px;
    width: auto;
    display: block;
}

.whatsapp-desktop {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.link-whatsapp-desktop {
    color: green;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.icone-whatsapp-desktop {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.acoes-topo-desktop {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cliente-dropdown-desktop {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.btn-conta-topo {
    height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 6px;
    background: #f3f3f3;
    color: #0047ff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn-conta-topo span {
    max-width: 170px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.btn-conta-topo:hover {
    background: #e9e9e9;
}

.icone-login-conta {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.menu-conta-dropdown {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 185px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    z-index: 999999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.menu-conta-dropdown a {
    display: block;
    padding: 13px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
}

.menu-conta-dropdown a:hover {
    background: #f2f5ff;
    color: #0047ff;
}

.cliente-dropdown-desktop:hover .menu-conta-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* CARRINHO DO TOPO */

.btn-carrinho-topo {
    position: relative;
    height: 42px;
    width: 48px;
    border-radius: 6px;
    background: #fff;
    color: #0047ff;
    text-decoration: none;
    font-size: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-carrinho-topo:hover {
    background: #f2f5ff;
}

.icone-carrinho-topo {
    font-size: 25px;
    line-height: 1;
}

.badge-carrinho-topo {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff3333;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BUSCA DESKTOP */

.linha-busca-desktop {
    width: 100%;
    display: flex;
    justify-content: center;
}

.busca-desktop {
    width: 100%;
    max-width: 1120px;
}

.busca-desktop form {
    width: 100%;
}

.form-busca-header {
    display: flex;
    gap: 6px;
    width: 100%;
}

.form-busca-header input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 8px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

.form-busca-header input:focus {
    border-color: #0d8cff;
    box-shadow: 0 0 0 2px rgba(13, 140, 255, 0.15);
}

#busca-header-desktop {
    flex: 1.7;
}

#aplicacao-header-desktop {
    flex: 1.7;
}

#referencia-header-desktop {
    flex: 1.1;
}

.btn-buscar-header,
.btn-limpar-header {
    height: 34px;
    padding: 0 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-buscar-header {
    border: none;
    background: #0d8cff;
    color: #fff;
}

.btn-buscar-header:hover {
    background: #006dcc;
}

.btn-limpar-header {
    background: #777;
    color: #fff;
}

.btn-limpar-header:hover {
    background: #555;
}

/* ESCONDE SOMENTE O CARRINHO DA BUSCA MOBILE */

.btn-carrinho-header {
    display: none !important;
}

/* MENU DESKTOP */

.menu-desktop {
    background: #0d8cff;
    display: flex;
    align-items: center;
    padding: 0 55px;
    min-height: 40px;
}

.menu-desktop a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    padding: 10px 14px;
    min-height: 40px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: background 0.3s;
}

.menu-desktop a:hover {
    background-color: #0a6fcc;
}

.menu-desktop a.ativo {
    background-color: #064f99 !important;
    color: #fff !important;
}

.dropdown-categorias {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-conteudo {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 160px;
    z-index: 999999;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.dropdown-conteudo a {
    display: block;
    color: #000;
    padding: 10px 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

.dropdown-conteudo a:hover {
    background: #f2f2f2;
}

.dropdown-categorias:hover .dropdown-conteudo {
    display: block;
}

/* MOBILE */

.header-mobile {
    display: none;
}

.logo-mobile img {
    height: 45px;
    width: auto;
    display: block;
}

.linha-mobile-menu {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.botao-menu-mobile {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.whatsapp-mobile {
    color: green;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.icone-whatsapp-mobile {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cliente-mobile {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-direction: column;
}

.cliente-logado-mobile {
    font-weight: bold;
    color: #003b73;
    text-align: center;
    font-size: 12px;
}

.botoes-cliente-mobile {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.btn-cliente-mobile {
    width: 100%;
    max-width: 180px;
    background: #008cff;
    color: #fff;
    padding: 9px 12px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.btn-sair-mobile {
    width: 100%;
    max-width: 120px;
    background: #ff3333;
    color: #fff;
    padding: 9px 12px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

.busca-mobile {
    width: 100%;
}

.busca-mobile form {
    width: 100%;
}

.busca-mobile input {
    width: 100%;
    height: 38px;
    padding: 6px 10px;
    font-size: 14px;
}

/* MENU LATERAL MOBILE */

.menu-lateral-mobile {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 230px;
    height: auto;
    background: #d5e8fb;
    padding: 15px;
    z-index: 999999;
    border-radius: 0 0 8px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.fechar-menu-mobile {
    background: none;
    border: none;
    color: #000;
    font-size: 32px;
    cursor: pointer;
    margin-bottom: 20px;
}

.menu-lateral-mobile a {
    display: block;
    color: #000;
    margin-bottom: 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

/* RESPONSIVO */

@media (max-width: 768px) {

    body {
        padding-top: 335px;
    }

    .header-desktop,
    .menu-desktop {
        display: none;
    }

    .header-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #fff;
        padding: 8px 12px;
        gap: 8px;
        width: 100%;
    }

    .form-busca-header {
        flex-direction: column;
        gap: 7px;
    }

    .btn-buscar-header,
    .btn-limpar-header {
        width: 100%;
        height: 38px;
    }
}

@media (min-width: 769px) {

    .header-mobile {
        display: none !important;
    }
}