/* Служебные страницы платформы: список магазинов, сводка, заказы. */

:root {
  --cream: #fcf9f9;
  --paper: #ffffff;
  --wine: #a21313;
  --orange: #eb5120;
  --ink: #2b2320;
  --muted: #8b7f79;
  --line: #efe4e0;
  --green: #3f8f5f;
  --shadow: 0 8px 24px rgba(60, 30, 25, 0.08);
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

.page { max-width: 1080px; margin: 0 auto; padding: 18px 20px 48px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 22px; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px;
  background: linear-gradient(135deg, var(--wine), var(--orange)); color: #fff;
  font-family: var(--font-head);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-head); font-size: 18px; color: var(--wine); }
.brand__sub { font-size: 12.5px; color: var(--muted); }
.topbar__right { display: flex; gap: 10px; }

.badge {
  font-size: 12.5px; padding: 6px 12px; border-radius: 999px; text-decoration: none;
  background: #f7e9e9; color: var(--wine); border: 1px solid rgba(162, 19, 19, 0.14);
}
.badge:hover { background: #f2dede; }

.h1 { font-family: var(--font-head); font-size: 26px; color: var(--wine); margin: 0 0 8px; }
.h2 { font-family: var(--font-head); font-size: 19px; color: var(--wine); margin: 28px 0 8px; }
.lead { color: var(--muted); margin: 0 0 18px; }
.muted { color: var(--muted); }

code {
  background: #f6f2f0; padding: 1px 6px; border-radius: 6px;
  font-size: 13px; font-family: ui-monospace, Consolas, monospace;
}

.code {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px;
  overflow-x: auto; box-shadow: var(--shadow);
}

.cards-list { display: flex; flex-direction: column; gap: 12px; }

.shop-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.shop-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shop-card__head h3 { margin: 0; font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.shop-card__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }

.btn {
  display: inline-block; background: var(--orange); color: #fff; text-decoration: none;
  padding: 9px 16px; border-radius: 11px; font-size: 13.5px; border: none; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: #ff7a2f; }
.btn--ghost { background: #fff; color: var(--wine); border: 1px solid var(--line); }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
th { background: #fdf7f6; color: var(--muted); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; }
tr:last-child td { border-bottom: none; }
.num { font-variant-numeric: tabular-nums; }
.num--hot { color: var(--green); font-weight: 700; }

.order-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.order-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.order-card__id { font-family: var(--font-head); font-size: 17px; color: var(--wine); }
.order-card__time { font-size: 12.5px; color: var(--muted); }
.order-card__grid { display: grid; grid-template-columns: 140px 1fr; gap: 18px; }
.order-card__photo { width: 140px; height: 178px; object-fit: cover; border-radius: 12px; background: #f7e9e9; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 0; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; }
.order-card__total { margin-top: 10px; font-weight: 700; font-size: 16px; }

.empty { text-align: center; color: var(--muted); padding: 50px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }

@media (max-width: 640px) {
  .order-card__grid { grid-template-columns: 1fr; }
  .order-card__photo { width: 100%; height: 220px; }
}
