
/* HEADER DESKTOP */
.tx-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.tx-header-container {
    width: min(94%, 1380px);
    margin: auto;
    pointer-events: auto;
}

.tx-header-bar {
    min-height: 86px;
    padding: 12px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

/* LOGO */
.tx-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.tx-logo {
    width: auto;
    height: auto;
    max-width: 240px;
    max-height: 65px;
    object-fit: contain;
    display: block;
}

.tx-logo-placeholder {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: #9e1828;
    color: white;
    font-size: 20px;
    font-weight: 800;
    border-radius: 8px;
}

.tx-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tx-brand-text strong {
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.tx-brand-text small {
    font-size: 10px;
    letter-spacing: 2px;
    color: #777;
}

/* MENU DESKTOP */
.tx-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
}

.tx-desktop-nav a {
    padding: 12px 11px;
    color: #303030;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 24px;
    transition: .2s ease;
}

.tx-desktop-nav a:hover,
.tx-desktop-nav .tx-nav-home {
    background: #fbeaed;
    color: #9e1828;
}

/* RIGHT ACTIONS */
.tx-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tx-lang-select,
.tx-lang-placeholder {
    border: 1px solid #e5e5e5;
    background: #f9f9f9;
    border-radius: 7px;
    padding: 10px 7px;
    font-size: 12px;
    font-weight: 700;
    color: #252525;
}

.tx-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 19px;
    background: #9e1828;
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s;
}

.tx-call-btn:hover {
    color: #fff;
    background: #78111e;
}

/* MOBILE TOGGLE */
.tx-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 5px;
    background: #9e1828;
    border: 0;
    border-radius: 5px;
}

.tx-menu-toggle span {
    width: 21px;
    height: 2px;
    background: #fff;
    transition: .2s ease;
}

.tx-menu-toggle.is-active span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.tx-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.tx-menu-toggle.is-active span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE MENU */
.tx-mobile-menu[hidden] {
    display: none !important;
}

.tx-mobile-menu {
    display: none;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
    overflow-y: auto;
    max-height: calc(100dvh - 70px);
}

.tx-mobile-menu a {
    display: block;
    padding: 15px 22px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    font-weight: 500;
    color: #262626;
}

.tx-mobile-menu a:hover,
.tx-mobile-menu .tx-mobile-home {
    color: #fff;
    background: #9e1828;
}

.tx-mobile-menu .tx-mobile-hotline {
    background: #9e1828;
    color: white;
    font-weight: 700;
    text-align: center;
    margin: 12px;
    border-radius: 6px;
}

/* ACCESSIBILITY */
.tx-skip-link {
    position: fixed;
    left: -9999px;
}

.tx-skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 9999;
    padding: 12px;
    background: white;
}

/* TABLET */
@media (max-width: 1250px) {
    .tx-desktop-nav {
        display: none;
    }

    .tx-menu-toggle {
        display: flex;
    }

    .tx-mobile-menu:not([hidden]) {
        display: block;
        margin-top: 8px;
        border-radius: 15px;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .tx-header {
        top: 0;
    }

    .tx-header-container {
        width: 100%;
    }

    .tx-header-bar {
        min-height: 70px;
        padding: 10px 20px;
        border-radius: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,.08);
    }

    .tx-logo {
        max-width: 170px;
        max-height: 48px;
    }

    .tx-brand-text strong {
        font-size: 13px;
    }

    .tx-brand-text small {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .tx-logo-placeholder {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .tx-call-btn {
        display: none;
    }

    .tx-header-actions {
        gap: 8px;
    }

    .tx-mobile-menu:not([hidden]) {
        display: block;
        margin-top: 0;
        border-radius: 0;
    }
}

@media (max-width: 380px) {
    .tx-brand-text strong {
        font-size: 11px;
    }

    .tx-logo {
        max-width: 135px;
    }

    .tx-header-bar {
        padding-inline: 12px;
    }
}


/* LANGUAGE SWITCHER */
.tx-lang-switcher {
    position: relative;
    flex-shrink: 0;
    font-family: 'Roboto', sans-serif;
}

.tx-lang-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 7px 12px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    color: #303030;
    cursor: pointer;
    transition: .2s ease;
}

.tx-lang-trigger:hover {
    background: #f8f8f8;
}

.tx-lang-flag {
    font-size: 27px;
    line-height: 1;
    white-space: nowrap;
}

.tx-lang-code {
    font-size: 18px;
    font-weight: 700;
}

.tx-lang-arrow {
    transition: transform .2s ease;
}

.tx-lang-trigger[aria-expanded="true"]
.tx-lang-arrow {
    transform: rotate(180deg);
}

/* DROPDOWN */
.tx-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 210px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    z-index: 1100;
}

.tx-lang-dropdown[hidden] {
    display: none !important;
}

.tx-lang-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    color: #333333;
    font-size: 16px;
    border-radius: 4px;
    transition: background .2s ease;
}

.tx-lang-option:hover {
    background: #f4f4f4;
    color: #9e1828;
}

.tx-lang-option.is-current {
    background: #fff0f2;
    color: #9e1828;
    font-weight: 600;
}

.tx-lang-option.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* MOBILE */
@media (max-width: 767px) {
    .tx-lang-trigger {
        height: 38px;
        gap: 6px;
        padding: 5px 8px;
    }

    .tx-lang-flag {
        font-size: 22px;
    }

    .tx-lang-code {
        font-size: 14px;
    }

    .tx-lang-dropdown {
        width: 185px;
    }

    .tx-lang-option {
        font-size: 14px;
    }
}


/* LOGO & BRAND NAME */
.tx-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
    min-width: 0;
}

.tx-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tx-brand-logo .tx-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 75px;
    max-height: 66px;
    object-fit: contain;
}

.tx-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.tx-brand-text strong {
    color: #9e1828;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.tx-brand-text small {
    color: #666666;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.3;
}

/* TABLET */
@media (max-width: 1250px) {
    .tx-brand-text strong {
        font-size: 15px;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .tx-brand {
        gap: 8px;
    }

    .tx-brand-logo .tx-logo {
        max-width: 52px;
        max-height: 48px;
    }

    .tx-brand-text strong {
        font-size: 12px;
        letter-spacing: -.2px;
    }

    .tx-brand-text small {
        font-size: 9px;
        letter-spacing: 1px;
    }
}

/* MOBILE NHỎ */
@media (max-width: 380px) {
    .tx-brand-logo .tx-logo {
        max-width: 43px;
        max-height: 43px;
    }

    .tx-brand-text strong {
        font-size: 11px;
    }

    .tx-brand-text small {
        font-size: 8px;
    }
}
