
.product {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    background-color: #fff;
    padding-top: 10px;
    width: 100%;
}

.sidebar {
    width: 50%;
    height: 30%;
    padding-left: 10px;
    padding-right: 20px;
    border: 1px solid #ddd;
}

.filter-product {
    margin-bottom: 20px;
    padding-top: 10px;
}

.filter-product h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.filter-product ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-product li {
    margin-bottom: 8px;
}

.filter-product label {
    display: flex;
    align-items: center;
    color: #555;

}

.filter-product input[type="checkbox"] {
    margin-right: 8px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;

}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    
}

.product-image {
    background-color: #ffffff;
    height: 250px; 
    background-size: cover;
    background-position: center;
    justify-content: center;
}

.product-info {
    padding: 15px;
}

.product-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
}

.product-price {
    color: #e44d26;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-price del {
    color: #777;
    margin-left: 5px;
}

.product-image img {
    height: 100%;
    width: auto;
    border-radius: 8px;
}

a{
    text-decoration: none;
}
@media (max-width: 900px) {
    .product {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;/* Điều chỉnh minmax quan trọng */
        padding: 10px; /* Giảm padding hơn nữa */
        gap: 10px; /* Giảm gap hơn nữa */
    }

    

    .product-card {
        margin: 0 auto; /* Căn giữa các thẻ sản phẩm */
        width: 50%; /* Giảm chiều rộng hơn nữa */
    }
    .product-image {
        height: 180px; /* Giảm chiều cao ảnh hơn nữa */
    }
}
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 10px;
    }

    .product-image {
        height: 200px; /* Tăng lại chiều cao ảnh cho 1 cột */
    }

    .product-title {
        font-size: 1em; /* Tăng lại kích thước tiêu đề cho 1 cột */
    }

    .product-price {
        font-size: 0.9em; /* Tăng lại kích thước giá cho 1 cột */
    }
}
