*{
    margin: 0px;
    padding: 0px;
    box-sizing:border-box;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    background-color: #1ea0ed;
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin-bottom: 5px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #fd7b1f;
}

.product-item p {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-item a {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.product-item a:hover {
    background-color: #0056b3;
}

footer {
    text-align: center;
    padding: 10px 0px;
    background-color: #333;
    color: #fff;
    position: sticky;
    bottom: 0;
    width: 100%;
}

.product_detail_layout{
    margin-top: 20px;
    display: flex;
}

.product_detail_thumb_layout{
    flex:1;
    padding: 5px;
}

.product_detail_description_layout{
    flex:1;
    padding: 5px;
}

/* Responsive layout */
@media (max-width: 768px) {
    .product-list {
        grid-template-columns: 1fr; /* Hiển thị một cột trên màn hình nhỏ */
    }

    .product_detail_layout {
        flex-direction: column;
    }

    .product_detail_thumb_layout{
        flex:1;
        padding: 5px;
    }

    .product_detail_description_layout{
        flex:1;
        padding: 5px;
    }

    .hide{
        display: none;
    }

}