@media screen {
    html.ceo-has-navigation {
        scroll-padding-top: calc(var(--ceo-admin-height, 0px) + var(--ceo-nav-height) + 8px);
    }

    .ceo-has-navigation #wpadminbar {
        position: fixed;
    }

    .ceo-has-navigation .buyer-header,
    .ceo-has-navigation .ceo-product-detail .mast {
        position: sticky;
        top: var(--ceo-admin-height, 0px);
        z-index: 1000;
        background-color: white;
    }

    /* The home navigation originally occupies the first row inside the hero. */
    .ceo-has-navigation #leto-home .hero {
        z-index: 1000;
        padding-top: var(--ceo-nav-height);
    }

    .ceo-has-navigation #leto-home .hero > .nav {
        position: fixed;
        inset: var(--ceo-admin-height, 0px) 0 auto;
        z-index: 1;
    }

    .ceo-nav-scrolled #leto-home .hero > .nav,
    .ceo-has-navigation #leto-home .nav:has(details[open]) {
        background: var(--navy);
    }

    .ceo-has-navigation #leto-home .mobile-nav nav {
        max-height: calc(100dvh - var(--ceo-admin-height, 0px) - var(--ceo-nav-height));
        overflow-y: auto;
    }

    @media (max-width: 740px) {
        .ceo-has-navigation .ceo-product-detail .mast nav {
            overflow-x: auto;
            white-space: nowrap;
        }
    }
}

/* A body-level header uses the same typography and breakpoints as the home hero. */
body > #ceo-store-nav {
    --navy: #0c2137;
    position: sticky;
    top: var(--ceo-admin-height, 0px);
    z-index: 1000;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.3rem;
    padding: 17px clamp(24px, 3.7vw, 68px);
    background: var(--navy);
    color: #fffaf0;
    font: 400 clamp(12.9px, .9718vw, 15.48px)/1.42 Arial, Helvetica, sans-serif;
    letter-spacing: normal;
}
body > #ceo-store-nav * { box-sizing: border-box; }
body > #ceo-store-nav a { color: inherit; text-decoration: none; }
body > #ceo-store-nav a:hover { text-decoration: underline; text-underline-offset: .24em; }
body > #ceo-store-nav :focus-visible { outline: 3px solid #6287bb; outline-offset: 3px; }
body > #ceo-store-nav .brand {
    display: inline-flex;
    align-items: center;
    gap: 17px;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
}
body > #ceo-store-nav .brand img {
    display: block;
    width: clamp(80px, 7.5vw, 120px);
    height: auto;
    border-left: 1px solid #ffffff80;
    padding-left: 18px;
    filter: brightness(0) invert(1);
}
body > #ceo-store-nav .links { display: flex; align-items: center; gap: clamp(14px, 2.25vw, 37px); }
body > #ceo-store-nav .mobile-nav { display: none; }
body > #ceo-store-nav .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .65em 1.35em;
    background: #faf5e9;
    color: #101b29;
    font-family: Georgia, serif;
    font-weight: 700;
}
#ceo-store-nav ~ .buyer-header,
#ceo-store-nav ~ .mast { display: none; }
body.buyer:has(> #ceo-store-nav) > main:has(> .banner:first-child) {
    padding-top: 0;
    margin-top: calc(0px - var(--ceo-nav-height, 76px));
}
body.buyer:has(> #ceo-store-nav) > main > .banner:first-child {
    padding-top: var(--ceo-nav-height, 76px);
}
body.buyer:has(> #ceo-store-nav) .banner > img.banner-img { height: 100%; object-fit: cover; }
html:not(.ceo-nav-scrolled) body:has(> main > .banner:first-child) > #ceo-store-nav:not(:has(details[open])) {
    background: transparent;
}
@media (max-width: 850px) {
    body > #ceo-store-nav { justify-content: flex-start; }
    body > #ceo-store-nav .links { display: none; }
    body > #ceo-store-nav .mobile-nav { display: block; position: relative; margin-left: auto; }
    body > #ceo-store-nav summary { cursor: pointer; padding: 8px; font-weight: 700; }
    body > #ceo-store-nav .mobile-nav nav {
        position: absolute;
        right: 0;
        top: 100%;
        z-index: 4;
        min-width: 165px;
        max-height: calc(100dvh - var(--ceo-admin-height, 0px) - var(--ceo-nav-height, 76px));
        padding: 12px;
        overflow-y: auto;
        background: var(--navy);
        color: white;
    }
    body > #ceo-store-nav .mobile-nav a { display: block; padding: 8px; }
}
@media (max-width: 600px) {
    body > #ceo-store-nav { gap: 8px; padding: 10px 19px; }
    body > #ceo-store-nav .brand { gap: 7px; font-size: 11px; }
    body > #ceo-store-nav .brand img { width: 58px; padding-left: 7px; }
    body > #ceo-store-nav .btn { font-size: 12px; min-height: 34px; padding: 7px 9px; }
}