
@media (min-width:1000px){

    body.bh-dynamic-menu-ready{
        --bh-green:#246b4b;
        --bh-green-dark:#1d593d;
        --bh-text:#283846;
        --bh-blue:#1268b3
    }

    /* substitui visualmente só o desktop original */
    body.bh-dynamic-menu-ready .ct-header,
    body.bh-dynamic-menu-ready header#header.ct-header{
        display:none!important
    }

    .bh-dynamic-header{
        position:relative;
        z-index:99990;
        width:100%;
        background:#fff;
        font-family:inherit
    }

    .bh-dynamic-header *,
    .bh-dynamic-header *::before,
    .bh-dynamic-header *::after{box-sizing:border-box}

    .bh-menu-container{
        width:min(1280px,calc(100% - 48px));
        margin-inline:auto
    }

    /* topo: logo + busca */
    .bh-dynamic-top{
        min-height:88px;
        display:flex;
        align-items:center;
        background:var(--bh-green)
    }

    .bh-dynamic-top-inner{
        display:grid;
        grid-template-columns:minmax(230px,315px) minmax(400px,1fr);
        gap:38px;
        align-items:center
    }

    .bh-dynamic-logo{display:flex;align-items:center;min-width:0}
    .bh-dynamic-logo .custom-logo-link,.bh-fallback-logo{
        display:inline-flex!important;
        align-items:center;
        text-decoration:none
    }

    .bh-dynamic-logo img{
        display:block;
        width:auto!important;
        height:auto!important;
        max-width:305px!important;
        max-height:62px!important;
        object-fit:contain
    }

    .bh-fallback-logo{color:#fff!important;font-size:25px;font-weight:800}

    .bh-dynamic-search{position:relative;width:100%;margin:0!important}
    .bh-dynamic-search input[type="search"]{
        display:block;
        width:100%;
        height:50px;
        padding:0 62px 0 19px;
        margin:0;
        border:1px solid rgba(255,255,255,.75);
        border-radius:12px;
        outline:0;
        background:#fff;
        color:#24333e;
        box-shadow:none;
        font:inherit;
        font-size:16px
    }

    .bh-dynamic-search input[type="search"]::placeholder{color:#8d959b;opacity:1}

    .bh-dynamic-search button{
        position:absolute;
        top:0;
        right:0;
        width:56px;
        height:50px;
        margin:0;
        padding:0;
        display:grid;
        place-items:center;
        border:0;
        border-radius:0 12px 12px 0;
        background:transparent;
        color:var(--bh-green-dark);
        cursor:pointer
    }

    .bh-dynamic-search button:hover,.bh-dynamic-search button:focus{background:#f1f5f2}
    .bh-dynamic-search svg{display:block;width:23px;height:23px}

    /* categorias mãe */
    .bh-dynamic-category-bar{
        position:relative;
        z-index:100000;
        width:100%;
        background:#fff;
        border-bottom:1px solid #dce3df;
        box-shadow:0 2px 5px rgba(0,0,0,.035)
    }

    .bh-dynamic-category-inner{position:relative}

    .bh-root-menu,.bh-root-menu ul{list-style:none!important}

    .bh-root-menu{
        display:flex!important;
        align-items:stretch;
        justify-content:center;
        width:100%;
        min-height:52px;
        margin:0!important;
        padding:0!important
    }

    .bh-root-item{
        position:static!important;
        margin:0!important;
        padding:0!important
    }

    .bh-root-item>a{
        display:flex!important;
        align-items:center;
        justify-content:center;
        min-height:52px;
        padding:0 17px!important;
        color:var(--bh-text)!important;
        background:transparent!important;
        text-decoration:none!important;
        white-space:nowrap;
        font-size:13px!important;
        line-height:1.1!important;
        font-weight:750!important
    }

    .bh-root-item:hover>a,.bh-root-item:focus-within>a{
        color:var(--bh-green-dark)!important;
        background:#f3f7f4!important
    }

    /* mega panel */
    .bh-mega-panel{
        display:none!important;
        position:absolute!important;
        z-index:100010!important;
        top:100%!important;
        left:50%!important;
        transform:translateX(-50%)!important;
        width:min(1220px,calc(100vw - 40px))!important;
        max-width:min(1220px,calc(100vw - 40px))!important;
        max-height:var(--bh-mega-height,calc(100vh - 170px))!important;
        overflow-y:auto!important;
        overflow-x:hidden!important;
        overscroll-behavior:contain;
        -webkit-overflow-scrolling:touch;
        margin:0!important;
        padding:22px!important;
        background:#fff!important;
        border:1px solid #dce3df!important;
        border-top:0!important;
        border-radius:0 0 12px 12px!important;
        box-shadow:0 18px 42px rgba(0,0,0,.15)!important;
        scrollbar-width:thin;
        scrollbar-color:var(--bh-green) #edf2ef
    }

    .bh-root-item:hover>.bh-mega-panel,
    .bh-root-item:focus-within>.bh-mega-panel{
        display:block!important
    }

    .bh-mega-panel::-webkit-scrollbar{width:11px}
    .bh-mega-panel::-webkit-scrollbar-track{background:#edf2ef}
    .bh-mega-panel::-webkit-scrollbar-thumb{
        background:var(--bh-green);
        border:2px solid #edf2ef;
        border-radius:999px
    }

    .bh-mega-grid{
        display:grid!important;
        grid-template-columns:repeat(var(--bh-mega-cols,4),minmax(0,1fr))!important;
        gap:22px 30px!important;
        align-items:start
    }

    .bh-mega-section{
        min-width:0;
        break-inside:avoid
    }

    .bh-mega-section-title{
        display:block!important;
        padding:7px 8px!important;
        margin:0 0 3px!important;
        color:var(--bh-blue)!important;
        background:transparent!important;
        border-radius:7px!important;
        text-decoration:none!important;
        white-space:normal!important;
        font-size:14px!important;
        line-height:1.3!important;
        font-weight:750!important
    }

    .bh-mega-section:not(.has-children) .bh-mega-section-title{
        color:var(--bh-text)!important;
        font-weight:550!important
    }

    .bh-mega-section-title:hover,.bh-mega-section-title:focus{
        color:var(--bh-green-dark)!important;
        background:#f1f6f3!important
    }

    .bh-mega-nested{
        margin:0!important;
        padding:0!important
    }

    .bh-mega-node{
        margin:0!important;
        padding:0!important
    }

    .bh-mega-node>a{
        display:block!important;
        padding:5px 8px!important;
        color:#43515c!important;
        background:transparent!important;
        border-radius:6px!important;
        text-decoration:none!important;
        white-space:normal!important;
        font-size:13px!important;
        line-height:1.3!important
    }

    .bh-mega-node.has-children>a{
        font-weight:700!important;
        color:#354a58!important
    }

    .bh-mega-node>a:hover,.bh-mega-node>a:focus{
        color:var(--bh-green-dark)!important;
        background:#f4f7f5!important
    }

    .bh-depth-3,.bh-depth-4,.bh-depth-5,.bh-depth-6{
        padding-left:12px!important
    }
}

/* mobile permanece 100% com o Blocksy atual */
@media (max-width:999px){
    .bh-dynamic-header{display:none!important}
}
