@charset "UTF-8";

/* ==========================================================================
   1. RESET & THIẾT LẬP NỀN TẢNG CƠ BẢN (BASE STYLES)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #36251c;
    /* Chữ nâu đậm */
    line-height: 1.6;
    background-color: #694025;
    /* Nền chocolate đặc trưng */
    display: flex;
    flex-direction: column;
    /* Sắp xếp: Header -> Nội dung -> Footer theo chiều dọc */
    min-height: 100vh;
    /* Ép chiều cao tối thiểu bằng màn hình để cuộn không lỗi nền */
}

html {
    height: 100%;
}

/* Khung layout bọc nội dung chính sẽ tự giãn rộng để lấp đầy khoảng trống thừa */
.main-layout-custom {
    flex: 1 0 auto;
    max-width: 1200px;
    /* KHỐNG CHẾ CHIỀU RỘNG CHUẨN ĐẸP */
    margin: 0 auto 60px auto;
    /* TẠO KHOẢNG TRỐNG 2 BÊN CÂN ĐỐI TRANG */
    padding: 0 20px;
    width: 100%;
}

/* Đảm bảo Footer giữ nguyên kích thước cấu trúc, không bị co móp */
footer,
.client-footer-section {
    flex-shrink: 0;
}

/* ==========================================================================
   2. BANNER TOÀN MÀN HÌNH CHUYÊN NGHIỆP (UPDATE HERO BANNER)
   ========================================================================== */
.homepage-banner-full {
    width: 100%;
    overflow: hidden;
    background: url('../../Anh/TCC.jpg') no-repeat center;
    background-size: cover;
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0px;
    filter: brightness(0.9);
}

/* Lớp phủ màu đen mờ giúp chữ màu trắng nổi bật, không bị lóa mắt */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(54, 37, 28, 0.45);
    /* Tone màu nâu đen cafe mờ */
    z-index: 1;
}

.hero-content {
    z-index: 2;
    color: #ffffff;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
}

.marquee-box {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.line-top {
    color: #ffffff;
    font-style: italic;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Arial, sans-serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    animation: moveFromLeft 1.2s ease-out forwards;
}

.line-bottom {
    font-weight: 600;
    opacity: 0;
    color: #f3c08e;
    /* Màu vàng kem sang trọng */
    font-size: 18px;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin-top: 12px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: moveFromRight 1.5s ease-out 0.6s forwards;
}

/* Hiệu ứng chuyển động mượt mà khi load trang */
@keyframes moveFromLeft {
    from {
        transform: translateX(-40px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes moveFromRight {
    from {
        transform: translateX(40px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================================================
   3. KHU VỰC GIỚI THIỆU (SỬA LỖI FLEX BOX ÉP CHIỀU CAO BẰNG NHAU)
   ========================================================================== */
.introduce {
    max-width: 1200px;
    margin: 30px auto;
    padding: 25px;
    background: #CABA9B;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(111, 78, 55, 0.04);
    border: 1px solid #f1eae4;
    text-align: center;
}

.introduce h2 {
    font-size: 22px;
    color: #36251c;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.intro-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fcf8f5;
    border: 1px solid #f3ece6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(111, 78, 55, 0.08);
    border-color: #cdaf95;
}

.intro-img-wrapper {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 12px;
    background-color: #eae0d5;
    flex-shrink: 0;
}

.intro-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.intro-box p {
    font-size: 14px;
    color: #563c2b;
    line-height: 1.5;
    margin: 0;
    padding-top: 5px;
    text-align: justify;
}

/* ==========================================================================
   4. KHUNG BỐ CỤC CHÍNH KHÔNG SIDEBAR (MAIN LAYOUT)
   ========================================================================== */
.content-section {
    width: 100%;
}

/* Khối lớn bao bọc của từng danh mục */
.category-wrapper-block {
    background: #CABA9B;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(111, 78, 55, 0.04);
    border: 1px solid #f1eae4;
}

.category-main-title {
    font-size: 22px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-main-title i {
    color: #f39c12;
}

.category-desc {
    font-size: 13.5px;
    color: #ffffff;
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.9;
}

/* ==========================================================================
   5. CÁC TIÊU ĐỀ PHÂN KHU SẢN PHẨM CON (SUB-SECTIONS)
   ========================================================================== */
.product-sub-section {
    margin-bottom: 30px;
}

.product-sub-section:last-child {
    margin-bottom: 0;
}

.sub-section-title {
    font-size: 15px;
    color: #6f4e37;
    margin-bottom: 20px;
    border-bottom: 2px solid #f5eae0;
    line-height: 0.1em;
}

.sub-section-title span {
    background: #ffffff;
    padding: 2px 12px;
    font-weight: 600;
    border-radius: 6px;
    border-bottom: 2px solid #f39c12;
}

/* ==========================================================================
   6. THAY ĐỔI ĐỘT PHÁ: LƯỚI GRID 4 SẢN PHẨM / HÀNG -> GIÚP THẺ NHỎ GỌN, ĐẸP MẮT
   ========================================================================== */
.product-grid-3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* ĐÃ SỬA: Chuyển từ 3 cột lên 4 cột để card nhỏ gọn lại */
    gap: 15px;
    /* Khoảng cách vừa phải, tinh tế giữa các card */
}

/* Tinh chỉnh card sản phẩm cao cấp, ôm form vuông */
.product-card {
    background-color: #fdfbf7;
    /* ĐÃ SỬA: Chuyển sang nền sáng sang trọng để nổi bật ảnh món ăn/thức uống */
    border: 1px solid #f1eae4;
    border-radius: 8px;
    padding: 12px;
    /* Thu hẹp padding tối đa */
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(111, 78, 55, 0.15);
    border-color: #cdaf95;
}

/* Ảnh vuông tỷ lệ 1:1 siêu đẹp, không bao giờ bị dẹt hình */
.product-card img {
    width: 100%;
    height: 160px;
    /* ĐÃ SỬA: Chiều cao lý tưởng đi cùng lưới 4 cột, ảnh vuông vắn nét căng */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.product-info {
    text-align: center;
    margin-bottom: 8px;
}

.product-name {
    font-weight: 600;
    font-size: 14px;
    /* Giảm cỡ chữ xuống 14px cho cân xứng card nhỏ */
    color: #36251c;
    /* Đổi màu chữ sang nâu đậm trên nền card trắng sáng */
    margin-bottom: 4px;
    height: 38px;
    line-height: 19px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: 700;
    color: #6b3816;
    /* Màu nâu cafe nổi bật */
    font-size: 14.5px;
}

.product-sales-count {
    font-size: 11px;
    color: #e74c3c;
    font-weight: 600;
    margin-top: 2px;
}

.badge-new,
.badge-hot {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: bold;
    color: #ffffff;
    border-radius: 4px;
    z-index: 5;
}

.badge-new {
    background-color: #28a745;
}

.badge-hot {
    background-color: #dc3545;
}

/* ==========================================================================
   7. ĐỒNG BỘ BỘ NÚT HÀNH ĐỘNG XẾP TẦNG (TINH GỌN CHIỀU CAO)
   ========================================================================== */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin-top: auto;
}

.btn-detail {
    display: block;
    background-color: #e6ccb2;
    color: #36251c;
    text-decoration: none;
    padding: 6px;
    font-size: 12.5px;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-detail:hover {
    background-color: #cdaf95;
}

.btn-buy-now {
    display: block;
    background-color: #6b3816;
    color: #ffffff;
    border: none;
    padding: 6px;
    font-size: 12.5px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: background 0.2s ease;
}

.btn-buy-now:hover {
    background-color: #db5f0c;
}

.empty-text {
    color: #a89587;
    font-style: italic;
    font-size: 13px;
    grid-column: span 4;
    text-align: center;
    padding: 15px 0;
}

/* ==========================================================================
   8. CẤU TRÚC LAYOUT BỘ LỌC TRANG TẤT CẢ SẢN PHẨM
   ========================================================================== */
.page-products-layout {
    display: flex;
    gap: 25px;
    margin-top: 25px !important;
}

.products-sidebar-filter {
    width: 240px;
    background-color: #CABA9B;
    border-radius: 12px;
    padding: 20px 15px;
    height: fit-content;
    position: sticky;
    top: 20px;
    box-shadow: 0 4px 20px rgba(111, 78, 55, 0.04);
    border: 1px solid #f1eae4;
    flex-shrink: 0;
}

.filter-title {
    font-size: 16px;
    color: #36251c;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid #6b3816;
    padding-bottom: 8px;
}

.filter-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-menu-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #36251c;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #fcf8f5;
    border: 1px solid #f3ece6;
    transition: all 0.2s ease;
}

.filter-menu-list li a:hover,
.filter-menu-list li a.active-filter {
    background-color: #6b3816;
    color: #ffffff;
    border-color: #6b3816;
    padding-left: 16px;
}

.products-main-content {
    flex: 1;
}

.products-main-content .category-wrapper-block {
    margin-top: 0 !important;
}

.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 25px;
}

.page-link {
    display: block;
    padding: 6px 12px;
    background-color: #fcf8f5;
    color: #36251c;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #f3ece6;
}

.page-link.active-page,
.page-link:hover {
    background-color: #6b3816;
    color: white;
}

/* ==========================================================================
   10. ĐỊNH DẠNG HỆ THỐNG GIỎ HÀNG CAO CẤP (CART VIEW CHUẨN UI)
   ========================================================================== */
.page-cart-container {
    margin-top: 30px !important;
}

.table-responsive-cart {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
    border-radius: 8px;
    background-color: #fdfbf7;
    /* Nền trắng sáng đồng bộ card */
    border: 1px solid #f1eae4;
}

/* Làm đẹp bảng hiển thị món ăn */
.custom-cart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.custom-cart-table th {
    background-color: #6b3816;
    /* Nâu chocolate đồng bộ */
    color: #ffffff;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.custom-cart-table td {
    padding: 15px;
    font-size: 14.5px;
    color: #36251c;
    border-bottom: 1px solid #f1eae4;
}

.custom-cart-table tr:last-child td {
    border-bottom: none;
}

.cart-product-name {
    font-weight: 600;
    color: #6b3816 !important;
    text-align: left;
    padding-left: 25px !important;
}

.cart-qty-badge {
    background: #e6ccb2;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 13.5px;
    color: #36251c;
}

.cart-item-total {
    font-weight: 700;
    color: #db5f0c;
}

/* Khối tóm tắt giỏ hàng */
.cart-summary-block {
    margin-top: 25px;
    text-align: right;
    background-color: #fdfbf7;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f1eae4;
}

.cart-summary-block h3 {
    font-size: 18px;
    color: #36251c;
    margin-bottom: 15px;
}

.cart-summary-block h3 span {
    color: #db5f0c;
    font-size: 22px;
    font-weight: 700;
}

/* Cụm nút hành động song song */
.cart-action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.btn-continue-shopping {
    background-color: #e6ccb2;
    color: #36251c;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.btn-continue-shopping:hover {
    background-color: #cdaf95;
}

.btn-submit-checkout {
    background-color: #28a745;
    /* Màu xanh lá tươi sắc nét của nút Tiến Hành */
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-submit-checkout:hover {
    background-color: #218838;
}

/* Giao diện khi giỏ trống */
.cart-empty-state {
    text-align: center;
    padding: 40px 20px;
    background-color: #fdfbf7;
    border-radius: 8px;
}

.cart-empty-state i {
    font-size: 50px;
    color: #cdaf95;
    margin-bottom: 15px;
}

.cart-empty-state p {
    font-size: 16px;
    font-weight: 600;
    color: #8c7a6f;
}

/* ==========================================================================
   11. KHU VỰC LIÊN HỆ & BẢN ĐỒ ĐỒNG BỘ TONE MÀU CAO CẤP
   ========================================================================== */
.contact-map-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    /* Hỗ trợ tự động xuống hàng trên màn hình điện thoại */
}

/* Định dạng chung cho cả 2 khối để đồng bộ trang chủ */
.Contact,
.Map {
    background: #CABA9B;
    /* Nền tấm bảng màu kem đồng bộ */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(111, 78, 55, 0.04);
    border: 1px solid #f1eae4;
    flex: 1;
    min-width: 450px;
    /* Khống chế độ rộng tối thiểu chống móp méo */
}

/* Định dạng Tiêu đề h2 chứa icon */
.Contact h2,
.Map h2 {
    font-size: 22px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.Contact h2 i,
.Map h2 i {
    color: #f39c12;
    /* Icon màu vàng hạt cafe nổi bật */
}

.contact-subtitle {
    font-size: 13.5px;
    color: #ffffff;
    margin-bottom: 25px;
    font-style: italic;
    opacity: 0.9;
}

/* Danh sách các dòng thông tin liên hệ */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fdfbf7;
    /* Nền card trắng sáng làm nổi bật thông tin */
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #f1eae4;
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    /* Hiệu ứng nhích nhẹ sang phải khi di chuột */
}

/* Định dạng Icon hình tròn nhỏ bên trái thông tin */
.contact-item>i {
    font-size: 16px;
    color: #ffffff;
    background-color: #6b3816;
    /* Nền nâu chocolate đậm */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-item strong {
    font-size: 14px;
    color: #6b3816;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-item span {
    font-size: 14px;
    color: #36251c;
    font-weight: 600;
}

/* Khung chứa Google Map */
.map-container {
    width: 100%;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #fdfbf7;
    /* Viền trắng bao quanh bản đồ tinh tế */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
}



/* Bộ CSS bổ sung cho cụm nút tăng giảm và nút dọn dẹp */
.qty-control-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-qty-mod {
    background-color: #e6ccb2;
    color: #36251c;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-qty-mod:hover {
    background-color: #6b3816;
    color: white;
}

.cart-qty-number {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 14.5px;
}

.btn-delete-item {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-delete-item:hover {
    transform: scale(1.2);
}

.btn-clear-cart {
    background-color: #6f4e37;
    color: #ffffff;
    border: 1px solid #563c2b;
    padding: 10px 15px;
    font-size: 13.5px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-cart:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}



/* ==========================================================================
   12. GIAO DIỆN THANH TOÁN (CHECKOUT & INVOICE LAYOUT CHUYÊN NGHIỆP)
   ========================================================================== */
.page-checkout-container {
    margin-top: 30px !important;
}

.checkout-flex-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    flex-wrap: wrap;
    /* Tự động xếp dọc khi co màn hình điện thoại */
}

.checkout-left-form {
    flex: 1.3;
    min-width: 450px;
}

.checkout-right-invoice {
    flex: 1;
    min-width: 380px;
}

/* Định dạng Form điền thông tin */
.custom-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.form-group-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-item label {
    font-size: 14px;
    font-weight: 700;
    color: #36251c;
}

.form-group-item label i {
    color: #6b3816;
}

.form-group-item input[type="text"],
.form-group-item input[type="tel"],
.form-group-item textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #f1eae4;
    font-size: 14px;
    outline: none;
    background-color: #fdfbf7;
    color: #36251c;
}

.form-group-item input:focus,
.form-group-item textarea:focus {
    border-color: #6b3816;
    box-shadow: 0 0 5px rgba(107, 56, 22, 0.2);
}

/* Bộ nút chọn phương thức thanh toán */
.payment-method-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.method-radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fdfbf7;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #f1eae4;
    cursor: pointer;
}

.method-radio-card input[type="radio"] {
    accent-color: #6b3816;
    /* Đổi màu nút chọn tròn theo tone nâu */
    width: 16px;
    height: 16px;
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #36251c;
}

.radio-content i {
    color: #f39c12;
}

/* Định dạng khối Hóa đơn bên phải */
.invoice-items-list {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    max-height: 180px;
    overflow-y: auto;
    /* Tạo cuộn nếu hóa đơn quá nhiều món */
}

.invoice-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 10px;
}

.invoice-item-row:last-child {
    margin-bottom: 0;
}

.invoice-item-name strong {
    color: #f3c08e;
}

/* Thanh nhập mã Coupon giảm giá */
.coupon-form {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
}

.coupon-form input {
    flex: 1;
    padding: 9px 12px;
    border-radius: 5px;
    border: none;
    font-size: 13.5px;
    outline: none;
}

.coupon-form button {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 0 15px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13.5px;
}

.coupon-form button:hover {
    background-color: #d3830c;
}

.coupon-success-text {
    font-size: 12px;
    color: #5af35a;
    text-align: left;
    font-weight: 600;
    margin-top: 4px;
}

/* Tổng kết tiền hóa đơn */
.invoice-summary-totals {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #fcf8f5;
}

.final-grand-total {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.final-grand-total span:last-child {
    color: #f3c08e;
    font-size: 22px;
}

/* Nút đặt hàng to lớn góc hóa đơn */
.btn-final-order-submit {
    width: 100%;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease;
}

.btn-final-order-submit:hover {
    background-color: #218838;
}


/* ==========================================================================
           ADVANCED PREMIUM ORDER HISTORY UI
           ========================================================================== */
.order-history-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Khối tiêu đề trang phong cách Modern Café */
.history-page-header {
    text-align: center;
    margin-bottom: 35px;
    background: #36251c;
    padding: 30px;
    border-radius: 16px;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(54, 37, 28, 0.1);
}

.history-page-header h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f3c08e;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.history-page-header p {
    font-size: 14px;
    color: #e0d0c0;
    margin: 0;
    opacity: 0.9;
}

/* 📊 KHỐI THỐNG KÊ NHANH (MINI DASHBOARD) */
.history-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

@media (max-width: 768px) {
    .history-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.stat-mini-card {
    background: #ffffff;
    border: 1px solid #f3ece6;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(54, 37, 28, 0.02);
    text-align: left;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #fdf6f0;
    color: #6b3816;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-info-text h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #36251c;
}

.stat-info-text p {
    margin: 2px 0 0 0;
    font-size: 12.5px;
    color: #7f8c8d;
    font-weight: 600;
}

/* 📦 HỘP CHỨA DANH SÁCH ĐƠN HÀNG */
.premium-order-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 28px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(54, 37, 28, 0.03);
    border: 1px solid #f5ede6;
    transition: all 0.25s ease;
    position: relative;
}

.premium-order-card:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 25px rgba(107, 56, 22, 0.07);
    border-color: #e6ccb2;
}

/* Thanh đỉnh (Header của Card) */
.card-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #f3ece6;
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.meta-invoice-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: #7f8c8d;
}

.meta-invoice-info strong {
    font-size: 15px;
    color: #6b3816;
    background: #fffcf9;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e6ccb2;
}

/* Nhãn trạng thái kén tròn */
.status-pill-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-processing {
    background-color: #cce5ff;
    color: #004085;
}

.status-shipping {
    background-color: #e2e3e5;
    color: #383d41;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* 📊 BỐ CỤC 3 CỘT NỘI DUNG RÕ RÀNG */
.card-main-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    text-align: left;
}

@media (max-width: 768px) {
    .card-main-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.col-info-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Phân tách đường kẻ giữa các cột trên Desktop */
.col-border-center {
    border-left: 1px solid #fdf5ee;
    border-right: 1px solid #fdf5ee;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .col-border-center {
        border: none;
        padding: 0;
    }
}

.info-item-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: #555;
}

.info-item-row i {
    color: #6b3816;
    width: 14px;
    margin-top: 3px;
}

.info-item-row span strong {
    color: #36251c;
}

/* Khối hiển thị tiền thanh toán */
.pricing-box-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .pricing-box-right {
        align-items: flex-start;
    }
}

.price-label-text {
    font-size: 12.5px;
    color: #888;
    margin-bottom: 2px;
}

.price-value-text {
    font-size: 20px;
    font-weight: 800;
    color: #6b3816;
    margin-bottom: 10px;
}

/* Nút xem chi tiết */
.btn-premium-invoice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #6b3816;
    color: #ffffff;
    padding: 9px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-premium-invoice:hover {
    background-color: #36251c;
    transform: translateY(-1px);
}

/* Phân trang */
.modern-pagination-box {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.page-link-node {
    padding: 9px 15px;
    border: 1px solid #e6ccb2;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    color: #36251c;
    background: #fff;
}

.page-link-node.node-active {
    background-color: #6b3816;
    color: #fff;
    border-color: #6b3816;
}

/* Trống trải */
.empty-history-state {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #f5ede6;
}

.empty-history-state i {
    font-size: 50px;
    color: #dcd1c4;
    margin-bottom: 15px;
}

.order-detail-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 15px;
}

.detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 25px rgba(54, 37, 28, 0.06);
    border: 1px solid #f1eae4;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #e6ccb2;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.detail-title {
    color: #6b3816;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.info-box h4 {
    color: #6b3816;
    margin: 0 0 8px 0;
    font-size: 15px;
    border-bottom: 1px solid #f3ece6;
    padding-bottom: 4px;
}

.info-box p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.item-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    text-align: left;
}

.item-table th {
    background: #36251c;
    color: #fff;
    padding: 12px;
    font-size: 14px;
}

.item-table td {
    padding: 12px;
    border-bottom: 1px solid #f3ece6;
    font-size: 14px;
    color: #333;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-meta img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
}

.summary-box {
    background: #fdfbf9;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px dashed #e6ccb2;
    margin-top: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-row.grand-total {
    font-size: 17px;
    font-weight: bold;
    color: #a52a2a;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #e6ccb2;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6b3816;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
}

.btn-back:hover {
    background: #4a250e;
}



/* CSS tùy chỉnh trực tiếp cho trang Cảm ơn */
.thankyou-wrapper {
    max-width: 650px;
    margin: 60px auto;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 5px solid #6b3816;
}

.success-icon-box {
    font-size: 70px;
    color: #28a745;
    margin-bottom: 20px;
    animation: scaleUp 0.5s ease-in-out;
}

.thankyou-title {
    color: #36251c;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.thankyou-desc {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.order-summary-box {
    background-color: #fdfaf7;
    border: 1px dashed #e6ccb2;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    margin-bottom: 35px;
}

.order-summary-box h3 {
    margin-top: 0;
    color: #6b3816;
    font-size: 16px;
    border-bottom: 1px solid #e6ccb2;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14.5px;
    color: #444;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-weight: 500;
}

.summary-value {
    font-weight: bold;
    color: #36251c;
}

.thankyou-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-thankyou {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-home {
    background-color: #6b3816;
    color: #ffffff;
}

.btn-home:hover {
    background-color: #4a250e;
    transform: translateY(-2px);
}

.btn-history {
    background-color: #e6ccb2;
    color: #36251c;
}

.btn-history:hover {
    background-color: #b79a81;
    transform: translateY(-2px);
}

@keyframes scaleUp {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


.qty-control-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-qty-mod {
    background-color: #e6ccb2;
    color: #36251c;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-qty-mod:hover {
    background-color: #6b3816;
    color: white;
}

.cart-qty-number {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 14.5px;
}

.btn-delete-item {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-delete-item:hover {
    transform: scale(1.2);
}

.btn-clear-cart {
    background-color: #6f4e37;
    color: #ffffff;
    border: 1px solid #563c2b;
    padding: 10px 15px;
    font-size: 13.5px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-cart:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Cụm nút hành động cột cuối */
.cart-action-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-edit-note {
    background: none;
    border: none;
    color: #f39c12;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-edit-note:hover {
    transform: scale(1.2);
}

.note-status-indicator {
    display: block;
    font-size: 11px;
    color: #28a745;
    font-style: italic;
    margin-top: 3px;
    font-weight: 600;
}

/* ========================================================
           HỆ THỐNG CỬA SỔ POP-UP (MODAL WINDOW) CHO GHI CHÚ
           ======================================================== */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Lớp nền tối mờ phía sau */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;

    /* SỬA LỖI ĐƠ: Chỉ kích hoạt vùng bấm khi class .open-modal xuất hiện */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-modal-overlay.open-modal {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-modal-box {
    background: #fdfbf7;
    width: 100%;
    max-width: 420px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #e6ccb2;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
    text-align: left;
}

.cart-modal-overlay.open-modal .cart-modal-box {
    transform: translateY(0);
}

.cart-modal-box h3 {
    font-size: 18px;
    color: #6b3816;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #e6ccb2;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-form-group label {
    font-size: 13.5px;
    font-weight: 700;
    color: #36251c;
}

.modal-form-group select,
.modal-form-group input {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #e6ccb2;
    outline: none;
    color: #36251c;
    background: #fff;
}

.modal-footer-btns {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-modal-close {
    background: #e6ccb2;
    color: #36251c;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.btn-modal-save {
    background: #6b3816;
    color: white;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.btn-modal-save:hover {
    background: #db5f0c;
}

/* ==========================================================================
           CORE CHECKOUT PREMIUM UI LAYOUT
           ========================================================================== */
.page-checkout-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.checkout-flex-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.checkout-left-form {
    flex: 1.4;
    min-width: 450px;
}

.checkout-right-invoice {
    flex: 1;
    min-width: 380px;
    position: sticky;
    top: 20px;
}

/* Thẻ bao bọc Premium */
.premium-checkout-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(54, 37, 28, 0.06);
    border: 1px solid #f3ece6;
    transition: all 0.3s ease;
}

.premium-checkout-card.dark-theme {
    background: #36251c;
    border: 1px solid #563c2b;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.checkout-sec-title {
    font-size: 20px;
    font-weight: 700;
    color: #36251c;
    margin-top: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.premium-checkout-card.dark-theme .checkout-sec-title {
    color: #ffffff;
}

.checkout-sec-title i {
    color: #6b3816;
}

.premium-checkout-card.dark-theme .checkout-sec-title i {
    color: #f3c08e;
}

.checkout-sec-desc {
    font-size: 13.5px;
    color: #7f8c8d;
    margin-top: 0;
    margin-bottom: 25px;
}

.premium-checkout-card.dark-theme .checkout-sec-desc {
    color: #bdc3c7;
}

/* Thiết kế ô Input modern */
.form-group-item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group-item label {
    font-size: 14px;
    font-weight: 700;
    color: #563c2b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group-item input[type="text"],
.form-group-item input[type="tel"],
.form-group-item textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1.5px solid #e6ccb2;
    font-size: 14px;
    outline: none;
    background-color: #fdfbf9;
    color: #36251c;
    transition: all 0.25s ease;
}

.form-group-item input:focus,
.form-group-item textarea:focus {
    border-color: #6b3816;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(107, 56, 22, 0.1);
}

/* Thẻ Radio Chọn phương thức thanh toán Premium */
.payment-method-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.method-radio-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fdfbf9;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1.5px solid #e6ccb2;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.method-radio-card:hover {
    border-color: #6b3816;
    background: #fffbf9;
}

.method-radio-card input[type="radio"] {
    accent-color: #6b3816;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    font-weight: 600;
    color: #36251c;
}

.radio-content i {
    font-size: 18px;
    color: #6b3816;
}

/* Hiệu ứng trượt mở khung Mã QR */
.qr-payment-wrapper {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border-radius: 10px;
    text-align: center;
    border: 1.5px dashed #e6ccb2;
}

.qr-payment-wrapper.show-qr {
    max-height: 380px;
    opacity: 1;
    visibility: visible;
    margin-top: 15px;
    padding: 20px;
    border-color: #6b3816;
    background: #fffcf9;
}

.qr-payment-wrapper img {
    max-width: 170px;
    border: 1px solid #f3ece6;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.qr-payment-wrapper p {
    font-size: 13.5px;
    color: #6b3816;
    margin: 10px 0 4px 0;
    font-weight: 700;
}

/* Danh sách sản phẩm thu nhỏ bên Hóa Đơn */
.invoice-items-list {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.invoice-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 14px;
    color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.invoice-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.invoice-item-row:first-child {
    padding-top: 0;
}

.invoice-item-name {
    text-align: left;
    padding-right: 15px;
}

.invoice-item-name strong {
    color: #f3c08e;
    font-weight: 700;
}

/* Cụm nhập mã giảm giá */
.coupon-code-section {
    margin-bottom: 20px;
}

.coupon-form {
    display: flex;
    gap: 10px;
}

.coupon-form input {
    flex: 1;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13.5px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    color: #36251c;
    font-weight: 600;
}

.coupon-form button {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 0 20px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.coupon-form button:hover {
    background-color: #e67e22;
}

.coupon-success-text {
    font-size: 12.5px;
    color: #2ecc71;
    text-align: left;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Khối tổng kết tiền */
.invoice-summary-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #fcf8f5;
    opacity: 0.9;
}

.final-grand-total {
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 5px;
    opacity: 1;
}

.final-grand-total span:last-child {
    color: #f3c08e;
    font-size: 24px;
    font-weight: 800;
}

/* Nút Xác nhận đặt hàng lớn */
.btn-final-order-submit {
    width: 100%;
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 22px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-final-order-submit:hover {
    background-color: #219653;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
    transform: translateY(-1px);
}




/* ==========================================================================
   BANNER THÔNG BÁO GIAO HÀNG ĐÀ NẴNG (PREMIUM NOTICE BADGE)
   ========================================================================== */
.delivery-notice-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fdf6ee;
    /* Nền kem cam nhạt ấm áp */
    border: 1px solid #e6ccb2;
    border-left: 5px solid #d97706;
    /* Thanh nhấn màu cam hạt cà phê */
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(107, 56, 22, 0.05);
    text-align: left;
}

.delivery-notice-banner>i {
    font-size: 22px;
    color: #d97706;
    background: #fef3c7;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delivery-notice-banner div {
    font-size: 13.5px;
    color: #563c2b;
    line-height: 1.5;
}

.delivery-notice-banner strong {
    color: #6b3816;
    font-size: 13px;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 1px;
}

.delivery-notice-banner b {
    color: #b45309;
    font-weight: 700;
}

/* ==========================================================================
   GLOBAL RESPONSIVE DESIGN (PHÙ HỢP VỚI MỌI KÍCH CỠ MÀN HÌNH)
   ========================================================================== */
@media (max-width: 1200px) {
    .main-layout-custom {
        max-width: 100%;
        padding: 0 15px;
    }

    .product-grid-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .product-grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .detail-container {
        flex-direction: column !important;
        gap: 25px !important;
        padding: 20px !important;
    }

    .detail-container>div {
        width: 100% !important;
        min-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .main-layout-custom {
        margin: 20px auto 40px auto !important;
        padding: 0 12px;
    }

    .intro-container {
        flex-direction: column !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .product-grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .product-card {
        padding: 10px;
    }

    .product-card img {
        height: 140px;
    }

    .category-wrapper-block {
        padding: 16px 12px;
    }

    .breadcrumb-trail {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .product-grid-3 {
        grid-template-columns: 1fr !important;
    }

    .product-card img {
        height: 180px;
    }

    .search-bar-container form {
        flex-direction: column;
    }

    .search-bar-container form button {
        padding: 10px;
        justify-content: center;
    }
}