:root {
    --tf-hd2-green: #558032;
    --tf-hd2-green-dark: #45692a;
    --tf-hd2-news: #1b3a6b;
    --tf-hd2-text: #3d3d3d;
    --tf-hd2-text-light: #6b6b6b;
    --tf-hd2-border: #e6e6e6;
    --tf-hd2-header-h: 64px;
}

.tf-hd2 {
    background: #fff;
    transition: background .3s ease, backdrop-filter .3s ease;
}


.tf-hd2 a,
.tf-hd2 button {
    -webkit-tap-highlight-color: transparent;
}

.tf-hd2 .tf-hd2-header-top {
    margin-top: 0;
    margin-bottom: 0;
    padding: 10px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--tf-hd2-border);
}

.tf-hd2 .tf-hd2-header-top>.container-fluid {
    flex: 1;
}

.tf-hd2 .site-header-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tf-hd2 .site-header-top > .d-flex.align-items-center {
    flex-shrink: 0;
}


.tf-hd2 .header_icon-group {
    margin-left: auto;
}

@media (min-width: 992px) {

    .tf-hd2 .site-header-top {
        gap: 20px;
    }

    .tf-hd2 .site-header-top > .navbar-main.site-navbar {
        flex-shrink: 0;
    }
}


@media (min-width: 992px) and (max-width: 1799px) {
    .tf-hd2 .site-header-top {
        flex-wrap: wrap;
        row-gap: 4px;
        column-gap: 20px;
    }

    .tf-hd2 .site-header-top > .d-flex.align-items-center {
        order: 1;
    }

    .tf-hd2 .header_icon-group {
        order: 2;
    }

    .tf-hd2 .site-header-top > .navbar-main.site-navbar {
        order: 3;
        flex-basis: 100%;
    }

    .tf-hd2.scroll-change.scroll-css .tf-hd2-header-top {
        height: auto;
    }
}

@media (max-width: 991px) {
    .tf-hd2 .site-header-top {
        justify-content: flex-start;
        gap: 14px;
    }
    .tf-hd2 .site-header-top {
        padding: 0;
    }


    .tf-hd2 .site-header-top > .navbar-main.site-navbar {
        flex: 0 0 auto;
        width: 0;
        overflow: visible;
    }

    .tf-hd2 .site-header-top > .navbar-main.site-navbar > .container-fluid {
        padding: 0;
        width: 0;
    }
}

.tf-hd2 .site-header-top > .navbar-main.site-navbar > .container-fluid {
    padding: 0;
}

.tf-hd2 .header_navbar {
    display: flex;
    align-items: center;
}


.tf-hd2 .header_navbar-link-text,
.tf-hd2 .tf-hd2-caret,
.tf-hd2 .sign-in-button,
.tf-hd2 .cart-button i {
    color: var(--tf-hd2-text) !important;
}

@media (min-width: 992px) {
    .tf-hd2 .header_navbar>li>a.header_navbar-link-text {
        padding-top: 12px;
        padding-bottom: 12px;
        line-height: 1;
    }
}


@media (min-width: 992px) and (max-width: 1799px) {
    .tf-hd2 .header_navbar>li>a.header_navbar-link-text {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 14px !important;
        white-space: nowrap;
    }
}

.tf-hd2.scroll-css,
.tf-hd2.scroll-change.scroll-css {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tf-hd2.scroll-css .tf-hd2-header-top {
    height: var(--tf-hd2-header-h);
}

.tf-hd2 .header_logo-pc {
    height: 28px;
    width: auto;
}


.tf-hd2 .navbar-toggle {
    max-width: none;
}


@media (max-width: 991px) {
    .tf-hd2 .navbar-toggle i {
        color: var(--tf-hd2-text) !important;
    }
}

.tf-hd2 .header_search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 260px;
    height: 36px;
    background: #f4f5f6;
    border: 1px solid #e2e2e2;
    border-radius: 18px;
    padding: 0 4px 0 16px;
    transition: box-shadow .15s, border-color .15s;
}

.tf-hd2 .header_search-container:focus-within {
    border-color: #c9d6bd;
    box-shadow: 0 0 0 3px rgba(85, 128, 50, 0.12);
}

.tf-hd2 .header_search-input {

    display: block;
    order: 1;
    flex: 1;
    width: auto;
    min-width: 0;
    border: none;
    background: transparent;
    height: 100%;
    font-size: 13px;
    color: var(--tf-hd2-text);
    padding: 0 6px;
}

.tf-hd2 .header_search-input::placeholder {
    color: #999;
}

.tf-hd2 .header_search-clear {
    order: 2;
    display: none;
    position: static;
    right: auto;
    top: auto;
    transform: none;
    z-index: auto;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #b6b6b6;
    cursor: pointer;
    flex-shrink: 0;
    border: none;
}

.tf-hd2 .header_search-input:focus~.header_search-clear {
    display: none;
}

.tf-hd2 .header_search-container.has-value .header_search-clear {
    display: flex;
}


@media (hover: hover) {
    .tf-hd2 .header_search-clear:hover {
        color: #888;
    }
}

.tf-hd2 .header_search-submit {
    order: 3;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin-left: 6px;
    border: none;
    border-radius: 50%;
    background: var(--tf-hd2-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}

@media (hover: hover) {
    .tf-hd2 .header_search-submit:hover {
        background: var(--tf-hd2-green-dark);
    }
}


.tf-hd2 .header_search-submit i {
    font-size: 13px;
    color: #fff;
}

.tf-hd2 .header_search-recommand-box {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 420px;
    background: #fff;
    border: 1px solid var(--tf-hd2-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 16px 20px 20px;
    z-index: 20;
}

.tf-hd2 .header_search-container:focus-within .header_search-recommand-box,
.tf-hd2 .header_search-container.active .header_search-recommand-box {
    display: block;
}

.tf-hd2 .header_search-recommand-box h4 {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--tf-hd2-text-light);
}

.tf-hd2 .header_search-recommand-keyword {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.tf-hd2 .header_search-recommand-keyword a {
    font-size: 12px;
    color: var(--tf-hd2-text);
    background: #f4f5f6;
    border-radius: 14px;
    padding: 5px 12px;
    text-decoration: none;
}

@media (hover: hover) {
    .tf-hd2 .header_search-recommand-keyword a:hover {
        background: #e9f0e2;
        color: var(--tf-hd2-green);
    }
}

.tf-hd2 .header_search-overlay {
    display: none;
}

.tf-hd2 .header_search-container.active~.header_search-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 15;
}

@media (max-width: 991px) {
    .tf-hd2 .header_search-container {
        display: none;
    }

    .tf-hd2-search-toggle {
        display: inline-flex;
    }
}

@media (min-width: 992px) {
    .tf-hd2-search-toggle {
        display: none;
    }
}

.tf-hd2-search-toggle {
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: none;
    background: none;
    font-size: 1.6rem;
}

.tf-hd2-search-toggle i {
    color: #495057;
}

.tf-hd2-menu-search {
    display: none;
}

@media (max-width: 991px) {
    .tf-hd2-menu-search {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0 15px;
        border-bottom: 1px solid transparent;
        flex: none;
        overflow: hidden;
        max-height: 0;
        transition: max-height .28s ease, padding .28s ease, border-color .2s ease;
    }

    /* RQ-03 追加：搜尋匡預設收合，點擊 Menu Header 放大鏡才由上而下展開 */
    .tf-hd2-menu-search.is-open {
        max-height: 80px;
        padding: 14px 15px;
        border-color: var(--tf-hd2-border);
    }

    .tf-hd2-menu-search.tf-hd2-no-anim {
        transition: none;
    }
}

.tf-hd2-menu-search .header_search-container {
    display: flex !important;
    width: 100%;
    height: 42px;
    background: #f4f5f6 !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 21px !important;
}

.tf-hd2-menu-search .header_search-input {
    font-size: 15px;
    display: block !important;
    width: auto !important;
    flex: 1 !important;
}

.tf-hd2-menu-search .header_search-input::placeholder {
    font-size: 15px;
    font-family: inherit;
}

.tf-hd2 .header_icon-group .d-flex.gap-2 {
    gap: 14px;
}

.tf-hd2-icon-divider {
    width: 1px;
    height: 20px;
    background: var(--tf-hd2-border);
    display: inline-block;
}

@media (max-width: 991px) {
    .tf-hd2-icon-divider {
        display: none;
    }
}

.tf-hd2 .cart-button {
    color: var(--tf-hd2-text);
    font-size: 17px;
}

/* icon-customer-service.svg 跟社群 icon 一樣是固定黑色、非 currentColor，
   沒辦法用 color 變色，hover 改用透明度回饋；文字版本留給手機/平板選單
   Footer 的 .tf-hd2-menu-getsupport 使用 */
.tf-hd2-get-support {
    display: flex;
    transition: opacity .15s;
}

.tf-hd2-get-support img {
    display: block;
    width: 20px;
    height: 20px;
}

.tf-hd2-get-support:focus {
    opacity: .7;
}

@media (hover: hover) {
    .tf-hd2-get-support:hover {
        opacity: .7;
    }
}

.tf-hd2 .sign-in-button {
    font-size: 14px;
    font-weight: 600;
    color: var(--tf-hd2-text);
    text-decoration: none;
    white-space: nowrap;
}

@media (hover: hover) {
    .tf-hd2 .sign-in-button:hover {
        color: var(--tf-hd2-green);
    }
}

.tf-hd2-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* icon-x-square/icon-linkedin/icon-fb-square 是各自帶固定顏色的品牌
   icon（黑色／灰色／Facebook 藍），不是走 currentColor 的字型圖示，
   沒辦法像其他 icon 一樣用 color 屬性變色，hover 只能用透明度做回饋 */
.tf-hd2-social-links a {
    display: flex;
    transition: opacity .15s;
}

.tf-hd2-social-links a img {
    display: block;
    width: 24px;
    height: 24px;
}

@media (hover: hover) {
    .tf-hd2-social-links a:hover {
        opacity: .7;
    }
}

@media (max-width: 991px) {
    .tf-hd2-get-support,
    .tf-hd2-topbar-signin,
    /* 桌機頂部那組社群 icon（在 .header_icon-group 裡）手機/平板隱藏；
       手機選單 Footer 底下另外放一組同樣 class 的社群 icon（見下方
       .tf-hd2-menu-social-item），用祖先限定範圍才不會被這條一起蓋掉 */
    .header_icon-group .tf-hd2-social-links {
        display: none;
    }
}

.tf-hd2 .header_navbar > .tf-hd2-menu-signin-item,
.tf-hd2 .header_navbar > .tf-hd2-menu-getsupport-item,
.tf-hd2 .header_navbar > .tf-hd2-menu-social-item {
    display: none;
}

@media (max-width: 991px) {
    .tf-hd2 .header_navbar > .tf-hd2-menu-signin-item,
    .tf-hd2 .header_navbar > .tf-hd2-menu-getsupport-item,
    .tf-hd2 .header_navbar > .tf-hd2-menu-social-item {
        display: block;
        padding: 14px 15px 14px;
    }

    /* Sign in／Get Support／社群 icon 視為同一組 Footer CTA，
       中間不留分隔線、間距收緊 */
    .tf-hd2 .header_navbar > .tf-hd2-menu-signin-item {
        padding-bottom: 4px;
        border-bottom: none;
    }

    .tf-hd2 .header_navbar > .tf-hd2-menu-getsupport-item {
        padding-top: 0;
        border-bottom: none;
    }

    .tf-hd2 .header_navbar > .tf-hd2-menu-social-item {
        padding-top: 16px;
        border-bottom: none;
    }

    .tf-hd2 .header_navbar > .tf-hd2-menu-social-item .tf-hd2-social-links {
        justify-content: center;
        gap: 24px;
    }

    .tf-hd2 .header_navbar > .tf-hd2-menu-social-item .tf-hd2-social-links a img {
        width: 24px;
        height: 24px;
    }


    /* 覆蓋面板（.dropdown-menu/.tf-hd2-mega）用 position:absolute;inset:0
       蓋住第一層，但內容較短時撐不滿容器全高，導致底下的其他第一層項目
       （不只 footer 三個 CTA，其他一般選單項目、甚至項目上的橘點/badge
       這類用 position:absolute 逃出正常排版的裝飾元素）都可能從底部露出來。
       不再一個個補，直接在有第二層展開時把「當前展開項目以外」的所有
       第一層 li 都關掉，才能一次涵蓋所有露餡情況 */
    .tf-hd2 .header_navbar:has(> li.tf-hd2-has-children.tf-hd2-open) > li:not(.tf-hd2-open) {
        display: none;
    }
}

.tf-hd2-menu-signin {
    display: block;
    width: 100%;
    padding: 13px 0;
    border-radius: 8px;
    background: var(--tf-hd2-green);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

/* (hover:hover) 只有滑鼠/觸控筆等真的能 hover 的裝置才會符合；純觸控
   裝置一律不符合，點擊 Member Center／Sign out 不會再套用/卡住這個
   變色效果，也不需要另外用 max-width 蓋回去 */
@media (hover: hover) {
    .tf-hd2-menu-signin:hover {
        background: #84c100 !important;
        color: #fff !important;
    }
}

.tf-hd2-menu-getsupport {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tf-hd2-green);
    text-align: center;
    text-decoration: none;
}

.tf-hd2-caret {
    margin-left: 4px;
    font-size: 11px;
    color: var(--tf-hd2-text-light);
    transition: transform .15s;
}

.tf-hd2-acc-caret {
    color: var(--tf-hd2-text-light);
}

@media (min-width: 992px) {
    .tf-hd2 .header_navbar>li.tf-hd2-has-children>.dropdown-menu,
    .tf-hd2 .header_navbar>li.tf-hd2-has-children>.tf-hd2-mega {
        display: none;
        opacity: 0;
    }

    .tf-hd2 .header_navbar>li.tf-hd2-has-children.tf-hd2-open>.dropdown-menu,
    .tf-hd2 .header_navbar>li.tf-hd2-has-children.tf-hd2-open>.tf-hd2-mega {
        display: block;
        opacity: 1;
    }

    .tf-hd2 .header_navbar>li.tf-hd2-open>a .tf-hd2-caret:before {
        content: "\f077";
    }
}

.tf-hd2-news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--tf-hd2-news);
    text-decoration: none;
}

.tf-hd2-news-link i,.tf-hd2-datatrack-link i {
    font-size: 14px;
    color: var(--tf-hd2-news);
}

@media (hover: hover) {
    .tf-hd2-news-link:hover {
        text-decoration: underline;
    }
}

.tf-hd2-datatrack-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--tf-hd2-green);
    font-weight: 700;
}

@media (hover: hover) {
    .tf-hd2-datatrack-link:hover {
        color: var(--tf-hd2-green-dark);
        text-decoration: underline;
    }
}


.tf-hd2-datatrack-logo {
    letter-spacing: .2px;
}

.tf-hd2-beta-badge {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--tf-hd2-green);
    border-radius: 3px;
    padding: 1px 5px;
    line-height: 1.4;
}

.tf-hd2-mega {
    padding: 24px 28px 28px;
}


@media (min-width: 992px) {
    .tf-hd2-mega > .tf-hd2-mega-cat-list li {
        white-space: nowrap;
    }
}

.tf-hd2-toplink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px !important;
    font-weight: 700;
    color: var(--tf-hd2-green);
    text-decoration: none;
    margin-bottom: 18px;
}

/* .tf-hd2-toplink:hover {
    text-decoration: underline;
} */

.tf-hd2-toplink i {
    transition: transform .15s;
}

@media (hover: hover) {
    .tf-hd2-toplink:hover i {
        transform: translateX(6px);
    }
}

.tf-hd2-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 32px;
}

.tf-hd2-mega-cat-head {
    display: flex;
    align-items: flex-end;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0 0 8px;
    margin: 0 0 10px;
    border-bottom: 2px solid var(--tf-hd2-green);
    font-size: 1rem;
    font-weight: 700;
    color: var(--tf-hd2-green);
    white-space: normal;
}

.tf-hd2-mega-cat-list,
.tf-hd2-mega-cat-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tf-hd2-mega-cat-list li a,
.tf-hd2-mega-cat-list li {
    display: block;
    font-size: 0.875rem;
    color: var(--tf-hd2-text);
    text-decoration: none;
    padding: 4px 0;
    line-height: 1.4;
}

@media (hover: hover) {
    .tf-hd2-mega-cat-list li a:hover {
        color: var(--tf-hd2-green) !important;
        text-decoration: underline !important;
    }
}

.tf-hd2-mega-cat-list li>a:before {
    content: none !important;
}

.tf-hd2-mega-cat-list--split {
    display: flex;
    gap: 24px;
}

.tf-hd2-mega-cat-list--split>ul {
    flex: 1;
    min-width: 0;
}

.tf-hd2-legacy-menu {
    display: none !important;
}

@media (min-width: 992px) {

    .tf-hd2 .site-header-top {
        position: relative;
    }

    .tf-hd2 .header_navbar>li:has(>.tf-hd2-mega--research),
    .tf-hd2 .header_navbar>li:has(>.tf-hd2-mega--price) {
        position: static;
    }

    .tf-hd2-mega-cat-head {
        pointer-events: none;
        cursor: default;
    }

    .tf-hd2-acc-caret {
        display: none;
    }

    .tf-hd2-mega-cat-list {
        display: block !important;
    }

    .tf-hd2-panel-mobile-head,
    .tf-hd2-panel-back {
        display: none;
    }
}

@media (min-width: 992px) {
    .tf-hd2-mega--price,
    .tf-hd2-mega--research {
        left: 50%;
        right: auto;
        width: 100vw;
        transform: translateX(-50%);
    }

    .tf-hd2-mega--price,
    .tf-hd2-mega--research {
        max-height: calc(100vh - var(--tf-hd2-header-h));
        overflow-y: auto;
    }

    .tf-hd2-mega--price .tf-hd2-mega-grid,
    .tf-hd2-mega--research .tf-hd2-mega-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        column-gap: 40px;
        row-gap: 0;
    }

    .tf-hd2-mega--price .tf-hd2-mega-cat,
    .tf-hd2-mega--research .tf-hd2-mega-cat {
        display: grid;
        grid-row: span 2;
        grid-template-rows: subgrid;
        align-content: start;
    }

    .tf-hd2-mega--price .tf-hd2-mega-cat-list,
    .tf-hd2-mega--research .tf-hd2-mega-cat-list {
        margin-bottom: 24px;
    }
}


.tf-hd2-mega-cat-list .fa-external-link,
.tf-hd2-mega-cat-head .fa-external-link {
    margin-left: 6px;
    font-size: 11px;
    color: var(--tf-hd2-text-light);
    vertical-align: middle;
}

@media (max-width: 991px) {
    .tf-hd2 .navbar-collapse {
        position: fixed !important;
        inset: 0 !important;
        z-index: 1050;
        background: #fff;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        max-height: 100vh !important;
        overflow: hidden;
    }

    .tf-hd2-nav-scroll {
        position: absolute;
        top: 56px;
        bottom: 0;
        left: 0;
        right: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        transition: top .28s ease;
    }

    .tf-hd2 .header_navbar>li.tf-hd2-has-children {
        position: static;
    }


    .tf-hd2-menu-search.is-open~.tf-hd2-nav-scroll {
        top: 146px;
    }

    .tf-hd2 .header_navbar {
        display: block;
        height: auto;
        padding: 8px 0 0;
    }

    .tf-hd2 .header_navbar>li {
        border-bottom: 1px solid var(--tf-hd2-border);
    }

    .tf-hd2 .header_navbar>li>a.header_navbar-link-text {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 15px;
        font-size: 15px !important;
        color: var(--tf-hd2-text);
        box-shadow: none !important;
    }

    .tf-hd2-caret {
        font-size: 14px;
    }

    .tf-hd2-caret:before {
        content: "\f054";
    }

    .tf-hd2 .header_navbar>li.tf-hd2-has-children>.dropdown-menu:not(.tf-hd2-legacy-menu),
    .tf-hd2 .header_navbar>li.tf-hd2-has-children>.tf-hd2-mega {
        position: absolute;
        inset: 0;
        min-height: 100%;
        z-index: 5;
        background: #fff;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .28s ease;
        padding: 0 0 20px;
        display: block !important;
        visibility: hidden;
    }

    .tf-hd2 .header_navbar>li.tf-hd2-open>.dropdown-menu:not(.tf-hd2-legacy-menu),
    .tf-hd2 .header_navbar>li.tf-hd2-open>.tf-hd2-mega {
        transform: translateX(0);
        visibility: visible;
    }

    .tf-hd2-panel-mobile-head {
        display: flex;
    }

    .tf-hd2-panel-back {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        border: none;
        background: #f4f5f6;
        color: var(--tf-hd2-text);
        font-size: 14px;
        font-weight: 600;
        padding: 16px 15px;
    }

    .tf-hd2-panel-back i {
        font-size: 13px;
        color: var(--tf-hd2-text-light);
    }

    .tf-hd2-toplink {
        padding: 24px 15px;
        margin: 0;
    }

    .tf-hd2-mega-grid {
        display: block;
        padding: 4px 0 0;
    }

    .tf-hd2-mega-cat {
        border-top: 1px solid var(--tf-hd2-border);
    }

    .tf-hd2-mega-cat-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: none;
        color: var(--tf-hd2-text);
        font-weight: 600;
        font-size: 15px;
        padding: 24px 15px;
        margin: 0;
    }

    .tf-hd2-mega-cat-list {
        display: none;
        background: #f8f9f8;
        padding: 4px 15px 10px 32px;
    }

    .tf-hd2-mega>.tf-hd2-mega-cat-list {
        display: block;
        background: none;
        padding: 4px 15px 10px;
    }

    .tf-hd2-mega-cat-list--split {
        flex-direction: column;
        gap: 0;
    }

    .tf-hd2-mega-cat.tf-hd2-acc-open>.tf-hd2-mega-cat-list {
        display: block;
    }

    .tf-hd2-mega-cat.tf-hd2-acc-open>.tf-hd2-mega-cat-head .tf-hd2-acc-caret:before {
        content: "\f077";
    }

    .tf-hd2-mega .tf-hd2-mega-cat-list li a,
    .tf-hd2-mega .tf-hd2-mega-cat-list li {
        padding: 9px 0;
        font-size: 14px;
    }

    .tf-hd2-mega-cat--link>.tf-hd2-mega-cat-head {
        pointer-events: auto;
    }
}

.tf-hd2-menu-header {
    display: none;
}

@media (max-width: 991px) {
    .tf-hd2-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: none;
        height: 68px;
        padding: 0 15px;
        border-bottom: 1px solid var(--tf-hd2-border);
    }

    .tf-hd2-menu-header-logo img {
        width: 37px;
        height: auto;
    }

    /* gap 對齊收合狀態 .header_icon-group .d-flex.gap-2 的 14px，
       展開/收合切換時 search／cart icon 的水平間距才不會跳動 */
    .tf-hd2-menu-header-actions {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .tf-hd2-menu-header-close {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: none;
        color: var(--tf-hd2-text);
        font-size: 17px;
        padding: 0;
    }

    /* 與外層 .tf-hd2-search-toggle 同尺寸（同 padding/font-size） */
    .tf-hd2-menu-search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 12px;
        border: none;
        background: none;
        font-size: 1.6rem;
    }

    .tf-hd2-menu-search-toggle i {
        color: #495057;
    }

    .tf-hd2-menu-search-toggle.is-active i {
        color: var(--tf-hd2-green);
    }

    .tf-hd2 .tf-hd2-menu-cart {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 12px;
        font-size: 17px;
    }

    .tf-hd2-menu-header-close {
        border-radius: 50%;
        background: #3d3d3d;
        color: #fff !important;
        font-size: 15px;
    }

   
    .tf-hd2-menu-header-close i {
        color: #fff !important;
    }
}

@media (max-width: 991px) {

    body[data-tf-page="inner"] .tf-hd2,
    body[data-tf-page="home"] .tf-hd2 {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .tf-hd2 ~ .section-empty .header-title-bg,
    .tf-hd2 ~ .header-title .header-title-bg {
        padding-top: var(--tf-hd2-header-h);
        box-sizing: border-box;
    }
}


@media (min-width: 992px) {
    body[data-tf-page="home"] .tf-hd2 {
        height: 0 !important;
    }
}
/* 桌機因為外層 .tf-hd2 高度塌陷成 0（見上方 height:0 !important），
   它自己在最上面的 .tf-hd2{background:#fff}（見檔案開頭）畫面上完全看不到，
   所以之前只蓋內層 .navbar-default 的白底就夠了；手機/平板改成外層自己
   position:fixed、撐出真實高度後，這層白底會整塊蓋住下面的透明模糊效果，
   這裡補上讓外層本身也在首頁未捲動時透明 */
body[data-tf-page="home"] .tf-hd2:not(.scroll-css) {
    background: transparent;
}

/* 真正貼齊畫面頂部、蓋住下方內容的是內層 .navbar-fixed-top（Bootstrap 3
   position:fixed !important + .navbar-default 內建白底），外層 .tf-hd2
   只是一個 52px 高的普通流內容器，改它的背景畫面上完全看不到，
   所以透明+模糊要直接蓋掉 .navbar-default 的白底才會生效 */
body[data-tf-page="home"] .tf-hd2:not(.scroll-css) > .navbar-default {
    background-color: rgba(0, 0, 0, 0.15);
    border-color: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .navbar-main {
    background-color: transparent;
}


body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .navbar-header {
    background-color: transparent;
}

body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .tf-hd2-header-top {
    border-bottom-color: transparent;
}


@media (min-width: 992px) {
    body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .header_navbar-link-text,
    body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .tf-hd2-caret {
        color: #fff !important;
    }
}


body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .sign-in-button,
body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .header_icon-group .cart-button,
body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .header_icon-group .cart-button i,
body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .tf-hd2-news-link i,
body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .tf-hd2-datatrack-link i,
body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .tf-hd2-search-toggle i,
body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .navbar-toggle i {
    color: #fff !important;
}

body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .tf-hd2-icon-divider {
    background: rgba(255, 255, 255, 0.35);
}


@media (min-width: 993px) {
    body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .header_logo-pc.logo-default {
        display: none;
    }

    body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .tf-hd2-logo-white {
        display: inline-block !important;
    }


    body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .tf-hd2-social-icon-default {
        display: none;
    }

    body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .tf-hd2-social-icon-white {
        display: block !important;
    }


    body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .tf-hd2-get-support img,
    body[data-tf-page="home"] .tf-hd2:not(.scroll-css) .header_account-container img {
        filter: brightness(0) invert(1);
    }
}


.tf-hd2-logo-white {
    display: none !important;
}

.tf-hd2-social-icon-white {
    display: none !important;
}

.tf-proto-hero-fill {
    display: none;
}

body[data-tf-page="home"] .tf-proto-hero-fill {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-height: 480px;
    background: linear-gradient(135deg, #ff6b35 0%, #2e5090 50%, #1a8a5e 100%);
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    text-align: center;
    padding: 0 24px;
}

body[data-tf-page="home"] .prototype-body-spacer {
    display: none;
}


.prototype-body-spacer {
    height: var(--tf-hd2-header-h);
}

@media (max-width: 991px) {
    .prototype-body-spacer {
        height: 56px;
    }
}

.tf-proto-toolbar {
    max-width: 900px;
    margin: 32px auto 0;
    padding: 14px 20px;
    background: #fffbe6;
    border: 1px solid #f0e3a0;
    border-radius: 6px;
    font-family: -apple-system, "Segoe UI", sans-serif;
    font-size: 13px;
    color: #5c4b00;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tf-proto-toolbar label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
}

.tf-proto-note {
    max-width: 900px;
    margin: 16px auto 40px;
    padding: 18px 24px;
    background: #f8f9fa;
    border-left: 4px solid var(--tf-hd2-green);
    font-family: monospace;
    font-size: 12.5px;
    color: #333;
    line-height: 1.8;
}

.tf-proto-note code {
    background: #eee;
    padding: 1px 4px;
    border-radius: 3px;
}

#contact-sales.box-lightbox {
    display: none;
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    padding: 32px 28px;
    border-radius: 8px;
}

#contact-sales h3 {
    margin-top: 0;
}

#contact-sales .form-group {
    margin-bottom: 16px;
}

#contact-sales label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

#contact-sales .form-control {
    width: 100%;
    border: 1px solid var(--tf-hd2-border);
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 13px;
}
