/* Style cho bộ lọc */
.filter-section {
    margin-bottom: 20px;
}

.filter-section h3 {
    font-size: 19px;
    margin-bottom: 15px;
    color: #fff;
    background: linear-gradient(90deg, #c00c13 0, #ed1c24 100%);
    padding: 10px 20px;
}

.filter-list {
    list-style: none;
    padding: 0;
}

.filter-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 17px;
}

.filter-list .sf-input-checkbox {
    margin-right: 10px;
    margin-top: 0;
    margin-bottom: 0;
}

.filter-list .sf-label-checkbox {
    cursor: pointer;
    margin-bottom: 0;
}

.filter-buttons {
    display: none;
}

.filter-close {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #000;
    color: #fff;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    margin: 0;
}

#sidebar-toggle {
    display: none;
    position: absolute;
    top: 50%;
    right: -35px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.5s ease;
    opacity: .8;
}

button.load-more {
    margin: 20px auto;
    display: block;
    padding: 0px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

button.load-more:hover {
    background: #b3563a;
}

/* Responsive adjustments */
@media (min-width: 850px) {
    .filter-close {
        display: none;
    }
}

@media (max-width: 849px) {
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 250px;
        height: 85vh;
        z-index: 1001;
        background: #ffffff;
        display: flex;
        transform: translateX(-250px);
        flex-direction: column;
        justify-content: center;
    }
    .sidebar:not(.hide) {
        transform: translateX(0);
    }

    #sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sidebar.hide #sidebar-toggle {
        transform: rotate(180deg);
    }

    .sidebar.active>.toggle {
        transform: rotate(0deg);
        transition: transform 1s ease;
    }

    .page-template-page-san-pham .section {
        padding-bottom: 50px !important;
    }

    .filter-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
    }
    .filter-open {
        display: block;
        padding: 0px 20px;
        font-size: 1rem;
        border: none;
        background: var(--primary-color);
        color: #fff;
        cursor: pointer;
        margin: 0;
    }
    .filter-reset {
        padding: 0px 20px;
        font-size: 1rem;
        border: none;
        background: #000;
        color: #fff;
        cursor: pointer;
        margin: 0;
    }
    .sidebar.hide .filter-open {
        display: flex !important;
    }
}

/* Style cho danh sách sản phẩm */
.products.row-small {
    --columns: 3; /* 3 cột trên desktop */
}

@media (max-width: 767px) {
    .products.row-small {
        --columns: 1; /* 2 cột trên mobile */
    }
	.shop-container .products.row{
		display: flex;
		justify-content: center;
	}
}