/**
 * Scoped Modern Category CSS 2026
 * Website: Mực In Mạnh Tài (mucinmanhtai.com)
 * Strictly scoped to .mt-cat-page-container and .mt-cat-*
 */

/* ==========================================================================
   1. GLOBAL CONTAINER & LAYOUT
   ========================================================================== */
.mt-cat-page-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px 24px;
    box-sizing: border-box;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    background: transparent;
}

/* ==============================================================
   BREADCRUMB ĐIỀU HƯỚNG CHUẨN MỰC IN MẠNH TÀI 2026
   Đồng bộ 100% với Trang Chi Tiết Sản Phẩm (Single Product)
   ============================================================== */
.mt-cat-breadcrumb-wrap {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.mt-cat-breadcrumb-wrap .namlbn-breadcrumb,
.mt-cat-page-container .namlbn-breadcrumb {
    font-family: var(--mt-font-main, 'Be Vietnam Pro', sans-serif) !important;
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    background: transparent !important;
}

.mt-cat-breadcrumb-wrap .namlbn-breadcrumb p,
.mt-cat-breadcrumb-wrap .namlbn-breadcrumb nav,
.mt-cat-page-container .namlbn-breadcrumb p,
.mt-cat-page-container .namlbn-breadcrumb nav {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    line-height: 1.4 !important;
}

.mt-cat-breadcrumb-wrap .namlbn-breadcrumb a,
.mt-cat-page-container .namlbn-breadcrumb a {
    color: #64748b !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    transition: color 0.2s ease !important;
}

.mt-cat-breadcrumb-wrap .namlbn-breadcrumb a:hover,
.mt-cat-page-container .namlbn-breadcrumb a:hover {
    color: #ec1d27 !important;
}

.mt-cat-breadcrumb-wrap .namlbn-breadcrumb a::after,
.mt-cat-page-container .namlbn-breadcrumb a::after,
.mt-cat-breadcrumb-wrap #breadcrumbs a::after {
    display: none !important;
}

/* Icon Ngôi Nhà (Home SVG) trước link Trang chủ */
.mt-cat-breadcrumb-wrap .namlbn-breadcrumb a:first-of-type,
.mt-cat-page-container .namlbn-breadcrumb a:first-of-type {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}
.mt-cat-breadcrumb-wrap .namlbn-breadcrumb a:first-of-type::before,
.mt-cat-page-container .namlbn-breadcrumb a:first-of-type::before {
    content: '' !important;
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    background-color: currentColor !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") no-repeat center / contain !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") no-repeat center / contain !important;
    vertical-align: -1px !important;
    flex-shrink: 0 !important;
}

/* Dấu phân cách Chevron '›' mảnh mai hiện đại */
.mt-cat-breadcrumb-wrap .namlbn-breadcrumb .separator,
.mt-cat-page-container .namlbn-breadcrumb .separator {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 6px !important;
    color: #94a3b8 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    user-select: none !important;
}

.mt-cat-breadcrumb-wrap .namlbn-breadcrumb .last,
.mt-cat-breadcrumb-wrap .namlbn-breadcrumb span.last,
.mt-cat-page-container .namlbn-breadcrumb .last,
.mt-cat-page-container .namlbn-breadcrumb span.last {
    color: #1e293b !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 480px !important;
}

/* ==========================================================================
   2. CATEGORY HERO BOX (H1 & SHORT INTRO)
   ========================================================================== */
.mt-cat-hero-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.mt-cat-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.mt-cat-h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #253989;
    line-height: 1.3;
}
.mt-cat-count-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}
.mt-cat-short-intro p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: #64748b;
}

/* ==========================================================================
   3. SUBCATEGORY PILLS NAVIGATION (1-TOUCH)
   ========================================================================== */
/* ==========================================================================
   3. VISUAL CATEGORY CARDS (1-ROW SLIDING CONVEYOR 2026)
   ========================================================================== */
.mt-cat-cards-wrapper {
    margin-bottom: 12px;
    position: relative;
    padding: 0;
}
.mt-cat-cards-track,
.mt-cat-cards-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px 6px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-overflow-scrolling: touch;
}
.mt-cat-cards-track::-webkit-scrollbar,
.mt-cat-cards-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.mt-cat-card-item {
    flex: 0 0 120px;
    width: 120px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 8px 12px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.mt-cat-card-item:hover {
    background: #ffffff;
    border-color: #ec1d27;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(236, 29, 39, 0.12);
}
.mt-cat-card-item.is-active {
    background: #f8fafc;
    border-color: #253989;
    box-shadow: 0 4px 14px rgba(37, 57, 137, 0.16);
}
.mt-cat-card-item.is-active .mt-cat-card-title {
    color: #253989;
    font-weight: 700;
}
.mt-cat-card-parent {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.mt-cat-card-parent:hover {
    border-color: #253989;
}
.mt-cat-card-parent:hover .mt-cat-card-title {
    color: #253989;
}
.mt-cat-card-thumb {
    width: 54px;
    height: 54px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}
.mt-cat-card-item:hover .mt-cat-card-thumb {
    background: #ffffff;
    border-color: #fee2e2;
}
.mt-cat-card-img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.mt-cat-card-item:hover .mt-cat-card-img {
    transform: scale(1.08);
}
.mt-cat-card-icon {
    font-size: 20px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mt-cat-card-title {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.mt-cat-card-item:hover .mt-cat-card-title {
    color: #ec1d27;
}

/* Slider Navigation Buttons */
.mt-cat-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #253989;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.mt-cat-nav-btn:hover {
    background: #253989;
    color: #ffffff;
    border-color: #253989;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(37, 57, 137, 0.3);
}
.mt-cat-nav-btn.is-disabled {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.9);
}
.mt-cat-nav-prev {
    left: -14px;
}
.mt-cat-nav-next {
    right: -14px;
}

/* Mobile & Tablet */
@media (max-width: 991px) {
    .mt-cat-nav-btn {
        display: none; /* Touch swipe on mobile/tablet */
    }
    .mt-cat-card-item {
        flex: 0 0 108px;
        width: 108px;
        min-width: 108px;
        padding: 12px 6px 10px;
    }
    .mt-cat-card-thumb {
        width: 48px;
        height: 48px;
    }
    .mt-cat-card-img {
        max-width: 40px;
        max-height: 40px;
    }
    .mt-cat-card-title {
        font-size: 11.5px;
    }
}

/* Legacy Sub-pills (Fallback support) */
.mt-cat-subpills-track {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    -webkit-overflow-scrolling: touch;
}
.mt-subpill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    color: #253989;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.mt-subpill-item:hover {
    border-color: #ec1d27;
    color: #ec1d27;
}
.mt-subpill-item.is-active {
    background: #253989;
    border-color: #253989;
    color: #ffffff;
}
.mt-subpill-img {
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================================================
   4. TWO-COLUMN LAYOUT (SIDEBAR + MAIN CONTENT)
   ========================================================================== */
.mt-cat-main-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Sidebar (Desktop 270px) */
.mt-cat-sidebar {
    width: 270px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}
.mt-filter-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.mt-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 14px;
}
.mt-filter-title {
    font-size: 15px;
    font-weight: 700;
    color: #253989;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mt-filter-reset-btn {
    background: none;
    border: none;
    color: #ec1d27;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}
.mt-filter-reset-btn:hover {
    background: #fee2e2;
}

.mt-filter-group {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.mt-filter-group-title {
    margin: 0 0 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.mt-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mt-filter-checkbox-item,
.mt-filter-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}
.mt-filter-checkbox-item:hover,
.mt-filter-radio-item:hover {
    color: #253989;
}
.mt-filter-checkbox-item input,
.mt-filter-radio-item input {
    accent-color: #253989;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.mt-filter-trust-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    border: 1px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: #475569;
}
.mt-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Main Content Area */
.mt-cat-content {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   5. TOOLBAR (SORTER & COUNT)
   ========================================================================== */
.mt-cat-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}
.mt-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mt-mobile-filter-trigger {
    display: none;
    align-items: center;
    gap: 6px;
    background: #253989;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.mt-toolbar-count {
    font-size: 13px;
    color: #64748b;
}
.mt-toolbar-count strong,
.mt-toolbar-count span {
    color: #0f172a;
    font-weight: 700;
}
.mt-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mt-sort-label {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}
.mt-sort-pills {
    display: flex;
    gap: 6px;
}
.mt-sort-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}
.mt-sort-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.mt-sort-pill.is-active {
    background: #ec1d27;
    border-color: #ec1d27;
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================================================
   6. RESPONSIVE PRODUCT GRID & CARD DESIGN (1:1)
   ========================================================================== */
.mt-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Master Product Card 2026 (Synchronized with Homepage Master Card) */
.mt-cat-card,
.mt-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    min-width: 0 !important;
    width: 100% !important;
}
.mt-cat-card:hover,
.mt-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 24px -4px rgba(37, 57, 137, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
}

/* Khung ảnh chuẩn 1:1 liền mạch, thoáng đãng */
.mt-card-thumb-link {
    display: block;
    text-decoration: none;
    position: relative;
}
.mt-card-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
    overflow: hidden;
    border: none;
}
.mt-card-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    will-change: transform;
}
.mt-cat-card:hover .mt-card-img,
.mt-card:hover .mt-card-img {
    transform: scale(1.05);
}

/* Nhãn Sale nằm thả nổi Absolute trên góc ảnh */
.mt-badge-sale {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    background: #ec1d27;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(236, 29, 39, 0.35);
    pointer-events: none;
}

/* Nội dung Card Body */
.mt-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-top: 10px;
}
.mt-card-title {
    margin: 0 0 6px 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    min-height: 36px;
}
.mt-card-title a {
    color: #0f172a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.mt-card-title a:hover {
    color: #ec1d27;
}

/* Dải Pills tính năng nổi bật chuẩn 2026 */
.mt-card-specs,
.mt-card-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 4px 0 8px 0;
    min-height: 22px;
}
.mt-spec-pill,
.mt-spec-chip {
    display: inline-flex;
    align-items: center;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #334155;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 2.5px 7px;
    border-radius: 5px;
    line-height: 1.3;
    white-space: nowrap;
}

/* Khối Giá & Social Proof 2 Tầng Cố Định Chuẩn Shopee / TGDĐ 2026 */
.mt-card-pricing-block {
    margin-top: auto;
    padding-top: 8px;
    margin-bottom: 10px;
    border-top: 1px dashed #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Tầng 1: Dòng Giá Cố Định */
.mt-card-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 20px;
    line-height: 1.2;
    min-width: 0;
}
.mt-price-main, 
.mt-price-main .woocommerce-Price-amount {
    font-size: 15.5px;
    font-weight: 700;
    color: #ec1d27;
    letter-spacing: -0.2px;
    line-height: 1;
    white-space: nowrap;
}
/* Khi có khuyến mãi: Giá khuyến mãi đổi sang màu xanh Navy thương hiệu #253989 */
.mt-price-main.mt-price-sale, 
.mt-price-main.mt-price-sale *,
.mt-price-main.mt-price-sale .woocommerce-Price-amount {
    color: #253989 !important;
}
/* Giá gốc (như 5,200,000₫): Màu đỏ #ec1d27 gạch ngang */
.mt-price-regular, 
.mt-price-regular *,
.mt-price-regular .woocommerce-Price-amount {
    font-size: 11.5px;
    font-weight: 600;
    color: #ec1d27 !important;
    text-decoration: line-through !important;
    white-space: nowrap;
}
.mt-price-contact {
    font-size: 13.5px;
    font-weight: 600;
    color: #253989;
    line-height: 1.2;
}

/* Tầng 2: Thẻ Social Proof (⭐ 5.0 • Đã bán 285 • ● Còn hàng) */
.mt-card-social-proof {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11.5px;
    line-height: 1.2;
    white-space: nowrap;
    min-height: 16px;
    margin-left: 0 !important;
    min-width: 0;
    overflow: hidden;
}
.mt-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.mt-star-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    vertical-align: -1px;
}
.mt-rating-val {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
}
.mt-social-dot {
    color: #94a3b8;
    font-size: 10px;
    line-height: 1;
}
.mt-sold-val {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: -0.1px;
}

/* Vi điểm trạng thái kho hàng chuẩn WooCommerce & Schema InStock */
.mt-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
}
.mt-stock-status.is-in-stock,
.mt-stock-status.in-stock {
    color: #047857 !important; 
    font-weight: 600 !important;
}
.mt-stock-status.is-in-stock .mt-stock-dot,
.mt-stock-status.in-stock .mt-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #047857 !important; 
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
    display: inline-block;
    flex-shrink: 0;
}
.mt-stock-status.is-out-stock,
.mt-stock-status.out-stock {
    color: #64748b !important; 
    font-weight: 600 !important;
}
.mt-stock-status.is-out-stock .mt-stock-dot,
.mt-stock-status.out-stock .mt-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #64748b !important; 
    display: inline-block;
    flex-shrink: 0;
}

/* Cặp Nút CTA Hành Động 1-Chạm (Mua Ngay 75% + Giỏ Hàng 25%) */
.mt-card-cta-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.mt-btn-cta,
.mt-btn-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ec1d27;
    color: #ffffff !important;
    border: 1px solid #ec1d27;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
    white-space: nowrap;
    box-sizing: border-box;
}
.mt-btn-cta:hover,
.mt-btn-primary:hover {
    background: #253989;
    border-color: #253989;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(37, 57, 137, 0.25);
    transform: translateY(-1px);
}
.mt-btn-cart {
    width: 33px;
    height: 33px;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #eff6ff !important;
    color: #253989 !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-sizing: border-box;
}
.mt-btn-cart:hover {
    background: #253989 !important;
    color: #ffffff !important;
    border-color: #253989 !important;
    box-shadow: 0 4px 8px rgba(37, 57, 137, 0.25);
    transform: translateY(-1px);
}
.mt-btn-cart.loading {
    opacity: 0.6;
}
.mt-btn-cart.added::after {
    display: none !important;
}

/* Empty State */
.mt-cat-empty {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}
.mt-cat-empty-icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 12px;
}
.mt-cat-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.mt-cat-empty-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}
.mt-cat-empty-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #253989;
    color: #ffffff;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

/* ==========================================================================
   7. PAGINATION (PREMIUM MODERN PILLS 2026 - ZERO WOOCOMMERCE OVERRIDE BLOAT)
   ========================================================================== */
.mt-cat-pagination-wrap,
.woocommerce .mt-cat-page-container nav.woocommerce-pagination,
.woocommerce-page .mt-cat-page-container nav.woocommerce-pagination,
nav.woocommerce-pagination {
    margin: 18px 0 12px 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    clear: both !important;
}

/* Triệt tiêu 100% viền bao d3ced2 của WooCommerce core */
.woocommerce .mt-cat-page-container nav.woocommerce-pagination ul,
.woocommerce-page .mt-cat-page-container nav.woocommerce-pagination ul,
.mt-cat-pagination-wrap ul.page-numbers {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-right: none !important;
    background: transparent !important;
    list-style: none !important;
    white-space: normal !important;
    clear: both !important;
}

/* Triệt tiêu float: left và viền chia cột li của WooCommerce */
.woocommerce .mt-cat-page-container nav.woocommerce-pagination ul li,
.woocommerce-page .mt-cat-page-container nav.woocommerce-pagination ul li,
.mt-cat-pagination-wrap ul.page-numbers li {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-right: none !important;
    background: transparent !important;
    overflow: visible !important;
}

/* Tạo hình Thẻ Pill Hiện Đại 2026 cho từng số trang */
.woocommerce .mt-cat-page-container nav.woocommerce-pagination ul > li > a,
.woocommerce .mt-cat-page-container nav.woocommerce-pagination ul > li > span,
.woocommerce-page .mt-cat-page-container nav.woocommerce-pagination ul > li > a,
.woocommerce-page .mt-cat-page-container nav.woocommerce-pagination ul > li > span,
.mt-cat-pagination-wrap ul.page-numbers > li > a,
.mt-cat-pagination-wrap ul.page-numbers > li > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    cursor: pointer;
}

/* Triệt tiêu 100% border/background của text lồng bên trong nút Trước/Sau */
.mt-cat-pagination-wrap .mt-pag-text,
.woocommerce .mt-cat-page-container nav.woocommerce-pagination .mt-pag-text,
.woocommerce-page .mt-cat-page-container nav.woocommerce-pagination .mt-pag-text {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    height: auto !important;
    line-height: inherit !important;
    display: inline !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    border-radius: 0 !important;
}

/* Hover: Hiệu ứng nhấc nhẹ và viền Xanh Navy Mạnh Tài */
.woocommerce .mt-cat-page-container nav.woocommerce-pagination ul li a:hover,
.woocommerce .mt-cat-page-container nav.woocommerce-pagination ul li a:focus,
.woocommerce-page .mt-cat-page-container nav.woocommerce-pagination ul li a:hover,
.woocommerce-page .mt-cat-page-container nav.woocommerce-pagination ul li a:focus,
.mt-cat-pagination-wrap ul.page-numbers li a:hover {
    background: #f8fafc !important;
    border-color: #253989 !important;
    color: #253989 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(37, 57, 137, 0.12) !important;
}

/* Trang hiện tại (Active): Đỏ Mạnh Tài #ec1d27 với vầng hào quang nhẹ */
.woocommerce .mt-cat-page-container nav.woocommerce-pagination ul li span.current,
.woocommerce-page .mt-cat-page-container nav.woocommerce-pagination ul li span.current,
.mt-cat-pagination-wrap ul.page-numbers li span.current {
    background: #ec1d27 !important;
    border-color: #ec1d27 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(236, 29, 39, 0.35) !important;
    transform: translateY(-1px) !important;
    cursor: default !important;
}

/* Nút "Trước" & "Sau" (Prev / Next) */
.woocommerce .mt-cat-page-container nav.woocommerce-pagination ul li a.prev,
.woocommerce .mt-cat-page-container nav.woocommerce-pagination ul li a.next,
.mt-cat-pagination-wrap ul.page-numbers li a.prev,
.mt-cat-pagination-wrap ul.page-numbers li a.next {
    font-weight: 600 !important;
    border-color: #cbd5e1 !important;
    color: #253989 !important;
    padding: 0 16px !important;
}
.woocommerce .mt-cat-page-container nav.woocommerce-pagination ul li a.prev:hover,
.woocommerce .mt-cat-page-container nav.woocommerce-pagination ul li a.next:hover,
.mt-cat-pagination-wrap ul.page-numbers li a.prev:hover,
.mt-cat-pagination-wrap ul.page-numbers li a.next:hover {
    background: #253989 !important;
    border-color: #253989 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(37, 57, 137, 0.25) !important;
}

/* Dấu chấm lửng (...) */
.woocommerce .mt-cat-page-container nav.woocommerce-pagination ul li span.dots,
.woocommerce-page .mt-cat-page-container nav.woocommerce-pagination ul li span.dots,
.mt-cat-pagination-wrap ul.page-numbers li span.dots {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    min-width: 28px !important;
    padding: 0 4px !important;
    cursor: default !important;
    letter-spacing: 2px;
}

/* ==========================================================================
   8. SEO BUYING GUIDE DESCRIPTION BOX (CHÂN TRANG)
   ========================================================================== */
.mt-cat-seo-box {
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    position: relative;
}
.mt-cat-seo-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 12px;
}
.mt-cat-seo-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #253989;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mt-cat-seo-content {
    font-size: 14.5px;
    line-height: 1.7;
    color: #334155;
    max-height: 260px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.mt-cat-seo-content h2,
.mt-cat-seo-content h3 {
    color: #253989;
    margin-top: 20px;
    margin-bottom: 8px;
}
.mt-cat-seo-content p {
    margin: 0 0 12px;
}
.mt-cat-seo-content ul {
    padding-left: 20px;
    margin-bottom: 14px;
}
.mt-cat-seo-content li {
    margin-bottom: 6px;
}
.mt-cat-seo-fade {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96));
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mt-cat-seo-box.is-expanded .mt-cat-seo-content {
    max-height: none;
}
.mt-cat-seo-box.is-expanded .mt-cat-seo-fade {
    opacity: 0;
}
.mt-cat-seo-toggle-wrap {
    text-align: center;
    margin-top: 14px;
    position: relative;
    z-index: 2;
}
.mt-cat-seo-toggle-btn {
    background: #ffffff;
    border: 1px solid #253989;
    border-radius: 20px;
    color: #253989;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.mt-cat-seo-toggle-btn:hover {
    background: #253989;
    color: #ffffff;
}

/* ==========================================================================
   9. FAQ ACCORDION WITH SCHEMA
   ========================================================================== */
.mt-cat-faq-section {
    margin-top: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.mt-faq-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 12px;
}
.mt-faq-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #253989;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mt-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mt-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.mt-faq-item.is-open {
    border-color: #253989;
}
.mt-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: none;
    padding: 14px 18px;
    font-size: 14.5px;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}
.mt-faq-question:hover {
    background: #f1f5f9;
}
.mt-faq-icon {
    font-size: 12px;
    color: #64748b;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.mt-faq-item.is-open .mt-faq-icon {
    transform: rotate(180deg);
    color: #ec1d27;
}
.mt-faq-answer {
    display: none;
    padding: 14px 18px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #475569;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}
.mt-faq-item.is-open .mt-faq-answer {
    display: block;
}
.mt-faq-answer p {
    margin: 0;
}

/* ==========================================================================
   10. MOBILE CATEGORY FILTER DRAWER (ISOLATED OFFCANVAS)
   ========================================================================== */
.mt-cat-filter-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999998;
}
.mt-cat-filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 330px;
    max-width: 88vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
}
.mt-cat-filter-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}
.mt-cat-filter-drawer .mt-filter-drawer-inner {
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.mt-cat-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.mt-cat-drawer-title {
    font-size: 16px;
    font-weight: 700;
    color: #253989;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mt-cat-drawer-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.mt-cat-drawer-close:hover {
    color: #ec1d27;
    background: #fee2e2;
}
.mt-cat-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}
.mt-cat-drawer-footer {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.mt-cat-drawer-reset-btn {
    flex: 1;
    padding: 12px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.mt-cat-drawer-reset-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.mt-cat-drawer-apply-btn {
    flex: 2;
    padding: 12px;
    background: #ec1d27;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(236, 29, 39, 0.25);
    transition: all 0.2s;
}
.mt-cat-drawer-apply-btn:hover {
    background: #d6151f;
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS (TỐI ƯU KHOẢNG CÁCH KHÍT KHAO CÂN ĐỐI 2026)
   ========================================================================== */
@media (max-width: 1023px) {
    .mt-cat-page-container {
        padding: 0 14px 20px !important;
    }
    .mt-cat-breadcrumb-wrap {
        margin: 4px 0 6px !important;
    }
    .mt-cat-hero-box {
        padding: 12px 16px !important;
        margin-bottom: 10px !important;
    }
    .mt-cat-cards-wrapper {
        margin-bottom: 10px !important;
    }
    .mt-cat-cards-track {
        gap: 8px !important;
        padding: 2px 0 6px !important;
    }
    .mt-cat-card-item {
        flex: 0 0 98px !important;
        padding: 10px 4px 8px !important;
    }
    .mt-cat-sidebar {
        display: none !important; /* Hide desktop sidebar on tablet & mobile */
    }
    .mt-cat-main-layout {
        display: block !important;
        gap: 0 !important;
    }
    .mt-mobile-filter-trigger {
        display: inline-flex !important; /* Show mobile filter trigger */
    }
    .mt-cat-toolbar {
        padding: 8px 12px !important;
        margin-bottom: 10px !important;
    }
    .mt-cat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .mt-cat-card,
    .mt-card {
        min-width: 0 !important;
        width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }
    .mt-cat-pagination-wrap,
    .woocommerce .mt-cat-page-container nav.woocommerce-pagination,
    .woocommerce-page .mt-cat-page-container nav.woocommerce-pagination,
    nav.woocommerce-pagination {
        margin: 14px 0 10px 0 !important;
    }
    .mt-cat-seo-box {
        margin-top: 14px !important;
        padding: 16px 18px !important;
    }
    .mt-cat-faq-section {
        margin-top: 12px !important;
        padding: 16px 18px !important;
    }
}

@media (max-width: 767px) {
    .mt-cat-page-container {
        padding: 0 10px 16px !important;
    }
    .mt-cat-breadcrumb-wrap {
        margin-top: 10px !important;
        margin-bottom: 8px !important;
        padding: 0 !important;
    }
    .mt-cat-breadcrumb-wrap .namlbn-breadcrumb,
    .mt-cat-page-container .namlbn-breadcrumb {
        font-size: 12px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 2px 0 !important;
    }
    .mt-cat-breadcrumb-wrap .namlbn-breadcrumb::-webkit-scrollbar,
    .mt-cat-page-container .namlbn-breadcrumb::-webkit-scrollbar {
        display: none !important;
    }
    .mt-cat-breadcrumb-wrap .namlbn-breadcrumb .last,
    .mt-cat-page-container .namlbn-breadcrumb .last {
        max-width: 180px !important;
    }
    .mt-cat-hero-box {
        padding: 10px 12px !important;
        margin-bottom: 8px !important;
        border-radius: 8px !important;
    }
    .mt-cat-h1 {
        font-size: 17.5px !important;
    }
    .mt-cat-title-row {
        gap: 8px !important;
        margin-bottom: 4px !important;
    }
    .mt-cat-short-intro p {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
    .mt-cat-cards-wrapper {
        margin-bottom: 8px !important;
    }
    .mt-cat-cards-track {
        gap: 6px !important;
        padding: 2px 0 4px !important;
    }
    .mt-cat-card-item {
        flex: 0 0 88px !important;
        padding: 8px 4px 6px !important;
        border-radius: 8px !important;
    }
    .mt-cat-card-thumb {
        width: 42px !important;
        height: 42px !important;
        margin-bottom: 4px !important;
    }
    .mt-cat-card-img {
        max-width: 34px !important;
        max-height: 34px !important;
    }
    .mt-cat-card-title {
        font-size: 10.5px !important;
    }
    .mt-cat-main-layout {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        display: block !important;
    }
    .mt-cat-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: block !important;
    }
    .mt-cat-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
        box-sizing: border-box !important;
    }
    .mt-cat-card,
    .mt-card {
        padding: 8px 6px !important;
        border-radius: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .mt-card-title {
        font-size: 12.5px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        line-height: 1.35 !important;
        margin-bottom: 4px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }
    /* Khóa dải Specs cố định đúng 1 hàng 20px để mọi card cân đối tăm tắp */
    .mt-card-specs {
        display: flex;
        flex-wrap: nowrap;
        gap: 3px !important;
        margin: 2px 0 6px 0 !important;
        height: 20px !important;
        max-height: 20px !important;
        min-height: 20px !important;
        overflow: hidden;
        width: 100% !important;
        min-width: 0 !important;
    }
    .mt-spec-pill,
    .mt-spec-chip {
        font-size: 9.5px !important;
        padding: 1.5px 5px !important;
        white-space: nowrap;
        flex-shrink: 1 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Khối Giá 2 tầng phân tách: Giá KM trên, Giá gốc dưới - Triệt tiêu 100% cắt cụt số */
    .mt-card-pricing-block {
        margin-top: auto;
        padding-top: 6px;
        margin-bottom: 8px;
        border-top: 1px dashed #f1f5f9;
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .mt-card-price-wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        min-height: 34px;
        justify-content: center;
        line-height: 1.15;
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden;
    }
    .mt-price-main, 
    .mt-price-main .woocommerce-Price-amount {
        font-size: 13.5px !important;
        font-weight: 700 !important;
        color: #253989 !important;
        letter-spacing: -0.3px;
        white-space: nowrap;
        line-height: 1.1;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .mt-price-regular, 
    .mt-price-regular .woocommerce-Price-amount {
        font-size: 10.5px !important;
        font-weight: 500 !important;
        color: #ec1d27 !important;
        text-decoration: line-through !important;
        white-space: nowrap;
        line-height: 1;
        opacity: 0.9;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .mt-price-contact {
        font-size: 12.5px !important;
        font-weight: 600 !important;
        color: #253989 !important;
        line-height: 34px;
    }
    /* Social proof: Căn 2 mép, 1 hàng duy nhất không bao giờ rớt dòng */
    .mt-card-social-proof {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 9.5px !important;
        white-space: nowrap;
        min-height: 15px;
        max-height: 15px;
        line-height: 1;
        overflow: hidden;
        margin: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .mt-rating-badge {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        flex-shrink: 0;
    }
    .mt-star-icon {
        width: 10px !important;
        height: 10px !important;
    }
    .mt-rating-val {
        font-size: 9.5px !important;
        font-weight: 600;
        color: #64748b;
    }
    .mt-sold-val {
        font-size: 9.5px !important;
        color: #64748b;
        margin-left: 2px;
        flex-shrink: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50px;
    }
    .mt-stock-status {
        font-size: 9.5px !important;
        font-weight: 600 !important;
        margin-left: auto;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .mt-stock-status .mt-stock-dot {
        width: 5px !important;
        height: 5px !important;
    }
    /* Cặp nút CTA: Mua Ngay co giãn thông minh, Giỏ Hàng cố định 28px luôn hiển thị */
    .mt-card-cta-wrap {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 4px !important;
        margin-top: 2px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .mt-btn-cta,
    .mt-btn-primary {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 32px) !important;
        padding: 6.5px 3px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-align: center !important;
        border-radius: 6px !important;
        background: #ec1d27 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
        letter-spacing: 0 !important;
    }
    .mt-btn-cta svg,
    .mt-btn-primary svg {
        display: none !important;
    }
    .mt-btn-cart {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        flex: 0 0 28px !important;
        flex-shrink: 0 !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .mt-btn-cart svg {
        width: 13px !important;
        height: 13px !important;
    }
    /* Toolbar Sắp xếp: Không gãy dòng, cuộn ngang mượt mà */
    .mt-cat-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 12px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .mt-toolbar-left {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .mt-mobile-filter-trigger {
        padding: 6px 14px;
        font-size: 13px;
        font-weight: 700;
        border-radius: 6px;
    }
    .mt-toolbar-count {
        font-size: 12px;
        color: #64748b;
    }
    .mt-toolbar-right {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 0;
    }
    .mt-toolbar-right::-webkit-scrollbar {
        display: none;
    }
    .mt-sort-label {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #64748b !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
    }
    .mt-sort-pills {
        display: flex;
        gap: 6px;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }
    .mt-sort-pill {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 5px 10px;
        font-size: 11.5px;
        border-radius: 6px;
    }
    .mt-cat-seo-box {
        margin-top: 10px !important;
        padding: 12px 14px !important;
        border-radius: 8px !important;
    }
    .mt-cat-seo-header {
        padding-bottom: 8px !important;
        margin-bottom: 8px !important;
    }
    .mt-cat-seo-title {
        font-size: 15px !important;
    }
    .mt-cat-faq-section {
        margin-top: 10px !important;
        padding: 12px 14px !important;
        border-radius: 8px !important;
    }
    .mt-faq-header {
        padding-bottom: 8px !important;
        margin-bottom: 8px !important;
    }
    .mt-faq-title {
        font-size: 15px !important;
    }
    .mt-faq-accordion {
        gap: 5px !important;
    }
    .mt-faq-question {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    /* Phân trang Mobile: Thu gọn, chống tràn, hiển thị thanh thoát */
    .mt-cat-pagination-wrap,
    .woocommerce .mt-cat-page-container nav.woocommerce-pagination,
    .woocommerce-page .mt-cat-page-container nav.woocommerce-pagination,
    nav.woocommerce-pagination {
        margin: 12px 0 8px 0 !important;
    }
    .woocommerce .mt-cat-page-container nav.woocommerce-pagination ul,
    .woocommerce-page .mt-cat-page-container nav.woocommerce-pagination ul,
    .mt-cat-pagination-wrap ul.page-numbers {
        gap: 5px !important;
    }
    .woocommerce .mt-cat-page-container nav.woocommerce-pagination ul > li > a,
    .woocommerce .mt-cat-page-container nav.woocommerce-pagination ul > li > span,
    .woocommerce-page .mt-cat-page-container nav.woocommerce-pagination ul > li > a,
    .woocommerce-page .mt-cat-page-container nav.woocommerce-pagination ul > li > span,
    .mt-cat-pagination-wrap ul.page-numbers > li > a,
    .mt-cat-pagination-wrap ul.page-numbers > li > span {
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 8px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }
    .woocommerce .mt-cat-page-container nav.woocommerce-pagination ul li a.prev,
    .woocommerce .mt-cat-page-container nav.woocommerce-pagination ul li a.next,
    .mt-cat-pagination-wrap ul.page-numbers li a.prev,
    .mt-cat-pagination-wrap ul.page-numbers li a.next {
        padding: 0 10px !important;
    }
    .mt-pag-text {
        display: none !important;
    }
}
