header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--color-third);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

header li.header-midle__item a {
    text-align: center;
}

header .container-header {
    max-width: 95%;
    margin: 0 auto;
}

header .menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .header-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

header .header-logo {
    margin-bottom: 0px;
}

.header-midle {
    display: none;
}

header .header-midle__list {
    display: flex;
    margin-bottom: 0;
    gap: 14px;
}

header .header-midle__item {
    display: flex;
    gap: 4px;
    text-align: center;
    cursor: pointer;
}

header .header-midle__item a {
    display: block;
    width: 100%;
    position: relative;
    text-decoration: none;
    padding: 6px 0;
    margin: 0 5px;
    font-size: 14px;
    color: var(--color-primary) !important;
    font-weight: 600;
    text-align: justify;
    text-transform: uppercase;
}

header .header-midle__item>a::before,
header .header-midle__item>a::after {
    content: "";
    transition: width 0.5s ease;
    height: 3px;
    background-color: var(--color-primary);
}

header .header-midle__item>a::before {
    display: block;
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0%;
}

header .header-midle__item>a::after {
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
}

header .header-midle__item:hover>a::before,
header .header-midle__item:hover>a::after {
    width: 50%;
}

header .header-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

header #contactMail {
    font-size: 20px;
    color: var(--color-primary);
}

header .header-right .search-group__inp {
    background-color: var(--color-secondary);
    border-radius: 1rem;
}

header .header-right .search-group__btn {
    position: absolute;
    background: none;
    border: none;
}

header .group-icon__cart {
    position: relative;
}

header .group-icon__cart .fa-shopping-cart::before {
    display: block;
    font-size: 24px;
}

header .group-icon__count {
    position: absolute;
    background-color: var(--color-success);
    border-radius: 50%;
    color: var(--color-third);
    top: -11px;
    right: -11px;
    display: block;
}

header .header-canvas__btnBars {
    background: none;
    border: none;
}

header .link_list_mobile .ct-mobile {
    color: var(--color-primary);
}

header .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

header i.toggle-icon {
    transition: transform 0.3s ease;
}

header i.toggle-icon.rotated {
    transform: rotate(90deg);
}

header li.mega {
    position: static;
}

header li.mega ul.mega-menu {
    display: none;
    position: absolute;
    top: 90%;
    left: 0;
    right: 0;
    flex-wrap: wrap;
    padding: 0 15px 0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    background: var(--color-secondary);
}

header li.mega ul.mega-menu .mega-item .mega-link {
    text-align: left;
    font-size: 16px;
    line-height: normal;
}

header li.mega ul.mega-menu .mega-sub-menu .mega-sub-item .mega-sub-link {
    text-align: left;
    font-size: 14px;
    line-height: normal;
    font-weight: 400;
    padding: 3px 0;
}


/* Mobile */
@media (max-width: 767.9px) {
    header .fa-bars {
        font-size: 24px;
        color: var(--color-primary);
    }

    header .container-header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    header .menu-header {
        gap: 15px;
    }

    header .header-left {
        gap: 10px;
    }

    header .header-logo,
    header .header-logo a,
    header .header-logo__img {
        height: 24px;
    }

    header .header-right {
        gap: 10px;
    }

    header .header-right .search-group {
        margin-left: 15px;
    }

    header .header-right .search-group__inp {
        padding-right: 32px;
        font-size: 13px;
    }

    header .header-right .search-group__btn {
        top: 1.5px;
        right: 5%;
        font-size: 20px;
        color: var(--color-primary);
    }

    header .group-icon__count {
        padding: 3px 6px 0.5px;
        font-size: 9px;
    }

    header .link_list_mobile {
        margin: 0px 0px 20px;
    }

    header .link_list_mobile .ct-mobile li {
        position: relative;
    }

    header .link_list_mobile .ct-mobile li i {
        position: absolute;
        top: 0;
        right: 5px;
        cursor: pointer;
        display: block;
        text-align: center;
        width: 30px;
        height: 30px;
        line-height: 30px;
        color: var(--color-primary);
    }

    header .link_list_mobile .ct-mobile .level0 {
        transition: all 0.5s ease;
    }

    header .link_list_mobile .ct-mobile .level0 a {
        text-decoration: none;
        font-size: 15px;
        line-height: 30px;
        padding: 0 15px 0 0;
        color: var(--color-primary);
        font-weight: 600;
    }

    header .link_list_mobile .ct-mobile .level0 .level1 a {
        display: block;
        font-size: 15px;
        line-height: 30px;
        padding: 0px 15px 0px 35px;
    }

    .link_list_mobile .ct-mobile .level0 .level1 .level2 a {
        display: block;
        font-size: 14px;
        line-height: 30px;
        padding: 0px 35px 0px 55px;
    }

    .link_list_mobile .ct-mobile .ct-mobile__introduce,
    .link_list_mobile .ct-mobile .ct-mobile__product,
    .link_list_mobile .ct-mobile .ct-mobile__news,
    .link_list_mobile .ct-mobile .ct-mobile__contact,
    .link_list_mobile .ct-mobile li.level0 ul.level0 .level1__uniform {
        display: flex;
        align-items: center;
    }

    .link_list_mobile .ct-mobile .ct-mobile__introduce::before {
        content: "";
        display: flex;
        width: 15px;
        height: 15px;
        background-image: url('../../files/img/ic-introduce.png');
        margin-right: 5px;
    }

    .link_list_mobile .ct-mobile .ct-mobile__product::before {
        content: "";
        display: inline-block;
        width: 15px;
        height: 15px;
        background-image: url('../../files/img/ic-product.png');
        margin-right: 5px;
    }

    .link_list_mobile .ct-mobile .ct-mobile__news::before {
        content: "";
        display: inline-block;
        width: 15px;
        height: 15px;
        background-image: url('../../files/img/ic-news.png');
        margin-right: 5px;
    }

    .link_list_mobile .ct-mobile .ct-mobile__contact::before {
        content: "";
        display: inline-block;
        width: 15px;
        height: 15px;
        background-image: url('../../files/img/ic-contact.png');
        margin-right: 5px;
    }

    .link_list_mobile .ct-mobile .level1__uniform::before {
        content: "";
        display: inline-block;
        width: 15px;
        height: 15px;
        background-image: url('../../files/img/ic-product.png');
        margin-right: 5px;
    }

    .header-canvas__btnBars {
        display: flex;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .header-midle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-canvas__btnBars {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1024.9px) {
    header .container-header {
        height: 70px;
        width: 100%;
        display: flex;
        align-items: center;
    }

    header .menu-header {
        width: 100%;
    }

    header .header-logo,
    header .header-logo a,
    header .header-logo__img {
        height: 28px;
    }

    header .header-right {
        gap: 10px;
    }

    header .header-right .search-group {
        width: 150px;
        margin: 5px 0;
    }

    header .header-right .search-group__inp {
        padding-right: 36px;
        font-size: 17px;
    }

    header .header-right .search-group__btn {
        top: 1.5px;
        right: 5%;
        font-size: 24px;
        color: var(--color-primary);
    }

    header .group-icon__count {
        padding: 1px 7px 0px;
        font-size: 14px;
    }

    .group-icon__cart {
        margin-left: 5px;
    }

    header .header-midle__item a {
        font-size: 17px;
        padding-bottom: 20px;
        padding-top: 20px;
    }

    header li.mega:hover ul.mega-menu {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 5px;
    }

    header li.mega:hover ul.mega-menu.mega-services {
        width: calc((100% + 10px) / 3 + 10px);
        ;
        grid-template-columns: repeat(2, 1fr);
    }

    header li.mega:hover ul.mega-menu .mega-link {
        margin: 0;
        font-size: 12px;
    }

    header li.mega:hover ul.mega-menu .mega-link .mega-text {
        position: absolute;
        bottom: 21px;
        color: var(--color-secondary);
        text-align: center;
        width: 100%;
        text-shadow: 0px 0px 5px var(--color-primary);
    }

    /* header li.mega:hover ul.mega-menu .mega-link .mega-image {
        height: 150px;
    } */

    header li.mega:hover ul.mega-menu .mega-link .mega-image img {
        height: 100%;
        width: 100%;
    }

    header li.mega:hover ul.mega-menu .mega-sub-menu .mega-sub-link {
        font-size: 10px;
    }

    header #contactMail {
        font-size: 23px;
    }
}

/* PC */
@media (min-width: 1025px) {
    header .container-header {
        height: 80px;
        width: 100%;
        display: flex;
        align-items: center;
    }

    header .menu-header {
        width: 100%;
    }

    header .header-logo,
    header .header-logo a,
    header .header-logo__img {
        height: 32px;
    }

    header .header-right {
        gap: 10px;
    }

    header .header-right .search-group {
        width: 270px;
        margin: 5px 0;
    }

    header .header-right .search-group__inp {
        padding-right: 36px;
        font-size: 17px;
    }

    header .header-right .search-group__btn {
        top: 1.5px;
        right: 5%;
        font-size: 24px;
        color: var(--color-primary);
    }

    header .group-icon__count {
        padding: 1px 7px 0px;
        font-size: 14px;
    }

    .group-icon__cart {
        margin-left: 5px;
    }

    header .header-midle__item a {
        font-size: 17px;
        padding-bottom: 20px;
        padding-top: 20px;
    }

    header li.mega:hover ul.mega-menu {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        width: 80%;
        gap: 10px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 8px;
    }

    header li.mega:hover ul.mega-menu.mega-services {
        width: calc((80% + 10px) / 3 + 10px);
        ;
        grid-template-columns: repeat(2, 1fr);
    }

    header li.mega:hover ul.mega-menu .mega-link {
        margin: 0;
        font-size: 14px;
    }

    header li.mega:hover ul.mega-menu .mega-link .mega-text {
        position: absolute;
        bottom: 24px;
        color: var(--color-secondary);
        text-align: center;
        width: 100%;
        text-shadow: 0px 0px 5px var(--color-primary);
    }

    /* header li.mega:hover ul.mega-menu .mega-link .mega-image {
        height: 180px;
    } */

    header li.mega:hover ul.mega-menu .mega-link .mega-image img {
        height: 100%;
        width: 100%;
    }

    header li.mega:hover ul.mega-menu .mega-sub-menu .mega-sub-link {
        font-size: 12px;
    }

    header #contactMail {
        font-size: 26px;
    }
}