/*
 * admin.css —— 后台管理（/admin）
 * 设计基准：1366×768 桌面，最低 1024×768；正文 18px 起，辅助文字 ≥16px。
 */

:root {
  --a-bg: #F5F5F4;
  --a-nav: #1C1917;
  --a-nav-hover: #292524;
  --a-accent: #C2410C;
  --a-accent-down: #9A3412;
  --a-card: #FFFFFF;
  --a-text: #1C1917;
  --a-sub: #57534E;
  --a-border: #D6D3D1;
  --a-new-bg: #FFF7ED;
  --a-new-bar: #EA580C;
  --a-pending-text: #B45309;
  --a-pending-bg: #FEF3C7;
  --a-paid-text: #15803D;
  --a-paid-bg: #DCFCE7;
  --a-void-text: #44403C;
  --a-void-bg: #E7E5E4;
  --a-danger: #B91C1C;
  --a-info-text: #1D4ED8;
  --a-info-bg: #DBEAFE;
}

body {
  background: var(--a-bg);
  color: var(--a-text);
  font-size: 18px;
  line-height: 1.5;
}

/* ================= 登录页 ================= */
.a-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.a-login__card {
  width: 480px;
  max-width: 100%;
  padding: 32px;
  background: var(--a-card);
  border: 1px solid var(--a-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.10);
}

.a-login__shop {
  font-size: 28px;
  font-weight: 700;
}

.a-login__title {
  margin: 4px 0 20px;
  font-size: 22px;
  font-weight: 700;
  color: var(--a-sub);
}

.a-login__err {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 6px solid var(--a-danger);
  background: #FEE2E2;
  color: #7F1D1D;
  font-size: 16px;
  font-weight: 600;
}

.a-login__tip {
  margin-top: 16px;
  font-size: 16px;
  color: var(--a-sub);
}

.a-login__btn {
  margin-top: 20px;
  width: 100%;
  height: 52px;
  font-size: 18px;
  font-weight: 700;
}

/* 表单控件 */
.a-field {
  display: block;
  margin-bottom: 16px;
}

.a-field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 600;
}

.a-field__wrap {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.a-field__eye {
  flex: 0 0 auto;
  min-width: 72px;
  height: 48px;
  border: 1px solid var(--a-border);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--a-sub);
  font-size: 16px;
  font-weight: 600;
}

.a-input,
.a-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--a-border);
  border-radius: 10px;
  background: #FFFFFF;
  font-size: 18px;
  line-height: 1.4;
}

.a-input:focus,
.a-select:focus {
  border-color: var(--a-accent);
  outline: none;
  box-shadow: 0 0 0 3px #FB923C;
}

.a-input[readonly] {
  background: #F5F5F4;
  color: var(--a-sub);
}

.a-textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border: 1px solid var(--a-border);
  border-radius: 10px;
  font-size: 18px;
  resize: vertical;
}

/* 行内标签 */
.a-label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--a-sub);
}

.a-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.a-row > .a-field,
.a-row > label {
  margin-bottom: 0;
}

/* ================= 布局 ================= */
.a-app {
  display: flex;
  min-height: 100vh;
}

.a-nav {
  width: 220px;
  flex: 0 0 220px;
  background: var(--a-nav);
  color: #E7E5E4;
  padding: 20px 0 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.a-nav__brand {
  padding: 0 16px 16px;
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}

.a-nav__group {
  padding: 12px 16px 6px;
  font-size: 16px;
  color: #A8A29E;
}

.a-nav__group--more {
  border-top: 1px solid #44403C;
  margin-top: 8px;
}

.a-nav__list {
  flex: 1 1 auto;
  overflow-y: auto;
}

.a-nav__item {
  display: block;
  padding: 12px 16px 12px 16px;
  color: #E7E5E4;
  font-size: 18px;
  text-decoration: none;
  border-left: 4px solid transparent;
}

.a-nav__item:hover {
  background: var(--a-nav-hover);
}

.a-nav__item--active {
  background: var(--a-nav-hover);
  color: #FFFFFF;
  border-left-color: var(--a-accent);
  font-weight: 700;
}

.a-nav__item--accent {
  color: #FDBA74;
}

.a-nav__item--accent.a-nav__item--active {
  color: #FFFFFF;
}

.a-nav__foot {
  padding: 12px 16px 0;
  border-top: 1px solid #44403C;
}

.a-nav__user {
  font-size: 16px;
  color: #A8A29E;
}

.a-nav__logout {
  margin-top: 8px;
  width: 100%;
  height: 44px;
  background: transparent;
  border-color: #57534E;
  color: #E7E5E4;
}

.a-nav__logout:hover {
  background: #292524;
}

.a-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.a-top {
  height: 64px;
  flex: 0 0 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--a-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.a-top__title {
  font-size: 28px;
  font-weight: 700;
}

.a-top__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.a-top__conn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--a-sub);
}

.a-top__user {
  font-size: 16px;
  color: var(--a-sub);
}

.a-top__sound {
  height: 48px;
  padding: 0 16px;
  font-size: 18px;
  font-weight: 600;
}

.a-top__sound--off {
  background: #E7E5E4;
  border-color: #A8A29E;
  color: #44403C;
}

.a-top__sound--need {
  background: #FFEDD5;
  border-color: var(--a-accent);
  color: var(--a-accent-down);
}

.a-top__sound-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
}

.a-main {
  flex: 1 1 auto;
  padding: 24px;
  min-width: 0;
}

.a-section + .a-section {
  margin-top: 20px;
}

.a-section__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.a-block {
  padding: 20px;
  background: var(--a-card);
  border: 1px solid var(--a-border);
  border-radius: 10px;
}

.a-hint {
  font-size: 16px;
  color: var(--a-sub);
}

.a-muted {
  color: var(--a-sub);
}

.a-strong {
  font-weight: 700;
}

.a-money {
  font-size: 24px;
  font-weight: 700;
}

.a-money--big {
  font-size: 30px;
  font-weight: 700;
}

.a-right {
  text-align: right;
}

.a-nowrap {
  white-space: nowrap;
}

.a-mt8 { margin-top: 8px; }
.a-mt12 { margin-top: 12px; }
.a-mt16 { margin-top: 16px; }
.a-mt20 { margin-top: 20px; }

/* 圆点状态 */
.a-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.a-dot--green { background: #16A34A; }
.a-dot--orange { background: #EA580C; }
.a-dot--gray { background: #A8A29E; }

/* 横幅 */
.a-banner {
  margin: 16px 24px 0;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.a-banner--red {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #7F1D1D;
}

.a-banner--green {
  background: var(--a-paid-bg);
  border: 1px solid #86EFAC;
  color: #166534;
}

.a-banner--info {
  background: var(--a-info-bg);
  border: 1px solid #93C5FD;
  color: #1E3A8A;
}

/* ================= 状态标签 ================= */
.a-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.a-tag--pending { background: var(--a-pending-bg); color: var(--a-pending-text); }
.a-tag--paid { background: var(--a-paid-bg); color: #166534; }
.a-tag--void { background: var(--a-void-bg); color: var(--a-void-text); }
.a-tag--new { background: var(--a-accent); color: #FFFFFF; }
/* 规范 02 §5.2：acked=0 + 已收款/已作废 的卡头右侧未确认小标签（绿色/灰色，配文字不靠颜色） */
.a-tag--paidunacked { background: var(--a-paid-bg); color: #166534; }
.a-tag--voidunacked { background: var(--a-void-bg); color: var(--a-void-text); }

/* ================= 订单卡 ================= */
.a-orders {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.a-card {
  min-width: 760px;
  padding: 20px;
  background: var(--a-card);
  border: 1px solid var(--a-border);
  border-left: 6px solid transparent;
  border-radius: 10px;
}

.a-card--paid {
  border-left: 4px solid #16A34A;
}

.a-card--void {
  opacity: 0.7;
}

/* --new 必须放在 --paid/--void 之后：acked=0 的已收款/已作废单同时带两类时，
   橙条高亮（6px #EA580C）要压过 paid 的绿边，保证老板不会漏看未确认的单 */
.a-card--new {
  background: var(--a-new-bg);
  border-left: 6px solid var(--a-new-bar);
  animation: a-flash 3s ease-in-out 1;
}

.a-card--new-flash {
  animation: a-flash 3s ease-in-out 1;
}

@keyframes a-flash {
  0%   { border-left-color: #FDBA74; }
  25%  { border-left-color: var(--a-new-bar); }
  50%  { border-left-color: #FDBA74; }
  75%  { border-left-color: var(--a-new-bar); }
  100% { border-left-color: var(--a-new-bar); }
}

.a-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--a-border);
  flex-wrap: wrap;
}

.a-card__place {
  font-size: 24px;
  font-weight: 700;
  min-width: 160px;
}

.a-card__meta {
  flex: 1 1 auto;
  min-width: 220px;
  font-size: 16px;
  color: var(--a-sub);
}

.a-card__metas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.a-card__no {
  font-size: 18px;
  font-weight: 700;
  color: var(--a-text);
}

.a-card__status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.a-card__amount {
  font-size: 24px;
  font-weight: 700;
}

.a-card__items {
  padding: 12px 0;
}

.a-item {
  padding: 6px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.a-item__qty {
  font-size: 20px;
  font-weight: 700;
  min-width: 44px;
}

.a-item__name {
  font-size: 18px;
  font-weight: 600;
  flex: 1 1 auto;
}

.a-item__price {
  font-size: 18px;
  font-weight: 600;
}

.a-item--canceled {
  color: var(--a-sub);
  text-decoration: line-through;
}

.a-item__canceled-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--a-void-bg);
  color: var(--a-void-text);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.a-item__remark {
  margin: 2px 0 6px;
  padding: 6px 10px;
  border-left: 4px solid var(--a-pending-text);
  background: var(--a-pending-bg);
  color: #7C2D12;
  font-size: 18px;
  font-weight: 700;
}

.a-card__allremark {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--a-pending-bg);
  color: #92400E;
  font-size: 18px;
  font-weight: 700;
}

.a-card__ops {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding-top: 12px;
  border-top: 1px solid var(--a-border);
  flex-wrap: wrap;
}

.a-card__ops .xhj-btn {
  height: 48px;
  padding: 0 20px;
  font-size: 18px;
}

.a-card__readonly {
  font-size: 18px;
  font-weight: 600;
  color: var(--a-sub);
}

.a-card__newbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.a-card__err {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #FEE2E2;
  color: #7F1D1D;
  font-size: 16px;
  font-weight: 600;
}

/* ================= 看板 ================= */
.a-board__head {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.a-stat {
  padding: 8px 16px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--a-border);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.a-stat__label {
  font-size: 18px;
  font-weight: 600;
  color: var(--a-sub);
}

.a-stat__value {
  font-size: 30px;
  font-weight: 700;
}

.a-stat--new .a-stat__value { color: var(--a-accent-down); }
.a-stat--pending .a-stat__value { color: var(--a-pending-text); }

.a-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.a-filter__btn {
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--a-border);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--a-sub);
  font-size: 18px;
  font-weight: 600;
}

.a-filter__btn--on {
  background: var(--a-accent);
  border-color: var(--a-accent);
  color: #FFFFFF;
}

.a-fold__btn {
  min-height: 48px;
  padding: 8px 18px;
  border: 1px solid var(--a-border);
  border-radius: 10px;
  background: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
  color: var(--a-sub);
}

/* 空状态 */
.a-empty {
  padding: 40px 24px;
  text-align: center;
  background: var(--a-card);
  border: 1px solid var(--a-border);
  border-radius: 10px;
  color: var(--a-sub);
  font-size: 18px;
}

.a-empty__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--a-text);
}

/* ================= 桌台 ================= */
.a-tables {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
}

.a-tablecard {
  min-height: 148px;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid var(--a-border);
  border-top: 6px solid var(--a-border);
  border-radius: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.a-tablecard--active {
  border-top-color: var(--a-accent);
}

.a-tablecard--idle {
  background: #FAFAF9;
}

.a-tablecard__name {
  font-size: 24px;
  font-weight: 700;
}

.a-tablecard__seats {
  font-size: 16px;
  color: var(--a-sub);
}

.a-tablecard__total {
  margin-top: auto;
  font-size: 30px;
  font-weight: 700;
}

.a-tablecard__hint {
  font-size: 16px;
  color: var(--a-sub);
}

/* ================= 表格 ================= */
.a-table {
  width: 100%;
  font-size: 18px;
}

.a-table th,
.a-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--a-border);
  text-align: left;
  vertical-align: middle;
}

.a-table th {
  font-size: 16px;
  font-weight: 700;
  color: var(--a-sub);
  background: #FAFAF9;
}

.a-table tbody tr:hover {
  background: #FAFAF9;
}

.a-table__row--off td {
  color: var(--a-sub);
}

.a-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--a-border);
  border-radius: 10px;
  background: #FFFFFF;
}

.a-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
}

.a-switch__track {
  width: 60px;
  height: 34px;
  border-radius: 999px;
  background: #D6D3D1;
  position: relative;
  flex: 0 0 auto;
}

.a-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: left 120ms ease;
}

.a-switch--on .a-switch__track {
  background: #16A34A;
}

.a-switch--on .a-switch__knob {
  left: 29px;
}

.a-link-btn {
  border: none;
  background: transparent;
  color: var(--a-accent);
  font-size: 18px;
  font-weight: 600;
  padding: 4px 8px;
  min-height: 44px;
}

.a-link-btn:hover {
  text-decoration: underline;
}

.a-link-btn--danger {
  color: var(--a-danger);
}

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

/* ================= 柜台开单 ================= */
.a-counter {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.a-counter__left {
  flex: 1 1 65%;
  min-width: 0;
}

.a-counter__right {
  flex: 0 0 360px;
  min-width: 360px;
  position: sticky;
  top: 88px;
}

.a-dishgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.a-dishbtn {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--a-border);
  border-radius: 10px;
  background: #FFFFFF;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.a-dishbtn:hover {
  border-color: var(--a-accent);
}

.a-dishbtn--on {
  border-color: var(--a-accent);
  background: var(--a-new-bg);
}

.a-dishbtn__name {
  font-size: 18px;
  font-weight: 700;
}

.a-dishbtn__price {
  font-size: 18px;
  font-weight: 600;
  color: var(--a-accent-down);
}

.a-dishbtn--off {
  opacity: 0.55;
}

.a-cart {
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid var(--a-border);
  border-radius: 10px;
}

.a-cart__list {
  max-height: 46vh;
  overflow-y: auto;
}

.a-cart__item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--a-border);
}

.a-cart__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.a-cart__name {
  flex: 1 1 auto;
  font-size: 18px;
  font-weight: 600;
}

.a-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.a-stepper__btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--a-border);
  border-radius: 8px;
  background: #FFFFFF;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.a-stepper__btn--plus {
  background: var(--a-accent);
  border-color: var(--a-accent);
  color: #FFFFFF;
}

.a-stepper__btn--plus:hover {
  background: var(--a-accent-down);
}

.a-stepper__qty {
  min-width: 36px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.a-cart__remark {
  font-size: 16px;
  font-weight: 700;
  color: var(--a-pending-text);
}

.a-cart__tagbtn {
  margin-top: 6px;
  padding: 4px 8px;
  border: 1px dashed var(--a-border);
  border-radius: 8px;
  background: #FAFAF9;
  color: var(--a-accent);
  font-size: 16px;
  font-weight: 600;
}

.a-cart__total {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--a-border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.a-cart__total-label {
  font-size: 18px;
  color: var(--a-sub);
}

.a-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.a-checkbox input {
  width: 22px;
  height: 22px;
}

.a-source-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--a-new-bg);
  color: var(--a-accent-down);
  font-size: 18px;
  font-weight: 700;
}

/* ================= 汇总 ================= */
.a-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 16px;
}

.a-statcard {
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid var(--a-border);
  border-radius: 10px;
}

.a-statcard__label {
  font-size: 18px;
  font-weight: 600;
  color: var(--a-sub);
}

.a-statcard__value {
  margin-top: 4px;
  font-size: 30px;
  font-weight: 700;
}

.a-statcard__note {
  margin-top: 4px;
  font-size: 16px;
  color: var(--a-sub);
}

/* ================= 对话框内容 ================= */
.a-dlg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.a-dlg-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--a-border);
  border-radius: 10px;
  background: #FFFFFF;
  font-size: 18px;
  text-align: left;
  min-height: 56px;
}

.a-dlg-option:hover {
  border-color: var(--a-accent);
}

.a-dlg-option--on {
  border-color: var(--a-accent);
  background: var(--a-new-bg);
  box-shadow: 0 0 0 3px #FB923C;
}

.a-dlg-option input {
  width: 22px;
  height: 22px;
}

.a-dlg-option__main {
  flex: 1 1 auto;
  min-width: 0;
}

.a-dlg-option__name {
  font-size: 18px;
  font-weight: 700;
}

.a-dlg-option__meta {
  font-size: 16px;
  color: var(--a-sub);
}

.a-dlg-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--a-info-bg);
  color: #1E3A8A;
  font-size: 16px;
}

.a-dlg-warn {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #FEE2E2;
  color: #7F1D1D;
  font-size: 16px;
  font-weight: 600;
}

.a-qr-preview {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.a-qr-preview img {
  width: 200px;
  height: 200px;
  border: 1px solid var(--a-border);
  border-radius: 10px;
  background: #FFFFFF;
}

.a-qr-mini {
  width: 72px;
  height: 72px;
  border: 1px solid var(--a-border);
  border-radius: 8px;
  background: #FFFFFF;
}

.a-copy-input {
  flex: 1 1 auto;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px dashed var(--a-border);
  border-radius: 10px;
  background: #FAFAF9;
  font-size: 16px;
  color: var(--a-sub);
  word-break: break-all;
}

.a-skeleton-card {
  height: 148px;
}

.a-skeleton-line {
  height: 24px;
  margin-bottom: 12px;
}

/* ================= 响应式 ================= */
@media (max-width: 1200px) {
  .a-tables {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }

  .a-stats {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
}

@media (max-width: 1024px) {
  .a-nav {
    width: 184px;
    flex-basis: 184px;
  }

  .a-counter {
    flex-direction: column;
  }

  .a-counter__right {
    position: static;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a-card--new,
  .a-card--new-flash {
    animation: none;
  }

  .a-switch__knob {
    transition: none;
  }
}
