/* TMT – Giao diện chung của website (header, footer, cửa hàng, nút ngôn ngữ). Nạp bằng wp_enqueue_style. */

/* ---------- Header & footer ---------- */
/* TMT Absolute Footer Perfect Alignment */
    .absolute-footer {
        padding: 16px 0 !important;
        background-color: #070b14 !important; /* nối liền footer tối (UX Block 525) */
    }
    .absolute-footer .container {
        max-width: 1240px; /* thẳng hàng với các hàng của footer (tmt-ft-main / tmt-ft-bar) */
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
    }
    /* clearfix ::before/::after của .container cũng thành phần tử flex → đẩy dòng bản quyền khỏi lề trái */
    .absolute-footer .container::before,
    .absolute-footer .container::after {
        display: none !important;
    }
    .absolute-footer .footer-primary,
    .absolute-footer .footer-secondary {
        float: none !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .absolute-footer .footer-primary {
        order: 1 !important;
    }
    .absolute-footer .footer-secondary {
        order: 2 !important;
    }
    .absolute-footer .copyright-footer,
    .absolute-footer .footer-text {
        font-size: 13.5px !important;
        line-height: 1.6 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        color: #8b95a5 !important;
    }
    .absolute-footer .copyright-footer strong {
        color: #cbd5e1 !important;
    }
    @media (max-width: 849px) {
        .absolute-footer .container {
            flex-direction: column !important;
            justify-content: center !important;
            text-align: center !important;
            gap: 8px !important;
        }
        .absolute-footer .footer-primary,
        .absolute-footer .footer-secondary {
            justify-content: center !important;
        }
    }

    /* TMT Header & Category Button Styling */
    .header-nav > li.tmt-category-btn-menu > a {
        background: #ff6600 !important;
        color: #ffffff !important;
        border-radius: 6px !important;
        padding: 9px 18px !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        box-shadow: 0 2px 6px rgba(255, 102, 0, 0.3) !important;
        transition: all 0.2s ease !important;
        margin-right: 15px !important;
    }
    .header-nav > li.tmt-category-btn-menu > a:hover {
        background: #e65c00 !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 10px rgba(255, 102, 0, 0.4) !important;
    }
    .header-nav > li.tmt-category-btn-menu .icon-angle-down {
        color: #ffffff !important;
        margin-left: 4px !important;
    }
    .header-button .button {
        background: #ff6600 !important;
        border-color: #ff6600 !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        border-radius: 5px !important;
        box-shadow: 0 3px 8px rgba(255, 102, 0, 0.35) !important;
    }
    .header-button .button:hover {
        background: #e65c00 !important;
        border-color: #e65c00 !important;
    }
    .header-nav > li > a {
        font-weight: 700 !important;
        color: #ffffff !important;
        font-size: 14.5px !important;
    }
    .header-nav > li > a:hover {
        color: #ff6600 !important;
    }

/* ---------- Cửa hàng: sidebar danh mục ---------- */
/* Sidebar danh mục */
#shop-sidebar .widget_product_categories { border: 1px solid #fde2cc; border-radius: 8px; background: #fff; overflow: hidden; padding: 0; }
#shop-sidebar .widget_product_categories .widget-title { display: block; margin: 0; padding: 12px 16px; background: #ffedd5; border-left: 5px solid #ff6600; color: #2a1a12; font-size: 15px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
#shop-sidebar .widget_product_categories .is-divider { display: none; }
#shop-sidebar .widget_product_categories ul.product-categories { margin: 0; }
#shop-sidebar .widget_product_categories li { margin: 0; padding: 0; border-top: 1px solid #fde2cc; }
#shop-sidebar .widget_product_categories li a { display: block; padding: 10px 16px; color: #2a1a12; font-size: 14.5px; }
#shop-sidebar .widget_product_categories li a:hover,
#shop-sidebar .widget_product_categories li.current-cat > a { color: #ff6600; background: #fff7ed; }
#shop-sidebar .widget_product_categories li.current-cat > a,
body.woocommerce-shop #shop-sidebar .widget_product_categories li.cat-item-all > a { font-weight: 700; }
body.woocommerce-shop #shop-sidebar .widget_product_categories li.cat-item-all > a { color: #ff6600; background: #fff7ed; }
#shop-sidebar .widget_product_categories ul.children { margin: 0; padding-left: 14px; border-left: 0; }
#shop-sidebar .widget_product_categories ul.children li a { font-size: 13.5px; color: #6b5b4e; }
#shop-sidebar .widget_product_categories .toggle { display: none; }
#shop-sidebar .widget_product_categories ul.children { display: block !important; }

/* ---------- Ô sản phẩm, nút BÁO GIÁ ---------- */
/* Ô sản phẩm: lưới cửa hàng/danh mục, khối Products có class tmt-prod-grid, sản phẩm liên quan */
:is(.category-page-row, .tmt-prod-grid, .related) .product-small.box { background: #fff; border: 1px solid #e7d6c6; border-radius: 8px; padding: 10px 10px 0; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
:is(.category-page-row, .tmt-prod-grid, .related) .product-small.box:hover { border-color: #ff6600; box-shadow: 0 6px 18px rgba(154,52,18,.12); }
:is(.category-page-row, .tmt-prod-grid, .related) .product-small .box-text { text-align: center; padding: 12px 4px 14px; }
:is(.category-page-row, .tmt-prod-grid, .related) .product-small .box-text .category { display: none; }
:is(.category-page-row, .tmt-prod-grid, .related) .product-small .name { margin: 0; }
:is(.category-page-row, .tmt-prod-grid, .related) .product-small .name a { display: block; color: #2a1a12; }
.tmt-short-title .tmt-loop-model { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: .3px; }
.tmt-short-title .tmt-loop-spec { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; margin-top: 3px; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: #6b5b4e; }
:is(.category-page-row, .tmt-prod-grid, .related) .product-small .name a:hover { color: #ff6600; }
:is(.category-page-row, .tmt-prod-grid, .related) .product-small .price-wrapper:empty { display: none; }
.tmt-loop-quote { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; padding: 9px 10px; border-radius: 6px; font-weight: 800; font-size: 14px; letter-spacing: .3px; }
@media (max-width: 549px) { .tmt-short-title .tmt-loop-model { font-size: 14.5px; } .tmt-short-title .tmt-loop-spec { font-size: 12px; } .tmt-loop-quote { font-size: 13px; } }

/* ---------- Trang sản phẩm: nút xem video ---------- */
.tmt-video-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 18px; padding: 10px 14px; border: 1.5px solid #e8431c; border-radius: 8px; background: #fff; color: #c2300f !important; font-weight: 700; font-size: 15px; transition: background .2s; }
.tmt-video-btn:hover { background: #fff7ed; }

/* ---------- Nút chuyển ngôn ngữ VI | EN ---------- */
.tmt-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; letter-spacing: .5px; line-height: 1; white-space: nowrap; }
.tmt-lang a, .tmt-lang .tmt-lang-cur { color: #fff !important; padding: 6px 4px; }
.tmt-lang a { opacity: .7; transition: opacity .2s; }
.tmt-lang a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.tmt-lang .tmt-lang-cur { border-bottom: 2px solid #fff; padding-bottom: 4px; }
.tmt-lang-sep { color: rgba(255,255,255,.5); }
/* Flatsome ẩn mọi ô HTML của header chính khi ≤849px; riêng ô chứa nút ngôn ngữ thì cho hiện */
@media (max-width: 849px) { .header-main .mobile-nav li.html.custom.html_topbar_right { display: flex !important; align-items: center; } .tmt-lang { font-size: 13px; } }

/* ---------- Nút nổi Email: bảng chọn cách gửi (máy tính) ---------- */
.tmt-mail-pop { position: fixed; z-index: 9991; width: 260px; background: #fff; border: 1px solid #fde2cc; border-radius: 10px; box-shadow: 0 10px 30px rgba(42,26,18,.18); padding: 6px; }
.tmt-mail-pop[hidden] { display: none; }
.tmt-mp-head { padding: 8px 10px 9px; border-bottom: 1px solid #fde2cc; margin-bottom: 4px; line-height: 1.35; }
.tmt-mp-title { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #7a6a5e; }
.tmt-mp-head strong { font-size: 14.5px; color: #9a3412; }
.tmt-mail-pop .tmt-mp-item { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 9px 10px; border: 0; border-radius: 6px; background: none; color: #2a1a12 !important; font: inherit; font-size: 14px; font-weight: 600; text-align: left; text-transform: none; letter-spacing: 0; line-height: 1.3; min-height: 0; cursor: pointer; }
.tmt-mail-pop .tmt-mp-item:hover, .tmt-mail-pop .tmt-mp-item:focus-visible { background: #fff7ed; color: #c2410c !important; }
.tmt-mp-item svg { flex: none; color: #c2410c; }
.tmt-mp-done { display: none; color: #15803d; }
.tmt-mail-pop.is-copied .tmt-mp-copy-txt { display: none; }
.tmt-mail-pop.is-copied .tmt-mp-done { display: inline; }
.tmt-fc-email.is-open .tmt-fc-label { opacity: 0 !important; }
