/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    margin-right: 15px;
}

.lang-btn {
    background-color: transparent;
    border: 1px solid #3A3A8B;
    color: #3A3A8B;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.lang-btn:hover, .lang-btn.active {
    background-color: #3A3A8B;
    color: white;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');


/* Global Styles */
body {
 font-family: 'Lato', sans-serif;
    /* Đổi màu chữ mặc định thành màu be nhạt để dễ đọc trên nền tối */
    color: #E0D9CD;
    margin: 0;

    /* --- PHẦN QUAN TRỌNG: THÊM NỀN CỐ ĐỊNH --- */
    
    /* 1. Đặt màu nền dự phòng, là màu xanh đen của bức ảnh */
    background-color: #2C2A4A; 
    
    /* 2. Đặt hình ảnh nền */
     background-image: 
        /* Lớp 1: Lớp phủ màu đen bán trong suốt (che khoảng 70%) */
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        
        /* Lớp 2: Lớp ảnh nền nằm bên dưới */
        url('assets/nen-dem-trang-ram.jpeg');
    
    /* 3. Căn ảnh luôn ở giữa */
    background-position: center center;
    
    /* 4. Không lặp lại ảnh */
    background-repeat: no-repeat;
    
    /* 5. GIM ẢNH CỐ ĐỊNH KHI CUỘN TRANG (Đây là chìa khóa!) */
    background-attachment: fixed;
    
    /* 6. Phóng to ảnh để luôn lấp đầy màn hình mà không làm méo ảnh */
    background-size: cover;
}

h1, h2, h3, h4 {
   font-family: 'Quicksand', sans-serif;
    color: #F1C40F; /* Màu vàng của vầng trăng */
}

a {
    color: #3A3A8B;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    background-color: #3A3A8B;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: scale(1.05);
}

/* Header */
header {
    position: sticky;
    top: 0;
    background-color: #FDFBF8;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 50px;
    border-bottom: 1px solid #E8E6F9;
    z-index: 1001;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #3A3A8B;
    margin: 5px 0;
    transition: 0.4s;
}

header nav {
    grid-column: 1;
    justify-self: start;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

header nav ul li a:hover {
    color: #FF6347;
    transform: scale(1.1);
}

.logo {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo img {
    height: 80px;
    margin-bottom: 10px;
}

.ribbon-banner {
    position: relative;
    background-color: white;
    padding: 10px 30px;
    border-top: 2px solid #40446D;
    border-bottom: 2px solid #40446D;
}

.ribbon-banner::before,
.ribbon-banner::after {
    content: '';
    position: absolute;
    top: -2px;
    width: 0;
    height: 0;
    border-style: solid;
}

.ribbon-banner::before {
    left: -17px;
    border-width: 26px 17px 26px 0;
    border-color: transparent #40446D transparent transparent;
}

.ribbon-banner::after {
    right: -17px;
    border-width: 26px 0 26px 17px;
    border-color: transparent transparent transparent #40446D;
}

.main-text {
    font-family: 'Nunito', 'Quicksand', sans-serif;
    font-weight: 700;
    color: #40446D;
    letter-spacing: -0.5px;
    font-size: 1.5em;
}

.subtext {
    font-family: 'Montserrat', 'Lato', sans-serif;
    font-weight: 300;
    color: #40446D;
    letter-spacing: 2px;
    margin-top: 10px;
    font-size: 0.9em;
}

.actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    margin-right: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a img {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background-color: #E8E6F9;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(253, 251, 248, 0.98);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav ul li {
    margin: 20px 0;
}

.mobile-nav .mobile-order-btn {
    background-color: #FF6347;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1em;
    display: inline-block;
    margin-top: 15px;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2.5em;
    color: #3A3A8B;
    cursor: pointer;
}


/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("assets/hinh-nen-website.jpg");
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    text-align: center;
    padding: 100px 20px;
}

.hero .hero-title {
    font-size: 4.5em;
    color: white;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    margin: 0;
    font-weight: 700;
}

.hero .hero-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 3em;
    color:#F1C40F;
    text-shadow: 0 4px 12px rgba(0,0,0,0.7);
    margin-top: 0.25em;
    font-weight: 600;
}

/* Top Flavors */
.top-flavors {
    padding: 50px;
    text-align: center;
}

.flavor-grid {
    margin-top: 20px;
    width: 100%;
}

/* CTA */
.cta {
    text-align: center;
    padding: 50px 20px;
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 50px;
    text-align: center;
    background-color: #F8D9C0;
}

.service-item img {
    height: 50px;
}

/* Motto Section */
#motto {
    padding: 50px;
    text-align: center;
    background-color: #FDFBF8;
}

.motto-heading {
    font-size: 3em;
    color: #3A3A8B;
    margin-bottom: 50px;
}

.motto-columns {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.motto-column {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 30px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.motto-column:hover {
    transform: scale(1.05);
}

.motto-column h3 {
    color: #40446D;
    margin-top: 15px;
    font-size: 1.5em;
}

.motto-column p {
    color: #666666;
    line-height: 1.6;
}

.motto-icon {
    width: 80px;
    height: 80px;
    background-color: #E8E6F9;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #3A3A8B;
}

.motto-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Menu Section */
#menu {
    padding: 50px;
    text-align: center;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.menu-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.menu-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-item:hover .menu-item-overlay {
    opacity: 1;
}

.more-info-button {
    background-color: #FF6347;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transform: translateY(20px);
    transition: transform 0.3s ease-in-out;
}

.menu-item:hover .more-info-button {
    transform: translateY(0);
}

.menu-item img {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.menu-item p {
    font-weight: bold;
    color: #40446D;
    font-size: 1.2em;
}

/* Contact Section */
#contact {
    padding: 50px;
    text-align: center;
}

.location-hours {
    text-align: center;
    margin-top: 50px;
}

#map {
    background-color: #eee;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: #F8D9C0;
    padding: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-info-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}
.footer-icon {
    width: 35px;
    height: auto;
    margin-right: 10px;
    flex-shrink: 0;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #3A3A8B;
}

/* Marquee Styles */
.marquee-container {
    max-width: 200px;
}

.marquee {
    background-color: #1a1a1a;
    border: 5px solid #c0c0c0;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.75), inset 0 0 5px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.marquee-border {
    position: relative;
    border: 2px solid #888;
    border-radius: 8px;
    padding: 2px;
}

.marquee-lights-container {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
}

.light {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #444;
    border-radius: 50%;
    animation: chase 1.5s infinite;
}

@keyframes chase {
    0% { background-color: #444; box-shadow: none; }
    50% { background-color: #ffdd88; box-shadow: 0 0 15px #ffdd88, 0 0 25px #ffdd88; }
    100% { background-color: #444; box-shadow: none; }
}

.marquee-content {
    text-align: center;
}

.marquee-title {
    font-family: 'Noto Serif', serif;
    font-size: 1.8em;
    color: #ffeeaa;
    text-shadow:
        0 0 2px #ffeeaa,
        0 0 5px #ffeeaa,
        2px 2px 1px #444;
    margin: 0 0 5px 0;
}

.marquee-ticker-container {
    width: 100%;
    overflow: hidden;
    background-color: #000;
    border-radius: 5px;
    display: flex;
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    animation: scroll-left 15s linear infinite;
}

.marquee-ticker {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0 1.5rem;
}

.marquee-ticker p {
    margin: 0;
    padding: 2px 0;
    color: #ffeeaa;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 0.8em;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

#chat-button {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    padding: 0;
}

#chat-button img {
    width: 100%;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
}

.carousel-window {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.product-card {
    flex: 0 0 calc(100% / 4);
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
    position: relative;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-image-container img {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

.quick-view-button {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
    border: none;
}

.product-image-container:hover .quick-view-button {
    opacity: 1;
}

.product-name {
    margin-top: 10px;
    font-weight: bold;
    color: #3A3A8B;
}

.product-price {
    color: #FF6347;
    font-weight: bold;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 1.5em;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}
/* Thêm các quy tắc này để thẻ link hoạt động tốt trong carousel */
.product-link {
    text-decoration: none; /* Bỏ gạch chân mặc định của link */
    color: inherit; /* Link sẽ có màu giống như text bình thường */
    display: block; /* Giúp link chiếm toàn bộ không gian của thẻ card */
}

.product-link:hover .product-name {
    color: #FF6347; /* Đổi màu tên sản phẩm khi hover, tạo hiệu ứng tương tác */
}

/* Social Links in Footer */
.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease-in-out;
}

.social-links .social-icon {
    width: 35px;
    height: 35px;
    display: block;
}

.social-links a span {
    display: none;
}

.social-links a:hover {
    transform: translateY(-8px) scale(1.1);
}

/* Mega Menu Styles */
.has-mega-menu {
    position: relative;
}

.mega-menu {
    display: none;
    position: absolute;
    left: -100px;
    width: 22vw;
    background-color: #FDFBF8;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    padding: 20px 0;
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    top: 100%;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.has-mega-menu:hover .mega-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mega-menu-column {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.mega-menu-column h3 {
    color: #40446D;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 1px solid #E8E6F9;
    padding-bottom: 10px;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li a {
    display: block;
    padding: 8px 0;
    color: #333333;
    transition: color 0.2s ease;
}

.mega-menu-column ul li a:hover {
    color: #FF6347;
    text-decoration: none;
}

.menu-item-best-seller {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  padding-right: 28px !important;
}

.menu-item-best-seller img {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: auto;
}
/* ======================================================= */
/* ===== BẮT ĐẦU CODE CSS CHO TRANG MENU ===== */
/* ======================================================= */

/* --- Bố cục chính cho trang Menu --- */
.menu-page-container {
    display: grid;
    grid-template-columns: 280px 1fr; /* Cột trái 280px, cột phải chiếm phần còn lại */
    gap: 40px;
    padding: 40px 50px; /* Padding giống header */
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Định dạng Cột Lọc bên trái --- */
.filter-sidebar {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: fit-content; /* Chiều cao vừa đủ với nội dung */
}

.filter-title {
    font-family: 'Quicksand', sans-serif;
    color: #40446D;
    margin-top: 0;
    font-size: 1.3em;
    border-bottom: 2px solid #E8E6F9;
    padding-bottom: 15px;
    white-space: nowrap;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.filter-list li {
    margin-bottom: 12px;
}

/* --- Tạo radio button tùy chỉnh --- */
.filter-list input[type="radio"] {
    display: none; /* Ẩn radio button gốc */
}

.filter-list label {
    font-family: 'Lato', sans-serif;
    color: #333333;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
    font-size: 1.1em;
    transition: color 0.2s ease;
}

.filter-list label:hover {
    color: #FF6347;
}

/* Vòng tròn bên ngoài */
.filter-list label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #E8E6F9;
    border-radius: 50%;
    background-color: #FFFFFF;
}

/* Dấu chấm bên trong khi được chọn */
.filter-list input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #FF6347;
    border-radius: 50%;
}

.filter-list input[type="radio"]:checked + label {
    color: #3A3A8B;
    font-weight: bold;
}

/* --- Định dạng Lưới Sản phẩm bên phải --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Lưới responsive */
    gap: 30px;
}

/* --- Định dạng Thẻ Sản phẩm (Product Card) --- */
.product-grid .product-card { /* Thêm .product-grid để tăng độ ưu tiên */
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: unset; /* Hủy bỏ thuộc tính flex từ mobile */
}

.product-grid .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-grid .product-image-wrapper { /* Thêm .product-grid */
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-grid .product-image-wrapper img { /* Thêm .product-grid */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-grid .product-name { color: #40446D; font-size: 1.2em; }
.product-grid .product-price { color: #FF6347; font-weight: bold; }
.product-grid .product-button { background-color: #3A3A8B; }
.product-grid .product-button:hover { background-color: #FF6347; }

/* Ẩn card khi không khớp bộ lọc */
.product-card.hidden {
    display: none;
}

/* ======================================================= */
/* ===== BẮT ĐẦU CODE CSS CHO TRANG DỊCH VỤ ===== */
/* ======================================================= */

.dich-vu-container {
    padding: 50px;
    text-align: center;
}

.dich-vu-title {
    font-size: 3em;
    color: #F1C40F;
    margin-bottom: 20px;
}

.dich-vu-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2em;
    color: #E0D9CD;
    margin-bottom: 50px;
    /* Các thuộc tính này sẽ được kích hoạt bởi JavaScript */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Khi JS thêm class 'animate', hiệu ứng sẽ chạy */
.dich-vu-subtitle.animate {
    opacity: 1;
    transform: translateY(0);
}

.dich-vu-grid {
    display: grid;
    /* Đây là grid tự động responsive, rất tốt! */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.dich-vu-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dich-vu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dich-vu-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dich-vu-item:hover img {
    transform: scale(1.05);
}

.dich-vu-item p {
    font-weight: bold;
    color: #40446D;
    font-size: 1.5em;
    padding: 20px;
    margin: 0;
    background-color: #FFFFFF;
}

/* Lớp phủ và nút bấm khi hover chuột */
.dich-vu-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dich-vu-item:hover .dich-vu-item-overlay {
    opacity: 1;
}

/* ======================================================= */
/* =====     BẮT ĐẦU CODE CSS CHO TRANG KHUYẾN MÃI     ===== */
/* ======================================================= */

.promotion-page-container {
    padding: 50px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden; /* Ngăn cuộn ngang không mong muốn */
}

.promotion-main-title {
    font-size: 2.5em;
    color: #F1C40F;
    margin-bottom: 40px;
}

/* --- Slider Styles --- */
.promotion-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden; /* Quan trọng: Ẩn các slide không nằm trong khung nhìn */
    cursor: grab; /* Thay đổi con trỏ chuột để báo hiệu có thể kéo */
}

.promotion-slider:active {
    cursor: grabbing; /* Con trỏ khi đang nhấn giữ chuột */
}

.slider-track {
    display: flex; /* Xếp các slide nằm ngang */
    transition: transform 0.5s ease-out; /* Hiệu ứng trượt mượt mà khi thả chuột */
    will-change: transform;
}

.slide {
    min-width: 100%; /* Mỗi slide chiếm 100% chiều rộng của slider */
    box-sizing: border-box;
    padding: 0 10px; /* Tạo khoảng hở nhỏ giữa các slide */
}

.slide img {
    width: 100%;
    display: block;
    user-select: none; /* Ngăn người dùng vô tình chọn hình ảnh khi kéo */
    -webkit-user-drag: none; /* Ngăn kéo thả hình ảnh mặc định của trình duyệt */
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* --- Dots Navigation --- */
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #E8E6F9;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #3A3A8B;
}

.promotion-footer-text {
    margin-top: 40px;
    font-size: 1.2em;
    color: #E0D9CD;
}

/* ======================================================= */
/* ===== BẮT ĐẦU CODE CSS CHO CÁC TRANG DỊCH VỤ CHI TIẾT ===== */
/* ======================================================= */

.service-page-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Chia thành 2 cột bằng nhau */
    align-items: center; /* Căn giữa các cột theo chiều dọc */
    min-height: 80vh; 
    gap: 60px; /* Khoảng cách giữa 2 cột */
    padding: 60px 80px;
    max-width: 1500px;
    margin: 0 auto;
    overflow: hidden; /* Quan trọng để animation không bị lộ ra ngoài */
}

/* --- Cột hình ảnh bên trái --- */
.service-image-column {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.service-image-column img {
    width: 100%;
    height: auto; 
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    display: block; 
}

/* --- Cột nội dung bên phải --- */
.service-content-column {
    text-align: left;
}

.service-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 3.5em;
    color: #F1C40F; /* Sử dụng màu cam làm điểm nhấn */
    margin: 0;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.2em;
    color: #E0D9CD;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 10px 0 30px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-description p {
    font-family: 'Lato', sans-serif;
    font-size: 1.1em;
    line-height: 1.8;
    color: #E0D9CD;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-contact-button {
    display: inline-block;
    background-color: #3A3A8B;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, background-color 0.3s ease, transform 0.3s ease;
}

.service-contact-button:hover {
    background-color: #FF6347;
    transform: scale(1.05);
}

/* --- Kích hoạt Animation bằng class 'animate' (từ script-hien-tai.js) --- */
.service-page-container.animate .service-image-column,
.service-page-container.animate .service-title,
.service-page-container.animate .service-subtitle,
.service-page-container.animate .service-description p,
.service-page-container.animate .service-contact-button {
    opacity: 1;
    transform: translate(0, 0);
}

/* Tạo độ trễ khác nhau cho mỗi phần tử để hiệu ứng đẹp hơn */
.service-page-container.animate .service-title { transition-delay: 0.2s; }
.service-page-container.animate .service-subtitle { transition-delay: 0.4s; }
.service-page-container.animate .service-description p:nth-of-type(1) { transition-delay: 0.6s; }
.service-page-container.animate .service-description p:nth-of-type(2) { transition-delay: 0.7s; }
.service-page-container.animate .service-description p:nth-of-type(3) { transition-delay: 0.8s; }
.service-page-container.animate .service-contact-button { transition-delay: 0.9s; }

/* ======================================================= */
/* ===== BẮT ĐẦU CODE CSS CHO TRANG HƯỚNG DẪN BẢO QUẢN (FLEXBOX) ===== */
/* ======================================================= */

.preservation-guide {
    padding: 50px;
    max-width: 800px;
    margin: 40px auto;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.preservation-guide h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
    color: #3A3A8B;
    font-size: 2.5em;
    margin-bottom: 40px;
}
.preservation-guide h2::before {
    content: '🍪';
    font-size: 1.2em;
}

.guide-item {
    margin-bottom: 40px;
    border-bottom: 1px solid #E8E6F9;
    padding-bottom: 30px;
}
.guide-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.guide-item h3,
.guide-item ul li,
.guide-item p.note,
.guide-item strong {
    display: flex;
    align-items: flex-start; /* Căn lề trên cùng */
    gap: 12px; /* Khoảng cách chung */
}

.guide-item h3 {
    color: #40446D;
    font-size: 1.8em;
    margin-bottom: 15px;
}
.guide-item p, .guide-item span, .guide-item ul li {
    line-height: 1.8; /* Tăng khoảng cách giữa các dòng */
    font-size: 1.05em; /* Tăng nhẹ kích thước chữ */
    color: #333;
}

.guide-item strong {
    font-weight: 600; /* Làm cho các đề mục nhỏ đậm và rõ hơn */
    color: #40446D; /* Sử dụng màu xanh đậm để nhấn mạnh */
}

.guide-item ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

/* Thêm thụt lề cho các danh sách con để phân cấp rõ ràng */
.guide-item ul ul {
    padding-left: 25px;
    margin-top: 10px;
}

.note {
    font-style: italic;
    color: #FF6347;
}

/* --- ĐỊNH NGHĨA CÁC ICON --- */
.guide-item h3::before,
.guide-item ul li::before,
.guide-item p.note::before,
.guide-item strong::before {
    line-height: 1.4; /* Căn chỉnh chiều cao icon */
    flex-shrink: 0;
}

.guide-item h3[data-lang-key="lien-he.pigSkinCakeTitle"]::before { content: '🧇'; }
.guide-item h3[data-lang-key="lien-he.spongeRollTitle"]::before { content: '🍞'; }

.guide-item strong[data-lang-key="lien-he.eatInDay"]::before { content: '☀️'; }
.guide-item strong[data-lang-key="lien-he.notUsedImmediately"]::before { content: '❄️'; }
.guide-item strong[data-lang-key="lien-he.noteTitle"]::before { content: '📝'; }

/* Áp dụng icon cho các thẻ li không có class warning */
.guide-item ul li:not(.warning)::before {
    content: '✅';
    margin-top: 4px;
}

/* Ghi đè icon cho li có class warning */
.guide-item ul li.warning::before {
    content: '🔺';
    margin-top: 4px;
}
/* ======================================================= */
/* =====     START OF CSS FOR THE ORDER PAGE     ===== */
/* ======================================================= */

/* --- Main Layout --- */
.order-page-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 50px;
    align-items: flex-start;
    padding: 50px 60px;
    max-width: 1600px;
    margin: 0 auto;
}

/* --- Left Column - Info & Social --- */
.order-info-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.order-page-title {
    font-size: 3.2em;
    color: #40446D;
    margin: 0;
    line-height: 1.2;
}

.order-page-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.3em;
    color: #FF6347;
    margin: 5px 0 30px 0;
    font-weight: bold;
}

.order-steps .step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.step-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #E8E6F9;
    color: #3A3A8B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 20px;
}

.step-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    color: #3A3A8B;
}

.step-text p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* --- Social Contact Section --- */
.social-contact-section {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    border: 1px solid #E8E6F9;
    text-align: center;
}

.social-contact-title {
    font-family: 'Quicksand', sans-serif;
    color: #40446D;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 25px;
    line-height: 1.6;
}

.social-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-links-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    color: #3A3A8B;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 1px solid #E8E6F9;
}

.social-links-list a:hover {
    background-color: #E8E6F9;
    color: #FF6347;
    transform: translateY(-2px);
}

.social-links-list img {
    width: 28px;
    height: 28px;
    margin-right: 12px;
}

/* --- Right Column - Google Form --- */
.order-form-column .google-form-wrapper {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(64, 68, 109, 0.1);
    height: 800px; /* Adjust height as needed */
    display: flex;
    flex-direction: column;
    position: sticky; /* Makes the form stick while scrolling the left side */
    top: 150px; /* Distance from the top of the viewport when sticky */
}

.form-title {
    text-align: center;
    font-size: 2em;
    color: #40446D;
    margin-top: 0;
    margin-bottom: 25px;
    font-family: 'Nunito', 'Quicksand', sans-serif;
    font-weight: 700;
    flex-shrink: 0;
}

.google-form-wrapper iframe {
    width: 100%;
    border: none;
    flex-grow: 1; 
    min-height: 0;
}

/* ======================================================= */
/* =====   BẮT ĐẦU CODE CSS CHO TRANG CHI TIẾT SP   ===== */
/* ======================================================= */
.product-detail-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2em;
    gap: 2em;
    align-items: flex-start; /* Thêm dòng này để căn cột đều hơn */
}
.product-detail-image {
    flex: 1 1 400px;
    max-width: 500px;
}
.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Thêm đổ bóng nhẹ */
}
.product-detail-info {
    flex: 1 1 400px;
    max-width: 500px;
}
.product-detail-info h1 {
    font-size: 2.5em;
    color: #d48a9f;
    margin-top: 0; /* Xóa margin top mặc định của H1 */
}
.product-detail-info p {
    font-size: 1.1em; /* Giảm nhẹ font size */
    line-height: 1.7;
}
.product-price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5em; /* Tăng nhẹ margin */
}
.product-price-table th, .product-price-table td {
    border: 1px solid #ddd;
    padding: 10px; /* Tăng padding */
    text-align: left;
}
.product-price-table th {
    background-color: #f8f8f8; /* Đổi màu nền cho nhẹ nhàng hơn */
}
/* ======================================================= */
/* ===== BẮT ĐẦU CODE CSS CHO TRANG GIỚI THIỆU (MỚI) ===== */
/* ======================================================= */

.about-page {
    overflow-x: hidden; /* Ngăn cuộn ngang không mong muốn */
}

/* --- Khu vực Hero Video --- */
.about-hero {
    width: 100%;
    height: 70vh; /* Chiếm 70% chiều cao màn hình */
    overflow: hidden;
    position: relative;
}
.video-container {
    width: 100%;
    height: 100%;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo video lấp đầy khung mà không bị méo */
}

/* --- Khu vực Câu chuyện --- */
.about-story {
    background-color: #FFFFFF; /* Nền trắng để tách biệt */
    padding: 60px 50px;
}
.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.story-text h1 {
    font-size: 2.8em;
    color: #40446D;
    margin-top: 0;
}
.story-text p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}
.story-video video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Khu vực Sứ mệnh & Giá trị --- */
.about-mission-values {
    padding: 60px 50px;
    background-color: #FDFBF8; /* Quay lại màu nền chủ đạo */
}
.mission-values-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}
/* === BẮT ĐẦU ĐOẠN MÃ MỚI ĐỂ THÊM LOGO === */
.mission-item {
    position: relative; /* Cần thiết để định vị pseudo-element */
    z-index: 1; /* Đảm bảo nội dung chữ luôn nằm trên */
}

.mission-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* --- THAY ĐỔI ĐƯỜNG DẪN TỚI LOGO CỦA BẠN TẠI ĐÂY --- */
    background-image: url('assets/logo.png'); 

    width: 200px;  /* Chiều rộng của logo */
    height: 200px; /* Chiều cao của logo */
    background-size: contain;
    background-repeat: no-repeat;
    
    opacity: 0.08; /* Độ trong suốt của logo (điều chỉnh từ 0.01 đến 1) */
    z-index: -1; /* Đặt logo nằm dưới lớp chữ */
}
/* === KẾT THÚC ĐOẠN MÃ MỚI === */
.mission-item h2 {
    font-size: 2.2em;
    color: #40446D;
    border-bottom: 2px solid #E8E6F9;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.mission-item p, .values-list li {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}
.values-list {
    list-style: none;
    padding-left: 0;
}
.values-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}
.values-list li::before {
    content: '✨'; /* Dùng emoji Tiên Nữ */
    position: absolute;
    left: 0;
    top: 5px;
}

/* ======================================================= */
/* ===== FIX TRIỆT ĐỂ LỖI OVERLAP TRÊN LAPTOP/DESKTOP ===== */
/* ======================================================= */

@media (max-width: 1920px) {
    /*
      Áp dụng cho TẤT CẢ các màn hình từ Full HD trở xuống.
      Bao gồm cả laptop 15.6" đang bị scaling và desktop.
    */

    /*
      Ưu tiên 1: Cố gắng giữ lại nav bằng cách tinh chỉnh không gian.
    */
    header {
        padding-left: 25px;
        padding-right: 25px;
    }
    header nav ul {
        gap: 15px; /* Giảm khoảng cách giữa các mục menu */
    }
    .actions {
        gap: 12px; /* Giảm khoảng cách giữa các nút bên phải */
    }
}


@media (max-width: 1600px) {
    /*
      Khi không gian hẹp hơn nữa (ví dụ laptop scaling 125% -> 1536px),
      chúng ta bắt đầu ẩn các thành phần không quan trọng.
    */
    .marquee-container {
        display: none; /* Ẩn marquee để giải phóng không gian */
    }
}


@media (max-width: 1300px) {
    /*
       Khi không gian thực sự hẹp, chuyển hoàn toàn sang giao diện mobile.
    */
    header nav {
        display: none; /* Ẩn menu chữ */
    }
    .hamburger-menu {
        display: block; /* Hiển thị menu icon hamburger */
    }
}



/* ======================================================= */
/* ======================================================= */
/* ======================================================= */
/* =========== MOBILE RESPONSIVE STYLES START ============ */
/* ======================================================= */
/* ======================================================= */
/* ======================================================= */

@media (max-width: 768px) {
    body {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* --- Header --- */
    header {
        grid-template-columns: auto 1fr auto; /* Hamburger, Logo, Actions */
        padding: 10px 15px;
        gap: 15px; /* Add gap between header items */
    }

    .hamburger-menu {
        display: block;
        grid-column: 1;
        justify-self: start;
    }

    header nav {
        display: none; /* Hide desktop nav */
    }

    .logo {
        grid-column: 2;
        justify-self: center;
    }
    
    .logo img {
        height: 50px; /* Smaller logo */
        margin-bottom: 5px;
    }

    .ribbon-banner {
        padding: 5px 15px; /* Smaller ribbon */
    }

    .main-text {
        font-size: 1em; /* Smaller text */
    }

    .subtext, .social-icons, .marquee-container, .actions {
        display: none; /* Hide for simplicity */
    }

    /* --- Mobile Nav Panel --- */
    .mobile-nav {
        display: flex; /* Keep it in the DOM for JS */
    }

    /* --- Hero Section --- */
    .hero {
        min-height: 350px;
        padding: 40px 20px;
        background-attachment: scroll; /* Fixed background is bad for mobile performance */
    }

    .hero .hero-title {
        font-size: 2.2em;
    }

    .hero .hero-subtitle {
        font-size: 1.5em;
    }

    /* --- Sections General --- */
    .top-flavors, #motto, #menu, #contact, footer {
        padding: 40px 15px;
    }

    /* --- Carousel / Product Grid --- */
    .product-card {
        flex: 0 0 50%; /* 2 items per view */
    }

    /* --- Services --- */
    .services {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    /* --- Motto --- */
    .motto-heading {
        font-size: 2em;
    }
    .motto-columns {
        flex-direction: column;
        gap: 20px;
        align-items: center; /* Center columns vertically */
    }

    .motto-column {
        width: 90%; /* Take up most of the width */
        min-width: unset; /* Remove min-width constraint */
        max-width: 400px; /* But not too wide on tablets */
        padding: 20px;
    }

    /* --- Menu Section --- */
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-item {
        opacity: 1; /* Make sure items are visible on mobile without scroll animation */
        transform: none;
    }

    /* --- Footer --- */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-column {
        display: inline-block; /* Center the block */
        text-align: left;      /* But align text to the left inside */
        max-width: 100%;
        font-size: 0.9em;
        word-break: break-word;
    }

    .footer-info-line {
        justify-content: flex-start; /* Align items to the left */
        align-items: center;
    }

    .social-links {
        justify-content: flex-start; /* Align items to the left */
    }

    .social-links a {
        display: inline-flex; /* Use flex to align icon and text */
        align-items: center;
    }

    .social-links a span {
        display: none;
    }

    .mobile-nav .social-links a span {
        display: none;
    }
    /* Thêm các quy tắc này để sửa bố cục trang menu trên mobile */
.menu-page-container {
    grid-template-columns: 1fr; /* Chuyển về 1 cột */
    padding: 20px 15px;
    gap: 30px;
}

.filter-title {
    white-space: normal; /* Allow title to wrap on mobile */
}

.product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 15px;
}

.product-grid .product-name {
    font-size: 1em; /* Adjust font size for smaller cards */
    min-height: 3em; /* Ensure consistent height for names */
}

.product-grid .product-price {
    font-size: 0.9em;
}

/* Thêm CSS cho trang dich-vu.html trên mobile */
.dich-vu-container {
    padding: 40px 15px; /* Giống các section khác */
}

.dich-vu-title {
    font-size: 2.2em; /* Giống hero-title */
}

.dich-vu-grid {
    grid-template-columns: 1fr; /* 1 cột trên mobile */
    gap: 20px;
}

.dich-vu-item img {
    height: 250px; /* Giảm chiều cao ảnh */
}

.dich-vu-item p {
    font-size: 1.3em; /* Điều chỉnh font chữ */
    padding: 15px;
}

/* ======================================================= */
/* ===== BỐ CỤC TRANG DỊCH VỤ CHI TIẾT TRÊN MOBILE (MỚI) ===== */
/* ======================================================= */

.service-page-container {
    grid-template-columns: 1fr; /* Chuyển thành 1 cột */
    padding: 40px 20px; /* Giảm padding */
    gap: 30px;
    min-height: unset; /* Bỏ chiều cao tối thiểu */
    box-sizing: border-box; /* QUAN TRỌNG: Đảm bảo padding không làm tăng kích thước tổng */
    width: 100%; /* Đảm bảo container chiếm đúng 100% chiều rộng màn hình */
}

.service-content-column {
    text-align: center; /* Căn giữa nội dung trên mobile */
}

.service-title {
    font-size: 2em; /* Giảm cỡ chữ cho cân đối */
    line-height: 1.2; /* Cải thiện khoảng cách dòng */
}

.service-description p {
    text-align: justify; /* Căn đều cho đẹp */
    overflow-wrap: break-word; /* Thay thế cho word-wrap, hiện đại và hiệu quả hơn */
    word-wrap: break-word; /* Hỗ trợ trình duyệt cũ hơn */
    hyphens: auto; /* Tự động thêm gạch nối nếu có thể */
}

/* Styles for preservation-guide on mobile */
.preservation-guide {
    padding: 20px; /* Reduced padding for mobile */
    max-width: 100%; /* Allow full width */
    width: 90%; /* Set a percentage width to give some side margin */
    margin: 0 auto; /* Keep it centered */
}

.preservation-guide h2 {
    font-size: 2em; /* Adjust font size for mobile */
}

.guide-item h3 {
    font-size: 1.5em; /* Adjust font size for mobile */
}

.guide-item p, .guide-item ul li {
    font-size: 0.95em; /* Slightly smaller font for readability */
}

.preservation-guide .guide-item ul li {
    word-wrap: break-word;
    font-size: 0.9em; /* Slightly smaller for better fit */
    line-height: 1.5; /* Adjust line height for readability */
}

.preservation-guide .fas {
    font-size: 1.2em; /* Smaller icons for mobile */
}
/* ======================================================= */
/* ===== BỐ CỤC TRANG HƯỚNG DẪN TRÊN MOBILE (MỚI) ===== */
/* ======================================================= */

.preservation-guide {
    padding: 25px 20px; /* Giảm padding trên mobile */
    margin: 20px auto;
}

.preservation-guide h2 {
    font-size: 2em; /* Giảm cỡ chữ tiêu đề */
}

.guide-item h3 {
    font-size: 1.5em; /* Giảm cỡ chữ tiêu đề phụ */
}
/* Scroll to Top Button */
.scroll-to-top-btn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3A3A8B;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-in-out;
}

@media (max-width: 768px) {
    /* The scroll-to-top button visibility is now controlled by JavaScript */

    :lang(jp) .mobile-nav ul li a {
        font-size: 0.77em; /* Further reduce font size for Japanese text */
    }
}

.back-to-menu-btn {
    display: none; /* Hidden by default, shown only on mobile */
    margin: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .back-to-menu-btn {
        display: block;
    }
   .product-detail-container {
    flex-direction: column;
    margin: 0; /* Xóa margin xung quanh container */
    padding: 0 15px 30px 15px; /* Thêm padding để nội dung không dính sát viền */
    gap: 0; /* Xóa gap giữa ảnh và text */
}

.product-detail-info {
    margin-top: 5px; /* Tạo một khoảng cách nhỏ giữa ảnh và tiêu đề */
}

.product-detail-info h1 {
    font-size: 2em; /* Giảm cỡ chữ tiêu đề trên mobile */
    text-align: center; /* Căn giữa tiêu đề */
}

.product-detail-info p {
    text-align: justify; /* Căn đều 2 bên cho đẹp */
}
}
/* ======================================================= */
/* ===== TỐI ƯU CAROUSEL TRÊN GIAO DIỆN MOBILE (MỚI) ===== */
/* ======================================================= */

.carousel-container {
    position: relative; 
}

.carousel-button {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    padding: 0;
    font-size: 1.2em;
    background-color: rgba(58, 58, 139, 0.6);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button.prev {
    left: 5px;
}

.carousel-button.next {
    right: 5px;
}

.carousel-track .product-card {
    flex: 0 0 50%;
    padding: 0 8px;
}

/* Vô hiệu hóa hiệu ứng hover và active trên mobile để tránh nút bị "nhảy" */
.carousel-button:hover,
.carousel-button:active {
    transform: translateY(-50%); /* Chỉ giữ lại transform để căn giữa */
}

/* ======================================================= */
/* ===== BỐ CỤC TRANG GIỚI THIỆU TRÊN MOBILE (MỚI) ===== */
/* ======================================================= */

.about-hero {
    height: 50vh; /* Giảm chiều cao hero video trên mobile */
}

.about-story, .about-mission-values {
    padding: 40px 20px;
}

.story-content, .mission-values-container {
    grid-template-columns: 1fr; /* Chuyển thành 1 cột */
    gap: 30px;
}

.story-text {
    order: 2; /* Đưa video lên trên, text xuống dưới */
}
.story-video {
    order: 1;
}

.story-text h1, .mission-item h2 {
    font-size: 2em;
}
/* ======================================================= */
/* ===== TINH CHỈNH FONT TIẾNG NHẬT TRÊN MOBILE (MỚI) ===== */
/* ======================================================= */

/* Áp dụng cho các đoạn văn bản trong trang Giới thiệu khi ngôn ngữ là tiếng Nhật */
:lang(jp) .story-text p,
:lang(jp) .mission-item p,
:lang(jp) .values-list li {
    font-size: 1em; /* Giảm nhẹ cỡ chữ để vừa vặn hơn */
    line-height: 1.7; /* Tăng khoảng cách dòng để dễ đọc hơn */
}
/* ======================================================= */
/* ===== CĂN CHỈNH FORM NEWSLETTER TRÊN MOBILE (MỚI) ===== */
/* ======================================================= */

#newsletter-form {
    display: flex;
    flex-direction: column; /* Xếp ô input và nút theo chiều dọc */
    align-items: center; /* Căn giữa theo chiều ngang */
}

#newsletter-form input[type="email"] {
    width: 100%; /* Ô input chiếm toàn bộ chiều rộng */
    max-width: 300px; /* Giới hạn chiều rộng tối đa */
    box-sizing: border-box; /* Đảm bảo padding không làm tăng kích thước */
    padding: 10px;
    text-align: center;
}

#newsletter-form button[type="submit"] {
    margin-top: 10px; /* TẠO KHOẢNG CÁCH 10PX GIỮA Ô INPUT VÀ NÚT */
    width: 100%;
    max-width: 300px;
    padding: 12px; /* Tăng padding cho nút to hơn, dễ bấm hơn */
}
/* ======================================================= */
/* ===== BỐ CỤC TRANG ĐẶT HÀNG TRÊN MOBILE (BẢN SỬA LỖI TRÀN MÀN HÌNH) ===== */
/* ======================================================= */

.order-page-container {
    grid-template-columns: 1fr; /* 1 cột */
    
    /* QUAN TRỌNG: Các quy tắc sửa lỗi tràn */
    width: 100%;
    max-width: 100vw; /* Failsafe: Không bao giờ rộng hơn chiều rộng màn hình */
    padding: 30px 15px; /* Giảm padding hai bên xuống còn 15px */
    margin: 0; /* Xóa mọi margin bên ngoài */
    box-sizing: border-box; /* Bắt buộc padding phải nằm bên trong width 100% */
    overflow-x: hidden; /* Ẩn bất kỳ nội dung nào cố tình tràn ra ngoài */

    gap: 30px; /* Giữ lại gap hợp lý */
}

.order-form-column .google-form-wrapper {
    position: static;
    height: 600px;
    padding: 20px 15px; /* Giảm padding cho form */
}

.order-page-title {
    font-size: 2.2em; /* Điều chỉnh lại font cho nhất quán */
    text-align: center;
}

.order-page-subtitle {
    text-align: center;
}

.step-text p {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
}
/* ======================================================= */
/* ===== HIỆU ỨNG TRUNG THU (ĐÈN LỒNG BAY) ===== */
/* ======================================================= */

.floating-lantern {
    position: absolute;
    bottom: -100px; /* Bắt đầu từ bên dưới màn hình */
    opacity: 0.8;
    animation: floatUp 20s ease-in-out infinite;
}

.floating-lantern img {
    width: 80px; /* Điều chỉnh kích thước đèn lồng */
}

/* Định nghĩa chuyển động bay lên */
@keyframes floatUp {
    0% {
        transform: translateY(0);
        bottom: -100px; /* Vị trí bắt đầu */
        opacity: 0;
    }
    10% {
        opacity: 0.8; /* Hiện ra */
    }
    90% {
        opacity: 0.8; /* Vẫn đang bay */
    }
    100% {
        transform: translateY(-800px) translateX(50px); /* Vị trí kết thúc, bay lên và hơi lệch sang phải */
        bottom: 100%;
        opacity: 0;
    }
}
.top-flavors .product-card .product-name {
    /* Đổi thành màu be sáng để dễ đọc, đồng bộ với màu chữ thường */
    color: #E0D9CD; 
}

/* Áp dụng cho giá sản phẩm trong carousel ở trang chủ */
.top-flavors .product-card .product-price {
    /* Đổi thành màu vàng hoàng kim để nổi bật và hợp chủ đề */
    color: #F1C40F;
}
/* ======================================================= */
/* ===== SỬA MÀU CHỮ DỄ ĐỌC HƠN (THEO YÊU CẦU) ===== */
/* ======================================================= */

/* --- Đổi màu chữ cho khu vực Dịch Vụ --- */
.services h3 {
    color: #40446D; /* Dùng màu xanh đậm giống các tiêu đề khác */
}

/* --- Đổi màu chữ cho toàn bộ Footer --- */
footer {
    color: #40446D; /* Áp dụng màu xanh đậm cho tất cả chữ trong footer */
}

/* --- Đảm bảo các link trong footer cũng có màu dễ đọc --- */
.footer-column a, .footer-column span {
    color: #40446D; /* Đổi màu cho cả link và span */
}
.footer-column h4 {
    color: #40446D !important; /* Dùng màu xanh đậm và !important để đảm bảo ưu tiên */
    font-weight: 700;         /* Làm chữ đậm hơn để tăng độ rõ nét */
}
.logo {
    position: relative; /* Cần thiết để định vị đèn lồng con */
}

.trung-thu-lantern {
    position: absolute; /* Định vị đèn lồng tuyệt đối so với logo */
    top: 20px;
    width: 55px; /* Kích thước đèn lồng */
    height: auto;
    pointer-events: none; /* Giúp chuột có thể click xuyên qua ảnh */
}

.lantern-left {
    left: -10px; /* Vị trí đèn lồng bên trái */
}

.lantern-right {
    right: -10px; /* Vị trí đèn lồng bên phải */
}
/* ======================================================= */
/* ===== STYLE CHO SECTION TRÍCH DẪN TRUNG THU (2 CỘT) ===== */
/* ======================================================= */

#trungthu-quote {
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-grid-container {
    max-width: 1100px; /* Tăng chiều rộng tối đa để chứa 2 cột */
    width: 100%;
    margin: 0 auto;
    
    /* --- Bố cục 2 cột bằng CSS Grid --- */
    display: grid;
    grid-template-columns: 1fr 1fr; /* Chia thành 2 cột bằng nhau */
    gap: 50px; /* Khoảng cách giữa 2 cột */
    align-items: center; /* Căn giữa 2 cột theo chiều dọc */

    /* Nền và viền như cũ */
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid #F1C40F;
    border-radius: 15px;
    padding: 40px 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- CỘT VĂN BẢN (TRÁI) --- */
.quote-text-column {
    text-align: left; /* Căn lề trái cho dễ đọc */
}

.quote-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    font-weight: 700;
    color: #F1C40F;
    margin-top: 0;
    margin-bottom: 25px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

#trungthu-quote blockquote {
    font-family: 'Lato', sans-serif;
    font-size: 1.1em; /* Hơi nhỏ lại một chút */
    font-style: italic;
    line-height: 1.8;
    color: #E0D9CD;
    margin: 0 0 30px 0;
    border: none;
    padding: 0;
}

.quote-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #F1C40F;
    color: #2C2A4A;
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
    font-size: 1em;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.quote-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(241, 196, 15, 0.4);
    background-color: #ffdd57;
}


/* --- CỘT SLIDESHOW (PHẢI) --- */
.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Giữ cho slideshow luôn là hình vuông */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo ảnh lấp đầy khung mà không bị méo */

    /* --- Chìa khóa của hiệu ứng fade --- */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Class 'active' sẽ làm ảnh hiện ra */
.slideshow-image.active {
    opacity: 1;
}


/* --- Responsive cho điện thoại --- */
@media (max-width: 900px) { /* Tăng điểm break lên 900px để bố cục chuyển sớm hơn */
    .quote-grid-container {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
        gap: 30px;
        padding: 30px 25px;
    }
    .quote-text-column {
        text-align: center; /* Căn giữa lại trên mobile */
    }
    .slideshow-container {
        max-width: 350px; /* Giới hạn chiều rộng ảnh trên mobile */
        margin: 0 auto; /* Tự căn giữa */
    }
}
/* ======================================================= */
/* ===== BẮT ĐẦU CODE CSS NÂNG CẤP TRANG BÁNH TRUNG THU (V2) ===== */
/* ======================================================= */

/* --- Bố Cục Chính 2 Cột --- */
.trungthu-page-grid {
    max-width: 1300px;
    margin: 50px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Cột bảng giá hơi rộng hơn */
    gap: 60px;
    align-items: center;
}

/* --- Cột Trái: Slideshow --- */
.slideshow-column-left {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Giữ cho slideshow luôn là hình vuông */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.slideshow-column-left .slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Hiệu ứng mờ ảo mượt mà */
    border-radius: 15px;
}

.slideshow-column-left .slideshow-image.active {
    opacity: 1;
}
.left-column-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Khoảng cách giữa slideshow và khung liên hệ */
    align-self: start; /* Giữ cho cột này luôn căn lề trên */
}

.slideshow-contact-box {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    /* --- THAY ĐỔI CHÍNH --- */
    background-color: #FFF3E0; /* Nền màu kem giống bảng giá */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Thêm đổ bóng để nổi bật */
    border: none; /* Bỏ viền cũ */
}

.slideshow-contact-box p {
    color: #5D4037; /* Màu chữ nâu đậm để dễ đọc trên nền kem */
    font-size: 1.1em;
    margin: 8px 0;
    font-weight: 500;
}

.slideshow-contact-box strong {
    color: #BF360C; /* Màu đỏ cam nổi bật giống tiêu đề bảng giá */
    font-weight: 700;
}

.slideshow-contact-box a {
    color: #5D4037; /* Màu chữ nâu đậm */
    text-decoration: none;
    border-bottom: 1px dashed #5D4037; /* Gạch chân màu nâu đậm */
    transition: color 0.3s ease, border-color 0.3s ease;
}

.slideshow-contact-box a:hover {
    color: #BF360C; /* Đổi sang màu đỏ cam khi hover */
    border-color: #BF360C;
}

/* --- Cột Phải: Bảng Giá (giữ nguyên từ trước) --- */
.banggia-container {
    background-color: #FFF3E0;
    color: #5D4037;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 5px rgba(255, 243, 224, 0.3);
    width: 100%; /* Chiếm toàn bộ cột grid */
    font-family: 'Lato', sans-serif;
    overflow: hidden;
}

.banggia-header {
    text-align: center;
    padding: 20px 20px 10px 20px;
}

.banggia-header h2 {
    color: #D84315;
    font-size: 1.5em;
    font-weight: 900;
    margin: 0;
    letter-spacing: 2px;
}

.banggia-header h1 {
    color: #BF360C;
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    margin: -5px 0 10px 0;
}

.banggia-section {
    padding: 0 30px;
    margin-bottom: 20px;
}

.banggia-ribbon {
    background-color: #BF360C; /* Màu ruy băng */
    color: #FFFFFF;
    text-align: center;
    padding: 8px 30px;
    margin: 0 -30px 15px -30px; /* Kéo ruy băng ra sát viền */
    position: relative;
}

/* Tạo hiệu ứng ruy băng bị cắt 2 đầu */
.banggia-ribbon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 10px 10px; /* Cạnh dưới và cạnh trái */
    border-color: transparent transparent #872608 transparent; /* Màu đậm hơn để tạo bóng */
}
.banggia-ribbon::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 0; /* Cạnh dưới và cạnh phải */
    border-color: transparent #872608 transparent transparent;
}


.banggia-ribbon h3 {
    font-size: 0.9em;
    color: white;
    font-weight: bold;
    margin: 0;
}

.banggia-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.banggia-section li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1em;
    font-weight: 500;
}

.banggia-section li span {
    font-weight: 700;
}

/* --- Responsive cho bố cục 2 cột --- */
@media (max-width: 900px) {
    .trungthu-page-grid {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
        padding: 0 15px;
        margin: 20px auto;
        gap: 30px;
    }
    .slideshow-column-left {
        max-width: 550px; /* Giới hạn chiều rộng giống bảng giá */
        margin: 0 auto; /* Tự căn giữa */
    }
}

