:root {
    --doe-nav2-bg: rgba(12, 12, 14, 0.92);
    --doe-nav2-panel: rgba(10, 10, 12, 0.96);
    --doe-nav2-blue: #0071e3;
    --doe-nav2-accent: #38bdf8;
    --doe-nav2-text: #ffffff;
    --doe-nav2-muted: #86868b;
    --doe-nav2-border: rgba(255, 255, 255, 0.08);
}

header.doe-nav2,
header.doe-nav2.scrolled,
header.doe-nav2.doe-nav1--scrolled {
    /* The site shell clips sticky descendants, so keep V2 viewport-bound and fixed at top 0 */
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 1500;
    color: var(--doe-nav2-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--doe-nav2-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    width: 100%;
    border-bottom: 1px solid var(--doe-nav2-border);
    transition: background 0.2s ease, border-color 0.2s ease;
}

/* ==========================================================================
   Primary Navigation Bar
   ========================================================================== */
.doe-nav2__bar {
    min-height: 64px;
    background: transparent;
    position: relative;
}

.doe-nav2__inner {
    width: min(1440px, 100%);
    min-height: 64px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 36px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(16px, 2.5vw, 36px);
}

.doe-nav2__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
    transition: opacity 160ms ease;
}

.doe-nav2__brand:hover {
    opacity: 0.9;
}

.doe-nav2__brand-logo {
    display: block;
    height: 19px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: brightness(0) invert(1) grayscale(1) contrast(1.4);
}

.doe-nav2__brand-divider {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

.doe-nav2__auth-logo {
    display: block;
    height: 24px;
    width: auto;
    max-width: 76px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ==========================================================================
   Desktop Navigation Links (Subtle Frosted Pill Micro-Interactions)
   ========================================================================== */
.doe-nav2__desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.2vw, 20px);
    min-width: 0;
}

.doe-nav2__menu-trigger,
.doe-nav2__direct-link,
.doe-nav2__icon-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--doe-nav2-text);
    font: inherit;
    text-decoration: none;
}

.doe-nav2__menu-trigger,
.doe-nav2__direct-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    font-weight: 450;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.doe-nav2__chevron {
    flex-shrink: 0;
    opacity: 0.75;
    transition: transform 180ms ease, opacity 150ms ease, stroke 150ms ease;
}

.doe-nav2__menu-trigger:hover,
.doe-nav2__menu-trigger:focus-visible,
.doe-nav2__menu-trigger.is-active,
.doe-nav2__direct-link:hover,
.doe-nav2__direct-link:focus-visible,
.doe-nav2__direct-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.doe-nav2__menu-trigger:hover .doe-nav2__chevron,
.doe-nav2__menu-trigger[aria-expanded="true"] .doe-nav2__chevron {
    stroke: var(--doe-nav2-accent);
    opacity: 1;
}

.doe-nav2__menu-trigger[aria-expanded="true"] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.doe-nav2__menu-trigger[aria-expanded="true"] .doe-nav2__chevron {
    transform: rotate(180deg);
}

/* ==========================================================================
   Action Icons
   ========================================================================== */
.doe-nav2__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 1.2vw, 18px);
}

.doe-nav2__action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    transition: color 150ms ease, background 150ms ease;
    text-decoration: none;
}

.doe-nav2__action-link:hover,
.doe-nav2__action-link:focus-visible {
    color: var(--doe-nav2-accent);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.doe-nav2__mobile-toggle {
    display: none;
    width: 38px;
    height: 38px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.doe-nav2__mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    transition: transform 180ms ease;
}

/* ==========================================================================
   Full-Width Dropdown Megamenus (Translucent Glass + Elevated Glass Cards)
   ========================================================================== */
.doe-nav2__mega-shell {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--doe-nav2-panel);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid var(--doe-nav2-border);
    z-index: 1400;
    animation: doeMegaFadeIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes doeMegaFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doe-nav2__mega {
    display: block;
}

.doe-nav2__mega[hidden] {
    display: none !important;
}

.doe-nav2__mega-row {
    max-width: 1360px;
    margin: 0 auto;
    padding: 30px 24px 26px 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(12px, 2vw, 32px);
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.doe-nav2__mega-row::-webkit-scrollbar {
    display: none;
}

.doe-nav2__icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 110px;
    max-width: 125px;
    padding: 12px 8px 10px 8px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.doe-nav2__icon-wrapper {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.doe-nav2__icon-img {
    max-width: 68px;
    max-height: 68px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: brightness(1);
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), filter 200ms ease;
}

.doe-nav2__icon-label {
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 450;
    color: #f1f5f9;
    line-height: 1.35;
    text-align: center;
    letter-spacing: -0.01em;
    transition: color 150ms ease;
}

.doe-nav2__icon-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.doe-nav2__icon-card:hover .doe-nav2__icon-img {
    transform: scale(1.06);
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.18));
}

.doe-nav2__icon-card:hover .doe-nav2__icon-label {
    color: var(--doe-nav2-accent);
}

/* ==========================================================================
   Megamenu Bottom Banner Strip (Floating Glass Pill Banner)
   ========================================================================== */
.doe-nav2__mega-banner {
    width: 100%;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.doe-nav2__mega-banner-link {
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
    padding: 6px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 180ms ease;
}

.doe-nav2__mega-banner-link:hover {
    background: rgba(0, 113, 227, 0.18);
    border-color: rgba(56, 189, 248, 0.35);
    color: var(--doe-nav2-accent);
    transform: translateY(-1px);
}

/* ==========================================================================
   Cart Flyout Panel
   ========================================================================== */
.doe-nav2__cart {
    position: relative;
}

.doe-nav2__cart-trigger {
    position: relative;
}

.doe-nav2__cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0071e3, #38bdf8);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.4);
}

.doe-nav2__cart-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(340px, 92vw);
    background: rgba(18, 18, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--doe-nav2-border);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75);
    padding: 16px;
    display: none;
    z-index: 1600;
}

.doe-nav2__cart.is-open .doe-nav2__cart-panel {
    display: block;
}

.doe-nav2__cart-empty {
    color: var(--doe-nav2-muted);
    font-size: 13px;
    margin: 8px 0;
    text-align: center;
}

.doe-nav2__cart-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--doe-nav2-border);
    font-size: 13px;
}

.doe-nav2__cart-footer span {
    display: flex;
    justify-content: space-between;
}

.doe-nav2__cart-footer a {
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.doe-nav2__cart-footer a.doe-nav2__cart-checkout {
    background: var(--doe-nav2-blue);
}

/* ==========================================================================
   Mobile Navigation Drawer (Immersive Full-Screen Obsidian)
   ========================================================================== */
header.doe-nav2.is-mobile-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.doe-nav2-mobile-open {
    overflow: hidden !important;
}

.doe-nav2__mobile-panel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    background: #09090b !important;
    z-index: 99999 !important;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease, visibility 280ms;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.doe-nav2__mobile-panel.is-open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.doe-nav2__mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 9, 11, 0.96);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.doe-nav2__mobile-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 180ms ease;
    padding: 0;
}

.doe-nav2__mobile-close:hover,
.doe-nav2__mobile-close:active {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.05);
}

.doe-nav2__mobile-links {
    padding: 8px 18px 24px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.doe-nav2__mobile-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.doe-nav2__mobile-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 17px;
    font-weight: 550;
    color: #ffffff;
    list-style: none;
    cursor: pointer;
    user-select: none;
    letter-spacing: -0.01em;
    transition: color 150ms ease;
}

.doe-nav2__mobile-group summary::-webkit-details-marker {
    display: none;
}

.doe-nav2__mobile-group summary:hover,
.doe-nav2__mobile-group summary:active {
    color: var(--doe-nav2-accent);
}

.doe-nav2__mobile-chevron {
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.doe-nav2__mobile-group[open] .doe-nav2__mobile-chevron {
    transform: rotate(180deg);
    color: var(--doe-nav2-accent);
}

.doe-nav2__mobile-sublist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 4px 0 18px 0;
}

.doe-nav2__mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px 10px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-decoration: none;
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    gap: 6px;
    transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.doe-nav2__mobile-item:hover,
.doe-nav2__mobile-item:active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.doe-nav2__mobile-thumb {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.12));
}

.doe-nav2__mobile-item--all {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 113, 227, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: var(--doe-nav2-accent);
    font-size: 13px;
    font-weight: 550;
    border-radius: 999px;
}

.doe-nav2__mobile-item--all:hover {
    background: rgba(0, 113, 227, 0.22);
    border-color: var(--doe-nav2-accent);
    color: #ffffff;
}

.doe-nav2__mobile-arrow {
    transition: transform 150ms ease;
}

.doe-nav2__mobile-item--all:hover .doe-nav2__mobile-arrow {
    transform: translateX(3px);
}

.doe-nav2__mobile-direct {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    color: #ffffff;
    font-size: 17px;
    font-weight: 550;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    letter-spacing: -0.01em;
    transition: color 150ms ease;
}

.doe-nav2__mobile-direct svg {
    color: rgba(255, 255, 255, 0.4);
    transition: transform 150ms ease, color 150ms ease;
}

.doe-nav2__mobile-direct:hover,
.doe-nav2__mobile-direct:active {
    color: var(--doe-nav2-accent);
}

.doe-nav2__mobile-direct:hover svg {
    color: var(--doe-nav2-accent);
    transform: translateX(2px);
}

.doe-nav2__mobile-footer {
    margin-top: auto;
    padding: 20px 18px 32px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.doe-nav2__mobile-badge-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
    color: #94a3b8;
    text-align: center;
}

.doe-nav2__mobile-badge-icon {
    color: #38bdf8;
    flex-shrink: 0;
}

.doe-nav2__mobile-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 550;
    text-decoration: none;
    transition: all 180ms ease;
}

.doe-nav2__mobile-cart-link:hover {
    background: rgba(0, 113, 227, 0.18);
    border-color: rgba(56, 189, 248, 0.35);
    color: var(--doe-nav2-accent);
}

.doe-nav2__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1300;
}

.doe-nav2__backdrop[hidden] {
    display: none !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .doe-nav2__inner {
        grid-template-columns: 38px 1fr 86px;
        padding: 0 14px;
        gap: 8px;
    }

    .doe-nav2__brand {
        width: auto;
        justify-self: center;
        gap: 8px;
    }

    .doe-nav2__brand-logo {
        height: 15px;
        max-width: 115px;
    }

    .doe-nav2__brand-divider {
        height: 15px;
    }

    .doe-nav2__auth-logo {
        height: 19px;
        max-width: 58px;
    }

    .doe-nav2__mobile-toggle {
        display: flex;
    }

    .doe-nav2__desktop,
    .doe-nav2__mega-shell {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .doe-nav2__brand {
        gap: 6px;
    }

    .doe-nav2__brand-logo {
        height: 13px;
        max-width: 98px;
    }

    .doe-nav2__brand-divider {
        height: 13px;
    }

    .doe-nav2__auth-logo {
        height: 16px;
        max-width: 48px;
    }
}
