:root{
  --bg:#0f1216;
  --bg-soft:#151a20;
  --card:#1b2129;
  --text:#e9eef5;
  --muted:#9aa4b2;
  --accent:#ff7a18;
  --accent2:#ff3d3d;
  --ok:#2bd576;
  --warn:#ffc107;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:var(--bg);
  color:var(--text);
}

.container{width:min(1100px, 92%); margin:0 auto; padding:16px;}

.header{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.logo{
  font-weight:800; letter-spacing:.5px; font-size:22px;
}
.badge{
  background:var(--bg-soft); color:var(--muted);
  padding:6px 10px; border-radius:999px; font-size:12px;
}

.tabs{
  display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 16px;
}
.tab{
  background:var(--bg-soft); color:var(--text);
  padding:8px 12px; border-radius:12px; cursor:pointer;
  border:1px solid transparent; font-size:14px;
}
.tab.active{border-color:var(--accent); color:white;}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:12px;
}
.card{
  background:var(--card);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
  display:flex; flex-direction:column;
}
.card img{width:100%; height:140px; object-fit:cover;}
.card-body{padding:10px 12px; display:flex; flex-direction:column; gap:6px;}
.card-title{font-weight:700;}
.price{font-weight:800; color:white;}
.muted{color:var(--muted); font-size:13px;}

.btn{
  border:none; cursor:pointer;
  padding:10px 12px; border-radius:12px;
  font-weight:700;
}
.btn-accent{background:var(--accent); color:black;}
.btn-ghost{background:transparent; color:var(--text); border:1px solid #2a323c;}
.btn-danger{background:var(--accent2); color:white;}
.btn-ok{background:var(--ok); color:black;}
.btn-warn{background:var(--warn); color:black;}

.row{display:flex; gap:10px; align-items:center;}
.space{flex:1}

.cart-fab{
  position:fixed; right:18px; bottom:18px;
  background:var(--accent); color:black;
  padding:12px 14px; border-radius:999px;
  font-weight:800;
  box-shadow:0 8px 20px rgba(0,0,0,.4);
  cursor:pointer;
  z-index:999;
}


.input, select, textarea{
  width:100%; background:var(--bg-soft); color:var(--text);
  border:1px solid #2a323c;
  padding:10px 12px; border-radius:12px; outline:none;
}
label{font-size:13px; color:var(--muted);}

.table{
  width:100%; border-collapse:collapse; font-size:14px;
}
.table th,.table td{padding:8px; border-bottom:1px solid #2a323c;}
.table th{text-align:left; color:var(--muted);}

.status-pill{
  font-size:12px; padding:4px 8px; border-radius:999px; display:inline-block;
}
.NEW{background:#2a323c}
.ACCEPTED{background:#33445c}
.COOKING{background:#5b3a12}
.READY{background:#1d5b2c}
.DONE{background:#1e3b25}
.CANCELED{background:#5a1a1a}

.notice{
  background:var(--bg-soft); border:1px solid #2a323c;
  padding:10px 12px; border-radius:12px; margin:10px 0;
}
/* Анимация корзины при добавлении товара */
@keyframes cart-bounce {
  0%   { transform: translateY(0) scale(1); box-shadow:0 8px 20px rgba(0,0,0,.4); }
  30%  { transform: translateY(-8px) scale(1.08); box-shadow:0 14px 28px rgba(0,0,0,.6); }
  60%  { transform: translateY(2px) scale(0.97); box-shadow:0 6px 16px rgba(0,0,0,.35); }
  100% { transform: translateY(0) scale(1); box-shadow:0 8px 20px rgba(0,0,0,.4); }
}

/* Анимация корзины при добавлении товара */
@keyframes cart-bounce {
  0%   { transform: translateY(0) scale(1); box-shadow:0 8px 20px rgba(0,0,0,.4); }
  30%  { transform: translateY(-8px) scale(1.08); box-shadow:0 14px 28px rgba(0,0,0,.6); }
  60%  { transform: translateY(2px) scale(0.97); box-shadow:0 6px 16px rgba(0,0,0,.35); }
  100% { transform: translateY(0) scale(1); box-shadow:0 8px 20px rgba(0,0,0,.4); }
}

.cart-fab-anim {
  animation: cart-bounce 0.45s ease-out;
  box-shadow:0 0 12px 2px rgba(255,122,24,0.9);
}
