/* =========================================================
   CITYMOTOR - HEADER SAFE SKIN
   Visual layer only. Astra keeps layout, visibility and menu behavior.
   ========================================================= */

#masthead,
#ast-desktop-header,
#ast-mobile-header,
#masthead .ast-primary-header-bar,
#masthead .main-header-bar {
    background: #050505 !important;
}

#masthead {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 16, 32, 0.75);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

#masthead::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 16, 32, 0.95), transparent);
    pointer-events: none;
}

#masthead .ast-container,
#masthead .site-primary-header-wrap {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
    padding-inline: 0;
}

#masthead .custom-logo-link {
    display: inline-flex;
    align-items: center;
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.18));
}

#masthead img.custom-logo {
    width: clamp(92px, 11vw, 132px);
    height: auto;
    max-height: 132px;
    object-fit: contain;
}

#masthead .main-header-menu > .menu-item > .menu-link {
    position: relative;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    color: #f7f7f7 !important;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color 170ms ease, box-shadow 190ms ease, transform 190ms cubic-bezier(0.22, 0.61, 0.36, 1), color 170ms ease;
}

#masthead .main-header-menu > .menu-item > .menu-link::after {
    content: none !important;
    display: none !important;
}

#masthead .main-header-menu > .menu-item:hover > .menu-link,
#masthead .main-header-menu > .menu-item.current-menu-item > .menu-link,
#masthead .main-header-menu > .menu-item.current_page_item > .menu-link,
#masthead .main-header-menu > .menu-item > .menu-link:focus-visible {
    color: #ffffff !important;
    background: #ff1020 !important;
    box-shadow: 0 10px 24px rgba(255, 16, 32, 0.32), inset 0 -2px 0 rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

#masthead .ast-icon,
#masthead .ast-icon svg,
#masthead .ast-icon path,
#masthead .ahfb-svg-iconset svg,
#masthead .ahfb-svg-iconset path {
    fill: #ff1020 !important;
    color: #ff1020 !important;
}

#masthead .ast-search-icon a,
#masthead .ast-header-account-link,
#masthead .ast-site-header-cart .ast-addon-cart-wrap,
#masthead .menu-toggle {
    border: 1px solid rgba(255, 16, 32, 0.55);
    border-radius: 999px;
    background: rgba(255, 16, 32, 0.04);
    color: #ff1020;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

#masthead .ast-search-icon a:hover,
#masthead .ast-header-account-link:hover,
#masthead .ast-site-header-cart .ast-addon-cart-wrap:hover,
#masthead .menu-toggle:hover,
#masthead .menu-toggle:focus-visible {
    border-color: #ff1020;
    background: rgba(255, 16, 32, 0.14);
    transform: translateY(-1px);
}

#masthead .ast-site-header-cart .count,
#masthead .ast-site-header-cart .ast-cart-count,
#masthead .ast-icon-shopping-cart[data-cart-total]::after {
    background: #ff1020 !important;
    color: #ffffff !important;
    border-color: #050505 !important;
    font-weight: 900;
}

#masthead .search-form {
    border: 1px solid rgba(255, 16, 32, 0.5);
    border-radius: 8px;
    background: #111111 !important;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.36);
    overflow: hidden;
}

#masthead .search-field {
    min-height: 46px;
    background: #111111 !important;
    color: #ffffff !important;
    border: 0 !important;
    font-size: 14px;
}

#masthead .search-field::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

#masthead .search-submit {
    background: #ff1020 !important;
    color: #ffffff !important;
    border-radius: 0 !important;
}

#masthead .main-header-menu .sub-menu {
    min-width: 238px;
    border: 1px solid rgba(255, 16, 32, 0.45) !important;
    border-radius: 8px;
    background: #0b0b0b !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52);
}

#masthead .main-header-menu .sub-menu .menu-link {
    min-height: 42px;
    color: #e8e8e8 !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none !important;
}

#masthead .main-header-menu .sub-menu .menu-link:hover,
#masthead .main-header-menu .sub-menu .menu-link:focus-visible {
    color: #ffffff !important;
    background: rgba(255, 16, 32, 0.14) !important;
}

body.ast-header-break-point #masthead img.custom-logo {
    width: clamp(82px, 22vw, 110px);
    max-height: 112px;
}

body.ast-header-break-point #masthead .menu-toggle.main-header-menu-toggle {
    border: 0;
    border-radius: 999px;
    background: #ff1020 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(255, 16, 32, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.14);
}

body.ast-header-break-point #masthead .menu-toggle.main-header-menu-toggle::after {
    content: "MEN\00da";
    margin-left: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

body.ast-header-break-point #masthead .menu-toggle.main-header-menu-toggle svg,
body.ast-header-break-point #masthead .menu-toggle.main-header-menu-toggle svg path,
body.ast-header-break-point #masthead .menu-toggle.main-header-menu-toggle .ast-icon,
body.ast-header-break-point #masthead .menu-toggle.main-header-menu-toggle .ast-icon path {
    fill: #ffffff !important;
    color: #ffffff !important;
}

body.ast-header-break-point #masthead .ast-search-icon a,
body.ast-header-break-point #masthead .ast-site-header-cart .ast-addon-cart-wrap {
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 999px !important;
    background: #121212 !important;
    color: #ffffff !important;
}

body.ast-header-break-point #masthead .ast-search-icon a svg,
body.ast-header-break-point #masthead .ast-search-icon a svg path,
body.ast-header-break-point #masthead .ast-site-header-cart .ast-addon-cart-wrap svg,
body.ast-header-break-point #masthead .ast-site-header-cart .ast-addon-cart-wrap svg path,
body.ast-header-break-point #masthead .ast-site-header-cart .ast-addon-cart-wrap .ast-icon,
body.ast-header-break-point #masthead .ast-site-header-cart .ast-addon-cart-wrap .ast-icon path {
    fill: #ffffff !important;
    color: #ffffff !important;
}

body.ast-header-break-point #masthead .ast-mobile-header-content,
body.ast-header-break-point #masthead .ast-mobile-header-content .main-header-menu {
    background: #080808 !important;
}

body.ast-header-break-point #masthead .ast-mobile-header-content .main-header-menu .menu-link {
    color: #ffffff !important;
    font-weight: 900;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.ast-header-break-point #masthead .ast-mobile-header-content .main-header-menu .sub-menu {
    background: #101010 !important;
}

body.ast-header-break-point #masthead .ast-mobile-header-content .main-header-menu .sub-menu .menu-link {
    color: #dddddd !important;
    font-weight: 800;
}

@media (max-width: 640px) {
    #masthead .ast-container,
    #masthead .site-primary-header-wrap {
        width: min(100% - 24px, 1180px);
    }

    body.ast-header-break-point #masthead .menu-toggle.main-header-menu-toggle::after {
        font-size: 11px;
    }
}
/* Hide Astra account/login slot on mobile. The store header uses search/cart/menu only. */
body.ast-header-break-point #masthead .ast-header-account,
body.ast-header-break-point #masthead .ast-header-account-wrap,
body.ast-header-break-point #masthead a.ast-header-account-link {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
