/* ============================================================
   LIMONI — стили интернет-магазина
   ============================================================ */
/* Manrope (как на jvo.ru) — вариативный, локально */
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-cyrillic.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --yellow: #f5d000;
  --yellow-dark: #e0be00;
  --yellow-soft: #fff8d6;
  --black: #1a1a1a;
  --gray-900: #2b2b2b;
  --gray-600: #6b6b6b;
  --gray-400: #9b9b9b;
  --gray-200: #e6e6e6;
  --gray-100: #f4f4f4;
  --white: #ffffff;
  --red: #e0453a;
  --green: #3d9950;
  /* Цвета магазина (настраиваются в админке → Настройка) */
  --btn-bg: var(--yellow);
  --btn-fg: var(--black);
  --accent: var(--yellow);
  --accent-soft: var(--yellow-soft);
  --accent-ink: var(--black);
  --accent-deep: var(--yellow-dark);
  --page-bg: var(--white);
  --ink: var(--black);
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --font: 'Manrope', -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-display: 'Manrope', -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--page-bg); font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.container { width: 100%; margin: 0 auto; padding: 0 40px; }

/* ---------- Шапка ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 32px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; line-height: 1; flex: none; }
.logo-img { height: 50px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.logo-word { font-family: var(--font-display, Georgia, serif); font-size: 26px; font-weight: 800; letter-spacing: .02em; color: var(--jv-heading, #1b2440); white-space: nowrap; }
.shopname-row { display: flex; gap: 10px; align-items: stretch; margin: 12px 0 4px; flex-wrap: wrap; }
.shopname-row .acct-input { flex: 1; min-width: 220px; margin: 0; }
.shopname-row .btn-primary { flex: none; }
/* Биржа (реальные разделы Партнёры на платформе) */
.mk-list { display: flex; flex-direction: column; }
.mk-row { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--gray-100, #eee); }
.mk-row:last-child { border-bottom: 0; }
.mk-thumb { flex: none; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--gray-100, #f2f2f2); display: flex; align-items: center; justify-content: center; }
.mk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mk-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.mk-name .mini-sub { display: block; font-weight: 400; margin-top: 2px; }
.mk-fix { display: flex; align-items: center; gap: 6px; flex: none; }
.mk-fix-input { width: 92px; margin: 0; padding: 8px 10px; }
.mk-fix-l { font-size: 12.5px; color: var(--gray-600, #777); white-space: nowrap; }
.mk-placed { flex: none; font-size: 13px; color: var(--gray-600, #777); min-width: 120px; text-align: right; }
.mk-toggle.on { border-color: #b7e3c8; background: #eaf7ef; color: #199a5b; }
.admin-mode .mk-toggle.on { border-color: #b7e3c8; background: #eaf7ef; color: #199a5b; }
@media (max-width: 640px) { .mk-row { flex-wrap: wrap; } .mk-name { flex-basis: 100%; } }
/* Инвайты */
.inv-picklist { max-height: 240px; overflow-y: auto; border: 1px solid var(--gray-200, #e5e5e5); border-radius: 12px; padding: 6px 4px; }
.inv-pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.inv-pick:hover { background: var(--gray-50, #fafafb); }
.inv-pick span:first-of-type { flex: 1; }
.inv-pick input { accent-color: var(--jv-violet, #7c5cff); }
.inv-card { border: 1px solid var(--gray-200, #e5e5e5); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.inv-card:last-child { margin-bottom: 0; }
.inv-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inv-card-top b { font-size: 15px; }
.inv-prod-line { margin-top: 8px; font-size: 13.5px; color: var(--gray-700, #444); }
.inv-actions { display: flex; gap: 10px; margin-top: 12px; }
/* Финансы */
.fin-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.fin-card { background: #fff; border: 1px solid var(--gray-200, #e5e5e5); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.fin-card.fin-avail { border-color: #b7e3c8; background: linear-gradient(0deg, rgba(28,138,77,.04), rgba(28,138,77,.04)), #fff; }
.fin-l { font-size: 13px; color: var(--gray-600, #777); }
.fin-v { font-family: var(--font-display, Georgia, serif); font-size: 28px; font-weight: 800; color: var(--jv-heading, #200131); }
.fin-card .btn-primary { margin-top: 8px; align-self: flex-start; }
.fin-break { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--gray-100, #eee); font-size: 14px; }
.fin-break:last-child { border-bottom: 0; }
.fin-ops { display: flex; flex-direction: column; }
.fin-op { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-100, #eee); font-size: 13.5px; }
.fin-op:last-child { border-bottom: 0; }
.fin-op-name { flex: 1; }
.fin-op b { min-width: 90px; text-align: right; }
.fin-op-st { font-size: 12px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.fin-op-st.is-avail { background: #e3f5ea; color: #199a5b; }
.fin-op-st.is-held { background: #fdf0d8; color: #a86b12; }
.fin-op-st.is-paid { background: var(--gray-100, #eee); color: var(--gray-600, #777); }
@media (max-width: 720px) { .fin-cards { grid-template-columns: 1fr; } }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.dash-stat { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 640px) { .dash-stats { grid-template-columns: 1fr; } }
/* Промо-баннеры */
.bn-drop { border: 2px dashed var(--gray-300, #d5d5dd); border-radius: 14px; min-height: 150px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--gray-600, #777); cursor: pointer; padding: 12px; overflow: hidden; transition: border-color .15s, background .15s; }
.bn-drop:hover, .bn-drop.drag { border-color: var(--jv-violet, #7c5cff); background: #faf7ff; }
.bn-drop img { max-width: 100%; max-height: 260px; border-radius: 10px; display: block; }
.bn-item { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--gray-100, #eee); }
.bn-item:last-child { border-bottom: 0; }
.bn-item.is-off { opacity: .55; }
.bn-thumb { width: 120px; height: 54px; object-fit: cover; border-radius: 8px; background: var(--gray-100, #f2f2f2); flex: none; border: 1px solid var(--gray-200, #e5e5e5); }
.bn-meta { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.bn-meta .mini-sub { display: block; font-weight: 400; margin-top: 2px; }
.bn-toggle.on { border-color: #b7e3c8; background: #eaf7ef; color: #199a5b; }
@media (max-width: 640px) { .bn-item { flex-wrap: wrap; } .bn-meta { flex-basis: 100%; } }
/* Партнёры на API: размещённые товары по магазинам + компактный список товаров инвайта */
.pl-group { margin-top: 14px; }
.pl-group:first-child { margin-top: 4px; }
.pl-group-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin: 0 0 4px; }
.pl-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--gray-100, #eee); }
.pl-thumb { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--gray-100, #f2f2f2); flex: none; }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.pl-name .mini-sub { display: block; font-weight: 400; margin-top: 1px; }
.inv-preal { display: flex; flex-direction: column; border: 1px solid var(--gray-200, #e5e5e5); border-radius: 11px; overflow-x: auto; }
.inv-preal-row { display: grid; grid-template-columns: 38px minmax(150px, 1fr) 92px 120px 120px; gap: 12px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--gray-100, #eee); font-size: 13px; min-width: 540px; }
.inv-preal-row:last-child { border-bottom: none; }
.inv-preal-row > span:nth-child(n+3) { text-align: right; white-space: nowrap; }
.inv-preal-head { position: sticky; top: 0; background: var(--white, #fff); font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--gray-400, #999); }
.inv-preal-name { white-space: normal; line-height: 1.25; }
.inv-note-foot { margin: 10px 0 0; font-size: 11.5px; color: var(--gray-500, #888); }
.inv-pick-name { flex: 1; }
.inv-stack-static { margin-top: 10px; }
.inv-card-sent .inv-top { flex-wrap: wrap; }
/* Получатели инвайта (композер, шаг 4) */
.sp-partner-list { border: 1px solid var(--gray-200, #e5e5e5); border-radius: 12px; overflow: hidden; max-height: 340px; overflow-y: auto; }
.sp-partner { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--gray-100, #eee); cursor: pointer; transition: background .14s; }
.sp-partner:last-child { border-bottom: none; }
.sp-partner:hover { background: var(--gray-50, #fafafa); }
.sp-partner.is-picked { background: #faf5ff; }
/* скрытый нативный чекбокс — как в демо, кликом управляет label */
.sp-partner input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.sp-partner .pc-box { position: relative; flex: 0 0 20px; width: 20px; height: 20px; min-width: 20px; box-sizing: border-box; border-radius: 6px; }
.sp-partner input:checked + .pc-box { background: var(--jv-violet, #c16ffb); border-color: var(--jv-violet, #c16ffb); }
.sp-partner input:checked + .pc-box::after { content: ''; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); box-sizing: border-box; }
.sp-partner .inv-logo-mark { width: 34px; height: 34px; min-width: 34px; font-size: 12px; }
.sp-p-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.sp-p-name .mini-sub { display: block; font-weight: 400; margin-top: 1px; }
.sp-partner input:checked ~ .sp-p-name { color: var(--jv-violet, #7c5cff); }
.admin-btn.is-open { border-color: var(--jv-violet, #c16ffb); color: var(--jv-violet, #7c5cff); background: #faf5ff; }
/* «Товары принятых партнёров» — вёрстка демо, реальные колонки */
.pm-table-ap .pm-row { grid-template-columns: 34px 56px minmax(160px, 1fr) 150px 120px 90px; min-width: 720px; min-height: 0; padding: 12px 10px; font-size: 13px; }
.pm-table-ap .ap-photo { width: 56px; height: 56px; border-radius: 10px; cursor: default; }
.pm-table-ap .ap-photo:hover { box-shadow: none; }
.pm-placed-mark { color: #199a5b; font-weight: 700; white-space: nowrap; }
.pm-linkbtn { background: none; border: none; padding: 0; color: var(--jv-violet, #7c5cff); font: inherit; cursor: pointer; text-decoration: underline; }
.pm-linkbtn:hover { color: var(--jv-heading, #200131); }
/* Вкладки внутри «Биржа товаров» */
.ex-tabs { display: flex; gap: 4px; margin: 0 0 18px; border-bottom: 1px solid var(--gray-200, #e5e5e5); }
.ex-tab { background: none; border: none; padding: 11px 18px; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--gray-500, #888); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; transition: color .14s, border-color .14s; }
.ex-tab:hover { color: var(--jv-heading, #200131); }
.ex-tab.active { color: var(--jv-violet, #7c5cff); border-bottom-color: var(--jv-violet, #c16ffb); }
.pm-subhead { margin-bottom: 14px; }
/* «Партнёрские товары в моём магазине» — 6 колонок (без фейкового прогноз/мес) */
.placed-real .placed-row { grid-template-columns: 26px 46px minmax(180px, 1fr) 160px 120px 120px; min-width: 640px; }
.placed-gh-sum i { font-style: normal; font-size: 11px; color: var(--gray-500, #888); margin-left: 4px; }
.has-topbanner.tb-dark .logo-word { color: #fff; }

.search-area { flex: 1; display: flex; gap: 10px; }
.search-wrap { flex: 1; position: relative; }

/* Кнопка и меню-гармошка «Каталог» */
.catalog-wrap { position: relative; }
.catalog-btn { display: flex; align-items: center; justify-content: center; width: 67px; height: 67px; flex: none; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; color: var(--gray-900); transition: border-color .15s, background .15s; }
.catalog-btn:hover { border-color: var(--gray-400); }
.catalog-wrap.open .catalog-btn { background: var(--gray-100); border-color: var(--gray-400); }
.catalog-dropdown { position: absolute; top: 75px; left: 0; width: 320px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: none; z-index: 300; max-height: 70vh; overflow-y: auto; }
.catalog-wrap.open .catalog-dropdown { display: block; }
.acc-group { border-bottom: 1px solid var(--gray-100); }
.acc-group:last-of-type { border-bottom: none; }
.acc-head { display: flex; align-items: center; }
.acc-link { flex: 1; padding: 12px 12px; font-weight: 700; font-size: 14.5px; border-radius: 8px; transition: background .12s; }
.acc-link:hover { background: var(--accent-soft); }
.acc-toggle { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--gray-600); border-radius: 8px; transition: transform .18s, background .12s; }
.acc-toggle:hover { background: var(--gray-100); }
.acc-group.expanded .acc-toggle { transform: rotate(180deg); }
.acc-subs { display: none; padding: 0 0 8px; }
.acc-group.expanded .acc-subs { display: block; }
.acc-sub { display: block; padding: 8px 12px 8px 24px; font-size: 13.5px; color: var(--gray-600); border-radius: 8px; transition: background .12s, color .12s; }
.acc-sub:hover { background: var(--accent-soft); color: var(--black); }
.acc-extra { border-top: 2px solid var(--gray-200); margin-top: 4px; padding-top: 4px; }
.acc-extra .acc-link { display: block; }
.search-input { width: 100%; height: 67px; border: 1px solid var(--gray-200); border-radius: 12px; padding: 0 24px; font-size: 15px; outline: none; background: var(--gray-100); transition: border-color .15s, background .15s; }
.search-input::placeholder { color: var(--gray-400); }
.search-input:hover { border-color: var(--gray-400); }
.search-input:focus { border-color: var(--black); background: var(--white); }

.search-dropdown { position: absolute; top: 75px; left: 0; right: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gray-200); max-height: 420px; overflow-y: auto; display: none; z-index: 200; }
.search-dropdown.open { display: block; }
.search-item { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--gray-100); transition: background .1s; }
.search-item:hover { background: var(--accent-soft); }
.search-item:last-child { border-bottom: none; }
.search-item .thumb { width: 48px; height: 48px; flex: none; border-radius: 8px; overflow: hidden; background: var(--gray-100); }
.search-item .thumb svg { width: 100%; height: 100%; }
.search-item-name { font-size: 13px; line-height: 1.35; }
.search-item-name mark { background: var(--accent-fill, var(--accent)); border-radius: 2px; padding: 0 1px; }
.search-item-price { font-weight: 700; white-space: nowrap; margin-left: auto; }
.search-empty, .search-all { padding: 14px 16px; font-size: 13.5px; color: var(--gray-600); }
.search-all { display: block; text-align: center; font-weight: 600; color: var(--black); background: var(--gray-100); }
.search-all:hover { background: var(--accent-fill, var(--accent)); }

.header-actions { display: flex; gap: 26px; margin-left: auto; }
.header-action { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--gray-900); position: relative; transition: color .15s; }
.header-action:hover { color: var(--accent-deep); }
.counter { position: absolute; top: -8px; right: -2px; background: var(--accent-fill, var(--accent)); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.counter[hidden] { display: none; }

.nav-sale { color: var(--red); }
.nav-new { color: var(--green); }

/* ---------- Общее ---------- */
.app { min-height: 60vh; }
.section { padding-top: 44px; padding-bottom: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.section-title { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.4px; }
.section-link { font-size: 14px; font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.section-link:hover { color: var(--accent-deep); }

.breadcrumbs { padding-top: 18px; font-size: 13px; color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--black); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 7px; color: var(--gray-400); }

/* ---------- Баннер-слайдер ---------- */
.hero { padding-top: 22px; }
.hero-slider { position: relative; border-radius: 20px; overflow: hidden; }
.hero-slide { display: none; min-height: 340px; padding: 56px 64px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; position: relative; }
.hero-slide.active { display: flex; }
.hero-slide.theme-gold { background: linear-gradient(115deg, #2b2417 0%, #4d3f1c 55%, #937722 100%); color: var(--white); }
.hero-slide.theme-yellow { background: linear-gradient(115deg, #f5d000 0%, #ffe767 60%, #fff4b3 100%); color: var(--black); }
.hero-slide.theme-rose { background: linear-gradient(115deg, #3d1f26 0%, #7c3a4b 60%, #c96f84 100%); color: var(--white); }
.hero-title { font-family: var(--font-display); font-size: 38px; line-height: 1.15; max-width: 640px; font-weight: 700; }
.hero-text { font-size: 16px; max-width: 520px; opacity: .85; }
.hero-cta { background: var(--accent-fill, var(--accent)); color: var(--accent-ink); font-weight: 700; font-size: 15px; padding: 14px 32px; border-radius: 10px; transition: transform .15s, background .15s; display: inline-block; }
.theme-yellow .hero-cta { background: var(--black); color: var(--white); }
.hero-cta:hover { transform: translateY(-2px); background: var(--accent-deep); }
.theme-yellow .hero-cta:hover { background: var(--gray-900); }
.hero-deco { position: absolute; right: -40px; top: -60px; width: 380px; height: 380px; border-radius: 50%; opacity: .16; background: radial-gradient(circle, #fff 0%, transparent 70%); pointer-events: none; }
/* Слайд-картинка (реальные баннеры limoni.ru) */
.hero-slide.img-slide { padding: 0; min-height: 0; display: none; }
.hero-slide.img-slide.active { display: block; }
.img-slide img { width: 100%; height: 350px; object-fit: cover; display: block; }

.hero-dots { position: absolute; bottom: 20px; left: 64px; display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .15s, width .15s; }
.theme-yellow ~ .hero-dots .hero-dot { background: rgba(0,0,0,.25); }
.hero-dot.active { background: var(--accent-fill, var(--accent)); width: 26px; border-radius: 6px; }

/* ---------- Категории ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { border-radius: var(--radius); padding: 26px 24px; min-height: 164px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; background: var(--gray-100); position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-photo { width: 92px; height: 92px; position: absolute; top: 16px; right: 16px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.cat-name { font-weight: 700; font-size: 17px; }
.cat-count { font-size: 13px; color: var(--gray-600); }
.cat-card:nth-child(1) { background: linear-gradient(150deg, var(--accent-soft), #ffef9e); }
.cat-card:nth-child(2) { background: linear-gradient(150deg, #fbe4e7, #f5c9d0); }
.cat-card:nth-child(3) { background: linear-gradient(150deg, #fff3c2, #ffe25e); }
.cat-card:nth-child(4) { background: linear-gradient(150deg, #e3e6ef, #c4c9da); }

/* ---------- Карточка товара ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; position: relative; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { position: relative; background: var(--gray-100); aspect-ratio: 9 / 12; display: block; }
.card-img svg { width: 100%; height: 100%; }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; color: var(--white); width: fit-content; }
.badge-hit { background: var(--accent-fill, var(--accent)); color: var(--accent-ink); }
.badge-new { background: var(--green); }
.badge-sale { background: var(--red); }
.badge-excl { background: var(--accent-fill, var(--accent)); color: var(--accent-ink); }
.card-fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; color: var(--gray-600); transition: color .15s, transform .15s; }
.card-fav:hover { transform: scale(1.12); color: var(--red); }
.card-fav.on { color: var(--red); }
.card-fav.on svg { fill: var(--red); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-series { font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--gray-600); }
.card-name { font-size: 13.5px; line-height: 1.4; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-name:hover { color: var(--accent-deep); }
.card-price-row { display: flex; align-items: baseline; gap: 10px; }
.card-price { font-size: 19px; font-weight: 800; }
.card-old { font-size: 13.5px; color: var(--gray-400); text-decoration: line-through; }
.card-discount { font-size: 12px; color: var(--red); font-weight: 700; }
.card-btn { background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: 14px; border-radius: 9px; height: 42px; transition: filter .15s, background .15s, transform .15s; }
.card-btn:hover { filter: brightness(.93); }
.card-btn.in-cart { background: var(--accent-fill, var(--accent)); color: var(--accent-ink); }
.card-stock { font-size: 12px; color: var(--green); font-weight: 600; }
.card-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--gray-900); white-space: nowrap; }
.rating .star { color: #ffb300; font-size: 14px; line-height: 1; }
.rating .rating-count { color: var(--gray-400); font-weight: 400; }

/* ---------- Фото товаров ---------- */
.p-photo { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.gallery-main .p-photo { padding: 0; background: transparent; object-fit: cover; }
.card-img .p-photo { padding: 0; background: transparent; object-fit: cover; }

/* Капсулы-фильтры под баннером */
.chips-section { padding-top: 22px; padding-bottom: 4px; }
.chip-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip-filter { padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--gray-200); background: var(--white); font-size: 14px; font-weight: 600; color: var(--gray-900); white-space: nowrap; transition: border-color .14s, background .14s, color .14s; }
.chip-filter:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.chip-accent { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.chip-accent:hover { background: var(--accent-fill, var(--accent)); color: var(--accent-ink); }
.chip-sep { width: 1px; height: 22px; background: var(--gray-200); margin: 0 4px; flex: none; }
@media (max-width: 640px) {
  /* Отступ от краёв экрана — 10px на мобильном */
  .container { padding: 0 10px; }
  /* Баннер не «склеивается» с капсулами (отступ над капсулами), а раздел «Бестселлеры» — с отступом */
  .hero { padding-top: 12px; }
  .chips-section { padding-top: 18px; padding-bottom: 10px; }
  .section { padding-top: 30px; }
  .section-head { margin-bottom: 16px; }
  /* Капсулы переносятся и умещаются на экране — без горизонтального скролла */
  .chip-row { flex-wrap: wrap; overflow: visible; gap: 8px; }
  .chip-filter { font-size: 13px; padding: 9px 15px; }
  .chip-sep { display: none; }
}
.gallery-main .zoomed, .gallery-thumb .zoomed { display: block; width: 100%; height: 100%; overflow: hidden; }
.zoomed .p-photo { transform: scale(1.7); transform-origin: center 42%; padding: 0; }

/* ---------- Преимущества ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.perk { background: var(--gray-100); border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.perk > div { min-width: 0; }
.perk-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--accent-fill, var(--accent)); display: flex; align-items: center; justify-content: center; color: var(--black); }
.perk-title { font-weight: 700; font-size: 14.5px; margin-bottom: 3px; }
.perk-text { font-size: 12.5px; color: var(--gray-600); }

/* ---------- Бренд-блок ---------- */
.brand-block { background: var(--black); color: var(--white); border-radius: 20px; padding: 48px 56px; display: flex; flex-direction: column; gap: 14px; }
.brand-block h2 { font-family: var(--font-display); font-size: 30px; }
.brand-block h2 span { color: var(--accent); }
.brand-block p { max-width: 760px; color: #c9c9c9; font-size: 15.5px; }

/* ---------- Новости ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s; }
.news-card:hover { box-shadow: var(--shadow); }
.news-date { font-size: 12.5px; color: var(--gray-400); }
.news-title { font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.news-text { font-size: 13.5px; color: var(--gray-600); }

/* ---------- Рассылка ---------- */
.newsletter { background: var(--accent-fill, var(--accent)); border-radius: 20px; padding: 40px 56px; display: flex; align-items: center; gap: 40px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 46px; }
.newsletter h3 { font-family: var(--font-display); font-size: 26px; }
.newsletter p { font-size: 13.5px; margin-top: 4px; max-width: 420px; }
.newsletter-form { display: flex; gap: 10px; flex: 1; max-width: 480px; }
.newsletter-form input { flex: 1; height: 48px; border-radius: 24px; border: 2px solid var(--black); padding: 0 20px; outline: none; background: var(--white); }
.newsletter-form button { background: var(--black); color: var(--white); font-weight: 700; border-radius: 10px; padding: 0 28px; height: 48px; transition: background .15s; }
.newsletter-form button:hover { background: var(--gray-900); }

/* ---------- Подвал ---------- */
.footer { background: var(--black); color: #bdbdbd; margin-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 46px 40px 34px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-logo { font-family: var(--font-display); font-size: 26px; letter-spacing: 5px; color: var(--white); font-weight: 700; }
.footer-logo::first-letter { color: var(--accent); }
.footer-slogan { color: var(--accent); font-size: 13.5px; }
.footer-title { color: var(--white); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.footer-col a { font-size: 13.5px; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-phone { color: var(--white); font-size: 18px; font-weight: 700; }
.footer-text { font-size: 12.5px; color: #8a8a8a; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #333; padding-top: 18px; padding-bottom: 22px; font-size: 12px; color: #8a8a8a; flex-wrap: wrap; gap: 8px; }

/* ---------- Страница каталога ---------- */
.catalog-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin: 22px 0 18px; }
.catalog-title { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.4px; }
.catalog-count { color: var(--gray-600); font-size: 14px; margin-left: 10px; }
.sort-select { height: 42px; border: 1.5px solid var(--gray-200); border-radius: 21px; padding: 0 16px; outline: none; background: var(--white); font-size: 13.5px; cursor: pointer; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { border: 1.5px solid var(--gray-200); border-radius: 18px; padding: 7px 16px; font-size: 13px; font-weight: 600; transition: all .15s; background: var(--white); }
.chip:hover { border-color: var(--accent-deep); }
.chip.active { background: var(--accent-fill, var(--accent)); border-color: var(--accent); color: var(--accent-ink); }
.empty-state { text-align: center; padding: 70px 0; color: var(--gray-600); }
.empty-state .big { font-size: 46px; margin-bottom: 12px; }
.empty-state h2 { font-family: var(--font-display); color: var(--black); margin-bottom: 8px; }

/* ---------- Страница товара (3 колонки) ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(300px, 1fr); gap: 36px; margin: 26px 0 10px; align-items: start; }
.gallery-main { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; background: var(--gray-100); aspect-ratio: 9 / 12; position: relative; }
.gallery-main svg { width: 100%; height: 100%; }
.g-view { width: 100%; height: 100%; }
.g-view svg { width: 100%; height: 100%; }

/* Стрелки листания — минималистичные, появляются при наведении */
.g-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 1px 5px rgba(0,0,0,.10); display: flex; align-items: center; justify-content: center; color: var(--gray-900); opacity: 0; pointer-events: none; transition: opacity .18s, background .15s; z-index: 3; }
.g-prev { left: 12px; }
.g-next { right: 12px; }
.gallery-main:hover .g-arrow { opacity: 1; pointer-events: auto; }
.g-arrow:hover { background: var(--white); }
.g-arrow:active { transform: translateY(-50%) scale(.94); }

/* Точки-индикатор вида */
.g-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 3; }
.g-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.18); cursor: pointer; transition: background .15s, width .15s; }
.g-dot.active { background: var(--gray-900); width: 18px; border-radius: 4px; }

.product-mid { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.product-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--gray-600); flex-wrap: wrap; }
.mid-head { font-size: 17px; font-weight: 800; margin-top: 16px; }
.spec-line { font-size: 14px; line-height: 1.55; }
.spec-line .lbl { color: var(--gray-600); }
.mid-desc { font-size: 14.5px; }

/* Степпер количества (появляется после добавления в корзину) */
.card-buy { display: flex; }
.card-buy > * { flex: 1; }
.qty-ctl { display: flex; align-items: center; justify-content: space-between; background: var(--accent-soft); border: 1.5px solid var(--accent); border-radius: 9px; height: 42px; overflow: hidden; }
.qc-btn { width: 52px; height: 100%; font-size: 20px; font-weight: 700; color: var(--black); transition: background .12s; }
.qc-btn:hover { background: var(--accent-fill, var(--accent)); }
.qc-val { font-weight: 800; font-size: 14.5px; }
.buy-row .qty-ctl { flex: 1; height: 50px; }

.buy-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 120px; }
.buy-card .buy-row { flex-wrap: wrap; }
.buy-card .buy-btn { max-width: none; min-width: 150px; }
.buy-now { height: 50px; border-radius: 9px; background: var(--accent-soft); font-weight: 800; font-size: 15px; color: var(--accent-deep); transition: filter .15s; }
.buy-now:hover { filter: brightness(.95); }
/* Срок доставки в карточке покупки */
.buy-delivery { text-align: center; font-size: 15px; color: var(--gray-600); padding: 2px 0; }
.buy-delivery b { color: var(--black); font-weight: 800; }
.product-title { font-family: var(--font-display); font-size: 25px; line-height: 1.3; font-weight: 800; letter-spacing: -0.3px; }
.product-price-row { display: flex; align-items: baseline; gap: 14px; }
.product-price { font-size: 30px; font-weight: 800; }
.product-old { font-size: 17px; color: var(--gray-400); text-decoration: line-through; }
.discount-pill { background: var(--red); color: var(--white); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 12px; }
.buy-row { display: flex; gap: 14px; align-items: stretch; }
.qty-val { width: 44px; text-align: center; font-weight: 700; font-size: 16px; }
.buy-btn { flex: 1; background: var(--btn-bg); color: var(--btn-fg); font-weight: 800; font-size: 16px; border-radius: 9px; height: 50px; transition: filter .15s, background .15s, transform .15s; max-width: 320px; }
.buy-btn:hover { filter: brightness(.93); }
.buy-btn.in-cart { background: var(--accent-fill, var(--accent)); color: var(--accent-ink); }
/* ---------- Корзина ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start; margin: 26px 0; }
.cart-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.cart-list { display: flex; flex-direction: column; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; border-bottom: 1px solid var(--gray-100); padding: 16px 0; align-items: center; }
.cart-item:last-child { border-bottom: none; padding-bottom: 0; }
.cart-item-date { font-size: 13px; font-weight: 700; margin-top: 6px; }
.cart-item .thumb { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--gray-100); }
.cart-item .thumb svg { width: 100%; height: 100%; }
.cart-item-name { font-size: 14px; line-height: 1.4; margin-bottom: 6px; }
.cart-item-name:hover { color: var(--accent-deep); }
.cart-item-series { font-size: 12px; color: var(--gray-600); }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item-price { font-size: 18px; font-weight: 800; }
.cart-item-old { font-size: 13px; color: var(--gray-400); text-decoration: line-through; margin-right: 8px; font-weight: 400; }
.cart-qty { display: flex; align-items: center; border: 1.5px solid var(--gray-200); border-radius: 18px; }
.cart-qty button { width: 34px; height: 34px; font-size: 17px; font-weight: 700; }
.cart-qty button:hover { background: var(--gray-100); border-radius: 18px; }
.cart-qty .qty-val { width: 34px; font-size: 14px; }
.cart-remove { color: var(--gray-400); font-size: 13px; transition: color .15s; }
.cart-remove:hover { color: var(--red); }

.summary { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; position: sticky; top: 140px; display: flex; flex-direction: column; gap: 12px; }
.summary h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 4px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--gray-600); }
.summary-row.discount { color: var(--red); }
.summary-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; color: var(--black); border-top: 1px solid var(--gray-200); padding-top: 14px; margin-top: 4px; }
.summary-btn { background: var(--btn-bg); color: var(--btn-fg); font-weight: 800; font-size: 15.5px; border-radius: 9px; height: 52px; width: 100%; transition: filter .15s, background .15s, transform .15s; }
.summary-btn:hover { filter: brightness(.93); }
.summary-note { font-size: 12px; color: var(--gray-400); text-align: center; }
/* Чип «Рекомендуем» у службы доставки (оформление заказа) */
.rec-chip { background: var(--accent-fill, var(--accent)); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 8px; vertical-align: 1px; white-space: nowrap; }

/* ---------- Блоки оформления заказа ---------- */
.form-block { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; background: var(--white); }
.form-block h3 { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: baseline; gap: 10px; }
.checkout-datahint { margin: -8px 0 16px; font-size: 13px; line-height: 1.45; color: var(--gray-600); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.stack { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--gray-600); }
.form-field input, .form-field textarea { height: 46px; border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 0 14px; outline: none; transition: border-color .15s; font-size: 14.5px; }
.form-field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 60px; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent-deep); }
.form-field input.invalid { border-color: var(--red); background: #fef2f1; }
.field-error { font-size: 12px; color: var(--red); display: none; }
.form-field.show-error .field-error { display: block; }

.option-list { display: flex; flex-direction: column; gap: 10px; }
.option { border: 1.5px solid var(--gray-200); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; transition: border-color .15s, background .15s; }
.option:hover { border-color: var(--accent-deep); }
.option.selected { border-color: var(--accent-deep); background: var(--accent-soft); }
.option input { margin-top: 3px; accent-color: var(--accent-deep); }
.option-title { font-weight: 700; font-size: 14.5px; }
.option-desc { font-size: 12.5px; color: var(--gray-600); }
.option-price { margin-left: auto; font-weight: 700; white-space: nowrap; font-size: 14px; }

/* ---------- Заказ оформлен ---------- */
.success-page { text-align: center; padding: 70px 0; max-width: 620px; margin: 0 auto; }
.success-icon { width: 92px; height: 92px; border-radius: 50%; background: var(--accent-fill, var(--accent)); margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; color: var(--accent-ink); }
.success-page h1 { font-family: var(--font-display); font-size: 34px; margin-bottom: 12px; }
.success-page .order-num { font-size: 17px; margin-bottom: 8px; }
.success-page .order-num b { background: var(--accent-soft); padding: 2px 10px; border-radius: 8px; }
.success-page p { color: var(--gray-600); margin-bottom: 26px; }

.btn-primary { display: inline-block; background: var(--btn-bg); color: var(--btn-fg); font-weight: 800; font-size: 15px; padding: 15px 36px; border-radius: 9px; transition: filter .15s, background .15s, transform .15s; }
.btn-primary:hover { filter: brightness(.93); }

/* ---------- Кабинет администратора ---------- */
.admin-mode .header { display: none; }
.admin-layout { position: relative; margin: 20px 0 40px; }
.admin-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-top-nav { display: flex; gap: 4px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 5px; }
.admin-top-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.admin-title { font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-400); padding: 2px 10px 8px; }
.admin-nav { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--gray-900); white-space: nowrap; transition: background .12s, color .12s; }
.admin-nav:hover { background: var(--gray-100); }
.admin-nav.active { background: var(--yellow); }
.admin-nav-back { color: var(--gray-600); padding: 4px 2px; }
.admin-nav-back:hover { background: none; color: var(--jv-heading, #200131); }

/* Выпадающее меню в навигации админки */
.admin-nav-dd { position: relative; }
.admin-nav-ddbtn { cursor: pointer; }
.admin-nav-dd.active > .admin-nav-ddbtn, .admin-nav-ddbtn.active { background: var(--yellow); }
.dd-caret { transition: transform .18s; flex: none; }
.admin-nav-dd:hover .dd-caret, .admin-nav-dd.open .dd-caret { transform: rotate(180deg); }
.admin-dd-menu { position: absolute; top: 100%; left: 0; margin-top: 6px; min-width: 250px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.16); padding: 6px; display: none; flex-direction: column; gap: 2px; z-index: 60; }
.admin-nav-dd:hover .admin-dd-menu, .admin-nav-dd.open .admin-dd-menu { display: flex; }
.admin-nav-dd::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 8px; } /* мост для наведения */
.admin-dd-item { padding: 11px 13px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--jv-heading, #200131); white-space: nowrap; }
.admin-dd-item:hover { background: var(--gray-100); }
.admin-dd-item.active { color: var(--jv-violet, #c16ffb); background: #faf5ff; }
.admin-count { background: var(--red); color: var(--white); font-size: 10.5px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.admin-logout-top { padding: 4px 2px; border: none; background: none; font-size: 13px; font-weight: 500; color: var(--gray-400); cursor: pointer; transition: color .15s; }
.admin-logout-top:hover { color: var(--red); }
.admin-content { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.admin-h2 { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.3px; }
.admin-hint { font-size: 12.5px; color: var(--gray-600); }
.admin-empty { color: var(--gray-600); font-size: 14px; }

.admin-login { max-width: 420px; margin: 60px auto; display: flex; flex-direction: column; gap: 14px; }
.admin-login .btn-primary { border: none; cursor: pointer; }

.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 21px; font-weight: 800; white-space: nowrap; }
.stat-label { font-size: 12.5px; color: var(--gray-600); }

.admin-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.mini-order { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--gray-100); font-size: 13.5px; color: var(--black); }
.mini-order:last-child { border-bottom: none; }
.mini-sub { font-size: 12px; color: var(--gray-600); }
.mini-right { margin-left: auto; text-align: right; font-size: 13px; white-space: nowrap; }
.mini-thumb { width: 42px; height: 42px; flex: none; border-radius: 8px; overflow: hidden; background: var(--gray-100); }
.mini-thumb img, .mini-thumb svg { width: 100%; height: 100%; object-fit: contain; }
.mini-name { flex: 1; min-width: 0; }

.status-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 9px; margin-top: 3px; }
.status-select { border: 1.5px solid var(--gray-200); border-radius: 9px; padding: 7px 10px; font-size: 13px; font-weight: 700; cursor: pointer; outline: none; }
.st-new { background: var(--yellow-soft); color: #8a6d00; }
.st-processing { background: #e3ecfb; color: #2b5eb4; }
.st-shipped { background: #e6def2; color: #61479c; }
.st-done { background: #ddf0e0; color: #2f7a3d; }
.st-cancelled { background: #fbe3e1; color: #b03a30; }

.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card { padding: 16px 20px; }
.order-head { display: grid; grid-template-columns: 150px 1fr 110px 110px 190px; gap: 14px; align-items: center; cursor: pointer; }
.order-details { border-top: 1px solid var(--gray-100); margin-top: 12px; padding-top: 8px; }
.order-meta { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--gray-600); padding-top: 10px; }
.order-meta b { color: var(--black); font-weight: 700; }

.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-toolbar .btn-primary { border: none; cursor: pointer; padding: 12px 22px; font-size: 14px; }
.admin-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 9px; padding: 12px 20px; font-size: 14px; font-weight: 700; color: var(--gray-900); cursor: pointer; transition: border-color .15s, background .15s; }
.admin-btn:hover { border-color: var(--gray-400); }
.admin-btn:disabled { opacity: .6; cursor: default; }
.admin-btn-ya { border-color: #f2d98a; background: #fff8e0; }
.admin-btn-ya:hover { border-color: #e0b93a; }
.admin-btn-ozon { border-color: #b3d3f5; background: #eef6ff; }
.admin-btn-ozon:hover { border-color: #5a9dea; }
.admin-btn-demo-del { border-color: #f0c9c5; background: #fdf1f0; color: var(--red); }
.admin-btn-demo-del:hover { border-color: var(--red); }
.admin-btn-demo-load { border-color: #b8e0c2; background: #eefaf0; color: #1f9d55; }
.admin-btn-demo-load:hover { border-color: #1f9d55; }
.np-select { height: 46px; border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 0 12px; outline: none; background: var(--white); font-size: 14.5px; }

/* ---- Расширенная форма нового товара ---- */
.np-page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.np-page-head .admin-btn { padding: 9px 16px; font-size: 13px; }
.np-layout { display: grid; grid-template-columns: 290px 1fr; gap: 30px; align-items: start; }
.np-left { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 20px; }
.np-form { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.np-form h3 { margin-top: 14px; }
.np-form h3:first-child { margin-top: 0; }
.np-dropzone { border: 2px dashed var(--gray-200); border-radius: var(--radius); padding: 26px 18px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; cursor: pointer; transition: border-color .15s, background .15s; font-size: 13px; color: var(--gray-600); }
.np-dropzone b { color: var(--black); font-size: 14px; }
.np-dropzone:hover, .np-dropzone.drag { border-color: var(--yellow-dark); background: var(--yellow-soft); }
.np-choose { padding: 9px 22px; font-size: 13.5px; margin-top: 4px; }
.np-url-row { display: flex; gap: 8px; }
.np-url-row input { flex: 1; height: 42px; border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 0 12px; font-size: 13px; outline: none; }
.np-url-row input:focus { border-color: var(--black); }
.np-url-row button { width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--gray-200); font-size: 17px; font-weight: 700; transition: border-color .15s; }
.np-url-row button:hover { border-color: var(--gray-400); }
.np-preview-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--gray-400); margin-top: 8px; }
.np-preview-card { pointer-events: none; max-width: 260px; }
.np-counter { color: var(--gray-400); font-weight: 400; float: right; }
.np-dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.np-dims4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.np-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.np-gen-wrap label { visibility: hidden; }
.cert-toggle { display: flex; border: 1.5px solid var(--gray-200); border-radius: 10px; overflow: hidden; width: fit-content; }
.cert-type { padding: 11px 20px; font-size: 13.5px; font-weight: 700; color: var(--gray-600); transition: background .12s, color .12s; }
.cert-type.active { background: var(--yellow); color: var(--black); }

@media (max-width: 1024px) {
  .np-layout { grid-template-columns: 1fr; }
  .np-left { position: static; }
  .np-dims, .np-dims4 { grid-template-columns: 1fr 1fr; }
}
.np-badges { display: flex; gap: 18px; align-items: center; height: 46px; font-size: 14px; }
.np-badges label { display: flex; gap: 7px; align-items: center; cursor: pointer; }
.np-badges input { accent-color: var(--yellow-dark); width: 16px; height: 16px; }
.np-photo-row { display: flex; gap: 14px; align-items: center; }
.np-photo-row input[type="file"] { font-size: 13.5px; }
.np-photo-preview { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--gray-200); background: var(--white); flex: none; }
.np-photo-preview img { width: 100%; height: 100%; object-fit: contain; }
.np-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.np-actions .btn-primary { border: none; cursor: pointer; padding: 12px 24px; font-size: 14px; }
.bulk-file-label { cursor: pointer; padding: 12px 24px; font-size: 14px; }
.prod-del { color: var(--gray-400); font-size: 12.5px; font-weight: 600; transition: color .12s; }
.prod-del:hover { color: var(--red); }
.prod-own { color: #61479c; font-weight: 700; }

/* ---- Биржа партнёрских товаров ---- */
.pm-intro { font-size: 16.5px; line-height: 1.55; color: var(--gray-900); max-width: 940px; }
.pm-intro-mt { margin-top: 4px; }

/* Биржа — размещение своих товаров (сторона поставщика) */
.pm-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pm-header-text { min-width: 0; }
.pm-place-btn { border: none; cursor: pointer; flex: none; padding: 13px 26px; font-size: 14.5px; white-space: nowrap; }
.exch-panel { display: flex; flex-direction: column; gap: 18px; border: 1.5px solid var(--jv-violet, #c16ffb); }
.exch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.exch-head h3 { font-size: 19px; font-weight: 800; color: var(--jv-heading, #200131); margin-bottom: 6px; }
.exch-head .admin-hint { max-width: 760px; font-size: 13.5px; line-height: 1.5; }
.pm-close-x { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--gray-100); color: var(--gray-600); font-size: 15px; cursor: pointer; transition: background .12s, color .12s; }
.pm-close-x:hover { background: var(--gray-200); color: var(--jv-heading, #200131); }
.exch-commission { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: #faf5ff; border: 1px solid var(--gray-200); border-radius: 12px; max-width: 620px; }
.exch-commission #exchange-apply-comm { flex: none; }
.exch-commission > label { font-size: 13.5px; font-weight: 700; color: var(--jv-heading, #200131); }
.exch-commission-input { display: inline-flex; align-items: center; gap: 8px; }
.exch-commission-input input { width: 96px; height: 42px; border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 0 12px; font-size: 16px; font-weight: 700; outline: none; transition: border-color .15s; }
.exch-commission-input input:focus { border-color: var(--jv-violet, #c16ffb); }
.exch-commission-input span { font-size: 16px; font-weight: 700; color: var(--gray-600); }
.exch-list { display: flex; flex-direction: column; gap: 2px; max-height: 380px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.exch-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; transition: background .1s; flex-wrap: wrap; }
.exch-item .exch-info { flex: 0 1 230px; }
.exch-item:hover { background: var(--gray-100); }
.exch-item.is-listed { opacity: .62; cursor: default; }
.exch-item .exch-check { position: absolute; opacity: 0; width: 0; height: 0; }
.exch-item .fp-box { flex: none; width: 20px; height: 20px; border: 2px solid var(--gray-200); border-radius: 6px; position: relative; transition: all .13s; }
.exch-item .exch-check:checked + .fp-box { background: var(--jv-violet, #c16ffb); border-color: var(--jv-violet, #c16ffb); }
.exch-item .exch-check:checked + .fp-box::after { content: ''; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.exch-commission-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Формула экономики и калькулятор по строке */
.exch-formula { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 14px; background: var(--gray-50, #fafafa); border: 1px dashed var(--gray-200); border-radius: 12px; margin-bottom: 14px; }
.ef-part { font-size: 12.5px; font-weight: 700; color: var(--jv-heading, #200131); background: var(--white); border: 1px solid var(--gray-200); border-radius: 20px; padding: 5px 11px; }
.ef-op { font-size: 14px; font-weight: 800; color: var(--gray-400); }
.ef-cost { color: #c0392b; border-color: #f2d3cf; background: #fdf3f2; }
.ef-fix { color: #6b3aa8; border-color: #e2d3f7; background: #f7f2ff; }
.ef-partner { color: #1f7a3d; border-color: #cfead8; background: #f0faf3; }
.exch-calc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.ec-cell { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; min-width: 74px; }
.ec-cell i { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--gray-400); white-space: nowrap; }
.ec-cell b { font-size: 14px; font-weight: 800; color: var(--jv-heading, #200131); white-space: nowrap; }
.ec-op { font-size: 13px; font-weight: 800; color: var(--gray-300, #cfcfd6); align-self: flex-end; padding-bottom: 2px; }
.ec-cost b { color: #c0392b; }
.ec-fix-inp { display: inline-flex; align-items: center; gap: 4px; }
.ec-fix-inp input { width: 78px; height: 34px; border: 1.5px solid var(--jv-violet, #c16ffb); border-radius: 8px; padding: 0 8px; font-size: 14px; font-weight: 800; color: #6b3aa8; background: #faf5ff; outline: none; -moz-appearance: textfield; }
.ec-fix-inp input:focus { box-shadow: 0 0 0 3px rgba(193,111,251,.22); }
.ec-fix-inp input:disabled { background: var(--gray-100); border-color: var(--gray-200); color: var(--gray-600); }
.ec-fix-inp span { font-size: 13px; font-weight: 800; color: var(--gray-400); }
.ec-partner b { color: #1f7a3d; font-size: 15px; }
.ec-partner.is-neg b { color: #d1373a; }
.exch-badge-inline { color: #1f9d55; font-weight: 700; }
@media (max-width: 900px) { .exch-calc { justify-content: flex-start; width: 100%; } }
.exch-commcell { flex: none; display: inline-flex; align-items: center; gap: 5px; }
.exch-commcell input { width: 62px; height: 38px; border: 1.5px solid var(--gray-200); border-radius: 9px; padding: 0 8px; font-size: 14.5px; font-weight: 700; text-align: center; outline: none; transition: border-color .15s; -moz-appearance: textfield; }
.exch-commcell input:focus { border-color: var(--jv-violet, #c16ffb); }
.exch-commcell span { font-size: 13px; font-weight: 700; color: var(--gray-400); }
.exch-item.is-listed .exch-commcell input { background: var(--gray-100); }
.exch-thumb { flex: none; width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--gray-100); }
.exch-thumb img, .exch-thumb svg { width: 100%; height: 100%; object-fit: contain; }
.exch-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.exch-name { font-size: 13.5px; font-weight: 600; color: var(--jv-heading, #200131); line-height: 1.3; }
.exch-meta { font-size: 11.5px; color: var(--gray-400); }
.exch-price { flex: none; text-align: right; font-size: 15px; font-weight: 800; color: var(--jv-heading, #200131); display: flex; flex-direction: column; gap: 2px; }
.exch-payout { font-size: 11.5px; font-weight: 600; color: #1f9d55; }
.exch-badge { flex: none; font-size: 11px; font-weight: 700; color: var(--jv-violet, #c16ffb); background: #f5edff; border-radius: 8px; padding: 4px 9px; }
.exch-foot { display: flex; gap: 10px; }
.exch-foot .btn-primary { border: none; cursor: pointer; padding: 12px 26px; font-size: 14px; }
.exch-listed-block { display: flex; flex-direction: column; gap: 14px; }
.exch-listed-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.exch-listed-head h3 { font-size: 18px; font-weight: 800; color: var(--jv-heading, #200131); }
.exch-listed-list { display: flex; flex-direction: column; }
.exch-listed-row { display: grid; grid-template-columns: 46px minmax(180px, 1fr) repeat(5, auto) auto; gap: 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--gray-100); }
.exch-listed-row:first-child { border-top: none; }
.exch-stat { text-align: center; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.exch-stat b { font-size: 16px; font-weight: 800; color: var(--jv-heading, #200131); }
.exch-stat span { font-size: 11px; color: var(--gray-400); }
.exch-remove { flex: none; padding: 7px 14px; border-radius: 8px; background: var(--gray-100); color: var(--gray-600); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .12s, color .12s; }
.exch-remove:hover { background: #fdeceb; color: var(--red); }
.pm-status-badge { flex: none; align-self: center; font-size: 11.5px; font-weight: 700; color: #1f9d55; background: #eafaef; border-radius: 8px; padding: 5px 11px; white-space: nowrap; }
.exch-listed-actions { display: flex; align-items: center; gap: 14px; justify-self: end; }
.exch-listed-actions .pm-placed-btn { color: var(--jv-violet, #c16ffb); }
.exch-listed-actions .pm-placed-btn:hover { color: var(--jv-heading, #200131); }
@media (max-width: 860px) {
  .exch-listed-row { grid-template-columns: 46px 1fr; row-gap: 10px; }
  .exch-listed-row .exch-stat { text-align: left; align-items: flex-start; }
  .exch-listed-row .exch-remove,
  .exch-listed-row .exch-listed-actions { grid-column: 1 / -1; justify-self: start; }
  .pm-status-badge { justify-self: start; }
}
/* Промо — загрузка баннеров */
.promo-grid { align-items: start; }
.promo-drop { position: relative; border: 2px dashed var(--gray-200); border-radius: 14px; min-height: 170px; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; background: var(--gray-100); transition: border-color .15s, background .15s; margin-bottom: 4px; }
.promo-drop:hover, .promo-drop.drag { border-color: var(--jv-violet, #c16ffb); background: #faf5ff; }
.promo-drop.has-img { border-style: solid; padding: 0; min-height: 0; }
.promo-drop-img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.promo-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--gray-600); text-align: center; padding: 26px; }
.promo-drop-empty b { color: var(--jv-heading, #200131); font-size: 15px; }
.promo-drop-empty span { font-size: 12.5px; color: var(--gray-400); }
.promo-drop-ico { color: var(--gray-400); }
/* Раздельная загрузка десктоп/мобайл */
.promo-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin-bottom: 4px; }
.promo-drop-block { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.promo-drop-label { display: flex; align-items: center; gap: 7px; height: 22px; font-size: 13px; white-space: nowrap; }
.promo-drop-label b { color: var(--jv-heading, #200131); }
.promo-drop-label small { color: var(--gray-400); font-size: 11.5px; }
.promo-drop-clear { margin-left: auto; font-size: 11.5px; color: var(--gray-400); cursor: pointer; text-decoration: underline; }
.promo-drop-clear:hover { color: var(--red); }
.promo-uploads .promo-drop { height: 190px; min-height: 0; }
.promo-uploads .promo-drop.has-img { padding: 0; }
.promo-uploads .promo-drop-img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.promo-guide { margin-top: 16px; padding: 16px 18px; background: #faf5ff; border: 1px solid var(--jv-violet-light, #e7dcf8); border-radius: 12px; }
.promo-guide h4 { font-size: 14px; font-weight: 800; color: var(--jv-heading, #200131); margin-bottom: 10px; }
.promo-guide ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.promo-guide li { font-size: 13px; color: var(--gray-600); line-height: 1.5; }
.promo-guide li b { color: var(--jv-heading, #200131); font-weight: 700; }
@media (max-width: 620px) { .promo-uploads { grid-template-columns: 1fr; } }
.promo-specs { margin-top: 16px; padding: 16px 18px; background: var(--gray-100); border-radius: 12px; }
.promo-specs h4 { font-size: 14px; font-weight: 800; color: var(--jv-heading, #200131); margin-bottom: 10px; }
.promo-specs ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.promo-specs li { font-size: 13px; color: var(--gray-600); line-height: 1.45; padding-left: 18px; position: relative; }
.promo-specs li:before { content: '•'; position: absolute; left: 4px; color: var(--jv-violet, #c16ffb); font-weight: 800; }
.promo-specs li b { color: var(--jv-heading, #200131); font-weight: 700; }
.promo-preview { display: flex; flex-direction: column; gap: 8px; }
.promo-dev-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--gray-600); margin-top: 6px; }
.promo-frame { border-radius: 16px; overflow: hidden; background: var(--gray-100); position: relative; display: flex; align-items: center; justify-content: center; }
.promo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-frame-desktop { width: 100%; aspect-ratio: 1200 / 350; }
.promo-frame-mobile-wrap { display: flex; justify-content: center; }
.promo-frame-mobile { width: 300px; max-width: 100%; aspect-ratio: 343 / 220; border-radius: 14px; box-shadow: 0 2px 10px rgba(32,1,49,.08); }
.promo-frame-empty { font-size: 12.5px; color: var(--gray-400); padding: 20px; text-align: center; }
.promo-list { display: flex; flex-direction: column; }
.promo-list-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--gray-100); }
.promo-list-item:first-child { border-top: none; }
.promo-list-thumb { width: 120px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--gray-100); }
.promo-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.promo-list-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.promo-list-info b { font-size: 14px; color: var(--jv-heading, #200131); line-height: 1.3; }
.promo-list-tag { font-size: 11.5px; font-weight: 700; color: #1f9d55; background: #eafaef; border-radius: 8px; padding: 5px 11px; white-space: nowrap; }
@media (max-width: 900px) { .promo-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .promo-list-item { grid-template-columns: 88px 1fr; } .promo-list-item .exch-remove, .promo-list-item .promo-list-tag { grid-column: 1 / -1; justify-self: start; } .promo-list-thumb { width: 88px; height: 40px; } }
/* Промо — выбор формата баннера */
/* «Сейчас на сайте» — явный статус, отдельно от редактирования */
.promo-livebar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 15px; margin-bottom: 14px; border-radius: 12px; background: #eafaf0; border: 1px solid #bfe8cf; }
.promo-livebar-eye { display: inline-flex; color: #1c8a4d; }
.promo-livebar-eye svg { width: 19px; height: 19px; }
.promo-livebar-label { font-size: 13.5px; font-weight: 700; color: #1c6b3d; }
.promo-livebar-chip { font-size: 14px; font-weight: 800; color: #fff; background: #1c8a4d; border-radius: 20px; padding: 4px 13px; }
.promo-livebar-chip.off { background: var(--gray-400); }
/* сегментированный выбор живого формата */
.promo-live-switch { display: inline-flex; padding: 3px; border-radius: 22px; background: #d6f0e0; gap: 3px; }
.pls-btn { padding: 6px 15px; border-radius: 20px; font-size: 13.5px; font-weight: 800; color: #2f7a52; cursor: pointer; transition: background .14s, color .14s, box-shadow .14s; white-space: nowrap; }
.pls-btn:hover:not(.on):not(:disabled) { color: #1c6b3d; }
.pls-btn.on { background: #1c8a4d; color: #fff; box-shadow: 0 2px 6px rgba(28, 138, 77, .28); }
.pls-btn:disabled { color: #9dc4ac; cursor: not-allowed; }
.promo-livebar-note { font-size: 12.5px; color: #3d7a56; }
.promo-variant-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.promo-variant-label { font-size: 14px; font-weight: 700; color: var(--jv-heading, #200131); }
.promo-variant-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.promo-variant-btn { position: relative; display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 16px; min-width: 300px; border: 1.5px solid var(--gray-200); border-radius: 12px; background: var(--white); cursor: pointer; transition: border-color .13s, background .13s, box-shadow .13s; }
.pv-schema { flex: none; width: 58px; height: 40px; border-radius: 8px; overflow: hidden; background: #f6f6fa; display: flex; align-items: center; justify-content: center; }
.pv-schema svg { width: 100%; height: 100%; display: block; }
.pv-text { display: flex; flex-direction: column; gap: 2px; }
.promo-variant-btn b { font-size: 14px; color: var(--jv-heading, #200131); }
.pv-text > span { font-size: 11.5px; color: var(--gray-500, #8a8a8a); }
.promo-variant-btn:hover { border-color: var(--gray-400); }
.promo-variant-btn.active { border-color: var(--jv-violet, #c16ffb); background: #faf5ff; box-shadow: 0 0 0 3px rgba(193, 111, 251, .16); }
.promo-variant-btn.is-live { border-color: #7fce9f; }
.promo-variant-btn.is-live.active { border-color: var(--jv-violet, #c16ffb); }
.pv-editing { position: absolute; top: -9px; left: 14px; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--jv-violet, #c16ffb); border-radius: 20px; padding: 2px 9px; }
/* статус формата (живой/скрыт/не размещён) — постоянный бейдж в углу карточки */
.pv-status { position: absolute; top: -9px; right: 14px; font-size: 10.5px; font-weight: 800; border-radius: 20px; padding: 2px 10px; white-space: nowrap; }
.pv-live { color: #fff; background: #1c8a4d; }
.pv-hidden { color: #8a6d00; background: var(--yellow-soft, #fdf3d0); }
.pv-off { color: var(--gray-600); background: var(--gray-100); }

/* Слайдер-баннеры карусели: поддержка мобильной версии через <picture> */
.img-slide picture { display: block; width: 100%; }
.promo-dev-label small { font-weight: 500; font-size: 11px; color: var(--gray-400); }
/* Слепые зоны на превью */
.promo-blind { position: absolute; inset: 0; display: flex; pointer-events: none; }
.promo-blind-side { height: 100%; background: rgba(18,0,28,.5); }
.promo-safe { height: 100%; box-sizing: border-box; border: 2px dashed #38d17a; display: flex; align-items: flex-end; justify-content: center; }
.promo-safe span { margin-bottom: 8px; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(31,157,85,.92); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
/* Мок шапки на превью верхнего баннера — 1:1 с шапкой сайта */
.promo-header-mock { position: absolute; top: 0; left: 0; right: 0; padding: 9px 16px; display: flex; align-items: center; gap: 11px; background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0)); pointer-events: none; z-index: 5; }
.phm-logo { flex: none; display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display, inherit); font-weight: 800; font-size: 16px; letter-spacing: 3px; color: #7a1650; }
.phm-logo small { font-size: 5.5px; letter-spacing: 1.4px; color: #6b6b6b; margin-top: 3px; font-weight: 700; }
.phm-cat { flex: none; width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #1a1a1a; }
.phm-cat svg { width: 16px; height: 16px; }
.phm-search { flex: 1; height: 28px; background: rgba(255,255,255,.85); border-radius: 8px; display: flex; align-items: center; padding: 0 12px; font-size: 11.5px; color: #9b9b9b; }
.phm-actions { flex: none; display: flex; gap: 12px; }
.phm-act { display: flex; flex-direction: column; align-items: center; gap: 1px; color: #1a1a1a; }
.phm-act svg { width: 17px; height: 17px; }
.phm-act i { font-style: normal; font-size: 7.5px; color: #333; }
.promo-frame-mobile .promo-header-mock { padding: 7px 9px; gap: 7px; }
.promo-frame-mobile .phm-act i, .promo-frame-mobile .phm-logo small { display: none; }
.promo-frame-mobile .phm-logo { font-size: 12px; letter-spacing: 2px; }
.promo-frame-mobile .phm-search { height: 22px; font-size: 10px; }
/* Группы в списке баннеров */
.promo-list-group { font-size: 13px; font-weight: 800; color: var(--jv-heading, #200131); margin: 16px 0 6px; display: flex; align-items: center; gap: 8px; }
.promo-list-group:first-child { margin-top: 4px; }
.promo-list-thumb-top { height: 60px; }

/* Верхний сквозной баннер на главной */
.topbanner { position: relative; display: block; width: 100%; height: 580px; overflow: hidden; }
.topbanner picture { display: block; width: 100%; height: 100%; }
.topbanner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.has-topbanner .header { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: none; box-shadow: none; }
.has-topbanner .catalog-btn { background: transparent; border-color: transparent; }
.has-topbanner .catalog-btn:hover { background: rgba(255, 255, 255, .18); border-color: transparent; }
/* Тёмный верх баннера — светлые логотип и значки */
.has-topbanner.tb-dark .catalog-btn,
.has-topbanner.tb-dark .header-action { color: #fff; }
.has-topbanner.tb-dark .header-action:hover { color: #fff; }
.has-topbanner.tb-dark .logo-img { filter: brightness(0) invert(1); }
.has-topbanner.tb-dark .logo-sub { color: rgba(255, 255, 255, .82); }
.has-topbanner.tb-dark .catalog-btn:hover { background: rgba(255, 255, 255, .22); }
@media (max-width: 640px) {
  /* Баннер — во всю ширину от самого верха, под шапкой (логотип/поиск/значки), целиком до чипсов */
  .topbanner { height: auto; }
  .topbanner picture, .topbanner img { height: auto; }
}

.pm-table-title { font-size: 19px; font-weight: 800; color: var(--jv-heading, #200131); margin-top: 4px; }
.pm-preview-modal { width: min(340px, 92vw); }
.pm-preview-wrap { display: flex; justify-content: center; padding: 4px 0 8px; }
.pm-preview-wrap .np-preview-card { max-width: 280px; width: 100%; }
.pm-wrap { padding: 8px 12px; }
.pm-table { overflow-x: auto; }
.pm-row { display: grid; grid-template-columns: 36px 96px minmax(120px, 1fr) 92px 74px 84px 116px 78px 58px 64px 62px 58px; gap: 16px; align-items: center; padding: 8px; font-size: 12.5px; min-height: 150px; border-radius: 12px; transition: background .16s ease; position: relative; min-width: 1080px; }
.pm-partners-num { font-weight: 700; color: var(--jv-heading, #200131); }
.pm-row:not(.pm-head) { box-shadow: inset 0 -1px 0 #f2f1f5; }
.pm-row:not(.pm-head):last-child { box-shadow: none; }
.pm-row:not(.pm-head):hover { background: #faf7ff; box-shadow: none; }
.pm-row:not(.pm-head):has(.pm-check:checked) { background: #f5edff; box-shadow: inset 0 0 0 1.5px #e2cdfb; }
.pm-head { font-size: 10px; color: #5b5570; font-weight: 700; text-transform: uppercase; letter-spacing: .2px; min-height: 46px; align-items: center; background: #f2eff8; border-radius: 10px; margin-bottom: 4px; padding: 6px 8px; }
.pm-head > span { display: flex; align-items: center; }
.pm-check-head { display: flex; align-items: center; justify-content: center; }
.pm-check-head input { width: 19px; height: 19px; accent-color: var(--yellow-dark); cursor: pointer; }
.pm-photo { width: 96px; height: 150px; border-radius: 12px; overflow: hidden; background: var(--gray-100); display: block; flex: none; cursor: zoom-in; transition: box-shadow .15s; }
.pm-photo:hover { box-shadow: 0 2px 10px rgba(193, 111, 251, .18); }
.pm-photo img { width: 100%; height: 100%; object-fit: cover; background: transparent; }
.pm-sort { display: inline-flex; align-items: center; gap: 3px; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; text-align: left; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: color .12s; }
.pm-sort:hover { color: var(--black); }
.pm-sort.active { color: var(--black); }
.pm-sort i { font-style: normal; font-size: 9px; opacity: .8; flex: none; width: 8px; text-align: center; }
.pm-sort-strong { color: var(--black); font-weight: 800; }
.pm-money { display: inline-block; background: var(--yellow-soft); border: none; color: #6b5900; font-weight: 700; font-size: 12.5px; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.pm-money-big { background: #e8f4d5; color: #4a6b12; font-weight: 800; font-size: 13px; padding: 5px 10px; }
.pm-bad { color: var(--red); font-weight: 700; }
.pm-placed { color: #2f7a3d; font-weight: 700; }

/* рекомендованная подборка */
.pm-reco-block { background: linear-gradient(150deg, var(--yellow-soft), #fffdf2); border-color: var(--yellow); display: flex; flex-direction: column; gap: 16px; }
.pm-reco-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pm-reco-head h3 { font-size: 19px; font-weight: 800; margin-bottom: 0; }
.pm-usp { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pm-usp span { background: var(--white); border: 1px solid var(--gray-200); border-radius: 11px; padding: 12px 15px; font-size: 14.5px; font-weight: 600; line-height: 1.4; display: flex; align-items: center; gap: 9px; }
.pm-usp span img { width: 30px; height: 30px; flex: none; object-fit: contain; }

/* поиск и фильтры биржи */
.pm-filterbox { display: flex; flex-direction: column; gap: 0; padding: 14px 20px; }
.pm-filterbar { display: flex; gap: 10px; align-items: center; }
.pm-q { flex: 1; max-width: 440px; height: 42px; font-size: 14px; }
.pm-filters-toggle { position: relative; }
.pm-filterbar .admin-btn { height: 42px; padding: 0 18px; }
.pm-shown { font-size: 13px; color: var(--gray-600); margin-left: auto; white-space: nowrap; }
/* Фильтры каталога биржи */
.mc-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-100, #eee); }
.mc-filter { display: flex; flex-direction: column; gap: 6px; }
.mc-filter > label { font-size: 11.5px; font-weight: 700; color: var(--gray-500, #888); }
.mc-filter-partner select { min-width: 200px; margin: 0; }
.mc-range { display: flex; align-items: center; gap: 6px; }
.mc-range input { width: 76px; padding: 9px 11px; border: 1px solid var(--gray-200, #e5e5e5); border-radius: 10px; font: inherit; font-size: 13px; background: var(--white); }
.mc-range input:focus { outline: none; border-color: var(--jv-violet, #c16ffb); }
.mc-range span { color: var(--gray-400, #aaa); }
.mc-reset { margin-left: auto; align-self: flex-end; }
@media (max-width: 720px) { .mc-reset { margin-left: 0; } .mc-filter-partner select { min-width: 160px; } }
/* Партнёры: фильтр по бренду + включатель всех товаров */
.pm-partners-row { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-100); }
.pm-partners-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-600); padding-top: 8px; flex: none; }
.pm-partners { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.pm-partner { display: flex; align-items: center; border: 1.5px solid var(--gray-200); border-radius: 999px; background: var(--white); transition: border-color .13s, background .13s; }
.pm-partner.sel { border-color: var(--jv-violet, #c16ffb); background: #faf5ff; }
.pm-partner-pick { display: flex; align-items: center; gap: 6px; padding: 6px 4px 6px 14px; font-size: 13px; color: var(--jv-heading, #200131); cursor: pointer; border-radius: 999px 0 0 999px; }
.pm-partner-pick:hover { color: var(--jv-violet, #c16ffb); }
.pm-partner-pick b { font-weight: 700; }
.pm-partner-pick span { font-size: 11.5px; color: var(--gray-400); font-weight: 700; }
.pm-partner.sel .pm-partner-pick span { color: var(--jv-violet, #c16ffb); }
.pm-partner-switch { flex: none; width: 34px; height: 20px; border-radius: 11px; background: var(--gray-200); margin: 0 7px; position: relative; cursor: pointer; transition: background .15s; }
.pm-switch-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.22); transition: left .15s; }
.pm-partner-switch.on { background: #1f9d55; }
.pm-partner-switch.on .pm-switch-knob { left: 16px; }
.pm-partner-switch.part { background: #f0b93a; }
.pm-partner-switch.part .pm-switch-knob { left: 9px; }

/* Выпадающий список партнёров (может быть тысячи) */
.pm-partners-dd { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pm-dd { position: relative; }
.pm-dd-trigger { display: inline-flex; align-items: center; gap: 10px; min-width: 200px; padding: 10px 14px; border: 1.5px solid var(--gray-200); border-radius: 10px; background: var(--white); font-size: 13.5px; font-weight: 600; color: var(--jv-heading, #200131); cursor: pointer; transition: border-color .14s; }
.pm-dd-trigger:hover { border-color: var(--gray-400); }
.pm-partners-dd.open .pm-dd-trigger { border-color: var(--jv-violet, #c16ffb); }
.pm-dd-trigger-label { flex: 1; text-align: left; }
.pm-dd-caret { color: var(--gray-400); transition: transform .18s; }
.pm-partners-dd.open .pm-dd-caret { transform: rotate(180deg); }
.pm-dd-panel { position: absolute; top: calc(100% + 6px); left: 0; width: 320px; max-width: 88vw; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.16); padding: 10px; display: none; z-index: 50; }
.pm-partners-dd.open .pm-dd-panel { display: block; }
.pm-dd-search { width: 100%; padding: 9px 12px; border: 1.5px solid var(--gray-200); border-radius: 9px; font-size: 13.5px; margin-bottom: 8px; }
.pm-dd-search:focus { outline: none; border-color: var(--jv-violet, #c16ffb); }
.pm-dd-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; }
.pm-dd-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; }
.pm-dd-item:hover { background: var(--gray-50, #fafafa); }
.pm-dd-check { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; cursor: pointer; }
.pm-dd-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.pm-dd-box { width: 18px; height: 18px; border: 2px solid var(--gray-300, #cfcfd6); border-radius: 5px; flex: none; position: relative; transition: background .14s, border-color .14s; }
.pm-dd-check input:checked + .pm-dd-box { background: var(--jv-violet, #c16ffb); border-color: var(--jv-violet, #c16ffb); }
.pm-dd-check input:checked + .pm-dd-box::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pm-dd-name { font-size: 13.5px; font-weight: 600; color: var(--jv-heading, #200131); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-dd-badge { flex: none; font-size: 11px; font-weight: 700; color: var(--gray-600); background: var(--gray-100); border-radius: 20px; padding: 2px 9px; }

/* «Партнёрские товары в моём магазине» — сводка-вау + массовое управление */
.placed-block { padding: 0; overflow: hidden; }
.placed-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 22px; background: linear-gradient(120deg, #f6faf4, #eef7f9); border-bottom: 1px solid var(--gray-100); }
.placed-hero-text h3 { font-size: 18px; font-weight: 800; color: var(--jv-heading, #200131); margin: 0; }
.placed-hero-text p { font-size: 13px; color: var(--gray-600); margin: 4px 0 0; max-width: 460px; }
.placed-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.placed-stat { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 12px 18px; text-align: center; min-width: 110px; }
.placed-stat b { display: block; font-size: 20px; font-weight: 800; color: var(--jv-heading, #200131); line-height: 1.1; }
.placed-stat span { display: block; font-size: 11px; color: var(--gray-500, #8a8a92); margin-top: 4px; max-width: 130px; }
.placed-stat-hero { background: linear-gradient(135deg, #1f9d55, #12b76a); border-color: transparent; box-shadow: 0 8px 22px rgba(18,183,106,.32); }
.placed-stat-hero b { color: #fff; font-size: 24px; }
.placed-stat-hero span { color: rgba(255,255,255,.9); }
.placed-bulkbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 22px 0; padding: 12px 16px; border: 1px solid var(--jv-violet, #c16ffb); background: #faf5ff; border-radius: 12px; }
.placed-bulkbar[hidden] { display: none; }
.placed-bulk-count { font-size: 14px; font-weight: 700; color: var(--jv-heading, #200131); }
.placed-bulk-count b { color: var(--jv-violet, #a23ce0); }
.placed-bulk-btn { padding: 8px 15px; border-radius: 9px; font-size: 13px; font-weight: 700; color: #fff; background: var(--jv-violet, #c16ffb); cursor: pointer; transition: transform .12s, box-shadow .14s; }
.placed-bulk-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(193,111,251,.35); }
.placed-bulk-danger { background: #d1373a; }
.placed-bulk-danger:hover { box-shadow: 0 5px 14px rgba(209,55,58,.3); }
.placed-bulk-clear { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--gray-600); background: var(--white); border: 1px solid var(--gray-200); border-radius: 9px; padding: 8px 13px; cursor: pointer; }
.placed-bulk-clear:hover { background: var(--gray-100); }
/* Поиск и группировка размещённых товаров по партнёру */
.placed-search { display: flex; align-items: center; gap: 14px; padding: 14px 22px 0; }
.placed-search .admin-search { flex: 1 1 auto; max-width: 380px; }
.placed-gh { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; margin-top: 4px; border-radius: 9px; background: var(--gray-50, #fafafa); cursor: pointer; text-align: left; transition: background .14s; }
.placed-gh:hover { background: var(--gray-100); }
.placed-gh-chev { flex: none; font-size: 11px; color: var(--gray-400); transition: transform .18s; }
.placed-gh.is-open .placed-gh-chev { transform: rotate(180deg); }
.placed-gh-name { font-family: var(--font-display); font-size: 14.5px; font-weight: 800; letter-spacing: -0.1px; }
.placed-gh-count { flex: 1 1 auto; font-size: 12px; color: var(--gray-600); }
.placed-gh-sum { flex: none; font-size: 13px; font-weight: 800; color: #3d6b12; }
.placed-gh-sum i { font-style: normal; font-weight: 600; font-size: 11px; color: var(--gray-400); margin-left: 4px; }
.placed-group-rows[hidden] { display: none; }
.placed-list { padding: 8px 22px 20px; overflow-x: auto; }
.placed-row { display: grid; grid-template-columns: 26px 46px minmax(200px, 1fr) 150px 96px 120px 150px; gap: 16px; align-items: center; padding: 11px 0; border-top: 1px solid var(--gray-100); font-size: 13.5px; min-width: 820px; }
.placed-row.placed-head { border-top: none; font-size: 12px; color: var(--gray-600); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.placed-row.is-selected { background: #faf5ff; border-radius: 8px; }
.placed-badge { display: inline-block; font-size: 12px; font-weight: 700; color: #1f9d55; background: #eafaef; border-radius: 8px; padding: 4px 10px; }
.placed-money { font-weight: 700; color: var(--jv-heading, #200131); }
.placed-money-big { color: #4a6b12; font-weight: 800; }
.placed-actions { display: flex; gap: 8px; justify-content: flex-end; }
.placed-actions .pm-placed-btn { text-decoration: none; color: var(--jv-violet, #c16ffb); font-weight: 700; padding: 6px 12px; border-radius: 8px; background: #faf5ff; margin: 0; }
.placed-actions .pm-placed-btn:hover { background: #f0e4ff; color: var(--jv-heading, #200131); }
@media (max-width: 700px) { .placed-hero { flex-direction: column; align-items: flex-start; } }

.pm-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-100); }
.pm-range label { display: block; font-size: 11.5px; font-weight: 600; color: var(--gray-600); margin-bottom: 5px; }
.pm-range-inputs { display: flex; align-items: center; border: 1.5px solid var(--gray-200); border-radius: 9px; overflow: hidden; transition: border-color .15s; }
.pm-range-inputs:focus-within { border-color: var(--black); }
.pm-range-inputs span { color: var(--gray-200); font-size: 12px; }
.pm-range-inputs input { width: 100%; height: 38px; border: none; padding: 0 10px; font-size: 13px; outline: none; -moz-appearance: textfield; }
.pm-range-inputs input::-webkit-outer-spin-button,
.pm-range-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pm-filters-reset { grid-column: -2 / -1; height: 38px; padding: 0 16px; font-size: 13px; white-space: nowrap; color: var(--gray-600); }
.pm-filters-reset:hover { color: var(--red); border-color: #f0c9c5; }
.pm-reco-mark { color: var(--yellow-dark); font-weight: 700; }
.pm-reco-head .btn-primary { border: none; cursor: pointer; padding: 12px 22px; font-size: 14px; flex: none; }
.pm-reco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.pm-reco-card { position: relative; background: var(--white); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; border: 2px solid transparent; box-shadow: 0 2px 12px rgba(32, 1, 49, .06); transition: transform .18s ease, box-shadow .18s ease, border-color .15s; }
.pm-reco-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(193, 111, 251, .22); }
.pm-reco-check { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.pm-reco-badge { position: absolute; top: 11px; right: 11px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 1.5px solid var(--gray-200); display: flex; align-items: center; justify-content: center; color: transparent; box-shadow: 0 1px 5px rgba(0, 0, 0, .1); transition: background .15s, border-color .15s, color .15s, transform .15s; }
.pm-reco-card:hover .pm-reco-badge { border-color: #c16ffb; }
.pm-reco-card:has(.pm-reco-check:checked) { border-color: #c16ffb; box-shadow: 0 12px 32px rgba(193, 111, 251, .3); }
.pm-reco-card:has(.pm-reco-check:checked) .pm-reco-badge { background: #c16ffb; border-color: #c16ffb; color: #fff; transform: scale(1.06); }
.pm-reco-photo { aspect-ratio: 9 / 12; background: var(--gray-100); }
.pm-reco-photo img { width: 100%; height: 100%; object-fit: cover; }
.pm-reco-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; }
.pm-reco-name { font-size: 12.5px; line-height: 1.35; font-weight: 600; color: var(--jv-heading, #200131); min-height: 34px; }
.pm-reco-profit { font-size: 18px; font-weight: 800; color: #4a6b12; letter-spacing: -.3px; }
.pm-reco-profit small { font-size: 12px; font-weight: 600; color: var(--gray-600); letter-spacing: 0; }
.pm-reco-stats { font-size: 12px; color: var(--gray-600); }
.pm-reco-chip { font-size: 12px; }
.pm-placed-btn { cursor: pointer; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; margin-top: 2px; }
.pm-placed-btn:hover { color: #1d5527; }

/* плавающая панель выбранных товаров */
.pm-bar { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--black); color: var(--white); border-radius: 14px; padding: 12px 16px 12px 22px; display: flex; align-items: center; gap: 16px; z-index: 500; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.pm-bar[hidden] { display: none; }
#pm-bar-count { font-weight: 700; font-size: 14px; white-space: nowrap; }
.pm-bar .btn-primary { border: none; cursor: pointer; padding: 10px 20px; font-size: 13.5px; }
.pm-bar .admin-btn { background: transparent; border-color: #555; color: #ccc; padding: 10px 16px; font-size: 13px; }
.pm-bar .admin-btn:hover { border-color: #999; color: var(--white); }

/* тултипы с описанием показателей */
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 9px); left: 0; width: 210px; background: var(--black); color: var(--white); padding: 9px 12px; border-radius: 9px; font-size: 12px; font-weight: 400; line-height: 1.45; text-transform: none; letter-spacing: 0; white-space: normal; z-index: 60; box-shadow: var(--shadow); pointer-events: none; }
.tip-right:hover::after { left: auto; right: 0; }
.pm-check-head:hover::after { left: 0; right: auto; }
/* Заголовки таблицы биржи прокручиваемые (overflow) — показываем подсказку СНИЗУ, чтобы не обрезалась */
/* в шапке таблиц тултип раскрываем вниз: контейнер с overflow-x режет всё, что выше */
.pm-head [data-tip]:hover::after, .mp-thead [data-tip]:hover::after { bottom: auto; top: calc(100% + 9px); }

/* чекбокс «В магазин» */
.pm-check-head { cursor: default; }
.pm-check-cell { display: flex; justify-content: center; }
.pm-check { width: 21px; height: 21px; accent-color: var(--yellow-dark); cursor: pointer; }

/* модальное окно размещения */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .42); z-index: 600; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--white); border-radius: 16px; padding: 24px 26px; width: min(600px, 94vw); max-height: 92vh; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 18px 60px rgba(0, 0, 0, .25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h3 { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.modal-x { width: 34px; height: 34px; border-radius: 50%; font-size: 15px; color: var(--gray-600); transition: background .12s; flex: none; }
.modal-x:hover { background: var(--gray-100); }
.pm-modal-product { display: flex; gap: 14px; align-items: center; background: var(--gray-100); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.6; }
.pm-modal-product .pm-photo { background: var(--gray-100); }
/* Подтверждение размещения: список товаров + согласие */
/* Конструктор инвайта: слева шаги, справа живое превью карточки получателя */
.pm-header-actions { display: flex; gap: 10px; flex: none; flex-wrap: wrap; }
.ic-panel { display: flex; flex-direction: column; gap: 18px; }
.ic-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ic-head h3 { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -0.2px; margin-bottom: 4px; }
.ic-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ic-form { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ic-step { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ic-step-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ic-step-head b { font-size: 15px; font-weight: 800; }
.ic-step-head .admin-hint { flex: 1 1 200px; font-size: 12.5px; }
.ic-step-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--jv-violet, #c16ffb); color: #fff; font-size: 12px; font-weight: 800; }
.ic-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ic-logo-drop { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 132px; height: 56px; flex: none; padding: 0 10px; border: 1.5px dashed var(--gray-300, #cfcfd6); border-radius: 11px; background: var(--white); cursor: pointer; font-size: 12px; font-weight: 700; color: var(--gray-400); transition: border-color .14s; overflow: hidden; }
.ic-logo-drop:hover { border-color: var(--jv-violet, #c16ffb); }
.ic-logo-drop img { max-width: 100%; max-height: 40px; object-fit: contain; }
.ic-logo-edit { position: absolute; inset: auto 0 0 0; padding: 2px 0; background: rgba(0, 0, 0, .62); color: #fff; font-size: 10px; text-align: center; opacity: 0; transition: opacity .14s; }
.ic-logo-drop:hover .ic-logo-edit { opacity: 1; }
.ic-brand-fields { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ic-textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--gray-200); border-radius: 11px; font: inherit; font-size: 13.5px; line-height: 1.45; resize: vertical; }
.ic-textarea:focus { outline: none; border-color: var(--jv-violet, #c16ffb); }
.ic-counter { align-self: flex-end; font-size: 11.5px; color: var(--gray-400); }
.ic-fixbar { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; padding: 11px 13px; border-radius: 11px; background: var(--jv-violet-soft, #f7f0ff); }
.ic-fixbar label { font-size: 13px; font-weight: 700; }
/* Калькуляция — одной строкой во всю ширину, без переносов */
.ic-list { max-height: 340px; overflow-y: auto; overflow-x: auto; }
.ic-list .exch-item { flex-wrap: nowrap; min-width: 940px; }
.ic-list .exch-calc { flex-wrap: nowrap; gap: 10px; }
.ic-list .exch-info { flex: 1 1 190px; min-width: 150px; }
.exch-item.is-picked { background: #faf5ff; }
.ic-partners { display: flex; flex-direction: column; gap: 10px; }
.ic-partners-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.ic-partners-bar .admin-search { flex: 1 1 180px; }
.ic-partners-list { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; padding: 6px; border: 1px solid var(--gray-200); border-radius: 11px; }
/* сетка строки партнёра: бокс, логотип, товаров, мес, 3 мес, год.
   input скрыт через position:absolute и в поток грида не входит — в шапке столько же ячеек */
.ic-partner { position: relative; display: grid; grid-template-columns: 19px minmax(180px, 1fr) 74px 116px 108px 108px; gap: 12px; align-items: center; padding: 11px 9px; border-radius: 8px; cursor: pointer; font-size: 13px; transition: background .14s; }
.ic-partner-head { padding: 7px 9px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--gray-400); cursor: default; }
.ic-partner-head:hover { background: none; }
.ic-p-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ic-p-name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-partner .inv-logo { height: 42px; flex: none; }
.ic-partner .inv-logo-mark { padding: 0 12px; max-width: 140px; font-size: 12.5px; }
.ic-partner .inv-logo-file { padding: 0 9px; min-width: 60px; justify-content: center; }
.ic-partner .inv-logo-file img { height: 26px; max-width: 116px; }
.ic-p-num { font-weight: 700; }
.ic-p-stat b { font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.ic-p-hero b { color: #3d6b12; }
.ic-partner:hover { background: var(--gray-50, #fafafa); }
.ic-partner input { position: absolute; opacity: 0; pointer-events: none; }
.ic-partner .pc-box { position: relative; flex: none; }
.ic-partner input:checked + .pc-box { background: var(--jv-violet, #c16ffb); border-color: var(--jv-violet, #c16ffb); }
.ic-partner input:checked + .pc-box::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ic-partner-name { flex: 1 1 auto; font-weight: 600; }
/* Превью — широкой полосой сверху: партнёр видит карточку именно такой ширины */
.ic-preview { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.ic-preview-label { font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--gray-400); }
.ic-card { background: var(--white); box-shadow: 0 8px 30px rgba(0, 0, 0, .08); }
.ic-card .inv-actions button { pointer-events: none; opacity: .55; }
.ic-card-comment { padding: 10px 13px; border-left: 3px solid var(--jv-violet, #c16ffb); border-radius: 0 9px 9px 0; background: var(--gray-50, #fafafa); font-size: 13px; line-height: 1.45; font-style: italic; }
.ic-card-stack { display: flex; align-items: center; }
.ic-card-stack img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--white); border: 2px solid var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ic-card-stack img + img, .ic-card-stack .inv-more { margin-left: -12px; }
.ic-card-empty { padding: 10px 0; font-size: 12.5px; }
.ic-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--gray-100); }
.ic-foot-hint { flex: 1 1 200px; }
/* Таблица партнёров, продающих мои товары */
.mp-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.mp-head h3 { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.mp-q { flex: 1 1 200px; max-width: 300px; }
.mp-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: 12px; }
.mp-table { min-width: 1080px; }
.mp-row { display: grid; grid-template-columns: minmax(190px, 1.4fr) 92px 92px 92px 110px 96px 110px 150px; gap: 12px; align-items: center; padding: 14px 14px; border-top: 1px solid var(--gray-100); font-size: 13.5px; }
.mp-row:not(.mp-thead) > span:not(.mp-partner) { text-align: right; }
.mp-row.mp-thead { border-top: none; background: var(--gray-50, #fafafa); border-radius: 12px 12px 0 0; padding: 10px 14px; }
.mp-partner { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mp-brand-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-thead > span { display: flex; justify-content: flex-end; }
.mp-thead > span:first-child { justify-content: flex-start; }
.mp-row:not(.mp-thead):hover { background: var(--gray-50, #fafafa); }
.mp-partner .inv-logo { height: 44px; flex: none; }
.mp-partner .inv-logo-mark { padding: 0 12px; max-width: 150px; font-size: 13px; }
.mp-partner .inv-logo-file { padding: 0 10px; min-width: 64px; justify-content: center; }
.mp-partner .inv-logo-file img { height: 28px; max-width: 120px; }

/* Отправленные инвайты */
.si-block { display: flex; flex-direction: column; gap: 14px; }
/* Вкладки по статусам отправленных инвайтов */
.si-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.si-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--gray-200, #e5e5e5); background: var(--white); font: inherit; font-size: 13.5px; font-weight: 700; color: var(--gray-600, #666); cursor: pointer; transition: background .14s, border-color .14s, color .14s; }
.si-tab:hover { border-color: var(--jv-violet, #c16ffb); color: var(--jv-heading, #200131); }
.si-tab.active { background: var(--jv-heading, #200131); border-color: var(--jv-heading, #200131); color: #fff; }
.si-tab-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gray-100, #f0f0f2); font-size: 11.5px; font-weight: 800; color: var(--gray-600, #666); }
.si-tab.active .si-tab-n { background: rgba(255, 255, 255, .22); color: #fff; }
.si-list { display: flex; flex-direction: column; gap: 12px; }
.si-row { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--gray-200); border-radius: 14px; background: var(--white); }
.si-main { display: flex; align-items: center; gap: 16px; }
/* Логотип — не прилипает: квадрат с отступом, вписан по contain, есть фолбэк-инициалы */
.si-logo { flex: none; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--gray-200); border-radius: 13px; background: var(--white); overflow: hidden; }
.si-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.si-logo-mark { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: .5px; }
.si-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.si-brand { font-size: 16px; font-weight: 800; color: var(--jv-heading, #200131); }
.si-meta { font-size: 12.5px; color: var(--gray-500, #888); }
.si-comment { font-size: 13px; font-style: italic; color: var(--gray-600); }
/* Стопка товаров — крупная, «веером», WOW при наведении */
.si-stack { flex: none; display: flex; align-items: center; gap: 14px; background: none; border: none; cursor: pointer; padding: 6px 12px 6px 20px; border-radius: 14px; transition: background .16s; }
.si-stack:hover { background: #faf5ff; }
.si-stack-deck { display: flex; align-items: center; }
.si-stack-card { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--white); border: 3px solid var(--white); box-shadow: 0 4px 12px rgba(30, 10, 60, .18); transform: rotate(calc((var(--i) - 1.5) * 6deg)); transition: transform .22s cubic-bezier(.2,.9,.3,1.3), margin-left .22s; }
.si-stack-card + .si-stack-card, .si-stack-deck .si-stack-more { margin-left: -22px; }
.si-stack-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.si-stack:hover .si-stack-card { transform: rotate(0) translateY(-3px); margin-left: -6px; }
.si-stack:hover .si-stack-card:first-child { margin-left: 0; }
.si-stack-more { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--jv-violet, #c16ffb), #7c5cff); color: #fff; font-weight: 800; font-size: 15px; border: 3px solid var(--white); box-shadow: 0 4px 12px rgba(124, 92, 255, .32); }
.si-stack-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--jv-violet, #7c5cff); white-space: nowrap; }
.si-stack-label .si-chev { font-size: 11px; transition: transform .2s; }
.si-stack.is-open .si-stack-label .si-chev { transform: rotate(180deg); }
.si-revoke-all { flex: none; }
@media (max-width: 720px) { .si-main { flex-wrap: wrap; } .si-stack { padding-left: 6px; } }
/* «Кому отправлен» — крупные чипы со статусом и кнопкой отзыва */
.si-recips { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding-top: 13px; border-top: 1px dashed var(--gray-200); }
.si-to-label { font-size: 11px; font-weight: 800; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; margin-right: 2px; }
.si-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 11px; border-radius: 999px; font-size: 13.5px; }
.si-chip-dot { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; font-weight: 800; line-height: 1; color: #fff; flex: none; }
.si-chip-name { font-weight: 700; }
.si-chip-status { font-size: 12px; font-weight: 600; opacity: .7; }
.si-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; border-radius: 50%; font-size: 17px; line-height: 1; border: none; background: rgba(0, 0, 0, .07); color: inherit; cursor: pointer; transition: background .14s, color .14s, transform .1s; }
.si-chip-x:hover { background: #d1373a; color: #fff; transform: scale(1.08); }
.si-chip-accepted { background: #e6f7ee; color: #12703f; }
.si-chip-accepted .si-chip-dot { background: #1c8a4d; }
.si-chip-declined { background: #fbe7e6; color: #a72f28; }
.si-chip-declined .si-chip-dot { background: #d1373a; }
.si-chip-pending { background: #fff3e0; color: #a2650a; }
.si-chip-pending .si-chip-dot { background: #ef9d19; }
.si-chip-revoked { background: var(--gray-100, #f2f2f4); color: var(--gray-600, #777); }
.si-chip-revoked .si-chip-dot { background: var(--gray-400, #b0b0b8); }
.si-chev { font-size: 11px; color: var(--gray-400); transition: transform .18s; }
.si-terms { margin-top: 2px; overflow-x: auto; border: 1px solid var(--gray-200); border-radius: 11px; }
.si-terms[hidden] { display: none; }
.si-terms-head, .si-terms-row { grid-template-columns: 38px minmax(180px, 1fr) 92px 122px 108px 104px 104px 122px; min-width: 940px; }
.si-terms-row:last-child { border-bottom: none; }
.si-cost { color: #c0392b; font-weight: 700; }

/* Инвайты партнёров: предложение разместить их товары в моём магазине */
.inv-block { display: flex; flex-direction: column; gap: 16px; }
.inv-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.inv-head h3 { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -0.2px; }
.inv-head .admin-hint { flex: 1 1 260px; }
.inv-list { display: flex; flex-direction: column; gap: 14px; }
.inv-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--gray-200); border-radius: 14px; transition: border-color .14s, box-shadow .14s; }
.inv-card:hover { border-color: var(--gray-300, #cfcfd6); box-shadow: 0 6px 22px rgba(0, 0, 0, .06); }
.inv-top { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
/* Логотип партнёра — горизонтальный: либо реальный файл, либо вордмарк с фирменным цветом */
.inv-logo { display: inline-flex; align-items: center; justify-content: center; height: 42px; flex: none; border-radius: 10px; }
.inv-logo-mark { padding: 0 15px; max-width: 190px; background-clip: padding-box; color: #fff; font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-logo-file { padding: 0 10px; background: var(--white); border: 1px solid var(--gray-200); }
.inv-logo-file img { height: 26px; width: auto; max-width: 150px; object-fit: contain; display: block; }
.inv-id { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.inv-name { font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }
/* прогноз прибыли виден в свёрнутом состоянии */
.inv-forecast { display: flex; flex-direction: column; gap: 2px; flex: none; align-items: flex-end; padding: 7px 13px; border-radius: 10px; background: #e8f4d5; }
.admin-mode .inv-forecast { background: var(--jv-green-soft, #e8f4d5); }
.inv-forecast b { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -0.3px; color: #3d6b12; }
.inv-forecast i { font-size: 11px; font-style: normal; color: var(--gray-600); }
.inv-details { display: flex; flex-direction: column; gap: 14px; }
.inv-details[hidden] { display: none; }
@media (max-width: 720px) { .inv-forecast { align-items: flex-start; width: 100%; } }
.inv-actions { display: flex; gap: 8px; flex: none; }
.inv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.inv-stat { display: flex; flex-direction: column; gap: 3px; padding: 10px 13px; border-radius: 11px; background: var(--gray-50, #fafafa); }
.inv-stat b { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }
.inv-stat i { font-size: 11.5px; font-style: normal; color: var(--gray-600); line-height: 1.3; }
.inv-stat-hero { background: #e8f4d5; }
.inv-stat-hero b { color: #3d6b12; }
.admin-mode .inv-stat-hero { background: var(--jv-green-soft, #e8f4d5); }
.inv-cats { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inv-cats-label { font-size: 12px; font-weight: 700; color: var(--gray-400); margin-right: 2px; }
.inv-cat { padding: 4px 10px; border-radius: 14px; background: var(--gray-100); font-size: 12px; font-weight: 600; }
.inv-toggle { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 12px; border: 1px dashed var(--gray-200); border-radius: 11px; background: none; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--gray-600); transition: border-color .14s, color .14s; }
.inv-toggle:hover { border-color: var(--jv-violet, #c16ffb); color: var(--jv-violet, #c16ffb); }
.inv-toggle > span:nth-child(2) { flex: 1 1 auto; text-align: left; }
.inv-stack { display: flex; align-items: center; flex: none; }
.inv-stack img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; background: var(--white); border: 2px solid var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.inv-stack img + img, .inv-more { margin-left: -11px; }
.inv-more { display: inline-flex; align-items: center; justify-content: center; height: 30px; min-width: 30px; padding: 0 6px; border-radius: 7px; border: 2px solid var(--white); background: var(--gray-200); font-size: 11px; font-weight: 800; color: var(--gray-600); }
.inv-chev { flex: none; font-size: 12px; transition: transform .18s; }
.inv-toggle.is-open .inv-chev { transform: rotate(180deg); }
/* Крупная веерная стопка товаров во входящем инвайте (WOW) */
.inv-toggle { padding-top: 10px; padding-bottom: 10px; }
.inv-toggle .si-stack-deck { margin-left: 10px; }
.inv-toggle:hover .si-stack-card { transform: rotate(0) translateY(-3px); margin-left: -6px; }
.inv-toggle:hover .si-stack-card:first-child { margin-left: 0; }
/* Сопроводительное сообщение партнёра */
.inv-msg { padding: 10px 13px; border-left: 3px solid var(--jv-violet, #c16ffb); border-radius: 0 9px 9px 0; background: var(--gray-50, #fafafa); font-size: 13px; line-height: 1.45; font-style: italic; color: var(--jv-heading, #200131); }
/* Условия по каждому товару — одной строкой, как в конструкторе инвайта */
.inv-products { display: flex; flex: none; flex-direction: column; max-height: 300px; overflow-y: auto; overflow-x: auto; border: 1px solid var(--gray-200); border-radius: 11px; }
.inv-products[hidden] { display: none; }
.inv-terms-note { position: sticky; left: 0; padding: 8px 12px; border-bottom: 1px solid var(--gray-100); background: var(--gray-50, #fafafa); font-size: 11.5px; font-weight: 700; color: var(--gray-600); }
.inv-prod { display: grid; grid-template-columns: 38px minmax(180px, 1fr) 104px 84px 116px 104px 104px 104px 78px 82px; gap: 12px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--gray-100); min-width: 1120px; font-size: 13px; }
.inv-prod > span:nth-child(n+3) { text-align: right; white-space: nowrap; }
.inv-prod-head { position: sticky; top: 0; z-index: 1; background: var(--white); border-bottom: 1px solid var(--gray-200); font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--gray-400); align-items: end; }
/* длинные подписи переносим, иначе они наезжают на соседнюю колонку */
.inv-prod-head > span { white-space: normal !important; line-height: 1.25; }
.ip-forecast { font-weight: 800; color: #3d6b12; }
.inv-prod:last-child { border-bottom: none; }
.inv-prod-thumb { width: 38px; height: 38px; border-radius: 8px; overflow: hidden; background: var(--gray-100); }
.inv-prod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inv-prod-name { min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.3; }
.inv-prod-name .mini-sub { display: block; font-size: 11.5px; font-weight: 500; }
.inv-prod-nums { text-align: right; white-space: nowrap; }
.inv-prod-nums b { display: block; font-size: 13px; font-weight: 800; color: #3d6b12; }
@media (max-width: 620px) { .inv-actions { width: 100%; } .inv-actions button { flex: 1 1 0; } }

/* Свёрнутая сводка размещения: стопка превью + прогноз, раскрывается в полный список */
.pm-sum { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: 12px; background: var(--gray-50, #fafafa); cursor: pointer; text-align: left; transition: border-color .14s, background .14s; }
.pm-sum:hover { border-color: var(--jv-violet, #c16ffb); background: var(--white); }
.pm-sum-stack { display: flex; align-items: center; flex: none; }
.pm-sum-stack img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--white); border: 2px solid var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.pm-sum-stack img + img, .pm-sum-more { margin-left: -12px; }
.pm-sum-more { display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 34px; padding: 0 7px; border-radius: 8px; border: 2px solid var(--white); background: var(--gray-200); font-size: 11.5px; font-weight: 800; color: var(--gray-600); }
.pm-sum-text { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--gray-600); }
.pm-sum-chev { flex: none; font-size: 12px; color: var(--gray-400); transition: transform .18s; }
.pm-sum.is-open .pm-sum-chev { transform: rotate(180deg); }
/* flex: none — иначе список схлопывается в полоску: у flex-элемента с overflow авторазмер равен нулю */
.pm-confirm-list { display: flex; flex: none; flex-direction: column; max-height: 230px; overflow-y: auto; border: 1px solid var(--gray-200); border-radius: 12px; }
.pm-confirm-list[hidden] { display: none; }
.pm-confirm-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--gray-100); }
.pm-confirm-item:last-child { border-bottom: none; }
.pm-confirm-thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--gray-100); }
.pm-confirm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm-confirm-name { min-width: 0; font-size: 13px; line-height: 1.35; color: var(--jv-heading, #200131); }
.pm-confirm-name b { font-weight: 700; }
.pm-confirm-name .mini-sub { font-size: 11.5px; }
.pm-confirm-money { font-size: 13px; font-weight: 800; color: #2f7a3d; white-space: nowrap; }
.pm-confirm-money small { font-size: 10.5px; font-weight: 600; color: var(--gray-400); }
.pm-consent { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: #faf5ff; border: 1px solid var(--jv-violet-light, #e7dcf8); border-radius: 12px; cursor: pointer; }
.pm-consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.pm-consent-box { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 2px solid var(--gray-300, #cfc8dc); border-radius: 6px; position: relative; transition: all .13s; background: #fff; }
.pm-consent input:checked + .pm-consent-box { background: var(--jv-violet, #c16ffb); border-color: var(--jv-violet, #c16ffb); }
.pm-consent input:checked + .pm-consent-box::after { content: ''; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.pm-consent-text { font-size: 13px; line-height: 1.45; color: var(--gray-700, #444); }
.pm-reco { font-size: 12.5px; color: #2f7a3d; }
.pm-remove-btn { color: var(--red); border-color: #f0c9c5; }
.pm-remove-btn:hover { border-color: var(--red); }

.admin-search { height: 46px; border: 1px solid var(--gray-200); border-radius: 10px; padding: 0 16px; outline: none; font-size: 14px; background: var(--gray-100); transition: border-color .15s, background .15s; }
.admin-search:focus { border-color: var(--black); background: var(--white); }
.products-table { padding: 10px 20px; overflow-x: auto; }
.prod-row { display: grid; grid-template-columns: 26px 44px minmax(160px, 1fr) 260px 210px 64px; gap: 13px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 13.5px; min-width: 820px; }
/* Управление ценами */
.prices-table { padding: 10px 20px; overflow-x: auto; }
.price-row { display: grid; grid-template-columns: 44px minmax(180px, 1fr) 110px 120px 90px; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--gray-100); font-size: 13.5px; min-width: 640px; }
/* понятное вводное пояснение раздела — крупнее обычной подсказки */
/* цены моих товаров: +колонка с кнопкой применения, черновик подтверждается */
.op-row { grid-template-columns: 44px minmax(180px, 1fr) 110px 120px 90px 104px; }
.op-row.price-head [data-tip] { position: relative; cursor: help; }
.prices-table [data-tip]:hover::after { bottom: auto; top: calc(100% + 9px); }
.price-row.is-dirty { background: #fff8e6; box-shadow: inset 3px 0 0 var(--yellow, #ffd84d); border-radius: 8px; }
.price-row:last-child { border-bottom: none; }
.price-head { font-size: 12px; color: var(--gray-600); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.price-row .mini-name a:hover { color: var(--accent-deep, var(--yellow-dark)); }
.price-disc { font-size: 13.5px; font-weight: 700; color: #1c8a4d; }
/* Цены товаров партнёров: калькуляция в строке, применение — после подтверждения */
.pp-panel { display: flex; flex-direction: column; gap: 14px; }
.pp-bulkbar { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; padding: 10px 13px; border-radius: 11px; background: var(--jv-violet-soft, #f7f0ff); }
.pp-bulk-label { font-size: 13px; font-weight: 700; }
.pp-bulk-hint { flex: 1 1 160px; }
.pp-all { flex: none; }
/* названия колонок — один раз в шапке, а не в каждой строке */
.pp-table { overflow-x: auto; padding-bottom: 78px; }
.pp-row { display: grid; grid-template-columns: 26px 44px minmax(190px, 1fr) 96px 116px 128px 78px 14px 116px 14px 108px 104px; gap: 10px; align-items: center; padding: 9px 6px; border-radius: 10px; border-bottom: 1px solid var(--gray-100); min-width: 1120px; font-size: 13.5px; }
.pp-row:last-child { border-bottom: none; }
.pp-thead { border-bottom: 1px solid var(--gray-200); font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--gray-400); align-items: end; }
.pp-thead > span { white-space: normal; line-height: 1.25; }
.pp-thead > span:nth-child(n+4) { text-align: right; }
.pp-check { display: flex; align-items: center; cursor: pointer; }
.pp-check .exch-check { position: absolute; opacity: 0; width: 0; height: 0; }
.pp-check .fp-box { flex: none; width: 20px; height: 20px; border: 2px solid var(--gray-200); border-radius: 6px; position: relative; transition: all .13s; }
.pp-check:hover .fp-box { border-color: var(--jv-violet, #c16ffb); }
.pp-check .exch-check:checked + .fp-box { background: var(--jv-violet, #c16ffb); border-color: var(--jv-violet, #c16ffb); }
.pp-check .exch-check:checked + .fp-box::after { content: ''; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
/* РРЦ — только ориентир: приглушён и отбит от расчёта */
.pp-rrp { text-align: right; font-weight: 700; color: var(--gray-400); padding-right: 10px; border-right: 1px dashed var(--gray-200); }
.pp-inp { justify-self: end; }
.pp-inp input { width: 76px; }
.pp-disc { text-align: right; font-weight: 700; color: var(--gray-400); }
.pp-disc.is-disc { color: #1c8a4d; }
.pp-op { text-align: center; font-size: 13px; font-weight: 800; color: var(--gray-300, #cfcfd6); }
.pp-exp { text-align: right; font-weight: 800; color: #c0392b; }
.pp-profit { text-align: right; font-size: 14px; font-weight: 800; color: #3d6b12; }
.pp-profit.is-neg { color: #d1373a; }
.pp-act { justify-self: end; }
/* overflow-x режет и по вертикали: тултип раскрываем вниз, снизу оставляем ему место */
.pp-table [data-tip]:hover::after { bottom: auto; top: calc(100% + 9px); left: auto; right: 0; }
/* строка с неприменённой ценой видно отличается от опубликованной */
.pp-row.is-dirty { background: #fff8e6; box-shadow: inset 3px 0 0 var(--yellow, #ffd84d); }
.pp-apply-one { flex: none; padding: 7px 13px; border-radius: 9px; background: var(--jv-violet, #c16ffb); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: filter .14s; }
.pp-apply-one:hover { filter: brightness(1.08); }
.pp-apply-one[hidden] { display: none; }
.pp-bar { z-index: 40; }
.prod-row.is-selected { background: #faf5ff; }
.prod-cat-cell { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }

/* Кастомный чекбокс выбора товара */
.prod-check { position: relative; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.prod-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.pc-box { width: 19px; height: 19px; border: 2px solid var(--gray-300, #cfcfd6); border-radius: 6px; background: var(--white); transition: background .14s, border-color .14s; }
.prod-check input:checked + .pc-box { background: var(--jv-violet, #c16ffb); border-color: var(--jv-violet, #c16ffb); }
.prod-check input:checked + .pc-box::after { content: ''; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.prod-check input:focus-visible + .pc-box { box-shadow: 0 0 0 3px rgba(193,111,251,.3); }

/* Чипы категорий товара */
.pcat-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.pcat-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 9px; border-radius: 16px; font-size: 12px; font-weight: 600; background: var(--gray-100); color: var(--jv-heading, #200131); }
.pcat-chip.is-primary { background: #faf5ff; box-shadow: inset 0 0 0 1.5px var(--jv-violet, #c16ffb); color: var(--jv-violet, #a23ce0); }
.pcat-x { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; font-size: 14px; line-height: 1; color: var(--gray-600); cursor: pointer; transition: background .14s, color .14s; }
.pcat-x:hover { background: #fdeaea; color: #d1373a; }
.pcat-none { font-size: 12px; color: var(--gray-400); font-style: italic; }
.pcat-add { padding: 5px 8px; border: 1.5px dashed var(--gray-300, #cfcfd6); border-radius: 16px; background: var(--white); font-size: 12px; font-weight: 700; color: var(--gray-600); cursor: pointer; }
.pcat-add:hover { border-color: var(--jv-violet, #c16ffb); color: var(--jv-violet, #c16ffb); }
.pcat-add:focus { outline: none; border-color: var(--jv-violet, #c16ffb); }
.prod-sub-inp { width: 100%; font-size: 12.5px; padding: 7px 9px; }

/* Панель массовых действий */
.bulk-bar { margin: 4px 0 10px; }
.bulk-inner { border: 1px solid var(--jv-violet, #c16ffb); background: #faf5ff; border-radius: 14px; padding: 14px 16px; }
.bulk-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bulk-count { font-size: 14px; font-weight: 700; color: var(--jv-heading, #200131); }
.bulk-count b { color: var(--jv-violet, #a23ce0); }
.bulk-mode { display: inline-flex; background: var(--white); border-radius: 10px; padding: 3px; gap: 3px; }
.bulk-mode-btn { padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--gray-600); background: transparent; cursor: pointer; transition: color .16s, background .16s, box-shadow .16s; }
.bulk-mode-btn.active { background: var(--jv-violet, #c16ffb); color: #fff; box-shadow: 0 2px 8px rgba(193,111,251,.35); }
.bulk-hint { font-size: 12.5px; color: var(--gray-600); flex: 1; min-width: 160px; }
.bulk-clear { font-size: 13px; font-weight: 700; color: var(--gray-600); background: var(--white); border: 1px solid var(--gray-200); border-radius: 9px; padding: 8px 13px; cursor: pointer; transition: background .14s; }
.bulk-clear:hover { background: var(--gray-100); }
.bulk-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bulk-cat-chip { padding: 8px 14px; border: 1.5px solid var(--jv-violet, #c16ffb); border-radius: 20px; background: var(--white); font-size: 13px; font-weight: 700; color: var(--jv-violet, #a23ce0); cursor: pointer; transition: background .14s, transform .12s, box-shadow .14s; }
.bulk-cat-chip:hover { background: var(--jv-violet, #c16ffb); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(193,111,251,.35); }
.bulk-cat-chip.is-remove { border-color: #e0857f; color: #c0392b; }
.bulk-cat-chip.is-remove:hover { background: #d1373a; color: #fff; border-color: #d1373a; box-shadow: 0 4px 12px rgba(209,55,58,.3); }
.prod-place-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 2px; }
.prod-sections { display: flex; gap: 6px; flex-wrap: wrap; }
.prod-sec-chip { padding: 6px 11px; border: 1.5px solid var(--gray-200); border-radius: 16px; background: var(--white); font-size: 12px; font-weight: 600; color: var(--gray-600); cursor: pointer; white-space: nowrap; transition: all .12s; }
.prod-sec-chip:hover { border-color: var(--gray-400); color: var(--jv-heading, #200131); }
.prod-sec-chip.on { border-color: var(--jv-violet, #c16ffb); background: #faf5ff; color: var(--jv-violet, #c16ffb); }
.prod-row:last-child { border-bottom: none; }
.prod-head { font-size: 12px; color: var(--gray-600); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.prod-row .mini-name a:hover { color: var(--yellow-dark); }
.prod-input { width: 100%; height: 38px; border: 1.5px solid var(--gray-200); border-radius: 8px; padding: 0 10px; font-size: 14px; font-weight: 700; outline: none; transition: border-color .15s; }
.prod-input:focus { border-color: var(--black); }
.prod-disc { font-weight: 700; color: var(--red); }

@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-two { grid-template-columns: 1fr; }
  .order-head { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .admin-top { flex-direction: column; align-items: stretch; }
  .admin-top-nav { justify-content: center; }
  .admin-top-right { margin-left: 0; justify-content: space-between; }
}

/* ---------- Аналитика в сводке ---------- */
/* Балансы по направлениям — шапка сводки, каждая карта своего цвета со спарклайном */
.bal-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 900px) { .bal-row { grid-template-columns: 1fr; } }
.bal-card { position: relative; overflow: hidden; border-radius: 16px; background: var(--white); border: 1px solid var(--gray-200); padding: 18px 20px 20px; box-shadow: 0 4px 18px rgba(0, 0, 0, .04); transition: transform .16s, box-shadow .16s, border-color .16s; }
.bal-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--bal); opacity: .9; }
.bal-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .10); border-color: transparent; }
.bal-head { display: flex; align-items: center; gap: 9px; }
.bal-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bal); flex: none; }
.bal-title { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.bal-delta { margin-left: auto; font-size: 12.5px; font-weight: 800; padding: 3px 9px; border-radius: 20px; }
.bal-delta.up { color: #1c8a4d; background: #e6f7ee; }
.bal-delta.down { color: #d1373a; background: #fdeaea; }
.bal-sum { margin-top: 13px; font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.6px; color: var(--jv-heading, #200131); line-height: 1.05; }
.bal-sub { margin-top: 6px; font-size: 12.5px; color: var(--gray-600); }
.bal-sub b { color: var(--bal); font-weight: 800; }
.bal-btn { margin-top: 16px; width: 100%; padding: 11px 14px; border-radius: 11px; background: var(--bal); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: filter .14s, transform .1s; }
.bal-btn:hover { filter: brightness(1.07); }
.bal-btn:active { transform: scale(.98); }
.an-card { display: flex; flex-direction: column; gap: 18px; }
.an-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.an-cols-3 { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.an-col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.an-col + .an-col { border-left: 1px solid var(--gray-100); padding-left: 30px; }
.an-cols-3 .an-col + .an-col { padding-left: 22px; }
@media (max-width: 1080px) {
  .an-cols-3 { grid-template-columns: 1fr; gap: 20px; }
  .an-cols-3 .an-col + .an-col { border-left: none; padding-left: 0; border-top: 1px solid var(--gray-100); padding-top: 18px; }
}
.an-scope-title { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.2px; }
/* ТОП товаров по продажам — три колонки под сводкой, сетка совпадает с колонками выше */
.top-card { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.top-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--gray-100); padding-bottom: 12px; }
.top-head h3 { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -0.2px; }
.top-list { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.top-item { display: grid; grid-template-columns: 18px 40px 1fr auto; gap: 11px; align-items: center; padding: 8px 6px; border-radius: 10px; transition: background .14s; }
.top-item:hover { background: var(--gray-50, #fafafa); }
.top-rank { font-size: 13px; font-weight: 800; color: var(--gray-400); text-align: center; }
.top-item:first-child .top-rank { color: var(--jv-violet, #c16ffb); }
.top-thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--gray-100); }
.top-thumb img, .top-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.top-name { min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--jv-heading, #200131); }
.top-bar { display: block; height: 4px; margin-top: 6px; border-radius: 3px; background: var(--gray-100); overflow: hidden; }
.top-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent-fill, var(--jv-violet, #c16ffb)); }
.top-nums { text-align: right; white-space: nowrap; }
.top-nums b { display: block; font-size: 13.5px; font-weight: 800; }
.top-nums .mini-sub { font-size: 11.5px; }
.top-empty { padding: 14px 0; font-size: 13px; line-height: 1.45; }
@media (max-width: 900px) { .an-cols-3 { grid-template-columns: 1fr; } .an-cols-3 .an-col + .an-col { border-left: none; padding-left: 0; border-top: 1px solid var(--gray-100); padding-top: 18px; } }
.an-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--gray-100); padding-bottom: 2px; }
.an-tabs { display: flex; gap: 22px; flex-wrap: wrap; }
.an-tab { font-size: 16px; font-weight: 700; color: var(--gray-600); padding: 4px 0 12px; border-bottom: 2.5px solid transparent; margin-bottom: -3px; transition: color .15s, border-color .15s; display: flex; align-items: center; gap: 7px; }
.an-tab:hover { color: var(--black); }
.an-tab.active { color: var(--black); border-bottom-color: var(--black); }
.an-badge { background: #ddf0e0; color: #2f7a3d; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 9px; }
.an-controls { display: flex; align-items: center; gap: 14px; padding-bottom: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .an-updated { display: none; } }
.an-updated { font-size: 13.5px; color: var(--gray-600); }
.an-metrics { display: flex; gap: 70px; flex-wrap: wrap; }
.an-metric-label { font-size: 14px; color: var(--gray-900); margin-bottom: 6px; }
.an-num { font-size: 27px; font-weight: 800; letter-spacing: -0.3px; }
.an-delta { font-size: 13.5px; font-weight: 700; margin-top: 5px; }
.an-delta span { color: var(--gray-600); font-weight: 400; }
.an-up { color: #2f7a3d; }
.an-down { color: var(--red); }
.chart-wrap { position: relative; }
.an-svg { width: 100%; height: auto; display: block; }
.chart-tip { position: absolute; background: var(--white); border: 1px solid var(--gray-200); border-radius: 10px; box-shadow: var(--shadow); padding: 10px 13px; font-size: 12.5px; pointer-events: none; z-index: 5; display: flex; flex-direction: column; gap: 4px; white-space: nowrap; }
.chart-tip[hidden] { display: none; }
.chart-tip i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
/* Раздел «Продажи» */
.sales-card { display: flex; flex-direction: column; gap: 16px; }
.sales-subtabs { display: inline-flex; gap: 4px; background: #f2eff8; border-radius: 10px; padding: 4px; width: fit-content; }
.sales-subtab { padding: 8px 18px; font-size: 13.5px; font-weight: 700; color: var(--gray-600); border-radius: 8px; transition: background .12s, color .12s; }
.sales-subtab:hover { color: var(--jv-heading, #200131); }
.sales-subtab.active { background: var(--white); color: var(--jv-heading, #200131); box-shadow: 0 1px 4px rgba(32, 1, 49, .1); }
.sales-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi-tile { text-align: left; border: 1.5px solid var(--gray-200); border-radius: 12px; padding: 13px 16px; cursor: pointer; background: var(--white); display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, background .15s, box-shadow .15s; }
.kpi-tile:hover { border-color: #d9c2f7; }
.kpi-tile.active { border-color: #c16ffb; background: #faf5ff; box-shadow: 0 2px 14px rgba(193, 111, 251, .16); }
.kpi-label { font-size: 12.5px; color: var(--gray-600); }
.kpi-num { font-size: 21px; font-weight: 800; color: var(--jv-heading, #200131); letter-spacing: -.3px; }
.kpi-delta { font-size: 12px; font-weight: 700; }
.kpi-delta.an-up { color: #2f7a3d; }
.kpi-delta.an-down { color: var(--red); }
.sales-range { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sales-range-label { font-size: 13.5px; color: var(--gray-600); font-weight: 600; }
.sales-range input[type="date"] { height: 40px; border: 1.5px solid var(--gray-200); border-radius: 9px; padding: 0 12px; font-size: 13.5px; outline: none; transition: border-color .15s; }
.sales-range input[type="date"]:focus { border-color: #c16ffb; }

/* Контролы раздела: период (пилюля) + фильтры */
.an-controls { position: relative; }
.date-wrap, .filters-wrap { position: relative; }
.date-pop[hidden], .filters-panel[hidden] { display: none; }
.date-pill, .filters-btn { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px; border: 1.5px solid var(--gray-200); border-radius: 12px; background: var(--white); font-size: 13.5px; font-weight: 600; color: var(--jv-heading, #200131); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.date-pill:hover, .filters-btn:hover { border-color: var(--gray-400); }
.date-pill svg, .filters-btn svg { color: var(--gray-600); flex: none; }
.date-pill > span { letter-spacing: .1px; }
.date-pill .an-updated { display: none; }
.filters-btn.has { border-color: #c16ffb; background: #faf5ff; color: var(--jv-heading, #200131); }
.filters-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #c16ffb; color: #fff; font-size: 12px; font-weight: 800; }

.date-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 288px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; box-shadow: 0 18px 44px rgba(32, 1, 49, .16); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.date-presets { display: flex; gap: 8px; }
.date-presets button { flex: 1; height: 38px; border: 1.5px solid var(--gray-200); border-radius: 10px; background: var(--white); font-size: 13px; font-weight: 600; color: var(--gray-600); cursor: pointer; transition: all .13s; }
.date-presets button:hover { border-color: var(--gray-400); color: var(--jv-heading, #200131); }
.date-presets button.on { border-color: #c16ffb; background: #faf5ff; color: var(--jv-heading, #200131); }
.date-custom { display: flex; gap: 10px; }
.date-custom label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; }
.date-custom input[type="date"] { height: 40px; border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 0 10px; font-size: 13px; outline: none; transition: border-color .15s; }
.date-custom input[type="date"]:focus { border-color: #c16ffb; }

.filters-panel { position: absolute; top: calc(100% + 8px); right: 0; left: auto; z-index: 60; width: 560px; max-width: min(560px, 88vw); background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; box-shadow: 0 18px 44px rgba(32, 1, 49, .16); overflow: hidden; }
.fp-main { display: grid; grid-template-columns: 190px 1fr; min-height: 260px; }
.fp-tabs { display: flex; flex-direction: column; gap: 2px; padding: 12px; background: var(--gray-100); border-right: 1px solid var(--gray-200); }
.fp-tab { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--gray-600); cursor: pointer; text-align: left; transition: background .12s, color .12s; }
.fp-tab svg { color: var(--gray-400); flex: none; }
.fp-tab:hover { background: rgba(255,255,255,.7); color: var(--jv-heading, #200131); }
.fp-tab.active { background: var(--white); color: var(--jv-heading, #200131); box-shadow: 0 1px 4px rgba(32, 1, 49, .1); }
.fp-tab.active svg { color: #c16ffb; }
.fp-tab span { flex: 1; }
.fp-tab-n { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #c16ffb; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.fp-content { display: flex; flex-direction: column; padding: 14px; gap: 10px; }
.fp-search { position: relative; }
.fp-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }
.fp-search input { width: 100%; height: 44px; border: 1.5px solid var(--gray-200); border-radius: 11px; padding: 0 14px 0 40px; font-size: 14px; outline: none; background: var(--gray-100); transition: border-color .15s, background .15s; }
.fp-search input:focus { border-color: #c16ffb; background: var(--white); }
.fp-lists { flex: 1; overflow-y: auto; max-height: 240px; margin: 0 -4px; padding: 0 4px; }
.fp-check { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--jv-heading, #200131); cursor: pointer; transition: background .1s; }
.fp-check:hover { background: var(--gray-100); }
.fp-check[hidden] { display: none; }
.fp-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.fp-box { flex: none; width: 20px; height: 20px; border: 2px solid var(--gray-200); border-radius: 6px; position: relative; transition: all .13s; }
.fp-check input:checked + .fp-box { background: #c16ffb; border-color: #c16ffb; }
.fp-check input:checked + .fp-box::after { content: ''; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.fp-label { flex: 1; line-height: 1.3; }
.fp-foot { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--gray-100); }
.fp-apply { flex: 1; height: 44px; border-radius: 11px; background: linear-gradient(135deg, #ff8fda, #c16ffb); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: filter .15s, box-shadow .15s; }
.fp-apply:hover { filter: brightness(1.04); box-shadow: 0 6px 18px rgba(193, 111, 251, .32); }
.fp-reset { height: 44px; padding: 0 22px; border-radius: 11px; background: var(--gray-100); color: var(--gray-600); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .13s, color .13s; }
.fp-reset:hover { background: var(--gray-200); color: var(--jv-heading, #200131); }

@media (max-width: 900px) { .sales-kpis { grid-template-columns: repeat(2, 1fr); } .filters-panel { left: auto; right: 0; } }

/* Воронка магазина — горизонтальная */
.funnel { border-top: 1px solid var(--gray-100); padding-top: 20px; margin-top: 6px; display: flex; flex-direction: column; gap: 18px; }
.funnel-title { font-size: 16px; font-weight: 800; color: var(--jv-heading, #200131); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.funnel-total { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.funnel-row { display: flex; align-items: stretch; gap: 10px; overflow-x: auto; padding: 26px 2px 4px; }
.funnel-stage { flex: 1 1 0; min-width: 112px; display: flex; flex-direction: column; gap: 12px; }
.funnel-track { height: 150px; display: flex; align-items: flex-end; justify-content: center; }
.funnel-fill { position: relative; width: 100%; border-radius: 10px 10px 6px 6px; background: linear-gradient(180deg, #ff8fda, #c16ffb); min-height: 8px; transition: height .35s ease; }
.funnel-val { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px; font-size: 13.5px; font-weight: 800; color: var(--jv-heading, #200131); white-space: nowrap; }
.funnel-foot { display: flex; flex-direction: column; gap: 3px; text-align: center; }
.funnel-name { font-weight: 700; font-size: 12.5px; line-height: 1.25; color: var(--jv-heading, #200131); }
.funnel-conv { font-weight: 700; font-size: 12px; color: var(--gray-600); }
.funnel-hint { font-weight: 400; font-size: 11px; color: var(--gray-400); }
.funnel-returns .funnel-fill { background: linear-gradient(180deg, #ffc2c2, #fa4646); }
.funnel-returns .funnel-name { color: var(--red); }

/* Таблица «этапы воронки по товарам» */
.ftbl-wrap { margin-top: 26px; border-top: 1px solid var(--gray-100); padding-top: 20px; }
.ftbl-title { font-size: 16px; font-weight: 800; color: var(--jv-heading, #200131); margin-bottom: 14px; }
.ftbl-sub { font-size: 12.5px; font-weight: 500; color: var(--gray-400); margin-left: 8px; }
.ftbl-scroll { overflow-x: auto; max-height: 460px; overflow-y: auto; border: 1px solid var(--gray-200); border-radius: 14px; }
.ftbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 940px; }
.ftbl thead th { position: sticky; top: 0; z-index: 2; background: var(--white); text-align: right; font-size: 12px; font-weight: 600; color: var(--gray-600); padding: 14px 16px 12px; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.ftbl th.ft-prod { text-align: left; }
.ftbl td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.ftbl tbody tr:last-child td { border-bottom: none; }
.ftbl tbody tr:hover td { background: #faf9fc; }
.ftbl .ft-num { font-size: 15px; font-weight: 800; color: var(--jv-heading, #200131); }
.ftbl .ft-total .ft-num { font-size: 16px; }
.ft-total td { background: var(--gray-100); border-bottom: 1.5px solid var(--gray-200); }
.ft-total:hover td { background: var(--gray-100); }
.ft-d { display: block; font-size: 11.5px; font-weight: 700; margin-top: 3px; white-space: nowrap; }
.ft-d.up { color: #1f9d55; }
.ft-d.down { color: var(--red); }
.ft-d.flat { color: var(--gray-400); }
.ftbl td.ft-prod { text-align: left; min-width: 300px; }
.ft-prodcell { display: flex; align-items: center; gap: 12px; }
.ft-thumb { flex: none; width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--gray-100); }
.ft-thumb img, .ft-thumb svg { width: 100%; height: 100%; object-fit: contain; }
.ft-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ft-name { font-size: 13.5px; font-weight: 700; color: var(--jv-heading, #200131); line-height: 1.3; }
.ft-meta { font-size: 11.5px; color: var(--gray-400); }

/* Блоки охвата партнёров (над статистикой «Мои товары у партнёров») */
.prk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 4px 0 20px; }
.prk { border: 1px solid var(--gray-200); border-radius: 14px; padding: 18px 20px; background: linear-gradient(135deg, #faf5ff, #fff); display: flex; flex-direction: column; gap: 6px; }
.prk-label { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.prk-num { font-size: 30px; font-weight: 800; color: var(--jv-heading, #200131); letter-spacing: -.5px; line-height: 1; }
.prk-of { font-size: 15px; font-weight: 600; color: var(--gray-400); letter-spacing: 0; }
.prk-d { font-size: 12.5px; font-weight: 700; }
.prk-d.up { color: #1f9d55; }
.prk-d.down { color: var(--red); }
.prk-d.flat { color: var(--gray-400); font-weight: 500; }
.prk-sub { font-size: 12.5px; color: var(--gray-400); }
@media (max-width: 760px) { .prk-row { grid-template-columns: 1fr; } }

.an-legend { display: flex; gap: 22px; }
.an-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; user-select: none; color: var(--gray-900); }
.an-box { width: 18px; height: 18px; border-radius: 5px; background: var(--gray-200); color: transparent; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; transition: background .12s, color .12s; }
.an-check.on .an-box { background: var(--c); color: #fff; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 28px; right: 28px; background: var(--black); color: var(--white); padding: 15px 22px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); transition: all .25s; pointer-events: none; z-index: 500; max-width: 380px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast b { color: var(--yellow); }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .grid, .cat-grid, .perks { grid-template-columns: repeat(3, 1fr); }
  .product-layout { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid, .cat-grid, .perks, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { flex-wrap: wrap; gap: 14px; }
  .logo-img { height: 44px; max-width: 180px; }
  .search-area { order: 3; max-width: none; flex-basis: 100%; }
  .hero-slide { padding: 34px 28px; min-height: 300px; }
  .perks { grid-template-columns: 1fr 1fr; }
  .img-slide img { height: 220px; }
  .hero-title { font-size: 26px; }
  .hero-dots { left: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .brand-block, .newsletter { padding: 28px; }
  .newsletter-form { flex-wrap: wrap; max-width: none; }
  .newsletter-form input { min-width: 0; flex-basis: 100%; }
  .newsletter-form button { flex: 1; }
  .topbar-left span { display: none; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ============================================================
   Тема ДЖИВИО для кабинета администратора (светлая, без лого)
   Токены: pink #ff8fda, violet #c16ffb, green #b8ee49,
   heading #200131, bg #F5F5F7, скругления 16px, Manrope
   ============================================================ */
.admin-mode {
  --jv-pink: #ff8fda;
  --jv-pink-hover: #ff7ad0;
  --jv-pink-light: #ffdbf1;
  --jv-violet: #c16ffb;
  --jv-violet-light: #ead7fe;
  --jv-green: #b8ee49;
  --jv-green-soft: #eef9d5;
  --jv-heading: #200131;
  --jv-bg: #f5f5f7;
  --jv-ink: #101010;
  /* админку не красим темой магазина — свои фон и текст */
  background: var(--jv-bg) !important;
  color: var(--jv-ink);
}
.admin-mode .footer { display: none; }

/* Заголовки */
.admin-mode .admin-h2,
.admin-mode .np-page-head .admin-h2 { color: var(--jv-heading); font-weight: 800; letter-spacing: -0.4px; }
.admin-mode .form-block h3,
.admin-mode .an-scope-title,
.admin-mode .modal-head h3 { color: var(--jv-heading); }

/* Карточки и блоки — белые, скругление 16px */
.admin-mode .form-block,
.admin-mode .stat-card,
.admin-mode .admin-top-nav,
.admin-mode .modal { border-radius: 10px; border-color: var(--gray-200); box-shadow: 0 1px 3px rgba(32, 1, 49, .05); }
.admin-mode .admin-top-nav { box-shadow: 0 2px 10px rgba(32, 1, 49, .05); }

/* Горизонтальное меню */
.admin-mode .admin-title { color: var(--jv-violet); }
.admin-mode .admin-nav:hover { background: var(--jv-pink-light); }
.admin-mode .admin-nav-back:hover { background: none; color: var(--jv-heading, #200131); }
.admin-mode .admin-nav.active { background: var(--jv-pink); color: var(--jv-ink); font-weight: 700; }
.admin-mode .admin-count { background: var(--jv-violet); }

/* Первичные кнопки — розовые, заглавными, с подъёмом */
.admin-mode .btn-primary {
  background: var(--jv-pink); color: var(--jv-ink); border-radius: 8px;
  font-weight: 700; text-transform: none; letter-spacing: .2px;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.admin-mode .btn-primary:hover { background: var(--jv-pink-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 143, 218, .4); }

/* Вторичные кнопки — белые со скруглением 10px */
.admin-mode .admin-btn { border-radius: 8px; transition: border-color .15s, background .15s, transform .15s; }
.admin-mode .admin-btn:hover { border-color: var(--jv-violet); background: #faf6ff; transform: translateY(-1px); }
.admin-mode .admin-btn-djivio { border-color: var(--jv-violet-light); background: #faf4ff; }
.admin-mode .admin-btn-djivio:hover { border-color: var(--jv-violet); }

/* Метрики сводки */
.admin-mode .stat-num, .admin-mode .an-num { color: var(--jv-heading); }
.admin-mode .an-tab.active { color: var(--jv-heading); border-bottom-color: var(--jv-pink); }
.admin-mode .an-badge { background: var(--jv-green-soft); color: #4a6b12; }

/* Акценты полей и чекбоксов — фиолетовый */
.admin-mode input:focus, .admin-mode textarea:focus, .admin-mode select:focus,
.admin-mode .prod-input:focus, .admin-mode .admin-search:focus,
.admin-mode .range-inputs:focus-within, .admin-mode .pm-range-inputs:focus-within { border-color: var(--jv-violet); }
.admin-mode .admin-search:focus { background: var(--white); }
.admin-mode .pm-check, .admin-mode .pm-check-head input, .admin-mode .pm-reco-check,
.admin-mode .np-badges input, .admin-mode .option input, .admin-mode .pm-reco-pick input { accent-color: var(--jv-violet); }

/* Радио-опции размещения/оплаты */
.admin-mode .option.selected { border-color: var(--jv-violet); background: var(--jv-violet-light); }
.admin-mode .option:hover { border-color: var(--jv-violet); }

/* Денежные плашки — фиолетовая (прибыль/шт) и зелёная (прогноз) */
.admin-mode .pm-money { background: #f0e6fc; border: none; color: #6b3aa8; }
.admin-mode .pm-money-big { background: var(--jv-green-soft); border: none; color: #4a6b12; }

/* Рекомендованная подборка — розово-фиолетовый блок */
.admin-mode .pm-reco-block { background: linear-gradient(135deg, var(--jv-pink-light), #f6ecff); border-color: var(--jv-violet-light); }
.admin-mode .pm-reco-mark { color: var(--jv-violet); }
.admin-mode .rec-chip { background: var(--jv-pink); color: var(--jv-ink); }

/* Товар «в магазине», статусы */
.admin-mode .pm-placed { color: #4a6b12; }
.admin-mode .st-new { background: var(--jv-pink-light); color: #a1246f; }

/* Плавающая панель выбора — фиолетовая вместо чёрной */
.admin-mode .pm-bar { background: var(--jv-heading); }
.admin-mode .pm-bar .btn-primary:hover { box-shadow: 0 8px 24px rgba(255, 143, 218, .5); }

/* Артикул-«свой товар», прогресс */
.admin-mode .prod-own { color: var(--jv-violet); }

/* ---------- Настройка: логотип ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.settings-h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.logo-preview-row { display: flex; align-items: center; gap: 16px; margin: 14px 0 6px; }
.logo-preview {
  display: flex; align-items: center; justify-content: center;
  width: 240px; flex: none; height: 72px; padding: 12px 18px; box-sizing: border-box; overflow: hidden;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 12px;
  background-image: linear-gradient(45deg, #f2f2f2 25%, transparent 25%), linear-gradient(-45deg, #f2f2f2 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f2f2f2 75%), linear-gradient(-45deg, transparent 75%, #f2f2f2 75%);
  background-size: 14px 14px; background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}
.logo-preview img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.logo-preview-info { display: flex; flex-direction: column; gap: 3px; }
.logo-cur-name { font-weight: 600; font-size: 14px; }
.logo-cur-meta { font-size: 12.5px; color: var(--gray-600); }
.logo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.logo-upload-label { cursor: pointer; display: inline-flex; align-items: center; }
.logo-msg { display: block; margin: 8px 0 2px; font-size: 13px; }
.logo-msg.is-err { color: #d1344b; }
.logo-msg.is-ok { color: #1c8a4d; }
.req-list { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 9px; }
.req-list li { font-size: 13.5px; line-height: 1.5; color: var(--gray-700); }
.req-list code { background: var(--gray-100); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
@media (max-width: 760px) { .settings-grid { grid-template-columns: 1fr; } }

/* ---------- Технические настройки: подключение домена ---------- */
.tech-page { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .tech-page { grid-template-columns: 1fr; } }

/* Карточка статуса — строки адресов */
.dom-addr { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid var(--gray-200); border-radius: 14px; background: var(--white); }
.dom-addr + .dom-addr { margin-top: 10px; }
.dom-addr.is-ok { border-color: #bfe6cd; background: linear-gradient(0deg, rgba(28,138,77,.05), rgba(28,138,77,.05)), var(--white); }
.dom-addr.is-sub { background: var(--gray-50, #fafafb); border-style: dashed; }
.dom-addr-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--gray-100); color: var(--gray-600); }
.dom-addr-ic svg { width: 21px; height: 21px; }
.dom-addr.is-ok .dom-addr-ic { background: #e3f5ea; color: #1c8a4d; }
.dom-addr-main { flex: 1; min-width: 0; }
.dom-addr-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.dom-addr-name { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--jv-heading, #200131); text-decoration: none; word-break: break-all; }
a.dom-addr-name:hover { text-decoration: underline; }
.dom-addr-note { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--gray-600); }
.dom-addr-note svg { width: 14px; height: 14px; flex: none; }
.dom-badge { font-size: 11.5px; font-weight: 800; letter-spacing: .01em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.dom-badge.is-ok { background: #e3f5ea; color: #1c8a4d; }
.dom-badge.is-wait { background: #fdf0d8; color: #a86b12; }
.dom-badge.is-muted { background: var(--gray-100); color: var(--gray-600); }
.dom-open { flex: none; align-self: center; font-size: 13.5px; }

/* Подключение домена — поле ввода */
.dom-connect { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.dom-input-wrap { flex: 1; min-width: 200px; display: flex; align-items: center; border: 1.6px solid var(--gray-200); border-radius: 12px; background: var(--white); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.dom-input-wrap:focus-within { border-color: var(--accent-deep, var(--jv-violet, #7c5cff)); box-shadow: 0 0 0 3px rgba(124,92,255,.12); }
.dom-input-wrap.is-err { border-color: #d1344b; box-shadow: 0 0 0 3px rgba(209,52,75,.1); }
.dom-input-pre { padding: 0 4px 0 14px; font-size: 14.5px; color: var(--gray-500, #9a9aa8); font-weight: 600; user-select: none; }
.dom-input { flex: 1; min-width: 0; border: 0; outline: none; padding: 12px 14px 12px 2px; font: inherit; font-size: 15px; font-weight: 600; color: var(--jv-heading, #200131); background: none; }
.dom-connect .btn-primary { flex: none; }
.dom-err { display: block; margin: 10px 0 0; font-size: 13px; color: #d1344b; }
.dom-nohint { margin: 14px 0 4px; }

/* DNS-записи */
.dns-table { border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; margin: 4px 0 4px; }
.dns-row { display: grid; grid-template-columns: 74px 96px 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; }
.dns-row + .dns-row { border-top: 1px solid var(--gray-100); }
.dns-head { background: var(--gray-50, #fafafb); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--gray-500, #9a9aa8); padding-top: 9px; padding-bottom: 9px; }
.dns-type { font-weight: 800; font-size: 13.5px; color: var(--jv-heading, #200131); }
.dns-name { font-size: 13.5px; color: var(--gray-700, #444); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.dns-val { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; font-weight: 700; color: var(--jv-heading, #200131); background: var(--gray-100); padding: 4px 9px; border-radius: 6px; justify-self: start; word-break: break-all; }
.dns-copy { flex: none; }
@media (max-width: 520px) {
  .dns-head { display: none; }
  .dns-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .dns-type { grid-column: 1; }
  .dns-name { grid-column: 1; }
  .dns-val { grid-column: 1 / -1; }
  .dns-copy { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}

/* Подсказка со сроком */
.dom-tip { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 4px; padding: 11px 13px; background: #fdf8ee; border: 1px solid #f2e3c4; border-radius: 11px; font-size: 12.8px; line-height: 1.5; color: #8a6414; }
.dom-tip svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: #c08a1e; }

/* Кнопки действий */
.dom-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dom-danger { color: #d1344b; border-color: #f0c3cb; }
.dom-danger:hover { background: #fdeef0; border-color: #e79aa6; }
.dom-spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; vertical-align: -2px; animation: dom-spin .7s linear infinite; }
@keyframes dom-spin { to { transform: rotate(360deg); } }
.btn-primary.is-loading { opacity: .85; pointer-events: none; }

/* Успешное подключение */
.dom-done { display: flex; align-items: flex-start; gap: 14px; padding: 4px 0 2px; }
.dom-done-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: #e3f5ea; color: #1c8a4d; }
.dom-done-ic svg { width: 26px; height: 26px; }

/* ---------- Настройка: цвет кнопок ---------- */
.btn-color-block { grid-column: 1 / -1; }
.btn-preview-stage { display: flex; align-items: center; justify-content: center; padding: 34px; margin: 16px 0 20px; border-radius: 18px; background: radial-gradient(120% 120% at 50% 0%, #fbfbfc 0%, #eeeef1 100%); border: 1px solid var(--gray-200); }
.btn-preview-sample { min-width: 210px; text-align: center; cursor: default; box-shadow: 0 12px 28px rgba(0, 0, 0, .14); }
.seg-toggle { display: inline-flex; background: var(--gray-100); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 18px; }
.seg { padding: 9px 24px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--gray-600); background: transparent; transition: color .18s, background .18s, box-shadow .18s; }
.seg.active { background: var(--white); color: var(--black); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 12px; }
.btn-swatch { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 4px 10px rgba(0, 0, 0, .1); cursor: pointer; transition: transform .16s cubic-bezier(.2, .8, .3, 1.25), box-shadow .16s; }
.btn-swatch:hover { transform: translateY(-3px) scale(1.07); box-shadow: 0 12px 22px rgba(0, 0, 0, .2); z-index: 1; }
.btn-swatch .sw-check { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 21px; font-weight: 800; opacity: 0; transform: scale(.4); transition: opacity .16s, transform .16s; text-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.btn-swatch.is-active { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--black), 0 6px 16px rgba(0, 0, 0, .2); }
.btn-swatch.is-active .sw-check { opacity: 1; transform: scale(1); }
.btn-custom { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.btn-custom-label { font-size: 14px; font-weight: 700; color: var(--gray-700); }
.btn-custom input[type=color] { width: 46px; height: 46px; padding: 0; border: none; border-radius: 12px; background: none; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 4px 10px rgba(0, 0, 0, .1); }
.btn-custom input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.btn-custom input[type=color]::-webkit-color-swatch { border: none; border-radius: 12px; }
.btn-color-actions { margin-top: 20px; }
/* Образец показывает реальный цвет кнопок магазина, а не розовую тему админки */
.admin-mode .btn-preview-sample,
.admin-mode .btn-preview-sample:hover { background: var(--btn-bg); color: var(--btn-fg); transform: none; box-shadow: 0 12px 28px rgba(0, 0, 0, .16); }

/* ---------- Импорт: выбор что импортировать ---------- */
.import-opts { margin: 16px 0 4px; padding: 14px 16px; border: 1px solid var(--gray-200); border-radius: 12px; background: var(--gray-100); }
.import-opts-title { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.import-opts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 9px 16px; }
.imp-check { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; user-select: none; }
.imp-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.imp-box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--gray-400); flex: none; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; background: var(--white); }
.imp-check input:checked + .imp-box { background: #1a1a1a; border-color: #1a1a1a; }
.imp-check input:checked + .imp-box::after { content: '✓'; color: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.imp-check.imp-locked { cursor: default; color: var(--gray-600); }
.imp-check.imp-locked input:checked + .imp-box { background: var(--gray-400); border-color: var(--gray-400); }
.imp-req { font-size: 11px; color: var(--gray-400); }
.imp-note { font-size: 11px; color: var(--gray-600); }

/* ---------- Отзывы в карточке товара (в стиле маркетплейса) ---------- */
.reviews { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--gray-200); }
.reviews-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 18px; }
.reviews-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.reviews-title sup { font-size: 13px; font-weight: 700; color: var(--gray-400); margin-left: 3px; vertical-align: super; }
.reviews-summary { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rs-score { display: flex; align-items: center; gap: 4px; }
.rs-num { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.rs-laurel { font-size: 34px; color: #b58aff; transform: translateY(-1px); }
.rs-meta { display: flex; flex-direction: column; gap: 2px; }
.rs-title { font-weight: 700; font-size: 15px; }
.rs-count { font-size: 13px; color: var(--gray-600); }
.rs-pill { font-size: 13px; font-weight: 600; color: var(--gray-900); background: var(--gray-100); border-radius: 22px; padding: 8px 16px; }
.reviews-cards { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.reviews-cards::-webkit-scrollbar { height: 6px; }
.reviews-cards::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
.rev-card { flex: 0 0 320px; scroll-snap-align: start; border: 1px solid var(--gray-200); border-radius: 16px; padding: 16px 18px; background: var(--white); display: flex; flex-direction: column; gap: 10px; }
.rev-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rev-id { display: flex; align-items: center; gap: 10px; }
.rev-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #cbb2ff, #b58aff); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.rev-idtext { display: flex; flex-direction: column; line-height: 1.25; }
.rev-name { font-weight: 700; font-size: 14px; }
.rev-date { font-size: 12px; color: var(--gray-400); }
.rev-stars { color: #f5b301; font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.rev-card-body { display: flex; flex-direction: column; gap: 5px; }
.rev-line { font-size: 13.5px; color: var(--gray-800, #333); line-height: 1.45; margin: 0; }
.rev-line b { font-weight: 700; }
@media (max-width: 640px) { .rev-card { flex-basis: 82vw; } .reviews-title { font-size: 22px; } }

/* ---------- Логотип и «Панель управления» в админке ---------- */
.admin-brandbar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 2px; }
.admin-brand { display: inline-flex; align-items: center; }
.admin-brand .logo-img { height: 40px; max-width: 200px; }
.admin-brand-note { font-size: 13px; font-weight: 600; color: var(--gray-600); }
@media (max-width: 720px) { .admin-brand-note { display: none; } .admin-brand .logo-img { height: 34px; } }

/* ---------- Подтверждение публикации ---------- */
.confirm-modal { max-width: 400px; width: 92vw; text-align: center; padding: 30px 28px 26px; position: relative; }
.confirm-modal .modal-x { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--gray-100); color: var(--gray-600); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; }
.confirm-modal .modal-x svg { width: 15px; height: 15px; }
.confirm-modal .modal-x:hover { background: var(--gray-200); }
.confirm-icon { width: 54px; height: 54px; margin: 2px auto 16px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: #f3ecff; color: var(--jv-violet, #8b3ff0); }
.confirm-icon svg { width: 27px; height: 27px; }
.confirm-modal.is-danger .confirm-icon { background: #fdecec; color: #d1344b; }
.confirm-title { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 8px; color: var(--jv-heading, #200131); }
.confirm-text { font-size: 14.5px; line-height: 1.55; color: var(--gray-700); margin: 0 auto 22px; max-width: 320px; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-btn { flex: 1; padding: 13px 16px; border-radius: 12px; font-weight: 700; font-size: 14.5px; cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s; }
.confirm-btn:active { transform: translateY(1px); }
.confirm-cancel { background: var(--gray-100); color: var(--gray-900); }
.confirm-cancel:hover { background: var(--gray-200); }
.confirm-ok { background: var(--jv-heading, #200131); color: #fff; box-shadow: 0 6px 18px rgba(32, 1, 49, .22); }
.confirm-ok:hover { filter: brightness(1.12); }
.confirm-ok.confirm-danger { background: #d1344b; box-shadow: 0 6px 18px rgba(209, 52, 75, .28); }

/* ---------- Промо: действия и повторная публикация баннеров ---------- */
.promo-list-actions { display: flex; gap: 8px; align-items: center; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.promo-list-pub { font-size: 13px; font-weight: 700; color: #1c8a4d; background: #eafaf0; border: 1px solid #b8e0c2; border-radius: 9px; padding: 8px 14px; cursor: pointer; transition: background .15s, border-color .15s; }
.promo-list-pub:hover { background: #d8f3e0; border-color: #1c8a4d; }

/* ---------- Настройка: капсулы на главной ---------- */
.chips-config-block { grid-column: 1 / -1; }
.chips-tree { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 4px; }
.chips-tree-group { border: 1px solid var(--gray-200); border-radius: 12px; padding: 12px 14px; }
.chips-tree-title { font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-600); margin-bottom: 9px; }
.chips-tree-row { display: flex; flex-wrap: wrap; gap: 9px 18px; }
.chips-tree-subs { margin-top: 10px; padding-top: 10px; padding-left: 14px; border-top: 1px dashed var(--gray-200); }
.chips-check-cat { font-weight: 700; }
.chips-check-accent .imp-box { border-color: var(--yellow-dark); }
.chips-check-accent input:checked + .imp-box { background: var(--yellow); border-color: var(--yellow-dark); }
.chips-check-accent input:checked + .imp-box::after { color: #1a1a1a; }
.chips-config-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Единый менеджер категорий и главной ---------- */
.cats-manager { grid-column: 1 / -1; }
.cm-group-title { font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-600); margin: 20px 0 10px; }
.cm-hint-inline { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--gray-400); font-size: 12px; margin-left: 6px; }
.cm-list { display: flex; flex-direction: column; gap: 8px; }
.cm-sections { margin-bottom: 4px; }
.cm-node { display: flex; align-items: center; gap: 12px; }
.cm-section { border: 1px solid var(--gray-200); border-radius: 11px; padding: 11px 14px; }
.cm-section .cm-toggles { margin-left: auto; }
.cm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #f5d000); flex: none; }
.cm-name { font-weight: 600; font-size: 14px; }
.cm-count { font-size: 12px; font-weight: 700; color: var(--gray-600); background: var(--gray-100); border-radius: 20px; padding: 2px 9px; min-width: 24px; text-align: center; }
.cm-tag { font-size: 11px; font-weight: 700; color: var(--gray-600); background: var(--gray-100); border-radius: 20px; padding: 3px 10px; }
.cm-tag-own { color: #1c8a4d; background: #eafaf0; }

/* Категория с раскрытием */
.cm-cat { border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; }
.cm-cat-head { padding: 11px 14px; }
.cm-expand { flex: none; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--gray-600); cursor: pointer; transition: background .15s, transform .18s; }
.cm-expand:hover { background: var(--gray-100); }
.cm-cat.is-open .cm-expand { transform: rotate(90deg); }
.cm-cat-name { flex: 0 1 auto; }
.cm-cat-head .cm-toggles { margin-left: auto; }
.cm-children { display: none; flex-direction: column; gap: 7px; padding: 4px 14px 14px 50px; background: var(--gray-50, #fafafa); border-top: 1px solid var(--gray-100); }
.cm-cat.is-open .cm-children { display: flex; }
.cm-sub { padding: 8px 12px; border: 1px solid var(--gray-200); border-radius: 9px; background: var(--white); }
.cm-sub .cm-name { font-weight: 500; font-size: 13.5px; }
.cm-sub .cm-toggles { margin-left: auto; }
.cm-empty { color: var(--gray-400); font-style: italic; justify-content: center; }
.cm-subadd { gap: 8px; }
.cm-sub-input { flex: 1; min-width: 140px; font-size: 13px; padding: 8px 11px; }
.cm-add-btn { flex: none; font-size: 13px; font-weight: 700; color: var(--jv-heading, #200131); background: var(--gray-100); border-radius: 9px; padding: 8px 14px; cursor: pointer; transition: background .15s; }
.cm-add-btn:hover { background: var(--gray-200); }
.cm-icon-btn { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--gray-600); cursor: pointer; transition: background .15s, color .15s; }
.cm-icon-btn svg { width: 16px; height: 16px; }
.cm-icon-btn:hover { background: var(--gray-100); color: var(--jv-heading, #200131); }
.cm-catdel:hover:not(:disabled), .cm-subdel:hover:not(:disabled) { background: #fdeaea; color: #d1373a; }
.cm-icon-btn:disabled { opacity: .35; cursor: default; }
.cm-rename-input { font-size: 14px; padding: 6px 10px; max-width: 240px; }
.cm-create { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cm-create .prod-input { flex: 1; min-width: 220px; }
.cm-create.shake, .cm-subadd.shake { animation: catShake .35s; }

/* Легенда: что означает каждый тумблер */
.cm-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 4px; padding: 12px 14px; background: var(--gray-50, #fafafa); border: 1px dashed var(--gray-200); border-radius: 12px; }
.cm-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--gray-600); }
.cm-legend-item b { color: var(--jv-heading, #200131); font-weight: 700; }
.cm-legend-item svg { width: 16px; height: 16px; color: var(--gray-600); flex: none; }

/* Группа тумблеров видимости (капсула / блок / меню) */
.cm-toggles { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.cm-tg { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; user-select: none; width: 66px; padding: 4px 2px; border-radius: 9px; transition: background .14s; }
.cm-tg:hover { background: var(--gray-100); }
.cm-tg input { position: absolute; opacity: 0; width: 0; height: 0; }
.tg-sw { position: relative; width: 34px; height: 20px; border-radius: 20px; background: var(--gray-300, #cfcfd6); transition: background .18s; flex: none; }
.tg-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.cm-tg input:checked + .tg-sw { background: #1c8a4d; }
.cm-tg input:checked + .tg-sw .tg-knob { transform: translateX(14px); }
.cm-tg input:focus-visible + .tg-sw { box-shadow: 0 0 0 3px rgba(28,138,77,.3); }
.tg-cap { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--gray-600); white-space: nowrap; }
.tg-cap svg { width: 13px; height: 13px; flex: none; }
.cm-tg input:checked ~ .tg-cap { color: #1c8a4d; }
@media (max-width: 620px) {
  .cm-node { flex-wrap: wrap; }
  .cm-cat-head .cm-toggles, .cm-sub .cm-toggles { margin-left: 0; width: 100%; justify-content: flex-start; margin-top: 8px; }
  .cm-children { padding-left: 24px; }
}

/* ---------- Виджет порядка: вкладки (капсулы / блоки / меню) + список ---------- */
.cm-order-wrap { margin-top: 26px; }
.ord-tabs { display: inline-flex; background: var(--gray-100); border-radius: 11px; padding: 4px; gap: 3px; margin: 10px 0 12px; }
.ord-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--gray-600); background: transparent; cursor: pointer; transition: color .16s, background .16s, box-shadow .16s; }
.ord-tab svg { width: 15px; height: 15px; }
.ord-tab.active { background: var(--white); color: var(--jv-heading, #200131); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.ord-list { display: flex; flex-direction: column; gap: 7px; min-height: 54px; }
.ord-item { display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 10px; cursor: grab; transition: box-shadow .14s, border-color .14s, opacity .14s; }
.ord-item:hover { border-color: var(--gray-400); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.ord-item:active { cursor: grabbing; }
.ord-item.dragging { opacity: .45; border-style: dashed; border-color: var(--jv-violet, #c16ffb); }
.ord-grip { display: inline-flex; color: var(--gray-400); flex: none; }
.ord-grip svg { width: 16px; height: 16px; }
.ord-label { font-size: 13px; font-weight: 600; color: var(--jv-heading, #200131); line-height: 1.25; }
.ord-empty { font-size: 12.5px; color: var(--gray-400); font-style: italic; text-align: center; padding: 10px 6px; }

/* ---------- Раскладка менеджера 50/50: настройка + живое превью ---------- */
.cm-main { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.cm-tree { min-width: 0; }
.cm-preview-col { position: sticky; top: 12px; }
.cm-preview-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-600); margin-bottom: 8px; }
.cm-preview { display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 96px); overflow-y: auto; padding: 2px; }
.cm-preview::-webkit-scrollbar { width: 8px; }
.cm-preview::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 8px; }

/* Быстрая подсветка изменения в превью */
@keyframes spFlash {
  0% { box-shadow: inset 0 0 0 999px rgba(28,138,77,.22), inset 0 0 0 2px rgba(28,138,77,.9); }
  100% { box-shadow: inset 0 0 0 999px rgba(28,138,77,0), inset 0 0 0 2px rgba(28,138,77,0); }
}
.sp-flash { animation: spFlash 1.1s ease-out forwards; border-radius: 10px; }
.sp-chip.sp-flash { border-radius: 14px; }
@keyframes spFlashOff {
  0% { box-shadow: inset 0 0 0 999px rgba(209,55,58,.22), inset 0 0 0 2px rgba(209,55,58,.9); opacity: 1; }
  100% { box-shadow: inset 0 0 0 999px rgba(209,55,58,0), inset 0 0 0 2px rgba(209,55,58,0); opacity: 0; transform: scale(.94); }
}
.sp-flash-off { animation: spFlashOff .62s ease-in .05s forwards; border-radius: 10px; }

/* Мини-макеты предпросмотра */
.sp-frame { flex: none; border: 1px solid var(--gray-200); border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.sp-cap { display: flex; align-items: center; gap: 7px; padding: 9px 12px; font-size: 12px; font-weight: 700; color: var(--gray-600); background: var(--gray-50, #fafafa); border-bottom: 1px solid var(--gray-100); }
.sp-dot-r { width: 8px; height: 8px; border-radius: 50%; background: #e0407f; flex: none; }
.sp-burger { display: inline-flex; }
.sp-burger svg { width: 15px; height: 15px; color: var(--gray-600); }
.sp-screen { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.sp-topbar { display: flex; align-items: center; gap: 8px; }
.sp-logo { font-weight: 800; font-size: 12px; letter-spacing: 1px; color: var(--jv-heading, #200131); flex: none; }
.sp-search { flex: 1; height: 16px; border-radius: 6px; background: var(--gray-100); }
.sp-bag { width: 16px; height: 16px; border-radius: 5px; background: var(--gray-100); flex: none; }
.sp-banner { height: 48px; border-radius: 10px; background: linear-gradient(120deg, #e9edf5, #dbe2ef); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--gray-400); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-chip { font-size: 10.5px; font-weight: 600; padding: 4px 10px; border-radius: 14px; border: 1.4px solid var(--gray-200); color: var(--gray-700); background: var(--white); white-space: nowrap; }
.sp-chip-accent { border-color: #c9a0f2; background: #faf5ff; color: #8b2fc9; }
.sp-off { font-size: 11px; color: var(--gray-400); font-style: italic; padding: 3px 0; }
.sp-off-block { padding: 12px; text-align: center; border: 1px dashed var(--gray-200); border-radius: 10px; }
.sp-block { display: flex; flex-direction: column; gap: 7px; }
.sp-block-head { display: flex; align-items: baseline; justify-content: space-between; }
.sp-block-title { font-size: 12.5px; font-weight: 800; color: var(--jv-heading, #200131); }
.sp-block-all { font-size: 10px; font-weight: 700; color: var(--gray-400); }
.sp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.sp-tile { aspect-ratio: 1 / 1.15; border-radius: 8px; background: linear-gradient(135deg, #eef1f6, #e2e7f0); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.sp-menu { padding: 6px; display: flex; flex-direction: column; }
.sp-menu-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; font-size: 12.5px; font-weight: 600; color: var(--jv-heading, #200131); border-radius: 8px; }
.sp-menu-item + .sp-menu-item { border-top: 1px solid var(--gray-100); border-radius: 0; }
.sp-menu-caret { color: var(--gray-400); font-weight: 700; }
.sp-menu-fixed { color: var(--gray-500, #8a8a92); border-top: 1px solid var(--gray-200) !important; margin-top: 2px; }
@media (max-width: 900px) {
  .cm-main { grid-template-columns: 1fr; }
  .cm-preview-col { position: static; order: -1; }
  .cm-preview { max-height: none; overflow: visible; }
}

/* ---------- Логотип в мок-хедере превью баннера (загруженный или «LOGO») ---------- */
.phm-logo img { max-height: 26px; max-width: 110px; width: auto; object-fit: contain; display: block; }
.promo-frame-mobile .phm-logo img { max-height: 20px; max-width: 84px; }

/* ---------- Настройка: цвета магазина (полный конструктор с превью 1:1) ---------- */
.colors-block { grid-column: 1 / -1; }
.colors-layout { display: grid; grid-template-columns: minmax(210px, 1fr) 4fr; gap: 24px; align-items: start; margin-top: 14px; }
.colors-preview-col { position: sticky; top: 12px; }
.colors-preview-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-600); margin-bottom: 8px; }
.theme-preview { background: var(--page-bg); color: var(--ink); border: 1px solid var(--gray-200); border-radius: 16px; padding: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.tpm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tpm-logo { font-weight: 800; font-size: 15px; letter-spacing: 1px; flex: none; }
.tpm-logo img { height: 22px; max-width: 90px; width: auto; object-fit: contain; display: block; }
.tpm-search { flex: 1; height: 30px; background: var(--gray-100); border-radius: 9px; display: flex; align-items: center; padding: 0 12px; font-size: 12px; color: var(--gray-400); }
.tpm-chips { display: flex; gap: 8px; margin-bottom: 14px; }
.tpm-chips .chip-filter { font-size: 12px; padding: 7px 14px; border: 1.5px solid var(--gray-200); border-radius: 20px; font-weight: 600; }
.tpm-card { border: 1px solid var(--gray-200); border-radius: 14px; overflow: hidden; background: #fff; max-width: 220px; display: flex; flex-direction: column; }
.tpm-card-photo { position: relative; height: 120px; flex: none; background: linear-gradient(135deg, #eef1f6, #dfe4ee); }
.tpm-card-photo .badge { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 7px; }
.tpm-card-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.tpm-card-body .card-btn { margin-top: auto; }
.tpm-card-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.tpm-card-price { display: flex; align-items: center; gap: 8px; font-size: 17px; flex-wrap: nowrap; white-space: nowrap; }
.tpm-card-price b { font-weight: 800; flex: none; }
.tpm-card-price .product-old { flex: none; }
.tpm-card-price .discount-pill { flex: none; }
.tpm-card .card-btn { display: flex; align-items: center; justify-content: center; width: 100%; }
.colors-controls-col { display: flex; flex-direction: column; gap: 18px; }
.crole-group { border: 1px solid var(--gray-200); border-radius: 12px; padding: 14px; }
.crole-title { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.crole { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.crole:first-of-type { margin-top: 0; }
.crole-swatch { position: relative; width: 40px; height: 40px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); flex: none; cursor: pointer; }
.crole-swatch input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: none; padding: 0; cursor: pointer; }
.crole-label { font-size: 14px; }
.colors-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* Заголовок группы + смарт-кнопка */
.crole-row { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 12px; }
.crole-row .crole-title { margin-bottom: 0; }
.smart-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--black); background: var(--gray-100); border: 1px solid var(--gray-200); padding: 9px 12px; border-radius: 10px; cursor: pointer; transition: background .16s, box-shadow .16s, transform .12s; }
.smart-btn:hover { background: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,.1); transform: translateY(-1px); }
.smart-btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.smart-btn svg { flex: none; }
.smart-note { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--gray-700); background: var(--gray-100); border-radius: 10px; padding: 10px 12px; }

/* Сетка готовых палитр — крупные квадраты-образцы (цвет / градиент), без подписей */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 10px; }
.preset-tile { position: relative; aspect-ratio: 1 / 1; padding: 0; border: 2px solid var(--gray-200); border-radius: 14px; cursor: pointer; overflow: hidden; transition: transform .14s cubic-bezier(.2,.8,.3,1.25), box-shadow .16s, border-color .16s; }
.preset-tile:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 18px rgba(0,0,0,.2); z-index: 1; }
.preset-tile.is-active { box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.pt-fill { position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.pt-accent { position: absolute; right: 6px; bottom: 6px; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.25); }
.pt-check { position: absolute; top: 5px; left: 5px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; opacity: 0; transform: scale(.4); transition: opacity .16s, transform .16s; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.preset-tile.is-active .pt-check { opacity: 1; transform: scale(1); }

/* Кнопка-раскрытие тонкой настройки */
.custom-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px; font-size: 14px; font-weight: 700; color: var(--black); background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 13px 16px; cursor: pointer; transition: background .16s, box-shadow .16s; }
.custom-toggle:hover { background: var(--gray-100); }
.custom-toggle svg { transition: transform .2s; flex: none; }
.custom-toggle.open svg { transform: rotate(180deg); }
.custom-panel { display: flex; flex-direction: column; gap: 18px; }
.custom-panel[hidden] { display: none; }

/* ---------- Тонкая настройка: объекты (цвет/градиент) ---------- */
.fc-list { display: flex; flex-direction: column; gap: 8px; }
.fc-role { border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.fc-role.is-open { border-color: var(--jv-violet, #c16ffb); box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.fc-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: var(--white); cursor: pointer; text-align: left; }
.fc-head:hover { background: var(--gray-50, #fafafa); }
.fc-sw { width: 30px; height: 30px; border-radius: 8px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.fc-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.fc-meta b { font-size: 13.5px; font-weight: 700; color: var(--jv-heading, #200131); }
.fc-meta small { font-size: 11px; color: var(--gray-500, #8a8a92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-badge { font-size: 10.5px; font-weight: 700; color: var(--gray-600); background: var(--gray-100); border-radius: 20px; padding: 3px 8px; flex: none; }
.fc-chev { color: var(--gray-400); flex: none; transition: transform .2s; }
.fc-role.is-open .fc-chev { transform: rotate(180deg); }
.fc-editor { padding: 12px; border-top: 1px solid var(--gray-100); background: var(--gray-50, #fafafa); display: flex; flex-direction: column; gap: 12px; }
.fc-seg { margin: 0; align-self: flex-start; }
.fc-seg .seg { padding: 6px 16px; font-size: 12.5px; }
.fc-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 7px; }
.fc-cw, .fc-gw { position: relative; aspect-ratio: 1 / 1; border-radius: 8px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); transition: transform .13s, box-shadow .14s; }
.fc-cw:hover, .fc-gw:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 5px 12px rgba(0,0,0,.18); z-index: 1; }
.fc-cw.is-active, .fc-gw.is-active { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--jv-violet, #c16ffb); }
.fc-grads { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
.fc-grads .fc-gw { aspect-ratio: 16 / 10; }
.fc-own { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--gray-700); cursor: pointer; }
.fc-own-sw { position: relative; width: 34px; height: 34px; border-radius: 9px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); overflow: hidden; }
.fc-own-sw input[type=color] { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); opacity: 0; border: none; padding: 0; cursor: pointer; }
.fc-gcustom { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.fc-gc-label { font-size: 12.5px; font-weight: 600; color: var(--gray-700); width: 100%; }
.fc-gc-in { width: 42px; height: 34px; padding: 0; border: none; border-radius: 9px; background: none; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.fc-gc-in::-webkit-color-swatch-wrapper { padding: 0; }
.fc-gc-in::-webkit-color-swatch { border: none; border-radius: 9px; }

/* Расширенное превью 1:1 — новые состояния */
.tpm-cart { position: relative; flex: none; color: var(--ink); display: flex; align-items: center; }
.tpm-cart .counter { position: absolute; top: -7px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; font-weight: 800; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--accent-fill, var(--accent)); color: var(--accent-ink); }
.tpm-chips .chip-filter.chip-accent { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.tpm-chips .chip-filter.is-hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.tpm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tpm-card { max-width: none; }
.tpm-card-photo { height: 120px; }
.tpm-fav { position: absolute; top: 7px; right: 7px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--gray-400); box-shadow: 0 2px 6px rgba(0,0,0,.14); }
.tpm-fav.is-active { color: var(--accent); }
.tpm-card-price { font-size: 16px; }
.tpm-counter { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 1px; }
.tpm-checkout { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.tpm-checkout .buy-now { padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.tpm-success { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.tpm-success .success-icon { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }

@media (max-width: 860px) { .colors-layout { grid-template-columns: 1fr; } .colors-preview-col { position: static; order: -1; } }

/* ---------- «Инфо» с тех.требованиями + промпт для нейросети ---------- */
.info-wrap { position: relative; display: inline-block; margin-top: 14px; }
.info-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1.5px solid var(--jv-violet, #c16ffb); border-radius: 10px; background: #faf5ff; color: var(--jv-heading, #200131); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .15s; }
.info-btn:hover { background: #f3e9ff; }
.info-btn svg { width: 18px; height: 18px; color: var(--jv-violet, #c16ffb); flex: none; }
.info-chev { margin-left: 2px; transition: transform .18s; font-size: 11px; color: var(--gray-500, #8a8a8a); }
.info-wrap.open .info-chev { transform: rotate(180deg); }
.info-wrap.open .info-btn { background: #f3e9ff; box-shadow: 0 0 0 3px rgba(193, 111, 251, .16); }
/* Поповер-тултип с тех.требованиями */
.info-pop { display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 380px; max-width: min(92vw, 380px); background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; box-shadow: 0 16px 44px rgba(20, 10, 40, .18); padding: 16px 18px; }
.info-wrap.open .info-pop { display: block; animation: infoPop .16s ease-out; }
@keyframes infoPop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.info-pop:before { content: ''; position: absolute; top: -7px; left: 22px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--gray-200); border-top: 1px solid var(--gray-200); transform: rotate(45deg); }
.info-pop-title { font-size: 14px; font-weight: 800; color: var(--jv-heading, #200131); margin-bottom: 10px; }
.info-pop .req-list, .info-pop .info-specs { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; }
.info-pop li { font-size: 13px; color: var(--gray-600); line-height: 1.45; padding-left: 16px; position: relative; }
.info-pop li:before { content: '•'; position: absolute; left: 3px; color: var(--jv-violet, #c16ffb); font-weight: 800; }
.info-pop li b { color: var(--jv-heading, #200131); font-weight: 700; }
.info-pop code { background: var(--gray-100); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
@media (max-width: 640px) { .info-wrap { display: block; } .info-pop { width: 90vw; max-width: 90vw; } }
.ai-prompt { margin-top: 14px; border: 1px solid var(--gray-200); border-radius: 14px; padding: 14px; background: var(--gray-100); }
.ai-prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ai-prompt-title { font-size: 14px; font-weight: 700; }
.ai-prompt-title small { font-weight: 600; color: var(--gray-500, #8a8a8a); font-size: 12px; }
.ai-prompt-text { width: 100%; box-sizing: border-box; resize: vertical; border: 1px solid var(--gray-200); border-radius: 10px; padding: 12px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; color: #333; background: #fff; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; background: var(--jv-heading, #200131); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: filter .15s, background .15s; flex: none; }
.copy-btn:hover { filter: brightness(1.18); }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn.copied { background: #1c8a4d; }

/* ---------- Настройка: категории магазина ---------- */
.cats-block { grid-column: 1 / -1; }
.cats-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.cat-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--gray-200); border-radius: 11px; }
.cat-name { font-weight: 700; font-size: 14px; }
.cat-count { font-size: 12.5px; color: var(--gray-500, #8a8a8a); }
.cat-tag { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--gray-600); background: var(--gray-100); border-radius: 20px; padding: 3px 10px; }
.cat-tag-own { color: #1c8a4d; background: #eafaf0; }
.cat-del { font-size: 13px; font-weight: 700; color: #d1344b; background: #fdecec; border-radius: 9px; padding: 7px 14px; cursor: pointer; transition: background .15s; }
.cat-del:hover:not(:disabled) { background: #fbdada; }
.cat-del:disabled { opacity: .45; cursor: not-allowed; }
.cats-add { display: flex; gap: 10px; flex-wrap: wrap; }
.cats-add .prod-input { flex: 1; min-width: 220px; }
.cats-add.shake { animation: catShake .35s; }
@keyframes catShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* «+ Товар» у категории */
.cat-add-prod { font-size: 13px; font-weight: 700; color: var(--jv-heading, #200131); background: var(--gray-100); border-radius: 9px; padding: 7px 13px; cursor: pointer; transition: background .15s; white-space: nowrap; }
.cat-add-prod:hover { background: var(--gray-200); }

/* ---------- Личный кабинет покупателя ---------- */
.acct-wrap { display: flex; justify-content: center; padding: 20px 16px 60px; }
.acct-wrap.is-wide { display: block; max-width: 860px; margin: 0 auto; padding: 8px 16px 60px; }
.acct-card { width: 100%; max-width: 420px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 20px; padding: 34px 30px; box-shadow: 0 16px 48px rgba(0, 0, 0, .07); text-align: center; }
.acct-badge { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 18px; background: var(--accent-soft, #f4eef8); color: var(--accent-deep, var(--jv-violet, #7c5cff)); margin-bottom: 16px; }
.acct-badge svg { width: 30px; height: 30px; }
.acct-badge-ok { background: #e6f7ee; color: #12a05a; }
.acct-title { font-family: var(--font-display); font-size: 25px; font-weight: 800; letter-spacing: -0.4px; color: var(--jv-heading, #200131); }
.acct-sub { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--gray-600); }
.acct-form { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.acct-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 440px) { .acct-two { grid-template-columns: 1fr; } }
.acct-field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.acct-flabel { font-size: 12.5px; font-weight: 700; color: var(--gray-600); }
.acct-input { width: 100%; height: 52px; padding: 0 15px; border: 1.5px solid var(--gray-200); border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--jv-heading, #200131); transition: border-color .14s, box-shadow .14s; background: var(--white); }
.acct-input::placeholder { color: var(--gray-400); font-weight: 500; }
.acct-input:focus { outline: none; border-color: var(--accent, var(--jv-violet, #7c5cff)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #7c5cff) 14%, transparent); }
.acct-btn { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 12px; background: var(--btn-bg, var(--jv-violet, #7c5cff)); color: var(--btn-fg, #fff); font-size: 16px; font-weight: 800; cursor: pointer; transition: filter .14s, transform .1s, opacity .14s; }
.acct-btn:hover:not(:disabled) { filter: brightness(1.06); }
.acct-btn:active:not(:disabled) { transform: scale(.99); }
.acct-btn:disabled { opacity: .45; cursor: not-allowed; }
.acct-fine { font-size: 11.5px; line-height: 1.45; color: var(--gray-400); text-align: center; }
.acct-link { display: inline; background: none; padding: 0; color: var(--accent-deep, var(--jv-violet, #7c5cff)); font-weight: 700; font-size: inherit; cursor: pointer; }
.acct-link:hover { text-decoration: underline; }
.acct-err { margin-top: 10px; font-size: 13px; font-weight: 700; color: #d1373a; text-align: center; }
/* код из СМС */
.acct-code { display: flex; gap: 9px; justify-content: center; margin: 22px 0 6px; }
.acct-code.shake { animation: acct-shake .38s; }
@keyframes acct-shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-7px)} 40%,80%{transform:translateX(7px)} }
.acct-code-in { width: 46px; height: 56px; text-align: center; border: 1.5px solid var(--gray-200); border-radius: 12px; font-size: 24px; font-weight: 800; color: var(--jv-heading, #200131); transition: border-color .14s, box-shadow .14s; }
.acct-code-in:focus { outline: none; border-color: var(--accent, var(--jv-violet, #7c5cff)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #7c5cff) 14%, transparent); }
.acct-resend { display: block; margin: 14px auto 0; }
/* подсказки адреса */
.acct-addr-field { z-index: 5; }
.acct-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .14); overflow: hidden; z-index: 20; }
.acct-sug-item { display: block; width: 100%; text-align: left; padding: 11px 14px; font-size: 14px; color: var(--jv-heading, #200131); cursor: pointer; transition: background .12s; }
.acct-sug-item:hover { background: var(--accent-soft, #f4eef8); }
.acct-sug-item + .acct-sug-item { border-top: 1px solid var(--gray-100); }
/* кабинет */
.cab-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cab-hello { font-family: var(--font-display); font-size: 27px; font-weight: 800; letter-spacing: -0.5px; color: var(--jv-heading, #200131); }
.cab-sub { margin-top: 4px; font-size: 14.5px; color: var(--gray-600); }
.cab-logout { flex: none; font-size: 14px; }
.cab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .cab-grid { grid-template-columns: 1fr; } }
.cab-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 20px 22px; }
.cab-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cab-card-head h3 { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.cab-row { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--gray-100); font-size: 14px; }
.cab-row:first-of-type { border-top: none; }
.cab-k { flex: none; width: 84px; color: var(--gray-600); }
.cab-v { font-weight: 600; color: var(--jv-heading, #200131); }
.cab-orders { display: flex; flex-direction: column; }
.cab-order { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--gray-100); }
.cab-order:first-child { border-top: none; }
.cab-order-num { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.cab-order-status { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.cab-order-sum { font-weight: 800; font-size: 14px; white-space: nowrap; }
.cab-shop-btn { display: flex; max-width: 280px; margin: 24px auto 0; text-decoration: none; }

/* ---------- Раздел «Заказы» покупателя ---------- */
.ord-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ord-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--gray-200); }
.ord-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 4px; margin-right: 18px; font-size: 15px; font-weight: 700; color: var(--gray-600); border-bottom: 2.5px solid transparent; margin-bottom: -1px; cursor: pointer; transition: color .14s, border-color .14s; }
.ord-tab:hover { color: var(--jv-heading, #200131); }
.ord-tab.active { color: var(--jv-heading, #200131); border-bottom-color: var(--accent, var(--jv-violet, #7c5cff)); }
.ord-tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gray-100); font-size: 11.5px; font-weight: 800; color: var(--gray-600); }
.ord-tab.active .ord-tab-count { background: var(--accent-soft, #f0e9fb); color: var(--accent-deep, var(--jv-violet, #7c5cff)); }
.ord-list { display: flex; flex-direction: column; gap: 14px; }
.ord-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 18px 20px; }
.ord-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ord-card-id b { font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.ord-card-id .mini-sub { display: block; margin-top: 2px; }
.ord-status { flex: none; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 20px; white-space: nowrap; }
.ord-delivery { display: flex; align-items: center; gap: 11px; margin: 14px 0; padding: 11px 14px; border-radius: 12px; background: var(--gray-50, #fafafa); }
.ord-del-ico { display: inline-flex; color: var(--accent-deep, var(--jv-violet, #7c5cff)); }
.ord-del-ico svg { width: 24px; height: 24px; }
.ord-delivery > span:last-child { display: flex; flex-direction: column; gap: 1px; font-size: 14px; }
.ord-items { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ord-thumb { position: relative; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--gray-100); border: 1px solid var(--gray-200); display: block; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
a.ord-thumb { cursor: pointer; }
a.ord-thumb:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,24,48,.14); border-color: var(--gray-300); }
.ord-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ord-qty { position: absolute; right: 3px; bottom: 3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: rgba(0,0,0,.72); color: #fff; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ord-more { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 14px; background: var(--gray-100); font-size: 14px; font-weight: 800; color: var(--gray-600); }
.ord-total { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.ord-total b { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.ord-actions { margin-top: 14px; }
.ord-return-btn { font-size: 13.5px; }
/* Чеки */
.rcp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rcp-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.rcp-head { display: flex; align-items: center; gap: 11px; }
.rcp-ico { display: inline-flex; color: var(--accent-deep, var(--jv-violet, #7c5cff)); }
.rcp-ico svg { width: 26px; height: 26px; }
.rcp-head b { font-size: 14.5px; font-weight: 800; }
.rcp-head .mini-sub { display: block; margin-top: 1px; }
.rcp-rows { display: flex; flex-direction: column; gap: 7px; }
.rcp-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--gray-600); }
.rcp-row span:last-child { color: var(--jv-heading, #200131); font-weight: 600; }
.rcp-disc { color: #d1373a !important; }
.rcp-total { padding-top: 8px; border-top: 1px solid var(--gray-100); }
.rcp-total span { font-size: 15px; font-weight: 800 !important; }
.rcp-download { align-self: flex-start; font-size: 13.5px; }

/* Выкупленные — каталог купленных товаров с оценкой */
.ord-done-intro { margin: 0 0 18px; }
.bought-grid .card-img { cursor: pointer; }
.bought-card .card-body { gap: 8px; }
.rate-block { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--gray-200); display: flex; flex-direction: column; gap: 6px; }
.rate-label { font-size: 12.5px; font-weight: 700; color: var(--gray-600); letter-spacing: .01em; }
.rate-block.is-rated .rate-label { color: #199a5b; }
.rate-stars { display: inline-flex; gap: 3px; }
.rate-star { padding: 2px; background: none; border: 0; cursor: pointer; line-height: 0; color: var(--gray-300); transition: transform .12s ease, color .12s ease; }
.rate-star svg { width: 27px; height: 27px; display: block; }
.rate-star:hover { transform: scale(1.14); }
.rate-star.on { color: #ffb400; }
.rate-stars:hover .rate-star { color: var(--gray-300); }
.rate-stars .rate-star.hover { color: #ffc73a; }
.rate-hint { font-size: 12px; color: var(--gray-500, #9a9aa8); }
.rate-review-link { align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent-deep, var(--jv-violet, #7c5cff)); text-decoration: underline; text-underline-offset: 2px; }
.rate-review-link:hover { opacity: .8; }

/* Модальное окно отзыва */
.review-modal { width: min(460px, 92vw); padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 18px; text-align: left; }
.rv-head { display: flex; align-items: center; gap: 14px; }
.rv-thumb { width: 66px; height: 66px; border-radius: 14px; overflow: hidden; flex: none; background: var(--gray-100); border: 1px solid var(--gray-200); display: block; }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-head-txt { min-width: 0; }
.rv-name { display: block; margin-top: 3px; font-size: 15.5px; font-weight: 800; line-height: 1.25; color: var(--jv-heading, #200131); }
.rv-stars-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 2px; }
.rv-stars { display: inline-flex; gap: 6px; }
.rv-star { padding: 2px; background: none; border: 0; cursor: pointer; line-height: 0; color: var(--gray-300); transition: transform .12s ease, color .12s ease; }
.rv-star svg { width: 40px; height: 40px; display: block; }
.rv-star:hover { transform: scale(1.12); }
.rv-star.on { color: #ffb400; }
.rv-stars:hover .rv-star { color: var(--gray-300); }
.rv-stars .rv-star.hover { color: #ffc73a; }
.rv-stars-label { font-size: 15px; font-weight: 800; color: var(--jv-heading, #200131); min-height: 20px; }
.rv-field { display: flex; flex-direction: column; gap: 7px; }
.rv-field-label { font-size: 13px; font-weight: 700; color: var(--gray-600); }
.rv-optional { font-weight: 500; color: var(--gray-500, #9a9aa8); }
.rv-text { width: 100%; resize: vertical; min-height: 92px; padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: 12px; font: inherit; font-size: 14px; color: var(--jv-heading, #200131); background: var(--white); transition: border-color .15s ease; }
.rv-text:focus { outline: none; border-color: var(--accent-deep, var(--jv-violet, #7c5cff)); }
.rv-submit { width: 100%; }
