.mm-category .wrap-product { padding: 16px 0 24px; }
.mm-category .breadcrumb-highlight { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.mm-category .bread-crumb { margin-bottom: 12px; }

/* Sticky filter bar (Bộ lọc + buttons) */
.mm-category .pl-filters {
    position: -webkit-sticky;
    position: sticky;
    top: 0; /* nếu header fixed che mất, đổi thành top: <height_header>px */
    z-index: 5000; /* Cao hơn để dropdown không bị che bởi grid sản phẩm */
    /* background: #fff; */
    padding-top: 8px;
    padding-bottom: 8px;
    margin-bottom: 12px;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.06); */
    overflow: visible; /* Đảm bảo dropdown không bị che */
}

/* Đảm bảo filter bar không đè lên sidebar (sidebar có z-index: 1002) - áp dụng cho cả desktop và mobile */
body.sidebar-open .mm-category .pl-filters,
body:has(.u-sidebar:not(.u-unfold--hidden)) .mm-category .pl-filters {
    z-index: 999 !important;
    opacity: 0.3;
    pointer-events: none;
}
/* Đảm bảo dropdown vẫn hiển thị ngay cả khi sidebar mở */
body.sidebar-open .mm-category .pl-filters .dropdown-menu,
body:has(.u-sidebar:not(.u-unfold--hidden)) .mm-category .pl-filters .dropdown-menu {
    z-index: 1101 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mm-category .pl-filters-dropdowns { margin-bottom: 16px; overflow: visible !important; }
.mm-category .pl-filters-deM { overflow: visible !important; }
.mm-category .pl-filters-deM.row { overflow: visible !important; }
.mm-category .pl-filters-deM .col-12,
.mm-category .pl-filters-deM [class*="col-"] { overflow: visible !important; }
.mm-category .filter-buttons-wrapper { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    align-items: center;
    overflow-x: visible;
    overflow-y: visible;
    position: relative; /* Tạo stacking context mới */
}
/* Đảm bảo dropdown không bị ảnh hưởng bởi overflow của wrapper - chỉ áp dụng cho desktop */
@media (min-width: 769px) {
    .mm-category .filter-buttons-wrapper .dropdown-menu:not(.filter-main-dropdown) {
        position: fixed !important; /* Dùng fixed thay vì absolute để tránh bị giới hạn bởi overflow */
    }
    /* Main dropdown cũng cần position fixed trên desktop để không bị che */
    .mm-category .filter-buttons-wrapper .dropdown-menu.filter-main-dropdown {
        position: fixed !important;
    }
}
.mm-category .filter-buttons-wrapper::-webkit-scrollbar {
    height: 4px;
}
.mm-category .filter-buttons-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}
.mm-category .filter-buttons-wrapper::-webkit-scrollbar-thumb {
    background: #d0021b;
    border-radius: 2px;
}
.mm-category .filter-main-fixed {
    flex: 0 0 auto;
    position: sticky;
    left: 0;
    z-index: 1205;
    background: #fff;
    border-radius: 10px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}
.mm-category .filter-buttons-scrollable {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: visible;
}
.mm-category .filter-btn-group { position: relative; display: inline-block; flex: 0 0 auto; }
.mm-category .btn-filter { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #e5e5e5; border-radius: 6px; background: #fff; color: #111; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.mm-category .btn-filter:hover { border-color: #d0021b; color: #d0021b; }
.mm-category .btn-filter.active { border-color: #d0021b; color: #d0021b; background: #fff4e5; }
.mm-category .btn-filter-main { font-weight: 600; }
.mm-category .btn-filter-main .fa-filter { margin-right: 4px; }
.mm-category .filter-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; background: #d0021b; color: #fff; border-radius: 9px; font-size: 11px; font-weight: 600; margin-left: 4px; }
.mm-category .btn-filter .fa-chevron-down { font-size: 10px; margin-left: 4px; }
.mm-category .filter-btn-group .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 1100; min-width: 200px; max-height: 400px; overflow-y: auto; border: 1px solid #e5e5e5; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 8px 0; margin-top: 4px; background: #fff; }
.mm-category .filter-btn-group .dropdown-menu.filter-main-dropdown { 
    display: none; 
}
/* Alpine.js x-cloak support */
.mm-category .filter-btn-group .dropdown-menu.filter-main-dropdown[x-cloak] { 
    display: none !important; 
}
@media (max-width: 768px) {
    .mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) { 
        position: fixed !important; 
        top: auto !important; 
        bottom: 0 !important; 
        left: 0 !important; 
        right: 0 !important; 
        width: 100% !important; 
        max-width: 100% !important;
        max-height: 80vh !important;
        border-radius: 16px 16px 0 0 !important;
        margin: 0 !important;
        z-index: 9998 !important;
    }
}
/* Show when has show class on desktop - higher specificity */
@media (min-width: 768px) {
    .mm-category .filter-btn-group .dropdown-menu.filter-main-dropdown.show,
    .mm-category .filter-btn-group .dropdown-menu.dropdown-menu.filter-main-dropdown.show {
        display: flex !important;
    }
    /* Support Alpine inline style - highest priority */
    .mm-category .filter-btn-group .dropdown-menu.filter-main-dropdown[style*="display: flex"],
    .mm-category .filter-btn-group .dropdown-menu.filter-main-dropdown[style*="display:flex"],
    .mm-category .filter-btn-group .dropdown-menu.dropdown-menu.filter-main-dropdown[style*="display: flex"],
    .mm-category .filter-btn-group .dropdown-menu.dropdown-menu.filter-main-dropdown[style*="display:flex"] {
        display: flex !important;
    }
}
.mm-category .filter-btn-group .dropdown-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; color: #111; font-size: 14px; text-decoration: none; }
.mm-category .filter-btn-group .dropdown-item:hover { background: #f5f5f5; color: #d0021b; }
.mm-category .filter-btn-group .dropdown-item.active { background: #fff4e5; color: #d0021b; font-weight: 600; }
.mm-category .filter-btn-group .dropdown-item img { max-height: 20px; margin-right: 8px; }
.mm-category .filter-btn-group .dropdown-item .fa-check { color: #d0021b; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) { padding: 0; display: none !important; flex-direction: column; min-width: 320px; max-width: 90vw; max-height: 75vh; border-radius: 8px; z-index: 1100 !important; background: #fff; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown).show { display: flex !important; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown)::before { content: ""; position: absolute; top: -6px; left: 18px; width: 10px; height: 10px; background: #fff; border-left: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5; transform: rotate(45deg); }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .filter-options { display: flex !important; flex-wrap: wrap; gap: 10px; padding: 12px; flex: 1 1 auto; min-height: 60px; max-height: calc(75vh - 80px); overflow-y: auto; width: 100%; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .dropdown-item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; font-weight: 600; color: #333; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .dropdown-item img { max-height: 22px; max-width: 110px; object-fit: contain; margin: 0; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .dropdown-item:hover { background: #f7f7f7; color: #111; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .dropdown-item.active { background: #fff4e5; border-color: #d0021b; color: #d0021b; font-weight: 700; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .dropdown-item .fa-check { display: none; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .filter-checkbox { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; min-height: 40px; transition: all 0.2s; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .filter-checkbox input[type="checkbox"] { display: none; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .filter-checkbox img { max-height: 22px; max-width: 110px; object-fit: contain; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .filter-checkbox span { white-space: nowrap; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .filter-checkbox.active { border-color: #d0021b; box-shadow: 0 0 0 1px rgba(208,2,27,0.15) inset; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .filter-checkbox:hover { background: #f7f7f7; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .filter-button--total { display: flex; justify-content: center; gap: 12px; padding: 12px; border-top: 1px solid #eee; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .btn-filter-close.total,
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .btn-filter-readmore.filter-apply { border: 1px solid #d0021b; padding: 8px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; text-decoration: none; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .btn-filter-close.total { color: #d0021b; background: #fff; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .btn-filter-readmore.filter-apply { color: #fff; background: #d0021b; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .btn-filter-close.total:hover { background: #fff4e5; }
.mm-category .filter-btn-group .dropdown-menu:not(.filter-main-dropdown) .btn-filter-readmore.filter-apply:hover { background: #b8001f; }
.mm-category .filter-main-dropdown { width: min(1100px, calc(100vw - 24px)); min-width: 720px; height: 60vh; max-height: 60vh; overflow-x: hidden; overflow-y: auto; z-index: 5001; display: flex; flex-direction: column; }
.mm-category .filter-main-content { height: 100%; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.mm-category .filter-show { height: 100%; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.mm-category .filter-header { position: sticky; top: 0; z-index: 2; background: #fff; flex-shrink: 0; }
.mm-category .show-total-main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.mm-category .filter-main-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; }
.mm-category .filter-button--total { flex-shrink: 0; position: static; background: #fff; }
@media (max-width: 992px) {
    .mm-category .filter-main-dropdown { min-width: auto; width: calc(100vw - 24px); }
}
@media (max-width: 768px) {
    .mm-category .filter-main-dropdown { 
        position: fixed !important; 
        top: 0 !important; 
        left: 0 !important; 
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important; 
        width: 100vw !important; 
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        z-index: 10001 !important;
        border-radius: 0 !important;
    }
    .mm-category .filter-main-content { 
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        padding: 16px;
    }
    .mm-category .filter-show {
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .mm-category .list-filter-active {
        flex-shrink: 0;
    }
    .mm-category .show-total-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    .mm-category .filter-main-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
    }
    .mm-category .filter-button--total {
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 16px 0;
        margin-top: auto;
    }
    
    /* Ẩn hoặc giảm z-index của floating buttons khi filter overlay mở */
    body.filter-dropdown-open .zalo-chat-widget,
    body.filter-dropdown-open #wpwidget,
    body.filter-dropdown-open #chat-plugins,
    body.filter-dropdown-open .chat-cta,
    body.filter-dropdown-open [class*="chat"],
    body.filter-dropdown-open [class*="phone"],
    body.filter-dropdown-open [id*="chat"],
    body.filter-dropdown-open [id*="phone"],
    body.filter-dropdown-open [id*="zalo"],
    body.filter-dropdown-open .page-widget {
        z-index: 9998 !important;
        opacity: 0.3 !important;
        pointer-events: none !important;
    }
}
@media (min-width: 769px) {
    .mm-category .filter-show { display: block; }
}
.mm-category .list-filter-active { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-weight: 600; color: #333; padding-bottom: 12px; border-bottom: 1px solid #eee; margin-bottom: 16px; }
.mm-category .list-filter-active .brand,
.mm-category .list-filter-active .price,
.mm-category .list-filter-active .tag,
.mm-category .list-filter-active .props { min-height: 1px; }
.mm-category .filter-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #bdbdbd; border-radius: 6px; background: #fff; font-weight: 600; color: #333; }
.mm-category .filter-chip i { font-size: 12px; color: #333; }
.mm-category .filter-chip:hover { border-color: #d0021b; color: #d0021b; }
.mm-category .filter-chip.is-active { border-color: #d0021b; color: #d0021b; }
.mm-category .clr-filter { color: #d0021b; text-decoration: none; font-weight: 600; }
.mm-category .show-total-main { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.mm-category .close-popup-total { position: static; border: 1px solid #d9d9d9; border-radius: 6px; padding: 6px 10px; background: #fff; font-weight: 600; color: #333; text-decoration: none; z-index: 10; }
.mm-category .close-popup-total i { margin-right: 6px; }
.mm-category .show-total-item { padding-top: 6px; }
.mm-category .show-total-item + .show-total-item { border-top: 1px solid #eee; padding-top: 16px; margin-top: 16px; }
.mm-category .show-total-txt { font-weight: 700; color: #333; margin-bottom: 10px; }
.mm-category .filter-list-total { display: flex; flex-wrap: wrap; gap: 10px; }
.mm-category .filter-list-total .filter-checkbox { min-height: 40px; }
.mm-category .filter-button--total { display: flex; justify-content: center; gap: 12px; padding: 12px 0 6px; border-top: 1px solid #eee; margin-top: 16px; position: sticky; bottom: 0; background: #fff; z-index: 1; }
.mm-category .btn-filter-close.total { border: 1px solid #d0021b; color: #d0021b; background: #fff; padding: 8px 20px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.mm-category .btn-filter-readmore { border: 1px solid #d0021b; color: #fff; background: #d0021b; padding: 8px 20px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.mm-category .filter-clear-all { color: #d0021b; text-decoration: none; font-size: 14px; font-weight: 600; }
.mm-category .filter-clear-all:hover { text-decoration: underline; }
.mm-category .filter-main-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; }
.mm-category .filter-show .filter-main-body { display: block; }
.mm-category .filter-group { margin-bottom: 8px; }
.mm-category .filter-group strong { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: #333; }
.mm-category .filter-group.filter-group-brand { grid-column: 1 / -1; }
.mm-category .filter-options { display: flex; flex-wrap: wrap; gap: 10px; max-height: 220px; overflow-y: auto; padding-right: 4px; }
.mm-category .filter-checkbox { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; min-height: 40px; transition: all 0.2s; }
.mm-category .filter-checkbox input[type="checkbox"] { display: none; }
.mm-category .filter-checkbox img { max-height: 22px; max-width: 110px; object-fit: contain; }
.mm-category .filter-checkbox span { white-space: nowrap; }
.mm-category .filter-checkbox.active { border-color: #d0021b; box-shadow: 0 0 0 1px rgba(208,2,27,0.15) inset; }
.mm-category .filter-footer { display: flex; justify-content: center; gap: 12px; padding-top: 16px; border-top: 1px solid #eee; margin-top: 16px; }
.mm-category .filter-footer .btn-outline { border: 1px solid #d0021b; color: #d0021b; background: #fff; padding: 8px 20px; border-radius: 6px; font-weight: 600; }
.mm-category .filter-footer .btn-solid { border: 1px solid #d0021b; color: #fff; background: #d0021b; padding: 8px 20px; border-radius: 6px; font-weight: 600; }
@media (max-width: 992px) {
    .mm-category .filter-main-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .mm-category .filter-main-body { grid-template-columns: 1fr; }
    /* Overlay background khi mở dropdown trên mobile */
    .mm-category .filter-btn-group .dropdown-menu.filter-main-dropdown.show {
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
    }
    /* Body overlay khi mở filter main dropdown */
    body.filter-dropdown-open {
        overflow: hidden;
    }
    .filter-dropdown-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }
    body.filter-dropdown-open .filter-dropdown-overlay {
        display: block;
    }
    .mm-category .filter-group-brand .filter-options { 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        overflow-y: visible; 
        max-height: none; 
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .mm-category .filter-group-brand .filter-options::-webkit-scrollbar {
        height: 4px;
    }
    .mm-category .filter-group-brand .filter-options::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
    .mm-category .filter-group-brand .filter-options::-webkit-scrollbar-thumb {
        background: #d0021b;
        border-radius: 2px;
    }
    .mm-category .filter-group-brand .filter-checkbox { 
        flex-shrink: 0; 
    }

    /* Mobile: brand quick-filter = 1 line + horizontal scroll */
    .mm-category .pl-filters-hot {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .mm-category .pl-filters-hot .list-unstyled {
        flex-wrap: nowrap;
        width: max-content;
    }
    .mm-category .pl-filters-hot .list-unstyled li {
        flex: 0 0 auto;
    }

    /* Mobile: filter buttons = 1 line + horizontal scroll */
    .mm-category .pl-filters-dropdowns {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .mm-category .pl-filters-dropdowns::-webkit-scrollbar {
        height: 4px;
    }
    .mm-category .pl-filters-dropdowns::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
    .mm-category .pl-filters-dropdowns::-webkit-scrollbar-thumb {
        background: #d0021b;
        border-radius: 2px;
    }
    .mm-category .filter-buttons-wrapper {
        flex-wrap: nowrap;
        width: 100%;
    }
    .mm-category .filter-main-fixed {
        position: sticky;
        left: 0;
        z-index: 10;
        background: #fff;
        padding-right: 8px;
    }
    .mm-category .filter-buttons-scrollable {
        display: none;
    }
    .mm-category .filter-buttons-wrapper {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .mm-category .filter-buttons-wrapper .filter-btn-group {
        flex: 0 0 auto;
    }
}
.mm-category .pl-filters-hot .list-unstyled,
.mm-category .pl-filters-status .list-unstyled { display: flex; flex-wrap: nowrap; gap: 10px; margin: 0; padding: 0; }
.mm-category .pl-filters-hot .list-unstyled { flex-wrap: wrap; align-items: center; }
.mm-category .pl-filters-hot .list-unstyled li { display: inline-flex; align-items: center; margin: 0; }
.mm-category .pl-filters-hot .title { font-weight: 600; margin-right: 4px; color: #333; white-space: nowrap; }
.mm-category .pl-filters-hot .pa-filter { text-decoration: none; display: block; }
.mm-category .pl-filters-hot .checkbox { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #d9d9d9; border-radius: 999px; padding: 8px 16px; min-height: 44px; background: #fff; transition: all 0.2s ease; }
.mm-category .pl-filters-hot .checkbox input[type="checkbox"] { display: none; }
.mm-category .pl-filters-hot .checkbox img { max-height: 24px; max-width: 120px; object-fit: contain; }
.mm-category .pl-filters-hot .checkbox span { font-weight: 600; color: #333; white-space: nowrap; }
.mm-category .pl-filters-hot .pa-filter:hover .checkbox { border-color: #bdbdbd; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
.mm-category .pl-filters-hot .pa-filter[data-exist="1"] .checkbox { border-color: #d0021b; box-shadow: 0 0 0 1px rgba(208,2,27,0.15) inset; }
.mm-category .ps-filter-total { font-weight: 600; margin-bottom: 10px; }
/* Grid item: stretch to same row height, card fills and keeps "Mua ngay" at bottom */
.mm-category .product-list-bycate .mm-product-item {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.mm-category .product-list-bycate .mm-product-item .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.mm-category .product-list-bycate .mm-product-item .product-card > a {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.mm-category .product-list-bycate .mm-product-item .product-card > a > div:last-of-type {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.mm-category .product-list-bycate .mm-product-item .product-card > div {
    flex-shrink: 0;
}
.mm-category .product-list-bycate .card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; height: 100%; }
.mm-category .product-list-bycate .card-body { padding: 10px; }
.mm-category .product-name { font-size: 14px; font-weight: 600; min-height: 40px; }
.mm-category .product-price { font-size: 16px; font-weight: 700; color: #d0021b; margin-bottom: 6px; }
.mm-category .product-price-regular { font-size: 12px; color: #777; display: flex; gap: 6px; align-items: center; }
.mm-category .product-price-regular span:first-child { text-decoration: line-through; }
.mm-category .product-price-saving { color: #d0021b; font-weight: 700; }
.mm-category .product-attributes { margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mm-category .product-attributes li { list-style: none; font-size: 12px; background: #f5f5f5; border-radius: 4px; padding: 2px 6px; }
.mm-category .product-promotionshort-box { padding: 0 10px 10px; }
.mm-category .product-promotionshort { background: #fff4e5; color: #b45309; padding: 4px 8px; border-radius: 6px; font-size: 12px; }
.mm-category .sidebar-card { border: 1px solid #eee; border-radius: 8px; margin-bottom: 12px; }
.mm-category .sidebar-card .card-header { background: #f7f7f7; font-weight: 700; }
.mm-category .sidebar-card .list-unstyled { margin: 0; padding: 0; display: grid; gap: 6px; }
.mm-category .sidebar-card .checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mm-category .sidebar-card img { max-height: 20px; }
.mm-category .banner-list img { width: 100%; height: auto; border-radius: 8px; }
/* Removed CSS rules that conflict with Tailwind grid classes - grid layout is handled by Tailwind classes */
.mm-category .mm-product-list-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.mm-category .mm-filter-status-wrapper { flex: 1; min-width: 0; }
.mm-category .mm-sort-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mm-category .mm-sort-left { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.mm-category .mm-sort-label { font-weight: 600; color: #333; }
.mm-category .mm-sort-list { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
.mm-category .mm-sort-item { display: inline-flex; align-items: center; gap: 8px; color: #333; text-decoration: none; border: none; background: transparent; cursor: pointer; padding: 0; }
.mm-category .mm-sort-check { width: 18px; height: 18px; border: 2px solid #c7c7c7; border-radius: 4px; display: inline-block; background: #fff; }
.mm-category .mm-sort-item.active .mm-sort-check { border-color: #d0021b; background: #d0021b; box-shadow: inset 0 0 0 2px #fff; }
.mm-category .mm-sort-item:hover { color: #111; }
.mm-category .mm-sort-right { margin-left: auto; }
.mm-category .mm-sort-select { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ddd; border-radius: 6px; padding: 6px 10px; background: #fff; font-weight: 600; color: #333; }
.mm-category .mm-sort-select select { border: none; background: transparent; font-weight: 600; padding-right: 18px; appearance: none; }
.mm-category .mm-sort-select .fa-chevron-down { font-size: 12px; color: #666; margin-left: -16px; pointer-events: none; }
@media (max-width: 768px) {
    .mm-category .mm-product-list-header { flex-direction: column; align-items: stretch; }
    .mm-category .mm-filter-status-wrapper { width: 100%; }
    .mm-category .mm-sort-bar { width: 100%; padding-top: 0; }
    .mm-category .mm-sort-bar { flex-direction: column; align-items: flex-start; }
    .mm-category .mm-sort-right { margin-left: 0; width: 100%; }
}

.mm-category .container .row {
    margin-left: 0;
    margin-right: 0;
}

/* Banner Category Layout */
.mm-category .banner-category-wrapper {
    margin-bottom: 24px;
    display: flex;
    align-items: stretch;
}

.mm-category .banner-category-wrapper > div {
    padding-left: 8px;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
}

.mm-category .banner-category-wrapper > div:first-child {
    padding-left: 0;
}

.mm-category .banner-category-wrapper > div:last-child {
    padding-right: 0;
}

@media (min-width: 768px) {
    .mm-category .banner-category-wrapper > div:first-child {
        padding-right: 12px;
    }
    
    .mm-category .banner-category-wrapper > div:last-child {
        padding-left: 12px;
    }
}

.mm-category .banner-slider-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 200px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mm-category .banner-slider-main .category-banner-swiper {
    position: relative;
    width: 100%;
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mm-category .banner-slider-main .swiper-wrapper {
    min-height: 200px;
    height: 100%;
}

.mm-category .banner-slider-main .banner-item {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.mm-category .banner-slider-main .banner-item a {
    display: flex;
    width: 100%;
    height: 100%;
}

.mm-category .banner-slider-main .banner-item img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Swiper Navigation Arrows */
.mm-category .banner-slider-main .swiper-button-prev,
.mm-category .banner-slider-main .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    margin-top: 0;
}

.mm-category .banner-slider-main .swiper-button-prev:hover,
.mm-category .banner-slider-main .swiper-button-next:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.mm-category .banner-slider-main .swiper-button-prev:hover::after,
.mm-category .banner-slider-main .swiper-button-next:hover::after {
    color: #d0021b;
}

.mm-category .banner-slider-main .swiper-button-prev {
    left: 10px;
}

.mm-category .banner-slider-main .swiper-button-next {
    right: 10px;
}

/* Hide default Swiper icons */
.mm-category .banner-slider-main .swiper-button-prev::after,
.mm-category .banner-slider-main .swiper-button-next::after {
    display: none !important;
}

/* Use Font Awesome icons */
.mm-category .banner-slider-main .swiper-button-prev::before,
.mm-category .banner-slider-main .swiper-button-next::before {
    content: '';
    display: none;
}

.mm-category .banner-slider-main .category-banner-prev,
.mm-category .banner-slider-main .category-banner-next {
    position: absolute;
}

.mm-category .banner-slider-main .category-banner-prev::after {
    content: '\f053';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    color: #333;
    display: block;
}

.mm-category .banner-slider-main .category-banner-next::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    color: #333;
    display: block;
}

.mm-category .banner-slider-main .category-banner-prev:hover::after,
.mm-category .banner-slider-main .category-banner-next:hover::after {
    color: #d0021b;
}

/* Swiper Pagination Dots */
.mm-category .banner-slider-main .swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.mm-category .banner-slider-main .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mm-category .banner-slider-main .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 1);
}

.mm-category .banner-slider-main .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Left Banners */
.mm-category .banner-left-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    justify-content: space-between;
}

.mm-category .banner-left-item {
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: stretch;
}

.mm-category .banner-left-item a {
    display: flex;
    width: 100%;
    height: 100%;
}

.mm-category .banner-left-item img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mm-category .banner-category-wrapper .col-md-9 {
        margin-bottom: 12px;
    }
    
    /* Ẩn block topBanner (banner bên phải) trên mobile */
    .mm-category .banner-category-wrapper .col-md-3 {
        display: none !important;
    }
    
    .mm-category .banner-category-wrapper .col-md-9 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .mm-category .banner-slider-main .swiper-button-prev,
    .mm-category .banner-slider-main .swiper-button-next {
        width: 28px;
        height: 28px;
    }
    
    .mm-category .banner-slider-main .swiper-button-prev::after,
    .mm-category .banner-slider-main .swiper-button-next::after {
        font-size: 12px;
    }
    
    .mm-category .banner-slider-main .swiper-button-prev {
        left: 5px;
    }
    
    .mm-category .banner-slider-main .swiper-button-next {
        right: 5px;
    }
    
    .mm-category .banner-slider-main .swiper-pagination {
        bottom: 10px;
    }
    
    .mm-category .banner-slider-main .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
    
    .mm-category .banner-slider-main .swiper-pagination-bullet-active {
        width: 24px;
    }
}
