/* Global header and primary navigation refresh */
.mit-header {
    position: relative;
    z-index: 1030;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid #eef0f2;
}

.mit-header.active {
    z-index: 1030;
    background: rgba(255, 255, 255, .96);
    border-bottom-color: #e3e6e9;
    box-shadow: 0 10px 30px rgba(24, 29, 36, .1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.mit-header-form .search-result {
    top: calc(100% + 9px) !important;
    overflow: hidden;
    padding: 9px !important;
    background: #fff !important;
    border: 1px solid #e3e6ea !important;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(22, 27, 34, .15);
}

.mit-header-form .search-result > a {
    padding: 8px !important;
    color: #343a43;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9px;
}

.mit-header-form .search-result > a:hover {
    color: #985900;
    background: #fff3df;
}

.mit-header-form .search-result img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #f7f8f9;
    border-radius: 8px;
}

.mit-nav {
    position: relative;
    z-index: 1020;
    background: #fff;
    border-bottom: 1px solid #e6e9ed;
    box-shadow: 0 5px 15px rgba(22, 27, 34, .035);
}

@media (min-width: 992px) {
    .mit-header-content {
        display: grid;
        grid-template-columns: 166px minmax(300px, 1fr) auto;
        align-items: center;
        gap: 22px;
        min-height: 84px;
        padding: 13px 0;
    }

    .mit-header-logo {
        display: inline-flex;
        align-items: center;
        width: fit-content;
        margin: 0;
        padding: 6px 0;
    }

    .mit-header-logo img {
        width: auto;
        height: 43px;
        object-fit: contain;
    }

    .mit-header-form {
        width: 100%;
        height: 52px;
        margin: 0;
        overflow: visible;
        background: #f5f6f7;
        border: 1px solid #eaedf0;
        border-radius: 14px;
        box-shadow: inset 0 1px 2px rgba(24, 29, 36, .025);
    }

    .mit-header-form:focus-within {
        background: #fff;
        border-color: #f4a31f;
        box-shadow: 0 0 0 4px rgba(245, 166, 35, .12);
    }

    .mit-header-form input {
        height: 50px;
        padding: 0 10px 0 18px;
        color: #272c33;
        font-size: 15px;
        line-height: 50px;
    }

    .mit-header-form input::placeholder {
        color: #8b929b;
        opacity: 1;
    }

    .mit-header-form button[type="submit"] {
        flex: 0 0 48px;
        width: 48px;
        height: 42px;
        margin-right: 4px;
        padding: 0;
        color: #22272e;
        background: #ffad27;
        border: 0;
        border-radius: 11px;
        transition: color .18s ease, background-color .18s ease, transform .18s ease;
    }

    .mit-header-form button[type="submit"]:hover,
    .mit-header-form button[type="submit"]:focus-visible {
        color: #fff;
        background: #20242b;
        outline: none;
        transform: translateY(-1px);
    }

    .mit-header-form button[type="submit"] i {
        width: auto;
        height: auto;
        color: inherit;
        line-height: 1;
        background: transparent;
    }

    .mit-header-link-group {
        gap: 9px;
        flex: 0 0 auto;
    }

    .mit-header-link-group > .btn-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 44px;
        margin: 0 3px 0 0;
        padding: 0 9px;
        color: #8b5200;
        font-size: 13px;
        font-weight: 750;
        line-height: 1;
        text-decoration: none;
        background: #fff2dc;
        border: 1px solid #ffe0ac;
        border-radius: 12px;
    }

    .mit-header-link-group > .btn-link:hover,
    .mit-header-link-group > .btn-link:focus-visible {
        color: #fff;
        background: #20242b;
        border-color: #20242b;
        outline: none;
    }

    .mit-header-link-group .mit-header-link {
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 12px;
    }

    .mit-header-link-group .mit-header-link > i {
        width: 44px;
        height: 44px;
        color: #4e5661;
        font-size: 14px;
        line-height: 44px;
        background: #f4f5f6;
        border: 1px solid #eceef1;
        border-radius: 12px;
        transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
    }

    .mit-header-link-group .mit-header-link:hover > i,
    .mit-header-link-group .mit-header-link:focus-visible > i {
        color: #20242b;
        background: #ffad27;
        border-color: #ffad27;
        transform: translateY(-2px);
    }

    .mit-header-link-group .mit-header-link:focus-visible {
        outline: 3px solid rgba(245, 166, 35, .22);
        outline-offset: 2px;
    }

    .mit-header-link-group .mit-header-link sup {
        top: -7px;
        right: -5px;
        left: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 21px;
        height: 21px;
        padding: 0;
        color: #24282f;
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
        background: #ffad27;
        border: 2px solid #fff;
    }

    .mit-nav-content {
        min-height: 58px;
        padding: 7px 0;
        background: transparent;
        border-top: 0;
    }

    .mit-nav-content > .nav {
        align-items: center;
        gap: 5px;
    }

    .mit-nav-content .nav-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 42px;
        padding: 9px 12px;
        color: #4f5761;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
        border-radius: 10px;
        transition: color .17s ease, background-color .17s ease, transform .17s ease;
    }

    .mit-nav-content .nav-link > i {
        color: #a1a8b1;
        font-size: 13px;
        transition: color .17s ease;
    }

    .mit-nav-content .nav-link:hover,
    .mit-nav-content .nav-link:focus-visible,
    .mit-nav-content .nav-link.active:not(.nav-category-trigger) {
        color: #20242b;
        background: #f4f5f7;
        outline: none;
    }

    .mit-nav-content .nav-link:hover > i,
    .mit-nav-content .nav-link.active > i {
        color: #c97600;
    }

    .mit-nav-content .nav-category-trigger {
        padding-right: 15px;
        color: #fff;
        background: #20242b;
        box-shadow: 0 6px 15px rgba(29, 33, 40, .12);
    }

    .mit-nav-content .nav-category-trigger > i {
        color: #ffad27;
    }

    .mit-nav-content .nav-category-trigger:hover,
    .mit-nav-content .nav-category-trigger:focus-visible,
    .dropdown-megamenu:focus-within .nav-category-trigger {
        color: #20242b;
        background: #ffad27;
        outline: none;
        transform: translateY(-1px);
    }

    .mit-nav-content .nav-category-trigger:hover > i,
    .mit-nav-content .nav-category-trigger:focus-visible > i,
    .dropdown-megamenu:focus-within .nav-category-trigger > i {
        color: #20242b;
    }

    .mit-nav-content .nav .dropdown-toggle::after {
        margin-left: 2px;
        border-top-width: 5px;
        border-right-width: 4px;
        border-left-width: 4px;
    }

    .mit-nav-content .nav-special-offer {
        color: #9b5900;
        background: #fff3df;
    }

    .mit-nav-content .nav-special-offer > i {
        color: #e18800;
    }

    .mit-nav-content .mit-nav-right .nav-account-link {
        color: #414852;
        background: #f4f5f6;
    }

    .mit-nav-content .mit-nav-right .nav-register-link {
        color: #20242b;
        background: #ffad27;
    }

    .mit-nav-content .mit-nav-right .nav-register-link > i {
        color: #20242b;
    }

    .mit-nav-content .nav-item.dropdown .dropdown-menu {
        top: calc(100% + 12px);
        min-width: 220px;
        padding: 8px;
        background: #fff;
        border: 1px solid #e4e7eb;
        border-radius: 13px;
        box-shadow: 0 16px 38px rgba(22, 27, 34, .14);
    }

    .mit-nav-content .nav-item.dropdown:hover .dropdown-menu,
    .mit-nav-content .nav-item.dropdown:focus-within .dropdown-menu {
        top: calc(100% + 5px);
    }

    .mit-nav-content .dropdown-menu .dropdown-item {
        padding: 9px 10px;
        color: #4f5761;
        font-size: 14px;
        font-weight: 550;
        border-radius: 8px;
    }

    .mit-nav-content .dropdown-menu .dropdown-item:hover,
    .mit-nav-content .dropdown-menu .dropdown-item:focus {
        color: #965800;
        background: #fff1d8;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .mit-header-content {
        grid-template-columns: 145px minmax(260px, 1fr) auto;
        gap: 14px;
    }

    .mit-header-logo img {
        height: 39px;
    }

    .mit-header-link-group {
        gap: 5px;
    }

    .mit-header-link-group .mit-header-link,
    .mit-header-link-group .mit-header-link > i,
    .mit-header-link-group > .btn-link {
        width: 41px;
        min-width: 41px;
        height: 41px;
    }

    .mit-header-link-group .mit-header-link > i {
        line-height: 41px;
    }

    .mit-nav-content .nav-link {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 14px;
    }
}

@media (max-width: 991.98px) {
    .mit-header {
        position: sticky;
        top: 0;
        z-index: 1030;
        border-bottom: 1px solid #e5e8eb;
        box-shadow: 0 5px 18px rgba(22, 27, 34, .09);
    }

    .mit-header-content {
        min-height: 70px;
        padding: 10px 0;
    }

    .mit-header-m-link-group {
        display: grid !important;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        gap: 12px;
    }

    .mit-header-m-link-group > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mit-header-m-link-group img {
        width: auto;
        height: 40px;
        object-fit: contain;
    }

    .mit-header-m-link-group .mit-header-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        color: #303640;
        background: #f2f4f6;
        border: 1px solid #e7eaed;
        border-radius: 13px;
    }

    .mit-header-m-link-group .mit-header-link i {
        width: auto;
        height: auto;
        color: inherit;
        font-size: 15px;
        line-height: 1;
        background: transparent;
        border-radius: 0;
    }

    .mit-header-m-link-group .mit-mobile-menu {
        color: #fff;
        background: #20242b;
        border-color: #20242b;
    }

    .mit-header-m-link-group .mit-header-link:focus-visible {
        outline: 3px solid rgba(245, 166, 35, .24);
        outline-offset: 2px;
    }

    .mit-header-form.active {
        width: 100%;
        height: 49px;
        margin-top: 10px;
        overflow: visible;
        background: #f4f5f6;
        border: 1px solid #e3e6e9;
        border-radius: 13px;
    }

    .mit-header-form.active:focus-within {
        background: #fff;
        border-color: #f4a31f;
        box-shadow: 0 0 0 3px rgba(245, 166, 35, .11);
    }

    .mit-header-form.active input {
        height: 47px;
        padding-left: 15px;
        font-size: 14px;
    }

    .mit-header-form.active button[type="submit"] {
        width: 45px;
        height: 45px;
        padding: 0;
        color: #20242b;
        background: #ffad27;
        border: 0;
        border-radius: 11px;
    }

    .mit-header-form.active button[type="submit"] i {
        width: auto;
        height: auto;
        color: inherit;
        line-height: 1;
        background: transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mit-header-form,
    .mit-header-form button,
    .mit-header-link,
    .mit-header-link i,
    .mit-nav-content .nav-link {
        transition: none;
    }
}
