/* 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 {
 /* 1. Màu nền dự phòng là màu kem ấm */
background-color: #F2E6D1; 

/* 2. Ảnh nền bokeh vàng lấp lánh (bạn có thể thay bằng ảnh khác nếu muốn) */
background-image: url('https://images.pexels.com/photos/3223423/pexels-photo-3223423.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');

/* 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 */
background-attachment: fixed;

/* 6. Phóng to ảnh để luôn lấp đầy màn hình */
background-size: cover;
}

h1, h2, h3, h4 {
    font-family: 'Quicksand', sans-serif;
    color: #C0392B; /* MÀU ĐỎ GIÁNG SINH ẤM ÁP */
}

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-tet-2.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;
}
.location-hours p {
    font-weight: bold;
}

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

/* Footer */
footer {
   background-color: #E39A46; /* MÀU XANH LÁ THÔNG ĐẬM */
    color: #F1F8E9; /* MÀU TRẮNG NGÀ */
    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-info-line strong {
    color: #3E2723
}
.footer-column .footer-info-line span {
    font-weight: bold;
}
.footer-column p {
    color: #3E2723;
    font-weight: bold;
}

.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 #E0E0E0;
}
.copyright p {
    color: #0D0404 !important; /* Màu trắng xám nhẹ để phân biệt với nội dung chính */
    font-weight: bold;
}

/* 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 */
    position: relative; /* Rất quan trọng: Đặt thẻ card làm gốc tọa độ */
    overflow: visible;  /* Cho phép các chi tiết trang trí tràn ra ngoài một chút */
}
.product-grid .product-card::before {
    content: ''; /* Bắt buộc phải có để pseudo-element hiển thị */
    
    /* -- Định vị chiếc chuông -- */
    position: absolute; /* Đặt vị trí tuyệt đối so với "điểm neo" ở trên */
    top: -20px;         /* Di chuyển lên trên, ra khỏi viền card 20px */
    left: -15px;        /* Di chuyển sang trái, ra khỏi viền card 15px */
    z-index: 2;         /* Đảm bảo chuông luôn nằm trên ảnh sản phẩm */
    
    /* -- Kích thước của chuông -- */
    width: 70px;        /* Chiều rộng của chuông */
    height: 70px;       /* Chiều cao của chuông */

    /* -- Gán hình ảnh chuông làm nền -- */
    background-image: url('assets/hinh-hoa-mai-menu.png'); /* Đường dẫn tới ảnh chuông */
    background-size: contain; /* Đảm bảo ảnh chuông luôn vừa vặn trong khung */
    background-repeat: no-repeat; /* Không lặp lại ảnh */
}

.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: #141208;
    margin-bottom: 20px;
}

.dich-vu-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2em;
    color: #C0392B;
    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: #C0392B;
    margin-bottom: 40px;
}

/* --- Slider Styles --- */
.promotion-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    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 */
    border-radius: 15px;
}

.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: #C0392B;
}

/* ======================================================= */
/* ===== 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: #C0392B; /* 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: #3A3A8B;
    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: #3A3A8B;
    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: #2E7D32;
    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: #FF6347;
}

.step-text p {
    margin: 0;
    color: #C0392B;
    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: #C0392B;  /* NỀN MÀU ĐỎ RUBY */
    color: #FFFFFF;             /* CHỮ MÀU TRẮNG TINH */
    font-weight: 700;           /* Làm chữ đậm hơn */
    text-transform: uppercase;  /* VIẾT HOA TOÀN BỘ */
    letter-spacing: 0.5px;      /* Tăng nhẹ khoảng cách giữa các chữ */
}
.product-price-table td {
    color: #5D4037; /* Màu nâu đậm để dễ đọc trên nền kem */
    font-weight: 600; /* Làm chữ đậm hơn một chút */
    font-size: 1.1em; /* Tăng nhẹ kích thước chữ */
}
/* ======================================================= */
/* ===== 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: #3E2723; /* Đổi màu cho cả link và span */
    font-weight: 500;
}
.footer-column h4 {
    color:#5D4037 !important; /* Dùng màu xanh đậm và !important để đảm bảo ưu tiên */
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);         /* 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;
}
#snow-canvas {
    position: fixed; /* Luôn cố định trên màn hình */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999; /* Nằm trên nền nhưng dưới nội dung */
    pointer-events: none; /* Cho phép click xuyên qua lớp tuyết */
}

/* --- 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 */
    }
}
.footer-info-line .footer-icon,
.social-links .social-icon {
    background-color: white; /* Thêm nền màu trắng tinh */
    border-radius: 50%;     /* Bo tròn nền thành hình tròn hoàn hảo */
    padding: 5px;           /* Tạo một khoảng đệm nhỏ giữa icon và viền tròn */
    box-sizing: border-box; /* Đảm bảo padding không làm thay đổi kích thước icon */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Thêm bóng đổ để icon có chiều sâu */
    transition: transform 0.2s ease-in-out; /* Thêm hiệu ứng chuyển động mượt mà */
}

/* Thêm hiệu ứng phóng to nhẹ khi người dùng di chuột vào */
.footer-info-line .footer-icon:hover,
.social-links .social-icon:hover {
    transform: scale(1.1); 
}
/* 1. Đổi màu TÊN SẢN PHẨM thành màu XANH LÁ THÔNG */
.top-flavors .product-card .product-name {
    color: #2E7D32; /* Màu xanh lá thông đậm, đồng bộ với footer */
    font-weight: 700; /* Làm chữ đậm hơn để tăng độ rõ nét */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Thêm bóng đổ nhẹ để chữ nổi khối */
}
/* 2. Đổi màu GIÁ TIỀN thành màu ĐỎ RUBY */
.top-flavors .product-card .product-price {
    color: #C0392B; /* Màu đỏ ruby ấm áp, đồng bộ với tiêu đề */
    font-weight: 700; /* Làm chữ đậm hơn */
    font-size: 1.1em; /* Tăng nhẹ kích thước để thu hút hơn */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}
.christmas-wreath {
    width: 150px; /* Bạn có thể thay đổi kích thước này cho vừa ý */
    height: auto; /* Giữ tỷ lệ ảnh không bị méo */
    margin-top: -37px; /* Tạo một khoảng cách nhỏ với dòng "Since 2015" ở trên */
}
/* Thay thế cho .product-detail-image cũ */
.product-gallery {
    flex: 1 1 400px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Giữ cho ảnh chính luôn là hình vuông */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #fff; /* Thêm nền trắng phòng khi ảnh load chậm */
}

#main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Đảm bảo ảnh lấp đầy khung mà không bị méo */
    transition: transform 0.3s ease; /* Hiệu ứng zoom nhẹ khi hover */
}

#main-product-image:hover {
    transform: scale(1.05);
}

.thumbnail-track {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Cho phép trượt ngang */
    scroll-behavior: smooth; /* Tạo hiệu ứng trượt mượt mà */
    padding: 5px; /* Thêm chút đệm để ảnh không bị cắt sát viền */
    -ms-overflow-style: none;  /* Ẩn thanh cuộn trên IE, Edge */
    scrollbar-width: none;  /* Ẩn thanh cuộn trên Firefox */
}
/* Ẩn thanh cuộn trên Chrome, Safari, Opera */
.thumbnail-track::-webkit-scrollbar {
    display: none;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6; /* Làm mờ những ảnh chưa được chọn */
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.thumbnail-item:hover {
    opacity: 1; /* Hiện rõ khi di chuột vào */
}

.thumbnail-item.active {
    opacity: 1; /* Hiện rõ ảnh đang được chọn */
    border-color: #C0392B; /* Thêm viền màu đỏ để làm nổi bật */
}


/* --- CSS cho phiên bản điện thoại --- */
/* --- CSS cho phiên bản điện thoại --- */
@media (max-width: 768px) {
    .product-gallery {
        max-width: 100%; 
    }
    
    #prev-thumb {
        left: -10px; /* Đặt mũi tên sát hơn trên mobile */
    }
    #next-thumb {
        right: -10px;
    }
    
    .thumbnail-item {
        width: 65px;
        height: 65px;
    }
}
/* --- Thêm mới các đoạn này --- */

/* Container chính của slider, dùng để định vị mũi tên */
.thumbnail-slider {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Style chung cho cả 2 mũi tên */
.thumb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.3s;
    padding: 0;
    color: #333;
}

.thumb-arrow:hover {
    background-color: #fff;
}

/* Vị trí và style riêng cho từng mũi tên */
#prev-thumb {
    left: -20px;
}

#next-thumb {
    right: -20px;
}

/* Style khi mũi tên bị vô hiệu hóa (khi không thể trượt được nữa) */
.thumb-arrow.disabled {
    opacity: 0;
    pointer-events: none; /* Không cho phép click */
}
/* --- CSS cho Link Chính sách & Điều khoản ở Footer --- */
.footer-legal-links {
    margin-top: 20px; /* Tạo khoảng cách với form Newsletter phía trên */
    display: flex;
    flex-direction: column; /* Xếp các link theo chiều dọc */
    gap: 10px; /* Khoảng cách giữa các dòng link */
    align-items: flex-start; /* Căn lề trái cho thẳng hàng với form */
}

.footer-legal-links a {
    color: #5D4037; /* Màu trắng ngà cho dễ đọc trên nền xanh */
    text-decoration: none; /* Bỏ gạch chân mặc định */
    font-size: 0.95em; /* Cỡ chữ vừa phải */
    font-weight: bold;
    position: relative;
    padding-left: 15px; /* Chừa chỗ cho dấu chấm trang trí */
    transition: all 0.3s ease;
}
/* Thêm dấu chấm tròn nhỏ đằng trước cho đẹp */
.footer-legal-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #0D0404; /* Màu vàng điểm nhấn */
    border-radius: 50%;
    opacity: 0.7;
}

/* Hiệu ứng khi di chuột vào */
.footer-legal-links a:hover {
    color: #F1C40F; /* Đổi màu chữ sang vàng khi hover */
    padding-left: 20px; /* Dịch chuyển nhẹ sang phải */
    text-decoration: none;
}
/* ======================================================= */
/* ===== BẮT ĐẦU CSS CHO FORM ĐẶT HÀNG (CUSTOM) ===== */
/* ======================================================= */

/* Biến màu cục bộ chỉ dùng cho form này để không ảnh hưởng web chính */
.pro-order-container {
    --order-primary: #C0392B; /* Màu đỏ Giáng sinh theo style.css cũ */
    --order-accent: #fdd835;
    --order-bg-light: #fff5f5;
    --order-radius: 8px;
    
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    font-family: 'Quicksand', sans-serif; /* Đồng bộ font với web */
    margin-bottom: 30px;
}

.order-section-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--order-primary);
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    text-transform: uppercase;
    text-align: left; /* Căn trái cho tiêu đề form */
}

/* MENU GRID (Đã đổi tên khác với .menu-grid cũ) */
.order-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.order-item-card {
    border: 1px solid #ddd;
    border-radius: var(--order-radius);
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: #fff;
}

.order-item-card:hover {
    border-color: var(--order-primary);
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.2);
}

.order-item-card.active {
    background-color: var(--order-bg-light);
    border-color: var(--order-primary);
    font-weight: bold;
    color: var(--order-primary);
}

.order-menu-checkbox {
    margin-right: 10px;
    accent-color: var(--order-primary);
    transform: scale(1.2);
    cursor: pointer;
}

/* SELECTED ITEMS SECTION */
.selected-items-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: var(--order-radius);
    margin-bottom: 30px;
    border: 1px dashed #ccc;
}

.empty-cart-msg {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
}

.selected-item-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: white;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid var(--order-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    animation: slideIn 0.3s ease;
}

.item-info {
    flex: 2;
    min-width: 180px;
    font-weight: 500;
    color: #40446D;
}

.item-controls {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    min-width: 200px;
}

.order-qty-input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.order-size-select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
}

/* CUSTOMER INFO FORM */
.order-form-group {
    margin-bottom: 15px;
    text-align: left;
}

.order-form-row {
    display: flex;
    gap: 15px;
}

.order-form-col {
    flex: 1;
}

.order-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #40446D;
}

.order-form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--order-radius);
    font-size: 1rem;
    transition: border 0.3s;
    box-sizing: border-box; /* Đảm bảo padding không làm vỡ layout */
    font-family: 'Lato', sans-serif;
}

.order-form-input:focus {
    outline: none;
    border-color: var(--order-primary);
    box-shadow: 0 0 5px rgba(192, 57, 43, 0.2);
}

/* SUBMIT BUTTON */
.order-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--order-primary);
    color: white;
    border: none;
    border-radius: 50px; /* Bo tròn nhiều giống style nút web hiện tại */
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    margin-top: 10px;
}

.order-submit-btn:hover {
    background-color: #a93226; /* Màu đỏ đậm hơn khi hover */
    transform: translateY(-2px);
}

.order-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE CHO FORM */
@media (max-width: 768px) {
    .order-form-row { flex-direction: column; gap: 10px; }
    .selected-item-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .item-controls { width: 100%; justify-content: space-between; }
    .pro-order-container { padding: 20px 15px; }
}
/* ======================================================= */
/* ===== CSS CHO NÚT XEM MENU & POPUP ===== */
/* ======================================================= */

/* 1. Căn chỉnh tiêu đề và nút bấm nằm ngang */
.section-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Xuống dòng trên điện thoại màn hình nhỏ */
    gap: 10px;
}

/* 2. Style cho nút "XEM MENU" */
.btn-see-menu {
    background-color: white;
    color: var(--order-primary); /* Màu đỏ chủ đạo */
    border: 1px solid var(--order-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-see-menu:hover {
    background-color: var(--order-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(192, 57, 43, 0.3);
}

/* 3. Style cho Modal Overlay (Lớp nền tối) */
.menu-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Màu đen độ mờ 80% */
    z-index: 9999; /* Luôn nằm trên cùng */
    display: flex; /* Dùng flex để căn giữa popup */
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(3px); /* Hiệu ứng làm mờ nền phía sau (rất đẹp trên iPhone) */
}

/* Khi có class 'active' thì hiện lên */
.menu-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 4. Style cho nội dung Modal (Cái khung trắng) */
.menu-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    max-width: 90%; /* Không quá rộng trên mobile */
    max-height: 90vh; /* Không quá cao so với màn hình */
    width: 600px; /* Chiều rộng lý tưởng trên PC */
    overflow-y: auto; /* Cho phép cuộn nếu ảnh menu quá dài */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-modal-overlay.active .menu-modal-content {
    transform: scale(1); /* Hiệu ứng phóng to nhẹ khi hiện ra */
}

/* 5. Ảnh Menu */
.menu-modal-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

/* 6. Nút Đóng (X) */
.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: var(--order-primary);
}

/* Responsive cho mobile */
@media (max-width: 480px) {
    .btn-see-menu {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}
/* --- CSS CHO SLIDER MENU TRONG MODAL --- */
.menu-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8); /* Nền trắng mờ */
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--order-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.menu-nav-btn:hover {
    transform: translateY(-50%) !important;
    background-color: var(--order-primary);
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.menu-nav-btn.prev {
    left: 10px; /* Cách lề trái 10px */
}

.menu-nav-btn.next {
    right: 10px; /* Cách lề phải 10px */
}

/* Ẩn nút nếu chỉ có 1 ảnh (JS sẽ xử lý, nhưng CSS hỗ trợ) */
.menu-nav-btn.hidden {
    display: none;
}

/* Responsive trên mobile: nút nhỏ lại xíu */
@media (max-width: 480px) {
    .menu-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
/* ======================================================= */
/* ===== CSS CHO NÚT THÊM/XÓA TRONG FORM (SAFE MODE) ===== */
/* ======================================================= */

/* --- NÚT THÊM MÓN (+) --- */
/* Tên class cũ: .btn-add-item -> Đổi thành: .order-add-btn */
.order-add-btn {
    background-color: #fff;
    border: 2px solid var(--order-primary); /* Màu đỏ chủ đạo */
    color: var(--order-primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 15px; 
    flex-shrink: 0;
    line-height: 1;
    padding-bottom: 3px; 
    box-shadow: none; /* Reset shadow mặc định nếu có */
}

.order-add-btn:hover {
    background-color: var(--order-primary);
    color: white;
    transform: scale(1.1);
}

.order-add-btn:active {
    transform: scale(0.9);
}

/* --- NÚT XÓA (THÙNG RÁC) --- */
/* Tên class cũ: .btn-remove-row -> Đổi thành: .order-remove-btn */
.order-remove-btn {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    border-radius: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
    padding: 0; /* Reset padding */
}

.order-remove-btn:hover {
    background-color: #d32f2f;
    color: white;
    border-color: #d32f2f;
}
/* === CSS CHO MODAL POP UP KHUYẾN MÃI === */
.promo-modal {
    display: none; /* Ẩn mặc định, JS sẽ bật nó lên */
    position: fixed;
    z-index: 9999; /* Đảm bảo nằm trên tất cả mọi thứ, kể cả menu */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Màu đen mờ (Overlay) */
    backdrop-filter: blur(2px); /* Hiệu ứng làm mờ nhẹ background phía sau */
    
    /* Căn giữa modal */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.promo-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: transparent; /* Nền trong suốt để hợp với ảnh PNG hoặc thiết kế Noel */
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 600px; /* Độ rộng tối đa của popup */
    text-align: center;
    animation: zoomIn 0.5s ease; /* Hiệu ứng phóng to khi hiện ra */
}

.promo-image {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Bo tròn góc ảnh */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: block;
}

/* Nút tắt (X) */
.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    color: white;
    background-color: #333;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    line-height: 35px;
    text-align: center;
    cursor: pointer;
    border: 2px solid white;
    z-index: 10000;
    transition: 0.3s;
}

.close-btn:hover {
    background-color: #d32f2f; /* Màu đỏ khi di chuột vào */
    transform: rotate(90deg);
}

/* Nút Mua Ngay bên dưới ảnh */
.modal-action {
    margin-top: 15px;
}

.modal-cta-btn {
    background-color: #d32f2f; /* Màu đỏ Giáng sinh */
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    text-transform: uppercase;
}

.modal-cta-btn:hover {
    transform: scale(1.05);
    background-color: #b71c1c;
}

/* Hiệu ứng Zoom In */
@keyframes zoomIn {
    from {transform: scale(0.5); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}
/* === CSS MỚI CHO NÚT MŨI TÊN MODAL POP UP === */
.modal-body {
    position: relative; /* Để căn chỉnh mũi tên theo khung ảnh */
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8); /* Nền trắng mờ */
    color: #d32f2f; /* Màu đỏ chủ đạo */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001; /* Cao hơn ảnh */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    user-select: none; /* Không cho bôi đen text mũi tên */
}

.modal-arrow:hover {
    background-color: #d32f2f;
    color: white;
}

.left-arrow {
    left: -20px; /* Canh lề trái */
}

.right-arrow {
    right: -20px; /* Canh lề phải */
}

/* Ẩn mũi tên khi cần thiết (dùng class này trong JS) */
.hidden-arrow {
    display: none !important;
}

/* Mobile: Điều chỉnh mũi tên nhỏ lại một chút để không che ảnh */
@media (max-width: 768px) {
    .left-arrow { left: 5px; }
    .right-arrow { right: 5px; }
    .modal-arrow { width: 30px; height: 30px; font-size: 18px; }
}
/* ======================================================= */
/* ===== FLOATING CONTACT BUTTONS (ZALO & MESSENGER) ===== */
/* ======================================================= */

.floating-contact-wrapper {
    position: fixed;
    bottom: 85px; /* Nằm cao hơn nút Scroll to Top (đang ở bottom: 20px) */
    right: 20px;
    z-index: 999; /* Đảm bảo luôn nổi lên trên */
    display: flex;
    flex-direction: column; /* Xếp dọc */
    gap: 15px; /* Khoảng cách giữa 2 nút */
    align-items: center;
}

.contact-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white; /* Nền trắng an toàn nếu ảnh lỗi */
}

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

/* Hiệu ứng khi rê chuột */
.contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- Tooltip (Chữ hiện ra bên trái) --- */
.contact-tooltip {
    position: absolute;
    right: 60px; /* Đẩy sang trái nút bấm */
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-family: 'Quicksand', sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Mũi tên nhỏ của tooltip */
.contact-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

.contact-btn:hover .contact-tooltip {
    opacity: 1;
    visibility: visible;
    right: 65px; /* Hiệu ứng trượt nhẹ */
}

/* --- Hiệu ứng nhịp đập (Pulse Animation) cho Zalo --- */
/* Giúp khách hàng chú ý hơn */
@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 104, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}

.zalo-btn {
    animation: pulse-blue 2s infinite;
}

/* --- Responsive cho Mobile --- */
@media (max-width: 768px) {
    .floating-contact-wrapper {
        bottom: 80px; /* Điều chỉnh lại chút cho mobile */
        right: 15px; /* Sát lề hơn để rộng chỗ đọc nội dung */
    }
    
    .contact-btn {
        width: 45px; /* Nhỏ hơn xíu trên mobile */
        height: 45px;
    }

    /* Ẩn tooltip trên mobile để tránh vướng víu */
    .contact-tooltip {
        display: none; 
    }
}

/* =======================================================
   CSS TỔNG HỢP: TÍNH NĂNG ĐĂNG NHẬP & MODAL (FINAL)
   ======================================================= */

/* --- 1. NÚT ICON TRÊN HEADER (Dành cho Máy tính) --- */
.desktop-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: white;
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid #3A3A8B;
    margin-right: 15px;
    transition: all 0.3s ease;
    user-select: none; /* Không cho bôi đen chữ */
}
.desktop-user-btn:hover {
    background: #E8E6F9;
}
.desktop-user-btn img {
    width: 20px;
    height: 20px;
}
.desktop-user-btn span {
    font-weight: bold;
    color: #3A3A8B;
    font-size: 0.9em;
}

/* Ẩn nút desktop khi ở trên mobile */
@media (max-width: 768px) {
    .desktop-user-btn {
        display: none;
    }
}

/* --- 2. NÚT ĐĂNG NHẬP TRONG MENU MOBILE (Đã căn giữa hoàn hảo) --- */
.mobile-menu-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    /* Căn giữa nút */
    margin: 20px auto 30px auto; 
    
    padding: 8px 30px;
    background-color: white;
    border: 1.5px solid #C0392B;
    border-radius: 50px;
    
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Kích thước gọn gàng */
    width: fit-content;
    min-width: 100px;
    max-width: 80%;
}

.mobile-menu-login-btn:active {
    transform: scale(0.95);
    background-color: #FFF5F5;
}

.mobile-menu-login-btn img { width: 20px; height: 20px; }
.mobile-menu-login-btn span {
    color: #C0392B;
    font-weight: bold;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
}

/* --- 3. MODAL POPUP (GIAO DIỆN KFC STYLE MỚI) --- */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Nền tối mờ */
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    background: #fff;
    width: 95%;
    max-width: 480px; /* Rộng hơn bản cũ để chứa form đăng ký */
    padding: 40px 30px;
    border-radius: 12px;
    text-align: left; /* Căn trái toàn bộ theo style KFC */
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh; /* Tránh bị tràn màn hình nếu điện thoại nhỏ */
    overflow-y: auto; /* Cho phép cuộn nếu form dài */
}

.auth-modal-overlay.active .auth-modal-content {
    transform: scale(1);
}

.close-auth-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}
.close-auth-btn:hover { color: #C0392B; }

/* Tiêu đề Modal */
.auth-title {
    font-family: 'Quicksand', sans-serif; /* Dùng font chính của web */
    text-transform: uppercase;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 25px;
    color: #C0392B; /* Đổi sang màu Đỏ thương hiệu thay vì màu đen */
    font-weight: 700; /* Giảm độ đậm từ 800 xuống 700 */
    text-align: center;
    letter-spacing: 1px; /* Tăng khoảng cách giữa các chữ cái cho thoáng */
}

/* Ô nhập liệu kiểu KFC (Gạch chân) */
.kfc-input-group {
    margin-bottom: 20px;
    position: relative;
}

.kfc-input-group label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.kfc-input-group input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    background: transparent;
    font-family: inherit;
}

.kfc-input-group input:focus {
    border-bottom-color: #000;
}

/* Nút hiển thị mật khẩu (Con mắt) */
.toggle-password {
    position: absolute;
    right: 0;
    bottom: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #999;
}

/* Hàng ngang cho Họ - Tên */
.kfc-row {
    display: flex;
    gap: 15px;
}
.kfc-row .kfc-input-group {
    flex: 1;
}

/* Các nút bấm hành động */
.btn-kfc-green {
    width: 100%;
    background-color: #28a745; /* Xanh lá đăng nhập */
    color: white;
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 5px;
    transition: background 0.2s;
}
.btn-kfc-green:hover { background-color: #218838; }

.btn-kfc-red {
    width: 100%;
    background-color: #E4002B; /* Đỏ KFC đăng ký */
    color: white;
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 5px;
    transition: background 0.2s;
}
.btn-kfc-red:hover { background-color: #c00024; }

.btn-kfc-social {
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 0.95rem;
    transition: transform 0.2s;
}
.btn-kfc-social:hover { transform: translateY(-2px); }

.btn-kfc-social.google {
    background-color: #fff;
    color: #555;
    border: 1px solid #ddd;
}
.btn-kfc-social.google img { width: 20px; }

/* Link phụ trợ */
.forgot-pass-link {
    text-align: right;
    margin-bottom: 20px;
    margin-top: -10px;
}
.forgot-pass-link a {
    color: #555;
    font-size: 0.85rem;
    text-decoration: none;
}

.divider-text {
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
    position: relative;
}

.auth-switch-link {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #333;
}
.auth-switch-link a {
    font-weight: bold;
    color: #C0392B;
    text-decoration: underline;
    cursor: pointer;
}

.kfc-terms {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.8rem;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.4;
}
.kfc-terms input {
    margin-top: 3px;
    width: auto; /* Reset width cho checkbox */
}

/* =========================================
   RESPONSIVE MOBILE (SỬA LỖI CẮT TIÊU ĐỀ)
   ========================================= */
@media (max-width: 480px) {
    .auth-modal-content {
        width: 100%;
        height: 100%; /* Full màn hình */
        border-radius: 0;
        
        /* QUAN TRỌNG: Thay đổi cách hiển thị */
        display: block; /* Bỏ flex center để không bị đẩy lên trên */
        overflow-y: auto; /* Cho phép cuộn dọc nếu form dài */
        
        /* Thêm khoảng cách an toàn phía trên */
        padding: 100px 20px 40px 20px; 
    }

    /* Đảm bảo hàng ngang (Họ - Tên) vẫn đẹp trên mobile */
    .kfc-row {
        flex-direction: column;
        gap: 0;
    }
    
    /* Chỉnh nút đóng (X) nằm gọn ở góc */
    .close-auth-btn {
        top: 50px;
        right: 20px;
        position: fixed; /* Ghim chặt nút đóng để khi cuộn nó vẫn ở đó */
        background: #fff; /* Thêm nền trắng nhỏ để không bị chữ đè lên */
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 100;
    }
}

/* Style cho dòng thông báo lỗi đăng nhập */
.auth-error-text {
    color: #E4002B; /* Màu đỏ KFC/Moon Bakery */
    font-size: 0.9rem; /* Chữ nhỏ vừa phải */
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 10px;
    display: none; /* Mặc định ẩn đi, chỉ hiện khi có lỗi */
    animation: shake 0.3s ease-in-out; /* Hiệu ứng rung lắc nhẹ để gây chú ý */
}
/* --- FIX LỖI POPUP BỊ CHE KHUẤT --- */
.swal2-container {
    z-index: 200000 !important; /* Phải lớn hơn 99999 của Modal Auth */
}

/* Hiệu ứng rung lắc (Optional - cho đẹp) */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* =========================================
   FIX LỖI MENU MOBILE: CĂN GIỮA + KHÔNG THANH CUỘN
   ========================================= */
@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        
        /* 1. Giảm khoảng cách trên cùng để nội dung nhích lên */
        padding-top: 120px !important; 
        padding-bottom: 20px; /* Giảm khoảng trống dưới đáy */
        
        height: 100vh;
        overflow-y: auto;
        box-sizing: border-box;
    }

    /* 2. Thu gọn khoảng cách giữa các dòng menu (Trang chủ, Giới thiệu...) */
    .mobile-nav ul li {
        margin: 20px 0; /* Giảm từ 20px xuống 12px để tiết kiệm diện tích dọc */
    }

    /* 3. Căn giữa và chỉnh vị trí 3 nút Ngôn ngữ (EN/JP/VN) */
    .mobile-nav .language-switcher {
        display: flex;
        justify-content: center; /* Căn giữa hàng ngang */
        width: 100%;
        margin-right: 0; /* Xóa margin lệch phải cũ */
        margin-top: 10px;
        margin-bottom: 15px; /* Khoảng cách với Social icons */
    }

    /* 4. Căn giữa 3 nút Mạng xã hội (IG/FB/Threads) */
    .mobile-nav .social-links {
        display: flex;
        justify-content: center; /* Căn giữa hàng ngang */
        width: 100%;
        gap: 20px; /* Khoảng cách giữa các icon */
        padding: 0;
        margin-bottom: 20px; /* Khoảng cách với nút Đăng nhập */
    }
    
    /* Đảm bảo icon và chữ trong social link thẳng hàng */
    .mobile-nav .social-links a {
        display: flex;
        align-items: center;
        flex-direction: column; /* Icon trên, chữ dưới (hoặc bỏ dòng này nếu muốn ngang) */
    }

    /* 5. Nút Đăng nhập nhích lên và căn giữa */
    .mobile-menu-login-btn {
        margin: 0 auto 30px auto; /* Căn giữa và cách đáy một chút */
    }

    /* Nút đóng (X) giữ nguyên */
    .mobile-nav .close-btn {
        position: absolute;
        top: 25px;
        right: 25px;
        z-index: 999;
        font-size: 40px;
        color: #C0392B;
    }
}
.user-menu-container {
    position: relative;
    display: inline-block;
}
/* --- KHUNG DROPDOWN --- */
.user-dropdown {
    display: none; /* Mặc định ẩn */
    position: absolute;
    top: calc(100% + 10px); /* Cách đáy nút 10px */
    left: 50%; /* Canh giữa */
    transform: translateX(-50%); /* Dịch lại 50% độ rộng của chính nó để vào giữa tâm */
    
    background-color: white;
    min-width: 180px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 12px;
    z-index: 10000;
    border: 1px solid #f0f0f0;
}
.user-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

/* Class này được JS thêm vào để HIỆN menu */
.user-dropdown.show {
    display: block;
    animation: fadeInUp 0.2s ease-out;
}

/* Các mục bên trong menu */
.dropdown-item {
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 0.95rem;
    transition: background 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #C0392B;
}

.dropdown-item img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Mục Đăng xuất có màu đỏ nhẹ khi hover */
.dropdown-item.logout:hover {
    background-color: #ffebee;
    color: #d32f2f;
}

/* Hiệu ứng hiện ra nhẹ nhàng */
@keyframes fadeInDrop {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================================
   STYLE CHO NÚT ĐĂNG XUẤT MOBILE
   ========================================= */

.mobile-menu-logout-btn {
    display: flex; /* Flex để căn giữa icon và chữ */
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    margin: 10px auto 30px auto; /* Cách nút trên 10px, cách đáy 30px */
    
    padding: 8px 30px;
    background-color: #FFF5F5; /* Nền màu đỏ rất nhạt */
    border: 1.5px solid #C0392B; /* Viền đỏ */
    border-radius: 50px;
    
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Kích thước giống nút trên */
    width: fit-content;
    min-width: 100px;
    max-width: 80%;
}

.mobile-menu-logout-btn img {
    width: 20px;
    height: 20px;
}

.mobile-menu-logout-btn span {
    color: #C0392B;
    font-weight: bold;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
}

.mobile-menu-logout-btn:active {
    background-color: #C0392B;
}
.mobile-menu-logout-btn:active span {
    color: white; /* Bấm vào thì chữ chuyển trắng */
}
/* =========================================
   STYLE CHO TRANG THÔNG TIN NGƯỜI DÙNG
   ========================================= */

.profile-page-wrapper {
    background-color: #FDF5E6; /* Nền kem giống web */
    padding: 40px 20px;
    min-height: 80vh;
}

.profile-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr; /* Cột trái 280px, phải tự động */
    gap: 30px;
    align-items: start;
}

/* --- SIDEBAR (TRÁI) --- */
.profile-sidebar {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.avatar-wrapper img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #C0392B;
    margin-bottom: 15px;
}

.user-card-summary h3 {
    margin: 0;
    color: #40446D;
    font-size: 1.2rem;
}

.user-card-summary p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.user-rank-badge {
    display: inline-block;
    background: #FFF5F5;
    color: #C0392B;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid #C0392B;
    margin-bottom: 25px;
}

/* MENU TAB */
.profile-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.tab-btn {
    background: none;
    border: none;
    text-align: left;
    padding: 12px 15px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: #555;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    background-color: #f9f9f9;
    color: #C0392B;
    transform: none; /* Tắt scale mặc định của button */
}

.tab-btn.active {
    background-color: #C0392B;
    color: white;
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.3);
}

.logout-btn {
    margin-top: 20px;
    color: #d32f2f;
    border: 1px dashed #d32f2f;
    justify-content: center;
}
.logout-btn:hover {
    background-color: #fff5f5;
    color: #d32f2f;
}

/* --- CONTENT AREA (PHẢI) --- */
.profile-content-area {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    min-height: 500px;
}

.tab-content {
    display: none; /* Ẩn mặc định */
    animation: fadeIn 0.3s ease;
}
.tab-content.active {
    display: block; /* Hiện khi active */
}

.section-title {
    font-size: 1.8rem;
    color: #40446D;
    margin-bottom: 5px;
    margin-top: 0;
}
.section-desc {
    color: #888;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* FORM STYLE */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: bold;
    color: #555;
    margin-bottom: 8px;
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    box-sizing: border-box;
}
.save-btn {
    background-color: #C0392B;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    margin-top: 10px;
}

/* POINTS STYLE */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}
.stat-card.gold { background: linear-gradient(135deg, #FFD700, #FFA500); }
.stat-card.blue { background: linear-gradient(135deg, #40446D, #3A3A8B); }
.stat-card.gold .info span {
    color: #8B4513; /* Màu Nâu Đất (SaddleBrown) -> Rất nổi trên nền vàng */
    font-weight: 600; /* In đậm lên một chút cho rõ */
}

.stat-card .icon {
    font-size: 2rem;
    opacity: 0.8;
}
.stat-card h3 {
    margin: 0;
    font-size: 1.8rem;
}
.stat-card.blue h3 {
    color: #FFD700; /* Đổi thành MÀU TRẮNG tinh khôi */
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.rank-progress-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
}
.rank-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}
.progress-bar-fill {
    height: 100%;
    background: #28a745;
    border-radius: 5px;
}

/* COUPON STYLE (VOUCHER) */
.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.coupon-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s;
}
.coupon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.coupon-left {
    background: #C0392B;
    color: white;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px dashed #fff;
    position: relative;
}
.coupon-logo {
    font-weight: bold;
    transform: rotate(-90deg);
    white-space: nowrap;
}
.coupon-right {
    padding: 15px;
    flex: 1;
}
.coupon-right h4 { margin: 0 0 5px 0; color: #C0392B; }
.coupon-right p { margin: 0 0 10px 0; font-size: 0.85rem; color: #666; }
.coupon-right .expiry { font-size: 0.8rem; color: #999; display: block; margin-bottom: 8px; }

.coupon-code-box {
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    font-family: monospace;
    font-weight: bold;
    color: #333;
    border: 1px dashed #999;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .profile-page-wrapper {
        /* GIẢM padding từ 40px xuống 15px để lấy thêm diện tích cho nội dung */
        padding: 20px 10px !important; 
    }

    /* 2. Chuyển Layout từ Grid sang Flex Column (An toàn hơn cho Mobile) */
    .profile-container {
        display: flex;         /* Dùng Flex thay vì Grid để tránh lỗi tràn cột */
        flex-direction: column; /* Xếp dọc: Avatar ở trên, Form ở dưới */
        gap: 20px;              /* Khoảng cách giữa 2 khối */
        width: 100%;            /* Đảm bảo container không vượt quá màn hình */
        box-sizing: border-box;
    }
    
    /* 3. Căn chỉnh Sidebar (Cột trái) */
    .profile-sidebar {
        width: 100%;
        padding: 20px;
        box-sizing: border-box; /* Padding nằm trong chiều rộng */
    }

    /* 4. Xử lý Tab Menu (Giữ nguyên tính năng trượt ngang) */
    .profile-tabs {
        display: flex;
        flex-direction: column; /* QUAN TRỌNG: Chuyển từ row (ngang) sang column (dọc) */
        width: 100%;            /* Chiếm trọn chiều rộng */
        gap: 10px;              /* Khoảng cách giữa các nút */
        padding-bottom: 0;      /* Bỏ padding thừa */
        overflow-x: visible;    /* Tắt thanh cuộn ngang */
        white-space: normal;    /* Cho phép xuống dòng bình thường */
    }
    #btn-logout-page {
        display: none !important;
    }
    .rank-header {
        flex-direction: column !important;  /* Bắt buộc xếp thành cột dọc */
        align-items: flex-start !important; /* Căn lề trái cho thẳng hàng */
        gap: 8px;                           /* Tạo khoảng cách giữa 2 dòng */
    }
    
    /* Chỉnh lại cỡ chữ một chút cho cân đối trên mobile */
    .rank-header h3, 
    .rank-header h4 {
        font-size: 1rem !important;
        width: 100%; /* Chiếm hết dòng */
    }
    /* 10. Xử lý Voucher bị tràn (Chuyển sang dạng thẻ dọc) */
    .coupon-grid {
        display: flex !important;
        flex-direction: column !important; /* Xếp các voucher chồng lên nhau */
        gap: 15px;
    }

    .coupon-card {
        flex-direction: column !important; /* Quan trọng: Xếp logo lên trên, nội dung xuống dưới */
        width: 100% !important;            /* Co lại vừa khít màn hình */
        height: auto !important;
    }

    /* Chỉnh phần màu đỏ (Logo) nằm ngang trên đầu */
    .coupon-left {
        width: 100% !important;
        height: 50px !important;       /* Chiều cao cố định cho thanh tiêu đề */
        border-right: none !important; /* Bỏ đường kẻ dọc */
        border-bottom: 2px dashed #fff; /* Thay bằng đường kẻ ngang */
        flex-direction: row !important;
    }

    /* Xoay chữ MOON lại cho thẳng (không để nằm dọc nữa) */
    .coupon-logo {
        transform: rotate(0deg) !important; /* Xoay về vị trí bình thường */
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    /* Chỉnh phần nội dung bên dưới */
    .coupon-right {
        padding: 15px !important;
        text-align: center; /* Căn giữa nội dung cho đẹp */
    }

    .coupon-code-box {
        width: 100%;          /* Mã code dài ra hết cỡ */
        box-sizing: border-box;
        font-size: 0.9rem;    /* Giảm cỡ chữ chút cho mã dài không bị tràn */
        word-break: break-all; /* Nếu mã quá dài thì tự xuống dòng */
    }
    .profile-tabs::-webkit-scrollbar { display: none; } /* Ẩn thanh cuộn (Chrome/Safari) */
    
    .tab-btn {
        width: 100%;            /* Nút dài full màn hình */
        display: flex;          /* Dùng flex để căn chỉnh icon và chữ */
        align-items: center;    /* Căn giữa theo chiều dọc */
        justify-content: center; /* Căn giữa nội dung */
        /* justify-content: flex-start;  <-- Nếu bạn muốn chữ nằm lệch trái thì dùng dòng này */
        
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 8px;     /* Bo tròn nhẹ */
        margin: 0;              /* Xóa margin thừa */
        font-size: 1rem;
    }
    
    /* 5. KHỐI NỘI DUNG CHÍNH (QUAN TRỌNG NHẤT) */
    .profile-content-area {
        width: 100%;
        /* Giảm padding trong khung trắng từ 40px xuống 20px */
        padding: 25px 20px; 
        box-sizing: border-box; /* Bắt buộc: Để padding không làm phình to khung */
        min-height: auto; /* Bỏ chiều cao tối thiểu để không bị khoảng trắng thừa */
    }
    
    /* 6. Đảm bảo các ô Input không bao giờ tràn ra ngoài */
    .form-group input, 
    .form-group select {
        width: 100%;       /* Chiếm hết chiều rộng cho phép */
        max-width: 100%;   /* Chặn tuyệt đối không cho vượt rào */
        box-sizing: border-box;
        font-size: 16px;   /* Chuẩn mobile để không bị zoom khi bấm vào */
    }

    /* 7. Grid điểm thưởng: Xếp dọc cho dễ nhìn */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .stat-card {
        width: 96% !important;          /* Ép chiều rộng về 100% khung chứa */
        box-sizing: border-box !important; /* QUAN TRỌNG: Tính cả padding vào trong chiều rộng để không bị phình to */
        margin-right: 0 !important;      /* Xóa margin thừa bên phải nếu có */
        padding: 15px 10px !important; /* Giảm padding trái phải xuống còn 10px */
        gap: 10px !important;          /* Giảm khoảng cách giữa icon và chữ */
    }
    .stat-card .icon {
        font-size: 1.5rem !important; /* Giảm từ 2rem xuống 1.5rem */
    }

    /* Thu nhỏ Chữ số to (ví dụ: 15.000.000 đ) */
    .stat-card h3 {
        font-size: 1.4rem !important; /* Giảm từ 1.8rem xuống 1.4rem cho vừa dòng */
        word-break: break-word;       /* Nếu số quá dài thì tự xuống dòng */
    }

    /* Thu nhỏ dòng chữ tiêu đề nhỏ (ví dụ: Tổng chi tiêu) */
    .stat-card .info span {
        font-size: 0.85rem !important;
    }

    /* 12. Thêm Icon Huy Chương vào góc trái khung Hạng */
    .rank-progress-container {
        position: relative !important; /* Làm điểm tựa để ghim icon */
        overflow: visible !important;  /* Cho phép icon nằm đè lên viền */
        margin-top: 25px !important;   /* Đẩy khung xuống xíu để icon không đụng vào thẻ bên trên */
    }

    .rank-progress-container::before {
        content: '\f5a2'; /* Mã Unicode của icon Huy chương (FontAwesome Medal) */
        font-family: "Font Awesome 5 Free"; /* Bắt buộc để hiện icon */
        font-weight: 900;
        
        position: absolute;
        top: -15px;  /* Đính lên trên mép khung 15px */
        left: -10px; /* Đính sang trái mép khung 10px */
        
        font-size: 24px;       /* Kích thước icon */
        color: #FFD700;        /* Màu vàng kim loại */
        background-color: #fff; /* Nền trắng để icon nổi bật */
        padding: 5px;
        border-radius: 50%;    /* Bo tròn nền */
        box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Đổ bóng nhẹ cho đẹp */
        z-index: 10;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Khi ô input bị khóa (Chế độ xem) */
input:disabled {
    background-color: #f2f2f2; /* Màu xám nhạt */
    color: #555;
    cursor: not-allowed;
    border: 1px solid #ccc;
}

/* Khi ô input được mở (Chế độ sửa) */
input:enabled {
    background-color: #ffffff;
    color: #000;
    border: 1px solid #C0392B; /* Viền đỏ cho nổi bật */
}
/* Màn hình che mờ */
#loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.8); /* Nền trắng mờ sang trọng */
    z-index: 99999; /* Đảm bảo nằm trên cùng, che hết mọi thứ */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #C0392B; /* Chữ màu đỏ chủ đạo */
}

/* Vòng tròn xoay */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3; /* Viền xám nhạt */
    border-top: 5px solid #C0392B; /* Viền đỏ quay quay */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Hiệu ứng xoay */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Style cho dòng thông báo lỗi dưới ô input */
.input-error-msg {
    color: #C0392B; /* Màu đỏ */
    font-size: 0.85rem; /* Chữ nhỏ hơn bình thường chút */
    margin-top: 5px;
    display: none; /* Mặc định ẩn, chỉ hiện khi có lỗi */
    font-style: italic;
}

/* (Tùy chọn) Khi có lỗi thì viền ô input cũng đỏ theo cho đẹp */
input.input-error {
    border: 1px solid #C0392B !important;
    background-color: #fff5f5;
}
/* === STYLE CHO MÀN HÌNH CHỜ === */
#site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Mã màu lấy từ ảnh bạn gửi */
    background-color: #F8D7BD; 
    z-index: 9999999; /* Đảm bảo nằm trên cùng, che hết mọi thứ */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader-content {
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

/* Style cho Logo */
.preloader-logo {
    width: 120px; /* Điều chỉnh kích thước logo tùy ý */
    height: auto;
    margin-bottom: 20px;
    animation: float 2s infinite ease-in-out; /* Hiệu ứng logo bay nhẹ */
}

/* Style cho chữ "Đang tải trang" */
.preloader-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8E402A; /* Màu nâu đậm cho dễ đọc trên nền cam nhạt */
    letter-spacing: 1px;
    margin-top: 15px;
    font-family: 'Arial', sans-serif;
}

/* Hiệu ứng xoay tròn nhỏ (Option thêm cho sinh động) */
.preloader-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border-top-color: #8E402A;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

/* Hiệu ứng ẩn đi */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Keyframes hiệu ứng */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}