:root {
    --bg-dark: #14110f;
    --bg-coffee: #2c1b12;
    --bg-warm: #f7f1ea;
    --bg-cream: #fffdfa;
    --text-main: #241711;
    --text-muted: #6c584c;
    --accent: #a45a2a;
    --accent-hover: #7f421b;
    --border-soft: #e6d8c8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Be Vietnam Pro', Arial, sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-main);
    line-height: 1.6;
}

img {
    max-width: 100%;
}

.container {
    width: 1140px;
    max-width: 92%;
    margin: 0 auto;
}

/* ========== THANH HEADER ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    width: 1140px;
    max-width: 92%;
    margin: 0 auto;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1.5px;
}

.logo i {
    color: #e09f6c;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.nav-links a {
    color: #f3e5d8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #e09f6c;
}

/* ========== BANNER SLIDER ========== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 540px;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.slide-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 17, 15, 0.75) 0%, rgba(20, 17, 15, 0.3) 60%, rgba(20, 17, 15, 0.15) 100%);
}

.slide-caption {
    position: absolute;
    left: 6%;
    bottom: 14%;
    z-index: 2;
    color: #fff;
    max-width: 560px;
}

.slide-caption h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 52px;
    line-height: 1.12;
    margin-bottom: 12px;
}

.slide-caption p {
    font-size: 17px;
    color: #f3e5d8;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(20, 17, 15, 0.55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.slider-btn:hover {
    background-color: var(--accent);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* ========== SECTION CHUNG ========== */
.section-block {
    padding: 76px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 44px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 34px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

.link-menu {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

/* ========== 1. CÂU CHUYỆN THƯƠNG HIỆU ========== */
.story-section {
    background-color: var(--bg-cream);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 44px;
    align-items: center;
}

.story-image {
    position: relative;
    height: 390px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(36, 23, 17, 0.12);
}

.story-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.55s ease, transform 0.65s ease;
}

.story-image .img-main {
    opacity: 1;
    z-index: 1;
}

.story-image .img-hover {
    opacity: 0;
    z-index: 2;
}

.story-image.is-swapped .img-main {
    opacity: 0;
}

.story-image.is-swapped .img-hover {
    opacity: 1;
    transform: scale(1.03);
}

.story-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.story-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.story-stats > div {
    background-color: var(--bg-warm);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 16px;
}

.story-stats strong {
    display: block;
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 4px;
}

.story-stats span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== 2. SẢN PHẨM NỔI BẬT ========== */
.menu-section {
    background-color: var(--bg-warm);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.menu-card {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(36, 23, 17, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(36, 23, 17, 0.14);
}

.menu-thumb-box {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #f5f1ec;
}

.menu-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}

.menu-card:hover .menu-thumb {
    transform: scale(1.06);
}

.menu-info {
    flex: 1;
    padding: 18px 20px 8px;
}

.menu-info h3 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.menu-info p {
    font-size: 14px;
    color: var(--text-muted);
}

.menu-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 20px;
}

.menu-action .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.btn-pick {
    background-color: var(--bg-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-pick:hover {
    background-color: var(--accent);
}

/* ========== 3. CẢM NHẬN KHÁCH HÀNG ========== */
.reviews-section {
    background-color: var(--bg-cream);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background-color: var(--bg-warm);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.stars {
    color: #d9822b;
    font-size: 15px;
    letter-spacing: 2px;
}

.review-card p {
    color: var(--text-main);
    font-size: 14px;
}

.reviewer strong {
    display: block;
    color: var(--text-main);
}

.reviewer span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 4. LIÊN HỆ & BẢN ĐỒ ========== */
.contact-section {
    background-color: var(--bg-warm);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
    align-items: stretch;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f3e5d8;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-muted);
}

.contact-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.social-row {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.social-row a {
    font-size: 13px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

.social-row a:hover {
    color: var(--accent);
}

.contact-map {
    min-height: 380px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: 0 6px 18px rgba(36, 23, 17, 0.08);
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--bg-dark);
    color: #f3e5d8;
    padding: 36px 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer p {
    font-size: 13px;
    color: #cbb8a6;
}

/* ========== TRANG THANH TOÁN ========== */
.checkout-wrap {
    max-width: 820px;
    margin: 36px auto 60px;
    padding: 0 20px;
}

.checkout-card {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(36, 23, 17, 0.08);
}

.checkout-card h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    margin-bottom: 18px;
    color: var(--text-main);
}

.checkout-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    background-color: #fff;
}

.checkout-table th,
.checkout-table td {
    border: 1px solid var(--border-soft);
    padding: 10px 12px;
    text-align: center;
    font-size: 14px;
}

.checkout-table th {
    background-color: #f3e5d8;
    color: var(--text-main);
}

.checkout-total {
    text-align: right;
    font-size: 19px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 22px;
}

.checkout-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #d5c3b2;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background-color: #fff;
}

.qr-panel {
    display: none;
    text-align: center;
    background-color: #fdf8f2;
    border: 1px dashed var(--accent);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.qr-panel img {
    max-width: 220px;
    height: auto;
    border-radius: 8px;
    margin: 10px auto;
    display: block;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-secondary {
    background-color: #6d4c41;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 18px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary-green {
    background-color: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-weight: 700;
    cursor: pointer;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1000px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .story-grid,
    .reviews-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .nav-container {
        flex-direction: column;
        padding: 12px 0;
        gap: 10px;
    }

    .nav-links {
        justify-content: center;
        gap: 16px;
    }

    .hero-slider {
        height: 420px;
    }

    .slide-caption h1 {
        font-size: 38px;
    }

    .section-block {
        padding: 56px 0;
    }
}

@media (max-width: 560px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .slide-caption h1 {
        font-size: 32px;
    }

    .section-header h2 {
        font-size: 28px;
    }
}