.header-area {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(12, 1fr);
    padding-top: 15px;
}

.minicart-wrapper {
    margin-top: 0;
}

body.header_absolute.cms-index-index .page-wrapper header.page-header {
    position: relative !important;
    padding-top: 16px;
}

@media (max-width: 991px) {

    .footer-container .middle-footer,
    .middle-footer {
        height: auto !important;
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .footer-container .middle-footer .frame .line,
    .middle-footer .line {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        float: none !important;
    }

    .footer-container .middle-footer .frame .line>div,
    .middle-footer .line>div {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin-bottom: 30px !important;
        clear: both !important;
        flex: none !important;
    }

    .footer-container .middle-footer .frame .line>div ul,
    .middle-footer .line>div ul {
        display: block !important;
    }
}

.header-content {
    grid-column: 2/-1;
    display: grid;
    align-items: flex-start;
    gap: 8px;
    justify-self: flex-end;
    grid-auto-flow: column;
}

.header-content .top-custom-link {
    align-self: flex-start;
}

.header-content .top-custom-link li {
    font-size: 0 !important;
}

.header-content .top-custom-link li span.icon {
    font-size: 0;
    display: inline-block;
    line-height: initial;
}

.header-content .top-custom-link li span.icon:before {
    font-size: 24px;
    line-height: initial;
    color: rgb(105, 105, 105);
}

.header-content .bbb {
    top: 0;
}

.header-content .cart i {
    font-size: 24px !important;
    display: block;
    color: rgb(105, 105, 105);
}

.header-content .search-form {
    align-self: flex-start;
}

.header-content .search-form i {
    font-size: 24px !important;
    display: block;
    color: rgb(105, 105, 105);
}

.menu-wrapper {
    grid-column: 1 / -1;
    grid-row-start: 2;
    max-width: 100% !important;
    width: 100% !important;
}

@media (max-width: 675px) {
    .menu-wrapper .tab-content .tab-pane.active {
        display: block;
    }

    .header-content {
        grid-column: 3/-1;
    }

    .header-area .bbb {
        display: none;
    }

    .header-area .default-logo {
        width: 120px;
    }

    .header-area .top-custom-link {
        align-self: center;
    }

    .header-area .search-form {
        align-self: center;
    }

    .header-area .cart {
        align-self: center;
    }

    .header-area .cart .minicart-wrapper {
        margin-top: 0 !important;
        float: initial;
        position: initial;
    }

    header.page-header .menu-wrapper {
        display: none;
        opacity: 1;
        visibility: initial;
    }

    .nav-open header.page-header .menu-wrapper {
        display: block;
    }
}

/* fix megamenu */
@media screen and (min-width: 675px) and (max-width: 1200px) {
    header.page-header .nav-tg {
        display: none !important;
    }

    header.page-header #main-Accountcontent,
    header.page-header #main-Settingcontent {
        display: none;
    }

    header.page-header .menu-wrapper {
        transform: initial;
        opacity: initial;
        height: initial;
        visibility: initial;
        position: initial;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    header.page-header .menu-wrapper .megamenu-content {
        display: block;
    }

    header.page-header .menu-wrapper .megamenu-content .nav-main-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: center;
    }

    header.page-header .menu-wrapper .megamenu-content .nav-main-menu .toggle-menu {
        display: none !important;
    }

    header.page-header .menu-wrapper .megamenu-content .nav-main-menu .dropdown-menu {
        display: none;
    }
}

@media (max-width: 625px) {
    .header-area .free-shipping {
        display: none;
    }
}

@media (max-width: 475px) {
    .header-area #astores {
        display: none;
    }
}

@media (min-width: 676px) {
    .header-area {
        padding-left: 16px;
        padding-right: 16px;
    }
}