.full-header-top {

    background-color: #fff;

    color: #1f3652;

    padding: 5px 0;

}

.header__search-wrapper {
    width: 55%;
}

.inner-header-top {

    display: grid;

    grid-template-columns: 1fr 250px 1fr;

    grid-template-rows: auto;

    grid-gap: .625rem;

    width: 100%;

    margin-inline: auto;

}



.header-links {

    gap: 15px;

    display: flex;

    align-items: center;

}



.header-link {
    font-size: 15px;
    font-weight: 600;
    display: flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

    color: #1f3652;
}



.header-link i {

    font-size: 20px;

}



.header-link:hover {

    color: #ee9b00;

}



.header-logo {

    float: left;


    overflow: hidden;

    max-height: 120px;

    transition: all 0.3s;
    text-align: center;
}



.header-logo a {

    float: left;

    width: 100%;

}



.header__content {

    grid-column: 3 / 4;

    align-self: center;

    display: flex;

    flex-direction: row;

    flex-wrap: nowrap;

    justify-content: flex-end;

    align-items: center;

    gap: 15px;

}



.header__content .header__search-wrapper {

    /* flex-grow: 1;

     */

    width: 55%;

}







.search-box__header {

    position: relative;



}



.instasearch-term {

    width: 100%;

    padding: 10px 10px 10px 40px;

    background-color: #f5fcff;

    border-color: var(--primary);

    color: inherit;

    box-shadow: none;

    transition-property: background-color, color, box-shadow, border;

    transition-duration: 0.2s;

    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);

    border-radius: 1.5rem;

}



.search-box__icon--search {

    position: absolute;

    top: 10px;

    left: 10px;

    z-index: 9;

    font-size: 20px;

    color: gray;

}



.search-box__content .search-box__addon {

    position: absolute;

    height: var(--search-addon-size);

    inset-inline-end: var(--search-addon-pos);

    top: 50%;

    margin-top: calc(var(--search-addon-size) / 2 * -1);

}





.search-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.8);

    z-index: 999;

    opacity: 0;

    visibility: hidden;

    transition: 0.4s ease;

}



.search-wrapper {

    background: #fff;

    padding: 40px;

    transform: translateY(-100%);

    transition: 0.4s ease;

}



.search-wrapper form {

    max-width: 600px;

    margin: 0 auto;

    display: flex;

    border: 1px solid #656565;

}



.search-wrapper input {

    flex: 1;

    padding: 12px;

    font-size: 18px;

    border: none;

}



.search-wrapper button {

    padding: 12px 22px;

    font-size: 16px;

    cursor: pointer;

    border: none;

    color: #f5f5f5;

    background-color: #f49712;

}





.searchToggle.active .search-overlay {

    opacity: 1;

    visibility: visible;

}



.searchToggle.active .search-wrapper {

    transform: translateY(0);

}







.header__buttons {

    width: 30%;

    display: inline-flex;

    flex-direction: row;

    flex-wrap: nowrap;

    justify-content: space-between;

    align-items: center;

    gap: 1.25rem;

}



.header__button {

    display: flex;

    align-items: center;

    gap: 15px;

    text-decoration: none;

    color: #242a6d;

}





/* CART */

.header-cart {

    position: relative;

}



.header-cart .cart-toggle {

    width: 36px;

    display: flex;

    align-items: center;

    height: 32px;

    color: -primary;

    border-radius: 3px;

    justify-content: center;

}



.cart-toggle i {

    font-size: 22px;

}



#close-cart {

    font-size: 28px;

}



.cart-count {

    position: absolute;

    top: -9px;

    right: -10px;

    background: #ee9b00;

    outline: 2px solid #fff;

    outline-offset: -1px;

    color: #fff;

    font-size: 10px;

    border-radius: 50%;

    padding: 2px 7px;

}





.mini-cart {

    position: fixed;

    top: 0;

    right: -400px;

    width: 380px;

    height: 100%;

    background: #fff;

    z-index: 9999;

    transition: 0.3s;

    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);

}



.mini-cart.active {

    right: 0;

}



.mini-cart-inner {

    display: flex;

    flex-direction: column;

    height: 100%;

    padding: 15px;

}



.mini-cart-header {

    padding: 15px;

    display: flex;

    justify-content: end;

    border-bottom: 1px solid #eee;

}



.mini-cart-content {

    flex: 1;

    overflow-y: auto;

}



.mini-cart-footer {

    padding: 15px;

    border-top: 1px solid #eee;

}



.btn-cart,

.btn-checkout {

    display: block;

    margin-bottom: 10px;

    text-align: center;

    padding: 10px;

    background: #000;

    color: #fff;

}



/* LIST */

.custom-mini-cart {

    list-style: none;

    padding: 0;

    margin: 0;

}



/* ITEM */

.mini-cart-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 0;

    border-bottom: 1px solid #eee;

    position: relative;

}



.mini-cart-content a {

    text-decoration: none;

}



/* REMOVE */

.mini-cart-item .remove {

    position: absolute;

    right: 0;

    top: 10px;

}



.mini-cart-item .remove a {

    width: 22px;

    height: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #eee;

    color: #999;

    font-size: 14px;

}



/* IMAGE */

.mini-cart-item .thumb img {

    width: 60px;

    height: auto;

}



/* INFO */

.mini-cart-item .info {

    flex: 1;

    padding-right: 30px;

}



.mini-cart-actions a {

    text-decoration: none;

}



.product-name {

    display: block;

    font-size: 14px;

    color: #1e73be;

    font-weight: 600;

    line-height: 1.4;

}



.price {

    font-size: 13px;

    color: #666;

    margin-top: 4px;

}



/* TOTAL */

.mini-cart-total {

    display: flex;

    justify-content: space-between;

    padding: 15px 0;

    font-size: 15px;

    border-top: 1px solid #eee;

}



/* BUTTON */

.btn-view-cart {

    display: block;

    background: #1e5ea8;

    color: #fff;

    text-align: center;

    padding: 12px;

    margin-bottom: 10px;

    font-weight: 600;

}



.btn-checkout {

    display: block;

    background: #c2512b;

    color: #fff;

    text-align: center;

    padding: 12px;

    font-weight: 600;

}



/* EMPTY */

.mini-cart-empty {

    text-align: center;

    padding: 30px 15px;

}



.empty-icon {

    font-size: 40px;

    margin-bottom: 10px;

}



.btn-back {

    display: inline-block;

    margin-top: 10px;

    background: #bcac79;

    color: #fff;

    padding: 10px 20px;

}



.language-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

}



.language-header .company-name {

    width: 30%;

}



.flag-language-switch {

    position: relative;



}



.flag-selected {

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 6px;

    background-color: transparent;

    color: #fff;

    border-radius: 5px;

    /* padding: 5px 10px; */

    transition: background 0.3s;

}



.current-flag {
    display: none;
    height: 20px;

    width: 30px;

    object-fit: cover;

}



.flag-text {

    display: flex;

    align-items: center;

    gap: 2px;

}



.current-lang-code {

    width: calc(100% - 25px);

    font-weight: 600;

    text-transform: uppercase;

    font-size: 16px;

    color: #ee9b00;

}



.arrow-down {

    transition: transform 0.2s ease;

    width: 20px;

}



.flag-selected.active .arrow-down {

    transform: rotate(180deg);

}



.flag-dropdown {

    position: absolute;

    top: 35px;

    left: 50%;

    transform: translateX(-50%);

    background: #fff;

    border-radius: 5px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);

    z-index: 9999;

    display: none;

    min-width: auto;

    padding: 6px 25px;

}



.flag-item {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    color: #000;

    padding: 3px 8px;

    cursor: pointer;

    transition: background 0.2s;

}



.flag-item:hover {

    background: #f5f5f5;

}



/* Ẩn popup đánh giá bản dịch và tooltip phản hồi */

.goog-tooltip,

.goog-tooltip:hover,

.goog-tooltip::after,

.goog-tooltip::before,

.goog-te-balloon-frame,

.goog-te-banner-frame,

#goog-gt-tt {

    display: none !important;

    visibility: hidden !important;

    opacity: 0 !important;

    pointer-events: none !important;

}



li.language-switcher {

    display: none;

}







.full-header {

    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 20%, #3b6db3 40%, #305c8f 55%, #3577c2 70%, #8ec5ff 85%, #c2e0ff 100%);
    z-index: 99;

}



img.site-logo {

    max-width: 100%;

    max-height: 95px;

}



/* menu */



.main-menu {

    display: flex;

    justify-content: center;

    /* margin-top: 15px;

    margin-bottom: 15px; */

    transition: margin-top 0.3s;

}



/* Search */



.header-search {

    float: right;

    width: 190px;

    margin-top: 24px;

    transition: margin-top 0.3s;

}



#search-form {

    width: 150px;

    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);

    margin: 0;

    border: 1px solid #ddd;

    float: left;

    height: 26px;

    padding: 0px 5px;

    border-radius: 5px 0 0 5px;

}



.search-submit {

    width: 28px;

    margin: 0;

    background-color: #01959f;

    height: 28px;

    float: left;

    border-radius: 0 5px 5px 0;

    border: none;

}



.search-submit i {

    color: #fff;

    font-size: 14px;

}





/* ===================== HEADER USER ICON ===================== */

.header-user {

    position: relative;

}



.user-icon {

    font-size: 23px;

    cursor: pointer;

    transition: color 0.3s;

}



.user-icon:hover {

    color: #d2b48c;

}



/* Dropdown khi đã login (giống ảnh 1) */

.user-dropdown {

    display: none;

    position: absolute;

    top: 100%;

    right: 0;

    background: #fff;

    min-width: 220px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

    border-radius: 10px;

    overflow: hidden;

    z-index: 1000;

    margin-top: 8px;

}



.user-dropdown.active {

    display: block;

    animation: fadeIn 0.2s ease;

}



.dropdown-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px 20px;

    color: #333;

    text-decoration: none;

    font-size: 15px;

}



.dropdown-item:hover {

    background: #f8f1e3;

}



.dropdown-divider {

    height: 1px;

    background: #eee;

}



.logout {

    color: #e74c3c;

}



/* Popup (giống ảnh 2) */

.popup {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    z-index: 9999;

    align-items: center;

    justify-content: center;

}



.popup-content {

    width: 860px;

    max-width: 95%;

    background: #fff;

    border-radius: 12px;

    display: flex;

    overflow: hidden;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);

    position: relative;

}



.close-popup {

    position: absolute;

    top: 18px;

    right: 22px;

    font-size: 28px;

    background: none;

    border: none;

    color: #999;

    cursor: pointer;

    z-index: 10;

}



.popup-left {

    flex: 1;

    padding: 45px 40px;

}



.popup-left h2 {

    text-align: center;

    margin-bottom: 30px;

    color: #2c0b0b;

}



.login-form input {

    width: 100%;

    padding: 14px 16px;

    margin-bottom: 16px;

    border: 1px solid #ddd;

    border-radius: 6px;

    font-size: 16px;

}



.password-field {

    position: relative;

}



.toggle-password {

    position: absolute;

    right: 16px;

    top: 40%;

    transform: translateY(-50%);

    cursor: pointer;

    color: #777;

}



.form-options {

    display: flex;

    justify-content: space-between;

    margin-bottom: 20px;

    font-size: 14px;

}



.btn-login {

    width: 100%;

    padding: 14px;

    background: #bcac79;

    color: white;

    border: none;

    border-radius: 6px;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s;

}





.btn-login:hover {

    background: #d2b48c;

}



.remember-me input {

    width: auto !important;

}



.forgot-link {

    text-decoration: none;

    color: #555;

    font-size: 14px;

    transition: color 0.3s;

}



.forgot-link:hover {

    color: #d2b48c;

}



.popup-right {

    flex: 1;

    background: #fafafb;

    padding: 45px 40px;

    display: flex;

    flex-direction: column;

}



.popup-right h3 {

    margin-bottom: 16px;

    color: #1c1c1c;

}



.popup-right p {

    line-height: 1.65;

    color: #555;

    margin-bottom: 25px;

}



.btn-register {

    background: #ee9b00;

    color: #fff;

    width: fit-content;

    padding: 10px 30px;

    border-radius: 6px;

    text-decoration: none;

    font-weight: 600;

    text-align: center;

    margin-top: auto;

}



.btn-register:hover {

    background: #be7c00;

}



.hidden-desktop {

    display: none;

}



.mobile-extra {

    display: none;

}



.mega-menu-description {

    display: none !important;

}







@media (min-width: 990px) {

    .br1 {

        border-right: 0.5px solid #cccccc54 !important;

        border-left: 0.5px solid #cccccc54 !important;

    }



    /* gạch phần tử đầu tiên */

    .bb1 ul li .mega-menu-link {

        border-bottom: 1px solid #cccccc54 !important;

    }



    .bb1 ul li .mega-sub-menu .mega-menu-link {

        border: none !important;

    }

}



/* Animation */

@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateY(10px);

    }



    to {

        opacity: 1;

        transform: translateY(0);

    }

}



@media (max-width: 1024px) {

    .header__content .header__search-wrapper {

        width: 50%;

    }



    .inner-header-top {

        grid-template-columns: 1fr 200px 1fr;

    }

}



@media (max-width: 990px) {

    .hidden-desktop {

        display: block;

    }



    .inner-header {

        display: none;

    }



    .mobile-extra {

        display: block;

    }



    .header-link,

    .hidden-mobile {

        display: none;

    }



    .link-mobile {

        display: flex;

    }



    .mobile-contact {

        margin-top: 30px;

        border-bottom: 1px solid #ddd;

    }



    .header-links {

        gap: 15px;

        display: flex;

        align-items: start;

        justify-content: center;

        flex-direction: column;

    }



    .mobile-extra {

        display: block;

        padding: 15px;

        border-bottom: 1px solid #ddd;

    }



    .mobile-search {

        margin-bottom: 30px;

    }





    /* SEARCH */

    .mobile-search form {

        display: flex;

        background: #fff;

        border-radius: 30px;

        overflow: hidden;

        border: 1px solid #ddd;

    }



    .mobile-search input {

        flex: 1;

        padding: 10px 15px;

        border: none;

        background: transparent;

        color: #fff;

    }



    .mobile-search button {

        padding: 0 15px;

        background: none;

        border: none;

        color: #000;

    }



    #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1>li.mega-menu-item>a.mega-menu-link {

        padding: 5px 5px !important;

    }



    #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-megamenu>ul.mega-sub-menu>li.mega-menu-row .mega-menu-column>ul.mega-sub-menu>li.mega-menu-item {

        padding: 0 !important;

    }



    #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1>li.mega-menu-megamenu>ul.mega-sub-menu {

        padding: 0px 10px !important;

    }



    #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1>li.mega-menu-megamenu>ul.mega-sub-menu li.mega-menu-column>ul.mega-sub-menu>li.mega-menu-item>a.mega-menu-link {

        font-size: 14px !important;

        padding: 2px 0px 3px 0px !important;

    }



    .mini-cart-empty {

        padding: 15px 5px;

    }





}



/* Responsive */

@media (max-width: 768px) {

    .popup-content {

        flex-direction: column;

        width: 92%;

    }



    .user-dropdown {

        min-width: 180px;

    }





}



#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1>li.mega-menu-item>a.mega-menu-link {

    height: unset !important;

    line-height: unset !important;



}



@media (max-width: 500px) {
/* .current-flag {
    display: block;} */
    .popup-content {

        width: 100%;

    }



    .inner-header-top {

        grid-template-columns: 1fr 120px 1fr;

    }



    .header__button {

        gap: 10px;

    }



    .user-icon {

        font-size: 20px;

    }



    .current-lang-code {

        font-size: 14px;

    }



    .current-flag {

        height: 15px;

        width: 25px;

        object-fit: cover;

    }







}





@media (max-width: 425px) {

    .current-flag {

        height: 15px !important;

        width: 20px;

        object-fit: cover;

    }



    .current-lang-code {

        font-size: 12px;

    }



    .flag-selected {

        gap: 3px;

    }



    .flag-dropdown {

        top: 30px;

        padding: 5px 10px;

    }

}



@media only screen and (min-width: 1100px) {



    .full-header.sticky .header-logo {

        max-width: 120px;

    }



    /* .full-header.sticky .main-menu {

            margin-top: 5px;

        } */



    .full-header.sticky .header-search {

        margin-top: 10px;

    }



}