/*
 * Bố cục trang Thực đơn — dùng chung cho bản tiếng Việt (/menu) và bản tiếng
 * Anh (/en/menu). Trước đây nằm inline trong menu.blade.php; tách ra để hai
 * bản không trôi khỏi nhau và để trình duyệt cache được.
 */

/*
 * .menu-list gốc của template xoay ảnh 85° (viết riêng cho icon cốc
 * trong suốt của template, không hợp ảnh chụp món thật) — thay bằng
 * card kiểu trang Đặt món (ảnh trái, chữ phải), dàn 3 cột.
 */
/* Giống .order-container của order.css: rộng hết khung nhìn thay vì
   bị Bootstrap .container bó hẹp theo breakpoint. */
.order-container {
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}
.menu-cat-tabs {
    padding-top:20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}
.menu-cat-tabs .cat-btn {
    /* Mỗi danh mục có màu riêng (cột color trong CSDL, đặt qua biến
       --cat-color ở thẻ), rơi về vàng nâu mặc định nếu danh mục
       không có màu. */
    padding: 7px 18px;
    border: 2px solid var(--cat-color, #c89f5b);
    border-radius: 20px;
    background: transparent;
    color: var(--cat-color, #c89f5b);
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .25s ease;
}
.menu-cat-tabs .cat-btn:hover,
.menu-cat-tabs .cat-btn.active {
    background: var(--cat-color, #c89f5b);
    color: #fff;
}

/* Card ngang kiểu trang Đặt món (ảnh nhỏ bên trái, chữ bên phải),
   nhưng dàn cố định 3 cột thay vì một list chạy dài toàn bộ chiều rộng. */
.menu-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.menu-row-card {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    transition: transform .2s ease, box-shadow .2s ease;
}
/* Cùng ngôn ngữ hover với card "Món nổi bật" ở trang chủ — vạch
   vàng nâu trượt vào từ trái thay vì chỉ nhấc/đổ bóng suông. */
.menu-row-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #c89f5b, #a67c3d);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .25s ease;
}
.menu-row-card:hover::before {
    transform: scaleY(1);
}
.menu-row-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.13);
}
.menu-row-img {
    position: relative;
    flex: 0 0 130px;
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c4 100%);
    overflow: hidden;
}
.menu-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.menu-row-card:hover .menu-row-img img { transform: scale(1.06); }
.best-seller-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    white-space: nowrap;
}
.menu-row-body {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.menu-row-body .item-name {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
}
.menu-row-body .item-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    line-height: 1.4;
}
.menu-row-body .item-price {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #c89f5b;
    margin: 0;
}
.menu-row-cta {
    display: inline-block;
    align-self: flex-start;
    margin-top: 8px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #c89f5b, #a67c3d);
    color: #fff !important;
    border-radius: 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease;
}
.menu-row-cta:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(166,124,61,.4);
}

.menu-cta { padding: 50px 0 70px; }

@media (max-width: 991px) {
    .menu-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .menu-grid-3 { grid-template-columns: 1fr; }
}

/* Dòng hướng dẫn đọc menu ở bản tiếng Anh. */
.menu-en-hint {
    max-width: 760px;
    margin: 0 auto 24px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: #6b6b6b;
}
.menu-en-hint a {
    color: #a67c3d;
    text-decoration: underline;
}
