/* Joudbee Navbar */

.jbn, .jbn *, .jbn *::before, .jbn *::after { box-sizing: border-box; }

.jbn {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99990;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
}
.admin-bar .jbn { top: 32px; }
@media (max-width: 782px) { .admin-bar .jbn { top: 46px; } }

.jbn ul, .jbn li { list-style: none; margin: 0; padding: 0; }
.jbn li::before, .jbn li::marker { content: none; }
.jbn a { color: inherit; text-decoration: none; box-shadow: none; }
.jbn button {
    -webkit-appearance: none; appearance: none;
    margin: 0; font: inherit; color: inherit; cursor: pointer;
    background: none; border: 0; box-shadow: none; text-transform: none;
}
.jbn-sr {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

body.jbn-solid { padding-top: var(--jbn-h, 84px); }
body.jbn-lock { overflow: hidden; }

/* ---------- Announcement ---------- */
.jbn-announce {
    padding: 8px 16px;
    background: linear-gradient(90deg, #ffd700, #ffa500);
    color: #1a1206;
    text-align: center;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.jbn-announce a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Main bar ---------- */
.jbn-main { position: relative; isolation: isolate; }
.jbn-main::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: var(--jbn-bg, #120d06);
    border-bottom: 1px solid rgba(245, 184, 0, .22);
    transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.jbn--overlay:not(.is-scrolled) .jbn-main::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
    border-bottom-color: transparent;
}
.jbn.is-scrolled .jbn-main::before {
    background: var(--jbn-bg, #120d06);
    background: color-mix(in srgb, var(--jbn-bg, #120d06) 92%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.jbn-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    max-width: 1440px;
    min-height: 88px;
    margin: 0 auto;
    padding: 0 32px;
    transition: min-height .3s ease;
}
.jbn.is-scrolled .jbn-bar { min-height: 68px; }

/* ---------- Logo ---------- */
.jbn .jbn-logo { display: inline-flex; align-items: center; justify-self: start; }
.jbn .jbn-logo img {
    display: block;
    width: auto; max-width: none;
    height: var(--jbn-logo-h, 56px);
    transition: height .3s ease;
}
.jbn.is-scrolled .jbn-logo img { height: calc(var(--jbn-logo-h, 56px) * .8); }
.jbn-logo-text { font-size: 1.5rem; font-weight: 800; color: var(--jbn-accent, #f5b800); }

/* ---------- Desktop navigation ---------- */
.jbn-nav .jbn-menu { display: flex; align-items: center; justify-content: center; gap: 4px; }
.jbn-nav .jbn-menu > li { position: relative; }

.jbn-nav .jbn-menu > li > a {
    display: block;
    padding: 12px 16px 14px;
    color: #fff;
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(90deg, #ffd700, #ffa500) no-repeat 16px calc(100% - 6px) / 0 2px;
    transition: color .25s ease, background-size .35s ease;
}
.jbn-nav .jbn-menu > li:hover > a,
.jbn-nav .jbn-menu > li:focus-within > a,
.jbn-nav .jbn-menu > li.current-menu-item > a,
.jbn-nav .jbn-menu > li.current_page_item > a,
.jbn-nav .jbn-menu > li.current-menu-ancestor > a {
    color: var(--jbn-accent, #f5b800);
    background-size: calc(100% - 32px) 2px;
}

.jbn-nav .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    margin: 0 0 3px 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s ease;
}
.jbn-nav .menu-item-has-children:hover > a::after,
.jbn-nav .menu-item-has-children:focus-within > a::after { transform: rotate(225deg) translate(-2px, -2px); }

/* Dropdown */
.jbn-nav .jbn-menu ul {
    position: absolute;
    top: 100%; left: 50%;
    min-width: 250px;
    padding: 12px 0;
    background: linear-gradient(180deg, #1d1409, #120d06);
    border-top: 2px solid var(--jbn-accent, #f5b800);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 24px 40px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.jbn-nav .jbn-menu li:hover > ul,
.jbn-nav .jbn-menu li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.jbn-nav .jbn-menu ul a {
    display: block;
    padding: 11px 28px;
    color: #f3e6c4;
    font-size: .95rem;
    font-weight: 600;
    border-left: 2px solid transparent;
    transition: color .25s ease, padding-left .25s ease, border-color .25s ease, background-color .25s ease;
}
.jbn-nav .jbn-menu ul a:hover,
.jbn-nav .jbn-menu ul a:focus-visible,
.jbn-nav .jbn-menu ul li.current-menu-item > a {
    color: var(--jbn-accent, #f5b800);
    padding-left: 36px;
    border-left-color: var(--jbn-accent, #f5b800);
    background: rgba(245, 184, 0, .08);
    outline: none;
}

.jbn-sub-toggle { display: none; }
.jbn .jbn-cta.jbn-cta--drawer { display: none; }

/* ---------- Actions ---------- */
.jbn-actions { position: relative; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.jbn .jbn-icon {
    position: relative;
    display: inline-grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    color: #fff;
    transition: background-color .25s ease, color .25s ease;
}
.jbn .jbn-icon svg { display: block; width: 22px; height: 22px; }
.jbn .jbn-icon:hover,
.jbn .jbn-icon[aria-expanded="true"] { background: rgba(245, 184, 0, .15); color: var(--jbn-accent, #f5b800); }

.jbn-cart-count {
    position: absolute; top: 2px; right: 0;
    min-width: 19px; height: 19px;
    padding: 0 5px;
    display: grid; place-items: center;
    border-radius: 999px;
    background: var(--jbn-accent, #f5b800);
    color: #1a1206;
    font-size: 11px; font-weight: 800; line-height: 1;
}
.jbn-cart-count[data-count="0"] { display: none; }

.jbn .jbn-cta {
    display: inline-flex; align-items: center;
    margin-left: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffd700, #ffa500);
    color: #1a1206;
    font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    white-space: nowrap;
    transition: transform .25s ease, box-shadow .25s ease;
}
.jbn .jbn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 165, 0, .35); }

.jbn .jbn-burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; }
.jbn .jbn-burger span {
    position: absolute; left: 11px;
    width: 22px; height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.jbn .jbn-burger span:nth-child(1) { top: 15px; }
.jbn .jbn-burger span:nth-child(2) { top: 21px; }
.jbn .jbn-burger span:nth-child(3) { top: 27px; }
.jbn.is-open .jbn-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.jbn.is-open .jbn-burger span:nth-child(2) { opacity: 0; }
.jbn.is-open .jbn-burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Search panel ---------- */
.jbn-search {
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease, visibility .3s;
}
.jbn-search.is-open { max-height: 130px; visibility: visible; }
.jbn-search form { position: relative; max-width: 720px; margin: 0 auto; padding: 6px 24px 24px; }
.jbn .jbn-search input[type="search"] {
    -webkit-appearance: none; appearance: none;
    display: block; width: 100%; height: 54px; margin: 0;
    padding: 0 60px 0 24px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(245, 184, 0, .4);
    border-radius: 999px;
    color: #fff; font: inherit; font-size: 1rem;
    box-shadow: none;
}
.jbn .jbn-search input[type="search"]::placeholder { color: rgba(255, 255, 255, .6); }
.jbn .jbn-search input[type="search"]:focus { outline: none; border-color: var(--jbn-accent, #f5b800); box-shadow: 0 0 0 3px rgba(245, 184, 0, .25); }
.jbn .jbn-search button {
    position: absolute; top: 6px; right: 30px;
    width: 54px; height: 54px;
    display: grid; place-items: center;
    color: var(--jbn-accent, #f5b800);
}
.jbn .jbn-search button svg { width: 22px; height: 22px; }

/* ---------- Focus ---------- */
.jbn a:focus-visible, .jbn button:focus-visible, .jbn input:focus-visible {
    outline: 2px solid var(--jbn-accent, #f5b800);
    outline-offset: 3px;
}

/* ---------- Backdrop ---------- */
.jbn-backdrop {
    position: fixed; inset: 0; z-index: 99985;
    background: rgba(0, 0, 0, .65);
    opacity: 0; transition: opacity .3s ease;
}
.jbn-backdrop:not([hidden]) { display: block; }
.jbn-backdrop.is-visible { opacity: 1; }

/* ---------- Mobile / tablet ---------- */
@media (max-width: 992px) {
    .jbn-bar { grid-template-columns: 1fr auto; min-height: 70px; padding: 0 16px; gap: 12px; }
    .jbn.is-scrolled .jbn-bar { min-height: 60px; }
    .jbn .jbn-logo img { height: min(var(--jbn-logo-h, 56px), 46px); }
    .jbn.is-scrolled .jbn-logo img { height: min(calc(var(--jbn-logo-h, 56px) * .8), 40px); }

    .jbn .jbn-burger { display: inline-block; }
    .jbn .jbn-cta--desktop { display: none; }

    .jbn-nav {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        z-index: 2;
        width: min(86vw, 360px);
        padding: 88px 24px 32px;
        overflow-y: auto;
        background: linear-gradient(180deg, #1d1409, #120d06);
        border-left: 1px solid rgba(245, 184, 0, .25);
        box-shadow: -20px 0 50px rgba(0, 0, 0, .5);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .35s ease, visibility .35s;
    }
    .admin-bar .jbn-nav { top: 46px; }
    .jbn.is-open .jbn-nav { transform: translateX(0); visibility: visible; }

    .jbn-nav .jbn-menu { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
    .jbn-nav .jbn-menu > li { border-bottom: 1px solid rgba(255, 255, 255, .09); }
    .jbn-nav .jbn-menu > li > a {
        padding: 17px 48px 17px 4px;
        font-size: 1rem;
        background-image: none;
        white-space: normal;
    }
    .jbn-nav .menu-item-has-children > a::after { display: none; }

    .jbn .jbn-sub-toggle {
        position: absolute; top: 8px; right: 0;
        display: grid; place-items: center;
        width: 44px; height: 44px;
        border-radius: 50%;
        color: #fff;
    }
    .jbn .jbn-sub-toggle::before {
        content: "";
        width: 8px; height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translate(-2px, -2px);
        transition: transform .25s ease;
    }
    .jbn .is-open > .jbn-sub-toggle { color: var(--jbn-accent, #f5b800); }
    .jbn .is-open > .jbn-sub-toggle::before { transform: rotate(225deg) translate(-2px, -2px); }

    .jbn-nav .jbn-menu ul {
        position: static;
        min-width: 0;
        max-height: 0; overflow: hidden;
        padding: 0;
        background: none;
        border: 0; border-radius: 0; box-shadow: none;
        opacity: 1; visibility: visible; transform: none;
        transition: max-height .35s ease;
    }
    .jbn-nav .jbn-menu li:hover > ul,
    .jbn-nav .jbn-menu li:focus-within > ul { transform: none; }
    .jbn-nav .jbn-menu li.is-open > ul { max-height: 480px; padding: 0 0 12px; }
    .jbn-nav .jbn-menu ul a { padding: 12px 4px 12px 18px; }
    .jbn-nav .jbn-menu ul a:hover,
    .jbn-nav .jbn-menu ul a:focus-visible { padding-left: 24px; }

    .jbn .jbn-cta.jbn-cta--drawer { display: flex; justify-content: center; width: 100%; margin: 28px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .jbn *, .jbn *::before, .jbn *::after, .jbn-backdrop { transition: none !important; }
}
