/* --- 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;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-info h4 {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.card-info .price {
    font-size: 1.2rem;
    color: #e91e63; /* สีราคาให้เด่นชัด */
    font-weight: 600;
}

/* --- Button UX --- */
.btn-buy {
    width: 100%;
    padding: 12px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.btn-concle{
    width: 100%;
    padding: 12px;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.btn-buy:hover {
    background-color: #e68a00;
}