/* STRProfi — шаблон strprofi_redesign. Основа — прототип v1-pro (www/redesign/v1-pro/assets/style.css),
   меню «Каталог» — из v4-tech (ADR-0004). Здесь только каркас страницы и общие элементы;
   стили страниц каталога — в шаблонах компонентов (style.css рядом с template.php). */
:root {
  --brand: #e9711c;
  --brand-hover: #d0600f;
  --brand-soft: #fff1e6;
  --ink: #1d2126;
  --ink-2: #4a5059;
  --muted: #7b828c;
  --line: #e4e6ea;
  --line-2: #eceef1;
  --bg: #f3f4f6;
  --card: #ffffff;
  --ok: #1f9d55;
  --ok-soft: #e7f6ee;
  --warn: #c27c0e;
  --sale: #e2342d;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .16);
  --wrap: 1320px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-sm);
  font-weight: 600; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { background: var(--card); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn.is-added { background: var(--ok); }

/* ---------- Верхняя строка ---------- */
.topbar { background: var(--ink); color: #c9ced6; font-size: 13px; overflow: hidden; }
.topbar .wrap { display: flex; align-items: center; gap: 22px; height: 36px; }
.topbar a:hover, .topbar a.is-on { color: #fff; }
.topbar .spacer { flex: 1; }
.topbar .notice { color: #ffc58f; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-phone { color: #fff; font-weight: 600; }

/*----------- Кнопка переключения на старый дизайн-------------------*/
.topbar {
  position: relative;
}
.topbar-design-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.07); /* Чуть светлее фона топбара для акцента */
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s ease;
  z-index: 10;
}

.topbar-design-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ---------- Шапка ---------- */
.header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-main { display: flex; align-items: center; gap: 20px; height: 76px; }
.logo { flex: none; }
.logo img { display: block; height: 44px; width: auto; }
.btn-catalog { height: 48px; padding: 0 22px; }
.btn-catalog .icon-close { display: none; }
.menu-open .btn-catalog .icon-burger { display: none; }
.menu-open .btn-catalog .icon-close { display: block; }

.search { flex: 1; display: flex; position: relative; min-width: 0; margin: 0; }
.search input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px 0 46px;
  border: 2px solid var(--brand); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--card); outline: none; -webkit-appearance: none;
}
.search .icon-search { position: absolute; left: 15px; top: 13px; color: var(--muted); }
.search button { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; height: 48px; }
.search-drop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; max-height: min(70vh, 560px); overflow: auto;
}
.sd-group { padding: 4px 0; }
.sd-group + .sd-group { border-top: 1px solid var(--line); }
.sd-group > b { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 6px 10px; }
.sd-sec, .sd-item { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 8px; }
.sd-sec:hover, .sd-item:hover { background: var(--bg); color: var(--ink); }
.sd-sec img { width: 32px; height: 32px; object-fit: contain; }
.sd-img { width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.sd-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sd-name { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; }
.sd-name small { display: block; color: var(--muted); font-size: 12px; }
.sd-price { font-weight: 700; white-space: nowrap; font-size: 14px; }
.sd-price.is-out { color: var(--muted); font-weight: 500; }
.sd-all { display: block; padding: 10px; font-weight: 600; color: var(--brand); }
.sd-empty { padding: 12px 10px; color: var(--muted); }
.search-page-form { display: flex; gap: 8px; padding: 12px; margin-bottom: 16px; }
.search-page-form input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; outline: none; }
.search-page-form input:focus { border-color: var(--brand); }
.search-sections { margin-bottom: 16px; }
.search-sections h2 { font-size: 16px; margin-bottom: 10px; }
.chips-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.chip img { width: 26px; height: 26px; object-fit: contain; }
.chip:hover { border-color: var(--brand); }

.header-actions { display: flex; gap: 4px; }
.h-action {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 64px; padding: 6px; border-radius: var(--radius-sm); font-size: 12px; color: var(--ink-2); white-space: nowrap;
}
.h-action:hover { background: var(--bg); color: var(--ink); }
.h-action .badge {
  position: absolute; top: 0; right: 10px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.badge:empty, .badge[data-count="0"] { display: none; }
.h-cart { flex-direction: row; gap: 10px; padding: 6px 14px; background: var(--brand-soft); color: var(--ink); }
.h-cart:hover { background: #ffe3cc; }
.h-cart .cart-text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.h-cart .cart-sum { font-weight: 700; font-size: 14px; }
.h-cart .badge { right: auto; left: 26px; }

.header-nav { display: flex; gap: 12px; height: 44px; align-items: center; font-size: 14px; }
.header-nav-links {
  flex: 1; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
}
.header-nav-links::-webkit-scrollbar { display: none; }
.header-nav-links a { padding: 6px 12px; border-radius: 20px; white-space: nowrap; color: var(--ink-2); }
.header-nav-links a:hover, .header-nav-links a.is-on { background: var(--bg); color: var(--ink); }
.header-nav-links .nav-sale { color: var(--sale); font-weight: 600; }
.nav-price { position: relative; }
.nav-price > button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 12px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.nav-price > button:hover { background: var(--bg); }
.nav-price-drop {
  display: none; position: absolute; right: 0; top: calc(100% + 4px); min-width: 180px; padding: 6px; z-index: 5;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.nav-price-drop a { display: block; padding: 8px 12px; border-radius: 6px; }
.nav-price-drop a:hover { background: var(--bg); }
.nav-price.is-open .nav-price-drop { display: block; }

/* ---------- Меню «Каталог» (сетка из v4-tech) ---------- */
.index {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--card); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 140px); overflow: auto; overscroll-behavior: contain;
}
.menu-open .index { display: block; }
.index .wrap { padding-top: 16px; padding-bottom: 24px; }
.index-head { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 10px; }
.index-title { display: none; margin-right: auto; font-size: 18px; }
.index-close { display: none; border: 0; background: var(--bg); width: 40px; height: 40px; border-radius: 50%; place-items: center; }
.index-all { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--brand); }
.index-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden;
}
.index-cell {
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 14px 16px;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 14px; align-content: start; transition: background .15s;
}
.index-cell:hover { background: #fafafb; }
.index-img { grid-row: span 2; width: 48px; height: 48px; border-radius: var(--radius-sm); background: #f7f7f8; display: grid; place-items: center; overflow: hidden; }
.index-img img { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: multiply; }
.index-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.index-cell.is-sale .index-name { color: var(--sale); }
.index-cell .subs { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.index-cell .subs a:hover { color: var(--brand); }
.index-cell .subs-more { color: var(--brand); }
.overlay { display: none; position: fixed; inset: 0; background: rgba(15, 18, 22, .45); z-index: 40; }
.menu-open .overlay, .filters-open .overlay { display: block; }
.menu-open body { overflow: hidden; }

/* ---------- Страница ---------- */
main.page { padding: 20px 0 48px; min-height: 50vh; }
main.page-home { padding-top: 24px; }
.page-title { margin-bottom: 18px; }
/* Старые страницы со своим <h1> (корзина, регистрация, успех заказа): заголовок шапки не дублируем */
main.page > .wrap:has(h1:not(.rd-h1)) > h1.rd-h1 { display: none; }
/* Обёртки старых страниц с классами Bootstrap */
main.page #content[class*="col-"] { width: 100%; max-width: none; padding: 0; float: none; }
main.page .wrap > h2, main.page #content > h2 { margin: 0 0 12px; }

/* ---------- Личный кабинет и авторизация ---------- */
.lk { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.lk-nav { padding: 10px; display: grid; gap: 2px; position: sticky; top: 136px; }
.lk-user { display: flex; gap: 10px; align-items: center; padding: 8px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; min-width: 0; }
.lk-user > span:last-child { min-width: 0; }
.lk-user b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-user small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.lk-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.lk-nav a:hover { background: var(--bg); color: var(--ink); }
.lk-nav a.is-on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.lk-nav .lk-logout { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--muted); }
.lk-main { min-width: 0; }
.lk-main > div:not(.card), .lk-main > table, .lk-main > form { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.lk-card { padding: 24px; }
.lk-form h2 { font-size: 17px; margin: 8px 0 14px; }
.lk-form h2:not(:first-of-type) { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.alert-error, .errortext { background: #fdeceb; color: #b42318; }
.alert-ok, .notetext { background: var(--ok-soft); color: #146c3c; }
.errortext, .notetext { display: block; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
.orders { display: grid; gap: 12px; }
.order-row { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 10px; }
.order-row.is-cancelled { opacity: .6; }
.order-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.order-head .spacer { flex: 1; }
.order-num { font-weight: 700; font-size: 16px; }
.order-status { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
.order-status.is-cancelled { background: var(--bg); color: var(--muted); }
.order-sum { font-size: 18px; }
.order-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; }
.order-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.auth-card { max-width: 440px; padding: 28px; display: grid; gap: 14px; }
.auth-card h2 { font-size: 22px; }
.auth-card p { margin: 0; }
.auth-card-wide { max-width: 720px; }
.auth-card form { display: grid; gap: 4px; }
.auth-card .form-row { margin-bottom: 10px; }
.auth-card .btn { margin-top: 6px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.auth-links a, .auth-card a:not(.btn) { color: var(--brand); }
.auth-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 960px) {
  .lk { grid-template-columns: minmax(0, 1fr); }
  .lk-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .lk-user { grid-column: 1 / -1; }
  .lk-nav .lk-logout { border-top: 0; margin-top: 0; }
}
@media (max-width: 720px) {
  .lk-card, .auth-card, .lk-main > div:not(.card), .lk-main > form { padding: 16px; }
}
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #c3c7cd; }
.crumbs a:hover { color: var(--brand); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head a { color: var(--brand); font-weight: 600; font-size: 14px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.tag-sale { background: var(--sale); color: #fff; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); font-weight: 500; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.is-low { color: var(--warn); }
.stock.is-out { color: var(--muted); }

/* Текстовые страницы (контент из визуального редактора) */
.content-text { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; max-width: 1080px; overflow-x: auto; }
.content-text img { max-width: 100%; height: auto; }
.content-text h2, .content-text h3 { margin: 18px 0 10px; }
.content-text > :first-child { margin-top: 0; }
.done { max-width: 720px; margin: 8px auto 0; padding: 36px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.done-ico .icon { width: 32px; height: 32px; stroke-width: 2.5; }
.done p { margin: 0; color: var(--ink-2); max-width: 560px; }
.done-list { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.done-list td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.done-list td:nth-child(n+2) { text-align: right; white-space: nowrap; padding-left: 16px; }
.done-list .is-total td { font-weight: 700; border-bottom: 0; }
.nf-code { font-size: 72px; font-weight: 800; line-height: 1; color: var(--brand); letter-spacing: -.03em; }
.nf-search { width: 100%; max-width: 480px; padding: 0; box-shadow: none; margin: 0; }
.done > * { max-width: 100%; min-width: 0; }
@media (max-width: 720px) {
  .done { padding: 24px 16px; }
  .nf-code { font-size: 56px; }
  .nf-search .btn { padding: 0 14px; }
}
.done-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.content-text p, .content-text ul, .content-text ol { margin: 0 0 12px; }
.content-text a { color: var(--brand); }
.content-text table { border-collapse: collapse; max-width: 100%; }
.content-text td, .content-text th { border: 1px solid var(--line); padding: 8px 10px; }

/* ---------- Общие элементы каталога ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .count { color: var(--muted); font-size: 14px; margin-left: 8px; font-weight: 400; letter-spacing: 0; }
.ibtn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--muted);
  display: inline-grid; place-items: center; flex: none; transition: color .15s, background .15s;
}
.ibtn:hover { color: var(--brand); background: var(--brand-soft); }
.ibtn.js-fav.is-on { color: var(--sale); }
.ibtn.js-fav.is-on .icon { fill: currentColor; }
.ibtn.js-compare.is-on { color: #fff; background: var(--brand); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--card); height: 36px; flex: none; }
.qty button { border: 0; background: transparent; width: 30px; height: 100%; font-size: 18px; line-height: 1; color: var(--ink-2); padding: 0; }
.qty button:hover { color: var(--brand); }
.qty input { width: 50px; height: 100%; border: 0; text-align: center; outline: none; background: transparent; -moz-appearance: textfield; padding: 0; min-width: 0; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty .qty-unit { color: var(--muted); font-size: 12px; padding-right: 2px; }
.qty-lg { height: 48px; }
.qty-lg button { width: 42px; }
.qty-lg input { width: 70px; font-size: 16px; font-weight: 600; }

.pcard { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 8px; position: relative; min-width: 0; }
.pcard-tools { position: absolute; top: 18px; right: 18px; display: flex; flex-direction: column; gap: 6px; z-index: 1; }
.pcard .tags { position: absolute; top: 20px; left: 20px; z-index: 1; }
.pcard-img { aspect-ratio: 1; border-radius: var(--radius-sm); background: #fff; display: grid; place-items: center; overflow: hidden; color: #c6cad0; position: relative; }
.pcard-img img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.pcard-img .icon { width: 56px; height: 56px; stroke-width: 1.2; }
.pcard .art { font-size: 12px; color: var(--muted); }
.pcard-name { font-size: 14px; line-height: 1.35; height: 3.9em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pcard-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.price-now { font-size: 20px; font-weight: 700; white-space: nowrap; }
.price-unit { color: var(--muted); font-size: 13px; }
.alt-price { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.pcard-buy { display: flex; gap: 6px; align-items: center; }
.pcard-buy .qty { flex: 1; min-width: 0; }
.pcard-buy .qty input { flex: 1; width: 100%; }
.pcard-buy .btn { width: 44px; padding: 0; flex: none; }
.fav-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1200px) { .fav-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px) { .fav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.products-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.products-row .pcard:nth-child(n+6) { display: none; }

/* Плитки разделов */
.cats-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.cat-tile {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 12px 16px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; transition: transform .15s, box-shadow .15s;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--ink); }
.cat-tile .cat-img { width: 100%; aspect-ratio: 4 / 3; position: relative; }
.cat-tile .cat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cat-tile b { font-size: 13px; font-weight: 600; line-height: 1.3; }
.cat-tile.is-sale b { color: var(--sale); }
.cat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cat-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 18px; align-items: start; }
.cat-card-img { aspect-ratio: 1; position: relative; border-radius: var(--radius-sm); background: #fff; }
.cat-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cat-card-name { font-weight: 700; font-size: 16px; line-height: 1.3; display: block; margin-bottom: 8px; }
.cat-card.is-sale .cat-card-name { color: var(--sale); }
.cat-card-subs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.cat-card-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--brand); }

/* ---------- Главная ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.hero-main {
  position: relative; overflow: hidden; min-height: 340px; padding: 40px 44px; border-radius: var(--radius);
  background: linear-gradient(115deg, #22262c 0%, #2d3239 55%, #3a3f47 100%); color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.hero-main h1 { font-size: 38px; max-width: 600px; position: relative; }
.hero-main p { margin: 0; max-width: 520px; color: #c9ced6; font-size: 16px; position: relative; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.hero-main .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.hero-main .btn-ghost:hover { border-color: #fff; color: #fff; }
.hero-art { position: absolute; right: -40px; bottom: -40px; width: 380px; height: 380px; opacity: .95; pointer-events: none; }
.hero-stats { display: flex; gap: 32px; margin-top: 6px; position: relative; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 24px; color: var(--brand); }
.hero-stats span { font-size: 13px; color: #aab0b8; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.promo {
  border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  background: var(--card); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.promo h3 { font-size: 20px; }
.promo p { margin: 0; color: var(--ink-2); font-size: 14px; }
.promo-sale { background: var(--brand); color: #fff; }
.promo-sale:hover { background: var(--brand-hover); color: #fff; }
.promo-sale p { color: #ffe3cc; }
.promo-sale .promo-big { font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.promo-sale h3 { font-size: 16px; font-weight: 600; margin-top: 4px; }
.promo-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.promo-links { display: flex; gap: 10px; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.benefit .b-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.benefit b { display: block; margin-bottom: 2px; }
.benefit span { font-size: 13px; color: var(--ink-2); }
.wholesale { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; }
.wholesale-text { padding: 36px 40px; display: flex; flex-direction: column; gap: 16px; }
.wholesale-text p { margin: 0; color: var(--ink-2); }
.wholesale-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.wholesale-levels { background: var(--bg); padding: 28px 32px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.level { display: flex; justify-content: space-between; align-items: center; background: var(--card); border-radius: var(--radius-sm); padding: 14px 18px; border: 1px solid var(--line); }
.level.is-current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.level span { font-size: 13px; color: var(--muted); }
.level .level-tag { font-weight: 700; color: var(--brand); font-size: 14px; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--ok); margin-top: 1px; }
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.article { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.article small { color: var(--brand); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.article p { margin: 0; color: var(--ink-2); font-size: 14px; }
.articles-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.art-sections { margin-bottom: 16px; }
.article-body { max-width: 900px; line-height: 1.65; }
.article-body img { max-width: 100%; height: auto; }
.article-body h2, .article-body h3 { margin: 18px 0 8px; }
.article-pic { display: block; margin-bottom: 16px; border-radius: var(--radius-sm); }
.article-back { margin-top: 16px; }
.article-back a { color: var(--brand); font-weight: 600; }
@media (max-width: 960px) { .articles-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .articles-list { grid-template-columns: 1fr; } }

@media (max-width: 1200px) {
  .cats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .products-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .products-row .pcard:nth-child(n+5) { display: none; }
  .cat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .cats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .products-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .products-row .pcard:nth-child(n+4) { display: none; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .wholesale { grid-template-columns: 1fr; }
  .articles { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-main { padding: 28px 22px; min-height: 0; }
  .hero-main h1 { font-size: 26px; }
  .hero-art { width: 220px; height: 220px; right: -60px; bottom: -60px; opacity: .35; }
  .hero-stats { gap: 18px; }
  .hero-stats b { font-size: 18px; white-space: nowrap; }
  .hero-stats span { font-size: 12px; }
  .hero-side { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat-tile { padding: 10px 8px 12px; }
  .cat-tile b { font-size: 12px; overflow-wrap: anywhere; hyphens: auto; }
  .cat-cards { grid-template-columns: 1fr; }
  .cat-card { grid-template-columns: 72px minmax(0, 1fr); padding: 14px; gap: 12px; }
  .products-row { grid-template-columns: repeat(10, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .products-row .pcard { scroll-snap-align: start; }
  .products-row .pcard:nth-child(n) { display: flex; }
  .benefits { grid-template-columns: 1fr; }
  .wholesale-text, .wholesale-levels { padding: 24px 20px; }
  .price-now { font-size: 17px; }
}

/* ---------- Раздел каталога ---------- */
.catalog-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 4px; }
.catalog-layout.no-filter { grid-template-columns: minmax(0, 1fr); }
.cat-cards + .catalog-layout { margin-top: 20px; }
.catalog-main { min-width: 0; }
.filters { position: sticky; top: 136px; max-height: calc(100vh - 152px); overflow: auto; overscroll-behavior: contain; }
.filters-head { display: none; }
.smart-filter { padding: 6px 0 14px; }
.f-group { border-bottom: 1px solid var(--line); padding: 0 18px; }
.f-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0; font-weight: 600; font-size: 14px; cursor: pointer; }
.f-group summary::-webkit-details-marker { display: none; }
.f-group summary .icon { transform: rotate(90deg); transition: transform .15s; color: var(--muted); }
.f-group[open] summary .icon { transform: rotate(-90deg); }
.f-group > div { padding-bottom: 14px; }
.f-opts { display: grid; gap: 2px; }
.f-opts.is-scroll { max-height: 240px; overflow: auto; padding-right: 4px; }
.f-opt { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; cursor: pointer; }
.f-opt input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex: none; }
.f-opt small { margin-left: auto; color: var(--muted); }
.f-opt.is-disabled, .f-pill.is-disabled { opacity: .45; cursor: default; }
.f-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.f-pill { position: relative; }
.f-pill input { position: absolute; opacity: 0; pointer-events: none; }
.f-pill span { display: block; min-width: 40px; padding: 5px 10px; text-align: center; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; cursor: pointer; }
.f-pill input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.f-pill input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
.price-range { display: flex; gap: 8px; }
.price-range input { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; }
.f-actions { padding: 14px 18px 0; display: grid; gap: 8px; }
.js-filter-apply.is-loading { opacity: .7; }

.toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.toolbar .btn-filters { display: none; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.sort select { height: 36px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; background: var(--card); max-width: 100%; }
.view-tabs { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.view-tabs button { border: 0; background: var(--card); height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.view-tabs button + button { border-left: 1px solid var(--line); }
.view-tabs button.is-on { background: var(--ink); color: #fff; }

.sec-tabs { margin-bottom: 12px; overflow: hidden; }
.tab-nav { display: flex; gap: 4px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.tab-nav::-webkit-scrollbar { display: none; }
.tab-nav button { border: 0; background: none; padding: 14px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab-nav button.is-on { color: var(--ink); border-color: var(--brand); }
.catalog-main > .tab-panel { display: none; }
.catalog-main > .tab-panel.is-on { display: block; }
.sec-tab-panel { padding: 24px; overflow-x: auto; }
.sec-tab-panel table { border-collapse: collapse; font-size: 13px; }
.sec-tab-panel td, .sec-tab-panel th { border: 1px solid var(--line); padding: 6px 8px; }
.sec-tab-panel img { max-width: 100%; height: auto; }
.sec-pdf { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 12px; }

.ptable-wrap { overflow: hidden; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover { background: #fafafb; }
.ptable tr.is-out .col-name a { color: var(--ink-2); }
.ptable .col-art { color: var(--muted); font-size: 13px; width: 64px; }
.ptable .col-name a { font-weight: 500; }
.ptable .col-name small { display: block; color: var(--muted); font-size: 12px; }
.ptable .col-name .note { color: var(--warn); }
.ptable .col-price { white-space: nowrap; font-weight: 700; text-align: right; }
.ptable .col-price small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.ptable .col-price.is-dim { color: var(--muted); font-weight: 500; }
.ptable th.col-price { text-align: right; }
.ptable .col-pack { white-space: nowrap; color: var(--ink-2); font-size: 13px; }
.ptable .col-stock { white-space: nowrap; }
.ptable .col-buy { width: 230px; }
.ptable .conv { display: block; text-align: right; color: var(--muted); font-size: 12px; margin-top: 3px; padding-right: 42px; }
.ptable .group-row td { background: var(--bg); font-weight: 700; padding: 10px 12px; }
.buy-inline { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.buy-inline .btn { height: 36px; min-width: 44px; padding: 0 12px; }
.ibtn-line { background: transparent; }
.ptable .col-thumb { width: 60px; }
.ptable .col-thumb span { display: block; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; position: relative; background: #fff; }
.ptable .col-thumb img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; }
.muted { color: var(--muted); font-size: 13px; }

.cards-out > div { display: none; }
.cards-out[data-view="grid"] > .view-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cards-out[data-view="list"] > .view-list { display: grid; gap: 12px; }
.cards-out[data-view="table"] > .view-table { display: block; }
.group-title { grid-column: 1 / -1; font-weight: 700; font-size: 16px; padding: 8px 2px 0; }
.lcard { display: grid; grid-template-columns: 160px minmax(0, 1fr) 280px; gap: 20px; padding: 16px; align-items: start; }
.lc-img { aspect-ratio: 1; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); position: relative; display: block; }
.lc-img img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.lc-mid { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lc-props { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 4px 0 0; font-size: 13px; }
.lc-props dt { color: var(--muted); }
.lc-props dd { margin: 0; }
.lc-links { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.link-btn { border: 0; background: none; padding: 0; display: inline-flex; gap: 5px; align-items: center; color: inherit; font-size: 13px; }
.link-btn.js-fav::after { content: "В избранное"; }
.link-btn.js-compare::after { content: "Сравнить"; }
.link-btn:hover, .link-btn.is-on { color: var(--brand); }
.link-btn.js-fav.is-on .icon { fill: currentColor; }
.lc-buy { display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line); padding-left: 20px; }
.lc-price { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-2); }
.lc-price b { font-size: 15px; color: var(--ink); }
.lc-price.is-main b { font-size: 22px; }
.lc-buy .buy-inline { justify-content: stretch; }
.lc-buy .buy-inline .btn { flex: 1; }

.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; padding: 0 12px; font-weight: 500; }
.pager a { background: var(--card); box-shadow: var(--shadow); }
.pager .is-on { background: var(--brand); color: #fff; }
.seo-text { margin-top: 24px; padding: 24px 28px; color: var(--ink-2); font-size: 14px; }
.seo-text h2 { color: var(--ink); margin-bottom: 8px; font-size: 18px; }
.seo-text img { max-width: 100%; height: auto; }
.empty-state { padding: 32px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.empty-state p { margin: 0; color: var(--ink-2); }

@media (max-width: 1200px) {
  .cards-out[data-view="grid"] > .view-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lcard { grid-template-columns: 130px minmax(0, 1fr) 250px; }
  .ptable .col-pack { display: none; }
}
@media (max-width: 960px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .filters {
    position: fixed; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); max-height: none; z-index: 70;
    border-radius: 0; transform: translateX(-105%); transition: transform .2s;
  }
  .filters-open .filters { transform: none; }
  .filters-open .overlay { z-index: 66; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
  .filters-head button { border: 0; background: none; padding: 6px; }
  .toolbar .btn-filters { display: inline-flex; }
}
@media (max-width: 720px) {
  .toolbar { padding: 10px; gap: 8px; }
  .sort > span { display: none; }
  .view-tabs .vt-label { display: none; }
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; }
  .ptable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .ptable td { border: 0; padding: 0; }
  .ptable .group-row { display: block; padding: 0; }
  .ptable .col-art { grid-column: 1; grid-row: 1; width: auto; font-size: 12px; }
  .ptable .col-name { grid-column: 1 / -1; grid-row: 2; }
  .ptable .col-price.is-dim { display: none; }
  .ptable .col-price { grid-column: 1; grid-row: 3; text-align: left; font-size: 16px; }
  .ptable .col-pack { display: block; grid-column: 2; grid-row: 1; text-align: right; font-size: 12px; }
  .ptable .col-stock { grid-column: 1; grid-row: 4; }
  .ptable .col-buy { grid-column: 2; grid-row: 3 / span 2; width: auto; align-self: center; }
  .ptable .col-buy .ibtn { display: none; }
  .ptable .conv { padding-right: 0; }
  .ptable.is-cards tr { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .ptable.is-cards .col-thumb { grid-column: 1; grid-row: 1 / span 3; width: auto; }
  .ptable.is-cards .col-name { grid-column: 2 / -1; grid-row: 1; }
  .ptable.is-cards .col-price { grid-column: 2; grid-row: 2; }
  .ptable.is-cards .col-stock { grid-column: 2; grid-row: 3; }
  .ptable.is-cards .col-buy { grid-column: 3; grid-row: 2 / span 2; }
  .cards-out[data-view="grid"] > .view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cards-out .pcard { padding: 10px; }
  .pcard-tools { top: 12px; right: 12px; }
  .pcard-buy .qty .qty-unit { display: none; }
  .lcard { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .lc-props, .lc-links { display: none; }
  .lcard h3 { font-size: 14px; }
  .lc-buy { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .seo-text { padding: 18px; }
  .sec-tab-panel { padding: 16px; }
}

/* ---------- Карточка товара ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.gallery { padding: 20px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
.gallery.is-single { grid-template-columns: minmax(0, 1fr); }
.gallery-thumbs { display: flex; flex-direction: column; gap: 8px; }
.gallery-thumbs button { width: 72px; height: 72px; border: 2px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; display: grid; place-items: center; }
.gallery-thumbs button.is-on { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main { aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: var(--radius-sm); overflow: hidden; color: #c6cad0; position: relative; cursor: zoom-in; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery-main .icon { width: 120px; height: 120px; stroke-width: .8; }
.gallery-main .tags { position: absolute; top: 8px; left: 8px; }
.gallery-note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.p-info { padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.p-info h1 { font-size: 24px; }
.p-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.p-meta .copy { border: 0; background: none; padding: 0; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.p-meta .copy:hover { color: var(--brand); }
.specs-short { display: grid; margin: 0; }
.specs-short div { display: flex; gap: 8px; padding: 6px 0; font-size: 14px; }
.specs-short dt { color: var(--muted); flex: none; max-width: 55%; }
.specs-short .dots { flex: 1; border-bottom: 1px dotted #cfd3d8; transform: translateY(-5px); min-width: 12px; }
.specs-short dd { margin: 0; font-weight: 500; text-align: right; }
.more-link { font-size: 14px; font-weight: 600; color: var(--brand); }
.sizes b { display: block; font-size: 13px; color: var(--ink-2); font-weight: 500; margin-bottom: 8px; }
.size-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.size-pills a, .size-pills span { min-width: 42px; text-align: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.size-pills .is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.size-pills a.is-out { color: var(--muted); border-style: dashed; }
.buybox { padding: 22px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 136px; }
.prices { display: grid; gap: 8px; }
.price-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); }
.price-line.is-current { border-color: var(--brand); background: var(--brand-soft); }
.price-line span { font-size: 13px; color: var(--ink-2); }
.price-line b { font-size: 16px; white-space: nowrap; }
.price-line.is-current b { font-size: 26px; }
.price-line small { color: var(--muted); font-weight: 400; font-size: 13px; }
.hint-link { color: var(--brand); font-size: 12px; margin-left: 4px; }
.price-conv { font-size: 13px; color: var(--muted); padding: 0 4px; }
.pack-choice b { display: block; font-size: 13px; color: var(--ink-2); font-weight: 500; margin-bottom: 6px; }
.seg { display: flex; background: var(--bg); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 6px 8px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg button.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.buy-row { display: flex; gap: 8px; }
.buy-row .btn { flex: 1; height: 48px; min-width: 0; }
.buy-row .qty input { width: 64px; }
.total-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); }
.total-line b { color: var(--ink); }
.buy-note { margin: 0; font-size: 13px; color: var(--warn); }
.sub-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sub-btn { flex: 1; border: 1px solid var(--line); background: var(--card); border-radius: 8px; height: 38px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink-2); padding: 0 10px; white-space: nowrap; }
.sub-btn:hover, .sub-btn.is-on { border-color: var(--brand); color: var(--brand); }
.sub-btn.js-fav::after { content: "В избранное"; }
.sub-btn.js-fav.is-on::after { content: "В избранном"; }
.sub-btn.js-fav.is-on .icon { fill: currentColor; }
.sub-btn.js-compare::after { content: "Сравнить"; }
.sub-btn.js-compare.is-on::after { content: "В сравнении"; }
.delivery { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; font-size: 13px; }
.delivery div { display: flex; gap: 10px; }
.delivery .icon { color: var(--brand); }
.delivery b { display: block; font-size: 14px; }
.delivery span { color: var(--muted); }
.tabs { margin-top: 16px; }
.p-tabs .tab-nav { border-bottom: 1px solid var(--line); padding: 0 20px; }
.p-tabs .tab-nav button { padding: 16px 14px; margin-bottom: -1px; }
.p-tabs .tab-panel { display: none; padding: 24px; }
.p-tabs .tab-panel.is-on { display: block; }
.specs-table { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 14px; }
.specs-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.specs-table td:first-child { color: var(--muted); width: 45%; }
.specs-table tr:nth-child(odd) td { background: #fafafb; }
.content-flow { max-width: 900px; color: var(--ink-2); }
.content-flow img { max-width: 100%; height: auto; }
.content-flow table { border-collapse: collapse; }
.content-flow td, .content-flow th { border: 1px solid var(--line); padding: 6px 8px; }
.p-video { width: 100%; max-width: 900px; border-radius: var(--radius-sm); background: #000; }

/* ---------- Модальное окно ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(520px, calc(100vw - 32px)); width: 100%; }
.modal::backdrop { background: rgba(15, 18, 22, .5); }
.modal-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head button { border: 0; background: none; padding: 4px; }
.modal-body { padding: 18px; }
.form-row { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.form-row > input, .form-row > select, .form-row > textarea { min-width: 0; max-width: 100%; }
.form-row label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.input, .form-row input[type=text], .form-row input[type=email], .form-row input[type=tel], .form-row input[type=password], .form-row select, .form-row textarea {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); outline: none;
}
.form-row textarea { height: auto; min-height: 90px; padding: 10px 12px; }
.input:focus, .form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-error { color: var(--sale); font-size: 13px; }

@media (max-width: 1200px) {
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .buybox { grid-column: 2; position: static; }
  .gallery { grid-row: span 2; }
}
@media (max-width: 960px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .buybox, .gallery { grid-column: auto; grid-row: auto; }
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .gallery-thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .gallery-thumbs button { width: 56px; height: 56px; flex: none; }
  .p-info { padding: 18px; }
  .p-info h1 { font-size: 20px; }
  .buybox { padding: 18px; }
  .p-tabs .tab-nav { padding: 0 10px; }
  .p-tabs .tab-panel { padding: 18px; overflow-x: auto; }
  .seg { flex-wrap: wrap; }
}

/* ---------- Сравнение ---------- */
.compare-mode { display: inline-flex; }
.compare-mode a { padding: 6px 12px; border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.compare-mode a.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.compare-wrap { overflow-x: auto; }
.compare-table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.compare-table th, .compare-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table tbody th { color: var(--muted); font-weight: 400; width: 200px; position: sticky; left: 0; background: var(--card); }
.compare-table thead td { width: 240px; min-width: 220px; }
.compare-table .is-diff td { background: #fffaf3; }
.compare-corner { color: var(--muted); font-weight: 500; position: sticky; left: 0; background: var(--card); }
.compare-item { display: grid; gap: 8px; position: relative; }
.compare-img { aspect-ratio: 1; position: relative; display: block; max-width: 160px; }
.compare-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare-name { font-weight: 500; line-height: 1.35; }
.compare-price { font-size: 18px; font-weight: 700; }
.compare-price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.compare-remove { position: absolute; top: 0; right: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.compare-remove:hover { color: var(--sale); }
.compare-item .buy-inline { justify-content: flex-start; }
@media (max-width: 720px) {
  .compare-table tbody th { width: 120px; font-size: 12px; }
  .compare-table thead td { min-width: 180px; }
}

/* ---------- Корзина и оформление (/personal/cart/) ---------- */
main.page .wrap > h1:first-of-type + .co-page, main.page .wrap > h1:first-of-type + link + .co-page { margin-top: 0; }
.co { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.co-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.co-page.is-busy .co-items, .co-page.is-busy .co-sum { opacity: .6; pointer-events: none; transition: opacity .15s; }
.co-block { padding: 24px; }
.co-block h2 { font-size: 20px; margin: 0 0 16px; }
.co-block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.co-block-head h2 { margin: 0; }
.co-cart-head h2 { display: flex; align-items: baseline; gap: 10px; }
.co-count { font-size: 14px; font-weight: 400; color: var(--muted); }
.co-check { width: 22px; height: 22px; margin: 0; accent-color: var(--brand); cursor: pointer; flex: none; }
.co-bulk { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.co-bulk .spacer { flex: 1; }
.co-all { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.co-link { border: 0; background: none; padding: 0; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.co-link:hover { color: var(--sale); }
.co-undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--bg); font-size: 14px; }
.co-undo .co-link { color: var(--brand); font-weight: 600; }
.co-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px 120px; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.co-item:last-child { border-bottom: 0; padding-bottom: 0; }
.co-item.is-off .co-ph img, .co-item.is-off .co-info, .co-item.is-off .co-price { opacity: .45; }
.co-ph { position: relative; width: 96px; height: 110px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: #c4c8ce; cursor: pointer; }
.co-ph img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.co-ph .co-check { position: absolute; top: 6px; left: 6px; z-index: 1; }
.co-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.co-name { font-size: 15px; line-height: 1.35; }
.co-meta { font-size: 13px; color: var(--muted); }
.co-acts { display: flex; gap: 4px; margin-top: 2px; }
.co-ibtn { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); display: inline-grid; place-items: center; margin-left: -6px; }
.co-ibtn:hover { color: var(--ink); background: var(--bg); }
.co-ibtn.js-co-del:hover { color: var(--sale); }
.co-ibtn.js-fav.is-on { color: var(--sale); }
.co-ibtn.js-fav.is-on .icon { fill: currentColor; }
.co-qty { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.co-qty small { color: var(--muted); font-size: 12px; }
.co-price { text-align: right; font-size: 18px; font-weight: 700; white-space: nowrap; }
.co-hint p { margin: 0; color: var(--ink-2); }
.co-errors { border-left: 4px solid var(--sale); }
.co-errors ul { margin: 6px 0 0; padding-left: 18px; color: var(--sale); }
.co-form { display: grid; gap: 16px; }
.co-radios { display: grid; gap: 8px; }
.co-radios-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.co-radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.co-radio:hover { border-color: #c4c8ce; }
.co-radio:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.co-radio input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.co-radio b { display: block; font-size: 15px; font-weight: 600; }
.co-radio small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.co-sub { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.form-row label i { color: var(--sale); font-style: normal; }
.form-row.has-error input, .form-row.has-error select { border-color: var(--sale); background: #fff7f6; }
.chips-radio { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-radio label { position: relative; }
.chips-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chips-radio span { display: block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; cursor: pointer; }
.chips-radio input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.co-seg { display: inline-flex; }
.co-seg label { position: relative; }
.co-seg input { position: absolute; opacity: 0; pointer-events: none; }
.co-seg span { display: block; padding: 6px 12px; border-radius: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.co-seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.co-person button { flex: none; padding: 7px 14px; }
.co-file { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--card); border-radius: 8px; box-shadow: var(--shadow-lg); overflow: hidden; }
.suggest:empty { display: none; }
.suggest button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; font-size: 14px; }
.suggest button:hover { background: var(--bg); }

.co-side { position: sticky; top: 136px; }
.co-sum { padding: 22px; display: grid; gap: 12px; }
.co-sum h3 { font-size: 18px; }
.co-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.co-line b { color: var(--ink); white-space: nowrap; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.co-total span { font-size: 20px; font-weight: 700; }
.co-total b { font-size: 26px; white-space: nowrap; }
.co-saved { margin: -4px 0 0; font-size: 13px; color: var(--ok); }
.co-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.co-agree .co-check { width: 18px; height: 18px; margin-top: 1px; }
.co-agree a { color: var(--brand); }
.co-submit { height: 52px; font-size: 17px; }
.co-submit[disabled] { opacity: .6; }
.co-note { margin: 0; font-size: 12px; color: var(--muted); }
.co-excel { color: var(--brand); font-weight: 600; justify-self: start; }
.co-excel:hover { color: var(--brand-hover); }
.co-mbar { display: none; }
.co-empty { padding: 48px 24px; }
.co-empty-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.co-empty-ico .icon { width: 34px; height: 34px; }

@media (max-width: 1200px) {
  .co { grid-template-columns: minmax(0, 1fr) 320px; }
  .co-item { grid-template-columns: 80px minmax(0, 1fr) 120px; }
  .co-ph { width: 80px; height: 96px; grid-column: 1; grid-row: 1 / span 2; }
  .co-info { grid-column: 2; grid-row: 1; }
  .co-price { grid-column: 3; grid-row: 1; }
  .co-qty { grid-column: 2 / -1; grid-row: 2; flex-direction: row; justify-content: flex-start; }
}
@media (max-width: 960px) {
  .co { grid-template-columns: minmax(0, 1fr); }
  .co-side { position: static; }
  .co-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 64; background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px; gap: 14px; align-items: center; justify-content: space-between; box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
  .co-mbar small { display: block; font-size: 12px; color: var(--muted); }
  .co-mbar b { font-size: 19px; }
  .co-mbar .btn { padding: 0 32px; height: 46px; }
  .co-page { padding-bottom: 72px; }
}
@media (max-width: 720px) {
  .co-mbar { bottom: 60px; }
  .co-block { padding: 16px; }
  .co-item { grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px; padding: 14px 0; }
  .co-ph { width: 72px; height: 88px; grid-row: 1 / span 3; }
  .co-price { grid-column: 2; grid-row: 2; text-align: left; font-size: 16px; }
  .co-qty { grid-column: 2; grid-row: 3; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .co-radios-row { grid-template-columns: minmax(0, 1fr); }
}

/* Детальная заказа и профили — стандартные шаблоны Битрикса, приводим к цветам шаблона */
.lk-main .sale-order-detail-general { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.lk-main .sale-order-detail-general-head { background: var(--ink); }
.lk-main .sale-order-detail-about-order-inner-container-repeat-button { background: var(--brand); border-radius: var(--radius-sm); font: 600 13px/38px var(--font); }
.lk-main .sale-order-detail-about-order-inner-container-repeat-button:hover { background: var(--brand-hover); color: #fff; }
.lk-main .sale-order-detail-title-element { font-size: 24px; font-weight: 700; }
.lk-main [class^="sale-order-detail"], .lk-main [class^="sale-personal-profile"] { font-family: var(--font); }
.lk-main .btn-theme { background: var(--brand); border-color: var(--brand); color: #fff; border-radius: var(--radius-sm); }
.lk-main a[class*="sale-order-detail"]:not([class*="button"]) { color: var(--brand); }

/* ---------- Подборки ---------- */
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sl-card { padding: 18px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.sl-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; grid-row: span 2; }
.sl-name { font-weight: 600; font-size: 16px; display: block; }
.sl-acts { grid-column: 2; display: flex; gap: 16px; }
.sl-acts .co-link { font-size: 13px; }
.sl-product { font-weight: 600; margin: 0 0 12px; }
.sl-rm { position: absolute; top: 6px; left: 6px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 16px; line-height: 1; opacity: .75; }
.sl-rm:hover { opacity: 1; background: var(--sale); }
.ptable .sl-rm { position: static; margin-left: 6px; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #aab0b8; font-size: 14px; padding: 44px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.footer a { display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer p { margin: 0; }
.footer-contacts span { display: block; padding: 3px 0; }
.footer .phone-big { font-size: 22px; font-weight: 700; color: #fff; }
.footer-logo { background: #fff; border-radius: 10px; padding: 8px 12px; display: inline-block !important; margin-bottom: 14px; }
.footer-logo img { display: block; height: 34px; width: auto; }
.footer-bottom { border-top: 1px solid #343a42; margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.messengers { display: flex; gap: 8px; margin-top: 10px; }
.messengers a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; background: #2c3138; color: #fff; font-size: 13px; }
.messengers a:hover { background: #3a4049; }

/* ---------- Мобильная нижняя панель, тост, предпросмотр ---------- */
.mobile-tabbar { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-lg);
  display: flex; gap: 12px; align-items: center; transition: opacity .2s, transform .2s; z-index: 100; font-size: 14px;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--brand); font-weight: 600; }
.rd-preview {
  position: fixed; left: 12px; bottom: 12px; z-index: 90; padding: 6px 12px; border-radius: 20px;
  background: rgba(29, 33, 38, .85); color: #fff; font-size: 12px; box-shadow: var(--shadow-lg);
}
.rd-preview:hover { color: #fff; background: var(--ink); }

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
  .topbar .hide-lg { display: none; }
  .search .btn-label { display: none; }
  .search button { padding: 0 16px; }
  .h-action .h-label { display: none; }
  .h-action { min-width: 44px; }
  .index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .topbar .hide-md { display: none; }
  .header-nav { display: none; }
  .header-actions .h-lists { display: none; }
  .header-main { gap: 12px; }
  .btn-catalog { padding: 0 16px; }
  .h-cart .cart-text { display: none; }
  .h-cart { padding: 8px 12px; }
  .h-cart .badge { left: 24px; }
  .h-action { min-width: 38px; }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 14px; padding-bottom: 64px; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 22px; }
  .topbar { display: none; }
  .header-main { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .logo img { height: 34px; }
  .btn-catalog { height: 40px; padding: 0 14px; margin-left: auto; order: 2; }
  .header-actions { order: 3; }
  .header-actions .h-action:not(.h-cart) { display: none; }
  .h-cart .cart-text { display: none; }
  .h-cart { padding: 8px 12px; }
  .h-cart .badge { left: 24px; }
  .search { order: 4; flex-basis: 100%; }
  .search input { height: 44px; }
  .search button { height: 44px; padding: 0 14px; }
  .search .btn-label { display: none; }
  .search .icon-search { top: 11px; }
  .index { position: fixed; top: 0; bottom: 60px; max-height: none; z-index: 60; border-top: 0; }
  .index .wrap { padding-top: 8px; }
  .index-title { display: block; }
  .index-close { display: grid; }
  .index-grid { grid-template-columns: minmax(0, 1fr); }
  .index-cell { padding: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .content-text { padding: 18px; }

  .mobile-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
    background: var(--card); border-top: 1px solid var(--line); height: 60px;
  }
  .mobile-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--ink-2); position: relative; }
  .mobile-tabbar a.is-on { color: var(--brand); }
  .mobile-tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; padding: 0 4px; }
  .toast { bottom: 76px; width: calc(100% - 32px); justify-content: space-between; }
  .rd-preview { bottom: 70px; }
}

/* ---------- Печать ---------- */
@media print {
  body { background: #fff; padding: 0; font-size: 12px; }
  .topbar, .header, .overlay, .footer, .mobile-tabbar, .rd-preview, .toast, .crumbs, .filters, .toolbar, .sec-tabs, .pcard-tools,
  .buy-inline, .pcard-buy, .sub-actions, .buy-row, .pack-choice, .delivery, .lk-nav, .search-drop { display: none !important; }
  main.page { padding: 0; }
  .card, .content-text { box-shadow: none; border: 1px solid #ddd; }
  .catalog-layout, .product, .lk { display: block; }
  a { color: inherit; }
}
