/* Дополнения к app.css для меню и корзины пиццерии */

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.mi-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mi-price {
  font-size: 15px;
  color: var(--accent);
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.qty-btn,
.qty-add {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qty-add,
.qty-plus {
  background: var(--accent);
  color: var(--accent-ink);
}

.qty-btn {
  background: var(--surface-2);
  color: var(--text);
}

.qty-n {
  min-width: 18px;
  text-align: center;
  font-weight: 800;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cart-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cart-sum {
  min-width: 72px;
  text-align: right;
}

#cart-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
}

#cart-sheet .sheet-backdrop {
  position: absolute;
  inset: 0;
}

#cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 40%);
  z-index: 20;
}

#cart-bar:empty {
  display: none;
}

.cart-bar {
  justify-content: space-between;
}

/* ---------- оформление, готово, мои заказы ---------- */

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fld {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}

textarea.fld {
  height: auto;
  min-height: 70px;
  padding: 12px 14px;
  resize: vertical;
}

.success {
  align-items: center;
  padding-top: 40px;
  text-align: center;
}

.success-icon {
  font-size: 56px;
}

.order-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-items {
  font-size: 14px;
  color: var(--hint);
}

/* ---------- панель владельца ---------- */

.btn-sm {
  height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-sm.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-sm.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
}

.fld-sm {
  width: 86px;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.kpi span {
  font-size: 13px;
  color: var(--hint);
}

.kpi b {
  font-size: 18px;
}

.notice:empty {
  display: none;
}

/* ---------- меню, стоп-лист, QR СБП ---------- */

.price-edit {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}

.qr-preview {
  display: block;
  width: 220px;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
}
