/* ==============================================================================
 * Giao diện phong cách T-MOTOR Official Store (store.tmotor.com) cho HK Motion
 * ============================================================================== */

:root {
    --tm-orange: #ff5500;
    --tm-orange-hover: #e04b00;
    --tm-dark-bg: #111215;
    --tm-header-bg: #ffffff;
    --tm-topbar-bg: #f7f8f9;
    --tm-card-border: #e2e8f0;
    --tm-text-muted: #64748b;
}

/* 1. Header phong cách T-Motor (tông sáng): thanh menu trắng 68px, bóng nhẹ, dính khi cuộn */
.site-header,
.ast-main-header-wrap,
.main-header-bar {
    background-color: var(--tm-header-bg) !important;
    border-bottom: none !important;
}

#masthead {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#ast-desktop-header .main-header-bar,
#ast-desktop-header .site-primary-header-wrap,
#ast-desktop-header .main-header-bar .ast-builder-grid-row {
    min-height: 68px !important;
    height: 68px;
}

/* Đảm bảo toàn bộ Header, Menu và Thanh tìm kiếm luôn nằm trên cùng 1 hàng ngang trên Desktop */
#ast-desktop-header .main-header-bar .ast-builder-grid-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

#ast-desktop-header .site-header-primary-section-left {
    flex-shrink: 0 !important;
}

/* Logo + menu canh trái như store.tmotor.com; ô tìm kiếm (mục cuối của menu) đẩy sang phải */
#ast-desktop-header .site-header-primary-section-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-grow: 1 !important;
    min-width: 0 !important;
    margin-left: 32px !important;
}

#ast-desktop-header .site-header-primary-section-right .ast-builder-menu-1,
#ast-desktop-header .site-header-primary-section-right .ast-main-header-bar-alignment,
#ast-desktop-header .site-header-primary-section-right .main-header-bar-navigation,
#ast-desktop-header .site-header-primary-section-right .main-navigation,
#ast-desktop-header .site-header-primary-section-right .main-header-menu {
    flex-grow: 1 !important;
}

#ast-desktop-header .main-header-menu > .tm-header-search-menu-item {
    margin-left: auto !important;
}

.ast-builder-menu-1,
#ast-desktop-header .main-header-bar-navigation,
#ast-desktop-header .main-navigation,
#ast-desktop-header .main-header-menu {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
}

#ast-desktop-header .main-header-menu > .menu-item {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.site-title a,
.main-header-menu .menu-link,
.ast-header-break-point .main-header-menu a {
    color: #151515 !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

#ast-desktop-header .main-header-menu > .menu-item > .menu-link {
    padding: 0 14px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
}

.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link {
    color: var(--tm-orange) !important;
}

/* Submenu dropdown nền trắng như store.tmotor.com */
#ast-desktop-header .main-header-menu .sub-menu {
    background: #ffffff !important;
    border: 1px solid #edeeef !important;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 !important;
    padding: 8px 0 !important;
}

#ast-desktop-header .main-header-menu .sub-menu .menu-item a {
    color: #151515 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    transition: all 0.2s ease !important;
}

#ast-desktop-header .main-header-menu .sub-menu .menu-item a:hover {
    color: var(--tm-orange) !important;
    background: #f7f8f9 !important;
    padding-left: 24px !important;
}

/* Tinh chỉnh cấu trúc layout Trang Chủ Full-Width chuẩn Store */
.home .entry-header {
    display: none !important;
}

.home #primary,
.home #main,
.home .site-content,
.home .site-content > .ast-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.home .entry-content {
    margin: 0 !important;
}

/* Thanh thông báo đỉnh trang (Top Notice Bar kiểu T-Motor): nền xám nhạt, cao 40px, chữ 12px */
.tm-top-bar {
    background: var(--tm-topbar-bg);
    color: #656667;
    font-size: 12px;
    min-height: 40px;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tm-top-bar a {
    color: #656667;
    text-decoration: none;
    margin-left: 15px;
}

.tm-top-bar a:hover {
    color: var(--tm-orange);
}

/* Số hotline trong thanh trên: link gọi điện, giữ nguyên kiểu chữ đậm */
.tm-top-bar .tm-top-hotline {
    margin-left: 0;
    color: inherit;
}

/* 2. Hero Banner phong cách T-Motor */
.tm-hero-section {
    background: linear-gradient(135deg, #090a0f 0%, #161a23 50%, #0d111a 100%);
    color: #ffffff;
    padding: 80px 24px 90px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--tm-orange);
}

.tm-hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 30%, rgba(255, 85, 0, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.tm-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tm-badge {
    display: inline-block;
    background: rgba(255, 85, 0, 0.15);
    color: var(--tm-orange);
    border: 1px solid rgba(255, 85, 0, 0.4);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.tm-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.tm-hero-title span {
    color: var(--tm-orange);
}

.tm-hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 680px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.tm-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tm-btn-primary {
    background: var(--tm-orange) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 14px 32px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.25s ease;
    border: 2px solid var(--tm-orange) !important;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.tm-btn-primary:hover {
    background: var(--tm-orange-hover) !important;
    border-color: var(--tm-orange-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 85, 0, 0.35);
}

.tm-btn-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 700 !important;
    padding: 14px 32px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.25s ease;
    text-transform: uppercase;
    font-size: 14px;
}

.tm-btn-secondary:hover {
    border-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* 3. Thẻ phân loại nhanh (Quick Category Boxes) */
.tm-cat-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    max-width: 1240px !important;
    margin: 35px auto 45px !important;
    padding: 0 20px !important;
    position: relative !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
}

@media (max-width: 1024px) {
    .tm-cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        margin: 25px auto 35px !important;
    }
}

@media (max-width: 640px) {
    .tm-cat-grid {
        grid-template-columns: 1fr !important;
        margin: 20px auto 30px !important;
    }
}

.tm-cat-card {
    background: #ffffff !important;
    border-radius: 0 !important;
    padding: 22px 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.tm-cat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 28px rgba(255, 85, 0, 0.15) !important;
    border-color: var(--tm-orange) !important;
}

.tm-cat-icon {
    font-size: 30px !important;
    margin-bottom: 12px !important;
    display: inline-block !important;
    line-height: 1 !important;
}

.tm-cat-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px !important;
    display: block !important;
    transition: color 0.2s ease !important;
}

.tm-cat-card:hover .tm-cat-title {
    color: var(--tm-orange) !important;
}

.tm-cat-desc {
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.55 !important;
    display: block !important;
}

/* 4. Thẻ sản phẩm WooCommerce kiểu T-Motor Store */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    padding: 16px !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    border-color: var(--tm-orange) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 12px !important;
    min-height: 48px;
    transition: color 0.2s ease;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: var(--tm-orange) !important;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    background: var(--tm-orange) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    display: block !important;
    text-align: center !important;
    transition: background 0.2s ease !important;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--tm-orange-hover) !important;
}

/* 5. Khung Cam Kết Kỹ Thuật (Tech Trust Highlights) */
.tm-trust-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 50px 24px;
    margin-top: 60px;
}

.tm-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.tm-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.tm-trust-icon {
    background: #0f172a;
    color: var(--tm-orange);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tm-trust-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.tm-trust-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* 6. Footer phong cách T-Motor */
.site-footer,
.site-footer a,
.ast-footer-overlay {
    background: #090a0f !important;
    color: #94a3b8 !important;
}

.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6 {
    color: #ffffff !important;
}

/* ==============================================================================
 * 7. Banner Swipers Slide phong cách store.tmotor.com (Image Only)
 * ============================================================================== */
/* Triệt tiêu dòng khoảng trắng thẻ <p> thừa phía trên div tm-banner-swiper-wrap */
.home .entry-content > p:first-child,
.home .entry-content > p:empty,
.home .entry-content > p:has(+ .tm-banner-swiper-wrap),
.home .entry-content > p:has(+ div.tm-banner-swiper-wrap) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

.home .entry-content > .tm-banner-swiper-wrap:first-child,
.home .entry-content > *:first-child.tm-banner-swiper-wrap {
    margin-top: 0 !important;
}

.tm-banner-swiper-wrap {
    position: relative;
    background: linear-gradient(135deg, #090a0d 0%, #13151b 50%, #0c0d11 100%);
    border-bottom: 3px solid var(--tm-orange);
    overflow: hidden;
    width: 100%;
}

.tm-banner-swiper-wrap::before {
    content: "";
    position: absolute;
    top: -20%;
    right: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 85, 0, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.banner-swiper {
    width: 100%;
    height: 650px;
    position: relative;
    z-index: 2;
}

/* Ảnh banner phủ kín toàn bộ khung slide như store.tmotor.com (ảnh gốc 2560x650, cắt giữa khi khung hẹp hơn) */
.banner-swiper-slide {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.tm-banner-img-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.tm-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/* Nút điều hướng prev/next Swiper */
.banner-swiper-button-prev,
.banner-swiper-button-next {
    width: 48px !important;
    height: 48px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    transition: all 0.25s ease !important;
    margin-top: -24px !important;
}

.banner-swiper-button-prev:after,
.banner-swiper-button-next:after {
    font-size: 18px !important;
    font-weight: 900 !important;
}

.banner-swiper-button-prev {
    left: 24px !important;
}

.banner-swiper-button-next {
    right: 24px !important;
}

.banner-swiper-button-prev:hover,
.banner-swiper-button-next:hover {
    background: var(--tm-orange) !important;
    border-color: var(--tm-orange) !important;
    box-shadow: 0 0 16px rgba(255, 85, 0, 0.6) !important;
    transform: scale(1.08);
}

/* Thanh phân trang Pagination */
.banner-swiper-pagination {
    bottom: 14px !important;
}

.banner-swiper-pagination .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: rgba(255, 255, 255, 0.35) !important;
    opacity: 1 !important;
    border-radius: 5px !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
}

.banner-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--tm-orange) !important;
    width: 28px !important;
    border-radius: 5px !important;
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.6) !important;
}

/* Responsive cho Mobile và Tablet */
@media (max-width: 960px) {
    .banner-swiper {
        height: 420px;
    }

    .banner-swiper-button-prev,
    .banner-swiper-button-next {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .banner-swiper {
        height: 300px;
    }
}

/* ==============================================================================
 * 8. Hiệu ứng Hover đổi sang ảnh sample-hover.jpg khi di chuột vào sản phẩm
 * ============================================================================== */
.tm-product-img-wrapper {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 0;
}

.tm-product-img-wrapper img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 12px;
    box-sizing: border-box;
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    will-change: opacity, transform;
}

/* Ảnh gốc ban đầu */
.tm-product-img-wrapper img:first-child,
.tm-product-img-wrapper .attachment-woocommerce_thumbnail {
    opacity: 1 !important;
    z-index: 1 !important;
    transform: scale(1) !important;
}

/* Ảnh khi hover (sample-hover.jpg) */
.tm-product-img-wrapper .tm-hover-image {
    opacity: 0 !important;
    z-index: 2 !important;
    transform: scale(0.96) !important;
    pointer-events: none !important;
}

/* Khi di chuột vào card sản phẩm (li.product hoặc khung bọc ảnh) */
li.product:hover .tm-product-img-wrapper img:first-child,
li.product:hover .tm-product-img-wrapper .attachment-woocommerce_thumbnail,
.astra-shop-thumbnail-wrap:hover .tm-product-img-wrapper img:first-child {
    opacity: 0 !important;
    transform: scale(1.08) !important;
}

li.product:hover .tm-product-img-wrapper .tm-hover-image,
.astra-shop-thumbnail-wrap:hover .tm-product-img-wrapper .tm-hover-image {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Đảm bảo khung bọc thumbnail của Astra đồng bộ */
.astra-shop-thumbnail-wrap {
    overflow: hidden;
    border-radius: 0;
    background: #f8fafc;
}

/* ==============================================================================
 * 9. Gallery Single Product Page (T-Motor Dark Industrial & Active State)
 * ============================================================================== */
.woocommerce div.product div.images .flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 16px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    width: 72px !important;
    height: 72px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.woocommerce div.product div.images .flex-control-thumbs li:hover {
    border-color: var(--tm-orange) !important;
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.2) !important;
}

.woocommerce div.product div.images .flex-control-thumbs li:hover img {
    opacity: 1 !important;
    transform: scale(1.05);
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
    opacity: 1 !important;
}

.woocommerce div.product div.images .flex-control-thumbs li:has(img.flex-active),
.woocommerce div.product div.images .flex-control-thumbs li.active {
    border-color: var(--tm-orange) !important;
    box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.3) !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    background: rgba(15, 23, 42, 0.85) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 14px !important;
    right: 14px !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger:hover {
    background: var(--tm-orange) !important;
    transform: scale(1.08);
}

/* ==============================================================================
 * 10. Thiết kế Detail information & Specifications chuẩn T-MOTOR Official Store
 * ============================================================================== */

/* Khung bọc toàn bộ WooCommerce Tabs */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 45px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05) !important;
}

/* Thanh điều hướng Tabs (T-Motor Dark Industrial Tab Bar) */
.woocommerce div.product .woocommerce-tabs ul.tabs,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs {
    background: #0f1218 !important;
    border-bottom: 2px solid #1f2533 !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 15px !important;
    list-style: none !important;
    gap: 4px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li::after {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li a {
    display: inline-block !important;
    padding: 18px 24px !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    text-decoration: none !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s ease !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs.wc-tabs li.active a {
    color: var(--tm-orange) !important;
    border-bottom-color: var(--tm-orange) !important;
    background: rgba(255, 85, 0, 0.08) !important;
}

/* Nội dung bên trong Tab Panel */
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-tabs .panel.entry-content {
    padding: 35px 30px !important;
    margin: 0 !important;
}

/* --- Phân mục Chung cho Tabs --- */
.tm-tab-header {
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #0f172a;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tm-tab-badge {
    display: inline-block;
    color: var(--tm-orange);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.tm-tab-title {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -0.3px;
    text-transform: uppercase;
}

/* Tên sản phẩm trên trang chi tiết (mặc định Astra chỉ ~20px) */
.single-product div.product .product_title {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #151515 !important;
    margin: 8px 0 12px !important;
}

@media (max-width: 768px) {
    .single-product div.product .product_title {
        font-size: 22px !important;
    }
}

/* --- TAB 1: DETAIL INFORMATION --- */
.tm-detail-overview-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--tm-orange);
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 30px;
}

.tm-detail-desc-content {
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Các ô thông tin chính của sản phẩm (Model, thông số chính, ứng dụng, chứng chỉ, tình trạng) */
.tm-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.tm-feature-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 24px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tm-feature-box:hover {
    transform: translateY(-4px);
    border-color: var(--tm-orange);
    box-shadow: 0 12px 25px rgba(255, 85, 0, 0.12);
}

.tm-feature-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px !important;
}

.tm-feature-desc {
    font-size: 0.88rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    flex-grow: 1;
}

/* --- TAB 2: SPECIFICATIONS --- */
.tm-specs-wrapper {
    width: 100%;
}

.tm-specs-header-bar {
    background: linear-gradient(135deg, #090b0e 0%, #171b26 100%);
    color: #ffffff;
    padding: 20px 24px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #1e2433;
    border-bottom: none;
    flex-wrap: wrap;
    gap: 16px;
}

.tm-specs-badge {
    color: var(--tm-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.tm-specs-header-title h3 {
    margin: 0 !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.2px;
}

.tm-specs-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tm-btn-datasheet {
    background: #1e293b;
    border: 1px solid #334155;
    color: #ffffff !important;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.tm-btn-datasheet:hover {
    background: #334155;
}

.tm-btn-spec-rfq {
    background: var(--tm-orange);
    color: #ffffff !important;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.35);
}

.tm-btn-spec-rfq:hover {
    background: var(--tm-orange-hover);
    transform: translateY(-2px);
}

/* Bảng thông số kỹ thuật ma trận (Matrix Specs Table) */
.tm-specs-table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    margin: 0 !important;
}

.tm-specs-table thead th {
    background: #0f1218 !important;
    color: #94a3b8 !important;
    padding: 12px 20px !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border: none !important;
}

.tm-specs-group-row td {
    background: #141822 !important;
    color: var(--tm-orange) !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    padding: 10px 20px !important;
    border-top: 1px solid #1e2433 !important;
    border-bottom: 1px solid #1e2433 !important;
}

.tm-specs-table tbody tr:not(.tm-specs-group-row) {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.15s ease;
}

.tm-specs-table tbody tr:not(.tm-specs-group-row):hover {
    background: #f1f5f9 !important;
}

.tm-spec-label {
    padding: 14px 20px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: #f8fafc;
    border: none !important;
    font-size: 13.5px !important;
}

.tm-spec-value {
    padding: 14px 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    border: none !important;
    font-size: 14px !important;
}

/* Badges phân loại thông số */
.tm-badge-model {
    display: inline-block;
    background: #0f172a;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.tm-badge-thrust {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
}

.tm-badge-apps {
    display: inline-block;
    color: #0f172a;
    font-weight: 700;
}

.tm-badge-cert {
    display: inline-block;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 700;
}

.tm-badge-cond {
    display: inline-block;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* Khối hỗ trợ kỹ thuật B2B Callout */
.tm-specs-footer-callout {
    margin-top: 25px;
    padding: 22px 26px;
    background: #0f172a;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.tm-specs-footer-callout strong {
    font-size: 1.05rem;
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}

.tm-specs-footer-callout p {
    margin: 0 !important;
    color: #94a3b8;
    font-size: 0.88rem;
}

/* Responsive trên Mobile & Tablet */
@media (max-width: 768px) {
    .tm-features-grid {
        grid-template-columns: 1fr;
    }

    .tm-specs-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .tm-specs-footer-callout {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   10. CHỨC NĂNG TÌM KIẾM ĐỘNG CƠ & THIẾT BỊ (T-MOTOR LIVE AJAX SEARCH)
   ========================================================================== */

/* Wrapper trong Header Menu */
.tm-header-search-menu-item {
    display: flex !important;
    align-items: center !important;
    margin-left: 10px !important;
    padding: 0 !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

/* Desktop hẹp (922-1279px): logo + 5 mục menu + ô tìm kiếm 190px không vừa một hàng (tràn ngang).
   Thu gọn menu và rút ô tìm kiếm thành nút kính lúp 36px, bấm vào thì mở rộng đè lên menu. */
@media (min-width: 922px) and (max-width: 1279px) {
    #ast-desktop-header .site-header-primary-section-right {
        margin-left: 16px !important;
    }

    #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
        padding: 0 8px !important;
        font-size: 13px !important;
    }

    .tm-header-search-menu-item .tm-search-wrap {
        width: 36px;
        height: 35px;
    }

    .tm-header-search-menu-item .tm-search-box {
        width: 36px !important;
        padding: 0 !important;
        cursor: pointer;
    }

    .tm-header-search-menu-item .tm-search-input {
        opacity: 0;
        cursor: pointer !important;
    }

    .tm-header-search-menu-item .tm-search-btn,
    .tm-header-search-menu-item .tm-search-clear {
        display: none !important;
    }

    .tm-header-search-menu-item .tm-search-box:focus-within {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 1000;
        width: 260px !important;
        padding: 0 34px 0 32px !important;
        cursor: text;
    }

    .tm-header-search-menu-item .tm-search-box:focus-within .tm-search-input {
        opacity: 1;
        cursor: text !important;
    }

    .tm-header-search-menu-item .tm-search-box:focus-within .tm-search-btn {
        display: flex !important;
    }
}

.tm-search-wrap {
    position: relative;
    width: 100%;
}

/* Khung Search Box */
.tm-search-form {
    margin: 0 !important;
    padding: 0 !important;
}

.tm-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f7f8f9;
    border: 1px solid #e5e6e7;
    border-radius: 18px;
    height: 35px;
    padding: 0 34px 0 32px;
    transition: all 0.25s ease;
    box-sizing: border-box;
    width: 190px;
}

.tm-search-box:hover {
    border-color: #cbcccd;
    background: #ffffff;
}

.tm-search-box:focus-within {
    width: 250px;
    border-color: #ff5500;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.15);
}

/* Icon kính lúp bên trái */
.tm-search-lens {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #656667;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.tm-search-box:focus-within .tm-search-lens {
    color: #ff5500;
}

/* Ô nhập liệu */
.tm-search-input {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #151515 !important;
    font-size: 13px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
}

.tm-search-input::placeholder {
    color: #8a8b8c !important;
    font-size: 12.5px !important;
}

/* Spinner khi đang tìm kiếm */
.tm-search-spinner {
    position: absolute;
    right: 34px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 85, 0, 0.3);
    border-top-color: #ff5500;
    border-radius: 50%;
    animation: tm-spin 0.6s linear infinite;
}

@keyframes tm-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Nút xóa từ khóa (✕) */
.tm-search-clear {
    position: absolute;
    right: 34px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    padding: 2px !important;
    line-height: 1 !important;
    transition: color 0.2s;
}

.tm-search-clear:hover {
    color: #151515 !important;
}

/* Nút submit kính lúp */
.tm-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    color: #656667 !important;
    cursor: pointer !important;
    padding: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s, transform 0.2s;
}

.tm-search-btn:hover {
    color: #ff5500 !important;
    transform: translateY(-50%) scale(1.1);
}

/* Bảng gợi ý kết quả thả xuống (Live Search Dropdown) */
.tm-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    background: #ffffff;
    border: 1px solid #e5e6e7;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    z-index: 999999;
    overflow: hidden;
    animation: tm-dropdown-fade 0.2s ease;
}

@keyframes tm-dropdown-fade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header kết quả */
.tm-search-dropdown-header {
    padding: 10px 16px;
    background: #f7f8f9;
    border-bottom: 1px solid #edeeef;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #656667;
}

/* Danh sách kết quả */
.tm-search-results-list {
    max-height: 380px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.tm-search-results-list::-webkit-scrollbar {
    width: 6px;
}

.tm-search-results-list::-webkit-scrollbar-thumb {
    background: #cbcccd;
    border-radius: 3px;
}

/* Từng dòng sản phẩm */
.tm-search-result-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 16px !important;
    border-bottom: 1px solid #f4f5f6 !important;
    text-decoration: none !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
}

.tm-search-result-item:last-child {
    border-bottom: none !important;
}

.tm-search-result-item:hover,
.tm-search-result-item.is-active {
    background: #f7f8f9 !important;
}

/* Ảnh thu nhỏ sản phẩm */
.tm-search-item-thumb {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #ffffff;
    border: 1px solid #edeeef;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
    box-sizing: border-box;
}

.tm-search-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Thông tin sản phẩm */
.tm-search-item-info {
    flex: 1;
    min-width: 0;
}

.tm-search-item-title {
    color: #151515;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

mark.tm-highlight {
    background: transparent;
    color: #ff5500;
    font-weight: 700;
    padding: 0;
}

.tm-search-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.tm-search-item-cat {
    color: #656667;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.tm-search-item-badge {
    background: rgba(255, 85, 0, 0.08);
    color: #e04b00;
    border: 1px solid rgba(255, 85, 0, 0.3);
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    padding: 1px 6px;
    line-height: 1.3;
}

.tm-search-item-arrow {
    color: #8a8b8c;
    font-size: 16px;
    transition: color 0.15s, transform 0.15s;
}

.tm-search-result-item:hover .tm-search-item-arrow,
.tm-search-result-item.is-active .tm-search-item-arrow {
    color: #ff5500;
    transform: translateX(3px);
}

/* Footer xem tất cả */
.tm-search-dropdown-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 11px 16px !important;
    background: #f7f8f9 !important;
    border-top: 1px solid #edeeef !important;
    color: #ff5500 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
}

.tm-search-dropdown-footer:hover {
    background: #f0f1f2 !important;
    color: #e04b00 !important;
}

/* Trạng thái không có kết quả */
.tm-search-empty-state {
    padding: 24px 20px;
    text-align: center;
}

.tm-search-empty-icon {
    font-size: 28px;
    margin-bottom: 8px;
    color: #8a8b8c;
}

.tm-search-empty-title {
    color: #151515;
    font-size: 13.5px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tm-search-empty-desc {
    color: #656667;
    font-size: 12px;
    margin-bottom: 12px;
}

.tm-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.tm-chip {
    background: #f7f8f9 !important;
    border: 1px solid #e5e6e7 !important;
    color: #151515 !important;
    font-size: 11.5px !important;
    border-radius: 14px !important;
    padding: 4px 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.tm-chip:hover {
    border-color: #ff5500 !important;
    color: #ff5500 !important;
    background: rgba(255, 85, 0, 0.06) !important;
}

/* Standalone Shortcode Search Hero [hk_motion_search] */
.tm-search-standalone {
    max-width: 680px;
    margin: 30px auto;
    padding: 0 15px;
}

.tm-search-standalone .tm-search-box {
    width: 100% !important;
    height: 48px !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    border: 2px solid #e5e6e7 !important;
    padding: 0 46px 0 44px !important;
}

.tm-search-standalone .tm-search-box:focus-within {
    border-color: #ff5500 !important;
    box-shadow: 0 0 0 4px rgba(255, 85, 0, 0.15) !important;
}

.tm-search-standalone .tm-search-input {
    font-size: 15px !important;
}

.tm-search-standalone .tm-search-lens {
    left: 16px;
}

.tm-search-standalone .tm-search-dropdown {
    width: 100% !important;
    max-width: 100% !important;
}

/* ==============================================================================
 * Mobile Sub-Header Search & Mobile Navigation (store.tmotor.com Aerospace Style)
 * ============================================================================== */
.tm-mobile-sub-header-search {
    display: none;
}

@media (max-width: 921px) {
    /* Hide desktop nav search on mobile */
    .tm-desktop-search {
        display: none !important;
    }

    /* Dedicated Mobile Sub-Header Search Row */
    .tm-mobile-sub-header-search {
        display: block !important;
        background: #ffffff !important;
        padding: 8px 16px 10px !important;
        border-bottom: 1px solid #f4f5f6 !important;
        position: relative !important;
        z-index: 90 !important;
    }

    .tm-mobile-sub-header-search .tm-mobile-search-inner {
        max-width: 600px;
        margin: 0 auto;
        position: relative;
    }

    .tm-mobile-sub-header-search .tm-search-wrap {
        width: 100% !important;
        position: relative !important;
    }

    .tm-mobile-sub-header-search .tm-search-box {
        width: 100% !important;
        max-width: 100% !important;
        height: 38px !important;
        border-radius: 19px !important;
        background: #f7f8f9 !important;
        border: 1px solid #e5e6e7 !important;
        padding: 0 36px 0 36px !important;
        box-sizing: border-box !important;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
        transition: all 0.2s ease !important;
    }

    .tm-mobile-sub-header-search .tm-search-box:hover {
        border-color: #cbcccd !important;
        background: #ffffff !important;
    }

    .tm-mobile-sub-header-search .tm-search-box:focus-within {
        width: 100% !important;
        border-color: var(--tm-orange) !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 2px rgba(255, 119, 0, 0.15) !important;
    }

    .tm-mobile-sub-header-search .tm-search-lens {
        left: 12px !important;
        color: #656667 !important;
    }

    .tm-mobile-sub-header-search .tm-search-lens svg {
        width: 14px !important;
        height: 14px !important;
    }

    .tm-mobile-sub-header-search .tm-search-input {
        color: #151515 !important;
        font-size: 13px !important;
    }

    .tm-mobile-sub-header-search .tm-search-input::placeholder {
        color: #8a8b8c !important;
        font-size: 12.5px !important;
    }

    .tm-mobile-sub-header-search .tm-search-dropdown {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        border: 1px solid #e5e6e7 !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15) !important;
        z-index: 999999 !important;
    }

    /* Mobile Header Bar & Hamburger Button Styling (Align toggle menu to the right) */
    #ast-mobile-header,
    #ast-mobile-header .ast-mobile-header-wrap,
    #ast-mobile-header .ast-main-header-wrap {
        position: relative !important;
        background: #ffffff !important;
        width: 100% !important;
    }

    #ast-mobile-header .ast-primary-header-bar {
        background: #ffffff !important;
        min-height: 56px !important;
        height: 56px !important;
        width: 100% !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        border-bottom: 1px solid #f4f5f6 !important;
    }

    #ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        grid-template-columns: none !important;
    }

    #ast-mobile-header .site-header-primary-section-left {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    #ast-mobile-header .site-header-primary-section-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    #ast-mobile-header .site-header-primary-section-right .ast-builder-layout-element,
    #ast-mobile-header .site-header-primary-section-right .ast-button-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    #ast-mobile-header .ast-mobile-menu-trigger-minimal {
        color: #151515 !important;
        padding: 6px 10px !important;
        border-radius: 6px !important;
        background: #f7f8f9 !important;
        border: 1px solid #e5e6e7 !important;
        transition: all 0.2s ease !important;
    }

    #ast-mobile-header .ast-mobile-menu-trigger-minimal:hover {
        background: rgba(255, 119, 0, 0.15) !important;
        border-color: var(--tm-orange) !important;
    }

    #ast-mobile-header .mobile-menu-toggle-icon .ast-mobile-svg {
        fill: #151515 !important;
        width: 18px !important;
        height: 18px !important;
    }

    /* Mobile Drawer Menu Container */
    .ast-mobile-header-wrap .ast-mobile-header-content,
    .ast-mobile-header-content {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        border-top: 1px solid #f4f5f6 !important;
        border-bottom: 3px solid var(--tm-orange) !important;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15) !important;
        padding: 10px 16px 24px !important;
        max-height: calc(100vh - 65px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        z-index: 99999 !important;
        box-sizing: border-box !important;
    }

    /* Reset all layout containers inside Mobile Drawer */
    .ast-mobile-header-content .ast-builder-menu-mobile,
    .ast-mobile-header-content .ast-main-header-bar-alignment,
    .ast-mobile-header-content .main-header-bar-navigation,
    .ast-mobile-header-content .site-navigation,
    .ast-mobile-header-content .main-navigation {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        flex: none !important;
    }

    /* Menu UL in Mobile Drawer: Vertical Column */
    .ast-header-break-point .ast-mobile-header-content .main-header-menu,
    .ast-mobile-header-content #ast-hf-mobile-menu {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        align-items: stretch !important;
    }

    /* Menu Item LI: Full Width, Clean Separator */
    .ast-header-break-point .ast-mobile-header-content .main-header-menu .menu-item,
    .ast-mobile-header-content #ast-hf-mobile-menu > .menu-item {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        line-height: normal !important;
        flex-shrink: 0 !important;
        border-bottom: 1px solid #f4f5f6 !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .ast-header-break-point .ast-mobile-header-content .main-header-menu .menu-item:last-child,
    .ast-mobile-header-content #ast-hf-mobile-menu > .menu-item:last-child {
        border-bottom: none !important;
    }

    /* Ẩn hoàn toàn Trang Chủ & Tất Cả Thiết Bị trên Menu Mobile theo yêu cầu */
    .tm-mobile-nav-home,
    .tm-mobile-nav-shop {
        display: none !important;
    }

    /* Parent menu item link */
    .ast-header-break-point .ast-mobile-header-content .main-header-menu a,
    .ast-header-break-point .ast-mobile-header-content .main-header-menu .menu-link {
        color: #151515 !important;
        font-size: 14.5px !important;
        font-weight: 600 !important;
        padding: 13px 50px 13px 8px !important;
        letter-spacing: 0.2px !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        text-decoration: none !important;
        transition: color 0.2s ease, background 0.2s ease !important;
    }

    .ast-header-break-point .ast-mobile-header-content .main-header-menu a:hover,
    .ast-header-break-point .ast-mobile-header-content .main-header-menu .menu-link:hover {
        color: var(--tm-orange) !important;
        background: rgba(255, 85, 0, 0.05) !important;
    }

    /* Hide duplicate arrow inside parent <a> */
    .ast-header-break-point .ast-mobile-header-content .menu-link .ast-header-navigation-arrow,
    .ast-header-break-point .ast-mobile-header-content .menu-link .dropdown-menu-toggle {
        display: none !important;
    }

    /* Dedicated Large Accordion Toggle Button (44x44px Touch Target) */
    .ast-header-break-point .ast-mobile-header-content .ast-menu-toggle {
        position: absolute !important;
        right: 0 !important;
        top: 4px !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f7f8f9 !important;
        border: 1px solid #e5e6e7 !important;
        border-radius: 6px !important;
        color: #656667 !important;
        cursor: pointer !important;
        z-index: 10 !important;
        padding: 0 !important;
        transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease !important;
    }

    .ast-header-break-point .ast-mobile-header-content .ast-menu-toggle:hover {
        background: rgba(255, 119, 0, 0.15) !important;
        border-color: var(--tm-orange) !important;
        color: var(--tm-orange) !important;
    }

    .ast-header-break-point .ast-mobile-header-content .ast-menu-toggle .ast-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .ast-header-break-point .ast-mobile-header-content .ast-menu-toggle svg {
        width: 14px !important;
        height: 14px !important;
        fill: currentColor !important;
    }

    /* Rotate toggle chevron when submenu is open */
    .ast-header-break-point .ast-mobile-header-content .ast-submenu-expanded > .ast-menu-toggle,
    .ast-header-break-point .ast-mobile-header-content .tm-accordion-open > .ast-menu-toggle {
        transform: rotate(180deg) !important;
        color: var(--tm-orange) !important;
        border-color: rgba(255, 119, 0, 0.4) !important;
        background: rgba(255, 119, 0, 0.12) !important;
    }

    /* Submenu Layout & Visuals (Hidden by default, shown when expanded) */
    .ast-header-break-point .ast-mobile-header-content .sub-menu {
        display: none !important;
        background-color: #f7f8f9 !important;
        border-left: 2px solid var(--tm-orange) !important;
        margin: 2px 0 12px 6px !important;
        padding: 4px 10px !important;
        border-radius: 6px !important;
        width: calc(100% - 6px) !important;
        box-sizing: border-box !important;
        list-style: none !important;
    }

    .ast-header-break-point .ast-mobile-header-content .ast-submenu-expanded > .sub-menu,
    .ast-header-break-point .ast-mobile-header-content .tm-accordion-open > .sub-menu {
        display: block !important;
    }

    .ast-header-break-point .ast-mobile-header-content .sub-menu .menu-item {
        border-bottom: 1px solid #f4f5f6 !important;
        width: 100% !important;
        display: block !important;
    }

    .ast-header-break-point .ast-mobile-header-content .sub-menu .menu-item:last-child {
        border-bottom: none !important;
    }

    .ast-header-break-point .ast-mobile-header-content .sub-menu a,
    .ast-header-break-point .ast-mobile-header-content .sub-menu .menu-link {
        color: #656667 !important;
        font-size: 13.5px !important;
        font-weight: 400 !important;
        padding: 10px 8px !important;
        display: block !important;
        border-bottom: none !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        transition: color 0.2s ease, padding 0.2s ease !important;
    }

    .ast-header-break-point .ast-mobile-header-content .sub-menu a:hover,
    .ast-header-break-point .ast-mobile-header-content .sub-menu .menu-link:hover {
        color: #151515 !important;
        padding-left: 14px !important;
    }

    /* "Xem tất cả" item inside submenu */
    .ast-header-break-point .ast-mobile-header-content .sub-menu .tm-sub-view-all a {
        color: var(--tm-orange) !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        padding: 11px 8px !important;
    }

    .ast-header-break-point .ast-mobile-header-content .sub-menu .tm-sub-view-all a:hover {
        color: #ff8833 !important;
        padding-left: 14px !important;
    }

    /* RFQ Action Button in Mobile Drawer */
    .tm-mobile-nav-rfq {
        border-bottom: none !important;
        margin-top: 14px !important;
        width: 100% !important;
    }

    .tm-mobile-rfq-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        background: linear-gradient(135deg, #ff5500 0%, #e64a00 100%) !important;
        color: #ffffff !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        padding: 12px 16px !important;
        border-radius: 6px !important;
        text-decoration: none !important;
        box-shadow: 0 4px 14px rgba(255, 85, 0, 0.35) !important;
        transition: all 0.2s ease !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .tm-mobile-rfq-btn:hover {
        background: linear-gradient(135deg, #ff661a 0%, #ff5500 100%) !important;
        box-shadow: 0 6px 18px rgba(255, 85, 0, 0.5) !important;
        color: #ffffff !important;
    }

    /* Hotline Support block in Mobile Drawer */
    .tm-mobile-nav-hotline {
        border-bottom: none !important;
        margin-top: 10px !important;
        width: 100% !important;
    }

    .tm-mobile-hotline-wrap {
        text-align: center !important;
        padding: 12px 0 4px !important;
        border-top: 1px solid #f4f5f6 !important;
    }

    .tm-hotline-label {
        font-size: 11.5px !important;
        color: #656667 !important;
        display: block !important;
        margin-bottom: 3px !important;
    }

    .tm-hotline-val {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: var(--tm-orange) !important;
        text-decoration: none !important;
    }
}

/* ==============================================================================
 * 16. Section home-card card-list phong cách T-Motor Official Store (store.tmotor.com)
 * ============================================================================== */

.home-card.card-list {
    margin: 50px auto 40px;
    position: relative;
}

.home-card.card-list .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Khối tiêu đề: Dòng 1 là Danh mục cha + View More; Dòng 2 là Các danh mục con */
.home-card-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    border-bottom: none !important;
    margin-bottom: 24px !important;
    padding: 0 !important;
    gap: 16px !important;
    width: 100% !important;
}

/* Dòng 1: Tên danh mục cha trải dài 100% + Nút View More bên phải */
.home-card-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    width: 100% !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 14px !important;
    margin: 0 !important;
}

.home-card-header-row .f36 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.25 !important;
}

.home-card-header-row .tm-section-heading {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.4px !important;
    line-height: 1.2 !important;
    display: inline-block !important;
}

.home-card-header-row .more2 {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.home-card-header-row .more2:hover {
    color: var(--tm-orange) !important;
    transform: translateX(2px) !important;
}

.home-card-header-row .more2 svg {
    stroke-width: 2.5;
}

/* Dòng 2: Thanh điều hướng các danh mục con (Subcategory Tabs) */
.home-card-nav-row {
    width: 100% !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

.home-card-title .card-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
}

.home-card-title .card-nav .card-nav-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    cursor: pointer !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    margin: 0 !important;
    user-select: none !important;
}

.home-card-title .card-nav .card-nav-item .card-nav-link {
    color: inherit !important;
    text-decoration: none !important;
    display: block !important;
}

.home-card-title .card-nav .card-nav-item:hover {
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    background-color: #f8fafc !important;
}

/* Tab active chuẩn T-Motor store (Ảnh 2: viền trên đậm, đổ bóng nhẹ) */
.home-card-title .card-nav .card-nav-item.active {
    color: #0f172a !important;
    font-weight: 600 !important;
    border: 1px solid #cbd5e1 !important;
    border-top: 2px solid #0f172a !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

/* Lưới hiển thị danh sách thẻ (Card List Grid) */
.home-card-con {
    position: relative;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
}

/* Reset margin/padding mặc định của theme (Astra: ul { margin-left: 3em }) để lưới sản phẩm
   thẳng hàng với .home-card-title */
.home-card.card-list .home-card-con > ul.card-list-con,
.entry-content .home-card .home-card-con > ul.card-list-con {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.home-card.card-list .home-card-con > ul.card-list-con > li.card-list-item {
    margin: 0 !important;
}

.card-list-con {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Hiệu ứng FadeIn khi chuyển tab */
@keyframes tmFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-list-con.animate__fadeIn {
    animation: tmFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Thẻ chung trong danh sách */
.card-list-item {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    padding-bottom: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.card-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 85, 0, 0.35);
}

/* 1. Thẻ Tiêu Điểm Lớn (.pic_auto) chiếm 2 cột */
.card-list-item.pic_auto {
    grid-column: span 2;
    padding-bottom: 0;
    min-height: 380px;
    background: #090a0f;
    border: 1px solid #1e293b;
}

.card-list-item.pic_auto .pic_auto_link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.card-list-item.pic_auto .pic_auto_picture {
    display: block;
    width: 100%;
    height: 100%;
}

.card-list-item.pic_auto .pic_auto_picture img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-list-item.pic_auto:hover .pic_auto_picture img {
    transform: scale(1.04);
}

/* Lớp phủ gradient và thông tin thẻ pic_auto */
.card-list-item.pic_auto .pic_auto_info {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    z-index: 2;
    pointer-events: none;
}

.card-list-item.pic_auto .pic_auto_sub {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #ff5500;
    background: rgba(15, 23, 42, 0.85);
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 85, 0, 0.3);
}

.card-list-item.pic_auto .pic_auto_heading {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin: 10px 0 0;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Nút Buy Now trên thẻ pic_auto chuẩn store.tmotor.com (Ảnh 2: Nút trắng chữ đen góc dưới phải) */
.card-list-item.pic_auto .buy_now {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    padding: 8px 24px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    letter-spacing: 0 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    display: inline-block;
}

.card-list-item.pic_auto:hover .buy_now,
.card-list-item.pic_auto .buy_now:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

/* 2. Thẻ Sản Phẩm Thông Thường (.card-list-item) */
.card-list-item .img-swiper {
    position: relative;
    width: 100%;
    padding-top: 80%;
    overflow: hidden;
    background-color: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.card-list-item .img-swiper a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-list-item .img-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.card-list-item:hover .img-swiper img {
    transform: scale(1.05);
}

/* Huy hiệu thẻ sản phẩm nằm cạnh tiêu đề chuẩn T-Motor store (Ảnh 2: NEW màu cam nổi bật) */
.badge-tag-inline {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--tm-orange);
    padding: 2px 7px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.badge-tag-inline.tag-new,
.badge-tag-inline.tag-aog247 {
    background-color: var(--tm-orange);
}

.badge-tag-inline.tag-hot {
    background-color: #e11d48;
}

.badge-tag-inline.tag-fine {
    background-color: #2563eb;
}

.badge-tag-inline.tag-faaeasa,
.badge-tag-inline.tag-certified {
    background-color: #059669;
}

/* Tiêu đề sản phẩm 2 dòng */
.card-list-item h4 {
    margin: 14px 14px 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.38;
}

.card-list-item h4 a {
    color: #1e293b;
    text-decoration: none;
    display: inline;
    transition: color 0.2s ease;
}

.card-list-item h4 a:hover {
    color: var(--tm-orange);
}

/* Hàng giá và nút Buy Now chuẩn T-Motor Store (Viền đen bo góc, nền trắng, không vỡ dòng) */
.card-list-item .price {
    padding: 0 14px !important;
    margin: 12px 0 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.card-list-item .price .price-val {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    white-space: normal !important;
}

.card-list-item .price .price-val .price,
.card-list-item .price .price-val .tm-rfq-price,
.card-list-item .price .price-val span {
    color: #0f172a !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    display: inline-block !important;
}

.card-list-item .price .buy-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    min-width: 76px !important;
    height: 32px !important;
    line-height: 1 !important;
    padding: 0 14px !important;
    margin: 0 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border: 1px solid #0f172a !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    vertical-align: middle !important;
}

.card-list-item:hover .price .buy-btn,
.card-list-item .price .buy-btn:hover {
    background-color: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

/* 3. Thẻ Xem Thêm Danh Mục (More Card) */
.card-list-item.more {
    grid-column-start: 1;
    grid-column-end: 3;
    text-align: center;
    padding: 14px;
    display: none !important;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
}

.card-list-item.more a {
    color: var(--tm-orange);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Responsive Cho Giao Diện Mobile & Tablet */
@media (max-width: 991px) {
    .home-card-header-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: baseline !important;
        padding-bottom: 10px !important;
        margin-bottom: 12px !important;
    }

    .home-card-header-row .tm-section-heading {
        font-size: 22px !important;
    }

    .home-card-header-row .more2 {
        font-size: 13px !important;
    }

    .home-card-title .card-nav {
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 6px !important;
        gap: 8px !important;
    }

    .home-card-title .card-nav::-webkit-scrollbar {
        display: none !important;
    }

    .home-card-title .card-nav .card-nav-item {
        padding: 6px 14px !important;
        font-size: 13px !important;
    }

    .card-list-con {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .card-list-item.pic_auto {
        grid-column: span 2;
        min-height: 260px;
    }

    .card-list-item.pic_auto .pic_auto_picture img {
        min-height: 260px;
    }

    .card-list-item.pic_auto .pic_auto_heading {
        font-size: 18px;
    }

    .card-list-item.pic_auto .buy_now {
        padding: 8px 16px;
        font-size: 12px;
        right: 16px;
        bottom: 16px;
    }

    .card-list-item.more {
        display: flex !important;
    }
}

@media (max-width: 576px) {
    .card-list-con {
        grid-template-columns: 1fr;
    }

    .card-list-item.pic_auto {
        grid-column: span 1;
        min-height: 220px;
    }

    .card-list-item.pic_auto .pic_auto_picture img {
        min-height: 220px;
    }

    .card-list-item.more {
        grid-column: span 1;
    }
}

/* ==============================================================================
 * 17. Intermediate Promotion Banner (.adv-banner) phong cách store.tmotor.com
 * ============================================================================== */

.adv-banner {
    padding: 30px 0 20px 0;
}

.adv-banner .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.adv-banner .adv-banner-link {
    display: block;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.adv-banner .adv-banner-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.adv-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.adv-banner:hover img {
    transform: scale(1.02);
}

.adv-banner-overlay {
    position: absolute;
    bottom: 30px;
    left: 35px;
    z-index: 2;
    color: #ffffff;
}

.adv-banner-sub {
    font-size: 12px;
    font-weight: 800;
    color: #ff5500;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 10px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adv-banner-heading {
    font-size: 26px;
    font-weight: 800;
    margin: 10px 0 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.adv-buy-now {
    position: static;
    display: inline-block;
}

/* ==============================================================================
 * 18. Chân trang hàng không chuyên nghiệp (.tm-footer) phong cách store.tmotor.com (tông sáng)
 * ============================================================================== */

/* Ẩn footer mặc định thô sơ của Astra */
.site-footer .site-below-footer-wrap,
.site-footer .site-primary-footer-wrap {
    display: none !important;
}

.site-footer {
    background-color: #ffffff !important;
    padding: 0 !important;
    border: none !important;
}

.tm-footer {
    background-color: #ffffff;
    color: #656667;
    font-size: 14px;
    line-height: 1.5;
}

.tm-footer .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 1. Thanh cam kết dịch vụ (Service Guarantee Bar) */
.tm-footer-promise {
    border-top: 1px solid #f4f5f6;
    border-bottom: 1px solid #f4f5f6;
    padding: 48px 0;
}

.tm-promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tm-promise-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tm-promise-icon {
    display: flex;
    color: #666666;
    flex-shrink: 0;
}

.tm-promise-text strong {
    display: block;
    color: #151515;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tm-promise-text p {
    margin: 0;
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

/* 2. Khối liên kết chính (Main Footer Navigation) */
.tm-footer-main {
    border-bottom: 1px solid #f4f5f6;
    padding: 60px 0;
}

.tm-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
    gap: 35px;
}

.tm-footer .tm-footer-title {
    font-size: 14px;
    font-weight: 600;
    color: #151515;
    margin: 0 0 24px;
    padding: 0;
}

.tm-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tm-footer-links li {
    margin: 0 0 16px;
}

.tm-footer-links li a {
    color: #656667;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.tm-footer-links li a:hover {
    color: var(--tm-orange);
}

/* Cột thông tin liên hệ & bản tin */
.tm-footer-contact-lead {
    color: #656667;
    font-size: 14px;
    margin: 0 0 16px;
}

.tm-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.tm-contact-icon {
    display: flex;
    color: #656667;
}

.tm-contact-label {
    display: block;
    font-size: 12px;
    color: #8a8b8c;
}

.tm-contact-item strong a {
    color: #151515;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.tm-contact-item strong a:hover {
    color: var(--tm-orange);
}

.tm-footer-newsletter {
    margin-top: 20px;
}

.tm-nl-title {
    display: block;
    font-size: 14px;
    color: #656667;
    margin-bottom: 10px;
}

.tm-nl-form {
    display: flex;
    gap: 0;
    max-width: 320px;
}

.tm-nl-input {
    flex-grow: 1;
    min-width: 0;
    background-color: #ffffff !important;
    border: 1px solid #cbcccd !important;
    border-radius: 0 !important;
    color: #151515 !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    outline: none;
}

.tm-nl-input:focus {
    border-color: var(--tm-orange) !important;
}

.tm-nl-btn {
    background-color: #cbcccd !important;
    color: #ffffff !important;
    border: 1px solid #cbcccd !important;
    border-radius: 0 !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.tm-nl-btn:hover {
    background-color: var(--tm-orange) !important;
    border-color: var(--tm-orange) !important;
}

/* 3. Hàng chứng chỉ xuất xưởng (căn giữa như hàng logo thanh toán của store.tmotor.com) */
.tm-footer-certs {
    border-bottom: 1px solid #f4f5f6;
    padding: 20px 0;
}

.tm-footer .tm-copyright-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tm-footer .tm-badge-cert {
    display: inline-block;
    background: #ffffff;
    color: #656667;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 0;
    border: 1px solid #e5e6e7;
    letter-spacing: 0.5px;
}

/* 4. Thanh bản quyền */
.tm-footer-copyright {
    padding: 16px 0;
    font-size: 12px;
    color: #656667;
    text-align: center;
}

.tm-footer-copyright strong {
    color: var(--tm-orange);
}

/* Responsive Footer */
@media (max-width: 991px) {
    .tm-footer-promise {
        padding: 32px 0;
    }

    .tm-promise-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tm-footer-main {
        padding: 40px 0;
    }

    .tm-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 576px) {
    .tm-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ==============================================================================
 * 18. WooCommerce Shop & Category Archive Cards (Chuẩn Card-List-Item store.tmotor.com)
 * ============================================================================== */

/* Khung lưới thẻ sản phẩm trên Archive / Category / Shop */
.woocommerce ul.products,
.woocommerce-page ul.products {
    margin: 0 -8px 24px !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    text-align: left !important;
    margin-bottom: 24px !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(255, 85, 0, 0.35) !important;
}

/* Khung hình ảnh thẻ sản phẩm chuẩn tràn viền cạnh bo tròn trên */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
    position: relative !important;
    width: 100% !important;
    padding-top: 80% !important;
    overflow: hidden !important;
    background-color: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.woocommerce ul.products li.product .tm-product-img-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product .tm-product-img-wrapper img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.35s ease, opacity 0.4s ease !important;
    display: block !important;
}

.woocommerce ul.products li.product:hover .tm-product-img-wrapper img:first-child {
    transform: scale(1.05) !important;
}

.woocommerce ul.products li.product:hover .tm-product-img-wrapper .tm-hover-image {
    transform: scale(1.05) !important;
}

/* Ẩn nút icon giỏ hàng nổi tròn của Astra trên thẻ sản phẩm */
.woocommerce ul.products li.product .ast-on-card-button {
    display: none !important;
}

/* Khung nội dung tóm tắt sản phẩm */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
    padding: 14px 14px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

/* Ẩn dòng danh mục thô mặc định phía trên tiêu đề */
.woocommerce ul.products li.product .ast-woo-product-category {
    display: none !important;
}

/* Tiêu đề sản phẩm trong shop loop */
.woocommerce ul.products li.product .ast-loop-product__link {
    text-decoration: none !important;
    display: block !important;
    margin: 0 0 14px 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.38 !important;
    color: #1e293b !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: var(--tm-orange) !important;
}

/* Huy hiệu kỹ thuật (FINE, NEW, HOT, FAA/EASA...) hiển thị inline cạnh tiêu đề */
.woocommerce ul.products li.product .woocommerce-loop-product__title .badge-tag-inline {
    display: inline-block !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background-color: var(--tm-orange) !important;
    padding: 2px 7px !important;
    border-radius: 3px !important;
    margin-right: 6px !important;
    vertical-align: 1px !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    letter-spacing: 0.3px !important;
    flex-shrink: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title .badge-tag-inline.tag-new,
.woocommerce ul.products li.product .woocommerce-loop-product__title .badge-tag-inline.tag-aog247 {
    background-color: var(--tm-orange) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title .badge-tag-inline.tag-hot {
    background-color: #e11d48 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title .badge-tag-inline.tag-fine {
    background-color: #2563eb !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title .badge-tag-inline.tag-faaeasa,
.woocommerce ul.products li.product .woocommerce-loop-product__title .badge-tag-inline.tag-certified {
    background-color: #059669 !important;
}

/* Hàng giá & Nút Buy Now chuẩn T-Motor Store (Căn đáy, 1 hàng ngang, không vỡ) */
.woocommerce ul.products li.product .tm-loop-price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product .tm-loop-price-row .price {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
}

.woocommerce ul.products li.product .tm-loop-price-row .price .tm-rfq-price,
.woocommerce ul.products li.product .tm-loop-price-row .price .woocommerce-Price-amount,
.woocommerce ul.products li.product .tm-loop-price-row .price span {
    color: #0f172a !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    display: inline-block !important;
}

.woocommerce ul.products li.product .tm-loop-price-row .buy-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    min-width: 76px !important;
    height: 32px !important;
    line-height: 1 !important;
    padding: 0 14px !important;
    margin: 0 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border: 1px solid #0f172a !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    vertical-align: middle !important;
}

.woocommerce ul.products li.product:hover .tm-loop-price-row .buy-btn,
.woocommerce ul.products li.product .tm-loop-price-row .buy-btn:hover {
    background-color: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

/* Fallback buttons if any theme element renders outside wrapper */
.woocommerce ul.products li.product .astra-shop-summary-wrap > .price {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap > .button {
    border-radius: 4px !important;
    border: 1px solid #0f172a !important;
    background: #fff !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    padding: 0 14px !important;
    height: 32px !important;
    line-height: 30px !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap > .button:hover {
    background: #0f172a !important;
    color: #fff !important;
}

/* ==========================================================================
   Giỏ báo giá RFQ (v2.7.0)
   ========================================================================== */
.tm-quote-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: 9px;
    background: #ff5500;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.tm-quote-count[hidden] {
    display: none;
}

.tm-rfq-note {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

/* Honeypot chống spam trong form gửi yêu cầu báo giá */
.hk-hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ==========================================================================
   Thanh lọc sản phẩm & giá RFQ trang chi tiết (v2.8.0)
   ========================================================================== */
.tm-shop-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
}

.tm-shop-filter select {
    min-width: 180px;
    max-width: 100%;
    padding: 8px 32px 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
    font-size: 0.9rem;
}

.tm-shop-filters-reset {
    font-size: 0.85rem;
    color: #ff5500;
    text-decoration: underline;
}

@media (max-width: 544px) {
    .tm-shop-filter,
    .tm-shop-filter select {
        width: 100%;
    }
}

.tm-rfq-price-single {
    color: #0284c7;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ==============================================================================
 * 19. Slider sản phẩm đề xuất [hk_motion_recommendations] (Selected Recommendations - store.tmotor.com)
 * ============================================================================== */

.home-card.tm-recommend {
    margin: 50px auto 40px;
}

.home-card.tm-recommend .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.tm-recommend-swiper {
    overflow: hidden;
}

.tm-recommend-swiper .swiper-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.tm-recommend-card {
    position: relative;
    aspect-ratio: 4 / 5;
    height: auto;
    overflow: hidden;
    background: #0f172a;
    list-style: none !important;
    /* Không ghi đè margin-right: Swiper dùng nó cho spaceBetween */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.tm-recommend-link {
    position: absolute;
    inset: 0;
    display: block;
}

.tm-recommend-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tm-recommend-card:hover .tm-recommend-link img {
    transform: scale(1.04);
}

/* Lớp phủ tối ở dưới để giá chữ trắng đọc được trên mọi ảnh */
.tm-recommend-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 11, 14, 0) 0%, rgba(9, 11, 14, 0) 62%, rgba(9, 11, 14, 0.75) 100%);
    pointer-events: none;
}

.tm-recommend-txt {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 24px 24px 0;
    color: #151515;
    pointer-events: none;
}

.tm-recommend-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 3px 12px;
    background: var(--tm-orange);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.tm-recommend-txt .tm-recommend-title {
    margin: 0 !important;
    color: #151515 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tm-recommend-txt .tm-recommend-sub {
    margin: 8px 0 0 !important;
    color: #3f4145 !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tm-recommend-price {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 24px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tm-recommend-price .price-val,
.tm-recommend-price .price-val .price,
.tm-recommend-price .price-val .tm-rfq-price,
.tm-recommend-price .price-val .amount {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: nowrap;
}

.tm-recommend-price .price-val del,
.tm-recommend-price .price-val del .amount {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    font-weight: 300 !important;
}

.tm-recommend-price .buy-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    height: 36px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #ffffff !important;
    border-radius: 0 !important;
    box-shadow: 0 1px 4px rgba(1, 2, 3, 0.05) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.tm-recommend-price .buy-btn:hover {
    background: var(--tm-orange) !important;
    border-color: var(--tm-orange) !important;
    color: #ffffff !important;
}

/* Link "Xem danh sách báo giá" WooCommerce chèn thêm sau khi thêm AJAX: ẩn để giữ bố cục card */
.tm-recommend-price .added_to_cart {
    display: none !important;
}

@media (max-width: 991px) {
    .home-card.tm-recommend {
        margin: 36px auto 28px;
    }

    .tm-recommend-txt {
        padding: 20px 20px 0;
    }

    .tm-recommend-txt .tm-recommend-title {
        font-size: 20px !important;
    }

    .tm-recommend-txt .tm-recommend-sub {
        font-size: 14px !important;
    }

    .tm-recommend-price {
        padding: 0 20px 20px;
    }
}
