:root{
    --bg: #fffaf3;
    --card: #fffef9;
    --accent: #d85c3f;
    --accent-dark: #a34f2d;
    --muted: #7a6a5a;
    --shadow: 0 10px 30px rgba(28,22,15,0.06);
    --radius: 12px;
    --glass: rgba(255,255,255,0.6);
}
*{
    box-sizing:border-box;
}
html,body{
    height:100%;
}
body{
    font-family: 'Poppins', system-ui, Arial, sans-serif;
    background: linear-gradient(180deg,var(--bg),#fff);
    color: #222;
    margin:0;
    padding: 24px;
    -webkit-font-smoothing: antialiased;
    font-size:16px;
    line-height: 1.55;
}
header{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:12px;
}
.brand{
    display:flex;
    gap:10px;
    align-items:center;
}
.logo{
    width:56px;
    height:56px;
    border-radius:14px;
    background:linear-gradient(135deg,var(--accent),var(--accent-dark));
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-weight:800;
    font-size:16px;
}
nav{
    margin-left:auto;
}
nav a{
    margin:0 10px;
    text-decoration:none;
    color:var(--accent-dark);
    font-weight:600;
}
.wrap{
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
    margin-top:4px;
}
.panel{
    background:var(--card);
    padding:20px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}
.controls{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:10px;
    align-items:center;
}
button{
    background:var(--accent);
    border:none;
    color:#fff;
    padding:10px 14px;
    border-radius:10px;
    cursor:pointer;
    font-weight:700;
    letter-spacing:0.2px;
}
button.ghost{
    background:transparent;
    color:var(--accent-dark);
    border:1px solid rgba(163,79,45,0.12);
}
button.small{
    padding:8px 10px;
    font-size:14px;
}
button.alt{
    background:linear-gradient(90deg,#fff,#fff);
    color:var(--accent-dark);
    border:1px solid rgba(163,79,45,0.06);
}
button:hover{
    transform:translateY(-2px);
    transition:all .18s ease;
}

/* gallery */
.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:14px;
}
.card{
    background:linear-gradient(180deg, #ffffff, #fffaf0);
    border-radius:12px;
    padding:10px;text-align:center;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,0.04);
    display:flex;
    flex-direction:column;
}
.card img{
    width:100%;
    height:140px;
    object-fit:cover;
    border-radius:10px;
    transition:transform .35s ease, box-shadow .25s ease;
}
.card:hover img{
    transform:scale(1.04);
    box-shadow:0 14px 30px rgba(20,14,10,0.08);
}
.meta{
    padding:10px 6px;
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}
.meta strong{
    font-weight:700;
    font-size:16px;
}
.meta small{
    display:block;
    color:var(--muted);
    margin-top:6px;
}
.card-footer{
    display:flex;
    gap:8px;
    align-items:center;
    justify-content:center;
    margin-top:8px;
}
.tag{
    background:rgba(168,130,113,0.08);
    padding:6px 8px;
    border-radius:8px;
    font-weight:600;
    color:var(--accent-dark);
}

/* dish list */
#lista-dan li{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px;
    border-radius:10px;
    background:#f7efe0;
    margin-bottom:8px;
}
#lista-dan li .remove{
    background:transparent;
    border:0;
    color:#c94b33;
    cursor:pointer;
    font-weight:800;
    font-size:18px;
}

/* form */
form{
    display:grid;
    gap:10px;
}
input[type=text],input[type=email],textarea{
    padding:12px;
    border-radius:10px;
    border:1px solid #efe7db;
    background:transparent;
}
textarea{
    min-height:110px;
    resize:vertical;
}

/* toast & modal */
.toast{
    position:fixed;
    right:20px;
    bottom:20px;
    background:var(--accent);
    color:#fff;
    padding:12px 16px;
    border-radius:10px;
    box-shadow:var(--shadow);
    display:none;
}
.modal-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.55);
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}
.modal{
    background:#fff;
    padding:18px;
    border-radius:12px;
    max-width:760px;
    width:100%;
    max-height:88vh;
    overflow:auto;
}

/* comments */
.comments-toggle{
    display:inline-flex;
    align-items:center;
    gap:8px;
}
.comment{
    display:flex;
    gap:12px;
    background:linear-gradient(180deg,#fffaf8,#fff);
    padding:12px;
    border-radius:10px;
    border-left:4px solid var(--accent);
    box-shadow:0 8px 20px rgba(0,0,0,0.03);
    margin-bottom:10px;
}
.avatar{
    width:44px;
    height:44px;
    border-radius:50%;
    background:var(--accent);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}
.comment-body{
    flex:1;
}
.comment-body p{
    margin:0 0 6px 0;
}
.comment-meta{
    font-size:13px;
    color:var(--muted);
}
.comment-form{
    display:grid;
    gap:8px;
    margin-top:8px;
}
.quote{
    font-style:italic;
    color:#3e352a;
}
@media(min-width:980px){
    .wrap{
        grid-template-columns:2fr 1fr;
    }
}
@media(max-width:520px){
    .gallery-grid{
        grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
    }
}