
:root{
  --bg:#f4f6f8;
  --bg-soft:#eef2f7;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --primary:#0f766e;
  --primary-2:#115e59;
  --accent:#e11d48;
  --shadow:0 12px 34px rgba(15,23,42,.08);
  --radius:18px;
  --radius-lg:24px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--text);
  font-family:Tahoma,Arial,sans-serif;
  -webkit-text-size-adjust:100%;
}
button,input,textarea,select{font:inherit}
a{color:inherit;text-decoration:none}
.hidden{display:none !important}
.container{
  max-width:1180px;
  margin:0 auto;
  padding:16px;
}
.hero{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(16px);
  background:rgba(244,246,248,.92);
  border-bottom:1px solid rgba(229,231,235,.9);
}
.hero-inner,
.topbar{
  max-width:1180px;
  margin:0 auto;
  padding:16px;
}
.brand-row,
.topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(244,246,248,.94);
  border-bottom:1px solid rgba(229,231,235,.9);
  align-items:center;
}
.page-title{
  margin:0;
  font-size:1.45rem;
  line-height:1.2;
}
.page-subtitle{
  margin:6px 0 0;
  color:var(--muted);
  font-size:.95rem;
  line-height:1.6;
}
.eyebrow{
  margin:0 0 6px;
  color:var(--primary);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.search-wrap{
  display:block;
  margin-top:14px;
}
.search-wrap input,
.toolbar input,
.toolbar select,
input[type="text"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:var(--text);
  padding:12px 14px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.search-wrap input:focus,
.toolbar input:focus,
.toolbar select:focus,
input:focus,
textarea:focus,
select:focus{
  border-color:rgba(15,118,110,.45);
  box-shadow:0 0 0 4px rgba(15,118,110,.09);
}
.stats-row,
.chips-row{
  display:flex;
  gap:10px;
  overflow:auto;
  scrollbar-width:thin;
  padding:10px 2px 2px;
}
.stat,
.chip,
.category-pill{
  flex:0 0 auto;
}
.stat{
  min-width:120px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px 12px;
  box-shadow:var(--shadow);
}
.stat-value{
  font-size:1.05rem;
  font-weight:700;
}
.stat-label{
  font-size:.82rem;
  color:var(--muted);
  margin-top:4px;
}
.chip,
.category-pill,
.btn{
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  border-radius:999px;
  padding:10px 14px;
  cursor:pointer;
  transition:transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
}
.chip:hover,
.category-pill:hover,
.btn:hover{transform:translateY(-1px);border-color:#cbd5e1}
.chip-ghost{background:rgba(255,255,255,.65)}
.category-pill.active{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}
.btn-primary{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}
.btn-primary:hover{
  background:var(--primary-2);
  border-color:var(--primary-2);
}
.btn-ghost{
  background:#fff;
}
.notice{
  background:#fff;
  border:1px solid var(--line);
  color:var(--muted);
  border-radius:16px;
  padding:14px 16px;
  box-shadow:var(--shadow);
}
.panel{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  padding:18px;
  margin-bottom:16px;
}
.panel-title{
  margin:0;
  font-size:1.08rem;
}
.panel-note{
  margin:6px 0 0;
  color:var(--muted);
  font-size:.92rem;
  line-height:1.6;
}
.panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.form-grid{
  display:grid;
  gap:12px;
}
.form-grid label{
  display:grid;
  gap:8px;
}
.form-grid span{
  color:var(--muted);
  font-size:.9rem;
}
.two-col{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.card-form{
  padding:14px;
  border:1px solid rgba(229,231,235,.92);
  border-radius:20px;
  background:#fafbfc;
  margin-bottom:16px;
}
.check-row{
  display:flex !important;
  align-items:center;
  gap:10px;
  padding-top:30px;
}
.check-row input{
  width:18px;
  height:18px;
}
.form-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.toolbar{
  display:grid;
  grid-template-columns:1fr 240px;
  gap:10px;
  margin-bottom:14px;
}
.item-list{
  display:grid;
  gap:12px;
}
.admin-item{
  border:1px solid rgba(229,231,235,.95);
  border-radius:18px;
  background:#fff;
  padding:14px;
}
.admin-item-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.admin-item-title{
  font-size:1rem;
  font-weight:700;
  margin:0 0 4px;
}
.admin-item-meta{
  color:var(--muted);
  font-size:.88rem;
  line-height:1.7;
}
.item-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:4px 10px;
  font-size:.75rem;
  background:#e0f2fe;
  color:#0f4c81;
}
.badge.off{
  background:#fee2e2;
  color:#991b1b;
}
.foods-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  padding-top:2px;
}
.food-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.food-media{
  aspect-ratio:1.26;
  background:#e5e7eb;
  position:relative;
  overflow:hidden;
}
.food-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.food-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:16px;
  color:#fff;
  font-size:1rem;
  font-weight:700;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 30%),
    linear-gradient(135deg, #0f766e, #111827);
}
.food-body{
  padding:14px;
}
.food-name{
  margin:0 0 6px;
  font-size:1rem;
  line-height:1.5;
}
.food-desc{
  margin:0 0 10px;
  color:var(--muted);
  line-height:1.75;
  font-size:.88rem;
  min-height:2.3em;
}
.food-price{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--accent);
  font-size:1rem;
  font-weight:700;
}
.food-price small{
  color:var(--muted);
  font-weight:400;
}
.image-preview{
  border:1px dashed #cbd5e1;
  border-radius:18px;
  padding:12px;
  background:#fff;
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.image-preview img{
  width:100%;
  height:100%;
  max-height:320px;
  object-fit:cover;
  border-radius:14px;
}
.placeholder-box{
  color:var(--muted);
  font-size:.92rem;
}
.notice.hidden{display:none}
@media (max-width: 980px){
  .foods-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .toolbar,.two-col{grid-template-columns:1fr}
}
@media (max-width: 640px){
  .hero-inner,.topbar,.container{padding-left:12px;padding-right:12px}
  .brand-row,.topbar,.panel-head,.admin-item-head{flex-direction:column;align-items:stretch}
  .foods-grid{grid-template-columns:1fr}
  .item-actions{justify-content:flex-start}
  .check-row{padding-top:0}
}


.site-footer{padding:18px 16px 24px;text-align:center;color:#6b7280;font-size:14px}
