.spinner {
    border: 8px solid #f3f3f3; 
    border-top: 8px solid #31190a70; 
    border-radius: 50%;
    width: 40px; 
    height: 40px;
    animation: spin 1s linear infinite; 
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 99999; 
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tổng quan cho container chính */
#products-filter {
    flex: 3;
    padding: 20px;
    border: solid 1px #31190a70;
    border-radius: 10px;
    height: 100%;
}

#products-filter .checkbox-group {
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 5px 10px 3px 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 280px;
}

#products-filter .checkbox-group label {
    font-size: 15px;
}

#products-filter {
    position: sticky; 
    top: 0px; 
    flex: 3; 
    padding: 20px;
    border: solid 1px #31190a70;
    border-radius: 10px;
    background-color: white; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); 
    z-index: 1; 
}

.form-filter {
    overflow-y: auto;
    max-height: calc(100vh - 60px);
}

.form-filter::-webkit-scrollbar {
    display: none; /* Ẩn thanh cuộn cho trình duyệt Webkit */
}

.form-filter {
    -ms-overflow-style: none;  /* Ẩn thanh cuộn cho IE và Edge */
    scrollbar-width: none;  /* Ẩn thanh cuộn cho Firefox */
}

.product-container  {
    display: flex;
    flex-direction: column;
    flex: 9; /* Chiếm 9 phần */
}

#product-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cột */
    flex: 9; /* Chiếm 9 phần */
}

/* Các sản phẩm */ 
.no-product {
    grid-column: 1 / 4; /* Chiếm toàn bộ 3 cột */
    grid-row: 1; /* Đặt ở hàng thứ 1 */
    display: flex; /* Để căn giữa văn bản */
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    height: 100%; /* Chiều cao 100% để căn giữa */
    text-align: center; /* Căn giữa nội dung văn bản */
    font-size: 25px;
}

.center {
    text-align: center;
}

.btn-cus {
    background-color: #31190a; /* Màu nền nổi bật */
    color: white; /* Màu chữ */
    padding: 10px 20px; /* Khoảng cách bên trong */
    border: none; /* Không có đường viền */
    border-radius: 25px; /* Bo góc */
    font-size: 16px; /* Kích thước chữ */
    cursor: pointer; /* Hiệu ứng con trỏ */
    transition: all 0.3s ease; /* Hiệu ứng chuyển tiếp */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Đổ bóng */
    font-weight: 600;
    text-transform: none;
}

.btn-cus:hover {
    background-color: #4a1c0a; /* Màu nền khi hover */
    transform: scale(1.05); /* Tăng kích thước khi hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Đổ bóng đậm hơn */
}

.pdt-20 {
    padding-top: 20px;
}

.product-small .col-inner .box-image img {
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
    transition: all 0.5s;
    height: 300px;
    position: relative;
    top: initial;
    left: initial;
    max-width: 245px;
}

#open-filter, #close-filter {
    display: none;
} 


/* Media query cho mobile */
@media (max-width: 768px) {
    #product-container {
        grid-template-columns: repeat(2, 1fr);
    }

    #product-container .product {
        padding: 0 10px 20px;
    }

    #products-filter {
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100vw; 
        height: 100vh; 
        background-color: white; 
        z-index: 9999; 
        display: none; 
        overflow-y: auto; 
        padding: 20px; 
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); 
        border: none;
        border-radius: 0;
    }

    .product-small .col-inner .box-image img {
        max-width: 180px;
    }

    .mobile {
        display: flex;
        flex-direction: column;
    }

    .close-btn {
        position: absolute;
        top: -10px;
        right: 16px;
        width: 24px;
        height: 24px;
        font-size: 30px;
        background: none;
        border: none;
        cursor: pointer;
        color: #31190a;
        padding: 0;
        margin: 0;
    }

    #open-filter, #close-filter {
        display: block;
    } 

    .flex-end {
        display: flex;
        align-items: flex-end;
        flex-direction: column;
    }

    body.no-scroll {
        overflow: hidden; /* Ẩn thanh cuộn */
    }
   
}