/* ─────────────────────────────────────────────
   Design tokens — dark + muted purple (premium)
───────────────────────────────────────────── */
:root {
  --bg:          #0a0a0c;
  --surface:     #12121a;
  --surface2:    #181822;
  --surface3:    #1f1f2a;
  --sidebar:     #0e0e14;
  --text:        #f4f4f5;
  --muted:       #a1a1aa;
  --subtle:      #d4d4d8;
  --line:        rgba(255, 255, 255, 0.06);
  --line1:       rgba(255, 255, 255, 0.06);
  --line2:       rgba(255, 255, 255, 0.1);
  /* Muted purple — primary actions & focus */
  --purple:      #5b4a6e;
  --purple-deep: #3d2f4f;
  --brand:       #6b5a82;
  --brand-hover: #7d6b96;
  --brand-dim:   rgba(107, 90, 130, 0.22);
  --accent:      #c4b5fd;
  --accent-dim:  rgba(196, 181, 253, 0.12);
  --danger:      #f87171;
  --danger-dim:  rgba(248, 113, 113, 0.12);
  --ok:          #4ade80;
  --ok-dim:      rgba(74, 222, 128, 0.12);
  --warn:        #fbbf24;
  --warn-dim:    rgba(251, 191, 36, 0.12);
  --coming:      #a78bfa;
  --coming-dim:  rgba(167, 139, 250, 0.12);
  --radius:      12px;
  --radius-sm:   10px;
  --radius-xs:   8px;
  /* Manrope — основной UI; Outfit — заголовки и акценты */
  --font:        "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Outfit", var(--font);
  --sidebar-w:   260px;
  --topbar-h:    60px;
  --ease-out:    cubic-bezier(0.33, 1, 0.68, 1);
  --t-fast:      0.18s;
  --t-med:       0.28s;
}

/* Light theme — белый фон, приглушённый фиолетовый (в духе тёмной темы, не неон) */
html[data-theme="light"] {
  color-scheme: light;
  --bg:          #fafafa;
  --surface:     #ffffff;
  --surface2:    #f3f1f6;
  --surface3:    #ebe6f0;
  --sidebar:     #f5f3f9;
  --text:        #1a1620;
  --muted:       #65606d;
  --subtle:      #4a4452;
  --line:        rgba(60, 45, 85, 0.08);
  --line1:       rgba(60, 45, 85, 0.08);
  --line2:       rgba(60, 45, 85, 0.12);
  --purple:      #6d5f7a;
  --purple-deep: #52465e;
  --brand:       #6b5d78;
  --brand-hover: #5a4d66;
  --brand-dim:   rgba(107, 93, 120, 0.14);
  --accent:      #5d4e6e;
  --accent-dim:  rgba(93, 78, 110, 0.1);
  --danger:      #dc2626;
  --danger-dim:  rgba(220, 38, 38, 0.1);
  --ok:          #15803d;
  --ok-dim:      rgba(21, 128, 61, 0.1);
  --warn:        #b45309;
  --warn-dim:    rgba(180, 83, 9, 0.1);
  --coming:      #6b5b82;
  --coming-dim:  rgba(107, 91, 130, 0.12);
}

html[data-theme="light"] body {
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -30%, rgba(91, 74, 110, 0.11), transparent 55%);
}

html[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line2);
}

html[data-theme="light"] .admin-topbar {
  background: rgba(250, 249, 252, 0.94);
  border-bottom-color: var(--line2);
}

html[data-theme="light"] .brand-avatar--auth,
html[data-theme="light"] .brand-avatar--sidebar,
html[data-theme="light"] .brand-avatar--topbar {
  border-color: rgba(91, 74, 110, 0.22);
  box-shadow: 0 2px 14px rgba(91, 74, 110, 0.1);
}

html[data-theme="light"] .sidebar__link:hover {
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .sidebar__link.is-active {
  border-color: rgba(107, 93, 120, 0.28);
  box-shadow: inset 0 0 0 1px rgba(107, 93, 120, 0.06);
}

html[data-theme="light"] .lang-btn.is-active {
  color: var(--text);
  background: var(--brand-dim);
  border-color: rgba(91, 74, 110, 0.28);
}

html[data-theme="light"] .catalog-hero {
  background: linear-gradient(145deg, #f0ecf5 0%, #fafafa 45%, #e8e2f0 100%);
  box-shadow: 0 8px 28px rgba(60, 45, 80, 0.08);
}

html[data-theme="light"] .catalog-sidebar {
  box-shadow: 0 4px 24px rgba(60, 45, 80, 0.07);
}

html[data-theme="light"] .gallery__dot.is-active {
  box-shadow: 0 0 0 2px rgba(26, 22, 32, 0.85);
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line2);
  background: var(--surface2);
  color: var(--muted);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--surface3);
  border-color: var(--line2);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
  display: block;
}

html[data-theme="light"] .theme-toggle__icon--sun {
  display: none;
}

html:not([data-theme="light"]) .theme-toggle__icon--moon {
  display: none;
}

/* ─────────────────────────────────────────────
   Reset & base
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -30%, rgba(91, 74, 110, 0.35), transparent 55%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color var(--t-fast) var(--ease-out), opacity var(--t-fast); }
a:hover { text-decoration: none; color: #ddd6fe; }
html[data-theme="light"] a:hover { color: var(--brand-hover); }

h1, h2, h3, h4 { margin: 0 0 .5rem; font-weight: 700; letter-spacing: -0.025em; font-family: var(--font-display); }
p { margin: 0 0 .75rem; line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─────────────────────────────────────────────
   PUBLIC TOPBAR (catalog)
───────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--line2);
  background: rgba(14, 14, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
}
.brand:hover { text-decoration: none; color: var(--accent); }
.brand--stacked {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.brand__main {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.04em;
  color: inherit;
}
.brand__tag {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 1px;
}
.brand--stacked:hover .brand__tag { color: var(--muted); }
.brand--with-avatar {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.brand--stacked.brand--with-avatar {
  flex-direction: row;
  align-items: center;
}
.brand__stacked-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.brand-avatar {
  display: block;
  flex-shrink: 0;
  object-fit: cover;
}
.brand-avatar--auth {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(196, 181, 253, 0.2);
  box-shadow: 0 4px 20px rgba(61, 47, 79, 0.35);
}
.brand-avatar--sidebar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(196, 181, 253, 0.15);
  box-shadow: 0 4px 20px rgba(61, 47, 79, 0.45);
}
.brand-avatar--topbar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(196, 181, 253, 0.2);
  box-shadow: 0 2px 12px rgba(61, 47, 79, 0.35);
}
.topbar__right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.user { color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.container { padding: 28px 24px 48px; max-width: 1320px; margin: 0 auto; }

/* Каталог: на всю ширину окна; баннер, сетка и footer каталога — те же боковые отступы, что у баннера */
main.container.container--catalog {
  --catalog-hero-gutter: clamp(10px, 2.5vw, 16px);
  max-width: none;
  width: 100%;
  margin: 0 auto;
  /* Нижний отступ у main убираем: иначе между блоком контактов каталога и «О нас» — пустая щель */
  padding: 28px 0 0;
  box-sizing: border-box;
}
main.container.container--catalog .catalog-hero,
main.container.container--catalog .catalog-layout,
main.container.container--catalog .catalog-footer {
  width: calc(100vw - 2 * var(--catalog-hero-gutter));
  max-width: calc(100vw - 2 * var(--catalog-hero-gutter));
  margin-left: calc(50% - 50vw + var(--catalog-hero-gutter));
  margin-right: calc(50% - 50vw + var(--catalog-hero-gutter));
  box-sizing: border-box;
}

body.layout-public {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.layout-public > main {
  flex: 1 0 auto;
}
/* Та же горизонтальная сетка, что у баннера/каталога (футер «О нас» вне main — переменная на body) */
body.layout-public--catalog {
  --catalog-hero-gutter: clamp(10px, 2.5vw, 16px);
}

/* ─────────────────────────────────────────────
   ADMIN SHELL LAYOUT (sidebar + header + main)
───────────────────────────────────────────── */
.has-sidebar {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  grid-row: 1 / 3;
  background: var(--sidebar);
  border-right: 1px solid var(--line2);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--line2);
  text-decoration: none;
  color: var(--text);
}
.sidebar__brand:hover { text-decoration: none; }
.sidebar__brand-name {
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -.02em;
}
.sidebar__brand-sub {
  font-size: .7rem;
  color: var(--muted);
  margin-top: 1px;
}
.sidebar__brand-tagline {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.06em;
  font-weight: 500;
  line-height: 1.2;
}

.sidebar__nav {
  padding: 12px 0;
  flex: 1;
}
.sidebar__section {
  padding: 14px 16px 4px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  margin: 2px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--t-med) var(--ease-out), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  border: 1px solid transparent;
}
.sidebar__link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
}
.sidebar__link.is-active {
  background: var(--brand-dim);
  color: var(--text);
  border-color: rgba(196, 181, 253, 0.2);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.08);
}
.sidebar__link-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.9;
}
.sidebar__ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
}
.sidebar__link-badge {
  margin-left: auto;
  background: var(--danger-dim);
  color: var(--danger);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.sidebar__link-badge--ok {
  background: var(--ok-dim);
  color: var(--ok);
}

.sidebar__footer {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--line2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.avatar--img {
  object-fit: cover;
  padding: 0;
  display: block;
}
img.avatar.avatar--img.avatar--xs {
  width: 22px;
  height: 22px;
}
.avatar--table {
  width: 28px;
  height: 28px;
  font-size: .7rem;
}
img.avatar.avatar--img.avatar--table {
  width: 28px;
  height: 28px;
}
.avatar--orders {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}
img.avatar.avatar--img.avatar--orders {
  width: 36px;
  height: 36px;
}
.avatar.profile-preview,
img.avatar.profile-preview {
  width: 64px;
  height: 64px;
  font-size: 1.1rem;
}
.sidebar__user-info { min-width: 0; }
.sidebar__username {
  font-size: .8rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar__role {
  font-size: .68rem;
  color: var(--muted);
}

/* Admin topbar */
.admin-topbar {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 28px;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--line2);
  background: rgba(10, 10, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: var(--font-display);
}
.admin-topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Admin main */
.admin-main {
  grid-column: 2;
  grid-row: 2;
  padding: 28px 28px 48px;
  overflow-x: hidden;
}

/* Page head inside admin main */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
/* Только кнопки действий (заголовок в верхней панели) */
.page-head--toolbar-only {
  justify-content: flex-end;
  align-items: center;
  min-height: 0;
}
.page-head__title { font-size: 1.5rem; font-family: var(--font-display); }
.page-head__sub { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.page-head--orders .page-head__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.page-head--orders .page-head__sub {
  font-size: 1rem;
  margin-top: 8px;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  background: var(--surface2);
  border: 1px solid var(--line2);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.sidebar-toggle:hover {
  background: rgba(196, 181, 253, 0.08);
  border-color: rgba(196, 181, 253, 0.25);
}
.sidebar-toggle__svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ─────────────────────────────────────────────
   STAT CARDS (Dashboard)
───────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

/* Дропшиппер: ручная выручка на /my/stats */
.manual-revenue-panel {
  margin-bottom: 16px;
}
.manual-revenue-panel__value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.manual-revenue-panel__label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.manual-revenue-panel__hint {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 12px 0 16px;
}
.manual-revenue-month-form {
  max-width: 320px;
  margin-bottom: 14px;
}
.manual-revenue-month-form .field__input {
  width: 100%;
}
.manual-revenue-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.manual-revenue-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
  flex: 1 1 140px;
}
.manual-revenue-field__l {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.manual-revenue-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.manual-revenue-saved {
  color: var(--ok);
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 600;
}
.form-error {
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 600;
}
.manual-revenue-err {
  margin: 0 0 14px;
}
.manual-revenue-form--products {
  margin-top: 4px;
}
.manual-revenue-products-wrap {
  max-height: min(70vh, 560px);
  overflow: auto;
  margin-bottom: 14px;
  border-radius: var(--radius);
}
.manual-revenue-products .table td {
  vertical-align: middle;
}
.manual-revenue-products__orphan {
  opacity: 0.92;
}
.manual-revenue-products__col-date {
  width: 96px;
  white-space: nowrap;
}
.manual-revenue-products__date {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}
.manual-revenue-product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.manual-revenue-product__img {
  width: 44px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line2);
  flex-shrink: 0;
}
.manual-revenue-product__ph {
  width: 44px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.manual-revenue-product__meta {
  min-width: 0;
}
.manual-revenue-product__name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}
.manual-revenue-product__id {
  font-size: 0.68rem;
  color: var(--muted);
  word-break: break-all;
  margin-top: 2px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-fast);
}
.stat-card:hover {
  border-color: rgba(196, 181, 253, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}
.stat-card__sticker {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.35);
}
.stat-card__sticker--accent {
  background: linear-gradient(155deg, rgba(196, 181, 253, 0.2) 0%, rgba(91, 74, 110, 0.55) 100%);
  color: #ddd6fe;
}
.stat-card__sticker--ok {
  background: linear-gradient(155deg, rgba(74, 222, 128, 0.18) 0%, rgba(22, 101, 52, 0.45) 100%);
  color: #86efac;
}
.stat-card__sticker--warehouse {
  background: linear-gradient(155deg, rgba(56, 189, 248, 0.16) 0%, rgba(14, 116, 144, 0.42) 100%);
  color: #7dd3fc;
}
.stat-card__sticker--users {
  background: linear-gradient(155deg, rgba(167, 139, 250, 0.18) 0%, rgba(91, 74, 110, 0.5) 100%);
  color: #d8b4fe;
}
/* Стикеры на карточках заказов / статистики (иконки вместо emoji) */
.stat-card__sticker--await-skin {
  background: linear-gradient(155deg, rgba(251, 146, 60, 0.22) 0%, rgba(154, 52, 18, 0.42) 100%);
  color: #fdba74;
}
.stat-card__sticker--ship-skin {
  background: linear-gradient(155deg, rgba(56, 189, 248, 0.2) 0%, rgba(3, 105, 161, 0.42) 100%);
  color: #7dd3fc;
}
.stat-card__sticker--danger-skin {
  background: linear-gradient(155deg, rgba(248, 113, 113, 0.2) 0%, rgba(153, 27, 27, 0.38) 100%);
  color: #fca5a5;
}
.stat-card__sticker--neutral {
  background: linear-gradient(155deg, rgba(148, 163, 184, 0.16) 0%, rgba(51, 65, 85, 0.42) 100%);
  color: #cbd5e1;
}
.stat-card__sticker--qty {
  background: linear-gradient(155deg, rgba(196, 181, 253, 0.2) 0%, rgba(91, 74, 110, 0.48) 100%);
  color: #ddd6fe;
}
.stat-card__sticker--money {
  background: linear-gradient(155deg, rgba(52, 211, 153, 0.18) 0%, rgba(6, 78, 59, 0.4) 100%);
  color: #6ee7b7;
}
.stat-card--orders-all .stat-card__glow {
  background: #94a3b8;
}
.stat-card__icon-svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-card__value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card__label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-card--accent { border-color: rgba(196, 181, 253, 0.22); }
.stat-card--ok     { border-color: rgba(22, 163, 74, 0.35); }
.stat-card--warn   { border-color: rgba(202, 138, 4, 0.35); }
.stat-card--await  { border-color: rgba(234, 88, 12, 0.35); }
.stat-card--ship   { border-color: rgba(14, 165, 233, 0.35); }
.stat-card--users  { border-color: rgba(167, 139, 250, 0.32); }
.stat-card--danger { border-color: rgba(220, 38, 38, 0.35); }
.stat-card__glow {
  display: block;
  position: absolute;
  top: -24px;
  right: -24px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(28px);
  pointer-events: none;
}
.stat-card--accent .stat-card__glow { background: var(--accent); }
.stat-card--ok     .stat-card__glow { background: var(--ok); }
.stat-card--warn   .stat-card__glow { background: var(--warn); }
.stat-card--await  .stat-card__glow { background: #fb923c; }
.stat-card--ship   .stat-card__glow { background: #38bdf8; }
.stat-card--users  .stat-card__glow { background: var(--coming); }
.stat-card--danger .stat-card__glow { background: var(--danger); }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--brand-hover), var(--brand));
  border: 1px solid rgba(196, 181, 253, 0.25);
  color: #faf5ff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font);
  transition: transform var(--t-fast), box-shadow var(--t-med), filter var(--t-fast), background var(--t-fast);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(61, 47, 79, 0.35);
}
.btn:hover {
  filter: brightness(1.08);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(91, 74, 110, 0.45);
}
.btn:active { transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line2);
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(196, 181, 253, 0.25);
  box-shadow: none;
}
.btn--with-icon .btn__ico { font-size: 1rem; opacity: 0.9; }

.btn--danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}
.btn--danger:hover { background: var(--danger-dim); filter: none; }

.btn--ok {
  background: transparent;
  border-color: var(--ok);
  color: var(--ok);
}
.btn--ok:hover { background: var(--ok-dim); filter: none; }

.btn--small, .btn--sm {
  padding: 6px 12px;
  font-size: .78rem;
  border-radius: var(--radius-xs);
}

.btn--icon {
  padding: 7px 10px;
}

.btn--active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: var(--brand);
}

.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  filter: none;
}

.inline { display: inline; }

/* ─────────────────────────────────────────────
   BADGES / PILLS
───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--line2);
  background: var(--surface2);
  color: var(--text);
  white-space: nowrap;
}
.badge--stock      { border-color: rgba(22,163,74,.35);   background: var(--ok-dim);   color: var(--ok); }
.badge--processing { border-color: rgba(202,138,4,.4);  background: var(--warn-dim);  color: var(--warn); }
.badge--awaiting    { border-color: rgba(234,88,12,.4);   background: rgba(234,88,12,.1);   color: #c2410c; }
.badge--shipped     { border-color: rgba(2,132,199,.4); background: rgba(2,132,199,.1);  color: #0369a1; }
.badge--completed  { border-color: rgba(22,163,74,.35);   background: var(--ok-dim);   color: var(--ok); }
.badge--returned   { border-color: rgba(220,38,38,.35);   background: var(--danger-dim);   color: var(--danger); }
.badge--done       { border-color: var(--line2); background: var(--surface2); color: var(--muted); }
.badge--warn       { border-color: rgba(202,138,4,.4);  background: var(--warn-dim);  color: var(--warn); }
.badge--coming     { border-color: rgba(124,58,237,.35);  background: var(--coming-dim); color: var(--coming); }
.badge--last       { border-color: rgba(220,38,38,.45);   background: rgba(220,38,38,.12);  color: var(--danger); font-weight: 700; animation: pulse-last 1.8s ease-in-out infinite; }
@keyframes pulse-last {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
  50%       { box-shadow: 0 0 0 4px rgba(220,38,38,.15); }
}

/* Role badges */
.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.role-badge--admin {
  background: var(--accent-dim);
  color: var(--text);
  border: 1px solid var(--line2);
}
.role-badge--drop_shipper {
  background: var(--ok-dim);
  color: var(--ok);
  border: 1px solid rgba(22,163,74,.3);
}
.role-badge--user {
  background: var(--surface2);
  color: var(--subtle);
  border: 1px solid var(--line2);
}
.role-badge--pending {
  background: var(--warn-dim);
  color: var(--warn);
  border: 1px solid rgba(202,138,4,.3);
}

/* Pending avatar */
.avatar--pending {
  background: var(--warn-dim);
  color: var(--warn);
  border: 1px solid rgba(255,194,102,.3);
}

/* Pending page */
.auth-card--pending {
  text-align: center;
}
.pending-icon {
  font-size: 3rem;
  margin: 8px 0 16px;
  animation: pending-pulse 2s ease-in-out infinite;
}
@keyframes pending-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.92); }
}

/* ─────────────────────────────────────────────
   DATA TABLE
───────────────────────────────────────────── */
.table-wrap {
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  padding: 12px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface2);
  border-bottom: 1px solid var(--line2);
  text-align: left;
}
.table td {
  padding: 12px 14px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--line2);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(0, 0, 0, 0.02); }
.table tr.tr--others td { opacity: .6; }
.table tr.tr--others:hover td { opacity: 1; }
.avatar--xs { width: 22px; height: 22px; font-size: .65rem; flex-shrink: 0; }
.table__actions {
  white-space: nowrap;
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Admin: список товаров — крупнее превью, текст, кнопки и бейджи */
.admin-products .page-head__title {
  font-size: clamp(1.75rem, 2.6vw, 2.15rem);
}
.admin-products .page-head__sub {
  font-size: 1.05rem;
  margin-top: 6px;
}
.admin-products .page-head .btn {
  font-size: 1.05rem;
  padding: 13px 24px;
}
.admin-products .table-wrap .table th {
  padding: 16px 18px;
  font-size: 0.82rem;
}
.admin-products .table-wrap .table td {
  padding: 18px 20px;
  font-size: 1.0625rem;
}
.admin-products .table-wrap .table td strong {
  font-size: 1.125rem;
  font-weight: 700;
}
.admin-products__col-thumb {
  width: 120px;
}
.admin-products__cell-thumb {
  vertical-align: top;
}
.admin-products__thumb {
  width: 96px;
  height: 82px;
  object-fit: cover;
  border-radius: 11px;
  border: 1px solid var(--line);
  display: block;
}
.admin-products__thumb-placeholder {
  width: 96px;
  height: 82px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.28rem;
}
.admin-products__desc {
  color: var(--muted);
  font-size: 0.925rem;
  margin-top: 5px;
  line-height: 1.38;
}
.admin-products__cat {
  font-size: 0.95rem;
  white-space: nowrap;
}
.admin-products__variant-line {
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--subtle);
  white-space: nowrap;
}
.admin-products__variant-line + .admin-products__variant-line {
  margin-top: 8px;
}
/* Заголовок колонки «Варианты» — чуть крупнее остальных */
.admin-products .table-wrap .table thead th:nth-child(4) {
  font-size: 0.92rem;
  letter-spacing: 0.07em;
}
.admin-products .table-wrap .table thead th:nth-child(7) {
  white-space: nowrap;
}
.admin-products__date {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}
.admin-products .badge {
  padding: 7px 14px;
  font-size: 0.875rem;
}
.admin-products .table__actions {
  gap: 9px;
}
.admin-products .table__actions .btn--sm {
  padding: 9px 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}
.admin-products .empty-state {
  font-size: 1.1rem;
}
.admin-products .empty-state__sticker {
  width: 100px;
  height: 100px;
}
.admin-products .empty-state__sticker-svg {
  width: 52px;
  height: 52px;
}

/* ─────────────────────────────────────────────
   CARD (generic panel)
───────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  padding: 24px;
}
.panel + .panel { margin-top: 16px; }
.panel--password {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 40px;
  box-sizing: border-box;
}
.panel--password .field {
  margin-bottom: 20px;
  gap: 8px;
}
.panel--password label {
  font-size: 0.92rem;
}
.panel--password input[type="password"] {
  padding: 14px 18px;
  font-size: 1rem;
}
.panel--password .form-footer {
  margin-top: 28px;
  padding-top: 22px;
}
.panel--password .form-footer .btn {
  padding: 12px 28px;
  font-size: 0.95rem;
}
@media (max-width: 520px) {
  .panel--password,
  .panel--profile {
    padding: 24px 18px;
    max-width: none;
  }
}

.panel--profile {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 40px;
  box-sizing: border-box;
}
.panel--profile .field {
  margin-bottom: 20px;
  gap: 8px;
}
.panel--profile label {
  font-size: 0.92rem;
}
.panel--profile input[type="text"] {
  padding: 14px 18px;
  font-size: 1rem;
}
.panel--profile input[type="file"] {
  font-size: 0.95rem;
  padding: 8px 0;
  max-width: 100%;
}
.panel--profile .form-footer {
  margin-top: 28px;
  padding-top: 22px;
}
.panel--profile .form-footer .btn {
  padding: 12px 28px;
  font-size: 0.95rem;
}
.panel--profile > p:first-of-type {
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.panel--profile .field > span {
  font-size: 0.8rem;
  line-height: 1.45;
  margin-top: 2px;
}

.panel__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* ─────────────────────────────────────────────
   FORMS
───────────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 520px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .field--full { grid-column: 1 / -1; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field:last-of-type { margin-bottom: 0; }
label, .field__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--subtle);
  letter-spacing: .02em;
}
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select,
textarea {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font: inherit;
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(196, 181, 253, 0.45);
  box-shadow: 0 0 0 3px var(--brand-dim);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type="checkbox"] { width: auto; accent-color: var(--brand); }
textarea { resize: vertical; min-height: 80px; }

/* Показать/скрыть пароль (кнопка с иконкой справа) */
.password-field {
  position: relative;
  width: 100%;
}
.password-field input[type="password"],
.password-field input[type="text"] {
  width: 100%;
  padding-right: 42px;
  box-sizing: border-box;
}
.password-field__toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.password-field__toggle:hover {
  color: var(--text);
  background: var(--brand-dim);
}
.password-field__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.password-field__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.password-field:not(.is-visible) .password-field__icon--hide {
  display: none;
}
.password-field.is-visible .password-field__icon--show {
  display: none;
}
.password-field.is-visible .password-field__icon--hide {
  display: block;
}

.form-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 16px;
}
.form-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────
   NOTICE / ALERT
───────────────────────────────────────────── */
.notice {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.notice--info    { border: 1px solid var(--line2); background: var(--surface2); color: var(--text); }
.notice--success { border: 1px solid rgba(22,163,74,.35);  background: var(--ok-dim);  }
.notice--warn    { border: 1px solid rgba(202,138,4,.35); background: var(--warn-dim); color: var(--warn); }
.notice--danger  { border: 1px solid rgba(220,38,38,.35);  background: var(--danger-dim);  color: var(--danger); }

/* ─────────────────────────────────────────────
   AUTH PAGES (login / setup)
───────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
  background-image: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(91, 74, 110, 0.25), transparent 50%);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.auth-logo__name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.03em;
}
.auth-logo__sub { font-size: .75rem; color: var(--muted); }
.auth-card h1 { font-size: 1.4rem; margin-bottom: 4px; }
.auth-card p  { color: var(--muted); font-size: .85rem; margin-bottom: 24px; }
.auth-card .field { margin-bottom: 16px; }
.auth-card .btn { width: 100%; margin-top: 6px; padding: 12px; font-size: .9rem; }
.auth-divider {
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  margin: 16px 0;
  position: relative;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--line2);
}
.auth-divider span {
  position: relative;
  background: var(--surface);
  padding: 0 10px;
}

/* ─────────────────────────────────────────────
   CATALOG PRODUCT CARDS (existing styles kept)
───────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Catalog grid shell — скелетоны до загрузки картинок */
.catalog-grid-shell {
  position: relative;
  min-height: 200px;
}
.catalog-grid-shell--loading .catalog-skeleton-grid {
  display: grid;
}
.catalog-grid-shell--loading #catalog-grid {
  display: none !important;
}
.catalog-grid-shell:not(.catalog-grid-shell--loading) .catalog-skeleton-grid {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .catalog-grid-shell--loading #catalog-grid {
    display: grid !important;
  }
  .catalog-grid-shell--loading .catalog-skeleton-grid {
    display: none !important;
  }
}
.card--skeleton {
  pointer-events: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}
.card--skeleton .card__top,
.card--skeleton__media {
  aspect-ratio: 4 / 3.75;
  min-height: 200px;
  background: var(--surface3);
  position: relative;
  overflow: hidden;
}
.card--skeleton .card__top::after,
.card--skeleton__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 45%,
    transparent 90%
  );
  animation: catalog-skel-shimmer 1.35s ease-in-out infinite;
}
html[data-theme="light"] .card--skeleton .card__top::after,
html[data-theme="light"] .card--skeleton__media::after {
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(91, 74, 110, 0.12) 45%,
    transparent 90%
  );
}
.card--skeleton .card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card--skeleton__line {
  height: 0.85rem;
  border-radius: var(--radius-xs);
  background: var(--surface3);
  max-width: 100%;
  position: relative;
  overflow: hidden;
}
.card--skeleton__line::after,
.card--skeleton__pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 45%,
    transparent 90%
  );
  animation: catalog-skel-shimmer 1.35s ease-in-out infinite;
}
html[data-theme="light"] .card--skeleton__line::after,
html[data-theme="light"] .card--skeleton__pill::after {
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(91, 74, 110, 0.1) 45%,
    transparent 90%
  );
}
.card--skeleton__line--title {
  height: 1.1rem;
  width: 72%;
}
.card--skeleton__line--muted {
  width: 45%;
  opacity: 0.9;
}
.card--skeleton__line--block {
  height: 2.8rem;
  width: 100%;
  margin-top: 4px;
}
.card--skeleton__variant {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card--skeleton__pill {
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--surface3);
  width: 100%;
  position: relative;
  overflow: hidden;
}
.card--skeleton__pill--short {
  width: 55%;
}
@keyframes catalog-skel-shimmer {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card--skeleton .card__top::after,
  .card--skeleton__media::after,
  .card--skeleton__line::after,
  .card--skeleton__pill::after {
    animation: none;
  }
}

.card--coming-soon {
  border-color: rgba(124, 58, 237, 0.2);
}
.card--coming-soon:hover {
  border-color: rgba(124, 58, 237, 0.35);
}
.coming-soon-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  background: var(--text);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.variant--coming {
  opacity: .8;
}
.card__top    { padding: 0; border-bottom: 1px solid var(--line2); background: var(--surface2); }
.card__body   { padding: 16px; }
.card__title  { font-weight: 700; font-size: 1rem; margin-bottom: 5px; letter-spacing: -0.02em; }
.card__desc      { color: var(--muted); margin-bottom: 12px; font-size: .82rem; }
.card__published { font-size: .72rem; color: var(--muted); margin-bottom: 8px; margin-top: 2px; opacity: .75; }
.tz-block { display: flex; flex-direction: column; gap: 2px; }
.tz-row   { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.tz-label { font-size: .68rem; color: var(--muted); min-width: 36px; flex-shrink: 0; }
.tz-time  { font-size: .78rem; color: var(--text); font-variant-numeric: tabular-nums; }

/* Gallery — картинка на всю область превью */
.gallery {
  position: relative;
  background: var(--surface2);
  border-radius: 0;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3.75;
  min-height: 308px;
  max-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: none;
  padding: 0;
  cursor: zoom-in;
}
.gallery__img.is-active { display: block; animation: fadeIn .15s ease-out; }
@keyframes fadeIn { from { opacity: .4; } to { opacity: 1; } }
.gallery__placeholder { color: var(--muted); padding: 18px; text-align: center; font-size: .85rem; }
.gallery__nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
}
.gallery__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #0f172a;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  opacity: 0.9;
}
.gallery__btn:hover {
  opacity: 1;
  transform: scale(1.08);
}
.gallery__btn:active {
  transform: scale(0.94);
}
.gallery__btn:focus-visible {
  outline: 2px solid var(--brand, #a78bfa);
  outline-offset: 2px;
}
.gallery__btn-icon {
  display: block;
  flex-shrink: 0;
}
.gallery__dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 7px;
  pointer-events: auto;
}
.gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0;
}
.gallery__dot.is-active {
  background: var(--text);
  border-color: var(--text);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

/* Catalog image lightbox */
.catalog-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 8, 18, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
  animation: catalogLbIn 0.22s ease-out;
}
.catalog-lightbox.is-open {
  display: flex;
}
@keyframes catalogLbIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.catalog-lightbox__panel {
  position: relative;
  max-width: min(96vw, 1400px);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.catalog-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.catalog-lightbox__close {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.12s;
}
.catalog-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.catalog-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.catalog-lightbox__arrow:hover {
  background: rgba(255, 255, 255, 0.1);
}
.catalog-lightbox__arrow--prev {
  left: 0;
}
.catalog-lightbox__arrow--next {
  right: 0;
}
.catalog-lightbox__arrow[hidden] {
  display: none !important;
}
.catalog-lightbox__counter {
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.catalog-lightbox__counter:empty {
  display: none;
}
@media (max-width: 640px) {
  .catalog-lightbox__arrow {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .catalog-lightbox__arrow--prev {
    left: -4px;
  }
  .catalog-lightbox__arrow--next {
    right: -4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-lightbox {
    animation: none;
  }
}

/* Variants */
.variants         { display: flex; flex-direction: column; gap: 10px; }
.variant          { border: 1px solid var(--line2); border-radius: var(--radius-sm); padding: 14px; background: var(--surface); }
.variant__meta    { display: grid; gap: 3px; margin-bottom: 8px; font-size: .82rem; color: var(--subtle); }
.variant__prices  { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.variant__stats   { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.variant__actions { display: flex; align-items: center; justify-content: flex-end; }
.sale-form        { display: flex; gap: 8px; align-items: center; }
.sale-form input[type="number"] { width: 64px; }

.price-tag {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  background: var(--surface2);
  border: 1px solid var(--line2);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  min-width: 70px;
}
.price-tag__label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-tag__value {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.price-tag--drop {
  border-color: rgba(0, 0, 0, 0.12);
  background: var(--brand-dim);
}
.price-tag--drop .price-tag__label { color: var(--subtle); }
.price-tag--drop .price-tag__value { color: var(--text); font-weight: 800; }

/* Catalog head — ширина/поля баннера задаются в main.container.container--catalog .catalog-hero */
.catalog-hero {
  margin-top: 0;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, #12081a 0%, #0a0a0c 45%, #1a0f24 100%);
  border: none;
  border-bottom: 1px solid var(--line2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.catalog-hero__img {
  display: block;
  width: 100%;
  height: clamp(112px, 14vw, 188px);
  object-fit: cover;
  object-position: center 42%;
}
@media (max-width: 480px) {
  .catalog-hero__img {
    height: clamp(92px, 24vw, 142px);
  }
}

/* Главная каталога: визуальные блоки (баннер / шапка) */
.homepage-block--intro {
  margin-bottom: 0;
}
.site-about-footer.homepage-block--footer {
  border-top: 1px solid var(--line2);
}

.homepage-admin-form .homepage-admin-panel {
  margin-bottom: 16px;
}
.homepage-admin-preview {
  display: block;
  max-height: 120px;
  width: auto;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line2);
}

/* Catalog — two columns: filters left, products right */
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 28px 36px;
  align-items: start;
}
.catalog-sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + 12px);
  padding: 20px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line2);
  background: var(--surface);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.2);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}
.catalog-sidebar__title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line2);
  font-family: var(--font-display);
}
.catalog-sidebar__section {
  margin-bottom: 22px;
}
.catalog-sidebar__section:last-child {
  margin-bottom: 0;
}
.catalog-sidebar__label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.catalog-cats__label--sidebar {
  display: block;
  margin-bottom: 8px;
}
.filters--sidebar {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.filters--sidebar .btn {
  width: 100%;
  justify-content: center;
}
.catalog-cats--sidebar {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.catalog-cats--sidebar .catalog-cat {
  text-align: center;
}
.catalog-price-filter--sidebar {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.catalog-price-filter__label--block {
  display: block;
  margin-top: 6px;
  margin-bottom: 2px;
}
.catalog-price-filter__label--block:first-of-type {
  margin-top: 0;
}
.catalog-price-filter__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.catalog-price-filter--sidebar .catalog-price-filter__row {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.catalog-price-filter--sidebar .catalog-price-filter__dash {
  display: none;
}
.catalog-price-filter--sidebar .catalog-price-filter__input {
  flex: none;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.catalog-price-filter__select--wide {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.catalog-price-filter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.catalog-price-filter--sidebar .catalog-price-filter__actions {
  flex-direction: column;
  align-items: stretch;
}
.catalog-price-filter--sidebar .catalog-price-filter__actions .btn {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
.catalog-price-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Сайдбар фильтров каталога — масштаб текста как на карточках товара */
.catalog-sidebar .catalog-sidebar__title {
  font-size: 0.88rem;
}
.catalog-sidebar .catalog-sidebar__label {
  font-size: 0.82rem;
}
.catalog-sidebar .catalog-cats__label--sidebar {
  font-size: 0.82rem;
}
.catalog-sidebar .filters--sidebar .btn {
  font-size: 0.92rem;
  padding: 9px 15px;
}
.catalog-sidebar .catalog-cat {
  font-size: 0.9rem;
  padding: 6px 13px;
}
.catalog-sidebar .catalog-price-filter__label {
  font-size: 0.78rem;
}
.catalog-sidebar .catalog-price-filter__label--block {
  font-size: 0.78rem;
}
.catalog-sidebar .catalog-price-filter__input {
  font-size: 0.92rem;
  padding: 8px 12px;
}
.catalog-sidebar .catalog-price-filter__select {
  font-size: 0.92rem;
  padding: 8px 12px;
}
.catalog-sidebar .catalog-price-filter__dash {
  font-size: 0.92rem;
}
.catalog-sidebar .catalog-price-note {
  font-size: 0.85rem;
  line-height: 1.5;
}
.catalog-sidebar .catalog-price-filter__actions .btn {
  font-size: 0.92rem;
  padding: 9px 15px;
}

.catalog-main {
  min-width: 0;
}
.catalog-main__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line2);
}
/* stretch + width 100%: иначе flex-start сжимает обёртку до ~420px */
.catalog-search-wrap--main {
  margin-bottom: 0;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.catalog-search-wrap--main .catalog-search {
  width: 100%;
  max-width: min(600px, 100%);
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar {
    position: static;
  }
}
.catalog-main .grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line2);
}
/* После общего .catalog-head — иначе margin/padding перезаписывают .catalog-head--main */
.catalog-head.catalog-head--main {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.catalog-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.catalog-head__tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 2px;
  letter-spacing: 0.05em;
  font-weight: 500;
  line-height: 1.25;
}

/* ── Catalog search ──────────────────────────────────────────── */
.catalog-search-wrap {
  margin-bottom: 20px;
}
.catalog-search {
  position: relative;
  max-width: 420px;
}
.catalog-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}
.catalog-search__input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 11px 40px 11px 40px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.catalog-search__input::placeholder { color: var(--muted); }
.catalog-search__input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--brand-dim);
  background: var(--surface);
}
.catalog-search__input::-webkit-search-cancel-button { display: none; }
.catalog-search__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: .8rem;
  padding: 4px 6px;
  border-radius: 5px;
  line-height: 1;
  transition: color .15s, background .15s;
}
.catalog-search__clear:hover {
  color: var(--text);
  background: var(--surface3);
}
/* ─────────────────────────────────────────────
   LANGUAGE SWITCHER
───────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-switcher__label {
  font-size: .72rem;
  color: var(--muted);
  margin-right: 2px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.lang-btn:hover { color: var(--text); background: var(--surface2); text-decoration: none; }
.lang-btn.is-active {
  color: #f5f3ff;
  background: var(--brand-dim);
  border-color: rgba(196, 181, 253, 0.35);
  font-weight: 700;
}
.lang-switcher--sidebar {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.lang-switcher--auth {
  margin-bottom: 20px;
  justify-content: center;
}

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

.catalog-cats-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 16px;
}
.catalog-cats__label {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.catalog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.catalog-cat {
  font-size: .78rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: var(--surface2);
  color: var(--muted);
  text-decoration: none;
  transition: color .15s, background .15s, border-color .15s;
}
.catalog-cat:hover {
  color: var(--text);
  background: var(--surface3);
  text-decoration: none;
}
.catalog-cat--active {
  color: var(--text);
  border-color: rgba(196, 181, 253, 0.4);
  background: var(--brand-dim);
  font-weight: 600;
}

.catalog-price-wrap {
  margin-bottom: 16px;
}
.catalog-price-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.catalog-price-filter__label {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.catalog-price-filter__input {
  width: 100px;
  max-width: 40vw;
  padding: 6px 10px;
  font-size: .85rem;
  border-radius: 8px;
  border: 1px solid var(--line2);
  background: var(--surface2);
  color: var(--text);
}
.catalog-price-filter__input:focus {
  outline: none;
  border-color: var(--accent);
}
.catalog-price-filter__dash {
  color: var(--muted);
  font-size: .85rem;
  user-select: none;
}
.catalog-price-filter__label--cur {
  margin-left: 4px;
}
.catalog-price-filter__select {
  min-width: 88px;
  padding: 6px 10px;
  font-size: .85rem;
  border-radius: 8px;
  border: 1px solid var(--line2);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
}
.catalog-price-filter__select:focus {
  outline: none;
  border-color: var(--accent);
}

.catalog-price-filter--sidebar .catalog-price-filter__select {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.badge--cat {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-color: var(--line2);
  background: var(--surface2);
  color: var(--subtle);
}
.btn--coming {
  background: var(--surface);
  color: var(--coming);
  border-color: rgba(124, 58, 237, 0.35);
  border-radius: 999px;
}
.btn--coming:hover { background: var(--coming-dim); }
.subtle, .muted { color: var(--muted); font-size: .82rem; }

/* ─────────────────────────────────────────────
   FILE DROP ZONE
───────────────────────────────────────────── */
.file-drop {
  position: relative;
  border: 2px dashed var(--line2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03);
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.file-drop:hover, .file-drop.is-drag {
  border-color: var(--text);
  background: var(--brand-dim);
}
.file-drop__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-drop__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  text-align: center;
  pointer-events: none;
  color: var(--subtle);
  font-size: .85rem;
}

/* Image preview grid */
.img-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}
.img-preview-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line2);
}

.photo-preview-tile {
  position: relative;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--line2);
  background: var(--surface);
}
.photo-preview-tile .img-preview-thumb {
  border: none;
  border-radius: 0;
  vertical-align: top;
}
.photo-preview-tile__remove {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  padding: 5px 4px;
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 500;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--line2);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
}
.photo-preview-tile__remove:hover {
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
}

/* ─────────────────────────────────────────────
   VARIANT FORM (product edit)
───────────────────────────────────────────── */
.variants-form {
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 20px;
}
.variants-form__head, .variants-form__row {
  display: grid;
  grid-template-columns: 28px 1.1fr 0.9fr 0.9fr 0.7fr 0.85fr 0.85fr;
  gap: 10px;
  padding: 10px 14px;
  align-items: center;
}
.variants-form__head {
  background: var(--surface2);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.variants-form__row {
  border-top: 1px solid var(--line);
}
.variants-form__row input { padding: 7px 10px; font-size: .82rem; }
.variant-num {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  text-align: center;
}

/* ─────────────────────────────────────────────
   ORDERS / misc
───────────────────────────────────────────── */
.line-item   { margin-bottom: 5px; font-size: .82rem; }
.row         { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.admin-grid  { display: flex; gap: 12px; flex-wrap: wrap; }

/* Recent orders mini-table */
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  vertical-align: middle;
}
.mini-table tr:last-child td { border-bottom: none; }
.mini-table .td-muted { color: var(--muted); font-size: .75rem; }

/* Status dot */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}
.status-dot--processing { background: var(--warn); }
.status-dot--completed  { background: var(--ok); }
.status-dot--returned   { background: var(--danger); }

/* ─────────────────────────────────────────────
   ACTIVITY / EMPTY STATES
───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: .9rem;
}
.empty-state__icon { font-size: 2.5rem; display: block; margin-bottom: 12px; opacity: .5; }

.empty-state__sticker {
  width: 92px;
  height: 92px;
  margin: 0 auto 20px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, rgba(107, 90, 130, 0.38) 0%, rgba(61, 47, 79, 0.65) 100%);
  border: 1px solid rgba(196, 181, 253, 0.22);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #ddd6fe;
}
.empty-state__sticker-svg {
  width: 48px;
  height: 48px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
html[data-theme="light"] .empty-state__sticker {
  background: linear-gradient(155deg, rgba(237, 232, 246, 0.95) 0%, rgba(220, 210, 235, 0.9) 100%);
  border-color: rgba(91, 74, 110, 0.18);
  box-shadow: 0 6px 24px rgba(60, 45, 80, 0.1);
  color: #5d4e6e;
}

/* ─────────────────────────────────────────────
   SPLIT LAYOUT (two-column admin forms)
───────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* Форма товара: один столбец, блоки на всю ширину */
.product-form-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 100%;
}
.product-form-stack > .panel {
  width: 100%;
  box-sizing: border-box;
}

/* Страница добавления / редактирования товара — крупнее текст и просторнее блоки */
.product-form-page .page-head--toolbar-only .btn {
  font-size: 1.06rem;
  padding: 12px 24px;
}
.product-form-page .page-head--toolbar-only {
  margin-bottom: 8px;
}
#product-form {
  font-size: 1.08rem;
}
#product-form .panel {
  padding: 30px 36px;
}
#product-form .panel__title {
  font-size: 1.2rem;
  margin-bottom: 18px;
  padding-bottom: 14px;
}
#product-form .field {
  margin-bottom: 18px;
}
#product-form .field label {
  font-size: 0.98rem;
}
#product-form input[type="text"],
#product-form input[type="number"],
#product-form select,
#product-form textarea {
  font-size: 1.05rem;
  padding: 14px 18px;
}
#product-form textarea {
  min-height: 120px;
  line-height: 1.55;
}
#product-form .field > span {
  font-size: 0.92rem;
}
#product-form .notice {
  font-size: 1rem;
  line-height: 1.55;
  padding: 14px 18px;
}
#product-form .file-drop {
  padding: 8px 4px;
}
#product-form .file-drop__label {
  font-size: 1.06rem;
  padding: 28px 20px;
}
#product-form .file-drop__label span:first-child {
  font-size: 2rem;
}
#product-form .file-drop__label span:last-child {
  font-size: 0.92rem;
}
#product-form .variants-form__head {
  font-size: 0.86rem;
  padding: 14px 18px;
  gap: 12px;
}
#product-form .variants-form__row {
  padding: 14px 18px;
  gap: 12px;
}
#product-form .variants-form__row input {
  font-size: 0.98rem;
  padding: 10px 14px;
}
#product-form .variant-num {
  font-size: 0.86rem;
}
#product-form .form-footer {
  font-size: 1.05rem;
  margin-top: 28px;
  padding-top: 22px;
}
#product-form .form-footer .btn {
  font-size: 1.05rem;
  padding: 14px 28px;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 768px) {
  .has-sidebar {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }
  .sidebar {
    grid-row: auto;
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    width: var(--sidebar-w);
    z-index: 200;
    transition: left .25s ease;
    height: 100vh;
  }
  .sidebar.is-open { left: 0; }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 199;
  }
  .sidebar.is-open ~ .sidebar-overlay { display: block; }
  .sidebar-toggle { display: flex; }
  .admin-topbar { grid-column: 1; grid-row: 1; }
  .admin-main   { grid-column: 1; grid-row: 2; padding: 16px; }
  .grid { grid-template-columns: 1fr; }
  .catalog-head { flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .variants-form__head,
  .variants-form__row { grid-template-columns: 28px 1fr 1fr 1fr; }
  .variants-form__head > *:nth-child(n+5),
  .variants-form__row > *:nth-child(n+5) { display: none; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 20px; }
  .admin-main { padding: 12px; }
}

/* ─────────────────────────────────────────────
   Inline order rows on variant card (catalog)
───────────────────────────────────────────── */
.variant__order-list {
  margin: 6px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.vorder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--warn-dim);
  border: 1px solid rgba(202, 138, 4, 0.25);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
}

.vorder-row__info {
  font-size: .75rem;
  color: var(--muted);
}

.vorder-row__btns {
  display: flex;
  gap: 4px;
}

.btn--tiny {
  padding: 2px 8px;
  font-size: .72rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line2);
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  transition: background .15s, color .15s;
}
.btn--tiny:hover { color: var(--text); background: var(--surface2); }

.btn--icon-only {
  padding: 5px 9px;
  line-height: 1;
}
.btn--icon-only:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-dim); }
.btn--tiny.btn--ok     { border-color: var(--ok);     color: var(--ok); }
.btn--tiny.btn--ok:hover { background: var(--ok-dim); }
.btn--tiny.btn--danger  { border-color: var(--danger); color: var(--danger); }
.btn--tiny.btn--danger:hover { background: var(--danger-dim); }

/* ─────────────────────────────────────────────
   Order list (admin/orders page)
───────────────────────────────────────────── */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 840px;
  margin: 0 auto;
}

.order-card {
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  overflow: hidden;
}

.order-card--processing { border-left: 3px solid var(--warn); }
.order-card--completed  { border-left: 3px solid var(--ok); }
.order-card--returned   { border-left: 3px solid var(--danger); }

.order-card__items {
  padding: 16px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-card__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.order-card__img {
  width: 104px;
  height: 104px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface2);
}

.order-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.order-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--muted);
}

.order-card__info {
  flex: 1;
  min-width: 0;
}

.order-card__name {
  font-weight: 600;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-card__meta {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 2px;
}

.order-card__qty {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.order-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 16px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
}

.order-card__date {
  font-size: .75rem;
  color: var(--muted);
}

.order-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Colored outline filter buttons (safe — don't touch btn--ok / btn--danger) */
.btn--warn              { background: transparent; border-color: var(--warn);   color: var(--warn); }
.btn--warn:hover        { background: var(--warn-dim); }
.btn--warn.btn--active  { background: var(--warn-dim); }

.btn--ok-filter              { background: transparent; border-color: var(--ok);     color: var(--ok); }
.btn--ok-filter:hover        { background: var(--ok-dim); }
.btn--ok-filter.is-active    { background: var(--ok-dim); }

.btn--danger-filter              { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn--danger-filter:hover        { background: var(--danger-dim); }
.btn--danger-filter.is-active    { background: var(--danger-dim); }

/* Order status badge in admin table */
.order-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .03em;
  border: 1px solid var(--line2);
  color: var(--muted);
}
.order-status-badge--processing { background: var(--warn-dim);   color: var(--warn);   border-color: var(--warn); }
.order-status-badge--awaiting_shipment { background: rgba(255,160,90,.12); color: #ffb47a; border-color: rgba(255,160,90,.45); }
.order-status-badge--shipped { background: rgba(120,200,255,.1); color: #7ec8ff; border-color: rgba(120,200,255,.4); }
.order-status-badge--completed  { background: var(--ok-dim);     color: var(--ok);     border-color: var(--ok); }
.order-status-badge--returned   { background: var(--danger-dim); color: var(--danger); border-color: var(--danger); }

.table__actions--wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 420px;
}

.btn--await.btn--ghost { border-color: rgba(255,160,90,.45); color: #ffb47a; }
.btn--await.btn--ghost:hover { background: rgba(255,160,90,.1); }
.btn--await.btn--active { background: rgba(255,160,90,.15); border-color: #ffb47a; color: #ffb47a; }

.btn--ship.btn--ghost { border-color: rgba(120,200,255,.45); color: #7ec8ff; }
.btn--ship.btn--ghost:hover { background: rgba(120,200,255,.08); }
.btn--ship.btn--active { background: rgba(120,200,255,.12); border-color: #7ec8ff; color: #7ec8ff; }

.btn--tiny.btn--await { border-color: rgba(255,160,90,.4); color: #ffb47a; }
.btn--tiny.btn--ship  { border-color: rgba(120,200,255,.4); color: #7ec8ff; }

/* ── Stats ───────────────────────────────────────────────────── */
.stats-section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line1);
}
.tr--current-month td { background: var(--brand-dim); }

/* ── Catalog Footer ──────────────────────────────────────────── */
.catalog-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line1);
  padding: 28px 0 32px;
}
.catalog-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--catalog-hero-gutter, clamp(10px, 2.5vw, 16px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.catalog-footer__links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 8px 10px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.catalog-footer__links::-webkit-scrollbar {
  height: 6px;
}
.catalog-footer__links::-webkit-scrollbar-thumb {
  background: var(--line2);
  border-radius: 4px;
}
.catalog-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line1);
  background: var(--surface2);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: border-color .15s, background .15s, transform .1s;
  flex-shrink: 0;
  white-space: nowrap;
}
.catalog-footer__link:hover {
  border-color: var(--text);
  background: var(--brand-dim);
  transform: translateY(-1px);
}
.catalog-footer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.catalog-footer__icon--instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.catalog-footer__icon--tiktok {
  background: #010101;
  color: #fff;
}
.catalog-footer__icon--telegram {
  background: #229ed9;
  color: #fff;
}
.catalog-footer__icon--phone {
  background: var(--ok-dim);
  color: var(--ok);
}
.catalog-footer__icon--email {
  background: var(--surface2);
  color: var(--text);
}
.catalog-footer__extra {
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}

.site-about-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line2);
  padding: 36px 24px 44px;
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.42) 0%, var(--surface) 38%);
}
/* Каталог: один визуальный блок с футером контактов — без второй жёсткой линии и лишнего зазора */
body.layout-public--catalog .site-about-footer {
  border-top: none;
  padding-top: 32px;
  padding-left: var(--catalog-hero-gutter);
  padding-right: var(--catalog-hero-gutter);
  padding-bottom: 48px;
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.28) 0%, var(--surface) 42%);
  box-shadow: inset 0 1px 0 0 var(--line1);
}
.site-about-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}
body.layout-public--catalog .site-about-footer__inner {
  max-width: none;
}
.site-about-footer__inner p {
  margin: 0 auto 1.1rem;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--muted);
  max-width: 58em;
  text-align: center;
}
.site-about-footer__inner p:last-child {
  margin-bottom: 0;
}

/* ── Sale Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
  transform: translateY(14px) scale(.97);
  transition: transform .22s ease;
}
.modal-box--sale {
  max-width: min(720px, 96vw);
}
.sale-modal-revenue__row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.sale-modal-revenue__row .field__input:first-child {
  flex: 1;
  min-width: 0;
}
.sale-modal-revenue__currency {
  max-width: 110px;
  flex-shrink: 0;
}
.sale-modal-revenue__hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.modal-overlay.is-open .modal-box {
  transform: none;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line1);
  position: sticky;
  top: 0;
  background: var(--surface2);
  z-index: 1;
}
.modal-head__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: .9rem;
  padding: 5px 9px;
  border-radius: 7px;
  line-height: 1;
  transition: background .15s, color .15s;
}
.modal-close:hover {
  background: var(--surface3);
  color: var(--text);
}
#sale-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.field__required {
  color: var(--danger);
}
.field__input {
  background: var(--surface3);
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text);
  font-size: .9rem;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
}
.field__input:focus {
  border-color: var(--accent);
}
.field__textarea {
  background: var(--surface3);
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text);
  font-size: .88rem;
  line-height: 1.45;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  min-height: 72px;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}
.field__textarea:focus {
  border-color: var(--accent);
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 2px;
}

/* ── Sale Modal: item rows ───────────────────────────────────── */
.item-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line1);
}
.item-row:first-child { padding-top: 0; }
.item-row:last-child  { border-bottom: none; padding-bottom: 0; }
.item-row .item-select {
  width: 100%;
}
.item-row__foot {
  display: flex;
  gap: 6px;
  align-items: center;
}
.item-qty {
  width: 80px;
  flex-shrink: 0;
}
.item-remove {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: .78rem;
  color: var(--muted);
  border-color: transparent;
}
.item-remove:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: var(--danger-dim);
}

/* ── Delivery Pills ──────────────────────────────────────────── */
.delivery-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.delivery-pill {
  position: relative;
  cursor: pointer;
}
.delivery-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.delivery-pill span {
  display: block;
  padding: 8px 15px;
  border-radius: 9px;
  border: 1px solid var(--line2);
  background: var(--surface3);
  font-size: .83rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  user-select: none;
}
.delivery-pill:hover span {
  border-color: var(--text);
  background: var(--brand-dim);
}
.delivery-pill input[type="radio"]:checked + span {
  border-color: var(--text);
  background: var(--brand);
  color: var(--text);
  font-weight: 600;
}

/* ── File Pick ───────────────────────────────────────────────── */
.file-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px dashed var(--line2);
  background: var(--surface3);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  overflow: hidden;
}
.file-pick:hover {
  border-color: var(--text);
  background: var(--brand-dim);
}
.file-pick.has-file {
  border-style: solid;
  border-color: var(--ok);
  background: var(--ok-dim);
}
.file-pick__icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}
.file-pick__text {
  font-size: .82rem;
  color: var(--muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-pick.has-file .file-pick__text {
  color: var(--ok);
  font-weight: 500;
}

/* ── Order product thumbnail (таблицы заказов) ─────────────────── */
.order-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.orders-col-user {
  white-space: nowrap;
  max-width: 220px;
}
.order-user-name {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-user-name--mine {
  font-weight: 700;
}
.order-cell-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.order-product-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.order-thumb {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line1);
  background: var(--surface3);
}
.order-thumb--placeholder {
  background: var(--surface3);
  border: 1px dashed var(--line2);
  min-width: 120px;
  min-height: 120px;
}
.order-product-info {
  flex: 1;
  min-width: 0;
  font-size: 1.06rem;
  line-height: 1.5;
}

/* ── Delivery info in order rows ─────────────────────────────── */
.delivery-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.delivery-service-badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--line2);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.delivery-code {
  font-size: 0.86rem;
  color: var(--muted);
  font-family: monospace;
}
.delivery-file-link {
  font-size: 0.86rem;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.delivery-file-link:hover {
  text-decoration: underline;
}

.order-note {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--subtle);
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 280px;
}

/* ── Time display (minimal, no UTC) ──────────────────────────── */
.time-display {
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.time-display--lg {
  font-size: 1.18rem;
  font-weight: 600;
}
.orders-time-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.orders-col-time {
  white-space: nowrap;
  min-width: 188px;
  vertical-align: top;
}
.orders-time-follow {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line2);
}
.table--orders th {
  font-size: 0.88rem;
  padding: 18px 20px;
  letter-spacing: 0.04em;
  text-align: center;
}
.table--orders td {
  font-size: 1.06rem;
  padding: 22px 20px;
  line-height: 1.55;
  vertical-align: middle;
  text-align: center;
}
.table--orders .order-product-info {
  font-size: 1.06rem;
  text-align: center;
}
.table--orders .orders-col-time {
  text-align: center;
}
.table--orders .orders-time-label {
  text-align: center;
}
.table--orders .order-user-cell {
  justify-content: center;
  width: 100%;
}
.table--orders .orders-col-user {
  max-width: none;
}
.table--orders .order-product-row {
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.table--orders .order-product-info > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.table--orders .delivery-info {
  align-items: center;
}
.table--orders .order-note {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.table--orders .time-display {
  font-size: 0.95rem;
}
.table--orders .time-display--lg {
  font-size: 1.2rem;
}
.table--orders .badge {
  font-size: 0.86rem;
  padding: 5px 12px;
}
.table--orders .btn--small:not(.btn--icon-only) {
  padding: 9px 16px;
  font-size: 0.88rem;
}
.table--orders .btn--small.btn--icon-only {
  padding: 8px 11px;
  font-size: 1rem;
}
.table--orders .table__actions--wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.table--orders .line-item {
  font-size: 0.9rem;
}
.table--orders .order-status-badge {
  font-size: 0.86rem;
  padding: 5px 13px;
}
.table--orders tbody tr {
  transition: background var(--t-fast);
}
.table--orders tbody tr:hover td {
  background: rgba(196, 181, 253, 0.04);
}

.orders-filters .btn--small {
  padding: 9px 16px;
  font-size: 0.88rem;
}

/* Catalog: published line */
.card__published {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.card__published-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Каталог: крупнее текст на карточке товара (дата и время «Добавлен» — без изменений) */
#catalog-grid .card .card__title {
  font-size: 1.28rem;
  line-height: 1.2;
  margin-bottom: 4px;
}
#catalog-grid .card .card__desc {
  font-size: 1.02rem;
  line-height: 1.52;
}
#catalog-grid .card .variant__meta {
  font-size: 1rem;
}
#catalog-grid .card .price-tag__label {
  font-size: 0.78rem;
}
#catalog-grid .card .price-tag__value {
  font-size: 1.14rem;
}
#catalog-grid .card .variant .badge {
  font-size: 0.9rem;
  padding: 5px 12px;
}
#catalog-grid .card .badge--cat {
  font-size: 0.8rem;
}
#catalog-grid .card .gallery__placeholder {
  font-size: 1.02rem;
}
#catalog-grid .card .coming-soon-badge {
  font-size: 0.85rem;
  padding: 6px 14px;
}
#catalog-grid .card .btn--small {
  font-size: 0.92rem;
  padding: 9px 15px;
}
#catalog-grid .card .card__published {
  font-size: 0.72rem;
}
#catalog-grid .card .card__published-label {
  font-size: 0.68rem;
}
#catalog-grid .card .card__published .time-display {
  font-size: 0.88rem;
}

/* Каталог: ниже по высоте только контент под фото (галерея / превью не трогаем) */
#catalog-grid {
  --catalog-card-radius: var(--radius);
  --catalog-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.32);
  --catalog-card-shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.42);
  align-items: stretch;
}
html[data-theme="light"] #catalog-grid {
  --catalog-card-shadow: 0 4px 18px rgba(60, 45, 85, 0.08);
  --catalog-card-shadow-hover: 0 14px 28px rgba(60, 45, 85, 0.14);
}
#catalog-grid .card {
  border-radius: var(--catalog-card-radius);
  box-shadow: var(--catalog-card-shadow);
  border: 1px solid var(--line2);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  animation: fade-rise 0.45s var(--ease-out) both;
}
#catalog-grid .card:hover {
  box-shadow: var(--catalog-card-shadow-hover);
  border-color: var(--line2);
}
#catalog-grid .card.card--coming-soon:hover {
  border-color: rgba(124, 58, 237, 0.35);
}
#catalog-grid .card .card__top {
  flex-shrink: 0;
}
#catalog-grid .card .card__body {
  padding: 10px 14px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#catalog-grid .card .card__title-row {
  gap: 6px;
  margin-bottom: 0;
}
#catalog-grid .card .card__published {
  margin-top: 4px;
  margin-bottom: 5px;
  gap: 2px;
}
#catalog-grid .card .card__desc {
  margin-bottom: 8px;
  line-height: 1.42;
}
#catalog-grid .card .variants-heading {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line2);
}
#catalog-grid .card .variants {
  gap: 7px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#catalog-grid .card .variant {
  padding: 9px 11px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* Вариант: порядок в разметке — цена → параметры → остаток */
#catalog-grid .card .variant__prices {
  margin-bottom: 0;
  gap: 8px;
}
#catalog-grid .card .variant__prices + .variant__meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line2);
}
#catalog-grid .card .variant__meta {
  margin-bottom: 0;
  gap: 3px;
}
#catalog-grid .card .variant__meta + .variant__stats {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line2);
}
#catalog-grid .card .variant__prices + .variant__stats {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line2);
}
#catalog-grid .card .variant__stats {
  margin-bottom: 4px;
  gap: 6px;
}
#catalog-grid .card .variant__actions {
  margin-top: auto;
}
#catalog-grid .card .price-tag {
  padding: 3px 8px;
}
#catalog-grid .card .btn--small {
  padding: 7px 13px;
}

/* Cards entrance */
@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#catalog-grid .card:nth-child(1) { animation-delay: 0.02s; }
#catalog-grid .card:nth-child(2) { animation-delay: 0.05s; }
#catalog-grid .card:nth-child(3) { animation-delay: 0.08s; }
#catalog-grid .card:nth-child(4) { animation-delay: 0.11s; }
#catalog-grid .card:nth-child(5) { animation-delay: 0.14s; }
#catalog-grid .card:nth-child(6) { animation-delay: 0.17s; }

@media (prefers-reduced-motion: reduce) {
  #catalog-grid .card {
    animation: none;
  }
}

/* Focus rings (a11y) */
.btn:focus-visible,
.sidebar__link:focus-visible,
.lang-btn:focus-visible,
.catalog-cat:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Dashboard quick links */
.admin-dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.admin-dashboard-actions .btn {
  transition: transform var(--t-fast), box-shadow var(--t-med), border-color var(--t-fast), background var(--t-fast);
}
.admin-dashboard-actions .btn:hover {
  transform: translateY(-1px);
}
.admin-dashboard-actions .btn.admin-dash-pill {
  gap: 10px;
  padding-left: 14px;
  padding-right: 18px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.admin-dashboard-actions .btn.admin-dash-pill:hover {
  border-color: rgba(196, 181, 253, 0.28);
  background: rgba(196, 181, 253, 0.06);
  filter: none;
}
.admin-dash-pill__ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.admin-dash-pill__ico svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-dash-pill__ico--accent {
  background: linear-gradient(145deg, rgba(196, 181, 253, 0.15), rgba(91, 74, 110, 0.4));
  color: #c4b5fd;
}
.admin-dash-pill__ico--users {
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.14), rgba(91, 74, 110, 0.38));
  color: #d8b4fe;
}
.admin-dash-pill__ico--telegram {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.14), rgba(14, 116, 144, 0.35));
  color: #7dd3fc;
}
.admin-dash-pill__ico--social {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.12), rgba(120, 53, 15, 0.28));
  color: #fcd34d;
}

/* ─────────────────────────────────────────────
   Light theme — кнопки, карточки статистики, иконки
   (приглушённый фиолетовый, мягкие тени, без «грязного» контраста)
───────────────────────────────────────────── */
html[data-theme="light"] .stat-card {
  box-shadow: 0 1px 3px rgba(60, 45, 80, 0.05);
}
html[data-theme="light"] .stat-card:hover {
  border-color: rgba(91, 74, 110, 0.2);
  box-shadow: 0 8px 28px rgba(60, 45, 80, 0.09);
  transform: translateY(-2px);
}

html[data-theme="light"] .stat-card--accent,
html[data-theme="light"] .stat-card--ok,
html[data-theme="light"] .stat-card--warn,
html[data-theme="light"] .stat-card--await,
html[data-theme="light"] .stat-card--ship,
html[data-theme="light"] .stat-card--users,
html[data-theme="light"] .stat-card--danger {
  border-color: rgba(91, 74, 110, 0.14);
}

html[data-theme="light"] .stat-card__glow {
  opacity: 0.05;
  filter: blur(30px);
}
html[data-theme="light"] .stat-card--accent .stat-card__glow,
html[data-theme="light"] .stat-card--ok .stat-card__glow,
html[data-theme="light"] .stat-card--warn .stat-card__glow,
html[data-theme="light"] .stat-card--await .stat-card__glow,
html[data-theme="light"] .stat-card--ship .stat-card__glow,
html[data-theme="light"] .stat-card--users .stat-card__glow,
html[data-theme="light"] .stat-card--danger .stat-card__glow,
html[data-theme="light"] .stat-card--orders-all .stat-card__glow {
  background: var(--brand);
}

html[data-theme="light"] .stat-card__sticker {
  border: 1px solid rgba(91, 74, 110, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 2px 8px rgba(60, 45, 80, 0.06);
  color: var(--purple-deep);
}

html[data-theme="light"] .stat-card__sticker--accent {
  background: linear-gradient(155deg, #f3eff9 0%, #e4dcf0 100%);
  color: #4a3f58;
}
html[data-theme="light"] .stat-card__sticker--ok {
  background: linear-gradient(155deg, #f0ecf6 0%, #e2dae8 100%);
  color: #4a3f58;
}
html[data-theme="light"] .stat-card__sticker--warehouse {
  background: linear-gradient(155deg, #eeebf5 0%, #e0d7ea 100%);
  color: #443a52;
}
html[data-theme="light"] .stat-card__sticker--users {
  background: linear-gradient(155deg, #f2ecf8 0%, #e6dbef 100%);
  color: #4a3f58;
}

html[data-theme="light"] .stat-card__sticker--await-skin {
  background: linear-gradient(155deg, #f5f0eb 0%, #ebe3dc 100%);
  color: #5c4d42;
}
html[data-theme="light"] .stat-card__sticker--ship-skin {
  background: linear-gradient(155deg, #eceef4 0%, #dfe4ec 100%);
  color: #454a58;
}
html[data-theme="light"] .stat-card__sticker--danger-skin {
  background: linear-gradient(155deg, #f6eaea 0%, #ead8d8 100%);
  color: #6b3d3d;
}
html[data-theme="light"] .stat-card__sticker--neutral {
  background: linear-gradient(155deg, #f1f0f3 0%, #e5e4e8 100%);
  color: #4a4652;
}
html[data-theme="light"] .stat-card__sticker--qty {
  background: linear-gradient(155deg, #f3eff9 0%, #e4dcf0 100%);
  color: #4a3f58;
}
html[data-theme="light"] .stat-card__sticker--money {
  background: linear-gradient(155deg, #edf3ef 0%, #dde6e0 100%);
  color: #3d4a42;
}

html[data-theme="light"] .btn {
  box-shadow: 0 2px 12px rgba(91, 74, 110, 0.16);
  border-color: rgba(91, 74, 110, 0.22);
}
html[data-theme="light"] .btn:hover {
  box-shadow: 0 4px 18px rgba(91, 74, 110, 0.2);
  filter: brightness(1.03);
}

html[data-theme="light"] .btn--ghost {
  border-color: rgba(91, 74, 110, 0.14);
}
html[data-theme="light"] .btn--ghost:hover {
  background: rgba(91, 74, 110, 0.06);
  border-color: rgba(91, 74, 110, 0.22);
  filter: none;
}

html[data-theme="light"] .btn--danger:hover,
html[data-theme="light"] .btn--ok:hover {
  filter: none;
}

html[data-theme="light"] .sidebar-toggle:hover {
  background: rgba(91, 74, 110, 0.08);
  border-color: rgba(91, 74, 110, 0.2);
}

html[data-theme="light"] .theme-toggle {
  border-color: rgba(91, 74, 110, 0.14);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(60, 45, 80, 0.05);
}
html[data-theme="light"] .theme-toggle:hover {
  background: var(--surface2);
  border-color: rgba(91, 74, 110, 0.2);
}

html[data-theme="light"] .admin-dashboard-actions .btn.admin-dash-pill {
  border-color: rgba(91, 74, 110, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(60, 45, 80, 0.05);
}
html[data-theme="light"] .admin-dashboard-actions .btn.admin-dash-pill:hover {
  border-color: rgba(91, 74, 110, 0.22);
  background: rgba(91, 74, 110, 0.05);
  filter: none;
}

html[data-theme="light"] .admin-dash-pill__ico {
  border-color: rgba(91, 74, 110, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: var(--purple-deep);
}
html[data-theme="light"] .admin-dash-pill__ico--accent {
  background: linear-gradient(145deg, #f3eff9 0%, #e4dcf0 100%);
  color: #4a3f58;
}
html[data-theme="light"] .admin-dash-pill__ico--users {
  background: linear-gradient(145deg, #f2ecf8 0%, #e6dbef 100%);
  color: #4a3f58;
}
html[data-theme="light"] .admin-dash-pill__ico--telegram {
  background: linear-gradient(145deg, #eceef4 0%, #dfe4ec 100%);
  color: #3d4a58;
}
html[data-theme="light"] .admin-dash-pill__ico--social {
  background: linear-gradient(145deg, #f3f0eb 0%, #e8e4dc 100%);
  color: #5a5348;
}

html[data-theme="light"] .btn--tiny:hover {
  background: rgba(91, 74, 110, 0.06);
  border-color: rgba(91, 74, 110, 0.16);
}

html[data-theme="light"] .filters--sidebar .btn:hover,
html[data-theme="light"] .catalog-price-filter__actions .btn:hover {
  border-color: rgba(91, 74, 110, 0.2);
}

html[data-theme="light"] .btn--coming {
  border-color: rgba(91, 74, 110, 0.28);
  color: var(--purple-deep);
}
html[data-theme="light"] .btn--coming:hover {
  background: rgba(91, 74, 110, 0.07);
}

html[data-theme="light"] .order-status-badge--awaiting_shipment {
  background: rgba(91, 74, 110, 0.08);
  color: #5d4e6e;
  border-color: rgba(91, 74, 110, 0.28);
}
html[data-theme="light"] .order-status-badge--shipped {
  background: rgba(91, 74, 110, 0.06);
  color: #4d5568;
  border-color: rgba(91, 74, 110, 0.24);
}

html[data-theme="light"] .btn--await.btn--ghost {
  border-color: rgba(91, 74, 110, 0.28);
  color: #6b5d78;
}
html[data-theme="light"] .btn--await.btn--ghost:hover {
  background: rgba(91, 74, 110, 0.07);
}
html[data-theme="light"] .btn--await.btn--active {
  background: rgba(91, 74, 110, 0.1);
  border-color: rgba(91, 74, 110, 0.35);
  color: #52465e;
}

html[data-theme="light"] .btn--ship.btn--ghost {
  border-color: rgba(91, 74, 110, 0.24);
  color: #555c70;
}
html[data-theme="light"] .btn--ship.btn--ghost:hover {
  background: rgba(91, 74, 110, 0.06);
}
html[data-theme="light"] .btn--ship.btn--active {
  background: rgba(91, 74, 110, 0.09);
  border-color: rgba(91, 74, 110, 0.32);
  color: #4a3f58;
}

html[data-theme="light"] .btn--tiny.btn--await {
  border-color: rgba(91, 74, 110, 0.26);
  color: #6b5d78;
}
html[data-theme="light"] .btn--tiny.btn--ship {
  border-color: rgba(91, 74, 110, 0.26);
  color: #555c70;
}

html[data-theme="light"] .site-about-footer {
  background: linear-gradient(180deg, rgba(245, 243, 250, 0.98) 0%, var(--surface) 42%);
}
