/* ==================================================
   KEHETO - BỘ CHUYỂN ĐỔI NGÔN NGỮ TRÊN HEADER
   - Desktop giữ nguyên giao diện hiện tại
   - Mobile thu gọn để không đè lên logo
   - Dropdown nổi, không làm thay đổi chiều cao header
================================================== */

/* ==================================================
   1. KHỐI CHỨA GTRANSLATE
================================================== */

/* Khối ngôn ngữ trong menu Flatsome */
.header-main .html_topbar_left {
    position: relative;
    display: flex;
    flex: 0 0 105px;
    align-items: center;
    width: 105px;
    height: 44px;
    margin-left: 12px;
    padding: 0;
    line-height: 1;
    overflow: visible;
    z-index: 1000;
}

/* Khung HTML chứa plugin GTranslate */
.header-main .html_topbar_left .gtranslate_wrapper {
    position: relative;
    display: block;
    width: 105px;
    height: 44px;
    margin: 0;
    padding: 0;
    overflow: visible;
}

/* Đưa bộ chuyển ngôn ngữ vào đúng vị trí trong header */
.header-main .html_topbar_left #gt_float_wrapper {
    position: relative !important;
    inset: auto !important;
    display: block;
    width: 105px;
    height: 44px;
    margin: 0;
    padding: 0;
    transform: none;
    overflow: visible;
    z-index: 1000;
}

/* ==================================================
   2. NÚT NGÔN NGỮ TRÊN DESKTOP
================================================== */

/* Khung nút chuyển đổi ngôn ngữ */
.header-main
.html_topbar_left
#gt_float_wrapper
.gt_float_switcher {
    position: relative;
    display: block;
    width: 105px;
    min-width: 105px;
    height: 44px;
    color: #263238;
    background: #ffffff;
    border: 1px solid #e8f5e9;
    border-radius: 10px;
    box-shadow: none;
    font-family: inherit;
    overflow: visible;
    box-sizing: border-box;
}

/* Khung ngôn ngữ đang được sử dụng */
.header-main
.html_topbar_left
#gt_float_wrapper
.gt-selected {
    position: relative;
    width: 100%;
    height: 42px;
    background: transparent;
    border-radius: 9px;
    overflow: hidden;
}

/* Căn giữa cờ, mã ngôn ngữ và mũi tên */
.header-main
.html_topbar_left
#gt_float_wrapper
.gt-current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 11px;
    color: #263238;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

/* Hiệu ứng khi rê chuột vào nút */
.header-main
.html_topbar_left
#gt_float_wrapper
.gt-selected:hover
.gt-current-lang {
    color: #237d31;
    background-color: #e8f5e9;
}

/* Kích thước cờ trên desktop */
.header-main
.html_topbar_left
#gt_float_wrapper
.gt-current-lang > img {
    display: block;
    flex: 0 0 auto;
    width: 28px;
    height: 19px;
    margin: 0;
    border-radius: 2px;
    object-fit: cover;
}

/* Mã ngôn ngữ VI, EN, ZH */
.header-main
.html_topbar_left
#gt_float_wrapper
.gt-lang-code {
    position: static;
    display: inline-block;
    margin: 0;
    color: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

/* Mũi tên mở dropdown */
.header-main
.html_topbar_left
#gt_float_wrapper
.gt_float_switcher-arrow {
    flex: 0 0 auto;
    margin-left: auto;
}

/* ==================================================
   3. DROPDOWN NGÔN NGỮ
================================================== */

/* Danh sách ngôn ngữ hiển thị dạng nổi */
.header-main
.html_topbar_left
#gt_float_wrapper
.gt_float_switcher
.gt_options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 99999;
    width: 170px;
    min-width: 170px;
    max-height: none;
    margin: 0;
    padding: 6px;
    white-space: nowrap;
    background: #ffffff;
    border: 1px solid #e8f5e9;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(38, 50, 56, 0.14);
    overflow: hidden;
    box-sizing: border-box;
}

/* Từng lựa chọn trong dropdown */
.header-main
.html_topbar_left
#gt_float_wrapper
.gt_options a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 9px 10px;
    color: #263238;
    background: transparent;
    border-radius: 7px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    box-sizing: border-box;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

/* Hiệu ứng khi chọn ngôn ngữ */
.header-main
.html_topbar_left
#gt_float_wrapper
.gt_options a:hover,
.header-main
.html_topbar_left
#gt_float_wrapper
.gt_options a:focus-visible {
    color: #237d31;
    background-color: #e8f5e9;
    outline: none;
}

/* Cờ trong danh sách dropdown */
.header-main
.html_topbar_left
#gt_float_wrapper
.gt_options img {
    display: block;
    flex: 0 0 auto;
    width: 28px;
    height: 19px;
    margin: 0;
    border-radius: 2px;
    object-fit: cover;
}

/* Không hiển thị lại ngôn ngữ đang sử dụng */
.header-main
.html_topbar_left
#gt_float_wrapper
.gt_options a.gt-current {
    display: none;
}

/* ==================================================
   4. GIAO DIỆN MOBILE
   Thu gọn GTranslate để không đè lên logo
================================================== */

@media screen and (max-width: 849px) {

    /* Cho phép dropdown hiển thị ra ngoài header */
    .header-main,
    .header-main .header-inner,
    .header-main .show-for-medium.flex-right,
    .header-main .show-for-medium.flex-right .mobile-nav {
        overflow: visible;
    }

    /*
     * Giới hạn vùng bên phải chỉ còn 52px.
     * Không thay đổi vị trí logo và nút menu bên trái.
     */
    .header-main .show-for-medium.flex-right {
        flex: 0 0 52px;
        width: 52px;
        min-width: 52px;
        max-width: 52px;
        justify-content: flex-end;
    }

    /* Căn menu mobile bên phải sát mép phải */
    .header-main
    .show-for-medium.flex-right
    .mobile-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 52px;
        min-width: 52px;
        margin: 0;
        padding: 0;
    }

    /* Thu nhỏ thẻ li chứa GTranslate */
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left {
        display: flex;
        flex: 0 0 52px;
        align-items: center;
        justify-content: flex-end;
        width: 52px;
        min-width: 52px;
        max-width: 52px;
        height: 40px;
        margin: 0;
        padding: 0;
    }

    /* Thu nhỏ wrapper của plugin */
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left
    .gtranslate_wrapper {
        width: 52px;
        min-width: 52px;
        max-width: 52px;
        height: 40px;
        margin: 0;
    }

    /* Thu nhỏ wrapper nổi của GTranslate */
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left
    #gt_float_wrapper {
        width: 52px;
        min-width: 52px;
        max-width: 52px;
        height: 40px;
        margin: 0;
    }

    /* Nút ngôn ngữ mobile chỉ còn cờ và mũi tên */
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left
    #gt_float_wrapper
    .gt_float_switcher {
        width: 52px;
        min-width: 52px;
        max-width: 52px;
        height: 40px;
        border-radius: 8px;
    }

    /* Chiều cao vùng ngôn ngữ đang chọn */
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left
    #gt_float_wrapper
    .gt-selected {
        width: 100%;
        height: 38px;
        border-radius: 7px;
    }

    /* Căn giữa cờ và mũi tên */
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left
    #gt_float_wrapper
    .gt-current-lang {
        justify-content: center;
        gap: 4px;
        width: 100%;
        height: 38px;
        padding: 0 6px;
    }

    /* Thu nhỏ cờ để không chiếm vùng logo */
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left
    #gt_float_wrapper
    .gt-current-lang > img {
        width: 23px;
        height: 16px;
    }

    /* Ẩn chữ VI trên nút mobile */
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left
    #gt_float_wrapper
    .gt-lang-code {
        display: none;
    }

    /* Giữ mũi tên nằm ngay cạnh cờ */
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left
    #gt_float_wrapper
    .gt_float_switcher-arrow {
        flex: 0 0 auto;
        margin-left: 0;
    }

    /* Dropdown mở về phía trái, không tràn khỏi màn hình */
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left
    #gt_float_wrapper
    .gt_float_switcher
    .gt_options {
        top: calc(100% + 7px);
        right: 0;
        left: auto;
        width: 160px;
        min-width: 160px;
        padding: 6px;
    }

    /* Kích thước chữ trong dropdown mobile */
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left
    #gt_float_wrapper
    .gt_options a {
        min-height: 40px;
        padding: 8px 9px;
        font-size: 14px;
    }

    /* Kích thước cờ trong dropdown mobile */
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left
    #gt_float_wrapper
    .gt_options img {
        width: 25px;
        height: 17px;
    }
}

/* ==================================================
   5. ĐIỆN THOẠI MÀN HÌNH NHỎ
================================================== */

@media screen and (max-width: 374px) {

    /* Thu nhỏ thêm khu vực GTranslate trên màn hình rất nhỏ */
    .header-main .show-for-medium.flex-right,
    .header-main
    .show-for-medium.flex-right
    .mobile-nav,
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left,
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left
    .gtranslate_wrapper,
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left
    #gt_float_wrapper,
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left
    #gt_float_wrapper
    .gt_float_switcher {
        flex-basis: 48px;
        width: 48px;
        min-width: 48px;
        max-width: 48px;
    }

    /* Thu nhỏ nhẹ cờ trên màn hình hẹp */
    .header-main
    .show-for-medium.flex-right
    .html_topbar_left
    #gt_float_wrapper
    .gt-current-lang > img {
        width: 22px;
        height: 15px;
    }
}










/* =========================================================
   KEHETO - TOPBAR MARQUEE FULL WIDTH
   - Desktop giữ nguyên giao diện hiện tại
   - Mobile chạy ngang toàn bộ màn hình điện thoại
   - Không sử dụng fixed hoặc sticky
========================================================= */

/* Nền và chiều cao chung của topbar Flatsome */
.header-wrapper .header-top {
    min-height: 44px;
    overflow: hidden;
    background-color: #28cb8b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

/* =========================================================
   1. MỞ RỘNG HÀNG CHỨA HTML BLOCK
========================================================= */

/* Hàng topbar được JavaScript nhận diện */
.header-top .kht-marquee-row {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    min-height: 44px;
    margin: 0;
    padding: 0;
}

/* Ẩn hai vùng mặc định trước khi chọn vùng chứa marquee */
.header-top .kht-marquee-row > .flex-left,
.header-top .kht-marquee-row > .flex-right {
    display: none;
}

/* Chỉ hiển thị vùng đang chứa HTML block marquee */
.header-top .kht-marquee-row > .kht-marquee-zone {
    display: flex;
    align-items: center;
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Mở rộng danh sách menu chứa HTML block */
.header-top .kht-marquee-nav {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Mở rộng thẻ li.html chứa marquee */
.header-top .kht-marquee-host {
    display: block;
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 0;
}

/* Loại bỏ khoảng cách thẻ p do Flatsome tự tạo */
.header-top .kht-marquee-host > p {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* =========================================================
   2. KHUNG MARQUEE
========================================================= */

/* Component marquee chính */
.kht-topbar-marquee {
    --kht-marquee-height: 44px;
    --kht-marquee-gap: 72px;
    --kht-marquee-text: #ffffff;

    display: block;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: var(--kht-marquee-height);
    min-height: var(--kht-marquee-height);
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--kht-marquee-text);
    background-color: #28cb8b;
    box-sizing: border-box;
}

/* Vùng nhìn thấy của marquee */
.kht-topbar-marquee__viewport {
    display: block;
    width: 100%;
    max-width: none;
    height: var(--kht-marquee-height);
    min-height: var(--kht-marquee-height);
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Dải chuyển động chứa nhóm gốc và nhóm nhân bản */
.kht-topbar-marquee__track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: max-content;
    height: var(--kht-marquee-height);
    min-height: var(--kht-marquee-height);
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.2s ease;
    will-change: transform;
}

/* Hiển thị track sau khi JavaScript đo xong kích thước */
.kht-topbar-marquee.is-ready
.kht-topbar-marquee__track {
    opacity: 1;
}

/* =========================================================
   3. NHÓM NỘI DUNG
========================================================= */

/* Một nhóm chứa đầy đủ nội dung marquee */
.kht-topbar-marquee__group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: var(--kht-marquee-gap);
    height: var(--kht-marquee-height);
    min-height: var(--kht-marquee-height);
    margin: 0;
    padding: 0 var(--kht-marquee-gap) 0 0;
    white-space: nowrap;
}

/* Từng nội dung trong marquee */
.kht-topbar-marquee__item {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: var(--kht-marquee-height);
    margin: 0;
    padding: 0;
    color: var(--kht-marquee-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    white-space: nowrap;
}

/* Dấu chấm phân cách nội dung */
.kht-topbar-marquee__separator {
    display: inline-block;
    flex: 0 0 4px;
    width: 4px;
    height: 4px;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.82);
    border-radius: 50%;
}

/* =========================================================
   4. TRẠNG THÁI TRƯỚC KHI JAVASCRIPT HOÀN TẤT
========================================================= */

/* Căn nội dung đầu tiên vào giữa trong lúc trang tải */
.kht-topbar-marquee:not(.is-ready)
.kht-topbar-marquee__viewport {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Track dự phòng trước khi JavaScript chạy */
.kht-topbar-marquee:not(.is-ready)
.kht-topbar-marquee__track {
    width: auto;
    min-width: 0;
    opacity: 1;
    transform: none;
}

/* Xóa khoảng cách của nhóm dự phòng */
.kht-topbar-marquee:not(.is-ready)
.kht-topbar-marquee__group {
    gap: 0;
    padding: 0 15px;
}

/* Chỉ hiển thị nội dung đầu tiên khi chưa khởi tạo */
.kht-topbar-marquee:not(.is-ready)
.kht-topbar-marquee__item:not(:first-child),
.kht-topbar-marquee:not(.is-ready)
.kht-topbar-marquee__separator {
    display: none;
}

/* =========================================================
   5. TABLET
========================================================= */

@media screen and (max-width: 1199px) {
    /* Thu nhỏ chữ trên tablet */
    .kht-topbar-marquee__item {
        font-size: 12px;
    }
}

/* =========================================================
   6. MOBILE - FULL MÀN HÌNH ĐIỆN THOẠI
========================================================= */

@media screen and (max-width: 849px) {

    /* Giảm chiều cao topbar trên mobile */
    .header-wrapper .header-top,
    .header-top .kht-marquee-row,
    .header-top .kht-marquee-host {
        min-height: 40px;
    }

    /* Xóa padding của hàng Flatsome trên mobile */
    .header-top .kht-marquee-row,
    .header-top .kht-marquee-zone,
    .header-top .kht-marquee-nav,
    .header-top .kht-marquee-host,
    .header-top .kht-marquee-host > p {
        max-width: none;
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
    }

    /* Component sẽ được JavaScript căn đúng mép trái màn hình */
    .kht-topbar-marquee {
        --kht-marquee-height: 40px;
        --kht-marquee-gap: 42px;

        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        touch-action: pan-y;
    }

    /* Viewport marquee rộng đúng màn hình điện thoại */
    .kht-topbar-marquee__viewport {
        width: 100%;
        max-width: 100%;
    }

    /* Thu nhỏ chữ trên mobile */
    .kht-topbar-marquee__item {
        font-size: 11px;
    }

    /* Thu nhỏ dấu phân cách trên mobile */
    .kht-topbar-marquee__separator {
        flex-basis: 3px;
        width: 3px;
        height: 3px;
    }
}

/* =========================================================
   7. MOBILE NHỎ
========================================================= */

@media screen and (max-width: 549px) {

    /* Giảm khoảng cách giữa các nội dung */
    .kht-topbar-marquee {
        --kht-marquee-gap: 34px;
    }

    /* Giữ chữ gọn trên màn hình nhỏ */
    .kht-topbar-marquee__item {
        font-size: 10.5px;
    }
}











/* =========================================================
   KEHETO 404 - BRAND SPOTLIGHT
   Chỉ tác động giao diện trang lỗi 404
========================================================= */


/* =========================================================
   1. TOÀN BỘ KHU VỰC TRANG 404
========================================================= */
#primary.content-area:has(.error-404) {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 72vh;

    padding: 50px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(57, 181, 74, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(57, 181, 74, 0.08),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #f9fcf9 0%,
            #ffffff 100%
        );
}


/* =========================================================
   2. KHUNG 404
========================================================= */
#primary .error-404 {
    position: relative;

    width: 100%;
    max-width: 900px;

    margin: 0;
    padding: 45px 30px;

    text-align: center;
}


/* =========================================================
   3. ĐỔI ROW FLATSOME THÀNH BỐ CỤC DỌC
========================================================= */
#primary .error-404 > .row {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 760px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================================
   4. CỘT SỐ 404
========================================================= */
#primary .error-404 > .row > .medium-3 {
    width: 100%;
    max-width: 100%;
    flex-basis: auto;

    padding: 0;

    display: flex;
    justify-content: center;
}


/* Số 404 lớn làm điểm nhấn chính */
#primary .error-404 .medium-3 > .header-font {
    position: relative;

    display: inline-block;

    margin: 0;

    color: #39b54a;

    font-size: clamp(110px, 17vw, 190px);
    font-weight: 800;
    line-height: 0.9;

    letter-spacing: -12px;

    opacity: 1;

    text-shadow:
        0 12px 35px rgba(57, 181, 74, 0.15);
}


/* Vòng tròn mờ phía sau số 404 */
#primary .error-404 .medium-3 > .header-font::before {
    content: "";

    position: absolute;
    z-index: -1;

    top: 50%;
    left: 50%;

    width: 230px;
    height: 230px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(57, 181, 74, 0.10) 0%,
            rgba(57, 181, 74, 0.03) 55%,
            transparent 72%
        );
}


/* =========================================================
   5. CỘT NỘI DUNG
========================================================= */
#primary .error-404 > .row > .medium-9 {
    width: 100%;
    max-width: 100%;
    flex-basis: auto;

    padding: 20px 0 0;
}


/* =========================================================
   6. TIÊU ĐỀ
========================================================= */
#primary .error-404 header.page-title {
    margin: 0;
    padding: 0;

    border: 0;
}


#primary .error-404 h1.page-title {
    max-width: 700px;

    margin: 0 auto;

    color: #263238;

    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.25;

    letter-spacing: -0.5px;
    text-transform: none;
}


/* Line thương hiệu dưới tiêu đề */
#primary .error-404 h1.page-title::after {
    content: "";

    display: block;

    width: 46px;
    height: 4px;

    margin: 18px auto 0;

    border-radius: 999px;

    background: #39b54a;
}


/* =========================================================
   7. MÔ TẢ
========================================================= */
#primary .error-404 .page-content {
    margin-top: 18px;
}


#primary .error-404 .page-content > p {
    max-width: 610px;

    margin: 0 auto 28px;

    color: #69746b;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
}


/* =========================================================
   8. NÚT TRỞ VỀ TRANG CHỦ
   Nút này được JS chèn vào bên dưới mô tả
========================================================= */
#primary .error-404 .kht-404-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 48px;

    margin: 0 0 22px;
    padding: 0 24px;

    border-radius: 10px;

    background: #39b54a;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.4px;
    text-decoration: none;

    box-shadow:
        0 8px 22px rgba(57, 181, 74, 0.20);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* Icon mũi tên trong nút */
#primary .error-404 .kht-404-home::before {
    content: "←";

    font-size: 18px;
    font-weight: 400;

    transition: transform 0.25s ease;
}


/* Hover nút trang chủ */
#primary .error-404 .kht-404-home:hover {
    color: #ffffff;

    background: #309e40;

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(57, 181, 74, 0.26);
}


/* Di chuyển mũi tên nhẹ khi hover */
#primary .error-404 .kht-404-home:hover::before {
    transform: translateX(-3px);
}


/* =========================================================
   9. FORM TÌM KIẾM
========================================================= */
#primary .error-404 .searchform {
    position: relative;

    width: 100%;
    max-width: 520px;

    margin: 0 auto;
}


/* Thêm dòng gợi ý trước ô tìm kiếm */
#primary .error-404 .searchform::before {
    content: "Hoặc tìm kiếm nội dung bạn cần";

    display: block;

    margin-bottom: 10px;

    color: #8b958d;

    font-size: 12px;
    font-weight: 500;
}


/* Khung search */
#primary .error-404 .searchform .flex-row {
    overflow: hidden;

    min-height: 50px;

    background: #ffffff;

    border: 1px solid #dde7de;
    border-radius: 12px;

    box-shadow:
        0 6px 24px rgba(24, 45, 28, 0.06);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* Focus vào search */
#primary .error-404 .searchform .flex-row:focus-within {
    border-color: #39b54a;

    box-shadow:
        0 0 0 3px rgba(57, 181, 74, 0.10),
        0 8px 26px rgba(24, 45, 28, 0.07);
}


/* Ô nhập */
#primary .error-404 .search-field {
    height: 50px;

    margin: 0;
    padding: 0 17px;

    border: 0;
    background: transparent;
    box-shadow: none;

    color: #263238;

    font-size: 14px;
}


/* Placeholder */
#primary .error-404 .search-field::placeholder {
    color: #9ca59e;

    opacity: 1;
}


/* Focus input */
#primary .error-404 .search-field:focus {
    outline: none;
}


/* =========================================================
   10. NÚT SEARCH
========================================================= */
#primary .error-404 .ux-search-submit {
    width: 54px;
    min-height: 50px;
    height: 50px;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 0;

    background: #263238;

    color: #ffffff;

    transition: background-color 0.25s ease;
}


/* Hover nút search */
#primary .error-404 .ux-search-submit:hover {
    background: #39b54a;
}


/* Icon search */
#primary .error-404 .ux-search-submit i {
    margin: 0;

    color: #ffffff;

    font-size: 17px;
}


/* =========================================================
   11. LIVE SEARCH FLATSOME
========================================================= */
#primary .error-404 .live-search-results {
    width: 100%;
}


#primary .error-404 .autocomplete-suggestions {
    overflow: hidden;

    margin-top: 7px;

    background: #ffffff;

    border: 1px solid #e1e8e2;
    border-radius: 10px;

    box-shadow:
        0 14px 35px rgba(30, 50, 34, 0.12);
}


/* =========================================================
   12. MOBILE
========================================================= */
@media (max-width: 549px) {

    /* Thu gọn toàn section trên mobile */
    #primary.content-area:has(.error-404) {
        min-height: 65vh;

        padding: 30px 15px;
    }


    /* Thu nhỏ padding nội dung */
    #primary .error-404 {
        padding: 30px 5px;
    }


    /* Điều chỉnh số 404 phù hợp mobile */
    #primary .error-404 .medium-3 > .header-font {
        font-size: 105px;

        letter-spacing: -8px;
    }


    /* Thu nhỏ vòng nền */
    #primary .error-404 .medium-3 > .header-font::before {
        width: 170px;
        height: 170px;
    }


    /* Khoảng cách nội dung */
    #primary .error-404 > .row > .medium-9 {
        padding-top: 17px;
    }


    /* Tiêu đề mobile */
    #primary .error-404 h1.page-title {
        font-size: 23px;
        line-height: 1.3;
    }


    /* Mô tả mobile */
    #primary .error-404 .page-content > p {
        margin-bottom: 22px;

        padding: 0 6px;

        font-size: 14px;
        line-height: 1.6;
    }


    /* Nút trang chủ rộng hơn để dễ bấm */
    #primary .error-404 .kht-404-home {
        min-height: 46px;

        margin-bottom: 20px;
        padding: 0 20px;

        font-size: 12px;
    }


    /* Search full width mobile */
    #primary .error-404 .searchform {
        max-width: 100%;
    }


    /* Chiều cao search mobile */
    #primary .error-404 .searchform .flex-row,
    #primary .error-404 .search-field,
    #primary .error-404 .ux-search-submit {
        min-height: 48px;
        height: 48px;
    }

}