/* Anker Gadgets Advanced Header v2.0.1 */
#header.ag-site-header {
    position: relative;
    z-index: 1000;
    margin: 0;
    background: var(--ag-header-primary, #063A68);
    color: var(--ag-header-text, #fff);
    box-shadow: 0 2px 12px rgba(6, 27, 55, .16);
}

#header.ag-site-header.ag-site-header--no-categories { margin-bottom: 24px; }

#header .ag-header-main {
    min-height: var(--ag-header-desktop-height, 82px);
    height: var(--ag-header-desktop-height, 82px);
    background: var(--ag-header-primary, #063A68);
}

#header .ag-header-container,
.ag-header-category-bar .ag-header-container {
    width: 100%;
    max-width: var(--ag-storefront-max-width, 1300px);
    max-width: min(var(--ag-header-container, 1300px), var(--ag-storefront-max-width, 1300px));
    height: 100%;
    margin: 0 auto;
    padding: 0 18px;
}

#header .ag-header-main__inner {
    display: grid;
    grid-template-columns: var(--ag-header-logo-width, 142px) minmax(280px, 1fr) auto;
    gap: 26px;
    align-items: center;
}

#header .ag-header-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, .11);
    cursor: pointer;
}

#header .ag-header-menu-toggle--placeholder { visibility: hidden; pointer-events: none; }
#header .ag-header-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 4px;
    background: var(--ag-header-text, #fff);
    transition: transform .2s ease, opacity .2s ease;
}
#header .ag-header-menu-toggle.close span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#header .ag-header-menu-toggle.close span:nth-child(2) { opacity: 0; }
#header .ag-header-menu-toggle.close span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

#header .ag-header-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: var(--ag-header-logo-width, 142px);
    max-width: var(--ag-header-logo-width, 142px);
    height: 62px;
    text-decoration: none;
}
#header .ag-header-logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 56px;
    object-fit: contain;
    object-position: left center;
}

#header .ag-header-search {
    position: relative;
    width: 100%;
    min-width: 0;
}
#header .ag-header-search input[type="text"] {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 54px 0 17px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 3px;
    outline: none;
    background: #fff;
    color: #172033;
    font-size: 14px;
    box-shadow: none;
}
#header .ag-header-search input[type="text"]:focus {
    border-color: var(--ag-header-accent, #FFB000);
    box-shadow: 0 0 0 3px rgba(255, 176, 0, .2);
}
#header .ag-header-search > button {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid #e8ebf0;
    border-radius: 0 3px 3px 0;
    background: #fff;
    color: var(--ag-header-primary, #063A68);
    font-size: 25px;
    line-height: 44px;
    cursor: pointer;
}
#header .ag-search-results-wrap { position: relative; }
#header .search_data { top: 7px; left: 0; right: 0; z-index: 1400; }

#header .ag-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    height: 100%;
}
#header .ag-header-dropdown-wrap { position: relative; height: 100%; display: flex; align-items: center; }
#header .ag-header-action,
#header .ag-header-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 104px;
    height: 50px;
    margin: 0;
    padding: 5px 12px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .13);
    border-radius: 0;
    background: transparent;
    color: var(--ag-header-text, #fff);
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease;
}
#header .ag-header-actions > :first-child .ag-header-action,
#header .ag-header-actions > .ag-header-action:first-child { border-left: 0; }
#header .ag-header-action:hover,
#header .ag-header-action:focus,
#header .ag-header-cart:hover,
#header .ag-header-cart:focus,
#header .ag-header-dropdown-wrap.is-open > .ag-header-action {
    background: rgba(255, 255, 255, .1);
    color: var(--ag-header-text, #fff);
    text-decoration: none;
    outline: none;
}
#header .ag-header-action__icon {
    flex: 0 0 31px;
    width: 31px;
    color: var(--ag-header-accent, #FFB000);
    font-size: 22px;
    line-height: 1;
    text-align: center;
}
#header .ag-header-action__content { display: block; min-width: 0; }
#header .ag-header-action__content strong {
    display: block;
    overflow: hidden;
    max-width: 122px;
    color: var(--ag-header-text, #fff);
    font-size: 13px;
    font-weight: 700;
    line-height: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#header .ag-header-action__content small {
    display: block;
    overflow: hidden;
    max-width: 122px;
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    line-height: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#header .ag-header-action__chevron {
    margin-left: 3px;
    color: rgba(255, 255, 255, .72);
    font-size: 17px;
    transition: transform .2s ease;
}
#header .ag-header-dropdown-wrap.is-open .ag-header-action__chevron { transform: rotate(180deg); }

#header .ag-header-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% - 10px);
    right: 0;
    z-index: 1500;
    width: 218px;
    padding: 6px 0;
    border: 1px solid #e2e7ee;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 31, 55, .2);
}
#header .ag-header-dropdown-wrap:hover > .ag-header-dropdown-menu,
#header .ag-header-dropdown-wrap:focus-within > .ag-header-dropdown-menu,
#header .ag-header-dropdown-wrap.is-open > .ag-header-dropdown-menu { display: block; }
#header .ag-header-dropdown-menu a,
#header .ag-header-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 39px;
    padding: 9px 13px;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    border-radius: 0;
    background: transparent;
    color: #344054;
    font: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
#header .ag-header-dropdown-menu > :last-child { border-bottom: 0; }
#header .ag-header-dropdown-menu a:hover,
#header .ag-header-dropdown-menu button:hover { background: #f5f7fa; color: var(--ag-header-primary, #063A68); }
#header .ag-header-dropdown-menu .material-icons { color: var(--ag-header-primary, #063A68); font-size: 18px; }

#header .ag-header-cart {
    min-width: 170px;
    justify-content: flex-end;
    gap: 9px;
    padding-right: 8px;
}
#header .ag-header-cart__summary {
    display: block;
    color: var(--ag-header-text, #fff);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
}
#header .ag-header-cart__icon-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 5px;
    background: rgba(0, 0, 0, .14);
}
#header .ag-header-cart__icon { color: var(--ag-header-accent, #FFB000); font-size: 27px; }
#header .ag-header-cart__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid var(--ag-header-primary, #063A68);
    border-radius: 11px;
    background: var(--ag-header-accent, #FFB000);
    color: #172033;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}

.ag-header-category-bar {
    position: relative;
    z-index: 990;
    display: block;
    min-height: var(--ag-header-category-height, 48px);
    height: var(--ag-header-category-height, 48px);
    margin: 0 0 24px;
    background: var(--ag-header-category-bg, #fff);
    border-bottom: 1px solid rgba(23, 32, 51, .1);
    box-shadow: 0 2px 8px rgba(10, 31, 68, .07);
}
@media (min-width: 992px) {
    .ag-header-category-bar.ag-header-category-bar--sticky { position: sticky; top: 0; }
}
.ag-header-category-container {
    display: flex;
    align-items: stretch;
    overflow: visible;
}
.ag-header-category-scroll { flex: 1 1 auto; min-width: 0; height: 100%; overflow: visible; }
.ag-header-category-bar .ag-category-menu.navbar-nav {
    position: static;
    left: auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
    box-shadow: none;
    transform: none;
}
.ag-header-category-bar .ag-category-item {
    position: relative;
    flex: 0 0 auto;
    height: 100%;
    margin: 0;
    padding: 0;
}
.ag-header-category-bar .ag-category-link-row { display: flex; align-items: stretch; height: 100%; }
.ag-header-category-bar .ag-category-link.nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 9px;
    color: var(--ag-header-category-text, #101828);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background-color .18s ease;
}
.ag-header-category-bar .ag-category-submenu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.ag-header-category-bar .ag-category-item:hover > .ag-category-link-row > .ag-category-link,
.ag-header-category-bar .ag-category-item:focus-within > .ag-category-link-row > .ag-category-link {
    background: rgba(11, 79, 198, .06);
    color: var(--ag-header-category-hover, #0B4FC6);
}
.ag-header-category-bar .ag-category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1450;
    min-width: 220px;
    margin: 0;
    padding: 0;
    border: 1px solid #dfe5ec;
    border-radius: 0 0 4px 4px;
    list-style: none;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 31, 55, .16);
}
.ag-header-category-bar .ag-category-item:hover > .ag-category-dropdown,
.ag-header-category-bar .ag-category-item:focus-within > .ag-category-dropdown { display: block; }
.ag-header-category-bar .ag-category-dropdown-item { position: relative; margin: 0; }
.ag-header-category-bar .ag-category-dropdown-item > .ag-category-link-row { height: auto; }
.ag-header-category-bar .ag-category-dropdown-link.nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 9px 35px 9px 13px;
    border-bottom: 1px solid #edf0f4;
    color: #344054;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}
.ag-header-category-bar .ag-category-dropdown-item:last-child > .ag-category-link-row > .ag-category-dropdown-link { border-bottom: 0; }
.ag-header-category-bar .ag-category-dropdown-item:hover > .ag-category-link-row > .ag-category-dropdown-link {
    background: #f5f7fa;
    color: var(--ag-header-category-hover, #0B4FC6);
}
.ag-header-category-bar .ag-category-dropdown--nested { top: -1px; left: 100%; border-radius: 4px; }
.ag-header-category-bar .ag-category-dropdown-item:hover > .ag-category-dropdown,
.ag-header-category-bar .ag-category-dropdown-item:focus-within > .ag-category-dropdown { display: block; }
.ag-header-category-bar .ag-category-dropdown-item.has-child > .ag-category-link-row:after {
    content: "chevron_right";
    position: absolute;
    top: 10px;
    right: 10px;
    color: #98a2b3;
    font-family: "Material Icons";
    font-size: 18px;
}

.ag-header-promo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    min-width: 160px;
    height: 100%;
    margin-left: 10px;
    padding: 0 16px;
    background: var(--ag-header-promo-bg, #FF7A1A);
    color: var(--ag-header-promo-text, #fff);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}
.ag-header-promo-link:hover,
.ag-header-promo-link:focus { filter: brightness(.96); color: var(--ag-header-promo-text, #fff); text-decoration: none; }
.ag-header-promo-link .material-icons { font-size: 20px; }

.ag-header-mobile-drawer-head,
.ag-header-mobile-utilities { display: none; }

/* Shared responsive layout: cap the public storefront at 1300px. */
@media (min-width: 1200px) {
    body .container {
        width: 100%;
        max-width: var(--ag-storefront-max-width, 1300px) !important;
        margin-right: auto;
        margin-left: auto;
    }
}

/* Prevent wide legacy elements from creating sideways scrolling. */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 1319px) {
    #header .ag-header-main__inner { gap: 15px; }
    #header .ag-header-action { min-width: 88px; padding: 5px 8px; }
    #header .ag-header-action__content strong,
    #header .ag-header-action__content small { max-width: 95px; }
    #header .ag-header-cart { min-width: 148px; }
    #header .ag-header-action--secondary { display: none; }
    .ag-header-category-bar .ag-category-link.nav-link { padding-left: 7px; padding-right: 7px; font-size: 11px; }
}

@media (max-width: 1099px) and (min-width: 992px) {
    #header .ag-header-main__inner { grid-template-columns: 118px minmax(220px, 1fr) auto; }
    #header .ag-header-action__content small { display: none; }
    #header .ag-header-action { min-width: 60px; }
    #header .ag-header-action__content strong { max-width: 75px; }
    #header .ag-header-cart { min-width: 122px; }
    #header .ag-header-cart__summary { font-size: 11px; }
    #header .ag-header-about-wrap { display: none; }
}

@media (max-width: 991px) {
    /* The legacy theme reserves 50px for its old fixed navbar. The new mobile
       header is in normal document flow, so that reserved space must be removed. */
    html,
    body,
    body.on-scroll {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    #header.ag-site-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    body .container {
        width: 100%;
        max-width: 100% !important;
        padding-right: 12px;
        padding-left: 12px;
    }
    #header .ag-header-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    #header .ag-header-main {
        height: auto;
        min-height: calc(var(--ag-header-mobile-height, 64px) + 60px);
        padding: 0;
    }
    #header .ag-header-main__inner {
        grid-template-columns: 42px minmax(0, 1fr) 42px 48px;
        grid-template-rows: var(--ag-header-mobile-height, 64px) auto;
        column-gap: 8px;
        row-gap: 8px;
        padding: 0 10px 10px;
    }
    #header .ag-header-menu-toggle {
        display: block;
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        width: 40px;
        height: 40px;
    }
    #header .ag-header-logo {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-self: start;
        width: var(--ag-header-mobile-logo-width, 108px);
        max-width: var(--ag-header-mobile-logo-width, 108px);
        height: 52px;
    }
    #header .ag-header-logo img { height: 46px; }
    #header .ag-header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        margin: 0;
    }
    #header .ag-header-search input[type="text"] {
        width: 100%;
        min-width: 0;
        height: 44px;
        box-sizing: border-box;
        padding-right: 50px;
        font-size: 16px;
    }
    #header .ag-header-actions { display: contents; }
    #header .ag-header-about-wrap,
    #header .ag-header-action--secondary,
    #header .ag-header-action--hotline { display: none; }
    #header .ag-header-account-wrap {
        display: block;
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        width: 42px;
        height: 42px;
    }
    #header .ag-header-action--account {
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 4px;
        border: 0;
        border-radius: 5px;
    }
    #header .ag-header-action--account .ag-header-action__icon { width: 100%; flex-basis: 100%; }
    #header .ag-header-action--account .ag-header-action__content,
    #header .ag-header-action--account .ag-header-action__chevron,
    #header .ag-header-account-menu { display: none !important; }
    #header .ag-header-cart {
        grid-column: 4;
        grid-row: 1;
        align-self: center;
        width: 48px;
        min-width: 48px;
        height: 42px;
        padding: 0;
        border: 0;
    }
    #header .ag-header-cart__summary { display: none; }
    #header .ag-header-cart__icon-box { width: 46px; height: 42px; flex-basis: 46px; }

    .ag-header-category-bar,
    .ag-header-category-bar.ag-header-category-bar--sticky {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1300;
        width: min(88vw, 360px);
        height: 100vh;
        min-height: 100vh;
        margin: 0;
        overflow: hidden;
        background: #fff;
        box-shadow: 16px 0 34px rgba(8, 19, 36, .22);
        transform: translateX(-105%);
        transition: transform .25s ease;
    }
    .ag-header-category-bar.open { transform: translateX(0); }
    .ag-header-mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        padding: 0 16px;
        border-bottom: 1px solid #e7ecf2;
        background: var(--ag-header-primary, #063A68);
        color: #fff;
    }
    .ag-header-mobile-drawer-head strong { font-size: 16px; }
    .ag-header-mobile-drawer-head button { border: 0; background: transparent; color: #fff; font-size: 24px; }
    .ag-header-mobile-utilities {
        display: block;
        max-height: 190px;
        padding: 12px 15px;
        overflow-y: auto;
        border-bottom: 1px solid #e7ecf2;
        background: #f7f9fc;
    }
    .ag-mobile-utility-group { margin-bottom: 10px; }
    .ag-mobile-utility-group strong { display: block; margin-bottom: 5px; color: #101828; font-size: 13px; }
    .ag-mobile-utility-group a { display: inline-block; margin: 0 12px 5px 0; color: #475467; font-size: 12px; }
    .ag-mobile-utility-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        color: #344054;
        text-decoration: none;
    }
    .ag-mobile-utility-link .material-icons { color: var(--ag-header-category-hover, #0B4FC6); }
    .ag-mobile-utility-link b,
    .ag-mobile-utility-link small { display: block; }
    .ag-mobile-utility-link small { color: #667085; font-size: 10px; }
    .ag-header-category-bar .ag-header-category-container {
        display: block;
        height: calc(100vh - 250px);
        padding: 0;
        overflow-y: auto;
    }
    .ag-header-category-scroll { height: auto; overflow: visible; }
    .ag-header-category-bar .ag-category-menu.navbar-nav {
        display: block;
        position: static;
        width: 100%;
        min-width: 0;
        height: auto;
        background: #fff;
    }
    .ag-header-category-bar .ag-category-item { height: auto; }
    .ag-header-category-bar .ag-category-link-row { position: relative; height: auto; }
    .ag-header-category-bar .ag-category-link.nav-link {
        flex: 1 1 auto;
        height: auto;
        min-height: 48px;
        padding: 13px 50px 13px 18px;
        border-bottom: 1px solid #edf0f4;
        color: #172033;
        font-size: 14px;
        font-weight: 600;
        white-space: normal;
    }
    .ag-header-category-bar .ag-category-submenu-toggle {
        display: flex;
        position: absolute;
        top: 0;
        right: 0;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        color: #667085;
        font-size: 21px;
        z-index: 2;
    }
    .ag-header-category-bar .open > .ag-category-link-row > .ag-category-submenu-toggle { transform: rotate(180deg); }
    .ag-header-category-bar .ag-category-dropdown,
    .ag-header-category-bar .ag-category-dropdown--nested {
        display: none !important;
        position: static;
        width: 100%;
        min-width: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #f7f9fc;
        box-shadow: none;
    }
    .ag-header-category-bar .ag-category-item.open > .ag-category-dropdown,
    .ag-header-category-bar .ag-category-dropdown-item.open > .ag-category-dropdown { display: block !important; }
    .ag-header-category-bar .ag-category-dropdown-link.nav-link {
        min-height: 42px;
        padding: 11px 50px 11px 34px;
        border-bottom: 1px solid #e8edf4;
        color: #475467;
        font-size: 13px;
        white-space: normal;
    }
    .ag-header-category-bar .ag-category-dropdown--nested .ag-category-dropdown-link.nav-link { padding-left: 50px; }
    .ag-header-category-bar .ag-category-dropdown-item.has-child > .ag-category-link-row:after { display: none; }
    .ag-header-promo-link {
        display: flex;
        width: calc(100% - 24px);
        height: 46px;
        margin: 12px;
        border-radius: 4px;
    }
    .ag-header-overlay.overlay { top: 0 !important; z-index: 1200; }
}

@media (max-width: 380px) {
    #header .ag-header-main__inner {
        grid-template-columns: 40px minmax(0, 1fr) 40px 46px;
        column-gap: 5px;
    }
}

/* Neutralise legacy generic submenu arrows inside the scoped navigation. */
.ag-header-category-bar .has-child:before,
.ag-header-category-bar .has-child:after { display: none !important; }
