:root{
  --rosso:#c0392b; --rosso-scuro:#a93226; --verde:#27ae60; --grigio:#f4f4f5;
  --bordo:#e3e3e6; --testo:#222; --muted:#777;
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--grigio);color:var(--testo);line-height:1.5}
a{color:var(--rosso)}
.admin-topbar{background:#fff;border-bottom:1px solid var(--bordo);padding:.8rem 1rem;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:10}
.admin-topbar h1{font-size:1.1rem;margin:0}
.admin-wrap{max-width:880px;margin:0 auto;padding:1rem}
.card{background:#fff;border:1px solid var(--bordo);border-radius:10px;padding:1rem;margin-bottom:1rem}
.btn{display:inline-flex;align-items:center;gap:.4rem;border:0;border-radius:8px;padding:.55rem .9rem;font-size:.95rem;cursor:pointer;text-decoration:none;background:var(--rosso);color:#fff}
.btn:hover{background:var(--rosso-scuro)}
.btn--ghost{background:#fff;color:var(--testo);border:1px solid var(--bordo)}
.btn--danger{background:#e74c3c}
.btn--sm{padding:.3rem .5rem;font-size:.85rem}
.field{margin-bottom:.9rem;display:flex;flex-direction:column;gap:.3rem}
.field label{font-weight:600;font-size:.9rem}
.field input[type=text],.field select,.field textarea{padding:.55rem;border:1px solid var(--bordo);border-radius:8px;font-size:1rem;font-family:inherit}
.field textarea{min-height:70px;resize:vertical}
.field-row{display:flex;gap:1rem;flex-wrap:wrap}
.field-row .field{flex:1;min-width:160px}
.checkbox{flex-direction:row;align-items:center}
.cat-block{border:1px solid var(--bordo);border-radius:10px;margin-bottom:1rem;background:#fff;overflow:hidden}
.cat-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.7rem 1rem;background:#fafafa;border-bottom:1px solid var(--bordo);flex-wrap:wrap}
.cat-head h2{font-size:1rem;margin:0}
.item-row{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.55rem 1rem;border-top:1px solid #f0f0f0;flex-wrap:wrap}
.item-row .name{font-weight:600}
.item-row .price{color:var(--muted);margin-left:.4rem}
.item-row.is-unavailable{opacity:.5}
.actions{display:flex;gap:.3rem;flex-wrap:wrap}
.alert{padding:.7rem 1rem;border-radius:8px;margin-bottom:1rem}
.alert--ok{background:#e8f8ef;color:#1e8449}
.alert--err{background:#fdecea;color:#c0392b}
.login-box{max-width:360px;margin:8vh auto;padding:1.5rem}
.muted{color:var(--muted);font-size:.85rem}
.badge{font-size:.7rem;padding:.1rem .4rem;border-radius:6px;background:#eee;color:#555}
.badge--feat{background:#fef0c7;color:#a6770a}
