/* Astra's existing navigation, account/cart controls and footer content are retained.
   Header/footer links: 16 -> 20px. Copyright: 12 -> 16px. */
#masthead, #colophon {
    --bj-chrome-bg:#141422;
    --bj-chrome-panel:#2d2d44;
    --bj-chrome-border:#3a3a58;
    --bj-chrome-text:#f5f6ff;
    --bj-chrome-muted:#c2c2d4;
    --bj-chrome-accent:#256efe;
    font-family:"Segoe UI",system-ui,sans-serif;
    color:var(--bj-chrome-text);
    background:var(--bj-chrome-bg);
}
#masthead { border-bottom:1px solid var(--bj-chrome-border); box-shadow:0 8px 24px #08081426; }
#masthead .main-header-bar,
#masthead .ast-primary-header-bar,
#masthead .ast-mobile-header-content,
#masthead .main-header-bar-navigation {
    background:var(--bj-chrome-bg);
    border:0;
}
#masthead .site-primary-header-wrap {
    width:100%; max-width:none; padding-inline:clamp(16px,2.5vw,48px);
    min-height:92px;
}
#masthead .bj-site-brand, #colophon .bj-site-brand {
    display:inline-flex; align-items:center; flex-shrink:0;
    text-decoration:none; line-height:1; border-radius:8px;
}
#masthead .bj-site-brand__logo, #colophon .bj-site-brand__logo {
    display:block; width:224px; height:84px; max-width:100%;
    object-fit:contain;
}
#masthead .main-header-menu { background:transparent; gap:4px; }
#masthead .main-header-menu .menu-link {
    font:500 20px/1.4 "Segoe UI",system-ui,sans-serif;
    color:var(--bj-chrome-muted); text-decoration:none;
    background:transparent;
    padding:12px 14px; border-radius:8px; min-height:48px;
    transition:background-color .15s ease,color .15s ease;
}
#masthead .main-header-menu>.menu-item>.menu-link { display:flex; align-items:center; gap:6px; }
#masthead .main-header-menu .menu-link:hover,
#masthead .main-header-menu .menu-link:focus-visible,
#masthead .main-header-menu .current-menu-item>.menu-link,
#masthead .main-header-menu .current-menu-ancestor>.menu-link {
    color:#fff; background:#273452;
}
#masthead .main-header-menu .current-menu-item>.menu-link { box-shadow:inset 0 -2px #719bff; }
#masthead .main-header-menu>.menu-item-2218>.menu-link { color:#fff; background:#256efe; border:1px solid #719bff; }
#masthead .main-header-menu>.menu-item-2218>.menu-link:hover { background:#195ee7; }
#masthead .main-header-menu .sub-menu {
    background:var(--bj-chrome-panel); border:1px solid #505071;
    border-radius:12px; padding:8px; width:330px;
    box-shadow:0 18px 40px #07071066;
}
#masthead .main-header-menu .sub-menu .menu-link { border:0; white-space:normal; padding:12px 14px; }
#masthead .ast-header-navigation-arrow { margin-left:2px; color:inherit; }
#masthead .ast-header-navigation-arrow .ast-arrow-svg { fill:currentColor; }
#masthead .ast-site-header-cart a.cart-container {
    display:inline-flex; align-items:center; gap:10px;
    color:var(--bj-chrome-text); padding:10px 14px; min-height:48px;
    border:1px solid #4b4b69; border-radius:10px; background:#202032;
}
#masthead .ast-site-header-cart .ast-cart-menu-wrap,
#masthead .ast-site-header-cart .ast-cart-menu-wrap .count { color:#aec7ff; border-color:#aec7ff; }
#masthead .ast-site-header-cart .ast-woo-header-cart-info-wrap { color:#fff; font-size:20px; }
#masthead .ast-site-header-cart .widget_shopping_cart {
    background:#202032; color:#f5f6ff; border:1px solid #505071;
    border-radius:12px; box-shadow:0 18px 40px #07071066;
}
#masthead .widget_shopping_cart a { color:#bdd2ff; }
#masthead .widget_shopping_cart p { color:#f5f6ff; }
#masthead .ast-edd-cart-container {
    display:inline-flex; align-items:center; gap:10px; min-height:48px;
    padding:10px 14px; border:1px solid #4b4b69; border-radius:10px;
    background:#202032; color:#f5f6ff;
}
#masthead .ast-edd-header-cart-info-wrap, #masthead .ast-edd-header-cart-total { color:#f5f6ff; font-size:20px; }
#masthead .ast-edd-cart-menu-wrap .count { color:#bdd2ff; border-color:#bdd2ff; font-size:calc(.86em + 4px); }
#masthead .ast-edd-cart-menu-wrap .count::before { border-color:#bdd2ff; }
#masthead .ast-edd-site-header-cart-widget {
    color:#f5f6ff; background:#202032; border:1px solid #505071;
    border-radius:12px; box-shadow:0 18px 40px #07071066;
}
#masthead .widget_edd_cart_widget { font-size:18px; color:#f5f6ff; background:transparent; }
#masthead .widget_edd_cart_widget p, #masthead .widget_edd_cart_widget li { color:#f5f6ff; }
#masthead .widget_edd_cart_widget a { color:#bdd2ff; }
#masthead .ast-mobile-menu-trigger-minimal { color:#d4e0ff; }
#masthead .menu-toggle .ast-icon svg, #masthead .mobile-menu-toggle-icon svg { fill:#d4e0ff; }
#masthead .menu-toggle,
#masthead .ast-menu-toggle {
    color:#d4e0ff; border:1px solid #505071; border-radius:8px; background:#24243a;
    min-width:44px; min-height:44px;
}
#masthead .menu-toggle:hover, #masthead .ast-menu-toggle:hover { background:#334369; }
#masthead :is(a,button):focus-visible, #colophon a:focus-visible { outline:3px solid #abc8ff; outline-offset:4px; }

#colophon { border-top:1px solid var(--bj-chrome-border); }
#colophon .site-above-footer-wrap,
#colophon .site-below-footer-wrap {
    background:var(--bj-chrome-bg); border:0; min-height:0;
    padding:28px clamp(16px,2.5vw,48px);
}
#colophon .site-above-footer-wrap { padding-bottom:0; }
#colophon .ast-builder-grid-row-container-inner { width:100%; max-width:none; }
#colophon .ast-builder-footer-grid-columns { width:100%; max-width:none; }
#colophon .site-above-footer-inner-wrap { padding-bottom:26px; border-bottom:1px solid #3a3a58; }
#colophon .site-below-footer-inner-wrap { gap:28px; align-items:center; }
#colophon #astra-footer-menu { display:flex; justify-content:center; flex-wrap:wrap; gap:12px 30px; }
#colophon #astra-footer-menu .menu-link {
    color:#c2c2d4; font:500 20px/1.5 "Segoe UI",system-ui,sans-serif;
    padding:8px 0; text-decoration:none; border-bottom:1px solid transparent;
}
#colophon #astra-footer-menu .menu-link:hover { color:#fff; border-bottom-color:#719bff; }
#colophon .ast-footer-copyright, #colophon .ast-footer-copyright p {
    font:400 16px/1.6 "Segoe UI",system-ui,sans-serif; color:#b9b9d0; margin:0;
}
#colophon .ast-builder-html-element p { margin:0; line-height:1.5; font-size:20px; }
#colophon .ast-footer-html-2 img { filter:grayscale(1) brightness(0) invert(1); opacity:.7; }
#colophon .ast-builder-html-element img { vertical-align:middle; }

@media(min-width:1181px) {
    #masthead #ast-desktop-header .ast-builder-grid-row { grid-template-columns:auto minmax(0,1fr) auto; gap:24px; }
    #masthead .site-header-primary-section-center { justify-content:flex-end; }
    #masthead .main-header-menu>.menu-item { align-self:center; }
    #masthead .main-header-menu .sub-menu { top:calc(100% + 8px); }
    #masthead .main-header-menu .sub-menu::before { content:""; position:absolute; left:0; right:0; top:-10px; height:10px; }
}
@media(min-width:1181px) and (max-width:1400px) {
    #masthead #ast-desktop-header .ast-builder-grid-row { gap:14px; }
    #masthead .main-header-menu { gap:2px; }
    #masthead .main-header-menu .menu-link { padding-inline:10px; }
    #masthead .bj-site-brand__logo { width:200px; height:75px; }
}
@media(max-width:1180px) {
    #masthead .site-primary-header-wrap { min-height:80px; }
    #masthead .bj-site-brand__logo { width:192px; height:72px; }
    #masthead .ast-mobile-header-content { border-top:1px solid #3a3a58; padding:12px 16px 20px; }
    #masthead .main-header-menu { padding:0; }
    #masthead .main-header-menu .menu-link { border:0; padding:14px 16px; }
    #masthead .main-header-menu .menu-item { margin-block:4px; }
    #masthead .main-header-menu .sub-menu { width:auto; margin:8px 0 8px 14px; box-shadow:none; border-radius:8px; }
    #masthead .main-header-menu .ast-menu-toggle { right:8px; top:5px; padding:8px; }
    #masthead .main-header-menu>.menu-item-has-children>.menu-link { padding-right:64px; }
}
@media(max-width:620px) {
    #colophon .site-below-footer-inner-wrap { grid-template-columns:1fr; gap:22px; }
    #colophon .site-footer-section { justify-content:center; text-align:center; }
    #colophon #astra-footer-menu { gap:4px 24px; }
    #colophon #astra-footer-menu .menu-link { display:inline-block; }
}
@media(prefers-reduced-motion:reduce) { #masthead .menu-link { transition:none; } }
