﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/*body {
    background-color: #f4f7f4;
    color: #2c3e2c;
    padding: 20px 10px;
    display: flex;
    justify-content: center;
}*/

.menu-container {
    width: 100%;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    overflow: hidden;
    margin-right:auto;
    margin-left:auto;
}

/* Thanh điều hướng danh mục (Navbar) */
.category-nav {
    background-color: #1e4620; /* Xanh lá đậm sang trọng */
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.category-list {
    display: flex;
    list-style: none;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 5px;
}

    /* Ẩn thanh cuộn trên các trình duyệt nhưng vẫn cuộn được trên mobile */
    .category-list::-webkit-scrollbar {
        height: 5px;
    }

    .category-list::-webkit-scrollbar-thumb {
        background: #4caf50;
        border-radius: 10px;
    }

.category-item a {
    display: block;
    white-space: nowrap;
    color: #e8f5e9;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

    .category-item.active a, .category-item a:hover {
        background-color: #4caf50; /* Màu xanh lá tươi điểm nhấn */
        color: #ffffff;
    }

/* Lưới hiển thị danh sách bánh (Grid) */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Thẻ sản phẩm */
.menu-item {
    display: flex;
    align-items: center;
    background-color: #e8f5e9; /* Nền xanh lá pastel dịu mắt */
    border-radius: 16px;
    padding: 15px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #c8e6c9;
}

    .menu-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(76, 175, 80, 0.15);
    }

/* Ảnh sản phẩm hình tròn */
.item-image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.item-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #c8e6c9; /* Placeholder nếu lỗi ảnh */
}

/* Huy hiệu giá tiền bo tròn dưới ảnh */
.item-price {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e4620;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    white-space: nowrap;
}

/* Thông tin chữ */
.item-info {
    flex-grow: 1;
}

.item-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e4620;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.item-description {
    font-size: 13px;
    color: #556b55;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- CẤU HÌNH RESPONSIVE (TƯƠNG THÍCH MỌI THIẾT BỊ) --- */

/* Máy tính bảng và màn hình vừa */
@media (max-width: 900px) {
    .item-image-wrapper {
        width: 90px;
        height: 90px;
        margin-right: 15px;
    }

    .item-title {
        font-size: 15px;
    }
}

/* Điện thoại di động (Màn hình dọc) */
@media (max-width: 650px) {
    .menu-grid {
        grid-template-columns: 1fr; /* Chuyển sang 1 cột xếp dọc */
        gap: 15px;
    }

    .menu-item {
        padding: 12px;
    }

    .item-image-wrapper {
        width: 85px;
        height: 85px;
        margin-right: 12px;
    }

    .item-title {
        font-size: 14px;
    }

    .item-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
}
