@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');


/* Tổng thể */
body {
    margin: 0;
    padding: 0;
    font-family: "Sarabun", sans-serif;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-y: auto; /* Đảm bảo có thể cuộn trang */
}

.poster {
    width: 80%;
    max-width: 700px;
    background: #fffaf0;
    border: 5px solid #d4af37;
    border-radius: 20px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    color: #333;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

/* Cải thiện logo */
/* Phần Logo */
.header-logo {
    text-align: center;
    margin-bottom: 20px;
}

.header-logo img {
    width: 120px; /* Điều chỉnh kích thước logo */
    height: auto;
    margin-bottom: -50px;
}

/* Phần Tiêu đề */
.header-title {
    background: linear-gradient(45deg, #d4af37, #f1c40f);
    color: white;
    padding: 30px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.header-title h1 {
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.header-title p {
    font-size: 1.2em;
    font-style: italic;
    margin-top: 10px;
}

/* Hình ảnh sản phẩm */
.product-image img {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    border-radius: 15px;
    border: 3px solid #d4af37;
    transition: transform 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.1);
}

/* Nội dung */
/* Cải thiện các icon emoji */
.section h2 {
    color: #d4af37;
    text-transform: uppercase;
    border-bottom: 3px solid #d4af37;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 1.8em;
    margin-top: 30px;
}

.section h2 span {
    
    margin-right: 10px;
}

.section p, .section ul {
    font-size: 1.1em;
    line-height: 1.6;
}


.section p {
    text-align: justify;
    padding-left: 5px;
}

/* Thành phần dinh dưỡng */
.card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.card-item {
    background: #d4af37;
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 1.1em;
}

.card-item img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.card-item:hover {
    transform: translateY(-10px);
}

/* Lợi ích */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.benefit-item {
    background: #f1c40f;
    color: #333;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.2em;
    text-align: left;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.benefit-item img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}

.benefit-item:hover {
    transform: translateY(-10px);
}

/* Các bước sử dụng */
.steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    overflow: auto;
}

.step {
    background: #f5b041;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-icon {
    background: #d4af37; /* Màu nền vàng */
    color: white; /* Màu chữ trắng */
    padding: 15px; /* Điều chỉnh kích thước padding để tạo vòng tròn đẹp */
    border-radius: 50%; /* Bo tròn hoàn toàn */
    width: 50px; /* Cố định kích thước của vòng tròn */
    display: flex; /* Dùng flex để căn giữa icon */
    align-items: center; /* Căn giữa theo chiều dọc */
    justify-content: center; /* Căn giữa theo chiều ngang */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Thêm hiệu ứng bóng cho icon */
}


/* Giá và nút */
.pricing {
    background: #d4af37;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.buy-now, .view-more {
    background: white;
    color: #d4af37;
    font-weight: bold;
    padding: 12px 30px;
    border: 2px solid #d4af37;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.buy-now:hover, .view-more:hover {
    background: #f1c40f;
}

/* Dialog */
.dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.dialog-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    width: 70%;
    max-width: 500px;
    text-align: center;
    font-size: 1.2em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.dialog-content h2 {
    font-size: 2em;
    color: #d4af37;
    margin-bottom: 20px;
}

.dialog-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.buy-options {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.buy-option {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.2em;
    color: #d4af37;
    font-weight: bold;
    transition: color 0.3s ease;
}

.buy-option img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.buy-option:hover {
    color: #f1c40f;
}

/* Nút đóng */
#close-dialog {
    margin-top: 20px;
    padding: 12px 30px;
    border: none;
    background: #d4af37;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background 0.3s ease;
}

#close-dialog:hover {
    background: #f1c40f;
}


h2 {
    margin-bottom: 5px;
}

#current-date {
    margin-bottom: 10px;
    font-style: italic;
    color: red;
}