/* General Styles */
body {
    font-family: 'Arial', sans-serif; /* Bạn có thể chọn font chữ khác phù hợp hơn */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    scroll-behavior: smooth; /* Cho cuộn trang mượt hơn */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #007bff; /* Màu xanh dương chủ đạo */
}

a:hover {
    color: #0056b3; /* Màu xanh dương đậm hơn khi hover */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section {
    padding: 60px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 45px;
    font-size: 2.5em; /* Cỡ chữ cho tiêu đề mục */
    color: #333;
    font-weight: 600;
}

.bg-light {
    background-color: #ffffff; /* Nền trắng cho một số mục để tạo sự tương phản */
}

/* =================================== */
/* == CSS CHO HEADER & NAVIGATION == */
/* =================================== */

header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky; /* Giữ header cố định khi cuộn */
    top: 0;
    z-index: 1000; /* Đảm bảo header luôn ở trên cùng */
    width: 100%;
}

/* Sử dụng class .header-container như trong HTML đã cập nhật */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { /* Style cho logo HanoiCard.com */
    font-size: 1.8em;
    font-weight: bold;
    color: #007bff;
    text-decoration: none; /* Thêm để đảm bảo logo không có gạch chân */
}

/* --- Main Navigation Menu (Desktop) --- */
/* Sử dụng class .main-nav-menu như trong HTML đã cập nhật */
.main-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Hiển thị ngang trên desktop */
}

.main-nav-menu li {
    margin-left: 25px; /* Khoảng cách giữa các mục menu trên desktop */
}

.main-nav-menu li a {
    font-size: 1em;
    color: #333;
    font-weight: 500;
    padding: 8px 12px; /* Điều chỉnh padding cho cân đối hơn */
    border-radius: 4px;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: block; /* Giúp padding có tác dụng đều */
}

.main-nav-menu li a:hover,
.main-nav-menu li a.active {
    color: #007bff;
    background-color: #e9ecef;
}


/* --- Mobile Menu Toggle Button (Hamburger) --- */
.mobile-menu-toggle {
    display: none; /* Ẩn trên desktop theo mặc định */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px; /* Padding để dễ nhấn hơn */
    z-index: 1010; /* Nằm trên menu khi menu mở kiểu overlay */
    margin-left: 15px; /* Khoảng cách với logo nếu cần */
}

.hamburger-icon {
    display: block;
    width: 24px; /* Độ rộng của biểu tượng hamburger */
    height: 2px;  /* Độ dày của các thanh */
    background-color: #333; /* Màu của các thanh hamburger */
    position: relative;
    transition: background-color 0.3s ease 0.15s; /* Delay transition của thanh giữa */
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333; /* Màu của các thanh hamburger */
    transition: transform 0.3s ease, top 0.3s ease 0.15s, bottom 0.3s ease 0.15s; /* Delay transition top/bottom */
}

.hamburger-icon::before {
    top: -7px; /* Khoảng cách từ thanh giữa lên thanh trên */
}

.hamburger-icon::after {
    bottom: -7px; /* Khoảng cách từ thanh giữa xuống thanh dưới */
}

/* --- Styles for Mobile View --- */
@media (max-width: 768px) { /* Điểm breakpoint bạn muốn menu mobile kích hoạt, ví dụ 768px */
    
    /* Hiển thị nút hamburger và ẩn menu desktop */
    .mobile-menu-toggle {
        display: block; 
    }

    .main-nav-menu {
        display: none; /* ẨN menu ul mặc định trên mobile */
        flex-direction: column; /* Menu sẽ xổ dọc */
        position: absolute;
        top: 100%; /* Nằm ngay dưới header (nếu header có padding đều) */
                   /* Hoặc bạn có thể đặt chiều cao cố định cho header và dùng top: [chiều cao header]px */
        left: 0;
        width: 100%;
        background-color: #ffffff; 
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 10px 0; 
        z-index: 1005; /* Đảm bảo menu nằm trên các nội dung khác nhưng dưới nút toggle nếu nó overlay */
        border-top: 1px solid #f0f0f0; /* Đường kẻ nhẹ phân cách với header */
    }

    .main-nav-menu.open { /* Class 'open' sẽ được JS thêm vào để hiển thị menu */
        display: flex; 
    }

    /* Styling cho các mục menu trên mobile */
    .main-nav-menu li {
        margin: 0; /* Bỏ margin-left trên mobile */
        width: 100%;
    }

    .main-nav-menu li a {
        display: block; 
        padding: 15px 25px; /* Tăng padding cho dễ nhấn trên mobile */
        text-align: left; /* Hoặc center nếu bạn muốn chữ ở giữa */
        border-bottom: 1px solid #f5f5f5; /* Đường kẻ phân cách giữa các mục */
        width: 100%;
        box-sizing: border-box; /* Để padding không làm tăng kích thước */
    }

    .main-nav-menu li:last-child a {
        border-bottom: none; /* Bỏ đường kẻ ở mục cuối cùng */
    }

    .main-nav-menu li a:hover,
    .main-nav-menu li a.active {
        background-color: #007bff; 
        color: #ffffff;
    }

    /* --- Animation cho nút Hamburger thành "X" khi menu mở --- */
    .mobile-menu-toggle.open .hamburger-icon {
        background-color: transparent; /* Gạch giữa ẩn đi để tạo hình chữ X */
    }
    .mobile-menu-toggle.open .hamburger-icon::before {
        top: 0;
        transform: rotate(45deg);
    }
    .mobile-menu-toggle.open .hamburger-icon::after {
        bottom: 0;
        transform: rotate(-45deg);
    }

    /* Optional: Ngăn cuộn trang khi menu mobile mở */
    body.no-scroll-mobile-menu {
        overflow: hidden;
    }
}

/* Hero Section */
#hero {

    position: relative; /* THÊM/CHỈNH SỬA: Cần thiết để canvas định vị tuyệt đối bên trong */
    overflow: hidden; /* THÊM: Để đảm bảo canvas không tràn ra ngoài nếu có lỗi kích thước nhỏ */
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Nền sẽ được vẽ bởi canvas, nhưng có thể để một màu fallback */
    background-color: #07101f; /* Màu nền fallback nếu canvas chưa tải hoặc lỗi */
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Đặt canvas phía sau nội dung */
}

#hero .container { /* Đảm bảo nội dung của hero section nằm trên canvas */
    position: relative;
    z-index: 1;
}


#hero h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Tăng shadow một chút cho dễ đọc trên nền động */
}

#hero p {
    font-size: 1.25em;
    margin-bottom: 35px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.cta-button {
    display: inline-block;
    background-color: #ffc107; /* Màu vàng cam cho nút CTA */
    color: #333;
    padding: 15px 35px;
    font-size: 1.15em;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.cta-button:hover {
    background-color: #e0a800; /* Màu vàng cam đậm hơn khi hover */
    color: #212529;
    transform: translateY(-3px); /* Hiệu ứng nhấc nút lên một chút */
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 30px;
    text-align: center;
}

.feature-item {
    background-color: #ffffff;
    padding: 35px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.feature-item img { /* Placeholder icon styling */
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto; /* Căn giữa icon */
    border-radius: 50%; /* Icon tròn */
    /* background-color: #e9ecef; /* Background nhẹ cho icon placeholder */
    /* padding:15px;  Nếu icon của bạn cần padding */
    /* object-fit: contain; */ /* Đảm bảo icon không bị méo */
}

.feature-item h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #007bff;
}

.feature-item p {
    font-size: 0.95em;
    color: #555;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 30px;
}

.product-item {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden; /* Để bo góc hình ảnh */
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-item img {
    width: 100%;
    height: 220px; /* Chiều cao cố định cho hình ảnh sản phẩm */
    object-fit: cover; /* Đảm bảo hình ảnh phủ kín mà không bị méo */
}

.product-item h3 {
    font-size: 1.45em;
    margin: 20px 20px 10px;
    color: #007bff;
}

.product-item p {
    font-size: 0.95em;
    margin: 0 20px 20px;
    flex-grow: 1; /* Để các thẻ có chiều cao bằng nhau nếu nội dung khác nhau */
    color: #555;
}


/* Contact Section */
#contact {
    text-align: center;
}
#contact > .container > p:first-of-type { /* Đoạn mô tả ngay dưới H2 của Contact */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 35px;
    font-size: 1.05em;
    color: #555;
}

#contactForm {
    max-width: 700px;
    margin: 0 auto 40px auto;
    background-color: #ffffff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Quan trọng để padding không làm tăng kích thước */
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.form-group textarea {
    resize: vertical; /* Cho phép thay đổi chiều cao textarea */
    min-height: 100px;
}

#contactForm .cta-button { /* Nút gửi form */
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95em;
    display: none; /* Ẩn ban đầu */
}
.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block; /* Hiện khi có class success */
}
.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block; /* Hiện khi có class error */
}


.contact-info {
    margin-top: 40px;
    text-align: center;
    font-size: 1.1em;
    color: #444;
}
.contact-info p {
    margin: 10px 0;
}
.contact-info strong {
    color: #333;
}

/* Footer */
footer {
    background-color: #343a40; /* Màu nền tối cho footer */
    color: #f8f9fa;
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive Design - Điều chỉnh cho màn hình nhỏ */
@media (max-width: 992px) { /* Tablet ngang và nhỏ hơn */
    #hero h1 {
        font-size: 2.8em;
    }
    #hero p {
        font-size: 1.15em;
    }
    .section h2 {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) { /* Tablet đứng và điện thoại */
    header nav .container {
        flex-direction: column;
        align-items: center;
    }
    header .logo {
        margin-bottom: 15px;
    }
    header nav ul {
        flex-direction: column; /* Menu dọc trên mobile */
        align-items: center;
        width: 100%;
    }
    header nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    header nav ul li a {
         display: block; /* Cho link chiếm toàn bộ chiều rộng */
         padding: 10px;
         /* background-color: #f0f0f0; */ /* Nền nhẹ cho dễ nhấn */
    }
    /* header nav ul li a:hover {
        background-color: #e0e0e0;
    } */

    #hero {
        padding: 80px 0;
        min-height: 300px;
    }
    #hero h1 {
        font-size: 2.2em;
    }
    #hero p {
        font-size: 1em;
    }
    .section h2 {
        font-size: 2em;
    }
    .features-grid, .products-grid {
        grid-template-columns: 1fr; /* Các mục xếp chồng lên nhau trên màn hình nhỏ */
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1.05em;
    }
    #contactForm {
        padding: 25px;
    }
}

@media (max-width: 480px) { /* Điện thoại nhỏ */
    #hero h1 {
        font-size: 1.8em;
    }
    #hero p {
        font-size: 0.9em;
    }
    .section h2 {
        font-size: 1.8em;
    }
     .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group textarea {
        padding: 10px;
        font-size: 0.95em;
    }
    #contactForm .cta-button {
        font-size: 1.1em;
    }
}

/* CSS cho Section Pricing mới */
#pricing {
    text-align: center; /* Căn giữa tiêu đề và mô tả của section */
}

#pricing .section-subtitle { /* Mô tả dưới tiêu đề chính của section */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    font-size: 1.05em;
    color: #555;
    line-height: 1.7;
}

.pricing-table-wrapper {
    overflow-x: auto; /* Cho phép cuộn ngang trên màn hình nhỏ */
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

#pricing table {
    width: 100%;
    min-width: 700px; /* Đảm bảo bảng có độ rộng tối thiểu trước khi cuộn */
    border-collapse: collapse;
    text-align: center;
    background-color: #fff;
}

#pricing th, #pricing td {
    padding: 15px 12px;
    border: 1px solid #e0e0e0;
    font-size: 0.95em;
}

#pricing thead {
    background-color: #007bff; /* Màu nền header bảng */
    color: #fff;
}

#pricing thead th {
    font-weight: 600;
    font-size: 1em;
    border-color: #0069d9;
}

#pricing tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Màu xen kẽ cho các hàng */
}

#pricing tbody tr:hover {
    background-color: #e9ecef; /* Màu khi hover chuột lên hàng */
}

#pricing td:first-child { /* Cột Số Lượng */
    font-weight: bold;
    color: #333;
    background-color: #f8f9fa; /* Nền nhẹ cho cột số lượng */
}

#pricing .highlight-row td { /* Dòng 10,000+ */
    background-color: #ffc107; /* Màu vàng nổi bật */
    color: #333;
    font-size: 1.05em;
}
#pricing .highlight-row td strong {
    font-weight: 600;
}


/* Additional Options Styling */
.additional-options {
    margin-top: 40px;
    margin-bottom: 50px;
    text-align: left;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e7e7e7;
}

.additional-options h3 {
    font-size: 1.8em;
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
}

.additional-options ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.additional-options ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 1em;
    color: #444;
}

.additional-options ul li:last-child {
    border-bottom: none;
}

.additional-options ul li strong {
    color: #333;
    min-width: 180px; /* Giúp các mục thẳng hàng hơn nếu cần */
    display: inline-block;
}

.vat-shipping-note {
    margin-top: 25px;
    text-align: center;
    font-size: 0.95em;
    color: #777;
}

/* Order Contact Info Styling */
.order-contact-info {
    margin-top: 40px;
    padding: 30px;
    background-color: #ffffff; /* Có thể đổi màu nền nếu muốn nổi bật hơn */
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
}
.order-contact-info .order-title {
    font-size: 2.2em;
    color: #28a745; /* Màu xanh lá cây cho tiêu đề đặt hàng */
    margin-bottom: 15px;
}

.order-contact-info p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.7;
}

.order-contact-info .contact-details p {
    display: flex;
    align-items: center;
    justify-content: center; /* Căn giữa các mục liên hệ */
    margin-bottom: 15px;
}
.order-contact-info .contact-details p .contact-icon {
    width: 20px; /* Kích thước icon */
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}
.order-contact-info .contact-details a {
    color: #007bff;
    font-weight: 500;
}
.order-contact-info .contact-details a:hover {
    text-decoration: underline;
}


.order-contact-info .cta-button.large-cta { /* Nút CTA lớn hơn */
    padding: 18px 40px;
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 15px;
    background-color: #28a745; /* Màu xanh lá cho nút đặt hàng */
    color: #fff;
}
.order-contact-info .cta-button.large-cta:hover {
    background-color: #218838;
}

.order-contact-info .small-note {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 15px;
}

/* Responsive cho bảng giá */
@media (max-width: 768px) {
    #pricing table {
        font-size: 0.9em; /* Giảm cỡ chữ trong bảng một chút */
    }
    #pricing th, #pricing td {
        padding: 10px 8px;
    }
    .additional-options h3 {
        font-size: 1.6em;
    }
    .additional-options ul li strong {
        display: block; /* Cho strong xuống dòng trên mobile để dễ đọc hơn */
        margin-bottom: 3px;
        min-width: auto;
    }
     .order-contact-info .order-title {
        font-size: 1.9em;
    }
    .order-contact-info p {
        font-size: 1em;
    }
    .order-contact-info .cta-button.large-cta {
        padding: 15px 30px;
        font-size: 1.15em;
    }
}




#dealer-program {
    background-color: #ffffff; 

    text-align: center; 
}

#dealer-program .section-subtitle {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 45px;
    font-size: 1.05em;
    color: #555;
    line-height: 1.7;
}

.dealer-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    text-align: left; 
}

.benefit-item {
    background-color: #f9f9f9; /* Nền nhẹ cho từng lợi ích */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 50px; /* Kích thước icon */
    height: 50px;
    margin-bottom: 15px;
    border-radius: 50%; /* Bo tròn icon nếu là ảnh vuông */
    /* background-color: #007bff; */ /* Có thể thêm màu nền cho icon placeholder */
    /* display: block; */ /* Nếu muốn icon chiếm cả dòng */
    /* margin-left: auto; */ /* Để căn giữa icon nếu display block */
    /* margin-right: auto; */
}

.benefit-item h3 {
    font-size: 1.5em; /* Cỡ chữ tiêu đề lợi ích */
    color: #007bff;
    margin-bottom: 10px;
}

.benefit-item p {
    font-size: 0.95em;
    color: #444;
    line-height: 1.6;
}

.dealer-contact-action {
    margin-top: 30px;
    background-color: #e9f5ff; /* Một màu nền nhẹ nhàng để làm nổi bật khu vực CTA */
    padding: 35px;
    border-radius: 8px;
    border: 1px solid #bce0fd;
}

.dealer-contact-action h3 {
    font-size: 1.9em;
    color: #0056b3; /* Màu chữ đậm hơn cho tiêu đề CTA */
    margin-bottom: 15px;
}

.dealer-contact-action p {
    font-size: 1.05em;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.7;
}

.dealer-contact-details {
    margin-bottom: 25px;
}

.dealer-contact-details p {
    display: flex;
    align-items: center;
    justify-content: center; /* Căn giữa các mục liên hệ */
    font-size: 1.1em;
    margin-bottom: 12px;
}

.dealer-contact-details .contact-icon { /* Kế thừa style contact-icon đã có hoặc định nghĩa lại */
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.dealer-contact-details a {
    color: #0056b3;
    font-weight: 500;
    word-break: break-all; /* Chống vỡ layout nếu email/sdt quá dài */
}
.dealer-contact-details a:hover {
    text-decoration: underline;
}

.dealer-cta-button {
    background-color: #dc3545; /* Màu đỏ cho nút CTA đại lý, hoặc màu khác bạn thích */
    color: #fff;
    padding: 15px 30px;
    font-size: 1.15em;
    /* Kế thừa các style khác từ .cta-button nếu có */
}

.dealer-cta-button:hover {
    background-color: #c82333; /* Màu đậm hơn khi hover */
}


@media (max-width: 768px) {
    .dealer-benefits-grid {
        grid-template-columns: 1fr; /* Xếp chồng trên mobile */
    }
    .benefit-item {
        text-align: center; /* Căn giữa nội dung benefit item trên mobile */
    }
    .benefit-icon {
        margin-left: auto;
        margin-right: auto; /* Căn giữa icon */
    }
    .dealer-contact-action h3 {
        font-size: 1.7em;
    }
    .dealer-contact-details p {
        flex-direction: column; /* Xếp icon và text theo chiều dọc */
        align-items: center;
        font-size: 1em;
    }
    .dealer-contact-details .contact-icon {
        margin-bottom: 5px;
        margin-right: 0;
    }
}


/* Styling cho các nút trong Hero Section */
.hero-cta-buttons {
    display: flex; /* Sắp xếp các nút trên một hàng */
    justify-content: center; /* Căn giữa các nút */
    align-items: center;
    gap: 20px; /* Khoảng cách giữa các nút */
    flex-wrap: wrap; /* Cho phép xuống dòng trên màn hình nhỏ */
}


.cta-button.secondary-cta {
    background-color: transparent; /* Nền trong suốt */
    color: #ffffff; /* Màu chữ trắng (hoặc màu tương phản với nền hero) */
    border: 2px solid #ffc107; /* Viền màu vàng (giống màu nút chính) */
    /* padding: 13px 28px; */ /* Điều chỉnh padding nếu cần để đồng bộ chiều cao */
}

.cta-button.secondary-cta:hover {
    background-color: #ffc107; /* Đổi nền vàng khi hover */
    color: #333; /* Đổi màu chữ khi hover */
    border-color: #ffc107;
}

/* --- Styling cho trang dealer.html --- */
#dealer-page-content .page-header {
    text-align: center;
    margin-bottom: 50px;
}

#dealer-page-content .page-header h1 {
    font-size: 2.8em; /* Cỡ chữ cho tiêu đề chính của trang */
    margin-bottom: 15px;
    color: #007bff; /* Màu tiêu đề */
}

#dealer-page-content .dealer-benefits-grid {
    margin-top: 30px;
    margin-bottom: 60px; /* Tăng khoảng cách dưới */
}

 #dealer-page-content .benefit-item {
    background-color: #fff; /* Có thể đổi nền nếu #dealer-page-content có màu nền khác */
    border: 1px solid #e9ecef;
}


/* Điều chỉnh lại style cho dealer-contact-action nếu cần */
#dealer-page-content .dealer-contact-action {
    background-color: #f8f9fa; /* Nền sáng hơn cho khu vực liên hệ */
    border: none;
    box-shadow: 0 0 25px rgba(0,0,0,0.08);
}

#dealer-page-content .dealer-contact-action h3 {
    font-size: 2em; /* Cỡ chữ tiêu đề kêu gọi hành động */
}

.cta-button.dealer-cta-button.large-cta { /* Đảm bảo nút CTA trên trang dealer cũng được style */
    padding: 18px 40px;
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 15px;
    background-color: #28a745; /* Màu xanh lá */
    color: #fff;
}
.cta-button.dealer-cta-button.large-cta:hover {
    background-color: #218838;
}


/* Responsive cho các nút trong hero */
@media (max-width: 576px) {
    .hero-cta-buttons {
        flex-direction: column; /* Xếp chồng các nút trên màn hình rất nhỏ */
        gap: 15px;
    }
    .hero-cta-buttons .cta-button {
        width: 80%; /* Cho nút rộng hơn một chút */
        max-width: 300px; /* Giới hạn độ rộng tối đa */
    }
}


/* --- Feature Item Icons (index.html) --- */
.feature-item .feature-icon {
    font-size: 3em; /* Kích thước emoji */
    line-height: 1;
    margin-bottom: 20px;
    color: #007bff; /* Màu cho emoji (có thể không áp dụng cho tất cả emoji) */
    display: inline-block;
    /* Tùy chọn: thêm nền nếu muốn */
    /* background-color: #e9ecef; 
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center; */
}

/* --- Benefit Item Icons (dealer.html) --- */
.benefit-item .benefit-icon-emoji { /* Đổi tên class để tránh xung đột nếu .benefit-icon đã được dùng cho img */
    font-size: 2.5em; /* Kích thước emoji */
    line-height: 1;
    margin-bottom: 15px;
    color: #007bff; /* Màu cho emoji */
    display: block; /* Để căn giữa nếu benefit-item text-align: center */
    /* margin-left: auto; */ /* Căn giữa nếu display block và parent text-align left */
    /* margin-right: auto; */
}



/* --- Contact Icons (Emoji version) --- */
.contact-icon-emoji {
    font-size: 1.2em; /* Kích thước emoji cho icon liên hệ */
    margin-right: 8px;
    vertical-align: middle; /* Căn chỉnh emoji với text */
}


/* =================================== */
/* == CSS CHO PRODUCT MODAL (POPUP) == */
/* =================================== */

.modal {
    display: none; /* Ẩn ban đầu */
    position: fixed; /* Vị trí cố định trên màn hình */
    z-index: 2000; /* Nằm trên cùng */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Ngăn cuộn chính của modal, cuộn bên trong modal-content */
    background-color: rgba(0,0,0,0.65); /* Nền mờ */
    /* Sử dụng flex để căn giữa modal-content dễ dàng */
    align-items: center;
    justify-content: center;
    padding: 15px; /* Khoảng đệm nhỏ cho màn hình bé */
    box-sizing: border-box;
}

.modal-content {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    position: relative;
    width: 90%;
    max-width: 850px; /* Độ rộng tối đa của modal */
    max-height: 90vh; /* Chiều cao tối đa, còn lại để cuộn */
    overflow-y: auto; /* Cho phép cuộn nội dung bên trong modal nếu dài */
    display: flex;
    flex-direction: column; /* Mặc định xếp chồng trên mobile */
}

/* Layout cho màn hình lớn hơn (ví dụ: tablet ngang trở lên) */
@media (min-width: 768px) {
    .modal-content {
        flex-direction: row; /* Xếp ảnh và chi tiết cạnh nhau */
    }
}

.close-modal-button {
    color: #888;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-modal-button:hover,
.close-modal-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal-image-container {
    text-align: center;
    margin-bottom: 20px; /* Khoảng cách với text trên mobile */
    flex: 1 1 45%; /* Chiếm 45% chiều rộng trên desktop */
    padding-right: 0; /* Mặc định không có padding */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .modal-image-container {
        margin-bottom: 0; /* Không cần margin bottom trên desktop */
        padding-right: 25px; /* Khoảng cách giữa ảnh và text */
    }
}

#modalProductImage { /* img bên trong container */
    max-width: 100%;
    max-height: 300px; /* Chiều cao tối đa cho ảnh trong modal trên mobile */
    height: auto;
    border-radius: 8px;
    object-fit: contain; /* Đảm bảo ảnh hiển thị trọn vẹn */
    border: 1px solid #eee;
}

@media (min-width: 768px) {
    #modalProductImage {
        max-height: 450px; /* Tăng chiều cao tối đa cho ảnh trên desktop */
    }
}

.modal-details-container {
    flex: 1 1 55%; /* Chiếm 55% chiều rộng trên desktop */
    text-align: left;
    display: flex;
    flex-direction: column;
}

#modalProductName {
    font-size: 2.1em;
    color: #007bff;
    margin-top: 0; /* Reset margin top */
    margin-bottom: 15px;
    line-height: 1.2;
}

.modal-details-container h4 {
    font-size: 1.25em;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 6px;
}
.modal-details-container h4:first-of-type { /* H4 đầu tiên (Thông số kỹ thuật) */
    margin-top: 0;
}


#modalProductSpecs {
    list-style: none; /* Bỏ dấu đầu dòng mặc định */
    padding-left: 0;
    margin-bottom: 20px;
    font-size: 0.95em;
    color: #444;
}

#modalProductSpecs li {
    margin-bottom: 8px;
    padding-left: 18px; /* Tạo khoảng trống cho icon/dấu đầu dòng tùy chỉnh */
    position: relative;
}
#modalProductSpecs li::before { /* Tạo dấu đầu dòng tùy chỉnh */
    content: '✓'; /* Hoặc '✔', '•', '–' */
    position: absolute;
    left: 0;
    top: 1px;
    color: #28a745; /* Màu xanh lá cho dấu check */
    font-weight: bold;
}


#modalProductDescription {
    font-size: 1em;
    line-height: 1.75;
    color: #555;
    margin-top: 10px;
    flex-grow: 1; /* Để mô tả chiếm không gian còn lại nếu cần */
}

/* CSS cho link "Xem Chi Tiết" trong mỗi product-item */
.product-item {
    /* cursor: pointer; đã có từ style cũ nếu bạn dùng lại */
    /* position: relative; đã có */
    display: flex; /* Chỉnh sửa để nội dung bên trong dễ quản lý hơn */
    flex-direction: column;
    /* height: 100%; */ /* Đảm bảo các card có chiều cao bằng nhau nếu cần */
}
.product-item img {
    /* Style cho img đã có */
}
.product-item h3 {
    /* Style cho h3 đã có */
}
.product-item p { /* Mô tả ngắn */
    flex-grow: 1; /* Để mô tả ngắn chiếm không gian, giúp nút ở dưới cùng */
    margin-bottom: 15px; /* Khoảng cách với nút Xem chi tiết */
}


.product-item .view-details-link {
    display: inline-block; /* Hoặc block nếu muốn chiếm cả hàng */
    margin-top: auto; /* Đẩy nút xuống dưới cùng của flex item */
    padding: 10px 18px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-decoration: none; /* Bỏ gạch chân nếu nó là thẻ <a> */
    cursor: pointer;
}

.product-item:hover .view-details-link {
    background-color: #0056b3;
    transform: translateY(-2px);
}
.product-item:focus, .product-item:focus-within { /* Cải thiện accessibility khi focus */
    outline: 2px solid #007bff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0,123,255,.25); /* Tùy chọn: thêm shadow khi focus */
}



footer {
    background-color: #343a40; /* Màu nền tối cho footer */
    color: #adb5bd; /* Màu chữ nhạt hơn cho dễ đọc trên nền tối */
    padding: 50px 0 0 0; /* Tăng padding trên, không padding dưới vì có footer-bottom */
    font-size: 0.95em;
    line-height: 1.7;
}

.footer-container {
    display: flex;
    flex-wrap: wrap; /* Cho phép các cột xuống dòng trên màn hình nhỏ */
    justify-content: space-between;
    gap: 30px; /* Khoảng cách giữa các cột */
}

.footer-column {
    flex: 1; /* Các cột sẽ cố gắng chia đều không gian */
    min-width: 250px; /* Độ rộng tối thiểu cho mỗi cột trước khi xuống dòng */
    margin-bottom: 30px;
}

.footer-column h4 {
    color: #ffffff; /* Màu tiêu đề cột */
    font-size: 1.25em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after { /* Đường gạch chân nhỏ dưới tiêu đề cột */
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #007bff; /* Màu gạch chân */
}

.footer-column.company-info p {
    margin-bottom: 10px;
}
.footer-column.company-info strong {
    color: #e9ecef;
}

.footer-icon-emoji { /* Style cho emoji icon trong thông tin công ty và liên hệ */
    margin-right: 8px;
    /* font-size: 1.1em; */ /* Có thể điều chỉnh kích thước nếu cần */
}

.footer-column a {
    color: #ced4da; /* Màu link trong footer */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #ffffff; /* Màu link khi hover */
    text-decoration: underline;
}

.quick-links ul, .social-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li, .social-links li {
    margin-bottom: 10px;
}

.quick-links li a::before { /* Thêm dấu gạch đầu dòng cho quick links */
    content: "› ";
    margin-right: 5px;
    color: #007bff;
}

.social-links li a {
    display: flex; /* Căn icon và text thẳng hàng */
    align-items: center;
}

.footer-social-icon {
    font-size: 1.3em; /* Kích thước emoji mạng xã hội */
    margin-right: 10px;
    width: 25px; /* Đảm bảo không gian cho icon */
    display: inline-block;
    text-align: center;
}

.footer-bottom {
    background-color: #212529; /* Nền đậm hơn cho phần copyright */
    padding: 20px 0;
    text-align: center;
    margin-top: 20px; /* Khoảng cách với các cột ở trên */
    font-size: 0.9em;
    color: #868e96;
}
.footer-bottom p {
    margin: 0;
}

/* Responsive cho Footer */
@media (max-width: 992px) {
    .footer-column {
        min-width: calc(50% - 15px); /* 2 cột trên tablet */
    }
}

@media (max-width: 576px) {
    .footer-container {
        flex-direction: column; /* 1 cột trên mobile */
        text-align: center; /* Căn giữa nội dung cột trên mobile */
    }
    .footer-column {
        min-width: 100%;
    }
    .footer-column h4::after { /* Căn giữa gạch chân dưới tiêu đề cột */
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links li a {
        justify-content: center; /* Căn giữa icon và text mạng xã hội */
    }
    .footer-column.company-info p,
    .dealer-contact-details p { /* Căn giữa luôn các dòng thông tin */
        justify-content: center;
    }
}

/* =================================== */
/* == CSS CHO NÚT ZALO NỔI (Cập nhật IMG) == */
/* =================================== */

.floating-zalo-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1500;
    background-color: #28a745; /* Màu xanh Zalo */
    color: white;
    /* padding: 10px; */ /* Padding sẽ không cần thiết nếu ảnh đã có khoảng trống */
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex; /* Để căn giữa ảnh bên trong */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulseZalo 2s infinite;
}

.floating-zalo-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    animation-play-state: paused;
}

.zalo-img-icon { /* CSS cho thẻ <img> logo Zalo */
    width: 36px; /* Điều chỉnh kích thước logo cho phù hợp bên trong nút 60x60px */
    height: 36px;
    display: block; /* Để loại bỏ khoảng trống thừa dưới ảnh nếu có */
}

.zalo-button-text {
    position: absolute;
    right: 100%;
    margin-right: 12px;
    padding: 6px 12px;
    background-color: #28a745;
    color: white;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transform: translateX(10px);
    transition: visibility 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.floating-zalo-button:hover .zalo-button-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulseZalo {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(0, 104, 255, 0.5);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(0, 104, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(0, 104, 255, 0);
    }
}

@media (max-width: 768px) {
    .floating-zalo-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    .zalo-img-icon {
        width: 30px; /* Điều chỉnh kích thước logo cho nút nhỏ hơn */
        height: 30px;
    }
    /* .floating-zalo-button:hover .zalo-button-text { */
        /* display: none; */ /* Tùy chọn: có thể ẩn hẳn text trên mobile nếu muốn */
    /* } */
}