/* =========================================================
   HANZO SERVICES — SHARED NAVBAR
   Isolated from legacy per-page nav CSS via #hanzoNavbar
   ========================================================= */

/* Hide legacy inline nav as soon as shared CSS loads */
nav:not(.navbar):not(.topbar):not(.footer-column) {
    display: none !important;
}

:root {
    --nav-black: #050608;
    --nav-panel: #11151b;
    --nav-red: #a855f7;
    --nav-text: #f5f5f6;
    --nav-muted: #89909c;
}

/* Reserve space for fixed navbar */
body.HANZO-has-navbar {
    padding-top: 95px !important;
}

/* Homepage hero sits under the overlay nav — no black gap at the top */
html:has(body.HANZO-home-hero),
body.HANZO-home-hero,
body.HANZO-has-navbar.HANZO-home-hero {
    padding-top: 0 !important;
}

@media (max-width: 650px) {
    body.HANZO-has-navbar {
        padding-top: 88px !important;
    }

    body.HANZO-has-navbar.HANZO-home-hero {
        padding-top: 0 !important;
    }
}

/* =========================================================
   RESET — override legacy page nav styles
   ========================================================= */

#hanzoNavbar.navbar,
nav.navbar#hanzoNavbar {
    all: unset;
    box-sizing: border-box;
    position: fixed !important;
    top: 15px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 40px) !important;
    max-width: 1024px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 15px 0 22px !important;
    margin: 0 !important;
    background: linear-gradient(180deg, rgb(26, 26, 26), rgb(17, 16, 16)) !important;
    border: 1px solid rgba(82, 68, 68, 0.18) !important;
    border-radius: 32px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.507) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    z-index: 99999 !important;
    overflow: visible !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 14px !important;
}

#hanzoNavbar.navbar::before {
    content: "";
    position: absolute;
    left: 75px;
    right: 75px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent);
    pointer-events: none;
}

#hanzoNavbar .logo {
    all: unset;
    box-sizing: border-box;
    width: 45px !important;
    height: 45px !important;
    flex: 0 0 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin: 0 !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 2 !important;
}

#hanzoNavbar .logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 50% !important;
    filter: none !important;
    transform: none !important;
    pointer-events: none !important;
}

#hanzoNavbar .logo:hover img {
    filter: none !important;
    transform: none !important;
}

#hanzoNavbar .nav-center {
    position: absolute !important;
    left: calc(50% - 30px) !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 490px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    padding: 4px !important;
    margin: 0 !important;
    background: linear-gradient(180deg, #000000 0%, #000000b7 100%) !important;
    border: 1px solid rgba(148, 158, 173, .22) !important;
    border-radius: 23px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 2px 8px rgba(0, 0, 0, .35) !important;
    overflow: visible !important;
    flex: none !important;
    order: unset !important;
}

#hanzoNavbar .nav-link {
    all: unset;
    box-sizing: border-box;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 !important;
    color: #858d99 !important;
    text-decoration: none !important;
    border-radius: 19px !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    min-width: unset !important;
    min-height: unset !important;
    text-shadow: none !important;
    transition: color .18s ease, background .18s ease !important;
}

#hanzoNavbar .nav-link.home { width: 88px !important; }
#hanzoNavbar .nav-link.products { width: 110px !important; }
#hanzoNavbar .nav-link.status { width: 94px !important; }
#hanzoNavbar .nav-link.media { width: 84px !important; }
#hanzoNavbar .nav-link.support { width: 98px !important; }

#hanzoNavbar .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(180deg, #9e3dff 0%, #8a25ef 48%, #841ee9 100%) !important;
    box-shadow: 0 3px 12px rgba(140, 25, 255, .30), inset 0 1px 1px rgba(255, 255, 255, .18) !important;
    border: none !important;
    text-shadow: none !important;
}

#hanzoNavbar .nav-link:hover {
    color: #d9dde3 !important;
    background: rgba(255, 255, 255, .045) !important;
    border: none !important;
    text-shadow: none !important;
}

#hanzoNavbar .nav-link.active:hover {
    color: #ffffff !important;
    background: linear-gradient(180deg, #a54aff 0%, #8e2af1 50%, #831de9 100%) !important;
    border: none !important;
    text-shadow: none !important;
}

#hanzoNavbar .nav-link.products:hover {
    color: #f1f2f4 !important;
    background: rgba(255, 255, 255, .045) !important;
    border: none !important;
}

#hanzoNavbar .icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    flex: 0 0 16px;
}

#hanzoNavbar .icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#hanzoNavbar .nav-right {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    order: unset !important;
}

#hanzoNavbar .nav-preference {
    position: relative;
}

#hanzoNavbar .preference-trigger {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    color: #f5f5f6;
    background: #0c0e13;
    border: 1px solid rgba(148, 158, 173, .16);
    border-radius: 22px;
    font: 700 13px/1 Inter, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

#hanzoNavbar .preference-trigger:hover,
#hanzoNavbar .nav-preference.open .preference-trigger {
    background: #12151c;
    border-color: rgba(255, 255, 255, .26);
}

#hanzoNavbar .preference-trigger:focus-visible,
#hanzoNavbar .preference-menu button:focus-visible,
#hanzoNavbar .nav-discord:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

#hanzoNavbar .preference-trigger > svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: #7f8795;
    stroke-width: 2;
    transition: transform .18s ease;
}

#hanzoNavbar .nav-preference.open .preference-trigger > svg { transform: rotate(180deg); }
#hanzoNavbar .selector-flag,
.nav-mobile-preferences .selector-flag { width: 24px; height: 18px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px #ffffff24; }
#hanzoNavbar .current-language-name { max-width: 58px; overflow: hidden; text-overflow: ellipsis; }

#hanzoNavbar .preference-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 224px;
    max-height: min(430px, calc(100vh - 100px));
    overflow: auto;
    padding: 10px;
    color: #f5f5f6;
    background: #101218;
    border: 1px solid #282b35;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 100005;
}

#hanzoNavbar .nav-preference.open .preference-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#hanzoNavbar .preference-label {
    display: block;
    padding: 7px 10px 9px;
    color: #818898;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

#hanzoNavbar .preference-menu button {
    width: 100%;
    min-height: 38px;
    display: grid;
    grid-template-columns: 28px 45px 1fr 18px;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    color: #c5cad4;
    background: transparent;
    border: 0;
    border-radius: 9px;
    text-align: left;
    font: 600 13px/1.2 Inter, sans-serif;
    cursor: pointer;
}

#hanzoNavbar .language-menu button { grid-template-columns: 28px 1fr 18px; }
#hanzoNavbar .preference-menu button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
#hanzoNavbar .preference-menu button[aria-selected="true"] { color: #a54aff; background: rgba(152, 48, 255, .08); }
#hanzoNavbar .preference-menu button small { color: #777f8e; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#hanzoNavbar .preference-menu button > svg { width: 17px; height: 17px; fill: none; stroke: #438cff; stroke-width: 2.2; opacity: 0; }
#hanzoNavbar .preference-menu button[aria-selected="true"] > svg { opacity: 1; }
#hanzoNavbar .selector-symbol { color: #858d99; text-align: center; }

#hanzoNavbar .nav-discord {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #5865f2;
    border-radius: 50%;
    box-shadow: 0 5px 16px rgba(57, 68, 202, .35);
    transition: transform .18s ease, filter .18s ease;
}
#hanzoNavbar .nav-discord:hover { transform: translateY(-1px); filter: brightness(1.1); }
#hanzoNavbar .nav-discord svg { width: 22px; height: 22px; }

#hanzoNavbar .nav-shop-cart,
.nav-mobile-preferences .nav-shop-cart {
    position: relative;
    height: 42px;
    min-width: 118px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    color: #fff;
    background: linear-gradient(180deg, #9f3fff 0%, #8922ef 56%, #740fd9 100%);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 7px 18px rgba(135, 31, 239, .24), inset 0 1px 0 rgba(255, 255, 255, .15);
    font: 700 14px/1 Inter, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
#hanzoNavbar .nav-shop-cart:hover,
.nav-mobile-preferences .nav-shop-cart:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(135, 31, 239, .34), inset 0 1px 0 rgba(255, 255, 255, .17);
}
#hanzoNavbar .nav-shop-cart:focus-visible,
.nav-mobile-preferences .nav-shop-cart:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#hanzoNavbar .nav-shop-cart > svg,
.nav-mobile-preferences .nav-shop-cart > svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#hanzoNavbar .nav-shop-cart .HANZO-nav-cart-count,
.nav-mobile-preferences .nav-shop-cart .HANZO-nav-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    color: #fff;
    background: #8c18ff;
    border: 2px solid #101218;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1;
}
#hanzoNavbar .nav-shop-cart .HANZO-nav-cart-count.empty,
.nav-mobile-preferences .nav-shop-cart .HANZO-nav-cart-count.empty { display: none; }

#hanzoNavbar .search {
    width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #858d99;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer;
    padding: 0;
    min-width: unset !important;
    min-height: unset !important;
    transition: color .18s ease;
}

#hanzoNavbar .search:hover {
    color: #ffffff;
    border: none !important;
    background: transparent !important;
}

#hanzoNavbar .search svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
}

#hanzoNavbar .HANZO-nav-cart-btn {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    height: 40px !important;
    color: #858d99 !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    padding: 0 !important;
    min-width: unset !important;
    min-height: unset !important;
    transition: color .18s ease !important;
}

#hanzoNavbar .HANZO-nav-cart-btn:hover {
    color: #ffffff !important;
    border: none !important;
    background: transparent !important;
}

#hanzoNavbar .HANZO-nav-cart-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#hanzoNavbar .customer {
    width: 172px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, #a244ff 0%, #8c27f0 50%, #7d1bdf 100%) !important;
    border: none !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .35) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    min-width: unset !important;
    min-height: unset !important;
    transition: filter .15s ease, transform .15s ease !important;
}

#hanzoNavbar .customer:hover {
    filter: brightness(1.06) !important;
    transform: translateY(-1px) !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .4) !important;
}

#hanzoNavbar .nav-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    background: rgba(255, 255, 255, .06) !important;
    border-radius: 12px;
    color: #f5f5f6;
    cursor: pointer;
    margin-left: auto;
    margin-right: 8px;
    padding: 0;
    min-width: unset !important;
    min-height: unset !important;
    transition: background .15s ease;
}

#hanzoNavbar .nav-mobile-toggle:hover {
    background: rgba(255, 255, 255, .1) !important;
    border: none !important;
    color: #fff !important;
}

#hanzoNavbar .nav-mobile-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* =========================================================
   LEGACY CLASS ALIASES (kept for compatibility)
   ========================================================= */

.navbar {
    position: fixed;
    top: 15px;
    left: 20px;
    width: calc(100% - 40px);
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 15px 0 22px;
    background: linear-gradient(180deg, rgba(12, 15, 20, .97), rgba(7, 9, 13, .97));
    border: 1px solid rgba(148, 158, 173, .18);
    border-radius: 32px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 99999;
    transform: none;
}

.navbar .logo {
    width: 45px;
    height: 48px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
}

.navbar .logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 448px;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 4px;
    background: linear-gradient(180deg, #15191f 0%, #101419 100%);
    border: 1px solid rgba(148, 158, 173, .22);
    border-radius: 23px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 2px 8px rgba(0, 0, 0, .35);
}

.nav-link {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    color: #858d99;
    text-decoration: none;
    border-radius: 19px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}

.nav-link.home { width: 96px; }
.nav-link.products { width: 120px; }
.nav-link.status { width: 101px; }
.nav-link.support { width: 111px; }

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(180deg, #9e3dff 0%, #8a25ef 48%, #841ee9 100%);
    box-shadow: 0 3px 12px rgba(140, 25, 255, .30), inset 0 1px 1px rgba(255, 255, 255, .18);
}

.nav-link.active:hover {
    background: linear-gradient(180deg, #a54aff 0%, #8e2af1 50%, #831de9 100%);
}

.nav-link.products:hover {
    color: #f1f2f4;
    background: linear-gradient(180deg, #3c424a 0%, #343a42 100%);
}

.nav-link.status:hover,
.nav-link.support:hover {
    color: #d9dde3;
    background: rgba(255, 255, 255, .045);
}

.navbar .icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    flex: 0 0 16px;
}

.navbar .icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar .search {
    width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #858d99;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: color .18s ease;
}

.navbar .search:hover {
    color: #ffffff;
}

.navbar .search svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
}

.search-panel {
    position: fixed;
    top: 90px;
    right: 35px;
    width: min(360px, calc(100vw - 40px));
    display: none;
    flex-direction: column;
    z-index: 100000;
}

.search-panel.open {
    display: flex;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 48px;
    background: #11151b;
    border: 1px solid rgba(148, 158, 173, .25);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.search-box svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: #858d99;
    stroke-width: 1.65;
    stroke-linecap: round;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
}

.search-box input::placeholder {
    color: #858d99;
}

.search-results {
    margin-top: 8px;
    max-height: 320px;
    overflow-y: auto;
    background: #11151b;
    border: 1px solid rgba(148, 158, 173, .2);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
    display: none;
}

.search-results.has-results {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #f5f5f6;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    transition: background .15s ease;
}

.search-result-item:last-child {
    border-bottom: 0;
}

.search-result-item:hover,
.search-result-item.focused {
    background: rgba(255, 255, 255, .06);
}

.search-result-item img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    background: #1a1f27;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 12px;
    color: #858d99;
    margin-top: 2px;
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: #858d99;
    font-size: 14px;
}

.search-view-all {
    display: block;
    padding: 12px 16px;
    text-align: center;
    color: #a54aff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.search-view-all:hover {
    background: rgba(255, 255, 255, .04);
}

/* =========================================================
   CART
   ========================================================= */

.navbar .cart,
.navbar .HANZO-nav-cart-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    color: #858d99;
    text-decoration: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    padding: 0;
    transition: color .18s ease;
}

.navbar .cart:hover,
.navbar .HANZO-nav-cart-btn:hover {
    color: #ffffff;
}

.HANZO-nav-cart-count {
    background: #a855f7;
    color: #fff;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 5px;
    margin-left: 2px;
}

.HANZO-nav-cart-count.empty {
    display: none;
}

.customer-arrow {
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-arrow svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.nav-mobile-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.nav-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 85vw);
    height: 100%;
    background: linear-gradient(180deg, #12161c 0%, #0a0c10 100%);
    border-right: 1px solid rgba(148, 158, 173, .15);
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    padding: 24px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-mobile-drawer.open {
    transform: translateX(0);
}

.nav-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav-mobile-drawer-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-mobile-close {
    width: 36px;
    height: 36px;
    border: 0;
    background: rgba(255, 255, 255, .06);
    border-radius: 10px;
    color: #f5f5f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-mobile-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.nav-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #c5c9d0;
    text-decoration: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}

.nav-mobile-link:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.nav-mobile-link.active {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1px solid rgba(148, 158, 173, .2);
}

.nav-mobile-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.nav-mobile-search {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: 44px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
}

.nav-mobile-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
}

.nav-mobile-search input::placeholder {
    color: #858d99;
}

.nav-mobile-actions {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-mobile-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    color: #f5f5f6;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.nav-mobile-customer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(180deg, #a244ff 0%, #7d1bdf 100%);
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.nav-mobile-preferences {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.nav-mobile-preferences .nav-preference { position: relative; }
.nav-mobile-preferences .preference-trigger {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    background: #11141a;
    border: 1px solid #292d37;
    border-radius: 12px;
    font-weight: 700;
}
.nav-mobile-preferences .preference-trigger svg { width: 13px; fill: none; stroke: currentColor; }
.nav-mobile-preferences .preference-menu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    max-height: 330px;
    overflow: auto;
    padding: 8px;
    background: #101218;
    border: 1px solid #292d37;
    border-radius: 14px;
    box-shadow: 0 16px 40px #000b;
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    transition: .18s ease;
    z-index: 4;
}
.nav-mobile-preferences .nav-preference.open .preference-menu { opacity: 1; visibility: visible; transform: none; }
.nav-mobile-preferences .preference-label { display: block; padding: 8px; color: #858d99; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.nav-mobile-preferences .preference-menu button { width: 100%; min-height: 38px; display: grid; grid-template-columns: 28px 42px 1fr 17px; align-items: center; gap: 5px; padding: 6px; color: #ccd0d8; background: transparent; border: 0; border-radius: 8px; text-align: left; }
.nav-mobile-preferences .language-menu button { grid-template-columns: 28px 1fr 17px; }
.nav-mobile-preferences .preference-menu button:hover { background: #ffffff0d; }
.nav-mobile-preferences .preference-menu button[aria-selected="true"] { color: #a855f7; }
.nav-mobile-preferences .preference-menu button small { display: none; }
.nav-mobile-preferences .preference-menu button svg { width: 16px; fill: none; stroke: #438cff; opacity: 0; }
.nav-mobile-preferences .preference-menu button[aria-selected="true"] svg { opacity: 1; }
.nav-mobile-preferences .nav-mobile-shop { grid-column: 1 / -1; width: 100%; margin-top: 2px; }

.HANZO-floating-cart {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99990;
    width: 52px;
    min-width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: linear-gradient(180deg, #a855f7 0%, #8b5cf6 55%, #6d28d9 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(139, 92, 246, .34), inset 0 1px 0 rgba(255, 255, 255, .16);
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.HANZO-floating-cart:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 15px 34px rgba(139, 92, 246, .42); }
.HANZO-floating-cart:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.HANZO-floating-cart > svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.HANZO-floating-cart .HANZO-nav-cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    color: #fff;
    background: #8b17ff;
    border: 2px solid #090b10;
    border-radius: 12px;
    font-size: 11px;
}
.HANZO-floating-cart .HANZO-nav-cart-count.empty { display: none; }

@media (max-width: 650px) {
    .HANZO-floating-cart { right: 14px; bottom: 14px; width: 48px; min-width: 48px; height: 48px; padding: 0; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
    #hanzoNavbar.navbar,
    nav.navbar#hanzoNavbar {
        left: 12px !important;
        width: calc(100% - 24px) !important;
        padding: 0 12px 0 16px !important;
        transform: none !important;
        top: 15px !important;
        right: auto !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        max-width: none !important;
        background: linear-gradient(180deg, rgba(16, 12, 20, 0.97), rgba(0, 0, 0, 0.97)) !important;
        border: 1px solid rgba(148, 158, 173, .18) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, .45) !important;
    }

    #hanzoNavbar .nav-center {
        display: none !important;
    }

    #hanzoNavbar .nav-mobile-toggle {
        display: flex !important;
    }

    #hanzoNavbar .nav-right {
        display: none !important;
    }

    #hanzoNavbar .search {
        display: none !important;
    }

    #hanzoNavbar .HANZO-nav-cart-btn > span:not(.HANZO-nav-cart-count) {
        display: none !important;
    }

    #hanzoNavbar .customer {
        display: none !important;
    }

    .search-panel {
        right: 12px;
        left: 12px;
        width: auto;
    }
}

@media (max-width: 400px) {
    #hanzoNavbar.navbar,
    nav.navbar#hanzoNavbar {
        left: 8px !important;
        width: calc(100% - 16px) !important;
        height: 60px !important;
    }

    #hanzoNavbar .logo {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
    }
}

body.nav-mobile-open {
    overflow: hidden;
}

/* Homepage: overlay the shared navbar on the hero (must come last to beat reset) */
html:has(body.HANZO-home-hero),
body.HANZO-home-hero,
body.HANZO-has-navbar.HANZO-home-hero {
    padding-top: 0 !important;
}

body.HANZO-home-hero #hanzoNavbar.navbar,
body.HANZO-home-hero nav.navbar#hanzoNavbar {
    background: rgba(10, 6, 8, 0.28) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22) !important;
    border: 1px solid rgba(168, 85, 247, 0.28) !important;
}
