/* One navbar: desktop links in the header, modal presentation in the top layer. */
.navbar .storefront-menu-only { display: none; }
.navbar > .nav-links .storefront-menu-icon { display: none; }
/* Preserve the hamburger artwork while providing its minimum touch target. */
.header .menu-toggle { width: 44px; height: 44px; }
.header .menu-toggle span { right: 10px; }
.storefront-menu {
    --menu-line: rgba(255,255,255,.12);
    --menu-muted: #a9b1bb;
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-color);
    overflow: hidden;
}
.storefront-menu::backdrop { background: rgba(0,0,0,.72); }
.storefront-menu > .navbar {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: min(88vw, 440px);
    height: 100%;
    padding: max(18px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #24323e transparent;
    background: radial-gradient(ellipse at 20% 0, rgba(0,168,255,.075), transparent 40%), linear-gradient(135deg,#0c1014,#07090b 65%);
    border-right: 1px solid rgba(100,176,220,.2);
    box-shadow: 20px 0 70px rgba(0,0,0,.32);
    backdrop-filter: none;
    transform: translateX(-100%);
    transition: transform 260ms cubic-bezier(.22,1,.36,1);
}
.storefront-menu.is-visible > .navbar { transform: translateX(0); }
.storefront-menu .storefront-menu-only { display: block; }
.storefront-menu .storefront-menu-top { position: relative; display: grid; place-items: center; min-height: 108px; margin-bottom: 16px; }
.storefront-menu-close { position: absolute; top: 0; left: -6px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: transparent; border: 0; border-radius: 12px; color: #fff; cursor: pointer; }
.storefront-menu-close:hover { background: rgba(255,255,255,.07); }
.storefront-menu-logo { display: flex; justify-content: center; align-items: center; width: 180px; height: 88px; margin-top: 16px; }
.storefront-menu-logo img { width: 100%; height: 100%; object-fit: contain; }
.storefront-menu-icon { display: inline-flex; flex: 0 0 auto; width: 24px; height: 24px; color: var(--primary-color); }
.storefront-menu-icon svg { width: 100%; height: 100%; }
.storefront-menu-segments { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.storefront-menu-segment { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 48px; padding: 10px 6px; border: 1px solid var(--menu-line); border-radius: 28px; background: rgba(255,255,255,.015); color: var(--menu-muted); font-family: inherit; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; cursor: pointer; }
.storefront-menu-segment .storefront-menu-icon { color: inherit; width: 22px; height: 22px; }
.storefront-menu-segment[aria-pressed="true"] { color: var(--primary-color); border-color: var(--primary-color); background: rgba(0,168,255,.06); box-shadow: inset 0 0 22px rgba(0,168,255,.045); }
.storefront-menu-categories { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 14px 1px 12px; margin: 4px 0 0; }
.storefront-menu-categories::-webkit-scrollbar { display: none; }
.storefront-menu-category { flex: 0 0 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 88px; padding: 10px 4px; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: rgba(255,255,255,.015); color: #b9bdc4; text-decoration: none; font-size: 10px; font-weight: 650; line-height: 1.25; text-align: center; text-transform: uppercase; }
.storefront-menu-category-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.storefront-menu-category-icon svg { width: 100%; height: 100%; }
.storefront-menu-category[aria-current="true"] { color: var(--primary-color); border-color: var(--primary-color); background: rgba(0,168,255,.055); box-shadow: 0 0 12px rgba(0,168,255,.12), inset 0 0 15px rgba(0,168,255,.04); }
.storefront-menu-category-status { font-size: 12px; line-height: 1.5; color: var(--menu-muted); margin: 14px 0; }
.storefront-menu > .navbar > .nav-links { display: grid; gap: 9px; margin: 12px 0 0; padding: 20px 0 23px; border-top: 1px solid var(--menu-line); list-style: none; text-align: left; }
.storefront-menu .nav-links li { opacity: 1; transform: none; transition: none; }
.storefront-menu .nav-links a { display: flex; align-items: center; gap: 13px; min-height: 60px; padding: 13px 15px; background: linear-gradient(110deg,rgba(255,255,255,.025),rgba(255,255,255,.007)); border: 1px solid var(--menu-line); border-radius: 17px; color: #f5f7fa; font-size: 17px; font-weight: 650; letter-spacing: -.2px; line-height: 1.3; text-decoration: none; }
.storefront-menu .nav-links a.active { border-color: rgba(0,168,255,.65); background: linear-gradient(110deg,rgba(0,168,255,.08),rgba(0,168,255,.015)); }
.storefront-menu .nav-links a::after { display: none; }
.storefront-menu .nav-links .storefront-menu-icon { display: inline-flex; }
.storefront-menu-label { flex: 1; min-width: 0; }
.storefront-menu .nav-links a > .storefront-menu-icon:last-child, .storefront-menu-quick-link > .storefront-menu-icon:last-child { width: 19px; height: 19px; }
.storefront-menu-quick, .storefront-menu-social { padding: 22px 0 0; border-top: 1px solid var(--menu-line); }
.storefront-menu-section-title { font-size: 10px; line-height: 1.4; letter-spacing: 2px; font-weight: 750; text-transform: uppercase; color: #8d99a7; margin: 0 0 12px; }
.storefront-menu-quick-link { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.06); color: #dce0e6; text-decoration: none; font-size: 15px; font-weight: 500; line-height: 1.4; }
.storefront-menu-quick-link > .storefront-menu-icon:first-child { color: #a9b1bb; }
.storefront-menu-social { margin-top: 22px; }
.storefront-menu-social-links { display: flex; gap: 12px; }
.storefront-menu-social-links a { display: grid; place-items: center; width: 48px; height: 48px; padding: 12px; background: rgba(255,255,255,.02); border: 1px solid var(--menu-line); border-radius: 50%; }
.storefront-menu-social-links svg { width: 24px; height: 24px; }
.storefront-menu a, .storefront-menu button { -webkit-tap-highlight-color: transparent; }
.storefront-menu a:hover { border-color: rgba(0,168,255,.5); }
.storefront-menu a:focus-visible, .storefront-menu button:focus-visible, .storefront-menu-categories:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
.storefront-menu a:active, .storefront-menu button:active { background-color: rgba(0,168,255,.1); }
.storefront-menu .nav-links a.storefront-menu-desktop-brand { display: none; }
.storefront-menu .nav-links .storefront-menu-nav-trigger { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 60px; padding: 13px 15px; border: 1px solid var(--menu-line); border-radius: 17px; background: linear-gradient(110deg,rgba(255,255,255,.025),rgba(255,255,255,.007)); color: #f5f7fa; font: inherit; font-size: 17px; font-weight: 650; letter-spacing: -.2px; line-height: 1.3; text-align: left; cursor: pointer; }
.storefront-menu .nav-links .storefront-menu-nav-trigger > .storefront-menu-icon:last-child { width: 19px; height: 19px; }
.storefront-menu-account-trigger { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.06); background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
.storefront-menu [aria-expanded] > .storefront-menu-icon:last-child { transition: transform 180ms ease; }
.storefront-menu [aria-expanded="true"] > .storefront-menu-icon:last-child { transform: rotate(180deg); }
.storefront-menu .storefront-menu-disclosure { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 180ms ease, opacity 180ms ease; }
.storefront-menu .storefront-menu-disclosure.is-open { grid-template-rows: 1fr; opacity: 1; }
.storefront-menu-disclosure-content { min-height: 0; min-width: 0; overflow: hidden; }
.storefront-menu-panel-status { color: var(--menu-muted); font-size: 12px; line-height: 1.5; padding: 0 12px; margin: 12px 0 4px; }
.storefront-menu .storefront-menu-sub-link { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 10px 12px; margin: 4px 0; border: 1px solid transparent; border-radius: 10px; background: rgba(255,255,255,.02); color: #dce0e6; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; text-decoration: none; text-align: left; cursor: pointer; }
.storefront-menu .storefront-menu-sub-link > .storefront-menu-icon { width: 18px; height: 18px; }
.storefront-menu .storefront-menu-sub-link[aria-pressed="true"] { border-color: rgba(0,168,255,.3); color: var(--primary-color); }
.storefront-menu-account-summary { display: flex; align-items: center; gap: 12px; padding: 14px 12px 10px; min-width: 0; }
.storefront-menu-account-avatar { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; overflow: hidden; border: 1px solid rgba(0,168,255,.34); border-radius: 50%; background: radial-gradient(circle at 35% 25%,rgba(0,168,255,.22),transparent 55%),#111820; }
.storefront-menu-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.storefront-menu-account-avatar span { color: #f7fbff; font-size: 16px; font-weight: 900; letter-spacing: 1px; }
.storefront-menu-account-identity { display: grid; gap: 4px; min-width: 0; }
.storefront-menu-account-identity strong { color: #f5f7fa; font-size: 14px; line-height: 1.45; font-weight: 650; overflow-wrap: anywhere; }
.storefront-menu-account-identity span { color: var(--menu-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.storefront-menu [hidden] { display: none; }
@media (max-width: 359px) {
    .storefront-menu > .navbar { padding-left: 14px; padding-right: 14px; }
    .storefront-menu-logo { width: 156px; }
    .storefront-menu-segment { font-size: 11px; gap: 6px; letter-spacing: .3px; }
    .storefront-menu .nav-links a { font-size: 16px; }
    .storefront-menu .nav-links .storefront-menu-nav-trigger { font-size: 16px; }
}
/* Match the storefront's existing compact/desktop navigation boundary. */
@media (min-width: 1024px) {
    .header .menu-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .storefront-menu > .navbar { transition: none; }
    .storefront-menu .storefront-menu-disclosure, .storefront-menu [aria-expanded] > .storefront-menu-icon:last-child { transition: none; }
}
