/* --- Global Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif; /* ใช้ฟอนต์ Kanit ให้รองรับภาษาไทยสวยงาม */
}

body {
    background-color: #f8f9fa; /* สีพื้นหลังเว็บสว่างๆ ลดความล้าของสายตา */
    color: #333;
}

/* --- Navbar --- */
.navbar {
    width: 100%;
    height: 80px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* เพิ่มเงาให้แถบเมนูแยกจากพื้นหลังชัดเจน */
    position: sticky;
    top: 0;
    z-index: 100;


}
.navbar a{
    color: #333;
    text-decoration: none;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* ทำให้โลโก้เป็นวงกลม */
    object-fit: cover;
}

.nav-brand h3 {
    font-size: 1.5rem;
    color: #ff9800; /* ใช้สีส้มเพื่อให้เกี่ยวกับอาหาร */
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 20px;
    font-weight: 500;
    cursor: pointer;
}

.nav-menu span:hover {
    color: #ff9800;
}

/* --- Main Layout --- */
.container {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #2c3e50;
    border-left: 4px solid #ff9800;
    padding-left: 10px;
}

/* --- CSS Grid สำหรับจัดเรียงเมนู --- */
.box-items {
    display: grid;
    /* จัดการให้การ์ดยืดหดตามขนาดจอ อัตโนมัติ (Responsive) */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* --- Product Card UI --- */
.card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* เอฟเฟกต์ตอน Hover เมาส์ */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
    width: 100%;
    height: 200px; /* ล็อกความสูงรูปภาพให้เท่ากันทุกการ์ด */
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ป้องกันรูปเบี้ยว */
    transition: transform 0.4s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05); /* ซูมรูปภาพนิดนึงตอนชี้เมาส์ */
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}
.card-info {
    display: flex;
    flex-direction: column; /* เรียงจากบนลงล่าง */
    gap: 10px;
    margin-bottom: 15px;
}

.item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- UI ป้ายคิว (Queue Badge) --- */
.queue-badge {
    background-color: #fff3cd; /* สีเหลืองอ่อน แจ้งเตือนสถานะ */
    color: #856404;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-block;
    border-left: 4px solid #ffc107; /* แถบสีด้านซ้ายให้ดูมีมิติ */
}

.queue-badge span {
    font-weight: 700;
    font-size: 1.1rem;
    color: #d39e00;
}

/* --- UI ปุ่มยกเลิก (Cancel Button) --- */
.btn-cancel {
    width: 100%;
    padding: 10px;
    background-color: transparent; /* พื้นหลังใส */
    color: #dc3545; /* ตัวหนังสือสีแดง */
    border: 2px solid #dc3545; /* ขอบสีแดง */
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* เอฟเฟกต์ตอน Hover เมาส์ไปชี้ ให้ปุ่มเป็นสีแดงทึบ */
.btn-cancel:hover {
    background-color: #dc3545;
    color: white;
}