/* Reset CSS để đảm bảo các trình duyệt bắt đầu từ cùng một trạng thái */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    overflow: auto; /* Cho phép cuộn nội dung */
}

.product {
    border: none;
    box-shadow: none;
    border-radius: 8px;
    padding: 20px;
    background-color: white;
    max-width: 800px; /* Giới hạn chiều rộng tối đa của phần tử */
    box-sizing: border-box;
    text-align: center;
    margin: 20px; /* Đảm bảo khoảng cách xung quanh sản phẩm */
}

.product img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
}

.product h2 {
    color: #FF69B4; /* Màu hồng cánh sen */
    margin-bottom: 20px;
    font-size: 36px;
    font-family: "Times New Roman", serif;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.buttons a {
    text-decoration: none;
    padding: 10px 15px; /* Giảm padding */
    border-radius: 8px;
    font-size: 16px; /* Giảm kích thước chữ */
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(33.333% - 20px); /* Đặt chiều rộng cho 3 cột */
    box-sizing: border-box;
    text-align: center;
    margin: 5px; /* Thêm khoảng cách giữa các nút */
}

.btn-grab {
    background-color: #00b14f;
    color: #f2eb99;
}

.btn-grab:hover {
    background-color: #45a049;
}

.btn-grabmart {
    background-color: #00b14f;
    color: #f2eb99;
}

.btn-grabmart:hover {
    background-color: #45a049;
}

.btn-shopee {
    background-color: #ff5722;
    color: #f2eb99;
}

.btn-shopee:hover {
    background-color: #E64A19;
}

.btn-be {
    background-color: #FFD700;
    color: #91785d;
}

.btn-be:hover {
    background-color: #FFC107;
}

.btn-maps {
    background-color: #4285F4;
    color: #f2eb99;
}

.btn-maps:hover {
    background-color: #FFA000;
}

.btn-zalo {
    background-color: #0068FF;
    color: #f2eb99;
}

.btn-zalo:hover {
    background-color: #0097A7;
}

.btn-phone {
    background-color: #8BC34A;
    color: #f2eb99;
}

.btn-phone:hover {
    background-color: #7CB342;
}

.btn-email {
    background-color: #9C27B0;
    color: #ffffff;
}

.btn-email:hover {
    background-color: #8E24AA;
}

/* Media Queries cho thiết bị di động */
@media (max-width: 768px) {
    .product {
        max-width: 95%;
    }
    .product h2 {
        font-size: 28px;
    }
    .buttons {
        flex-direction: column;
    }
    .buttons a {
        width: 50%;
        font-size: 16px; /* Giảm kích thước chữ */
        padding: 8px; /* Giảm padding */
        margin: 5px 0;
    }
}

/* Media Queries cho máy tính bảng */
@media (min-width: 769px) and (max-width: 1024px) {
    .product {
        max-width: 700px;
    }
    .product h2 {
        font-size: 32px;
    }
    .buttons {
        flex-direction: row;
    }
    .buttons a {
        width: calc(33.333% - 20px);
        font-size: 14px; /* Giảm kích thước chữ */
        padding: 10px; /* Giảm padding */
        margin: 5px;
    }
}

/* Media Queries cho máy tính để bàn */
@media (min-width: 1025px) {
    .product {
        max-width: 800px;
    }
    .product h2 {
        font-size: 36px;
    }
    .buttons {
        flex-direction: row;
    }
    .buttons a {
        width: calc(33.333% - 20px);
        font-size: 16px; /* Giảm kích thước chữ */
        padding: 10px 15px; /* Giảm padding */
    }
}

/* CSS cho footer cố định */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #6BBF59;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 18px;
    font-weight: bold;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}
