
: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}


/* Customer ordering */
.food-order-action{margin-top:14px}
.add-order-btn{width:100%;border-color:rgba(15,118,110,.25);color:var(--primary);font-weight:700}
.quantity-control{display:inline-flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:999px;background:#fff;padding:4px}
.quantity-control button{width:36px;height:36px;border:0;border-radius:50%;background:var(--bg-soft);color:var(--text);font-size:1.25rem;cursor:pointer;display:grid;place-items:center}
.quantity-control span{min-width:28px;text-align:center;font-weight:700}
.food-quantity{width:100%;justify-content:space-between}
.cart-fab{position:fixed;left:20px;bottom:max(20px,env(safe-area-inset-bottom));z-index:45;border:0;border-radius:999px;background:var(--primary);color:#fff;padding:14px 18px;box-shadow:0 16px 38px rgba(15,118,110,.3);display:flex;align-items:center;gap:12px;font:inherit;font-weight:700;cursor:pointer}
.cart-fab strong{background:#fff;color:var(--primary);min-width:28px;height:28px;border-radius:50%;display:grid;place-items:center}
.modal-open{overflow:hidden}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.48);backdrop-filter:blur(3px);z-index:50}
.cart-drawer{position:fixed;z-index:51;top:0;bottom:0;left:0;width:min(440px,100%);background:#fff;box-shadow:20px 0 60px rgba(15,23,42,.2);padding:20px;display:flex;flex-direction:column;padding-bottom:max(20px,env(safe-area-inset-bottom))}
.cart-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid var(--line);padding-bottom:14px}
.cart-head h2{margin:0;font-size:1.2rem}
.cart-head p{margin:6px 0 0;color:var(--muted);font-size:.88rem;line-height:1.6}
.icon-btn{border:0;background:var(--bg-soft);width:40px;height:40px;border-radius:50%;font:inherit;font-size:1.5rem;cursor:pointer}
.cart-items{flex:1;overflow:auto;padding:12px 0}
.cart-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.cart-item-info{display:flex;flex-direction:column;gap:5px;min-width:0}
.cart-item-info strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cart-item-info small{color:var(--muted)}
.empty-cart{text-align:center;color:var(--muted);padding:48px 12px}
.cart-summary{display:flex;justify-content:space-between;align-items:center;padding:16px 0;font-size:1.05rem}
.checkout-btn{width:100%;border-radius:14px}
.modal-center{display:grid;place-items:center;padding:16px;overflow:auto}
.checkout-modal{width:min(460px,100%);background:#fff;border-radius:24px;padding:20px;box-shadow:0 24px 70px rgba(15,23,42,.24)}
.checkout-modal .form-grid{margin-top:18px}
.checkout-modal label span{display:block;margin-bottom:7px;font-size:.9rem;font-weight:700}
.success-modal{text-align:center}
.success-mark{width:68px;height:68px;margin:0 auto 14px;border-radius:50%;background:rgba(15,118,110,.12);color:var(--primary);display:grid;place-items:center;font-size:2rem;font-weight:700}
.success-modal h2{margin:0}
.success-modal p{color:var(--muted);line-height:1.9;margin:12px 0 20px}
@media(max-width:640px){
  .cart-fab{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));justify-content:center}
  .site-footer{padding-bottom:86px}
  .cart-drawer{width:100%}
  .food-order-action{margin-top:10px}
}

.order-admin-card{align-items:center}
.order-admin-card .item-main{min-width:0}
.order-admin-card .item-meta{line-height:1.8;white-space:normal}
.order-status-select{min-width:150px}


/* Fixed order completion controls */
.cart-drawer{
  padding-bottom:0;
}
.cart-items{
  min-height:0;
  padding-bottom:16px;
}
.cart-summary{
  flex:0 0 auto;
  position:sticky;
  bottom:72px;
  z-index:3;
  margin:0 -20px;
  padding:14px 20px;
  background:rgba(255,255,255,.97);
  border-top:1px solid var(--line);
  backdrop-filter:blur(10px);
}
.cart-drawer>.checkout-btn{
  flex:0 0 auto;
  position:sticky;
  bottom:0;
  z-index:4;
  margin:0 -20px;
  width:calc(100% + 40px);
  border-radius:0;
  padding:18px 20px max(18px,env(safe-area-inset-bottom));
  box-shadow:0 -10px 28px rgba(15,23,42,.10);
}
.cart-fab{
  animation:cartFabIn .2s ease-out;
}
@keyframes cartFabIn{
  from{transform:translateY(12px);opacity:0}
  to{transform:translateY(0);opacity:1}
}
@media(max-width:640px){
  .cart-summary{
    bottom:72px;
  }
  .cart-drawer>.checkout-btn{
    padding-bottom:max(18px,env(safe-area-inset-bottom));
  }
}
