/*
Theme Name: Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/
    
    }
    
    /* =============================
       FILTER SIDEBAR (match demo exactly)
       ============================= */
    #shop-sidebar {
        position: sticky;
        top: 20px;
        align-self: flex-start;
        width: 300px;
        max-width: 100%;
        height: auto;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        padding: 24px;
        overflow-y: auto;
    }
    
    /* =============================
       MÔI TRƯỜNG SỬ DỤNG - 1 CỘT
       ============================= */
    #ssb-filter-pa_moi-truong-su-dung {
        display: block !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #ssb-filter-pa_moi-truong-su-dung li {
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    #ssb-filter-pa_moi-truong-su-dung label {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        cursor: pointer !important;
        font-size: 14px !important;
        color: #374151 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #ssb-filter-pa_moi-truong-su-dung input[type="checkbox"] {
        margin-right: 8px !important;
        width: 16px !important;
        height: 16px !important;
        accent-color: #14b8a6 !important;
        border-radius: 4px !important;
    }
    
    #ssb-filter-pa_moi-truong-su-dung .count {
        color: #535860 !important;
        font-size: 12px !important;
        margin-left: 4px !important;
    }
    
    /* =============================
       KÍCH THƯỚC - TAGS/BUTTONS
       ============================= */
    #ssb-filter-pa_kich-thuoc {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #ssb-filter-pa_kich-thuoc li {
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        position: relative !important;
    }
    
    #ssb-filter-pa_kich-thuoc label {
        display: none !important;
    }
    
    #ssb-filter-pa_kich-thuoc input[type="checkbox"] {
        display: none !important;
    }
    
     /* Tạo button style cho kích thước */
     #ssb-filter-pa_kich-thuoc li {
         display: inline-block !important;
         padding: 15px 50px !important;
         background: #f3f4f6 !important;
         color: #374151 !important;
         border: 1px solid #e5e7eb !important;
         border-radius: 999px !important;
         font-size: 14px !important;
         cursor: pointer !important;
         transition: all 0.2s ease !important;
         text-align: center !important;
         min-width: 90px !important;
         position: relative !important;
     }
    
    #ssb-filter-pa_kich-thuoc li:hover {
        background: #ecfdf5 !important;
        color: #047857 !important;
        border-color: #14b8a6 !important;
    }
    
    /* Selected state cho kích thước */
    #ssb-filter-pa_kich-thuoc li.selected {
        background: #14b8a6 !important;
        color: #ffffff !important;
        border-color: #14b8a6 !important;
    }
    
    /* Ẩn text gốc và hiển thị text từ data-size */
    #ssb-filter-pa_kich-thuoc li label {
        display: none !important;
    }
    
    #ssb-filter-pa_kich-thuoc li::after {
        content: attr(data-size) !important;
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        pointer-events: none !important;
        white-space: nowrap !important;
    }
    
    
    .ssb-filter-box {
        background: transparent;
        padding: 0;
    }
    
    
    .ssb-filter-box .widget-title {
        font-size: 20px;
        font-weight: 800;
        color: #0f172a;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 10px;
        margin-bottom: 16px;
    }
    
    .ssb-filter-group {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #e5e7eb;
    }
    
    .ssb-filter-group:first-child {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }
    
    .ssb-filter-label {
        color: #1f2937;
        margin-bottom: 8px;
        font-weight: 500;
    }
    
    .ssb-filter-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .ssb-filter-list li {
        padding: 6px 0;
        color: #374151;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .ssb-size-search-wrap {
        margin: 4px 0;
    }

    .ssb-size-search-input {
        width: 100%;
        padding: 7px 10px;
        border: 1px solid #d1d5db;
        border-radius: 4px;
        font-size: 13px;
        color: #374151;
        box-sizing: border-box;
        outline: none;
        transition: border-color 0.2s;
    }

    .ssb-size-search-input:focus {
        border-color: #3b82f6;
    }

    .ssb-filter-list label {
        display: flex;
        align-items: center;
        width: 100%;
        cursor: pointer;
    }
    
    .ssb-filter-list input[type="checkbox"],
    .ssb-filter-list input[type="radio"] {
        margin-right: 8px;
        width: 16px;
        height: 16px;
        accent-color: #3b82f6;
    }
    
    .ssb-filter-list .count {
        color: #6b7280;
        font-size: 12px;
    }
    
    /* Category links styling */
    .ssb-category-links {
        list-style: none !important;
        margin: 0;
        padding: 0;
    }
    
    .ssb-category-links li {
        list-style: none !important;
        list-style-type: none !important;
    }
    
    .ssb-category-links li::before {
        display: none !important;
        content: none !important;
    }
    
    .ssb-category-links li::marker {
        display: none !important;
    }
    
    /* Override tất cả list style trong sidebar */
    #shop-sidebar ul li {
        list-style: none !important;
        list-style-type: none !important;
    }
    
    #shop-sidebar ul li::before {
        display: none !important;
        content: none !important;
    }
    
    #shop-sidebar ul li::marker {
        display: none !important;
    }
    
    .ssb-category-links li {
        padding: 8px 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .ssb-category-links li:last-child {
        border-bottom: none;
    }
    
    .ssb-category-links li a {
        color: #374151;
        text-decoration: none;
        font-size: 14px;
        display: inline;
        transition: color 0.2s ease;
    }
    
    .ssb-category-links li a:hover {
        color: #3b82f6;
    }
    
    .ssb-category-links li.current-cat a {
        color: #dc2626;
        font-weight: 500;
    }
    
    .ssb-category-links .count {
        color: #6b7280;
        font-size: 12px;
    }
    
    /* Style cho danh mục cha và con */
    .ssb-category-links .ssb-cat-parent {
        padding: 8px 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .ssb-category-links .ssb-cat-parent:last-child {
        border-bottom: none;
    }
    
    .ssb-cat-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        line-height: 1.5;
    }
    
    .ssb-cat-link {
        flex: 1;
        color: #374151;
        text-decoration: none;
        font-size: 14px;
        display: inline-block;
        transition: color 0.2s ease;
        vertical-align: middle;
        line-height: 1.5;
    }
    
    .ssb-cat-toggle {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: auto;
        flex-shrink: 0;
        color: #000;
        transition: none;
        margin: 0;
        vertical-align: middle;
        margin-left: auto;
    }
    
    .ssb-cat-toggle:hover {
        color: #000;
    }
    
    .ssb-chevron {
        font-size: 10px;
        line-height: 1;
        display: inline-block;
        color: #000;
        transition: transform 0.2s ease;
        vertical-align: middle;
    }
    
    .ssb-cat-parent.expanded .ssb-chevron {
        transform: rotate(180deg);
    }
    
    .ssb-cat-link:hover {
        color: #3b82f6;
    }
    
    .ssb-cat-parent.current-cat .ssb-cat-link {
        color: #dc2626;
        font-weight: 500;
    }
    
    /* Style cho danh mục con */
    .ssb-cat-children {
        list-style: none !important;
        margin: 0;
        padding: 0;
        padding-left: 22px;
    }
    
    .ssb-cat-children li {
        padding: 8px 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .ssb-cat-children li:last-child {
        border-bottom: none;
    }
    
    .ssb-cat-child a {
        color: #374151;
        text-decoration: none;
        font-size: 14px;
        display: inline;
        transition: color 0.2s ease;
    }
    
    .ssb-cat-child a:hover {
        color: #3b82f6;
    }
    
    .ssb-cat-child.current-cat a {
        color: #dc2626;
        font-weight: 500;
    }
    
    .ssb-cat-child .count {
        color: #535860;
        font-size: 12px;
        background: none;
        padding: 0;
        border-radius: 0;
        font-weight: normal;
        margin-left: 0;
    }
    
    .ssb-range-labels {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #6b7280;
        margin-top: 4px;
    }
    
    .ssb-filter-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
    }
    
    .ssb-filter-actions .button.primary {
        background: #dc2626;
        color: #fff;
        border: 0;
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .ssb-filter-actions .button.primary:hover {
        background: #b91c1c;
        transform: translateY(-1px);
    }
    
    .ssb-filter-actions .button {
        background: #e5e7eb;
        color: #111827;
        border: 0;
        padding: 12px;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .ssb-filter-actions .button:hover {
        background: #d1d5db;
    }
    
    /* Single range sliders - match demo exactly */
    .ssb-single-range {
        width: 100%;
        height: 4px;
        background: #e5e7eb;
        border-radius: 999px;
        outline: none;
        margin: 8px 0;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .ssb-single-range::-webkit-slider-track {
        height: 4px;
        background: #e5e7eb;
        border-radius: 999px;
    }
    
    .ssb-single-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        background: #3b82f6;
        border-radius: 50%;
        cursor: pointer;
        border: 2px solid #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .ssb-single-range::-moz-range-track {
        height: 4px;
        background: #e5e7eb;
        border-radius: 999px;
        border: none;
    }
    
    .ssb-single-range::-moz-range-thumb {
        width: 16px;
        height: 16px;
        background: #3b82f6;
        border-radius: 50%;
        cursor: pointer;
        border: 2px solid #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
	.category-page-row {
		padding-top: 0px!important;
	}
    
    /* Mobile responsive - integrate with Flatsome filter button */
    @media (max-width: 849px) {
        /* Override Flatsome hide-for-medium class */
        #shop-sidebar.hide-for-medium {
            display: block !important;
        }
        
         /* Mobile responsive cho Môi trường sử dụng - 1 cột */
         #ssb-filter-pa_moi-truong-su-dung {
             display: block !important;
         }
        
         /* Mobile responsive cho Kích thước - tối ưu cho mobile */
         #ssb-filter-pa_kich-thuoc li {
             min-width: 80px !important;
             padding: 12px 25px !important;
             font-size: 13px !important;
             margin-bottom: 4px !important;
         }
         
         /* Tối ưu gap cho mobile */
         #ssb-filter-pa_kich-thuoc {
             gap: 6px !important;
         }
        
        #shop-sidebar {
            position: fixed !important;
            top: 0;
            left: 0;
            height: 100vh;
            width: 85vw;
            max-width: 340px;
            background: #fff !important;
            z-index: 10001 !important;
            overflow-y: auto;
            transform: translateX(-100%) !important;
            transition: transform 0.3s ease !important;
            padding: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.25);
            opacity: 1 !important;
            visibility: visible !important;
        }
        
        #shop-sidebar.is-open {
            transform: translateX(0) !important;
            opacity: 1 !important;
            visibility: visible !important;
        }
        
        /* Đảm bảo sidebar hiển thị khi được mở bởi Flatsome */
        #shop-sidebar[aria-expanded="true"] {
            transform: translateX(0) !important;
            opacity: 1 !important;
            visibility: visible !important;
        }
        
        /* Đảm bảo nội dung sidebar hiển thị rõ ràng */
        #shop-sidebar * {
            opacity: 1 !important;
            visibility: visible !important;
            color: inherit !important;
        }
        
        
        /* Đảm bảo text hiển thị rõ */
        #shop-sidebar h3,
        #shop-sidebar p,
        #shop-sidebar span,
        #shop-sidebar label,
        #shop-sidebar strong {
            color: #333 !important;
            opacity: 1 !important;
            visibility: visible !important;
        }
        
        
        /* Đảm bảo mobile actions hiển thị trên mobile */
        #shop-sidebar .ssb-mobile-actions {
            display: flex !important;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid #e5e7eb;
            position: relative;
        }
        
        #shop-sidebar .ssb-mobile-actions strong {
            font-size: 18px;
            font-weight: 700;
            color: #1f2937;
        }
        
        #shop-sidebar .ssb-close {
            background: none;
            border: none;
            font-size: 20px;
            line-height: 1;
            cursor: pointer;
            color: #6b7280;
            padding: 4px;
            border-radius: 4px;
            transition: all 0.2s ease;
            position: absolute;
            top: 0;
            right: 0;
        }
        
        #shop-sidebar .ssb-close:hover {
            color: #374151;
            background: #f3f4f6;
        }
        
        .ssb-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.45);
            z-index: 10000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        
        .ssb-backdrop.is-open {
            opacity: 1;
            pointer-events: auto;
        }
        
        
        .show-for-small {
            display: block !important;
        }
    }
    
    @media (min-width: 850px) {
        .show-for-small {
            display: none !important;
        }
    }
    
    /* =============================
       FLATSOME FILTER BUTTON INTEGRATION
       ============================= */
    /* Style cho nút filter mặc định của Flatsome */
    .filter-button {
        background: #1e40af !important;
        color: #ffffff !important;
        border: none !important;
        padding: 12px 20px !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3) !important;
    }
    
    .filter-button:hover {
        background: #1e3a8a !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4) !important;
        color: #ffffff !important;
    }
    
    .filter-button:focus {
        outline: 2px solid #3b82f6 !important;
        outline-offset: 2px !important;
    }
    
    /* Mobile responsive cho filter button */
    @media (max-width: 849px) {
        .filter-button {
            width: 100% !important;
            justify-content: center !important;
            margin-bottom: 15px !important;
        }
        
        .category-filtering {
            margin-bottom: 20px !important;
        }
    }
    
    /* =============================
       SHORTCODE WIDGET STYLES
       ============================= */
    
    /* Môi trường sử dụng cho shortcode widget */
    .ssb-filter-sidebar-widget #ssb-filter-pa_moi-truong-su-dung {
        display: block !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .ssb-filter-sidebar-widget #ssb-filter-pa_moi-truong-su-dung li {
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    .ssb-filter-sidebar-widget #ssb-filter-pa_moi-truong-su-dung label {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        cursor: pointer !important;
        font-size: 14px !important;
        color: #374151 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .ssb-filter-sidebar-widget #ssb-filter-pa_moi-truong-su-dung input[type="checkbox"] {
        margin-right: 8px !important;
        width: 16px !important;
        height: 16px !important;
        accent-color: #14b8a6 !important;
        border-radius: 4px !important;
    }
    
    .ssb-filter-sidebar-widget #ssb-filter-pa_moi-truong-su-dung .count {
        color: #535860 !important;
        font-size: 12px !important;
        margin-left: 4px !important;
    }
    
    /* Kích thước cho shortcode widget */
    .ssb-filter-sidebar-widget #ssb-filter-pa_kich-thuoc {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .ssb-filter-sidebar-widget #ssb-filter-pa_kich-thuoc li {
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        position: relative !important;
    }
    
    .ssb-filter-sidebar-widget #ssb-filter-pa_kich-thuoc label {
        display: none !important;
    }
    
    .ssb-filter-sidebar-widget #ssb-filter-pa_kich-thuoc input[type="checkbox"] {
        display: none !important;
    }
    
     .ssb-filter-sidebar-widget #ssb-filter-pa_kich-thuoc li {
         display: inline-block !important;
         padding: 15px 50px !important;
         background: #f3f4f6 !important;
         color: #374151 !important;
         border: 1px solid #e5e7eb !important;
         border-radius: 999px !important;
         font-size: 14px !important;
         cursor: pointer !important;
         transition: all 0.2s ease !important;
         text-align: center !important;
         min-width: 90px !important;
         position: relative !important;
     }
    
    .ssb-filter-sidebar-widget #ssb-filter-pa_kich-thuoc li:hover {
        background: #ecfdf5 !important;
        color: #047857 !important;
        border-color: #14b8a6 !important;
    }
    
    .ssb-filter-sidebar-widget #ssb-filter-pa_kich-thuoc li.selected {
        background: #14b8a6 !important;
        color: #ffffff !important;
        border-color: #14b8a6 !important;
    }
    
    .ssb-filter-sidebar-widget #ssb-filter-pa_kich-thuoc li::after {
        content: attr(data-size) !important;
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        pointer-events: none !important;
        white-space: nowrap !important;
    }
    .ssb-filter-sidebar-widget {
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        padding: 24px;
        margin-bottom: 20px;
    }
    
    .ssb-filter-sidebar-widget .ssb-filter-box {
        background: transparent;
        padding: 0;
    }
    
    .ssb-filter-sidebar-widget .widget-title {
        font-size: 20px;
        font-weight: 800;
        color: #0f172a;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 10px;
        margin-bottom: 16px;
    }
    
    .ssb-filter-sidebar-widget .ssb-filter-group {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #e5e7eb;
    }
    
    .ssb-filter-sidebar-widget .ssb-filter-group:first-child {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }
    
    .ssb-filter-sidebar-widget .ssb-filter-label {
        color: #1f2937;
        margin-bottom: 8px;
        font-weight: 500;
    }
    
    .ssb-filter-sidebar-widget .ssb-filter-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .ssb-filter-sidebar-widget .ssb-filter-list li {
        padding: 6px 0;
        color: #374151;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .ssb-filter-sidebar-widget .ssb-filter-list label {
        display: flex;
        align-items: center;
        width: 100%;
        cursor: pointer;
    }
    
    .ssb-filter-sidebar-widget .ssb-filter-list input[type="checkbox"],
    .ssb-filter-sidebar-widget .ssb-filter-list input[type="radio"] {
        margin-right: 8px;
        width: 16px;
        height: 16px;
        accent-color: #3b82f6;
    }
    
    .ssb-filter-sidebar-widget .ssb-filter-list .count {
        color: #6b7280;
        font-size: 12px;
    }
    
    .ssb-filter-sidebar-widget .ssb-category-links {
        list-style: none !important;
        margin: 0;
        padding: 0;
    }
    
    .ssb-filter-sidebar-widget .ssb-category-links li {
        list-style: none !important;
        list-style-type: none !important;
        padding: 8px 0;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .ssb-filter-sidebar-widget .ssb-category-links li:last-child {
        border-bottom: none;
    }
    
    .ssb-filter-sidebar-widget .ssb-category-links li a {
        color: #374151;
        text-decoration: none;
        font-size: 14px;
        display: block;
        transition: all 0.2s ease;
    }
    
    .ssb-filter-sidebar-widget .ssb-category-links li a:hover {
        color: #3b82f6;
        padding-left: 5px;
    }
    
    .ssb-filter-sidebar-widget .ssb-category-links li.current-cat a {
        color: #dc2626;
        font-weight: 500;
    }
    
    .ssb-filter-sidebar-widget .ssb-category-links .count {
        color: #6b7280;
        font-size: 12px;
    }
    
    .ssb-filter-sidebar-widget .ssb-range-labels {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #6b7280;
        margin-top: 4px;
    }
    
    .ssb-filter-sidebar-widget .ssb-filter-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
    }
    
    .ssb-filter-sidebar-widget .ssb-filter-actions .button.primary {
        background: #dc2626;
        color: #fff;
        border: 0;
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .ssb-filter-sidebar-widget .ssb-filter-actions .button.primary:hover {
        background: #b91c1c;
        transform: translateY(-1px);
    }
    
    .ssb-filter-sidebar-widget .ssb-filter-actions .button {
        background: #e5e7eb;
        color: #111827;
        border: 0;
        padding: 12px;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .ssb-filter-sidebar-widget .ssb-filter-actions .button:hover {
        background: #d1d5db;
    }
    
    .ssb-filter-sidebar-widget .ssb-single-range {
        width: 100%;
        height: 4px;
        background: #e5e7eb;
        border-radius: 999px;
        outline: none;
        margin: 8px 0;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .ssb-filter-sidebar-widget .ssb-single-range::-webkit-slider-track {
        height: 4px;
        background: #e5e7eb;
        border-radius: 999px;
    }
    
    .ssb-filter-sidebar-widget .ssb-single-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        background: #3b82f6;
        border-radius: 50%;
        cursor: pointer;
        border: 2px solid #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .ssb-filter-sidebar-widget .ssb-single-range::-moz-range-track {
        height: 4px;
        background: #e5e7eb;
        border-radius: 999px;
        border: none;
    }
    
        .ssb-filter-sidebar-widget .ssb-single-range::-moz-range-thumb {
            width: 16px;
            height: 16px;
            background: #3b82f6;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid #fff;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
    
    /* Mobile responsive cho shortcode widget */
    @media (max-width: 849px) {
         .ssb-filter-sidebar-widget #ssb-filter-pa_moi-truong-su-dung {
             display: block !important;
         }
        
         .ssb-filter-sidebar-widget #ssb-filter-pa_kich-thuoc li {
             min-width: 80px !important;
             padding: 12px 25px !important;
             font-size: 13px !important;
             margin-bottom: 4px !important;
         }
         
         /* Tối ưu gap cho shortcode widget mobile */
         .ssb-filter-sidebar-widget #ssb-filter-pa_kich-thuoc {
             gap: 6px !important;
         }
    }
    
    
    h1, h2, h3, h4, h5, h6 {
        font-weight: bold !important;
    }
    
    /*Danh mục*/
    /* Override Flatsome row margins */
    .container .row:not(.row-collapse),
    .lightbox-content,
    .row:not(.row-collapse) .row.gallery,
    .row .row:not(.row-collapse) {
        margin-left: 0 !important;
    }
    
    /* Giảm khoảng cách giữa breadcrumb và nội dung */
    .woocommerce-breadcrumb,
    .woocommerce-result-count,
    .woocommerce-ordering {
        margin-bottom: 10px !important;
    }
    
    /* Giảm padding của main content area */
    #content .page-wrapper {
        padding-top: 0 !important;
    }
    
    /* Giảm margin của category header */
    .category-header-box {
        margin-bottom: 20px !important;
    }
    
    .category-page-row {
        display: flex;
        margin-top: 0 !important;
        margin-left: 0 !important;
    }
    
    .sidebar-col {
        flex: 0 0 300px;
    }
    
    .main-content-col {
        flex: 1;
        max-width: calc(100% - 325px);
    }
    
    @media (max-width: 991px) {
        .category-page-row {
            flex-direction: column;
            gap: 20px;
        }
        
        .sidebar-col {
            flex: 0 0 100%;
            order: 2;
            width: 100%;
        }
        
        .main-content-col {
            order: 1;
            max-width: 100%;
        }
    }
    
    /* ===================================
       2. CATEGORY HEADER BOX (H1 + Nội dung)
       =================================== */
    .category-header-box {
        background: #fff;
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border-left: 8px solid #ef4444;
        margin-bottom: 30px;
    }
    
    /* H1 = Mô tả SEO từ Rank Math */
    .category-header-box h1.page-title {
        font-size: 32px;
        font-weight: 800;
        color: #1e40af;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    /* Nội dung trên cùng (Description gốc) */
    .category-header-box .category-description {
        color: #4b5563;
        line-height: 1.7;
        font-size: 15px;
    }
    
    .category-header-box .category-description p {
        margin-bottom: 12px;
    }
    
    @media (max-width: 768px) {
        .category-header-box h1.page-title {
            font-size: 24px;
        }
    }
    
    /* ===================================
       3. WIDGET DANH MỤC SẢN PHẨM
       =================================== */
    .category-widget-box {
        background: #fff;
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1);
        border-top: 4px solid #3b82f6;
        margin-bottom: 25px;
    }
    
    .widget-title-custom {
        font-size: 20px;
        font-weight: 700;
        color: #1e40af;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .product-categories-custom {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .product-categories-custom li {
        padding: 10px 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .product-categories-custom li:last-child {
        border-bottom: none;
    }
    
    .product-categories-custom li a {
        color: #374151;
        text-decoration: none;
        font-weight: 500;
        display: block;
        transition: all 0.2s ease;
    }
    
    .product-categories-custom li a:hover {
        color: #3b82f6;
        padding-left: 8px;
    }
    
    .product-categories-custom li.current-cat a {
        color: #dc2626;
        font-weight: 500;
    }
    
    /* ===================================
       4. WIDGET BỘ LỌC THƯƠNG HIỆU
       =================================== */
    .brand-filter-box {
        background: #fff;
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1);
        margin-bottom: 25px;
    }
    
    .brand-filter-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .brand-filter-list li {
        padding: 8px 0;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .brand-filter-list li:last-child {
        border-bottom: none;
    }
    
    .brand-filter-list li a {
        color: #374151;
        text-decoration: none;
        font-size: 14px;
        display: block;
        transition: all 0.2s ease;
    }
    
    .brand-filter-list li a:hover {
        color: #3b82f6;
        padding-left: 5px;
    }
    
    /* ===================================
       5. WIDGET CTA BOX
       =================================== */
    .cta-box-widget {
        background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(29, 78, 216, 0.3);
        text-align: center;
        color: #fff;
    }
    
    .cta-box-widget .cta-title {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 12px;
        color: #fff;
    }
    
    .cta-box-widget .cta-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
        color: rgba(255, 255, 255, 0.95);
    }
    
    .cta-box-widget .cta-button {
        display: inline-block;
        width: 100%;
        background: #dc2626;
        color: #fff;
        padding: 12px 20px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 500;
        font-size: 16px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    }
    
    .cta-box-widget .cta-button:hover {
        background: #b91c1c;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.6);
        color: #fff;
    }
    
    /* ===================================
       6. BOTTOM CONTENT (Nội dung chuyên sâu)
       =================================== */
    .category-bottom-content {
        background: #fff;
        padding: 40px;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        border-top: 4px solid #10b981;
        margin-top: 40px;
    }
    
    .category-bottom-content h2 {
        font-size: 28px;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 25px;
    }
    
    .category-bottom-content h3 {
        font-size: 20px;
        font-weight: 600;
        color: #1e40af;
        margin: 30px 0 15px 0;
    }
    
    .category-bottom-content p {
        color: #4b5563;
        line-height: 1.8;
        margin-bottom: 15px;
        font-size: 15px;
    }
    
    .category-bottom-content ul {
        margin: 15px 0 15px 25px;
    }
    
    .category-bottom-content ul li {
        color: #4b5563;
        line-height: 1.8;
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    /* ===================================
       7. BREADCRUMB - ĐÃ BỊ BỎ
       =================================== */
    /* Breadcrumb đã bị bỏ theo yêu cầu */
    
    /* ===================================
       8. RESPONSIVE ADJUSTMENTS
       =================================== */
    @media (max-width: 768px) {
        .category-header-box {
            padding: 20px;
        }
        
        .category-widget-box,
        .brand-filter-box,
        .cta-box-widget {
            padding: 20px;
        }
        
        .category-bottom-content {
            padding: 25px;
        }
        
        .category-bottom-content h2 {
            font-size: 22px;
        }
        
        .category-bottom-content h3 {
            font-size: 18px;
        }
    }
    
    /* ===================================
       9. TỐI ƯU HÓA CHO FLATSOME
       =================================== */
    /* Override Flatsome default styles nếu cần */
    .shop-container .sidebar-col .widget {
        margin-bottom: 0;
    }
    
    .shop-container .products {
        margin-top: 0;
    }
    
    /* Đảm bảo sidebar sticky khi scroll */
    .sidebar-col {
        position: sticky;
        top: 100px;
        align-self: flex-start;
    }
    
    @media (max-width: 991px) {
        .sidebar-col {
            position: relative;
            top: 0;
        }
    }
    
    /*Phân trang*/
    .nav-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 40px 0;
        padding: 20px 0;
    }
    
    /* All links and spans */
    .nav-pagination a,
    .nav-pagination span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 44px;
        padding: 0 16px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        background: #fff;
        color: #374151;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    /* Hover state */
    .nav-pagination a:hover {
        background: #f3f4f6;
        border-color: #d1d5db;
        color: #111827;
    }
    
    /* Current/Active page */
    .nav-pagination span.current,
    .nav-pagination .current {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff;
        cursor: default;
    }
    
    /* Prev/Next buttons */
    .nav-pagination .prev,
    .nav-pagination .next {
        font-size: 18px;
        padding: 0 12px;
    }
    
    /* Dots */
    .nav-pagination .dots {
        border: none;
        background: transparent;
        color: #9ca3af;
        cursor: default;
        pointer-events: none;
    }
    
    .nav-pagination .dots:hover {
        background: transparent;
        border: none;
    }
    
    /* Disabled state */
    .nav-pagination .disabled {
        opacity: 0.4;
        cursor: not-allowed;
        pointer-events: none;
    }
    
    /* Mobile responsive */
    @media (max-width: 768px) {
        .nav-pagination a,
        .nav-pagination span {
            min-width: 40px;
            height: 40px;
            padding: 0 12px;
            font-size: 13px;
        }
        
        .nav-pagination {
            gap: 6px;
        }
    }
/* Category Description Read More */
.category-description-wrapper {
    position: relative;
    margin-top: 10px;
}

.category-description {
    transition: max-height 0.3s ease, overflow 0.3s ease;
    text-align: left; /* Đảm bảo text description căn trái */
}

.category-description.collapsed {
    max-height: 100px; /* Chiều cao giới hạn - phải khớp với JavaScript */
    overflow: hidden;
    position: relative;
}

/* Gradient fade effect khi collapsed */
.category-description.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #fff 90%);
    pointer-events: none;
    z-index: 1;
}

.category-description.expanded {
    max-height: none !important;
    overflow: visible !important;
}

.category-description.expanded::after {
    display: none !important;
}

/* Read More Button Wrapper - Căn giữa */
.read-more-btn-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 16px;
    width: 100%;
    text-align: center;
}

/* Read More Button - Style giống ảnh */
.read-more-btn {
    background: #007cba !important; /* Màu xanh blue giống ảnh */
    border: none !important;
    color: #ffffff !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    display: flex !important;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.2);
    margin: 0 auto;
}

.read-more-btn:hover {
    background: #005a8b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
    color: #ffffff !important;
}

.read-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.read-more-btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 6px;
}

/* Icon tam giác */
.read-more-icon {
    display: inline-block;
    font-size: 10px;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #ffffff !important;
}

.read-more-btn:hover .read-more-icon {
    transform: translateY(2px);
}

/* Icon quay khi expanded (sẽ được xử lý bởi JavaScript) */
.read-more-icon.rotated {
    transform: rotate(180deg) !important;
}

.read-more-text,
.read-less-text {
    display: inline;
    color: #ffffff !important;
}