/* --- BIẾN CSS VÀ THIẾT LẬP CHUNG --- */
:root {
    --primary-color: #E53935;
    --primary-hover: #E1002D;
    --secondary-color: #c5c5c5;
    --secondary-hover: #aaaaaa;
    --text-dark: #222;
    --text-light: #666;
    --background-color: #fdfdfd;
    --card-bg: #ffffff;
    --border-color: #eeeeee;
    --shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --font-family: 'Roboto', 'arial';
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Đặt font Be Vietnam Pro làm font mặc định cho toàn bộ trang */
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-dark);
}
/* Hoặc nếu bạn muốn áp dụng cho tất cả các phần tử tương tác: */
a, button, input, textarea, select, [role="button"], [role="link"], [data-clickable] {
    -webkit-tap-highlight-color: transparent;
}
main {
    flex-grow: 1; /* THÊM DÒNG NÀY - cho phép main mở rộng để lấp đầy khoảng trống */
}

.container {
    max-width: 1280px;
    height: auto;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #ffffff;
}

/* --- HEADER --- */
header {
    background-color: #2c3e50;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    gap: 10px;
}

.logo img {
    height: 45px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
    position: relative;
}
.nav-icon i {
    font-size: 25px;
    color: white;
}
.nav-icon span { /* Ẩn chữ cho icon "Tài khoản" và "Theo dõi ĐH" */
    display: block; /* Mặc định là block để hiển thị cho cart-count-badge */
}
.hotline-text {
    font-size: 25px; /* Chữ to hơn */
    font-weight: 500; /* Làm cho chữ rõ hơn một chút */
}
.nav-icon:hover {
    background-color: var(--secondary-color);
}
#cart-count-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    transform: translate(50%, -50%);
}
.menu-toggle {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    display: block; /* HIỂN THỊ TRÊN TẤT CẢ CÁC KÍCH THƯỚC MÀN HÌNH */
    color: white; /* Thêm màu cho icon menu */
    margin-left: 10px; /* Thêm khoảng cách với giỏ hàng */
}
.menu-toggle:hover{
    transform: translateY(-2px);
}
/* --- ĐIỀU HƯỚNG DANH MỤC --- */
.category-nav {
    position: relative;
    padding: 15px 0;
    display: flex;
    align-items: center;

    
}

.category-nav ul {
    display: flex;
    list-style: none;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 15px;
    padding: 5px 0;
}

.category-nav ul::-webkit-scrollbar {
    display: none;
}

.category-nav a {
    display: block;
    padding: 10px 22px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-dark);
    
}

.category-nav a.active,
.category-nav a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.nav-arrow {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.nav-arrow:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.left-arrow { margin-right: 10px; }
.right-arrow { margin-left: 10px; }


/* --- PHẦN MENU VÀ SẢN PHẨM --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-header h2 i {
    color: var(--primary-color);
}

.view-all-link {
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
}
.view-all-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Buộc hiển thị 4 cột trên desktop */
    gap: 15px;
    margin-bottom: 25px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.product-card:hover .image-overlay {
    opacity: 1;
}

.quick-add-btn {
    background-color: var(--card-bg);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 22px;
    cursor: pointer;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.product-card:hover .quick-add-btn {
    transform: scale(1);
    opacity: 1;
}

.product-info {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    
}

.product-info h3 {
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 700;
    flex-grow: 1;
    color: var(--text-dark);
}

.product-info .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    /* Thêm các thuộc tính này để căn giữa chữ */
    display: flex; /* Chuyển thành flex container */
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
    text-align: center; /* Đảm bảo text-align cũng được căn giữa */
    white-space: nowrap; /* Ngăn chữ bị ngắt dòng */
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}
.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px #aaaaaa;
}

/* --- FOOTER --- */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0 20px;
    margin-top: 10px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

}
.footer-section h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    display: inline-block;
}
.footer-section p, .footer-section li {
    color: #bdc3c7;
    line-height: 1.8;
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    transition: all 0.3s ease;
}
.social-icons a {
    color: #ecf0f1;
    font-size: 22px;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #95a5a6;
}


/* --- TRANG GIỎ HÀNG --- */
.cart-page {
    margin-top: 30px;
    margin-bottom: 0; /* THAY ĐỔI TỪ 50px SANG 0 */
}
.cart-container {
    display: grid;
    /* Điều chỉnh grid template để chứa hàng mới cho nút */
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto; /* Hai hàng: một cho items/summary, một cho nút */
    gap: 10px;
    align-items: flex-start;
}

.cart-items-list {
    grid-column: 1 / 2; /* Đặt danh sách món hàng vào cột đầu tiên */
    grid-row: 1 / 2;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-height: 550px; /* Giữ nguyên hoặc điều chỉnh tùy ý */
}
.cart-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius);
    object-fit: cover;
}
.cart-item-info {
    flex-grow: 1;
}
.cart-item-info h4 {
    font-size: 20px;
    margin-bottom: 5px;
}
.cart-item-info .price {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 700;
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}
.quantity-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 16px;
}
.quantity-value {
    font-weight: bold;
    padding: 0 5px;
}
.remove-item-btn {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s ease;
}
.remove-item-btn:hover {
    color: #c62828;
}
.cart-empty-message {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}
.cart-empty-message i {
    font-size: 150px;
    margin-bottom: 20px;
    color: var(--border-color);
}
.cart-empty-message .btn {
    margin-top: 20px;
    width: auto;
    padding: 12px 30px;
}
.cart-summary {
    grid-column: 2 / 3; /* Đặt tóm tắt giỏ hàng vào cột thứ hai */
    grid-row: 1 / 2;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    height: auto;
}
.cart-actions-bottom {
    grid-column: 1 / 2; /* Đặt nút dưới danh sách món hàng trong cột đầu tiên */
    grid-row: 2 / 3; /* Trong hàng thứ hai */
    margin-top: 15px; /* Thêm khoảng cách phía trên */
    padding: 0 20px; /* Điều chỉnh padding để căn chỉnh với danh sách món */
    text-align: right; /* Căn nút sang phải trong vùng lưới của nó */
}
.cart-actions-bottom .btn {
    width: auto; /* Cho phép nút tự điều chỉnh kích thước theo nội dung */
    min-width: 200px; /* Tùy chọn: chiều rộng tối thiểu cho nút */
    display: inline-flex; /* Sử dụng inline-flex để căn giữa văn bản và áp dụng min-width */
    justify-content: center;
    align-items: center;
}
.cart-summary .btn {
    /* Có thể thêm riêng nếu cần override */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.cart-summary h3 {
    font-size: 20px;
    margin-bottom: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-light);
}
.summary-row.total-row {
    font-weight: bold;
    font-size: 18px;
    color: var(--text-dark);
}
.cart-summary hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 15px 0;
}
.btn-checkout:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.btn-disabled {
    background-color: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    box-shadow: none !important;
    transform: none !important;
}
.btn-checkout:disabled:hover {
    box-shadow: none;
    transform: none;
}

@media (max-width: 768px) {
    /* Điều chỉnh cho màn hình mobile nhỏ hơn */
    .cart-actions-bottom .btn {
        width: 100%; /* Nút chiếm toàn bộ chiều rộng trên mobile nhỏ */
    }
    .cart-empty-message i {
    font-size: 100px;
    margin-bottom: 20px;
    color: var(--border-color);
}
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .cart-container {
        grid-template-columns: 1fr; /* Xếp chồng các cột */
        grid-template-rows: auto auto auto; /* Ba hàng: items, button, summary */
    }

    .cart-items-list {
        grid-column: 1 / -1; /* Chiếm toàn bộ chiều rộng */
        grid-row: 1 / 2;
    }

    .cart-actions-bottom {
        grid-column: 1 / -1; /* Chiếm toàn bộ chiều rộng */
        grid-row: 2 / 3;
        text-align: center; /* Căn giữa nút trên mobile */
        padding: 0; /* Bỏ padding ngang */
        margin-top: 15px;
    }

    .cart-summary {
        grid-column: 1 / -1; /* Chiếm toàn bộ chiều rộng */
        grid-row: 3 / 4;
        margin-top: 15px; /* Khoảng cách giữa nút và tóm tắt */
    }
    
}
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Hiển thị trên mobile */
        order: 3; /* Đặt nó ở cuối cùng trong flex container */
        margin-left: 10px; /* Đẩy sang phải */
    }
    .container {
        padding: 0 15px;
    }
    .main-nav {
        display: flex; /* Thay vì none, để hiển thị các icon */
        align-items: center;
        gap: 8px; /* Giảm khoảng cách giữa các icon */
        margin-left: auto;
    }
    .nav-icon {
        padding: 5px 8px; /* Giảm padding để nhỏ gọn hơn */
    }
    .nav-icon i {
        font-size: 25px; /* Điều chỉnh kích thước icon */
    }
    .nav-icon span { /* Ẩn chữ cho icon "Tài khoản" và "Theo dõi ĐH" trên mobile */
        display: none;
    }
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    header{
        height: 65px;
    }
    
    /* CHỈNH SỬA QUY TẮC NÀY ĐỂ CỐ ĐỊNH 2 CỘT TRÊN MOBILE VÀ TABLET NHỎ */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px; /* Giữ nguyên gap */
    }

    .radio-option {
        /* Điều chỉnh kích thước và khoảng cách cho dễ chạm hơn */
        padding: 12px 15px;
        font-size: 14px;
        min-width: unset; /* Cho phép linh hoạt hơn */
        flex-grow: 1; /* Để các tùy chọn chiếm đủ không gian */
    }
    .radio-group.delivery-date-group .radio-option {
        flex-basis: calc(33.33% - 10px); /* Chia 3 cột trên di động */
    }
    .radio-option.time-slot-option {
        width: 100%; /* Giờ cụ thể chiếm toàn bộ chiều rộng */
    }
    .logo {
        font-size: 20px;
    }
    .logo img {
        height: 35px;
    }
}
/* QUY TẮC .product-grid Ở @media (max-width: 480px) ĐÃ ĐƯỢC XÓA ĐỂ TRÁNH TRÙNG LẶP */
@media (max-width: 480px) { /* Cho các màn hình cực nhỏ */
    .radio-group {
        flex-direction: column; /* Các tùy chọn radio xếp chồng lên nhau */
    }
    .radio-option {
        width: 100%;
    }

    .section-header h2 {
        font-size: 20px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-section ul {
        padding: 0;
    }
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* --- TRANG THANH TOÁN (thong-tin-dat-hang.html) --- */
.checkout-page {
    margin-top: 30px;
    margin-bottom: 50px;
}

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.checkout-section {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.checkout-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.form-group {
    margin-top: 10px;
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-grow: 1; /* Cho phép các tùy chọn mở rộng */
    justify-content: center; /* Căn giữa nội dung */
    min-width: 150px; /* Đảm bảo kích thước tối thiểu */
}
.radio-option.time-slot-option {
    flex-direction: row;
    align-items: flex-start;
    gap: 5px;
    flex-grow: unset;
}
.radio-group input[type="radio"] {
    appearance: none; /* Ẩn radio mặc định */
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-group input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.2s ease;
    background-color: var(--primary-color);
}

.radio-group input[type="radio"]:checked::before {
    transform: scale(1);
}

.radio-group input[type="radio"]:checked {
    border-color: var(--primary-color);
}

.radio-option:hover {
    border-color: var(--primary-color);
}

.radio-group input[type="radio"]:checked + i,
.radio-group input[type="radio"]:checked + span {
    color: var(--primary-color);
}

.radio-option i {
    color: var(--text-light);
    font-size: 18px;
}
.radio-option small {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 5px;
}

.delivery-date-group .radio-option {
    text-align: center;
    flex-direction: column;
    align-items: center;
}
.delivery-date-group .radio-option input {
    margin-bottom: 5px;
}

#delivery-time-select {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;

}
#delivery-time-select:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
}
#pickup-time-select{
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
}

/* Order Summary on Checkout Page */
.order-summary-checkout {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px; /* Giữ sticky ở trên cùng */
    
}

.order-summary-checkout h4 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color);
    Border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

#checkout-item-list {
    margin-bottom: 5px;

}
.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}
.checkout-summary-item .item-name {
    color: var(--text-dark);
}
.checkout-summary-item .item-quantity {
    color: var(--text-light);
}
.checkout-summary-item .item-price {
    font-weight: 600;
    color: var(--text-dark);
}

.order-summary-checkout hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 15px 0;
}

.order-summary-checkout .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-light);
}
.summary-row.total-row {
    font-weight: bold;
    font-size: 18px;
    color: var(--primary-color); /* Màu đỏ cho tổng cộng */
}
.order-summary-checkout .summary-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}
.order-summary-checkout .summary-row.total-row span:last-child {
    color: var(--primary-color);
}

.btn-place-order {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 10px;
}

.terms-text {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin-top: 15px;
}

/* Responsive Design for Checkout Page */
@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    .order-summary-checkout {
        position: relative;
        top: unset;
    }
}

@media (max-width: 768px) {
    .checkout-section {
        padding: 20px;
    }
    .checkout-section h4 {
        font-size: 16px;
    }
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 14px;
    }
    .radio-option {
        flex-direction: row;
        align-items: center;
        padding: 10px 15px;
        min-width: unset;
    }
    .radio-option.time-slot-option {
        align-items: flex-start;
    }
    .delivery-date-group .radio-option small {
        font-size: 11px;
    }
    .order-summary-checkout {
        padding: 20px;
    }
    .order-summary-checkout h4 {
        font-size: 18px;
    }
    .order-summary-checkout .summary-row {
        font-size: 14px;
    }
    .order-summary-checkout .summary-row.total-row {
        font-size: 16px;
    }
}
/* --- MOBILE MENU --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%; /* Bắt đầu ẩn ngoài màn hình */
    width: 15%;
    height: 100%;
    background-color: var(--card-bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Khoảng cách từ header */
    box-shadow: var(--shadow);
    transition: left 0.3s ease-in-out;
    overflow-y: auto; /* Cho phép cuộn nếu nội dung dài */
}
/* Thêm vào .mobile-menu ul li a để làm nhỏ lại */
.mobile-menu ul li a {
    display: block;
    padding: 10px 15px; /* Giảm padding */
    font-size: 16px;   /* Giảm font size */
    font-weight: 500;
    color: var(--text-dark);
    transition: background-color 0.3s ease;
}


.mobile-menu.active {
    left: 0; /* Hiện menu */
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-menu ul li {
    border-bottom: 1px solid var(--border-color);
}
.mobile-menu ul li:last-child {
    border-bottom: none;
}
.mobile-menu ul li a {
    display: block;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    transition: background-color 0.3s ease;
}

.mobile-menu ul li a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Overlay khi menu mở */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.menu-overlay.active {
    display: block;
}
/* --- TOAST MESSAGE STYLES --- */
#toast-container {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 10000; /* Đảm bảo nó luôn ở trên cùng */
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Cho phép click xuyên qua nếu không có toast */
}

.toast-message {
    background-color: var(--card-bg); /* Màu nền trắng */
    color: var(--text-dark); /* Màu chữ tối */
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow); /* Bóng đổ nhẹ */
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 1; /* Mặc định hiển thị */
    transform: translateY(0); /* Mặc định ở vị trí ban đầu */
    min-width: 250px;
    max-width: auto; /* Điều chỉnh kích thước tối đa để đảm bảo đủ chỗ */
    pointer-events: auto; /* Cho phép tương tác khi toast hiển thị */

    /* Quan trọng: Thêm các transition này để hiệu ứng ẩn mượt mà */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;

    /* Để thanh progress bar định vị tương đối và không tràn ra ngoài */
    position: relative;
    overflow: hidden;
    padding-bottom: 15px; /* Thêm khoảng trống cho thanh progress bar */
}

/* Khi có class 'hide', toast sẽ ẩn đi */
.toast-message.hide {
    opacity: 0;
    transform: translateY(20px); /* Di chuyển xuống để ẩn đi */
}

.toast-message i {
    color: green; /* Màu icon */
    font-size: 20px;
}

.toast-message span {
    flex-grow: 1;
    font-size: 15px;
}

.toast-message .toast-buttons {
    display: flex;
    gap: 10px;
}

.toast-button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    white-space: nowrap; /* Ngăn chữ bị ngắt dòng */
}

.toast-button:hover {
    background-color: var(--secondary-color);
}

/* Kiểu cho thanh thời gian (progress bar) */
.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Chiều cao của thanh */
    background-color: var(--primary-color); /* Màu của thanh */
    transform-origin: left; /* Đảm bảo thanh co lại từ bên trái */
    animation: countdown 1s linear forwards; /* Animation chạy trong 5 giây */
}

/* Keyframes cho animation của thanh thời gian */
@keyframes countdown {
    from {
        transform: scaleX(1); /* Bắt đầu đầy đủ */
    }
    to {
        transform: scaleX(0); /* Kết thúc rỗng */
    }
}


/* Responsive cho toast message */
@media (max-width: 768px) {
    #toast-container {
        bottom: 10px;
        left: 10px; /* Di chuyển sang trái dưới */
        right: 10px;
        max-width: calc(100% - 20px); /* Đảm bảo vừa màn hình */
        align-items: flex-start;
    }
    .toast-message {
        width: 100%;
        padding: 10px 10px;
        font-size: 10px;
        flex-direction: column; /* Xếp dọc các thành phần */
        align-items: flex-start;
    }
    .toast-message .toast-buttons {
        width: 100%;
        margin-top: 10px;
        justify-content: flex-end; /* Căn phải các nút */
    }
}
/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 500px; /* Chiều cao của banner */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 30px; /* Khoảng cách với phần menu */

    overflow: hidden; /* Đảm bảo nội dung không tràn ra ngoài */
}

/* Ẩn lớp phủ cũ và hero-content */
.hero-section::before,
.hero-content {
    content: none;
    display: none;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%; /* Đảm bảo slideshow chiếm toàn bộ hero-section */
    overflow: hidden;

}

/* Ẩn các slide theo mặc định */
.mySlides {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hiệu ứng mờ dần */
.fade {
    animation-name: fade;
    animation-duration: 6s;
}

/* Ẩn nút điều hướng trước & sau */
.prev, .next {
    display: none; /* Ẩn hoàn toàn các nút điều hướng */
}

/* Dấu chấm điều hướng (chỉ số) */
.dot {
    cursor: pointer;
    height: 5px;
    width: 5px;
    margin: 0 5px;
    background-color: #ff0000;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot, .dot:hover {
    background-color: #ffffff;
}

/* Responsive cho Hero Section (giữ nguyên nhưng đảm bảo không xung đột) */
@media (max-width: 992px) {
    .hero-section {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 200px;
    }
}
/* --- PRODUCT DETAIL PAGE --- */
.product-detail-page {
    margin-top: 30px;
    margin-bottom: 50px;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.breadcrumb a {
    color: var(--primary-color);
    transition: color 0.2s ease;
}
.breadcrumb a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}
.breadcrumb span {
    font-weight: 500;
    color: var(--text-dark);
}

.product-detail-container {
    display: flex;
    gap: 40px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    align-items: flex-start;
}

.product-image-gallery {
    flex: 1; /* Chiếm 1 phần không gian */
    min-width: 300px; /* Đảm bảo kích thước tối thiểu */
}

.product-image-gallery .main-image {
    width: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
    aspect-ratio: 1 / 1; /* Giữ tỷ lệ 1:1 */
}

.product-info-detail {
    flex: 1.5; /* Chiếm nhiều không gian hơn */
}

.product-info-detail h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.product-price-detail {
    font-size: 35px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.quantity-selector {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.quantity-selector label {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
}
.quantity-control-detail {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.quantity-btn-detail {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 18px;
    color: var(--primary-color);
    transition: background-color 0.2s ease;
}
.quantity-btn-detail:hover {
    background-color: var(--secondary-color);
}
#product-quantity {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-family: var(--font-family);
    -moz-appearance: textfield; /* Loại bỏ mũi tên trên Firefox */
}
#product-quantity::-webkit-outer-spin-button,
#product-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#product-quantity:focus {
    outline: none;
}

.product-actions-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}
.add-to-cart-btn-detail, .buy-now-btn-detail {
    flex: 1; /* Chiếm hết không gian */
    padding: 15px;
    font-size: 16px;
}
.product-additional-info {
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}
.product-additional-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.product-additional-info ul {
    list-style: none;
    padding: 0;
}
.product-additional-info ul li {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 8px;
}
.product-additional-info ul li strong {
    color: var(--text-dark);
}

/* Responsive cho Product Detail Page */
@media (max-width: 992px) {
    .product-detail-container {
        flex-direction: column; /* Xếp dọc các phần tử */
        align-items: center;
        padding: 20px;
    }
    .product-image-gallery {
        min-width: unset;
        width: 100%;
        max-width: 500px; /* Giới hạn chiều rộng ảnh */
    }
    .product-info-detail {
        width: 100%;
        text-align: center; /* Căn giữa nội dung */
    }
    .product-info-detail h1 {
        font-size: 28px;
    }
    .product-price-detail {
        font-size: 25px;
    }
    .quantity-selector {
        justify-content: center; /* Căn giữa số lượng */
        width: 100%;
    }
    .product-actions-detail {
        flex-direction: column; /* Nút xếp chồng */
    }
    .product-additional-info {
        text-align: left; /* Để mô tả thêm vẫn căn trái */
    }
}

@media (max-width: 480px) {
    .product-detail-container {
        padding: 15px;
    }
    .product-info-detail h1 {
        font-size: 25px;
    }
    .product-price-detail {
        font-size: 30px;
    }
    .product-description {
        font-size: 13px;
    }
}
/* --- ORDER SUCCESS MODAL STYLES --- */
.order-success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Lớp phủ mờ */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001; /* Đảm bảo nó nằm trên tất cả các lớp khác */
    opacity: 0; /* Ban đầu ẩn */
    visibility: hidden; /* Ban đầu ẩn */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.order-success-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.order-success-modal-content {
    background-color: var(--card-bg); /* Nền trắng */
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    width: 90%;
    max-width: 450px; /* Chiều rộng tối đa */
    position: relative;
    transform: translateY(-20px); /* Bắt đầu từ trên xuống */
    transition: transform 0.3s ease;
}

.order-success-modal-overlay.active .order-success-modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s ease;
}
.modal-close-btn:hover {
    color: var(--text-dark);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.modal-icon {
    font-size: 60px;
    color: #4CAF50; /* Màu xanh lá cho icon check */
    margin-bottom: 25px;
    animation: bounce-in 0.5s forwards;
}

.modal-message {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-actions {
    display: flex;
    flex-direction: column; /* Các nút xếp chồng */
    gap: 15px;
}

.modal-btn-confirm,
.modal-btn-review {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Kế thừa màu từ .btn-primary và .btn-secondary */
.modal-btn-confirm {
    background-color: var(--primary-color);
    color: #fff;
}
.modal-btn-confirm:hover {
    background-color: var(--primary-hover);
}

.modal-btn-review {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}
.modal-btn-review:hover {
    background-color: var(--secondary-hover);
}

/* Animation cho icon check */
@keyframes bounce-in {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* Responsive cho modal */
@media (max-width: 480px) {
    .order-success-modal-content {
        padding: 20px;
    }
    .modal-title {
        font-size: 20px;
    }
    .modal-icon {
        font-size: 50px;
    }
    .modal-message {
        font-size: 14px;
    }
    .modal-actions {
        gap: 10px;
    }
    .modal-btn-confirm,
    .modal-btn-review {
        padding: 10px;
        font-size: 14px;
    }
}
/* --- New styles for form inputs --- */
.form-control { /* Áp dụng cho input type="date" */
    width: 100%;
    padding: 15px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
}

.help-text {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
    display: block; /* Đảm bảo xuống dòng */
}
/* Ẩn mũi tên lên/xuống của input type="date" nếu muốn */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 5px;
}
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* NEW: Mobile menu smaller size */
@media (max-width: 768px) {
    .mobile-menu ul li a {
        padding: 10px 15px; /* Giảm padding */
        font-size: 16px;   /* Giảm font size */
    }
    .mobile-menu {
    position: fixed;
    top: 0;
    left: -100%; /* Bắt đầu ẩn ngoài màn hình */
    width: 50% !important;
    height: 100%;
    background-color: var(--card-bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Khoảng cách từ header */
    box-shadow: var(--shadow);
    transition: left 0.3s ease-in-out;
    overflow-y: auto; /* Cho phép cuộn nếu nội dung dài */
}
}
/* --- Cập nhật và Bổ sung cho trang chi-tiet-don-hang.html --- */
.tracking-page {
    margin-top: 30px;
    margin-bottom: 0; /* THAY ĐỔI TỪ 50px SANG 0 */
}
.tracking-results-section {
    width: 100%;
    margin-top: 10px;
    text-align: center;
    color: red;
    min-height: 400px;
    background: none;
    box-shadow: none;
}

.order-tracking-card {
    width: 100%;
    padding: 10px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex-direction: column;

}

.order-tracking-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.order-tracking-header .order-id {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 20px;
    white-space: nowrap;
}

.order-tracking-header .order-date {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

.tracking-main-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.tracking-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.tracking-section-title i {
    color: var(--primary-color);
}

.tracking-status-box {
    padding: 5px;
}

.current-status-display {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

/* Cập nhật Styles cho Status Icons / Timeline */
.tracking-status-icons {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 25px;
    position: relative;
    padding: 0;
    /* Điều chỉnh vị trí để đường kẻ không thò ra ngoài icon */
    /* Đường kẻ sẽ bắt đầu sau nửa icon đầu tiên và kết thúc trước nửa icon cuối cùng */
    width: calc(100% - 50px); /* Tổng chiều rộng của đường kẻ chính giữa các icon */
    margin: 25px auto 0; /* Căn giữa và khoảng cách với trên */
}

.tracking-status-icons::before { /* Đường kẻ nền xám (không thay đổi chiều dài) */
    content: '';
    position: absolute;
    top: 25px; /* Căn giữa chiều dọc icon (50px / 2) */
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-color); /* Màu mặc định là xám */
    z-index: 0;
}

.tracking-status-icons::after { /* Đường kẻ màu xanh theo tiến độ */
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    height: 3px;
    background-color: #4CAF50; /* Màu xanh lá cây */
    z-index: 1;
    width: var(--line-progress, 0%); /* Biến CSS để điều khiển chiều rộng từ JS */
    transition: width 0.5s ease-out;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2; /* Để nằm trên đường kẻ */
    padding: 0 5px;
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color); /* Màu xám mặc định */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 3px solid #fff; /* Viền trắng nổi bật */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.status-step.completed .status-icon {
    background-color: #4CAF50; /* Màu xanh lá cho trạng thái hoàn thành */
    box-shadow: 0 4px 10px rgba(76,175,80,0.4);
}

.status-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.3;
}
.status-step.completed .status-text {
    color: #4CAF50;
    font-weight: 700;
}

/* Khung THÔNG TIN NHẬN HÀNG */
.delivery-info-box {
    padding: 5px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-light);
}
.detail-row strong {
    color: var(--text-dark);
}
.detail-row span:first-child {
    font-weight: 600;
}
.detail-row span:last-child {
    text-align: right;
    flex-shrink: 1;
    word-break: break-word;
    color: var(--text-dark);
}
.detail-row.full-width {
    display: block;
}
.detail-row.full-width span:first-child {
    display: block;
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .tracking-main-content-grid {
        grid-template-columns: 1fr;
    }
}

/* === Responsive Design (cập nhật) === */
@media (max-width: 768px) {
    /* Giữ nguyên các style hiện có nếu chúng ổn */
    .order-tracking-card {
        padding: 15px; /* Giảm padding thẻ */
    }
    .order-tracking-header .order-id {
        font-size: 20px;
    }
    .order-tracking-header .order-date {
        font-size: 14px;
    }
    
    /* Chỉnh sửa lại phần trạng thái vận chuyển cho mobile */
    .tracking-status-icons {
        flex-wrap: nowrap; /* KHÔNG CHO XUỐNG DÒNG trên mobile nữa, cuộn ngang */
        overflow-x: auto; /* Cho phép cuộn ngang nếu không đủ chỗ */
        justify-content: flex-start; /* Căn trái, không dàn đều */
        padding: 0 5px; /* Giảm padding ngang */
        -webkit-overflow-scrolling: touch; /* Cuộn mượt trên iOS */
        scrollbar-width: none; /* Ẩn scrollbar Firefox */
    }
    .tracking-status-icons::-webkit-scrollbar { /* Ẩn scrollbar Chrome/Safari */
        display: none;
    }

    .status-step {
        flex: 0 0 auto; /* Không co giãn, không tự chiếm hết chỗ */
        width: 50px; /* Đặt chiều rộng cố định cho mỗi bước trên mobile */
        margin: 0 5px; /* Khoảng cách giữa các bước */
    }
    .status-icon {
        width: 38px; /* Kích thước icon nhỏ hơn nữa trên mobile */
        height: 38px;
        font-size: 16px;
        margin-bottom: 5px;
    }
    .status-text {
        font-size: 10px; /* Nhỏ hơn nữa */
        max-width: 100%; /* Cho phép chiếm toàn bộ chiều rộng của status-step */
        white-space: normal; /* Cho phép xuống dòng nếu cần */
        text-overflow: unset; /* Bỏ dấu ba chấm */
    }
    .tracking-section-title {
        font-size: 16px;
    }
    .current-status-display {
        font-size: 17px; /* Nhỏ hơn một chút */
    }
    /* Các phần responsive khác giữ nguyên nếu chúng đã tốt */
}

/* Điều chỉnh thêm cho màn hình cực nhỏ */
@media (max-width: 480px) {
    .order-tracking-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .order-tracking-header .order-id {
        margin-bottom: 5px;
    }
    /* .status-step {
        width: 100px; // Thử nghiệm nếu muốn mỗi bước lớn hơn trên màn hình cực nhỏ, nếu không thì giữ nguyên 65px
    } */
    /* .info-details-section, .ordered-items-list-container, etc. (Đã xử lý ở các @media khác) */
}
/* --- Styles cho Tùy chọn sản phẩm (Product Options) trên trang chi tiết món --- */
.product-options {
    margin-bottom: 15px; /* Khoảng cách dưới phần tùy chọn */
    padding-top: 15px;
    border-top: 1px solid var(--border-color); /* Đường kẻ phân cách */
}

.product-options h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.option-group {
    display: flex;
    flex-direction: column; /* Sắp xếp các tùy chọn theo chiều dọc */
    gap: 10px; /* Khoảng cách giữa các tùy chọn */
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 10px; /* Khoảng cách giữa checkbox và text */
    font-size: 16px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.option-group label:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.option-group input[type="checkbox"] {
    /* Tùy chỉnh checkbox cơ bản */
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-light);
    border-radius: 4px; /* Bo góc nhẹ cho checkbox */
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0; /* Ngăn checkbox bị co lại */
}

.option-group input[type="checkbox"]::before {
    content: "";
    width: 12px;
    height: 12px;
    transform: scale(0);
    transition: transform 0.2s ease;
    box-shadow: inset 1em 1em var(--primary-color); /* Màu nền khi chọn */
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); /* Icon tick */
}

.option-group input[type="checkbox"]:checked {
    border-color: var(--primary-color);
    background-color: var(--primary-color); /* Đổi màu nền khi check */
}

.option-group input[type="checkbox"]:checked::before {
    transform: scale(1);
    background-color: white; /* Màu tick bên trong */
}

/* --- Styles cho Tùy chọn hiển thị trong giỏ hàng và tóm tắt đơn hàng --- */
.cart-item-options {
    list-style: none; /* Bỏ dấu chấm đầu dòng */
    padding-left: 0;
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 13px;
    color: var(--text-light); /* Màu chữ nhẹ hơn */
}

.cart-item-options li {
    margin-bottom: 3px;
    line-height: 1.4;
}

/* Responsive adjustments for product options */
@media (max-width: 768px) {
    .container {
        padding: 0 7px; /* Giảm padding từ 15px xuống 10px */
    }
    .product-info{
        padding: 10px;
        margin-bottom: 5px;
    }
    .product-grid{
        margin-bottom: 25px;
    }
    .product-options h3 {
        font-size: 18px;
    }
    .option-group label {
        font-size: 14px;
        padding: 8px 12px;
    }
    .option-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
    .option-group input[type="checkbox"]::before {
        width: 10px;
        height: 10px;
    }
        /* Điều chỉnh các thành phần bên trong thẻ sản phẩm */
    .product-card .product-info h3 {
        font-size: 20px; /* Giảm kích thước tên món */
        line-height: 1.2; /* Giảm khoảng cách dòng */
        min-height: 3em; /* Đảm bảo chiều cao tối thiểu cho 2 dòng tên */
        overflow: hidden; /* Ẩn phần chữ bị tràn */
        text-overflow: ellipsis; /* Thêm dấu "..." nếu tên quá dài */
        white-space: normal; /* Cho phép xuống dòng */
    }

    .product-card .product-info .price {
        font-size: 20px; /* Giảm kích thước giá */
        margin-bottom: 10px; /* Giảm khoảng cách dưới giá */
    }

    .product-card .product-buttons .btn {
        padding: 10px; /* Giảm padding nút */
        font-size: 14px; /* Giảm kích thước chữ nút */
    }

    /* Đảm bảo chiều cao thẻ đồng bộ và nút luôn ở dưới cùng */
    .product-card .product-info {
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Đẩy nút "Thêm món" và "Đặt ngay" xuống cuối */
        flex-grow: 1; /* Cho phép vùng thông tin món ăn tự mở rộng */
    }
    .product-card .product-info h3 {
        flex-grow: 1; /* Cho phép tên món ăn mở rộng để lấp đầy không gian còn lại */
    }
}
/* Trong style.css, tìm và thay thế các phần CSS đã có cho tracking-page, info-group, ordered-item-row, v.v. */

/* === Styles cho phần Thông tin nhận hàng === */
.delivery-info-box {
    padding: 5px; /* Tăng padding */
}

/* Container cho các thông tin chính (Người nhận, SĐT, Địa chỉ, Hình thức) */
.info-details-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 2 cột trên desktop, tự động xuống dòng */
    gap: 15px 25px; /* Khoảng cách giữa các mục */
    margin-bottom: 20px; /* Khoảng cách dưới khối thông tin */
}

.info-group {
    display: flex;
    flex-direction: column; /* Label trên, Value dưới */
    text-align: left; /* Luôn căn trái */
}

.info-group.full-width-info {
    grid-column: 1 / -1; /* Luôn chiếm toàn bộ chiều rộng hàng */
}

.info-group .info-label {
    font-size: 16px;
    font-weight: 700; /* Đậm */
    color: var(--text-dark); /* Màu đen */
    margin-bottom: 5px; /* Khoảng cách giữa label và value */
    line-height: 1.2;
}

.info-group .info-value {
    font-size: 15px;
    color: var(--text-light); /* Màu chữ dữ liệu */
    word-break: break-word; /* Đảm bảo ngắt dòng cho địa chỉ dài */
    line-height: 1.4;
}

/* === Styles cho danh sách món đã đặt (table-like display) === */
.ordered-items-list-container {
    margin-bottom: 10px;
}


/* Header của bảng món đã đặt */
.ordered-items-table-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    text-align: center;
}
/* Điều chỉnh width và padding cho từng cột tiêu đề */
.ordered-items-table-header .col-item-index { width: 15px; text-align: left; }
.ordered-items-table-header .col-item-name-header { flex-grow: 1; text-align: left; padding-left: 20px; } /* Thêm padding nếu muốn khoảng cách từ lề trái */
.ordered-items-table-header .col-item-qty-header { width: 40px; flex-shrink: 0; padding-right: 50px;} 
.ordered-items-table-header .col-item-total-price-header { width: 80px; text-align: right; }


/* Mỗi mục món (bao gồm món chính và tùy chọn) */
.ordered-item-entry {
    margin-bottom: 5px; /* Khoảng cách giữa các món */
    padding-bottom: 5px;
    border-bottom: 1px dashed var(--border-color); /* Đường kẻ mảnh sau mỗi món */
}
.ordered-item-entry:last-of-type {
    border-bottom: none; /* Bỏ đường kẻ ở món cuối cùng */
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Dòng chính của món (tên, sl, t.tiền) */
.main-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
}

/* Điều chỉnh width và padding cho từng cột trong dòng món */
.main-item-row .col-item-index { width: 15px; flex-shrink: 0; text-align: left;}
.main-item-row .col-item-name { flex-grow: 1; text-align: left; word-break: break-word; padding-left: 20px;}
.main-item-row .col-item-qty { width: 40px; flex-shrink: 0; padding-right: 50px;}
.main-item-row .col-item-total-price { width: 80px; flex-shrink: 0; text-align: right; color: var(--primary-color);}


/* Danh sách tùy chọn của món */
.ordered-item-options {
    list-style: none;
    margin-top: 5px; /* Khoảng cách từ món chính */
    margin-bottom: 0;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.3;
}

.ordered-item-options li {
    position: relative;
    text-align: left;
    margin-bottom: 2px;
}


.ordered-item-row-fallback { /* Dành cho trường hợp không parse được */
    font-size: 14px;
    color: #ff5722; /* Màu cam để báo lỗi */
    margin-bottom: 5px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}
.ordered-items-list-container .no-items-message {
    text-align: left;
    color: var(--text-light);
    padding: 20px;
}

/* === Styles cho tóm tắt đơn hàng ở trang tracking === */
.order-summary-tracking {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color); /* Giữ đường kẻ mảnh */
}
/* Trong style.css, thêm vào gần .ordered-item-row-fallback */

.ordered-item-row-old-format {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.4;
    padding: 2px 0;
    text-align: left;
    white-space: pre-wrap; /* Giữ định dạng xuống dòng */
}
/* Header đơn giản cho định dạng cũ nếu cần */
.ordered-items-table-header.old-format-header {
    display: flex;
    justify-content: flex-start;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    text-align: left;
}
.ordered-items-table-header.old-format-header .col-item-name-header {
    padding-left: 0; /* Bỏ padding nếu không có cột STT */
}

.summary-row-tracking {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.summary-row-tracking .summary-label {
    font-weight: 600;
    color: var(--text-dark);
}

.summary-row-tracking .summary-value {
    color: var(--primary-color); /* Đổi màu value thành text-dark */
    font-weight: 600; /* Đậm hơn */
}

.summary-row-tracking.total-row-tracking {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 15px;
}

/* Đường kẻ phân cách mới giữa các section */
.section-divider {
    border: 0;
    border-top: 1px solid var(--border-color); /* Mặc định là solid */
    margin: 20px 0; /* Khoảng cách trên dưới */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-details-section {
        grid-template-columns: 1fr; /* Stack các thông tin trên mobile */
        gap: 10px;
    }
    .info-group .info-label {
        font-size: 15px;
    }
    .info-group .info-value {
        font-size: 14px;
    }

    /* Table headers responsive */
.ordered-items-table-header {
        font-size: 12px;
        padding-left: 0;
        padding-right: 0;
    }
    .ordered-items-table-header .col-item-index { width: 25px; }
    .ordered-items-table-header .col-item-qty-header { width: 20px; padding-right: 30px;}
    .ordered-items-table-header .col-item-total-price-header { width: 60px; text-align: right;} /* Điều chỉnh width sau khi bỏ cột *
    /* Item rows responsive */
    .main-item-row {
        font-size: 14px;
        flex-wrap: wrap;
        align-items: flex-end;
        padding: 6px 0;
    }
  
     .main-item-row .col-item-index { width: 25px; }
    .main-item-row .col-item-qty { width: 20px; padding-right: 30px;}
    .main-item-row .col-item-total-price { width: 60px; text-align: right;} /* Điều chỉnh width sau khi bỏ cột */
    .main-item-row .col-item-name {

        /* Điều chỉnh flex-basis/max-width sau khi bỏ 2 cột */
        flex-basis: calc(100% - 25px - 35px - 60px); /* Total width - STT - SL - T.Tiền */
        max-width: calc(100% - 25px - 35px - 60px);
        padding-right: 5px;
    }


    .ordered-item-options {
        padding-left: 0px; /* Giảm thụt lề */
        font-size: 11px;
    }
    .ordered-item-options li {
        padding-left: 10px;
    }
    .summary-row-tracking {
        font-size: 14px;
    }
    .summary-row-tracking.total-row-tracking {
        font-size: 16px;
    }
}

@media (max-width: 375px) {
    /* Further adjust for very small screens */
    .ordered-items-table-header .col-item-name-header { font-size: 11px; }
    .main-item-row .col-item-name { font-size: 13px; }

    .ordered-items-table-header .col-item-index { width: 20px; }
    .ordered-items-table-header .col-item-qty-header { width: 30px; }
    /* .ordered-items-table-header .col-item-unit-price-header {} - ĐÃ BỎ */
    .ordered-items-table-header .col-item-total-price-header { width: 50px; } /* Điều chỉnh width */

    .main-item-row .col-item-index { width: 20px; }
    .main-item-row .col-item-qty { width: 30px; }
    /* .main-item-row .col-item-unit-price {} - ĐÃ BỎ */
    .main-item-row .col-item-total-price { width: 50px; } /* Điều chỉnh width */
    .main-item-row .col-item-name {
        flex-basis: calc(100% - 20px - 30px - 50px); /* Total width - STT - SL - T.Tiền */
        max-width: calc(100% - 20px - 30px - 50px);
    }
}
/* --- Support Floating Action Button (FAB) --- */
.support-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    margin-right: 20px;
    margin-bottom: 40px;
    background-color: var(--primary-color);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10002; /* Đảm bảo nằm trên các phần tử khác như toast */
    border: none;
    transition: all 0.3s ease;
    /* Thêm animation rung và phát sáng */
    animation: vibrate-continuous 0.1s infinite alternate, pulse-glow-green 1.5s infinite alternate;
    border: 1px solid rgba(255, 255, 255, 0.8); /* Viền trắng */
}

/* Dừng animation khi hover */
.support-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    animation-play-state: paused; /* Dừng tất cả các animation khi hover */
}

/* Keyframes cho hiệu ứng rung liên tục */
@keyframes vibrate-continuous {

    25% { transform: translate(-1px, 1px); }



}

/* Keyframes cho hiệu ứng phát sáng màu xanh lá cây */
@keyframes pulse-glow-green {
    0% { box-shadow: 0 0 0px 0px #1a1b1ab3, var(--shadow); }
    100% { box-shadow: 0 0 0px 15px rgba(170, 173, 170, 0), var(--shadow); }
}
/* --- Support Modal Styles --- */
.support-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Lớp phủ mờ */
    z-index: 10003;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    
}

.support-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Support Modal Styles --- */
.support-modal-content {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: left;
    width: 70%;
    max-width: 350px;

    position: fixed; /* Đảm bảo là fixed cho vị trí cụ thể */
    bottom: 120px; /* Ví dụ, đặt nó lên trên FAB một chút */
    right: 20px;

    transform: translateX(calc(100% + 20px));
    transition: transform 0.3s ease, box-shadow 0.5s ease-in-out; /* Thêm box-shadow vào transition */
    border: 1px solid rgba(255, 255, 255, 0.8); /* Viền trắng */
}

/* Khi modal active, nó sẽ trượt vào và bắt đầu phát sáng */
.support-modal-overlay.active .support-modal-content {
    transform: translateX(0);
    animation: pulse-border 1.5s infinite alternate; /* Áp dụng animation phát sáng */
}

/* Định nghĩa keyframes cho hiệu ứng phát sáng */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0px 0px rgba(255, 255, 255, 0.7), var(--shadow);
    }
    100% {
        box-shadow: 0 0 0px 10px rgba(255, 255, 255, 0), var(--shadow);
    }
}

.support-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.support-modal-content .modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0; /* Bỏ margin mặc định của h4 */
}

.support-modal-content .modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s ease;
}
.support-modal-content .modal-close-btn:hover {
    color: var(--text-dark);
}
.support-modal-content .modal-body p {
    margin-bottom: 10px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.support-modal-content .modal-body p i {
    color: var(--text-dark); /* Màu icon */
    font-size: 18px;
    width: 25px; /* Giữ icon cố định một khoảng */
    text-align: center;
}

.support-modal-content .modal-body p a {
    color: #007bff; /* Màu xanh cho link LINE */
    text-decoration: none;
    transition: color 0.2s ease;
}
.support-modal-content .modal-body p a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive cho modal */
@media (max-width: 480px) {
    .support-fab {
        width: 45px;
        height: 45px;
        font-size: 25px;
        bottom: 25px;
        right: 10px;
    }
    .support-modal-content {
        padding: 15px;
        max-width: 95%;
    }
    .support-modal-content .modal-title {
        font-size: 16px;
    }
    .support-modal-content .modal-body p {
        font-size: 14px;
    }
}
/* --- Footer Responsive (Mới) --- */

/* Ẩn footer compact trên desktop */
.mobile-footer-compact-wrapper {
    display: none;
     /* Giống màu header và footer hiện tại */
    color: #fff;
    padding: 8px 0;
    position: sticky; /* Giữ sticky ở dưới */
    z-index: 999;
}

.mobile-footer-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0px; /* Điều chỉnh padding */
}

.compact-info p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #ecf0f1;
    display: flex;
    align-items: center;
    gap: 5px;
}
.compact-info p a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
}
.compact-info p a:hover {
    color: var(--primary-color);
}
.compact-info i {
    color: #ecf0f1;
    font-size: 16px;
}

.toggle-full-footer-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}
.toggle-full-footer-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}
.toggle-full-footer-btn i {
    transition: transform 0.3s ease;
}
.toggle-full-footer-btn.active i {
    transform: rotate(180deg);
}

/* Phần footer đầy đủ: Mặc định hiển thị trên desktop */
.full-footer-collapsible {
    transition: max-height 0.5s ease-out, padding 0.5s ease-out, opacity 0.5s ease-out;
    overflow: hidden;
    max-height: 1000px; /* Giá trị đủ lớn để hiển thị toàn bộ footer khi mở trên desktop */
    opacity: 1; 
    visibility: visible;
    background-color: #2c3e50; /* Giống màu nền footer */
    color: #ecf0f1;
    padding: 5px 0 5px; /* Padding đầy đủ */
    margin-top: 10px; /* Giữ khoảng cách với main */
}

@media (max-width: 768px) {
    /* Hiển thị footer compact trên mobile */
    .mobile-footer-compact-wrapper {
        display: block;
        padding: 0px 0 !important;
        
    }
        .mobile-footer-compact {
             height: 38px;
        /* Giảm padding ngang từ 20px xuống 10px để nội dung có vẻ lớn hơn và bớt khoảng trống ngang */
        padding: 0 10px;
        overflow: hidden;
        /* align-items: center; giữ nguyên nếu muốn căn giữa dọc, nếu không muốn space thì bỏ hoặc đổi thành flex-start */
        /* Tuy nhiên, nếu bỏ align-items: center, nội dung có thể lệch. Hãy giữ lại nếu nó giúp căn chỉnh tốt */
    }
        .compact-info p {
        margin: 0; /* Đảm bảo không có margin nào gây khoảng trống */
        font-size: 18px; /* Giữ nguyên hoặc điều chỉnh nếu muốn chữ nhỏ hơn nữa */
        line-height: 1.1; /* GIẢM LINE-HEIGHT: Để các dòng chữ gần nhau hơn, giảm khoảng trống dọc */
        /* ... các thuộc tính khác của compact-info p ... */
    }
        .toggle-full-footer-btn {
        padding: 10px 10px; /* GIẢM PADDING NÚT ĐỂ NÚT NHỎ GỌN HƠN */
        font-size: 15px; /* GIẢM KÍCH THƯỚC CHỮ NÚT (từ 13px xuống 12px) */
        line-height: 1.1; /* GIẢM LINE-HEIGHT CỦA NÚT */
        height: auto; /* Đảm bảo nút không có chiều cao cố định nào khác */
    }
    /* Ẩn footer đầy đủ theo mặc định trên mobile */
    .full-footer-collapsible {
        max-height: 0 !important; /* Thêm !important vào đây */
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0 !important;   /* Thêm !important vào đây */
        visibility: hidden !important; /* Thêm !important vào đây */
        margin-top: 0; /* Bỏ margin-top trên mobile để dính vào footer compact */
    }

    /* Khi lớp .active được thêm vào, footer đầy đủ sẽ hiện ra trên mobile */
    .full-footer-collapsible.active {
        max-height: 1000px !important; /* Thêm !important vào đây */
        padding: 20px 0; /* Padding khi mở trên mobile */
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Chỉnh lại padding cho .container trong footer trên mobile */
    footer .container {
        padding: 0 10px;
    }
}
/* Thêm quy tắc style mới này */
.hero-section.full-width-hero {
    /* Ghi đè padding của container cho phần này */
    padding-left: 0;
    padding-right: 0;
    /* Đảm bảo không có margin nào đẩy vào bên trong */
    margin-left: 0;
    margin-right: 0;
    /* Đảm bảo nó chiếm toàn bộ chiều rộng của khung nhìn */
    max-width: 100vw; /* Đảm bảo nó chiếm toàn bộ chiều rộng khung nhìn */
    width: 100vw; /* Cũng đặt chiều rộng là 100vw */
    left: 50%; /* Căn giữa bằng cách sử dụng transform */
    right: 50%;
    transform: translateX(-50%); /* Kéo lại một nửa chiều rộng của nó */
}

/* Bạn cũng có thể cần điều chỉnh vùng chứa slideshow bên trong nó */
.hero-section.full-width-hero .slideshow-container {
    width: 100%; /* Đảm bảo nó lấp đầy phần hero-section có chiều rộng đầy đủ mới */
    height: 100%;
    border-radius: 0; /* Bỏ border-radius nếu bạn muốn các góc sắc nét khi hiển thị toàn chiều rộng */
}

/* Điều chỉnh vị trí chấm điều hướng cho toàn chiều rộng nếu cần */
.hero-section.full-width-hero .dot {
    /* Bạn có thể không cần thay đổi cụ thể ở đây nếu 'bottom: 20px; width: 100%;' đã đủ */
}
.quick-order-popup-overlay{
    display: none;
}
/* Quick Order Popup Styles - Mobile Only */
@media (max-width: 768px) {
  .quick-order-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .quick-order-popup-overlay.active {
    display: block;
    opacity: 1;
  }
  
  .quick-order-popup-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .quick-order-popup-overlay.active .quick-order-popup-container {
    transform: translateY(0);
  }
  
  .quick-order-popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--text-light);
    z-index: 1;
  }
  
  .quick-order-popup-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .quick-order-popup-image-container {
    width: 50%;
    /* THAY ĐỔI: Sử dụng padding-top để tạo tỷ lệ khung hình vuông dựa trên chiều rộng */
    padding-top: 50%; /* Tạo tỷ lệ 1:1 (vuông) dựa trên chiều rộng */
    position: relative; /* Cần thiết để căn giữa ảnh bên trong */
    overflow: hidden;
    border-radius: 5px;
    /* THÊM: Căn giữa khối hình ảnh trong popup */
    margin-left: auto;
    margin-right: auto;
    max-width: 200px; /* THÊM: Đặt chiều rộng tối đa cho khối ảnh để nó không quá lớn trên màn hình nhỏ */
    margin-bottom: 5px; /* Thử giá trị này, điều chỉnh nếu cần */
  }
  
  .quick-order-popup-image {
    position: absolute; /* THAY ĐỔI: Đặt ảnh tuyệt đối bên trong container */
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    object-fit: cover; /* THAY ĐỔI: Sử dụng 'contain' để ảnh vừa với khung mà không bị cắt, có thể có khoảng trắng */
    /* object-fit: cover; // GIỮ NGUYÊN NẾU BẠN MUỐN ẢNH PHỦ ĐẦY VÀ BỊ CẮT MỘT PHẦN, NHƯNG SẼ KHÔNG VUÔNG HOÀN HẢO */
  }
  
  .quick-order-popup-info {
    padding: 0 5px;
  }
  
  .quick-order-popup-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-dark);
  }
  
  .product-status {
    font-size: 14px;
    color: green;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .quick-order-popup-price {
    font-size: 25px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
  }
  
  .quick-order-options {
    margin-bottom: 15px;
  }
  
  .option-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
  }
  
  .option-item input[type="checkbox"] {
    margin-right: 10px;
  }
  
  .option-item label {
    font-size: 14px;
  }
  
  .view-details-link {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: underline;
    display: block;
    margin-bottom: 15px;
  }
  
  .quick-order-popup-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    height: 60px;
  }
  
  .quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
  }
  
  .quantity-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
  }
  
  .quantity-value {
    padding: 0 10px;
    font-weight: bold;
  }
  
  .add-to-cart-btn {
    flex-grow: 1;
    margin-left: 15px;
    padding: 10px;
    font-size: 14px;
  }
  .quick-order-popup-actions .quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    height: 90%;
}

.quick-order-popup-actions .quantity-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
}

.quick-order-popup-actions .quantity-value {
    padding: 0 10px;
    font-weight: bold;
}
.quick-order-popup-actions .btn {
    padding: 8px 12px;
    font-size: 16px;
    width: 0px;
    height: 90%;
}
}
.shipping-fee-label {
    color: var(--primary-color); /* Màu đỏ đậm */
    cursor: pointer;
    text-decoration: underline; /* Thêm gạch chân để chỉ ra rằng nó có thể nhấp được */
}

.shipping-fee-label .asterisk {
    color: var(--primary-color); /* Đảm bảo dấu sao cũng màu đỏ */
}

.shipping-fee-info {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none; /* Ban đầu ẩn */
}

.shipping-fee-info p {
    margin: 0;
}

@media (max-width: 768px) {
    .shipping-fee-label {
        font-size: 15px; /* Điều chỉnh kích thước phông chữ cho thiết bị di động */
    }
    .shipping-fee-info {
        font-size: 12px; /* Điều chỉnh kích thước phông chữ cho thiết bị di động */
        padding: 8px 12px;
    }
}
/* KHỐI CHỨA CÁC NÚT TRONG TÓM TẮT GIỎ HÀNG */
.cart-summary-actions {
    display: flex;
    gap: 10px; /* Khoảng cách giữa các nút */
    margin-top: 20px; /* Khoảng cách phía trên khối nút */
    justify-content: space-between; /* Phân phối không gian giữa các nút */
    flex-wrap: wrap; /* Cho phép các nút xuống dòng trên màn hình nhỏ */
}

.cart-summary-actions .btn {
    width: 50px;
    flex-grow: 1; /* Cho phép các nút mở rộng để lấp đầy không gian */
    text-align: center; /* Căn giữa văn bản trong nút */
    padding: 12px; /* Padding tiêu chuẩn cho nút */
    font-size: 14px; /* Kích thước phông chữ tiêu chuẩn cho nút */
    white-space: nowrap; /* Ngăn văn bản bị ngắt dòng trong nút nếu có thể */
}

/* Điều chỉnh responsive cho nút khi màn hình nhỏ */
@media (max-width: 768px) {
    .cart-summary-actions {
        flex-direction: row; /* Xếp chồng các nút theo chiều dọc trên màn hình nhỏ */
            display: flex;
    gap: 10px; /* Khoảng cách giữa các nút */
    margin-top: 20px; /* Khoảng cách phía trên khối nút */
    justify-content: space-between; /* Phân phối không gian giữa các nút */
    flex-wrap: wrap; /* Cho phép các nút xuống dòng trên màn hình nhỏ */

    }
    .cart-summary-actions .btn {
    flex-grow: 1; /* Cho phép các nút mở rộng để lấp đầy không gian */
    text-align: center; /* Căn giữa văn bản trong nút */
    padding: 12px; /* Padding tiêu chuẩn cho nút */
    font-size: 14px; /* Kích thước phông chữ tiêu chuẩn cho nút */
    white-space: nowrap; /* Ngăn văn bản bị ngắt dòng trong nút nếu có thể */
            width: 50px;
    }
}
/* Kiểu cho nút in */
.print-order-btn {
    margin-top: 15px;
    width: 100%;
}

/* ẨN CÁC PHẦN KHÔNG CẦN THIẾT KHI IN */
@media print {
    /* Ẩn header, footer và các nút điều hướng/hỗ trợ */
    header, footer, .mobile-menu, .menu-overlay, .support-fab, #toast-container {
        display: none !important;
    }

    /* Ẩn tiêu đề trang, form tìm kiếm đơn hàng trên trang theo dõi */
    .section-header, .tracking-form-section {
        display: none !important;
    }

    /* Điều chỉnh vùng nội dung chính để in */
    main.container {
        padding: 0 !important; /* Xóa padding hai bên */
        margin: 0 !important; /* Xóa margin */
        width: 100% !important; /* Chiếm toàn bộ chiều rộng */
        max-width: none !important;
    }

    /* Đảm bảo thẻ đơn hàng (order card) hiển thị tốt khi in */
    .tracking-results-section {
        box-shadow: none !important; /* Bỏ bóng đổ */
        background-color: transparent !important; /* Nền trong suốt */
        padding: 0 !important;
        margin: 0 !important;
    }

    .order-tracking-card {
        box-shadow: none !important;
        border: 1px solid #ccc; /* Thêm đường viền nhẹ cho từng đơn hàng */
        border-radius: 0 !important; /* Không bo góc khi in */
        padding: 15px !important; /* Điều chỉnh padding */
        margin-bottom: 20px; /* Khoảng cách giữa các đơn hàng khi in nhiều */
        page-break-inside: avoid; /* Tránh ngắt trang bên trong thẻ này */
    }

    /* Ẩn các icon trạng thái vận chuyển (timeline) vì thường không cần thiết trên bản in */
    .tracking-status-box .tracking-status-icons,
    .tracking-status-box .current-status-display {
        display: none !important;
    }
    
    /* Đảm bảo màu chữ tối để dễ đọc trên giấy */
    .tracking-section-title,
    .info-group .info-label,
    .ordered-items-table-header,
    .main-item-row .col-item-name,
    .main-item-row .col-item-qty,
    .main-item-row .col-item-total-price,
    .summary-row-tracking .summary-label {
        color: #000 !important;
    }

    .ordered-item-options li,
    .info-group .info-value,
    .summary-row-tracking .summary-value {
        color: #333 !important; /* Màu nhạt hơn một chút cho giá trị */
    }

    /* Ẩn nút in trên chính bản in để không tự in ra */
    .print-order-btn {
        display: none !important;
    }

    /* Điều chỉnh hiển thị danh sách món đã đặt cho bản in */
    .ordered-items-list-container {
        border: 1px solid #eee;
        padding: 5px;
    }
    .ordered-items-table-header, .ordered-item-entry {
        border-bottom: 1px dashed #eee;
        padding-bottom: 5px;
        margin-bottom: 5px;
    }
    .ordered-item-entry:last-of-type {
        border-bottom: none;
    }

    /* Đảm bảo thông tin chi tiết nhận hàng xếp chồng và căn chỉnh */
    .info-details-section {
        display: block !important; /* Xếp chồng theo chiều dọc để in */
        gap: 0 !important;
        padding-left: 10px;
    }
    .info-group {
        margin-bottom: 5px !important;
    }
}
/* THÊM CSS MỚI CHO SẢN PHẨM HẾT HÀNG */
.product-card.is-out-of-stock {
    opacity: 0.65;
    pointer-events: auto; /* Allow clicks to go to product detail page */
}

.product-card.is-out-of-stock .product-image::after {
    content: 'Hết món';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-weight: bold;
    z-index: 2;
    font-size: 18px;
}

.product-card.is-out-of-stock .image-overlay,
.product-card.is-out-of-stock .quick-add-btn {
    display: none; /* Hide quick add button and overlay effect */
}

.product-card.is-out-of-stock .btn-secondary {
    width: 100%;
    background-color: #9E9E9E; /* Grey color for the button */
    color: white;
    cursor: not-allowed;
    grid-column: 1 / -1; /* Make button span full width */
}
/* --- CSS MỚI CHO HIỆU ỨNG CHỮ ĐUỔI --- */
.hot-label {
    font-size: 20px;
    font-weight: bold;
    color: #D32F2F; /* Màu đỏ đậm */
    margin-left: 8px;
    vertical-align: middle;
        font-family:'Dancing Script';
}

/* Định dạng cho từng chữ cái bên trong */
.hot-label {
font-size: 20px;
font-weight: bold;
color: #D32F2F;
margin-left: 8px;
vertical-align: middle;
    animation-delay: calc(0.6s * var(--i));
}
.hot-label > span {
    position: relative;
    display: inline-block;
    animation: wave-glow-effect 0.8s infinite;
    animation-delay: calc(0.05s * var(--i));
    text-shadow: 0 0 5px rgba(255, 27, 27, 0.8);
}

@keyframes wave-glow-effect {
0%, 40%, 100% {
transform: translateY(0);
text-shadow: 0 0 5px rgba(255, 27, 27, 0.8);
}
20% {
transform: translateY(-6px);
text-shadow: 0 0 10px rgba(255, 87, 87, 0.9);
}
}
/* --- CSS CHO POPUP BANNER --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Lớp nền mờ */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10005; /* Đảm bảo nổi lên trên cùng */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-banner {
    position: relative;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;

    /* == TÙY CHỈNH KÍCH THƯỚC BANNER TẠI ĐÂY == */
    width: 90%; /* Chiều rộng banner, tính theo % của màn hình */
    max-width: 600px; /* Chiều rộng tối đa, banner sẽ không lớn hơn giá trị này */
    height: auto; /* Chiều cao tự động theo ảnh */
    max-height: 90vh; /* Chiều cao tối đa để không bị tràn màn hình */
    /* ========================================= */

    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-banner {
    transform: scale(1);
}

.popup-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.popup-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.popup-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}