.nav-burger,
.nav-m-only,
.nav-veil,
.nav-drawer,
.navbar-logo-text .nl-short { display: none; }

.nav-burger {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 0 11px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}
.nav-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--surface);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-burger span:nth-child(2) { width: 70%; }

@media (max-width: 768px) {
    nav.navbar {
        display: grid !important;
        grid-template-columns: auto auto minmax(0, 1fr);
        align-items: center;
        column-gap: 14px;
        height: 60px !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
        border-radius: 999px !important;
    }
    nav.navbar > .nav-burger { display: flex; grid-column: 1; grid-row: 1; justify-self: start; }
    nav.navbar > .navbar-logo { grid-column: 2; grid-row: 1; justify-self: start; gap: 8px; }
    nav.navbar > .navbar-right { grid-column: 3; grid-row: 1; justify-self: end; gap: 0 !important; }
    nav.navbar > .navbar-links { display: none !important; }

    nav.navbar > .navbar-logo .navbar-logo-text { display: none; }
    .navbar-logo-icon { width: 38px !important; height: 38px !important; }
    .navbar-logo-text h2 { font-size: 17px !important; max-width: none !important; line-height: 1.05 !important; letter-spacing: .01em; }
    .navbar-logo-text h2 .nl-rest,
    .navbar-logo-text p .nl-est { display: none; }
    .navbar-logo-text p { display: none !important; }
    .navbar-logo-text p .nl-short { display: inline; }

    .navbar-right .nav-m-only { display: flex; order: 0; }
    .navbar-right .notif { order: 1; }
    .navbar-right .cart-peek-wrap,
    .navbar-right > .navbar-cart { order: 2; }
    .navbar-right .user-pill { order: 3; }
    .navbar-right .nav-icon,
    .navbar-right .navbar-cart,
    .navbar-right .notif-btn {
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 40px;
        padding: 0 !important;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: rgba(255, 255, 255, .92);
        cursor: pointer;
    }
    .navbar-right .nav-icon .icon,
    .navbar-right .navbar-cart .icon,
    .navbar-right .notif-btn .icon { width: 22px; height: 22px; }
    .navbar-right .nav-icon:active,
    .navbar-right .navbar-cart:active,
    .navbar-right .notif-btn:active { background: rgba(255, 255, 255, .12); }
    .navbar-right .user-pill { width: 38px; height: 40px; padding: 0 !important; justify-content: center; border-radius: 999px; background: transparent; }
    .navbar-right .user-pill > .icon { width: 22px; height: 22px; color: rgba(255, 255, 255, .92); }
    .navbar-right .user-pill .user-pill-photo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
    .navbar-right .cart-badge { top: 3px; right: 2px; }

    /* Menu */
    html.nav-menu-open { overflow: hidden; }
    .nav-veil {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 3000;
        background: rgba(34, 24, 16, .5);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s;
    }
    .nav-veil.open { opacity: 1; visibility: visible; }
    .nav-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 3001;
        width: min(86vw, 340px);
        padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
        background: var(--surface);
        color: var(--ink);
        border-radius: 0 26px 26px 0;
        box-shadow: 24px 0 60px rgba(34, 24, 16, .28);
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        transform: translateX(-104%);
        transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility .32s;
    }
    .nav-drawer.open { visibility: visible; transform: none; }

    .nm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .nm-brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
    .nm-brand .navbar-logo-icon { width: 40px !important; height: 40px !important; }
    .nm-brand .navbar-logo-text h2 { color: var(--ink); }
    .nav-drawer .nm-brand .navbar-logo-text p { display: block !important; margin-top: 2px; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
    .nm-close {
        flex: none;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 50%;
        background: var(--surface-2);
        color: var(--ink);
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }
    .nm-search {
        display: flex;
        align-items: center;
        gap: 10px;
        height: 48px;
        margin: 18px 0 10px;
        padding: 0 14px;
        border-radius: 14px;
        background: var(--surface);
        border: 1.5px solid var(--border);
        color: var(--text-muted);
    }
    .nm-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 207, 188, .18); }
    .nm-search input {
        flex: 1;
        min-width: 0;
        min-height: 0 !important;
        height: 100%;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--ink);
        font: inherit;
        font-size: 16px !important;
    }
    .nm-links { display: flex; flex-direction: column; gap: 4px; }
    .nm-links a {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 50px;
        padding: 0 14px;
        border-radius: 14px;
        color: var(--ink);
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
    }
    .nm-links a .icon { width: 20px; height: 20px; color: var(--ink-2); }
    .nm-links a:active { background: var(--surface-2); }
    .nm-links a.active,
    .nm-links a[aria-current="page"] { background: var(--brown-dark); color: #fff; }
    .nm-links a.active .icon,
    .nm-links a[aria-current="page"] .icon { color: var(--gold); }
    .nm-count {
        margin-left: auto;
        min-width: 24px;
        padding: 2px 8px;
        border-radius: 999px;
        background: var(--gold);
        color: var(--on-gold);
        font-size: 12px;
        font-weight: 800;
        text-align: center;
    }
    .nm-account {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }
    .nm-user {
        display: grid;
        grid-template-columns: 42px 1fr;
        align-items: center;
        column-gap: 12px;
        padding: 10px 12px;
        border-radius: 14px;
        background: var(--surface);
        color: var(--ink);
        text-decoration: none;
    }
    .nm-user > .icon,
    .nm-user > .user-pill-photo { grid-row: span 2; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
    .nm-user > .icon { padding: 10px; background: var(--surface-2); color: var(--ink-2); }
    .nm-user span { display: block !important; font-size: 15px; font-weight: 700; color: var(--ink); }
    .nm-user small { font-size: 12px; color: var(--text-muted); }
    .nm-account .btn-signout,
    .nm-account .btn-login,
    .nm-account .btn-signup {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        padding: 0 16px;
        border-radius: 999px;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
    }
    .nm-account .btn-signout { background: var(--surface-2); color: var(--ink); }
    .nm-account .btn-login { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); }
    .nm-account .btn-signup { background: var(--brown-dark); color: #fff; border: 0; }
}


@media (prefers-reduced-motion: reduce) {
    .nav-drawer, .nav-veil { transition: none; }
}
