* {
    box-sizing: border-box;
}

.header {
    display: grid;
    align-items: center;
    box-sizing: border-box;
    height: 50px;
    position: relative;
    padding: 0 1.5rem;
    justify-content: space-between;
    grid-template-columns: 1fr 1fr 1fr;
}

.checkout-page .header {
    height: 72px;
    padding: 0 1.5rem;
}

.header .dropdown-menu {
    display: none;
}

.header .dropdown-menu a {
    font-size: .8125rem;
    line-height: 1.25;
    color: #000;
    padding: 0.5rem 0;
    display: block;
    height: 100%;
    width: 100%;
}

.header .dropdown-menu a:hover {
    text-decoration: underline;
}

.header .language-switch {
    position: relative;
    padding-right: 10px;
    margin: auto 0;
}

.header .language-switch:hover .dropdown-menu {
    display: block;
    position: absolute;
    z-index: 2;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    text-align: left;
    min-width: 9rem;
    padding: 1rem 1.5rem;
    list-style: none;
}

.checkout-page .header .language-switch {
    color: #fff;
    display: none;
}

.checkout-page .header .language-switch:hover .dropdown-menu {
    background: #000;
    border: 1px solid #fff;
}

.checkout-page .header .dropdown-menu a {
    color: #fff;
}

.header .garmin-logo {
    position: absolute;
    left: 45%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
}

.checkout-page .header .garmin-logo {
    left: 50%;
}

@media only screen and (min-width: 350px) {
    .header .garmin-logo {
        left: 50%;
    }
}

.header .action-buttons {
    grid-area: 1/3;
    display: flex;
    justify-content: flex-end;
}

.header .action-buttons>a {
    position: relative;
    height: 30px;
    width: 30px;
    display: block;
}

.checkout-page .header .action-buttons>a {
    height: 40px;
    width: 40px;
}

.header #cart-item-count {
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    background: #000;
    color: #fff;
    display: inline-block;
    text-align: center;
    border-radius: 100%;
    top: -2px;
    right: -4px;
    line-height: 1.25rem;
    font-size: .75rem;
    display: none;
}

.header .desktop-menu {
    display: none;
}

.header .mobile-menu {
    display: none;
    font-weight: 400;
    letter-spacing: .05rem;
    background: #fff;
    position: absolute;
    top: 100%;
    width: 100%;
    padding-bottom: 2rem;
}

.header .mobile-menu ul {
    list-style: none;
}

.header .mobile-menu li a {
    font-size: 1rem;
    letter-spacing: .04rem;
    color: #000;
    padding: 1rem 0;
    margin: 0 1rem;
    border-bottom: 1px solid #d9d9d9;
    list-style: none;
    text-transform: uppercase;
    line-height: 2rem;
    display: block;
    font-family: Oswald, sans-serif;
}

.header .mobile-menu .menu-link {
    margin-top: 3rem;
}

.header .mobile-menu li a:hover {
    color: #000;
    text-decoration: none;
}

.header.mobile-menu-opened .mobile-menu {
    display: block;
    z-index: 2;
}

.header.mobile-menu-opened .hamburger--top {
    transform: rotate(-45deg);
}

.header.mobile-menu-opened .hamburger--bottom {
    transform: rotate(45deg);
}

.header .hamburger {
    position: absolute;
    left: 0;
    width: 20px;
    height: 11px;
    padding: 1.25rem;
    top: 0;
    cursor: pointer;
}

.header .garmin__icon {
    max-height: 18px;
    width: 100%;
}

.checkout-page .header .garmin__icon {
    max-height: 20px;
    fill: #fff;
}

.header .cart__icon,
.header .search__icon .header .cart__icon__checkout {
    width: 1.875rem;
    max-height: 1.875rem;
}

.cart__icon__checkout {
    display: none;
}

.checkout-page .cart__icon {
    display: none;
}

.checkout-page .cart__icon__checkout {
    display: block;
}

.checkout-page .header #cart-item-count {
    background: #fff;
    color: #000;
}

.header .hamburger--top,
.header .hamburger--bottom {
    position: absolute;
    background: #000;
    height: 2px;
    width: 20px;
    border-radius: 20px;
    transform: rotate(0);
    transition: all ease .5s;
    transform-origin: center center;
    pointer-events: none;
}

.header .hamburger--bottom {
    transform: translateY(8px);
}

.header .action-buttons .search-button,
.header .action-buttons .search-form {
    display: none;
}

.header .mobile-menu .search-form {
    margin: 0;
    padding: 0 1rem;
    position: relative;
}

.header .mobile-menu .search-form input {
    font-size: .8125rem;
    line-height: 1.3rem;
    width: 100%;
    border: 2px solid #d9d9d9;
    padding: 1rem 2.6rem;
    background: rgba(0, 0, 0, 0);
    box-sizing: border-box;
    border-radius: unset;
    height: 57px;
}

.header .mobile-menu .search-form input:focus {
    outline: 0;
    border-color: #000;
}

.header .input__icon {
    position: absolute;
    height: 100%;
    left: 30px;
    top: 0;
    width: 30px;
}

@media only screen and (min-width: 430px) {
    .checkout-page .header {
        padding: 0 2rem;
    }
}

@media only screen and (min-width: 1024px) {
    body:not(.checkout-page) .header {
        grid-template-columns: auto 1fr 160px;
        justify-items: center;
        height: 64px;
    }

    .header .hamburger {
        display: none;
    }

    body:not(.checkout-page) .header .desktop-menu {
        display: flex;
        height: 100%;
    }

    body:not(.checkout-page) .header .garmin-logo {
        position: unset;
        transform: unset;
    }

    .header .garmin__icon {
        max-height: 20px;
    }

    .header .desktop-menu .link {
        height: 100%;
        padding: 0 0.8rem;
        margin: 0;
        border: none;
        justify-content: center;
        text-align: center;
        cursor: pointer;
        display: flex;
        align-items: center;
        text-transform: uppercase;
        font-size: 1rem;
        color: #000;
        font-family: Oswald, sans-serif;
    }

    .header .action-buttons {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
    }

    body:not(.checkout-page) .header .action-buttons .search-button {
        border: none;
        background: unset;
        height: fit-content;
        width: fit-content;
        padding: 0;
        margin: 0;
        display: block;
        cursor: pointer;
        width: 30px;
        height: 30px;
    }

    body:not(.checkout-page) .header .action-buttons.searchinput-opened .search-button {
        display: none;
    }

    .header .action-buttons.searchinput-opened .search-form {
        display: block;
    }

    .header .searchinput-opened .language-switch,
    .header .searchinput-opened a {
        display: none;
    }

    .header .action-buttons .search-form {
        position: relative;
        margin: 0;
        padding: 0;
    }

    .header .action-buttons .search-form input {
        font-size: .8125rem;
        line-height: 1.3rem;
        width: 100%;
        padding: 0.6rem 2rem 0.6rem 1.9rem;
        border: 1px solid #d9d9d9;
        position: relative;
        border-radius: unset;
        height: 42px;
    }

    .header .action-buttons .search-form input:focus {
        outline: 0;
        border-color: #000;
    }

    .header .search-form .input__icon {
        left: 3px;
    }

    .header .search-form .search-close {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        background: 0 0;
        border: none;
        padding: 0.75rem 0.5rem;
        cursor: pointer;
    }

    .header .search-form .close__icon {
        width: 1rem;
        max-height: 1rem;
    }
}

@media only screen and (max-width: 450px) {
    .header {
        grid-template-columns: 1fr auto;
        padding: 0 1rem;
    }

    .header .garmin-logo {
        position: static;
        transform: unset;
        display: block;
        margin-left: 25px;
    }
}