/* Dr Sandra menu – scoped to avoid overriding existing theme/WooCommerce */
#masthead .navigation-top {
    vertical-align: middle
}

#masthead .ds-nav {
    font-family: Arial,sans-serif;
    font-size: 14px;
    width: 100%;
    text-align: right;
    clear: none
}

#masthead .ds-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(7px,1vw,18px);
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    max-height: none
}

#masthead .ds-item {
    position: relative;
    display: block;
    padding: 0;
    margin: 0;
    min-height: 0;
    background: none
}

#masthead .ds-top-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
    white-space: nowrap;
    color: #222;
    background: transparent;
    padding: 9px 2px!important;
    margin: 0;
    border: 0;
    box-shadow: none;
    text-decoration: none;
    cursor: pointer
}

#masthead .ds-top-link:hover,#masthead .ds-top-link:focus-visible {
    color: #0f6e56!important
}

#masthead .ds-chevron {
    font-size: 16px;
    line-height: 0;
    transition: transform .2s;
    display: inline-block;
    vertical-align: middle;
    vertical-align: top;
    /* margin-top: -7px; */
    height: 9px;
}

#masthead .ds-item.ds-open .ds-chevron {
    transform: rotate(180deg)
}

#masthead .ds-badge {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    background: #faeeda;
    color: #854f0b;
    padding: 2px 6px;
    border-radius: 5px;
    text-transform: none;
    white-space: nowrap
}

#masthead .ds-cta-item>.ds-top-link {
    background: #e1f5ee!important;
    color: #085041!important;
    border-radius: 8px;
    padding: 10px 12px!important
}

#masthead .ds-account>.ds-top-link {
    font-size: 12px;
    font-weight: 400;
    color: #666!important;
    text-transform: uppercase
}

#masthead .ds-cart>.ds-top-link {
    background: #111!important;
    color: #fff!important;
    border-radius: 6px;
    padding: 10px 14px!important;
    text-transform: uppercase
}

#masthead .ds-submenu {
    position: absolute;
    top: calc(100% + 7px);
    left: -12px;
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity .18s,transform .18s;
    min-width: 240px;
    max-height: none;
    overflow: visible;
    background: white;
    border: 1px solid #e6e4df;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    margin: 0;
    padding: 8px 0;
    z-index: 99999;
    list-style: none;
    text-align: left
}

#masthead .ds-submenu:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px
}

#masthead .ds-item.ds-open>.ds-submenu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none
}

#masthead .ds-submenu li {
    display: block;
    opacity: 1;
    margin: 0;
    padding: 0;
    line-height: 1.3
}

#masthead .ds-sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 10px 16px!important;
    /* color:#222!important; */
    font-size: 13px;
    font-weight: 800;
    text-transform: none;
    white-space: normal;
    background: none;
    text-decoration: none
}

#masthead .ds-sub-link:hover {
    background: #f4f3ef;
    color: #085041!important
}

#masthead .ds-sub-link.sep {
    border-top: 1px solid #e6e4df;
    margin-top: 5px;
    padding-top: 13px!important
}

#masthead .ds-sub-link.accent {
    color: #0f6e56!important;
    font-weight: 600
}

#masthead .ds-sub-link:not(a) {
    color: #888!important;
    cursor: default
}

#masthead .ds-mobile-actions,#masthead .ds-mobile-test {
    display: none
}

@media(max-width: 1190px) {
    #masthead .navigation-top {
        /* width:calc(100% - 207px); */width: 100%;
        padding-right: 0;
    }

    #masthead .ds-nav {
        position: static
    }

    #masthead .ds-mobile-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 15px
    }

    #masthead .ds-mobile-cart {
        font: 600 12px Arial,sans-serif;
        color: #222;
        text-transform: uppercase
    }

    #masthead .ds-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 9px!important;
        background: transparent!important;
        border: 0;
        box-shadow: none;
        /* margin-top: 5px; */
        padding-bottom: 0px!important;
    }

    #masthead .ds-burger span {
        display: block;
        width: 24px;
        height: 2px;
        background: #222;
        transition: transform .2s,opacity .2s
    }

    #masthead .ds-nav.ds-mobile-open .ds-burger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg)
    }

    #masthead .ds-nav.ds-mobile-open .ds-burger span:nth-child(2) {
        opacity: 0
    }

    #masthead .ds-nav.ds-mobile-open .ds-burger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg)
    }

    #masthead .ds-menu-panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 99999;
        max-height: calc(100dvh - 85px);
        overflow-y: auto;
        box-shadow: 0 15px 30px rgba(0,0,0,.12);
        text-align: left;
        padding: 12px 0
    }

    #masthead .ds-mobile-open .ds-menu-panel {
        display: block
    }

    #masthead .ds-mobile-test {
        display: block;
        background: #e1f5ee;
        color: #085041;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        border-radius: 8px;
        margin: 8px 18px 14px;
        padding: 13px
    }

    #masthead .ds-menu {
        display: block;
        max-height: none;
        overflow: visible
    }

    #masthead .ds-item {
        display: block;
        border-top: 1px solid #e6e4df
    }

    #masthead .ds-top-link {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 14px 18px!important;
        font-size: 15px;
        white-space: normal;
        text-align: left
    }

    #masthead .ds-submenu {
        position: static;
        display: none;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 0;
        margin: 0;
        min-width: 0;
        width: 100%;
        transition: none
    }

    #masthead .ds-item.ds-open>.ds-submenu {
        display: block
    }

    #masthead .ds-sub-link {
        padding: 11px 18px 11px 34px!important;
        font-size: 14px;
        border-top: 1px solid #f1f0ec
    }

    #masthead .ds-sub-link.sep {
        margin-top: 0
    }

    #masthead .ds-cta-item {
        display: none
    }

    #masthead .ds-account>.ds-top-link {
        font-size: 14px;
        text-transform: none
    }

    #masthead .ds-cart {
        display: none
    }
}

/* Keep old Twenty Seventeen menu rules from changing our custom navigation. */
#masthead .navigation-top .ds-menu > li:last-child > a.ds-top-link {
    background: #111!important;
    color: #fff!important;
    padding: 10px 14px!important;
}

#masthead .navigation-top .ds-menu > li:hover {
    background: transparent!important;
}

#masthead .navigation-top .ds-menu li {
    float: none!important;
}

@media(max-width: 1190px) {
    #masthead .navigation-top .ds-menu > li:last-child {
        display:none!important
    }

    #masthead .navigation-top .ds-menu > li:hover {
        background: transparent!important;
    }
}
