@media screen and (min-width: 1200px) {
    html { zoom: 1.2; }
}

@media screen {
    .topbar { position: sticky; top: 0; z-index: 60; }

    body .footer {
        --chu-chan-trang: var(--mau-chu-dao-chu, var(--nen-chu, #e6ecf5));
        color: var(--chu-chan-trang);
        text-shadow: var(--mau-chu-dao-bong, none);
    }
    body .footer :is(.footer__h, .footer__legal, .footer__bottom, .footer__info .ic),
    body .footer a:not(.btn) { color: var(--chu-chan-trang); }
    body .footer :is(.footer__social a, .btn--line) { border-color: currentColor; }
    body .footer .btn--line { color: var(--chu-chan-trang); }
    body .footer .btn--line:hover {
        background-color: var(--chu-chan-trang);
        color: var(--mau-chu-dao-day, var(--nen-nhat, #060b16));
    }
    body .footer .btn--pri { color: #fff; text-shadow: none; }
    body .footer a:hover { text-decoration: underline; }
}

@media screen and (max-width: 991px) {
    body .topbar { display: block; }
    body .topbar__in { justify-content: center; min-height: 36px; }
    body .topbar__in > :not(.langs), body .mobile-langs { display: none; }
    body .header__in .menu-btn { margin-left: auto; }
    body .topbar .langs { display: flex; gap: 3px; margin: 0; padding: 0; border: 0; }
    body .topbar .langs a[data-nn] { min-height: 36px; padding: 4px; font-size: .75rem; gap: 4px; }
}

/* Ô tra mã và hotline ở đầu trang */
.header-search { flex: 1 1 540px; min-width: 0; max-width: 540px; }
.header-search .search { width: 100%; max-width: none; }
.header-search__terms {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px;
    margin: 5px 0 0; font-size: .82rem; line-height: 1.45; color: var(--ink);
}
.header-search__terms a { color: inherit; text-decoration: none; font-style: italic; overflow-wrap: anywhere; }
.header-search__terms a:hover, .header-search__terms a:focus-visible { text-decoration: underline; }
.header__in .hotline {
    flex-shrink: 0; gap: 7px; min-width: 0; max-width: min(100%, 400px);
    color: var(--red-d); font-size: clamp(1.125rem, 1.8vw, 1.5rem); font-weight: 700; line-height: 1.15;
}
.header__in .hotline > span { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px; min-width: 0; }
.header__in .hotline__ic { flex: none; width: 1em; height: 1em; padding: 0; background: transparent; color: currentColor; }
.header__in .hotline strong {
    font: inherit;
    font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}

@media screen and (min-width: 992px) {
    .header__in { --header-control-height: 46px; }
    .header__in > .logo {
        position: relative; align-self: stretch; flex: 0 0 clamp(156px, 13vw, 176px); overflow: hidden;
    }
    .header__in > .logo img {
        position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain;
    }
    /* Bù phần lề trong suốt của logo đang dùng, giữ tỉ lệ ảnh. */
    .header__in > .logo img[src$="/logo-ce9627.png"] {
        inset: -14.6% auto auto -4.4%; width: 110%; height: 122%; object-position: center 53%;
    }
    .header-search .search input { height: var(--header-control-height); }
    .header__in > :is(.header-search, .hotline, .header__quote) { align-self: flex-start; }
    .header__in > :is(.hotline, .header__quote) { min-height: var(--header-control-height); }
}
@media (max-width: 991px) {
    .header-search { order: 4; flex: 1 1 100%; max-width: none; }
    .header__in .hotline { display: inline-flex; order: 5; margin-left: 0; }
    .header-search__terms a { padding-block: 2px; }
}
.floatbar__call-icon { place-content: center; gap: 2px; }
.floatbar__call-icon .ic { width: 19px; height: 19px; }
.floatbar__call-text { font-size: .675rem; font-weight: 700; line-height: 1; }

/* Mỗi hàng gồm một danh mục và các hãng hoặc danh mục con. */
.home-devices { display: grid; gap: 16px; }
.home-devices__row {
    display: grid; grid-template-columns: clamp(142px, 18%, 216px) minmax(0, 1fr);
    border: 1px solid #364557; border-radius: var(--radius);
    background: #151b23; color: #f1f5fb; overflow: hidden;
}
.home-devices__row:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.home-devices__category, .home-devices__item {
    min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    padding: 12px 14px 16px; color: inherit; text-decoration: none;
}
.home-devices__category { background: #25354c; }
.home-devices__items {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(138px, 1fr);
    min-width: 0; overflow-x: auto; scroll-snap-type: x proximity;
    scrollbar-color: #6887a4 #151b23;
}
.home-devices__item { border-inline-start: 1px solid #364557; scroll-snap-align: start; }
.home-devices__category:hover, .home-devices__item:hover { background: #203149; color: #fff; }
.home-devices__category:focus-visible, .home-devices__item:focus-visible { outline: 2px solid #8ed5fb; outline-offset: -3px; }
.home-devices__photo {
    display: block; width: 100%; height: clamp(98px, 11vw, 146px);
    aspect-ratio: auto; overflow: hidden;
}
.home-devices .home-devices__photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-devices__row:has(> :only-child) .home-devices__photo { max-width: 200px; }
.home-devices__name { color: inherit; font-size: .95rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.home-devices__category .home-devices__name { font-size: 1.1rem; }
.home-devices__action {
    display: inline-flex; align-items: center; justify-content: center; min-height: 36px;
    margin-top: auto; padding: 5px 13px; border-radius: 5px;
    background: #176b9b; color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.25;
}
.home-devices__category:hover .home-devices__action, .home-devices__item:hover .home-devices__action { background: #115582; }

@media (max-width: 640px) {
    .home-devices__row { grid-template-columns: minmax(0, 1fr); }
    .home-devices__category {
        display: grid; grid-template-columns: 76px minmax(0, 1fr) auto;
        align-items: center; gap: 9px; padding: 8px 10px;
    }
    .home-devices__category .home-devices__photo { height: 58px; }
    .home-devices__category .home-devices__name { font-size: 1rem; }
    .home-devices__category .home-devices__action { margin-top: 0; padding-inline: 10px; }
    .home-devices__items {
        grid-auto-columns: minmax(126px, 44%); border-top: 1px solid #364557;
    }
    .home-devices__item { padding: 10px; }
    .home-devices__item:first-child { border-inline-start: 0; }
}

/* Toàn bộ dòng tài liệu là liên kết tới trình xem. */
.docs__item.docs__item--co-file { padding: 0; }
.docs__item--co-file > .docs__link { width: 100%; min-height: 48px; padding: 11px 16px; }
.docs__item--co-file > .docs__link:focus-visible { outline: 2px solid #176b9b; outline-offset: -3px; }

@media print {
    .header-search, .header__in .hotline { display: none !important; }
}

/* Đăng nhập / đăng ký thay nút khảo sát ở cạnh ô tra mã và hotline. */
@media screen {
    .header__in > .header__accounts {
        display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
        align-self: flex-start; min-height: var(--header-control-height, 46px);
    }
    .header__accounts > .btn { min-height: 46px; padding: 10px 12px; font-size: .875rem; line-height: 1.35; white-space: nowrap; }
    .header__accounts > .header__login { background: #fff; color: #173b72; border-color: #173b72; }
    .header__accounts > .header__login:hover { background: #e9f2ff; color: #12325e; }
    .header__accounts > a:focus-visible { outline: 3px solid #2789d8; outline-offset: 3px; }
}
@media screen and (max-width: 991px) {
    .header__in > .header__accounts { order: 2; margin-left: auto; align-self: center; }
}
@media screen and (max-width: 540px) {
    .header__in > .header__accounts { order: 4; flex-basis: 100%; margin-left: 0; }
    .header__accounts > .btn { flex: 1 1 0; min-height: 40px; padding: 8px 12px; }
    .header__in > .header-search { order: 5; }
    .header__in > .hotline { order: 6; }
}
@media print { .header__accounts { display: none !important; } }
