/* RESTAURANT THEME (Logo + Cover + Food Images) */
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont;background:#f6f7fb;color:#111}
a{color:inherit;text-decoration:none}
:root{ --theme:#C62828; }

/* HERO / COVER */
.hero{
  background: linear-gradient(135deg,#0b0b0b,#1d1d1d);
  color:#fff;
  padding:16px 14px;
  position:sticky;top:0;z-index:10;
}
.hero-cover{
  background-size: cover;
  background-position: center;
  position:sticky;top:0;z-index:10;
}
.hero-cover .hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(0,0,0,.72), rgba(0,0,0,.35));
  pointer-events:none; /* ✅ IMPORTANT: do not block clicks */
}
.hero-inner{
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  max-width:980px;
  margin:0 auto
}

/* BRAND + LOGO */
.brandbox{display:flex;align-items:center;gap:12px}
.brand{font-size:16px;font-weight:900;letter-spacing:.6px}
.table{font-size:13px;opacity:.95}
.logo{
  width:52px;height:52px;border-radius:14px;
  border:2px solid rgba(255,255,255,.55);
  object-fit:cover;background:#fff;
}

/* LAYOUT */
.container{max-width:980px;margin:0 auto;padding:12px 12px 90px}
.search{
  width:100%;padding:12px;border-radius:12px;
  border:1px solid #e7e7ee;background:#fff;outline:none;font-size:15px;
  box-shadow:0 2px 10px rgba(0,0,0,.04)
}
.section{margin-top:14px}
.section-title{font-weight:900;color:#2a2a2a;margin:14px 4px 8px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:10px}

/* CARD */
.card{
  background:#fff;border-radius:14px;padding:12px;
  box-shadow:0 8px 24px rgba(16,24,40,.06);
  border:1px solid #f1f1f6
}
.card-row{display:flex;flex-direction:column;height:100%}
.item-name{font-weight:900;font-size:15px;line-height:1.2}
.item-desc{font-size:12.5px;color:#6b7280;margin:6px 0 0;min-height:32px}
.item-price{font-weight:900;margin-top:auto}

/* FOOD IMAGE */
.food-img{
  width:100%;
  height:110px;
  border-radius:14px;
  overflow:hidden;
  background:#f3f4f6;
  margin-bottom:10px;
  border:1px solid #f1f1f6;
}
/* ✅ IMPORTANT: image must not block button click */
.food-img, .food-img *{ pointer-events:none; }

.food-img img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
}
.img-ph{
  height:100%;
  display:flex;align-items:center;justify-content:center;
  font-size:12px;color:#6b7280;font-weight:800;
}

/* BUTTONS */
.btn{border:none;border-radius:12px;padding:10px 12px;cursor:pointer;font-weight:800}
.btn:active{transform:scale(.98)}
.btn.primary{background:var(--theme);color:#fff}
.btn.add{background:var(--theme);color:#fff;margin-top:10px;width:100%}
.btn.ghost{background:#f3f4f6}
.btn.danger{background:#ef4444;color:#fff}
.btn.small{padding:8px 10px;border-radius:10px;font-size:13px}
.full{width:100%}

/* CART */
.cart-bar{
  position:fixed;left:0;bottom:0;width:100%;
  background:var(--theme);color:#fff;padding:14px;text-align:center;
  font-weight:900;z-index:20
}
.drawer{
  position:fixed;left:0;bottom:0;width:100%;height:86%;
  background:#fff;border-radius:18px 18px 0 0;
  box-shadow:0 -16px 40px rgba(0,0,0,.18);
  display:flex;flex-direction:column;z-index:30
}
.hidden{display:none}
.drawer-head{padding:12px;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between;gap:10px}
.drawer-title{font-weight:900}
.drawer-body{flex:1;overflow:auto;padding:12px}
.drawer-foot{padding:12px;border-top:1px solid #eee}
.cart-item{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px;border:1px solid #f1f1f6;border-radius:14px;margin-bottom:10px
}
.ci-name{font-weight:900}
.ci-sub{font-size:12.5px;color:#6b7280;margin-top:2px}
.qty{display:flex;align-items:center;gap:8px}
.qtybtn{background:#f3f4f6}
.total-row{display:flex;justify-content:space-between;font-size:18px;margin-bottom:10px}
.note,.input,.select{width:100%;padding:10px;border-radius:12px;border:1px solid #e7e7ee;background:#fff;outline:none}
.row{display:grid;grid-template-columns:1fr 1fr;gap:8px}

/* ADMIN TABLE */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tablebox{overflow:auto}
.tbl{width:100%;border-collapse:collapse;background:#fff;border:1px solid #f1f1f6;border-radius:14px;overflow:hidden}
.tbl th,.tbl td{padding:10px;border-bottom:1px solid #f1f1f6;text-align:left;font-size:14px}
.tbl th{background:#fafafa;font-weight:900}
.badge{display:inline-block;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900;background:#f3f4f6}
.badge.pending{background:#fef3c7}
.badge.preparing{background:#dbeafe}
.badge.done{background:#dcfce7}
.form{background:#fff;border:1px solid #f1f1f6;border-radius:14px;padding:12px;box-shadow:0 8px 24px rgba(16,24,40,.06)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.help{font-size:12.5px;color:#6b7280;margin-top:6px}
.hr{height:1px;background:#eee;margin:12px 0}

@media(max-width:420px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:360px){.grid{grid-template-columns:1fr}.row{grid-template-columns:1fr}}
@media(max-width:700px){.grid2{grid-template-columns:1fr}}
