:root {
    --vhcmc-red: #e70332;
    --vhcmc-red-dark: #c9002b;
    --vhcmc-text: #202124;
    --vhcmc-soft: #fff4f6;
    --vhcmc-border: rgba(231, 3, 50, .16);
    --vhcmc-shadow: 0 10px 28px rgba(15, 23, 42, .13);
    --vhcmc-header-height: 154px;
}

html { scroll-padding-top: calc(var(--vhcmc-header-height) + 12px); }
/* Giữ chỗ cho header cố định ngay từ CSS (trình duyệt hỗ trợ :has) để nội dung không bị đẩy xuống khi JS chạy xong. */
body:has(.vhcmc-header-fixed),
body.vhcmc-fixed-header-ready { padding-top: var(--vhcmc-header-height) !important; }

/* Tiêu đề chính (H1) của trang chủ tĩnh. */
.vhcmc-front-header { margin: 0 0 1rem; }
.vhcmc-front-title { margin: 0; font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.3; }

.vhcmc-header,
.vhcmc-header * { box-sizing: border-box; }

.vhcmc-header { position: relative; z-index: 10000; background: #fff; }
.vhcmc-header-fixed {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 10060;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--vhcmc-border);
    box-shadow: 0 4px 18px rgba(15, 23, 42, .08);
    overflow: visible !important;
}
.admin-bar .vhcmc-header-fixed { top: 32px; }

.vhcmc-header-inner { width: min(1200px, calc(100% - 28px)); margin: 0 auto; }

.vhcmc-header-language-row { background: linear-gradient(90deg, var(--vhcmc-red), var(--vhcmc-red-dark)); color: #fff; }
.vhcmc-header-language-inner { min-height: 34px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.vhcmc-language-label { display: inline-flex; align-items: center; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap; }
.vhcmc-language-flags { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: 0; padding: 0; }
.vhcmc-language-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 28px; padding: 0 !important;
    border-radius: 9px; border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.16); color: #fff !important;
    text-decoration: none !important; line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
    transition: background .16s ease, transform .16s ease;
}
.vhcmc-language-link:hover,
.vhcmc-language-link:focus,
.vhcmc-language-link.is-active { background: rgba(255,255,255,.30); transform: translateY(-1px); outline: 0; }
.vhcmc-language-flag { display: block; font-size: 21px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }

.vhcmc-header-language-row .gt_switcher,
.vhcmc-header-language-row .goog-te-gadget,
.vhcmc-header-language-row select.goog-te-combo,
.vhcmc-header-language-row .gtranslate_wrapper select { display: none !important; }

.vhcmc-header-brand-row { background: #fff; }
.vhcmc-brand-inner { min-height: 76px; display: grid; grid-template-columns: auto minmax(280px, 460px); align-items: center; gap: 24px; }
.vhcmc-site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vhcmc-site-branding .custom-logo-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.vhcmc-site-branding img.custom-logo { display: block; max-width: 190px; max-height: 62px; width: auto; height: auto; }
.vhcmc-site-meta .site-title,
.vhcmc-site-meta .site-title a { color: var(--vhcmc-red); font-size: 24px; font-weight: 800; line-height: 1.15; text-decoration: none; }
.vhcmc-site-meta .site-description { margin: 2px 0 0; color: #4b5563; font-size: 13px; line-height: 1.3; }

.vhcmc-header-search { justify-self: end; width: min(100%, 460px); }
.vhcmc-header-search form,
.vhcmc-header-search .search-form { position: relative; display: flex; align-items: center; width: 100%; margin: 0; }
.vhcmc-header-search label { width: 100%; margin: 0; }
.vhcmc-header-search input[type="search"] { width: 100%; min-height: 44px; padding: 0 52px 0 18px; border: 1px solid var(--vhcmc-border); border-radius: 999px; background: #fff7f8; color: var(--vhcmc-text); font-size: 14px; outline: 0; }
.vhcmc-header-search input[type="search"]:focus { border-color: var(--vhcmc-red); background: #fff; box-shadow: 0 0 0 3px rgba(231,3,50,.10); }
.vhcmc-header-search button,
.vhcmc-header-search input[type="submit"],
.vhcmc-header-search .search-submit { position: absolute; top: 4px; right: 4px; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; width: 36px; height: 36px; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: var(--vhcmc-red) !important; color: #fff !important; font-size: 0 !important; cursor: pointer; }
.vhcmc-header-search button::before,
.vhcmc-header-search .search-submit::before { content: "🔍"; font-size: 15px; line-height: 1; }

.vhcmc-header-menu-row { position: relative; z-index: 10070; background: var(--vhcmc-red); overflow: visible !important; }
.vhcmc-menu-inner { min-height: 44px; height: 44px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; overflow: visible !important; }
.vhcmc-home-menu-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; color: #fff !important; text-decoration: none !important; border-radius: 8px 8px 0 0; }
.vhcmc-home-menu-link:hover,
.vhcmc-home-menu-link:focus { background: rgba(255,255,255,.16); color: #fff !important; }

.vhcmc-main-navigation { position: relative; width: auto; min-width: 0; min-height: 44px; overflow: visible !important; }
.vhcmc-primary-menu,
.vhcmc-primary-menu ul { margin: 0; padding: 0; list-style: none; }
.vhcmc-primary-menu { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-end !important; gap: 0 !important; min-height: 44px !important; height: 44px !important; width: auto !important; background: transparent !important; overflow: visible !important; }
.vhcmc-primary-menu > li { position: relative; flex: 0 0 auto !important; margin: 0 !important; padding: 0 !important; }
.vhcmc-primary-menu a { display: flex !important; align-items: center !important; min-height: 44px !important; height: 44px !important; padding: 0 16px !important; border: 0 !important; background: transparent !important; color: #fff !important; font-size: 14px !important; font-weight: 800 !important; line-height: 1.2 !important; text-transform: uppercase; text-decoration: none !important; white-space: nowrap !important; box-shadow: none !important; }
.vhcmc-primary-menu > li:hover > a,
.vhcmc-primary-menu > li:focus-within > a,
.vhcmc-primary-menu > li.current-menu-item > a,
.vhcmc-primary-menu > li.current-menu-ancestor > a { background: rgba(255,255,255,.16) !important; }

.vhcmc-primary-menu .sub-menu { position: absolute !important; top: 100% !important; left: 0 !important; z-index: 10090 !important; display: block !important; min-width: 230px !important; height: auto !important; padding: 8px !important; border: 1px solid var(--vhcmc-border) !important; border-radius: 0 0 14px 14px !important; background: #fff !important; box-shadow: var(--vhcmc-shadow) !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transform: translateY(8px) !important; transition: opacity .16s ease, transform .16s ease, visibility .16s ease; }
.vhcmc-primary-menu li:hover > .sub-menu,
.vhcmc-primary-menu li:focus-within > .sub-menu { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; transform: translateY(0) !important; }
.vhcmc-primary-menu .sub-menu .sub-menu { top: 0 !important; left: 100% !important; border-radius: 14px !important; }
.vhcmc-primary-menu .sub-menu a { min-height: 40px !important; height: auto !important; padding: 10px 12px !important; border-radius: 9px !important; color: var(--vhcmc-text) !important; font-size: 13px !important; font-weight: 700 !important; text-transform: none !important; }
.vhcmc-primary-menu .sub-menu a:hover,
.vhcmc-primary-menu .sub-menu a:focus { background: var(--vhcmc-soft) !important; color: var(--vhcmc-red) !important; }

.vhcmc-header-menu-row .search-form,
.vhcmc-header-menu-row form[role="search"],
.vhcmc-header-menu-row .header-search-form,
.vhcmc-header-menu-row .dark-mode-widget,
.vhcmc-header-menu-row .wp-block-search,
.vhcmc-header-menu-row li[class*="search"],
.vhcmc-header-menu-row li[class*="dark-mode"] { display: none !important; }

/* Chặn CSS mobile menu cũ của Prespa/Custom Footer Injector tác động vào header mới. */
.vhcmc-header .menu-toggle,
.vhcmc-header .slide-menu,
.vhcmc-header .site-menu { all: unset; }
.vhcmc-header .menu-toggle { display: none !important; }
body.cfi-footer-menu-open,
body.modal-open { overflow: auto !important; }

@media (max-width: 782px) { .admin-bar .vhcmc-header-fixed { top: 46px; } }

@media (max-width: 850px) {
    :root { --vhcmc-header-height: 137px; }
    .vhcmc-header-inner { width: min(100% - 18px, 520px); }
    .vhcmc-header-language-inner { min-height: 30px; justify-content: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
    .vhcmc-header-language-inner::-webkit-scrollbar { display: none; }
    .vhcmc-language-label { font-size: 11px; flex: 0 0 auto; }
    .vhcmc-language-flags { gap: 6px; flex: 0 0 auto; }
    .vhcmc-language-link { width: 27px; height: 22px; border-radius: 6px; }
    .vhcmc-language-flag { font-size: 15px; }

    .vhcmc-brand-inner { min-height: 64px; grid-template-columns: minmax(112px, auto) minmax(0, 1fr); gap: 10px; }
    .vhcmc-site-branding img.custom-logo { max-width: 128px; max-height: 52px; }
    .vhcmc-site-meta .site-title,
    .vhcmc-site-meta .site-title a { font-size: 18px; }
    .vhcmc-site-meta .site-description { display: none; }

    .vhcmc-header-search input[type="search"] { min-height: 38px; padding-left: 12px; padding-right: 42px; font-size: 13px; }
    .vhcmc-header-search button,
    .vhcmc-header-search input[type="submit"],
    .vhcmc-header-search .search-submit { top: 4px; right: 4px; width: 30px; min-width: 30px; height: 30px; }

    .vhcmc-header-menu-row { height: 43px !important; min-height: 43px !important; max-height: 43px !important; overflow: hidden !important; }
    .vhcmc-menu-inner { width: 100%; height: 43px !important; min-height: 43px !important; max-height: 43px !important; justify-content: flex-start !important; gap: 0; overflow: hidden !important; }
    .vhcmc-home-menu-link { width: 42px; height: 43px; min-height: 43px; border-radius: 0; }
    .vhcmc-main-navigation { flex: 1 1 auto; min-width: 0; height: 43px !important; min-height: 43px !important; max-height: 43px !important; overflow: hidden !important; }
    .vhcmc-primary-menu { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; flex-wrap: nowrap !important; width: 100% !important; max-width: none !important; height: 43px !important; min-height: 43px !important; max-height: 43px !important; margin: 0 !important; padding: 0 8px 0 0 !important; overflow-x: auto !important; overflow-y: hidden !important; background: transparent !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .vhcmc-primary-menu::-webkit-scrollbar { display: none; }
    .vhcmc-primary-menu > li { display: block !important; flex: 0 0 auto !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
    .vhcmc-primary-menu a { display: flex !important; align-items: center !important; justify-content: center !important; width: auto !important; min-width: max-content !important; height: 43px !important; min-height: 43px !important; padding: 0 12px !important; color: #fff !important; font-size: 13px !important; font-weight: 800 !important; white-space: nowrap !important; }
    .vhcmc-primary-menu .sub-menu { display: none !important; }
}

@media (max-width: 420px) {
    .vhcmc-brand-inner { grid-template-columns: 122px minmax(0, 1fr); }
    .vhcmc-site-branding img.custom-logo { max-width: 122px; }
    .vhcmc-header-search input[type="search"]::placeholder { font-size: 0; }
    .vhcmc-header-search input[type="search"] { padding-left: 10px; }
}

/* V8: language flags with short codes, hide loader, move home icon to article/content edge. */
.vhcmc-header-language-inner {
    justify-content: flex-end !important;
    gap: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none;
}
.vhcmc-header-language-inner::-webkit-scrollbar { display: none; }
.vhcmc-language-label { display: none !important; }
.vhcmc-language-flags {
    gap: 6px !important;
    flex-wrap: nowrap !important;
    max-width: 100%;
}
.vhcmc-language-link {
    width: auto !important;
    min-width: 42px !important;
    height: 24px !important;
    padding: 0 7px !important;
    gap: 4px !important;
    border-radius: 7px !important;
    background: rgba(255,255,255,.18) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    color: #fff !important;
}
.vhcmc-language-link:hover,
.vhcmc-language-link:focus,
.vhcmc-language-link.is-active {
    background: #fff !important;
    color: var(--vhcmc-red) !important;
    transform: translateY(-1px);
}
.vhcmc-language-flag { font-size: 14px !important; line-height: 1 !important; }
.vhcmc-language-code { display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: .2px; line-height: 1; }
.vhcmc-hidden-translate-widget {
    position: fixed !important;
    left: -9999px !important;
    top: 0 !important;
    width: 220px !important;
    height: 48px !important;
    overflow: hidden !important;
    opacity: .01 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}
.vhcmc-hidden-translate-widget iframe,
.vhcmc-hidden-translate-widget .goog-te-banner-frame,
body > iframe.goog-te-banner-frame { display: none !important; }
body > .skiptranslate { position: fixed !important; left: -9999px !important; top: 0 !important; height: 0 !important; overflow: hidden !important; }
body { top: 0 !important; }

@media (min-width: 851px) {
    .vhcmc-menu-inner {
        justify-content: space-between !important;
        gap: 18px !important;
    }
    .vhcmc-home-menu-link {
        margin-left: 0 !important;
        margin-right: auto !important;
        width: 50px !important;
        border-radius: 0 !important;
        background: rgba(255,255,255,.05) !important;
    }
    .vhcmc-main-navigation {
        margin-left: auto !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
    }
    .vhcmc-primary-menu {
        justify-content: flex-end !important;
        width: auto !important;
    }
}

@media (max-width: 850px) {
    .vhcmc-header-language-inner {
        justify-content: flex-start !important;
        min-height: 31px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .vhcmc-language-flags {
        width: max-content !important;
        padding: 0 5px !important;
    }
    .vhcmc-language-link {
        min-width: 39px !important;
        height: 23px !important;
        padding: 0 5px !important;
        gap: 3px !important;
    }
    .vhcmc-language-flag { font-size: 13px !important; }
    .vhcmc-language-code { font-size: 9px !important; }
}

/* V9.2: dùng ảnh SVG local cho cờ để Chrome/Cốc Cốc hiển thị rõ như Firefox, không dùng emoji/text. */
.vhcmc-language-flags {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}
.vhcmc-language-link {
    width: 42px !important;
    min-width: 42px !important;
    height: 30px !important;
    padding: 3px 5px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, .18) !important;
    border: 1px solid rgba(255, 255, 255, .24) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.10) !important;
    overflow: hidden !important;
    text-decoration: none !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}
.vhcmc-language-link:hover,
.vhcmc-language-link:focus,
.vhcmc-language-link.is-active {
    background: #fff !important;
    transform: translateY(-1px) !important;
    outline: 0 !important;
}
.vhcmc-language-flag,
.vhcmc-language-code { display: none !important; }
.vhcmc-language-flag-img {
    display: block !important;
    width: 28px !important;
    height: 20px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    object-fit: cover !important;
    border-radius: 3px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
    background: #fff !important;
}
@media (max-width: 850px) {
    .vhcmc-header-language-inner { justify-content: flex-start !important; }
    .vhcmc-language-flags { gap: 7px !important; padding: 0 8px !important; }
    .vhcmc-language-link { width: 39px !important; min-width: 39px !important; height: 29px !important; padding: 3px 5px !important; }
    .vhcmc-language-flag-img { width: 27px !important; height: 19px !important; min-width: 27px !important; max-width: 27px !important; }
}

/* V9.4: Responsive local image flags. Keep all language flags visible on small screens without horizontal overflow. */
.vhcmc-language-row,
.vhcmc-language-inner {
    max-width: 100%;
    overflow: hidden;
}
.vhcmc-language-flags {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.vhcmc-language-link {
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.vhcmc-language-flag-img {
    display: block !important;
    object-fit: cover !important;
    aspect-ratio: 4 / 3 !important;
}

@media (min-width: 769px) {
    .vhcmc-language-inner {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }
    .vhcmc-language-flags {
        gap: 8px !important;
        padding: 0 16px !important;
    }
    .vhcmc-language-link {
        width: 42px !important;
        min-width: 42px !important;
        height: 30px !important;
        padding: 3px 5px !important;
        border-radius: 8px !important;
    }
    .vhcmc-language-flag-img {
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 21px !important;
    }
}

@media (max-width: 768px) {
    .vhcmc-language-row {
        height: auto !important;
        min-height: 37px !important;
    }
    .vhcmc-language-inner {
        width: 100% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        box-sizing: border-box !important;
    }
    .vhcmc-language-flags {
        width: 100% !important;
        justify-content: center !important;
        gap: clamp(3px, 1vw, 6px) !important;
        padding: 5px 4px !important;
    }
    .vhcmc-language-link {
        flex: 0 1 auto !important;
        width: clamp(25px, calc((100vw - 52px) / 8), 39px) !important;
        min-width: 0 !important;
        max-width: 39px !important;
        height: clamp(23px, 7.2vw, 29px) !important;
        padding: 2px !important;
        border-radius: 7px !important;
    }
    .vhcmc-language-flag-img {
        width: calc(clamp(25px, calc((100vw - 52px) / 8), 39px) - 6px) !important;
        min-width: 0 !important;
        max-width: 31px !important;
        height: calc(clamp(23px, 7.2vw, 29px) - 7px) !important;
    }
}

@media (max-width: 360px) {
    .vhcmc-language-inner {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }
    .vhcmc-language-flags {
        gap: 2px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    .vhcmc-language-link {
        width: clamp(23px, calc((100vw - 30px) / 8), 31px) !important;
        height: 24px !important;
        border-radius: 6px !important;
        padding: 2px !important;
    }
    .vhcmc-language-flag-img {
        width: calc(clamp(23px, calc((100vw - 30px) / 8), 31px) - 5px) !important;
        height: 16px !important;
    }
}


/* ===================== Lô 46 (23/10/2026): header gọn khi cuộn xuống =====================
 * body.vhcmc-header-compact (vhcmc-header.js, cuộn quá 140px): ẩn thanh ngôn ngữ; desktop ẩn hàng logo/hotline và hiện ô tìm kiếm
 * cuối hàng menu; mobile ẩn logo, ô tìm kiếm rộng hết hàng, menu ngang giữ nguyên. Header cố định nên không đẩy nội dung (không CLS).
 */
html { scroll-padding-top: 66px; }
.vhcmc-header-language-row,
.vhcmc-header-brand-row { max-height: 140px; transition: max-height .28s ease, opacity .2s ease; }
.vhcmc-menu-search { display: none; }

body.vhcmc-header-compact .vhcmc-header-language-row {
    max-height: 0 !important;
    min-height: 0 !important;
    opacity: 0;
    overflow: hidden !important;
    pointer-events: none;
}

@keyframes vhcmc-compact-in {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: none; }
}

@media (min-width: 851px) {
    body.vhcmc-header-compact .vhcmc-header-brand-row {
        max-height: 0 !important;
        opacity: 0;
        overflow: hidden !important;
        pointer-events: none;
    }
    body.vhcmc-header-compact .vhcmc-header-menu-row .vhcmc-menu-search {
        display: block;
        flex: 0 0 300px;
        width: 300px;
        margin-left: 6px;
        animation: vhcmc-compact-in .25s ease both;
    }
    body.vhcmc-header-compact .vhcmc-header-menu-row .vhcmc-menu-search .search-form {
        position: relative;
        display: flex !important;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 1px;
        border-radius: 999px;
        background: #e6e6e6;
    }
    body.vhcmc-header-compact .vhcmc-header-menu-row .vhcmc-menu-search .search-form:focus-within {
        padding: 2px;
        background: linear-gradient(110deg, var(--vx-red, #f3052c), #ff8aa1 45%, var(--vx-red, #f3052c));
        box-shadow: 0 0 0 4px rgba(243, 5, 44, .1);
    }
    body.vhcmc-header-compact .vhcmc-header-menu-row .vhcmc-menu-search input[type="search"] {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        height: 36px;
        min-height: 36px;
        margin: 0;
        padding: 0 44px 0 16px;
        border: 0 !important;
        border-radius: 999px;
        background: #f4f4f4 !important;
        color: var(--vx-ink, #2c2f31);
        font-size: 13px;
        box-shadow: none !important;
        outline: 0;
    }
    body.vhcmc-header-compact .vhcmc-header-menu-row .vhcmc-menu-search .search-form:focus-within input[type="search"] { background: #fff !important; }
    body.vhcmc-header-compact .vhcmc-header-menu-row .vhcmc-menu-search button[type="submit"] {
        position: absolute;
        top: 4px;
        right: 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        min-width: 30px;
        height: 30px;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: var(--vx-grad, linear-gradient(135deg, #ff3b5c 0%, #f3052c 55%, #c8001f 100%)) !important;
        color: #fff !important;
        font-size: 0 !important;
        cursor: pointer;
    }
    body.vhcmc-header-compact .vhcmc-header-menu-row .vhcmc-menu-search button[type="submit"]::before { content: none !important; }
    body.vhcmc-header-compact .vhcmc-header-menu-row .vhcmc-menu-search button[type="submit"] svg { width: 15px; height: 15px; stroke: currentColor; }
}

@media (max-width: 850px) {
    html { scroll-padding-top: 108px; }
    body.vhcmc-header-compact .vhcmc-site-branding { display: none !important; }
    body.vhcmc-header-compact .vhcmc-brand-inner {
        min-height: 52px !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }
    body.vhcmc-header-compact .vhcmc-header-search {
        width: 100% !important;
        animation: vhcmc-compact-in .25s ease both;
    }
}

/* Đăng nhập trên màn hình ≤600px: thanh quản trị WordPress cuộn mất, header gọn sát mép trên. */
@media (max-width: 600px) {
    body.admin-bar.vhcmc-header-compact .vhcmc-header-fixed { top: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
    .vhcmc-header-language-row,
    .vhcmc-header-brand-row { transition: none !important; }
    body.vhcmc-header-compact .vhcmc-menu-search,
    body.vhcmc-header-compact .vhcmc-header-search { animation: none !important; }
}

/* Lô 46c: cờ ngôn ngữ là nút bấm (không còn link ?vhcmc_translate=…) – bỏ kiểu mặc định của button. */
button.vhcmc-language-link {
    margin: 0;
    font: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
