/* ===========================
   Google Font
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Kanit',sans-serif;
}

body{
    background:#f5fff5;
    color:#333;
}

/* ===========================
   Header
=========================== */

header{
    width:100%;
    background:#4CAF50;
    color:#fff;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 8%;
    position:sticky;
    top:0;

    box-shadow:0 3px 10px rgba(0,0,0,.1);
}

.logo{
    font-size:28px;
    font-weight:700;
}

header button{

    border:none;
    background:#fff;

    color:#4CAF50;

    padding:12px 22px;

    border-radius:30px;

    cursor:pointer;

    font-size:16px;

    transition:.3s;
}

header button:hover{

    background:#e8ffe8;

    transform:scale(1.05);

}

/* ===========================
Hero
=========================== */

.hero{

    text-align:center;

    padding:60px 20px;

}

.hero h1{

    font-size:40px;

    color:#2e7d32;

}

.hero p{

    margin-top:15px;

    color:#666;

    font-size:18px;

}

/* ===========================
Search
=========================== */

.search-box{

    width:90%;

    max-width:600px;

    margin:auto;

}

.search-box input{

    width:100%;

    padding:16px;

    border:none;

    border-radius:30px;

    outline:none;

    box-shadow:0 0 10px rgba(0,0,0,.1);

    font-size:17px;

}

/* ===========================
Food Card
=========================== */

.food-container{

    width:90%;

    margin:40px auto;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:25px;

}

.card{

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

    transition:.3s;

}

.card:hover{

    transform:translateY(-8px);

}

.card img{

    width:100%;

    height:200px;

    object-fit:cover;

}

.card-content{

    padding:20px;

}

.card h3{

    color:#2e7d32;

    margin-bottom:10px;

}

.price{

    color:#ff5722;

    font-size:22px;

    font-weight:bold;

}

.category{

    display:inline-block;

    margin-top:10px;

    background:#c8e6c9;

    color:#2e7d32;

    padding:6px 14px;

    border-radius:20px;

}

.detail{

    margin-top:15px;

    color:#666;

    line-height:1.6;

}

/* ===========================
Buttons
=========================== */

.card-buttons{

    display:flex;

    justify-content:space-between;

    margin-top:20px;

}

.edit{

    background:#ffc107;

    color:#fff;

}

.delete{

    background:#f44336;

    color:white;

}

.card-buttons button{

    border:none;

    padding:10px 18px;

    border-radius:25px;

    cursor:pointer;

    transition:.3s;

}

.card-buttons button:hover{

    opacity:.8;

}

/* ===========================
Modal
=========================== */

.modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    display:none;

    justify-content:center;

    align-items:center;

    padding:20px;

}

.modal-content{

    background:white;

    width:100%;

    max-width:550px;

    border-radius:20px;

    padding:30px;

}

.modal-content h2{

    text-align:center;

    color:#2e7d32;

    margin-bottom:20px;

}

.modal-content label{

    display:block;

    margin-top:15px;

}

.modal-content input,
.modal-content textarea,
.modal-content select{

    width:100%;

    margin-top:8px;

    padding:12px;

    border:1px solid #ddd;

    border-radius:12px;

    outline:none;

}

.btn-group{

    display:flex;

    justify-content:space-between;

    margin-top:25px;

}

.save{

    background:#4CAF50;

    color:white;

}

.cancel{

    background:#f44336;

    color:white;

}

.btn-group button{

    width:48%;

    border:none;

    padding:12px;

    border-radius:15px;

    cursor:pointer;

    font-size:16px;

}

/* ===========================
Footer
=========================== */

footer{

    margin-top:50px;

    background:#4CAF50;

    color:white;

    text-align:center;

    padding:25px;

}

/* ===========================
Responsive
=========================== */

@media(max-width:768px){

.hero h1{

font-size:30px;

}

.logo{

font-size:22px;

}

header{

padding:15px 20px;

}

header button{

font-size:14px;

padding:10px 18px;

}

.food-container{

grid-template-columns:1fr;

}

}