/* =========================================================
   Bruleur — base styles
   Чистый дизайн: цвет + типографика. Без обводок, без теней.
   ========================================================= */

:root {
	/* Поверхности — тонко-холодные, корпоративные */
	--bg:           #eceff3;
	--surface:      #ffffff;
	--surface-2:    #f3f4f6;
	--surface-3:    #e7eaee;

	/* Чернила */
	--ink:          #0b0c0f;
	--ink-2:        #44474e;
	--muted:        #8e93a0;

	/* Акценты: наведение на тёмную кнопку, пламя бренда, точка «В наличии» */
	--ink-hover:    #1a1d23;
	--brand:        #e8401c;
	--stock-in:     #2d7a3f;

	/* Бейджи (на фоне без обводок) */
	--badge-orange-bg: #ffe1c4; --badge-orange-fg: #8a4a00;
	--badge-green-bg:  #d6f5dd; --badge-green-fg:  #1e6b34;
	--badge-blue-bg:   #dfeaff; --badge-blue-fg:   #1d4691;
	--badge-red-bg:    #ffd9d9; --badge-red-fg:    #8a1d1d;
	--badge-gray-bg:   #e9ebef; --badge-gray-fg:   #4a4d55;

	/* Затемнение под окнами (<dialog>: просмотр счёта, переписка, правка заказа) — то же значение, что в krom-ui.css */
	--veil:         rgba(16, 18, 20, .45);

	/* Скругления — сдержанные, корпоративные */
	--radius-lg: 12px;
	--radius-md: 8px;
	--radius-sm: 6px;

	/* Размеры */
	--sidebar-w: 280px;
	--gap:       18px;

	/* Типографика */
	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
	margin: 0;
	padding: 0;
	background: var(--bg) !important;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 15px;
	line-height: 1.55;
	font-feature-settings: "ss01", "cv11";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

a       { color: inherit; text-decoration: none; }
button  { font: inherit; cursor: pointer; }
img     { max-width: 100%; display: block; }

/* ---------- Тонкий, ненавязчивый скролл везде ---------- */

* {
	scrollbar-width: thin;
	scrollbar-color: rgba(15, 17, 22, .14) transparent;
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
	background: rgba(15, 17, 22, .14);
	border-radius: 3px;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(15, 17, 22, .26); }
*::-webkit-scrollbar-corner { background: transparent; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--ink);
	letter-spacing: -.02em;
	line-height: 1.15;
	margin: 0 0 .5em;
}
h1 { font-size: 40px; font-weight: 700; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	width: 1px; height: 1px; overflow: hidden;
}

/* ---------- Layout ---------- */

.layout {
	display: grid;
	grid-template-columns: var(--sidebar-w) 1fr;
	gap: var(--gap);
	min-height: 100vh;
	padding: var(--gap);
}

@media (min-width: 961px) {
	.layout { grid-template-rows: 1fr auto; }
	.layout > .sidebar { grid-row: 1 / span 2; }   /* меню занимает и ряд подвала, поэтому не уезжает при прокрутке вниз */
	.layout > .bpf { grid-column: 2 / -1; }
}

.workspace {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--surface);
	border-radius: var(--radius-lg);
	/* без overflow: hidden — иначе создаётся свой скролл-контекст */
}

.workspace__content {
	flex: 1;
	padding: 32px 40px 48px;
	/* без overflow: auto — пусть скролится сам body */
}

/* ---------- Sidebar ---------- */

.sidebar {
	position: sticky;
	top: var(--gap);
	align-self: start;
	height: calc(100vh - var(--gap) * 2);
	display: flex;
	flex-direction: column;
	background: transparent;   /* сайдбар без фона — сидит на фоне страницы */
	padding: 14px 14px 16px;
	gap: 22px;
}

.sidebar__logo-link {
	display: inline-flex;
	align-items: center;        /* иконка и блок текста на одной горизонтали */
	gap: 12px;
	padding: 4px 6px;
	color: var(--ink);
}

/* Квадратный логотип, без фона и без рамки */
.sidebar__logo-mark {
	display: inline-grid;
	place-items: center;
	width: 46px; height: 46px;  /* чуть крупнее */
	flex: none;
	color: var(--ink);
	background: transparent;
	border: 0;
	border-radius: 0;
}
.sidebar__logo-mark svg,
.sidebar__logo-mark .sidebar__logo-img {
	width: 100%; height: 100%;
	display: block;
	object-fit: contain;
}

/* Три строки справа: общий блок центрируется по высоте иконки */
.sidebar__logo-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	font-family: var(--font-display);
	line-height: 1.15;
}
.sidebar__logo-host {
	font-size: 17px;            /* строка 1 — крупнее */
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -.015em;
	line-height: 1.1;
	margin-bottom: 1px;
}
.sidebar__logo-slogan {
	font-size: 10.5px;          /* строки 2–3 — мельче */
	font-weight: 500;
	color: var(--muted);
	letter-spacing: .005em;
	line-height: 1.25;
}

/* Юзер + корзина — белая плашка на сером фоне сайдбара */
.sidebar__user {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	background: var(--surface);
	border-radius: var(--radius-md);
}

.sidebar__user-link {
	display: flex; align-items: center; gap: 10px;
	flex: 1; min-width: 0;
}

.sidebar__user-avatar {
	width: 36px; height: 36px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--surface-3);
	display: grid; place-items: center;
	flex: none;
}
.sidebar__user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar__user-avatar--guest svg { width: 18px; height: 18px; color: var(--ink-2); }

.sidebar__user-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sidebar__user-name { font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__user-role { font-size: 12px; color: var(--muted); }

.sidebar__cart {
	position: relative;
	display: grid; place-items: center;
	width: 38px; height: 38px;
	border-radius: var(--radius-lg);
	background: var(--surface-2);
	color: var(--ink);
	flex: none;
	transition: background .15s ease;
}
.sidebar__cart:hover { background: var(--surface-3); }
.sidebar__cart-icon svg { width: 20px; height: 20px; }
.sidebar__cart-count {
	position: absolute; top: -5px; right: -5px;
	min-width: 18px; height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--ink);
	color: var(--dark-ink);
	font-size: 11px; font-weight: 700;
	display: grid; place-items: center;
}
.sidebar__cart-count[data-cart-count="0"], .sidebar__cart-count:empty { display: none; }

/* ---------- Sidebar nav ---------- */

.sidebar__nav { flex: 1; min-height: 0; overflow: auto; padding-right: 4px; margin-right: -4px; }
.sidebar-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }

.sidebar-nav__item { position: relative; }

.sidebar-nav__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--ink-2);
	font-size: 14px;
	font-weight: 500;
	transition: background .15s ease, color .15s ease;
}
.sidebar-nav__link:hover { background: rgba(15, 17, 22, .04); color: var(--ink); }

.sidebar-nav__icon { display: inline-grid; place-items: center; width: 22px; height: 22px; color: currentColor; flex: none; }
.sidebar-nav__icon svg { width: 20px; height: 20px; }

.sidebar-nav__title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-nav__chevron { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--muted); transition: transform .2s ease; }
.sidebar-nav__chevron svg { width: 14px; height: 14px; }
.sidebar-nav__item.is-open > .sidebar-nav__link .sidebar-nav__chevron,
.sidebar-nav__item.has-modal.is-modal-active > .sidebar-nav__link .sidebar-nav__chevron { transform: rotate(90deg); }

.sidebar-nav__badge {
	display: inline-grid; place-items: center;
	min-width: 22px; height: 22px;
	padding: 0 7px;
	border-radius: 7px;
	font-size: 11px; font-weight: 700;
	background: var(--badge-gray-bg); color: var(--badge-gray-fg);
}
.sidebar-nav__badge--orange { background: var(--badge-orange-bg); color: var(--badge-orange-fg); }
.sidebar-nav__badge--green  { background: var(--badge-green-bg);  color: var(--badge-green-fg); }
.sidebar-nav__badge--blue   { background: var(--badge-blue-bg);   color: var(--badge-blue-fg); }
.sidebar-nav__badge--red    { background: var(--badge-red-bg);    color: var(--badge-red-fg); }

/* Активный пункт — белая плашка на сером фоне сайдбара. Без теней. */
.sidebar-nav__item.is-active > .sidebar-nav__link {
	background: var(--surface);
	color: var(--ink);
	font-weight: 600;
}

/* Подменю — тонкая отбивка отступом, без вертикальной линии */
.sidebar-nav__sub {
	list-style: none;
	margin: 4px 0 6px;
	padding: 0 0 0 34px;
	display: none;
	flex-direction: column;
	gap: 2px;
}
.sidebar-nav__item.is-open > .sidebar-nav__sub { display: flex; }
.sidebar-nav__sub .sidebar-nav__link { padding: 8px 12px; font-size: 13.5px; }

/* ---------- Sidebar contacts ---------- */

.sidebar__contacts {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 4px;
}
.sidebar__contact {
	display: flex; align-items: center; gap: 10px;
	padding: 8px 10px; border-radius: 10px;
	color: var(--ink-2); font-size: 13px;
	transition: background .15s ease, color .15s ease;
}
.sidebar__contact:hover { background: rgba(15, 17, 22, .04); color: var(--ink); }
.sidebar__contact-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--muted); }
.sidebar__contact-icon svg { width: 16px; height: 16px; }

/* ---------- Browser-bar — строгая корпоративная шапка ---------- */

.browser-bar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px 22px 14px;
	background: var(--surface);
	border-radius: var(--radius-lg) var(--radius-lg) 0 0; /* совпадает со скруглением workspace сверху */
}

.browser-bar__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 44px;
}

/* Нижняя строка: поиск и корзина по 50% */
.browser-bar__row--bottom {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	align-items: center;
}

/* ---------- Хлебные крошки ---------- */
.browser-bar__path { min-width: 0; flex: 1 1 auto; }
.browser-bar__crumbs {
	display: inline-flex; align-items: center; flex-wrap: wrap;
	gap: 6px 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--muted);
	min-width: 0;
}
.browser-bar__crumb {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--muted);
	transition: color .15s ease;
	max-width: 32ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
/* text-overflow не работает у inline-flex: крошка без значка — обычный блок, длинное название обрезается многоточием */
.browser-bar__crumb:not(:has(.browser-bar__crumb-icon)) { display: inline-block; }
.browser-bar__crumb:hover { color: var(--ink); }
.browser-bar__crumb.is-current { color: var(--ink); font-weight: 600; }
.browser-bar__crumb-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; color: currentColor; flex: none; }
.browser-bar__crumb-icon svg { width: 14px; height: 14px; }
.browser-bar__sep { color: var(--muted); opacity: .45; user-select: none; }

/* ---------- Юзер в шапке (корпоративный пилл) ---------- */
.browser-bar__user {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 3px 3px 3px 12px;
	border-radius: 999px;
	color: var(--ink);
	flex: none;
	transition: background .15s ease;
}
.browser-bar__user:hover { background: var(--surface-2); }
.browser-bar__user-name {
	font-size: 13px; font-weight: 600;
	letter-spacing: -.005em;
	white-space: nowrap;
}
.browser-bar__user.is-guest .browser-bar__user-name {
	color: var(--ink-2);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 11px;
}
.browser-bar__user-avatar {
	display: grid; place-items: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--surface-2);
	color: var(--ink-2);
	flex: none;
}
.browser-bar__user-avatar img,
.browser-bar__user-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.browser-bar__user-avatar svg { width: 16px; height: 16px; }

/* ---------- Поиск (заметный, корпоративный) ---------- */
.browser-bar__search {
	position: relative;
	min-width: 0;
}

.browser-bar__search-box {
	display: flex;
	align-items: stretch;
	background: var(--surface);
	border: 1px solid var(--surface-3);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: border-color .15s ease, background .15s ease;
}
.browser-bar__search-box:hover { border-color: #c8ccd2; }
.browser-bar__search-box:focus-within {
	border-color: #c8ccd2;        /* без чёрной обводки — мягкое состояние */
	background: var(--surface);
}

/* Селект категории слева */
.browser-bar__search-cat {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: none;
	max-width: 140px;
	border-right: 1px solid var(--surface-3);
}
.browser-bar__search-cat select {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	font-size: 13px;
	color: var(--ink-2);
	padding: 9px 26px 9px 12px;
	cursor: pointer;
	max-width: 100%;
	text-overflow: ellipsis;
}
.browser-bar__search-cat select:focus { color: var(--ink); }
.browser-bar__search-cat-chev {
	position: absolute;
	right: 8px; top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--muted);
	display: inline-grid;
	place-items: center;
}
.browser-bar__search-cat-chev svg { width: 14px; height: 14px; }

/* Поле ввода */
.browser-bar__search-label {
	display: flex; align-items: center; gap: 10px;
	flex: 1; min-width: 0;
	padding: 0 14px;
}
.browser-bar__search-icon { display: inline-grid; place-items: center; color: var(--ink-2); flex: none; }
.browser-bar__search-icon svg { width: 16px; height: 16px; }
.browser-bar__search-input {
	flex: 1; min-width: 0;
	border: 0; outline: 0; background: transparent;
	padding: 9px 0;
	font: inherit; color: var(--ink); font-size: 13.5px;
}
.browser-bar__search-input::placeholder { color: var(--muted); }
.browser-bar__search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Кнопка очистки поиска */
.browser-bar__search-clear {
	display: grid; place-items: center;
	width: 24px; height: 24px;
	border: 0;
	border-radius: 50%;
	background: var(--surface-3);
	color: var(--ink-2);
	cursor: pointer;
	flex: none;
	transition: background .12s ease, color .12s ease;
}
.browser-bar__search-clear:hover { background: var(--grey-lo); color: var(--ink); }
.browser-bar__search-clear svg { width: 12px; height: 12px; }
.browser-bar__search-clear[hidden] { display: none; }

/* ---------- Дропдаун результатов поиска ---------- */
/* position: fixed — чтобы выйти за `overflow: hidden` workspace и не клипаться */
.browser-bar__search-results {
	position: fixed;
	width: 760px;
	max-width: calc(100vw - 40px);
	z-index: 60;
	background: var(--surface);
	border: 1px solid var(--surface-3);
	border-top: 0;
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	max-height: 520px;
	overflow-y: auto;
	padding: 6px;
	/* top/left — выставляет JS относительно search-box */
}
.browser-bar__search-results[hidden] { display: none; }

/* Аккуратный скроллбар внутри дропдауна поиска */
.browser-bar__search-results { scrollbar-width: thin; scrollbar-color: rgba(15,17,22,.18) transparent; }
.browser-bar__search-results::-webkit-scrollbar { width: 10px; }
.browser-bar__search-results::-webkit-scrollbar-track {
	background: transparent;
	margin: 10px 0;                 /* отступ сверху и снизу */
}
.browser-bar__search-results::-webkit-scrollbar-thumb {
	background: rgba(15,17,22,.14);
	border: 3px solid transparent;  /* визуальный воздух вокруг плашки */
	background-clip: padding-box;
	border-radius: var(--radius-md);
	transition: background-color .2s ease;
}
.browser-bar__search-results::-webkit-scrollbar-thumb:hover {
	background: rgba(15,17,22,.28);
	background-clip: padding-box;
}
.browser-bar__search-results::-webkit-scrollbar-corner { background: transparent; }

/* Когда открыто — поиск и дропдаун выглядят как один цельный элемент */
.browser-bar__search.is-open .browser-bar__search-box {
	border-radius: var(--radius-md) var(--radius-md) 0 0;
	border-color: var(--surface-3);      /* перекрывает focus-within */
	border-bottom-color: transparent;
}

/* Минимальная тень, очень прозрачная — единственное место, где она оправдана */
.browser-bar__search.is-open .browser-bar__search-box,
.browser-bar__search.is-open .browser-bar__search-results {
	box-shadow:
		0 1px 1px rgba(15, 17, 22, .02),
		0 12px 28px rgba(15, 17, 22, .06);
}
/* Чтобы тень не «обрезалась» по шву, объединим: сверху — лёгкая тень от поля,
   снизу — основная от дропдауна. Между ними тень не видна, ибо это одна плашка. */
.browser-bar__search.is-open .browser-bar__search-box {
	box-shadow: 0 1px 0 rgba(15, 17, 22, .03);
}
.browser-bar__search.is-open .browser-bar__search-results {
	box-shadow:
		0 1px 0 rgba(15, 17, 22, .03),
		0 14px 32px rgba(15, 17, 22, .07);
}

.browser-bar__search-empty,
.browser-bar__search-loading {
	padding: 18px 14px;
	text-align: center;
	color: var(--muted);
	font-size: 13px;
}

/* Карточка результата — горизонтальный ряд */
.browser-bar__search-item {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) auto auto 36px;
	align-items: center;
	gap: 14px;
	padding: 10px 12px 10px 14px;
	border-radius: var(--radius-sm);
	color: var(--ink);
	transition: background .12s ease;
}
.browser-bar__search-item:hover,
.browser-bar__search-item:focus { background: var(--surface-2); outline: 0; }

/* Миниатюра товара 3:4 — изображение вписывается полностью (не обрезается) */
.browser-bar__search-thumb {
	width: 36px;
	aspect-ratio: 3 / 4;
	border-radius: 4px;
	background: var(--surface-2);
	overflow: hidden;
}
.browser-bar__search-thumb img {
	width: 100%; height: 100%;
	object-fit: contain;
	display: block;
}

/* Колонка: название + артикул */
.browser-bar__search-info {
	display: flex; flex-direction: column;
	min-width: 0;
	gap: 2px;
}
.browser-bar__search-name {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.browser-bar__search-sku {
	font-size: 11px;
	color: var(--muted);
	letter-spacing: .02em;
}

/* Колонка цен: старая (зачёркнутая) + текущая. Dotted-разделитель — псевдо. */
.browser-bar__search-prices {
	position: relative;
	display: flex; flex-direction: column;
	align-items: flex-end;
	gap: 1px;
	white-space: nowrap;
	align-self: stretch;
	justify-content: center;
}
.browser-bar__search-prices::before {
	content: '';
	position: absolute;
	left: -7px;                          /* середина gap'а (14px) */
	top: 4px; bottom: 4px;
	border-left: 1px dotted var(--surface-3);
}
.browser-bar__search-price-old {
	font-size: 11px;
	color: var(--muted);
	text-decoration: line-through;
	line-height: 1;
}
.browser-bar__search-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.1;
}

/* Колонка остатка: цифра + аккуратный лейбл. Dotted-разделитель — псевдо. */
.browser-bar__search-stock-cell {
	position: relative;
	display: flex; flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 60px;
	line-height: 1;
	align-self: stretch;
}
.browser-bar__search-stock-cell::before {
	content: '';
	position: absolute;
	left: -7px;
	top: 4px; bottom: 4px;
	border-left: 1px dotted var(--surface-3);
}
.browser-bar__search-stock-num {
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
	line-height: 1;
}
.browser-bar__search-stock-label {
	margin-top: 4px;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--muted);
}
.browser-bar__search-stock-cell--in       .browser-bar__search-stock-label { color: var(--stock-in); }
.browser-bar__search-stock-cell--preorder .browser-bar__search-stock-label { color: var(--badge-orange-fg); }
.browser-bar__search-stock-cell--out      .browser-bar__search-stock-num   { color: var(--muted); }

/* Колонка бренда — РОВНО равна миниатюре (3:4), никаких padding/border на самом блоке.
   Dotted-разделитель — отдельный псевдо-элемент. Картинка вписывается полностью. */
.browser-bar__search-brand {
	position: relative;
	width: 36px;
	aspect-ratio: 3 / 4;             /* 36 × 48 — как у миниатюры товара */
	flex: none;
	background: transparent;
	border: 0;
	box-sizing: border-box;
	overflow: visible;
	display: flex;
	align-items: center;
	justify-content: center;
}
.browser-bar__search-brand::before {
	content: '';
	position: absolute;
	left: -7px;
	top: 4px; bottom: 4px;
	border-left: 1px dotted var(--surface-3);
}
.browser-bar__search-brand img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.browser-bar__search-brand--text {
	font-size: 10px;
	font-weight: 700;
	color: var(--ink-2);
	letter-spacing: .02em;
	text-align: center;
	overflow: hidden;
}

/* ---------- Корзина: обёртка + hover-кнопки ---------- */
.browser-bar__cart-wrap {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: flex-end;     /* корзина на правом краю своей 50%-ячейки */
	align-items: center;
}

.browser-bar__cart {
	display: inline-flex;
	width: auto;                   /* ширина по содержимому → hover ловится только тут */
	max-width: 100%;
	align-items: center;
	gap: 10px;
	padding: 8px 6px;
	border-radius: var(--radius-md);
	color: var(--ink);
	min-width: 0;
}
/* Не меняем фон корзины при наведении — пусть только дропдаун появляется */

/* Hover-кнопки под корзиной: «Изменить» и «Оформить заказ» */
.browser-bar__cart-actions {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 60;
	padding-top: 6px;          /* невидимый мостик к корзине */
	display: inline-flex;
	gap: 6px;
	white-space: nowrap;
	opacity: 0;
	transform: translateY(-4px);
	pointer-events: none;
	transition: opacity .15s ease, transform .15s ease;
}
/* Дропдаун открывается только при наведении на саму корзину или сам дропдаун */
.browser-bar__cart:hover ~ .browser-bar__cart-actions,
.browser-bar__cart-actions:hover,
.browser-bar__cart:focus-visible ~ .browser-bar__cart-actions,
.browser-bar__cart-actions:focus-within {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.browser-bar__cart-action {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 14px;
	border-radius: var(--radius-sm);
	background: var(--surface-3);
	color: var(--ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .01em;
	transition: background .15s ease, color .15s ease;
}
.browser-bar__cart-action:hover { background: var(--grey-lo); }

.browser-bar__cart-action--primary {
	background: var(--ink);
	color: var(--dark-ink);
}
.browser-bar__cart-action--primary:hover { background: var(--ink-hover); color: var(--dark-ink); }

/* На мобильных hover нет — спрячем дропдаун */
@media (hover: none) {
	.browser-bar__cart-actions { display: none; }
}

/* ---------- Cart mini (дропдаун) ---------- */

.cart-mini {
	white-space: normal;           /* контейнер выпадающего окна — nowrap, а названия должны переноситься */
	background: var(--surface);
	border-radius: var(--radius-md);
	width: 480px;
	max-width: calc(100vw - 40px);
	box-shadow: 0 1px 1px rgba(15,17,22,.03), 0 14px 32px rgba(15,17,22,.08);
}

.cart-mini__list {
	list-style: none;
	margin: 0;
	padding: 6px;
	max-height: 420px;
	overflow-y: auto;
}

.cart-mini__item {
	display: grid;
	grid-template-columns: 30px auto 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: var(--radius-sm);
	transition: background .12s ease;
}
.cart-mini__item:hover { background: var(--surface-2); }
.cart-mini__item + .cart-mini__item { margin-top: 2px; }

.cart-mini__thumb {
	width: 30px;
	aspect-ratio: 3 / 4;
	border-radius: 4px;
	overflow: hidden;
	background: var(--surface-2);
}
.cart-mini__thumb img {
	width: 100%; height: 100%;
	object-fit: contain;
	display: block;
}

.cart-mini__qty {
	display: inline-flex;
	align-items: stretch;
	height: 40px;                /* в высоту миниатюры (3:4 при ширине 30) */
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	overflow: hidden;
	flex: none;
}
.cart-mini__qty-btn {
	width: 30px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background .12s ease, color .12s ease;
	display: grid; place-items: center;
}
.cart-mini__qty-btn:hover:not(:disabled) { background: var(--surface-3); }
.cart-mini__qty-btn:disabled {
	color: var(--muted);
	cursor: not-allowed;
	opacity: .5;
}
.cart-mini__qty-num {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
}

.cart-mini__info {
	display: flex; flex-direction: column;
	min-width: 0;
	gap: 1px;
	color: var(--ink);
}
.cart-mini__sku {
	font-size: 10px;
	letter-spacing: .03em;
	color: var(--muted);
	line-height: 1;
}
.cart-mini__name {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--ink);
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cart-mini__remove {
	display: grid; place-items: center;
	width: 28px; height: 28px;
	border: 0;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	border-radius: var(--radius-sm);
	transition: background .12s ease, color .12s ease;
	flex: none;
}
.cart-mini__remove:hover { background: rgba(190, 50, 50, .08); color: #c62828; }
.cart-mini__remove svg { width: 14px; height: 14px; }

.cart-mini__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border-top: 1px dashed var(--surface-3);
}

.cart-mini__total {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}
.cart-mini__total-label {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}
.cart-mini__total-value {
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -.01em;
	margin-top: 3px;
	white-space: nowrap;
}

.cart-mini__actions {
	display: flex;
	gap: 6px;
	flex: none;
}
.browser-bar__cart-icon {
	display: inline-grid; place-items: center;
	width: 36px; height: 36px;
	color: var(--ink);
	flex: none;
}
.browser-bar__cart-icon svg { width: 20px; height: 20px; }

/* Миниатюра товара 3:4, тот же визуальный размер во всём ряду */
.browser-bar__cart-thumb {
	position: relative;
	width: 27px;
	aspect-ratio: 3 / 4;          /* 27 × 36 — точно как высота иконки */
	border-radius: 3px;
	background: var(--surface-2);
	flex: none;
	overflow: visible;            /* бейдж торчит за край */
}
.browser-bar__cart-thumb img {
	width: 100%; height: 100%;
	object-fit: contain;
	display: block;
	border-radius: 3px;
}

/* Кружок-бейдж количества — на верхнем правом углу, прямо на крае */
.browser-bar__cart-qty {
	position: absolute;
	top: -6px; right: -6px;
	min-width: 16px; height: 16px;
	padding: 0 4px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--dark-ink);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	display: grid;
	place-items: center;
	box-sizing: border-box;
}

.browser-bar__cart-thumb--more {
	display: inline-grid; place-items: center;
	font-size: 10px;
	font-weight: 700;
	color: var(--ink-2);
	background: var(--surface-2);
}
.browser-bar__cart-thumb[hidden],
.browser-bar__cart-thumb--more[hidden] { display: none !important; }

.browser-bar__top { margin-top: 4px; }
.browser-bar__top .top-nav { list-style: none; margin: 0; padding: 0; display: inline-flex; gap: 4px; }
.browser-bar__top .top-nav a { padding: 6px 10px; border-radius: var(--radius-md); font-size: 13px; color: var(--ink-2); }
.browser-bar__top .top-nav a:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Content ---------- */

.hero { padding: 8px 0 16px; }
.hero__title { font-size: 44px; line-height: 1.05; margin: 0 0 10px; letter-spacing: -.025em; font-weight: 700; }
.hero__sub   { color: var(--ink-2); margin: 0; font-size: 17px; }

.post-list { display: grid; gap: 10px; }
.post-card { padding: 22px 24px; border-radius: var(--radius-md); background: var(--surface-2); }
.post-card__title { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.post-card__title a:hover { color: var(--ink); }
.post-card__excerpt { color: var(--ink-2); }

/* ---------- Shop / архив товаров ---------- */

.shop { padding: 0; }

.shop__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.shop__title {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -.015em;
	color: var(--ink);
}
.shop__count {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: -.005em;
	color: var(--muted);
	white-space: nowrap;
}
.shop__empty {
	padding: 60px 0;
	text-align: center;
	color: var(--muted);
	font-size: 14px;
}

/* На страницах с правым фильтром layout становится 3-колоночным */
body.bruleur-has-shop-filters .layout {
	grid-template-columns: var(--sidebar-w) minmax(0, 1fr) 240px;
}
body.bruleur-has-shop-filters .shop-filters {
	/* фильтры — третья колонка layout, на сером фоне страницы */
}

.shop__main { min-width: 0; }

/* ---------- Сайдбар фильтров ---------- */
/* sticky + overflow — мышка над фильтрами скроллит их независимо */
.shop-filters {
	position: sticky;
	top: var(--gap);
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 4px 6px;
	margin-top: 22px;            /* на уровень верхней строки шапки workspace */
	max-height: calc(100vh - var(--gap) * 2);
	overflow-y: auto;
	overscroll-behavior: contain;
}
/* Скрываем полосу прокрутки — скролл работает, но не виден */
.shop-filters { scrollbar-width: none; }
.shop-filters::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Шапка: «ФИЛЬТРЫ» слева, «Сбросить» справа */
.shop-filters__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.shop-filters__title {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-2);
}
.shop-filters__reset {
	border: 0;
	padding: 0;
	background: transparent;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: -.005em;
	color: var(--muted);
	cursor: pointer;
	transition: color .15s ease;
}
.shop-filters__reset:hover { color: var(--ink); }

.shop-filter { display: block; }

.shop-filter__title {
	margin: 0 0 14px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	font-family: inherit;
}

/* ---------- Слайдер цены ---------- */
.shop-filter__price {
	position: relative;
	height: 50px;
	padding-top: 4px;
}

/* Подложка трека */
.shop-filter__price-track {
	position: relative;
	height: 3px;
	border-radius: 2px;
	background: var(--surface-3);
	margin: 12px 8px;
}
.shop-filter__price-fill {
	position: absolute;
	top: 0; bottom: 0;
	background: var(--ink-2);
	border-radius: 2px;
	left: 0; right: 0;
}

/* Сами инпуты — поверх трека, без своих треков */
.shop-filter__price-input {
	position: absolute;
	top: 12px;
	left: 0; right: 0;
	width: 100%;
	height: 24px;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
	z-index: 2;
}
.shop-filter__price-input::-webkit-slider-runnable-track { background: transparent; height: 3px; }
.shop-filter__price-input::-moz-range-track { background: transparent; height: 3px; }
.shop-filter__price-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 14px; height: 14px;
	border-radius: 50%;
	background: var(--surface);
	border: 1.5px solid var(--ink-2);
	cursor: grab;
	pointer-events: auto;
	margin-top: -6px;
	transition: transform .12s ease, border-color .12s ease;
}
.shop-filter__price-input::-moz-range-thumb {
	width: 14px; height: 14px;
	border-radius: 50%;
	background: var(--surface);
	border: 1.5px solid var(--ink-2);
	cursor: grab;
	pointer-events: auto;
}
.shop-filter__price-input:hover::-webkit-slider-thumb { transform: scale(1.12); }
.shop-filter__price-input:hover::-moz-range-thumb     { transform: scale(1.12); }
.shop-filter__price-input::-webkit-slider-thumb:active { cursor: grabbing; }
.shop-filter__price-input::-moz-range-thumb:active     { cursor: grabbing; }

/* Подписи min / max */
.shop-filter__price-vals {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 0;
}
.shop-filter__price-num {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	padding: 6px 8px;
	transition: background .12s ease;
}
.shop-filter__price-num:focus-within { background: var(--surface-3); }
.shop-filter__price-num input {
	flex: 1; min-width: 0;
	border: 0; outline: 0; background: transparent;
	font: inherit;
	font-size: 12px;
	font-weight: 500;
	color: var(--ink-2);
	font-variant-numeric: tabular-nums;
	padding: 0;
	width: 100%;
}
.shop-filter__price-num input:focus { color: var(--ink); }
.shop-filter__price-num span {
	font-size: 11px;
	color: var(--muted);
	flex: none;
}

/* ---------- Список категорий ---------- */
.shop-filter__list {
	list-style: none;
	margin: 0; padding: 0;
	display: flex; flex-direction: column;
	gap: 2px;
}
.shop-filter__row { display: block; }
.shop-filter__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 8px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background .12s ease;
}
.shop-filter__item:hover { background: var(--surface-2); }

.shop-filter__check {
	appearance: none;
	-webkit-appearance: none;
	width: 14px; height: 14px;
	border-radius: 3px;
	background: transparent;
	border: 1.5px solid var(--surface-3);
	cursor: pointer;
	flex: none;
	display: grid; place-items: center;
	transition: border-color .12s ease;
}
.shop-filter__check:hover { border-color: var(--ink-2); }
.shop-filter__check:checked {
	background: transparent;
	border-color: var(--ink-2);
}
.shop-filter__check:checked::after {
	content: '';
	width: 10px; height: 10px;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344474e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 7'/></svg>") center/contain no-repeat;
}

.shop-filter__item-name {
	flex: 1;
	font-size: 13px;
	color: var(--ink-2);
	font-weight: 500;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.shop-filter__item-count {
	font-size: 11px;
	color: var(--muted);
	font-weight: 500;
}

/* Снятые/недоступные опции — приглушённо */
.shop-filter__row.is-empty { opacity: .45; }

/* ---------- Тугл «Все / В наличии / Предзаказ» ---------- */
.shop-toggle {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	background: rgba(15, 17, 22, .04);
	border-radius: var(--radius-md);
	padding: 2px;
	gap: 0;
}
.shop-toggle__btn {
	border: 0;
	background: transparent;
	border-radius: var(--radius-sm);
	padding: 6px 4px;
	font-family: inherit;
	font-size: 11px;
	font-weight: 500;
	color: var(--muted);
	cursor: pointer;
	transition: color .15s ease, background .15s ease;
	white-space: nowrap;
}
.shop-toggle__btn:hover:not(.is-active) { color: var(--ink-2); }
.shop-toggle__btn.is-active {
	background: var(--surface);
	color: var(--ink-2);
	font-weight: 600;
}

/* Адаптив: на узких экранах фильтры улетают в отдельную область */
@media (max-width: 1100px) {
	body.bruleur-has-shop-filters .layout {
		grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
	}
	body.bruleur-has-shop-filters .shop-filters {
		grid-column: 1 / -1;
		margin-top: var(--gap);
	}
}
@media (max-width: 960px) {
	body.bruleur-has-shop-filters .layout {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Checkout summary — третья колонка layout на странице /checkout/.
   Включается через body.bruleur-has-checkout-summary
   (см. inc/checkout/summary.php).
   Использует тот же приём, что и .shop-filters.
   ========================================================= */

body.bruleur-has-checkout-summary .layout {
	grid-template-columns: var(--sidebar-w) minmax(0, 1fr) 380px;
}

/* Aside жёстко прибит к viewport — никакого люфта при скролле.
   Третья колонка grid (380px) уже зарезервировала место в layout,
   так что workspace не сдвинется, а fixed aside «плывёт» над ним. */
.checkout-summary {
	position: fixed;
	top: var(--gap);
	right: var(--gap);
	bottom: var(--gap);
	width: 380px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 4px 6px;
	overflow: hidden; /* свой скролл — у .checkout-summary__body */
	overscroll-behavior: contain;
	z-index: 5;
}

.checkout-summary__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.checkout-summary__title {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-2);
}
.checkout-summary__count {
	font-size: 11px;
	font-weight: 500;
	color: var(--muted);
	letter-spacing: -.005em;
}

.checkout-summary__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-right: 4px;
	scrollbar-width: thin;
}
.checkout-summary__body::-webkit-scrollbar { width: 6px; }
.checkout-summary__body::-webkit-scrollbar-thumb {
	background: var(--surface-3);
	border-radius: 3px;
}

/* Футер: terms + submit, прижат к нижней границе aside, виден всегда */
/* Согласие под кнопкой «Оформить заказ»: мелкий приглушённый текст, ссылки на документы подчёркнуты */
.checkout-summary__footer p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.checkout-summary__footer p a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.checkout-summary__footer p a:hover { color: var(--ink); }
.checkout-summary__footer {
	flex: 0 0 auto;
	margin-top: 8px;
	padding: 12px 0 4px;
	border-top: 1px dotted var(--surface-3);
	background: var(--bg);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Строка позиции — компактный блок ~60px:
   [thumb 45×60 (3:4)] [info: sku + name (2 строки)] [стэппер над ценой] [trash] */
.checkout-summary__list { list-style: none; margin: 0; padding: 0; }
.checkout-summary__line {
	display: grid;
	grid-template-columns: 45px minmax(0, 1fr) 90px 30px;
	column-gap: 12px;
	align-items: center;
	min-height: 68px;
	padding: 6px 4px;
}
.checkout-summary__line + .checkout-summary__line {
	border-top: 1px dotted var(--surface-3);
}

/* Миниатюра жёстко 45×60 (3:4) — все одинаковой формы.
   Используем явные width+height (без aspect-ratio для совместимости),
   и max-width/max-height на img чтобы заблокировать всплывающие inline размеры. */
.checkout-summary .checkout-summary__line-thumb {
	display: block !important;
	width: 45px !important;
	height: 60px !important;
	min-width: 45px;
	min-height: 60px;
	max-width: 45px;
	max-height: 60px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--surface-2);
	flex: 0 0 auto;
	box-sizing: border-box;
}
.checkout-summary .checkout-summary__line-thumb img {
	width: 45px !important;
	height: 60px !important;
	max-width: 45px !important;
	max-height: 60px !important;
	object-fit: cover !important;
	display: block !important;
	box-shadow: none !important;
}

/* Инфо: артикул в одну строку (ellipsis), название в 2 строки (clamp) */
.checkout-summary__line-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	color: var(--ink);
	line-height: 1.25;
}
.checkout-summary__line-sku {
	font-size: 9.5px;
	letter-spacing: .04em;
	color: var(--muted);
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}
.checkout-summary__line-name {
	font-size: 12px;
	font-weight: 500;
	color: var(--ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Правая колонка: стэппер сверху, цена снизу — одинаковая ширина (90px) */
.checkout-summary__line-prices {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	width: 90px;
}
.checkout-summary__line-qty {
	display: grid;
	grid-template-columns: 22px 1fr 22px;
	height: 24px;
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	overflow: hidden;
	width: 100%;
}
.checkout-summary__line-qty-btn {
	border: 0;
	background: transparent;
	color: var(--ink);
	font-size: 13px;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .12s ease;
	padding: 0;
}
.checkout-summary__line-qty-btn:hover:not(:disabled) { background: var(--surface-3); }
.checkout-summary__line-qty-btn:disabled { color: var(--muted); cursor: not-allowed; opacity: .5; }
.checkout-summary__line-qty-num {
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--ink);
}
.checkout-summary__line-total {
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
	white-space: nowrap;
	letter-spacing: -.005em;
	text-align: right;
	width: 100%;
}

/* Trash — стиль как в .cart-mini__remove */
.checkout-summary__line-remove {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 0;
	background: transparent;
	color: var(--muted);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background .12s ease, color .12s ease;
	align-self: center;
}
.checkout-summary__line-remove:hover {
	background: rgba(190, 50, 50, .08);
	color: #c62828;
}
.checkout-summary__line-remove svg {
	width: 16px;
	height: 16px;
}

/* На странице чекаута нижняя строка шапки workspace (поиск + корзина) —
   не нужна. Ничего не отвлекает от формы заказа. */
body.woocommerce-checkout .browser-bar__row--bottom {
	display: none !important;
}

/* Итоги */
.checkout-summary__totals {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-top: 10px;
	border-top: 1px dotted var(--surface-3);
}
.checkout-summary__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	font-size: 12px;
	color: var(--ink-2);
	padding: 2px 0;
}
.checkout-summary__row-label { color: var(--muted); }
.checkout-summary__row-value { color: var(--ink); font-weight: 500; white-space: nowrap; }
.checkout-summary__row-dots {
	flex: 1;
	height: 1px;
	background-image: radial-gradient(circle, var(--surface-3) 1px, transparent 1px);
	background-size: 5px 5px;
	background-position: 0 center;
}
.checkout-summary__row.discount .checkout-summary__row-value,
.checkout-summary .bruleur-discount-amount {
	color: var(--badge-green-fg);
}

.checkout-summary__hint {
	font-size: 11px;
	line-height: 1.4;
	color: var(--muted);
	padding: 0 0 4px;
}

.checkout-summary__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-top: 6px;
	padding-top: 10px;
	border-top: 1px solid var(--ink);
}
.checkout-summary__total-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-2);
}
.checkout-summary__total-value {
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -.01em;
	white-space: nowrap;
}

/* Купоны */
.checkout-summary__coupons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 4px 0;
}
.checkout-summary__coupons:empty { display: none; }
.checkout-summary__coupon,
.checkout-summary .bruleur-coupon-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--badge-green-bg);
	color: var(--badge-green-fg);
	border: 0;
	border-radius: var(--radius-sm);
	padding: 4px 8px;
	font-size: 11px;
	line-height: 1;
}
.checkout-summary .bruleur-coupon-code { font-weight: 600; text-transform: uppercase; }
.checkout-summary .bruleur-remove-coupon {
	background: transparent; border: 0; color: inherit;
	font-size: 14px; line-height: 1; cursor: pointer; padding: 0 0 0 2px;
	opacity: .7;
}
.checkout-summary .bruleur-remove-coupon:hover { opacity: 1; }

.checkout-summary__coupon-section {
	margin-top: 6px;
	padding-top: 10px;
	border-top: 1px dotted var(--surface-3);
}
.checkout-summary__coupon-toggle {
	background: transparent;
	border: 0; padding: 0;
	color: var(--ink-2);
	font-size: 12px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color .15s ease;
}
.checkout-summary__coupon-toggle::before {
	content: '+';
	display: inline-grid; place-items: center;
	width: 16px; height: 16px;
	border: 1px solid var(--ink-2);
	border-radius: 50%;
	font-size: 12px; line-height: 1;
}
.checkout-summary__coupon-toggle:hover { color: var(--ink); }
.checkout-summary__coupon-toggle:hover::before {
	background: var(--ink); border-color: var(--ink); color: var(--surface);
}
.checkout-summary__coupon-form {
	display: none;
	gap: 6px;
	margin-top: 8px;
}
.checkout-summary__coupon-form.active { display: flex; }
.checkout-summary__coupon-form input {
	flex: 1;
	height: 32px;
	padding: 0 10px;
	border: 1px solid var(--surface-3);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--ink);
	font-family: inherit;
	font-size: 12px;
}
.checkout-summary__coupon-form input:focus {
	outline: none;
	border-color: var(--ink);
}
.checkout-summary__coupon-form button {
	height: 32px;
	padding: 0 12px;
	background: var(--ink);
	color: var(--surface);
	border: 0; border-radius: var(--radius-sm);
	font-size: 12px; font-weight: 600;
	cursor: pointer;
	transition: background .15s ease;
}
.checkout-summary__coupon-form button:hover { background: var(--ink-2); }

/* Футер: terms + submit */
.checkout-summary__footer {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px dotted var(--surface-3);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.checkout-summary__footer .woocommerce-terms-and-conditions {
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	color: var(--ink-2);
	font-size: 11px;
	line-height: 1.5;
	max-height: 110px;
	overflow-y: auto;
	padding: 10px;
	margin: 0;
}
.checkout-summary__footer .woocommerce-terms-and-conditions-wrapper label {
	font-size: 11px;
	color: var(--ink-2);
	display: flex;
	gap: 10px;
	align-items: center;
	cursor: pointer;
}
.checkout-summary__footer .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 36px; height: 20px;
	background: var(--surface-3);
	border: 0; border-radius: 10px;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	margin: 0;
	transition: background .2s ease;
}
.checkout-summary__footer .woocommerce-terms-and-conditions-wrapper input[type="checkbox"]::after {
	content: '';
	position: absolute;
	top: 2px; left: 2px;
	width: 16px; height: 16px;
	background: var(--surface);
	border-radius: 50%;
	transition: left .2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.checkout-summary__footer .woocommerce-terms-and-conditions-wrapper input[type="checkbox"]:checked {
	background: var(--ink);
}
.checkout-summary__footer .woocommerce-terms-and-conditions-wrapper input[type="checkbox"]:checked::after {
	left: 18px;
}
.checkout-summary__footer .woocommerce-privacy-policy-text {
	font-size: 10px;
	color: var(--muted);
	line-height: 1.5;
}
.checkout-summary__footer .woocommerce-privacy-policy-text a { color: var(--ink-2); }

/* Submit-кнопка — большая чёрная во всю ширину футера.
   Высокая специфичность + !important перебивают .button.alt из WC и
   .bruleur-submit-btn из старого checkout.css. */
.checkout-summary .checkout-summary__submit,
.checkout-summary button.checkout-summary__submit,
.checkout-summary button#place_order.checkout-summary__submit {
	display: block !important;
	width: 100% !important;
	height: 52px !important;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: var(--radius-md) !important;
	background: var(--ink) !important;
	color: var(--dark-ink) !important;
	font-family: var(--font-sans) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: -.005em !important;
	text-transform: none !important;
	cursor: pointer;
	transition: background .15s ease;
	box-shadow: none !important;
	text-shadow: none !important;
}
.checkout-summary .checkout-summary__submit:hover { background: var(--ink-hover) !important; }
.checkout-summary .checkout-summary__submit.bruleur-btn-disabled,
.checkout-summary .checkout-summary__submit:disabled {
	background: var(--surface-3) !important;
	color: var(--muted) !important;
	cursor: not-allowed;
}

/* Адаптив: на узких экранах aside возвращается в normal flow под workspace */
@media (max-width: 1100px) {
	body.bruleur-has-checkout-summary .layout {
		grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
	}
	.checkout-summary {
		position: static;
		top: auto;
		right: auto;
		bottom: auto;
		width: auto;
		grid-column: 1 / -1;
		margin-top: var(--gap);
		height: auto;
		max-height: none;
	}
	.checkout-summary__body { overflow: visible; }
}
@media (max-width: 960px) {
	body.bruleur-has-checkout-summary .layout {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Bruleur Checkout — приведение центральной формы к токенам темы.
   Дублирует часть правил из inc/checkout/assets/css/checkout.css
   с большей специфичностью (body.woocommerce-checkout) +
   опирается на каскад: checkout.css грузится первым, потом главный
   bruleur стиль (этот файл) — выигрывает по порядку.
   ========================================================= */

body.woocommerce-checkout .bruleur-checkout-wrapper {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--font-sans) !important;
	color: var(--ink) !important;
	z-index: auto !important;
}
body.woocommerce-checkout .bruleur-checkout-wrapper * { font-family: inherit; }

/* Снимаем «вторую карточку» — workspace темы уже белая */
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-checkout-container {
	background: transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	overflow: visible !important;
	display: block !important;
}

/* Шапка страницы */
.bruleur-checkout-head {
	margin: 0 0 16px;
}
.bruleur-checkout-head__title {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--ink);
}
.bruleur-checkout-head__sub {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}

/* Двухколонник Получатель/Оплата */
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-checkout-columns {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 12px !important;
}
@media (max-width: 720px) {
	body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-checkout-columns {
		grid-template-columns: 1fr !important;
	}
}

body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-block {
	background: var(--surface-2) !important;
	border-radius: var(--radius-md) !important;
	padding: 16px !important;
	margin: 0 0 12px !important;
}
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-block::after {
	display: none !important; /* убираем вертикальный пунктир-разделитель */
}
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-columns-container {
	border-bottom: none !important;
}

/* Шапка блока (1/2/3 + название) */
.bruleur-block__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-step-num {
	width: 24px !important;
	height: 24px !important;
	background: var(--surface-3) !important;
	color: var(--ink-2) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	border-radius: 50% !important;
	display: grid !important;
	place-items: center !important;
}
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-step-num.step-complete {
	background: var(--ink) !important;
	color: var(--surface) !important;
}
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-step-title {
	color: var(--ink) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: -.005em !important;
	text-transform: none !important;
}
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-step-desc {
	color: var(--muted) !important;
	font-size: 11px !important;
}

/* Шапка раздела «Доставка» — белая плашка с тоглом справа */
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-delivery-block {
	padding: 16px !important;
}
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-delivery-header-section {
	background: transparent !important;
	border-top: none !important;
	padding: 0 0 14px !important;
	margin: 0 0 14px;
	border-bottom: 1px dotted var(--surface-3);
}

/* Поля: подпись над полем, белое поле, читаемый текст — static/bp/css/fields.css. Остальные подписи шага (доставка) — прежние */
body.woocommerce-checkout .bruleur-checkout-wrapper label:not(.pay-opt):not(.bruleur-field label) {
	color: var(--muted) !important;
	letter-spacing: .06em !important;
	text-transform: uppercase !important;
}

/* Тоглы и switcher */
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-toggle-slider,
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-toggle {
	background: var(--surface-3) !important;
}
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-other-delivery-toggle input:checked + .bruleur-toggle-slider,
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-toggle.active {
	background: var(--ink) !important;
}
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-toggle-label { color: var(--ink-2) !important; }
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-toggle-subtitle { color: var(--muted) !important; }

body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-switcher {
	background: var(--surface-3) !important;
	border-radius: var(--radius-md) !important;
}
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-switch-btn {
	color: var(--muted) !important;
	border-radius: var(--radius-sm) !important;
}
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-switch-btn:hover { color: var(--ink) !important; }
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-switch-btn.active {
	background: var(--surface) !important;
	color: var(--ink) !important;
	box-shadow: none !important;
}
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-delivery-label {
	color: var(--muted) !important;
}

/* Карта */
body.woocommerce-checkout .bruleur-checkout-wrapper #bruleur-map,
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-map-container {
	background: var(--surface-3) !important;
	border-radius: var(--radius-md) !important;
}
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-map-section {
	padding: 0 !important;
	margin-top: 14px;
}

/* Прячем оригинальную правую колонку, если когда-то рендерится из шаблона
   (например, плагины WC, которые тащут review-order). У нас всё в aside. */
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-checkout-right {
	display: none !important;
}
body.woocommerce-checkout .bruleur-checkout-wrapper .bruleur-unified-header {
	display: none !important; /* старая трёхэтапная шапка-лента */
}

/* ---------- Грид карточек товара ---------- */
.shop-grid {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}

.shop-card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: background .15s ease;
}
.shop-card:hover { background: var(--surface-2); }

/* Обложка — 3:4 (как у всех фотографий товаров на сайте) */
.shop-card__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: var(--surface);
	overflow: hidden;
}
.shop-card__cover {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: contain;
	display: block;
	opacity: 0;
	transition: opacity .12s ease;
}
.shop-card__cover.is-active { opacity: 1; }

/* Точки-индикаторы при наведении на медиа */
.shop-card__dots {
	position: absolute;
	left: 50%;
	bottom: 8px;
	transform: translateX(-50%);
	display: inline-flex;
	gap: 4px;
	padding: 4px 6px;
	border-radius: 999px;
	background: rgba(255,255,255,.7);
	pointer-events: none;
	opacity: 0;
	transition: opacity .15s ease;
}
.shop-card__media:hover .shop-card__dots { opacity: 1; }
.shop-card__dot {
	width: 5px; height: 5px;
	border-radius: 50%;
	background: rgba(15,17,22,.25);
	transition: background .12s ease;
}
.shop-card__dot.is-active { background: var(--ink); }

.shop-card__sale {
	position: absolute;
	top: 8px; left: 8px;
	display: inline-flex; align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 4px;
	background: var(--ink);
	color: var(--dark-ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .005em;
}

.shop-card__brand {
	position: absolute;
	top: 8px; right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 28px;
	pointer-events: none;
}
.shop-card__brand img {
	max-width: 100%;
	max-height: 100%;
	width: auto; height: auto;
	object-fit: contain;
	display: block;
}
.shop-card__brand-text {
	font-size: 10px;
	font-weight: 700;
	color: var(--ink-2);
	letter-spacing: .02em;
}

/* Тело карточки */
.shop-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px 12px;
	flex: 1;
}

.shop-card__sku {
	font-size: 10px;
	letter-spacing: .02em;
	color: var(--muted);
	font-weight: 500;
	line-height: 1;
}

.shop-card__name {
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-2);
	line-height: 1.3;
	letter-spacing: -.005em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 2.6em;                 /* строго 2 строки */
	transition: color .12s ease;
}
.shop-card:hover .shop-card__name { color: var(--ink); }

.shop-card__stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 500;
	color: var(--muted);
	margin-top: 2px;
}
.shop-card__stock-dot {
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--muted);
	flex: none;
}
.shop-card__sold {
	color: var(--muted);
	font-weight: 500;
	white-space: nowrap;
}
.shop-card__stock--in       .shop-card__stock-dot { background: var(--stock-in); }
.shop-card__stock--preorder .shop-card__stock-dot { background: var(--badge-orange-fg); }

.shop-card__bottom {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	margin-top: auto;              /* прижимаем к низу карточки */
	padding-top: 8px;
}

/* Строка над ценой: [артикул][наличие] */
.shop-card__meta {
	display: flex; align-items: center; gap: 6px;
	min-width: 0;
}
.shop-card__meta-sku {
	flex: 1 1 auto; min-width: 0;
	height: 22px; padding: 0 8px;
	border-radius: 6px;
	background: var(--surface-2);
	color: var(--ink);
	font-size: 11.5px; font-weight: 600; line-height: 22px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-card__meta-label { color: var(--muted); font-weight: 500; }
.shop-card__meta-short { display: none; }
.shop-card__meta .shop-card__stock {
	flex: none;
	height: 22px; padding: 0 7px; gap: 5px;
	margin-top: 0;
	border-radius: 6px;
	background: var(--badge-gray-bg);
	color: var(--badge-gray-fg);
	font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.shop-card__meta .shop-card__stock--in { background: var(--badge-green-bg); color: var(--badge-green-fg); }
.shop-card__meta .shop-card__stock--preorder { background: var(--badge-orange-bg); color: var(--badge-orange-fg); }

/* Цена и кнопка — одна строка; не помещаются вместе — кнопка уходит под цену на всю ширину */
.shop-card__buy {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.shop-card__prices {
	flex: 0 0 auto;
	display: flex; flex-direction: column;
	line-height: 1.15;
	min-width: 0;
}
.shop-card__price-old {
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
	text-decoration: line-through;
}
.shop-card__price {
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -.015em;
	margin-top: 2px;
	white-space: nowrap;
}

/* Контейнер action-зоны: кнопка «В корзину» / стэппер + ссылка на корзину. Высота одна (44 px) во всех состояниях */
.shop-card__action {
	flex: 1 1 auto;
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.shop-card__add {
	flex: 1 1 auto;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: var(--ink);
	color: var(--dark-ink);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s ease;
}
.shop-card__add:hover { background: var(--ink-hover); color: var(--dark-ink); }
.shop-card__add svg { width: 20px; height: 20px; flex: none; }
.shop-card__add--detail { background: var(--surface-2); color: var(--ink); }
.shop-card__add--detail:hover { background: var(--surface-3); color: var(--ink); }
.shop-card__add[disabled] { opacity: .5; cursor: not-allowed; }

/* Стэппер количества: [ −  N  + ] на всю свободную ширину */
.shop-card__action:has(.shop-card__qty) { flex: 0 0 auto; margin-left: auto; }     /* в корзине: компактный счётчик справа от цены, в той же строке */
.shop-card__qty {
	flex: 0 0 auto;
	width: 96px;
	display: flex;
	align-items: stretch;
	height: 44px;
	background: var(--surface-2);
	border-radius: 10px;
	overflow: hidden;
}
.shop-card__qty-btn {
	width: 32px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-size: 20px;
	cursor: pointer;
	display: grid; place-items: center;
	transition: background .12s ease;
}
.shop-card__qty-btn:hover:not(:disabled) { background: var(--surface-3); }
.shop-card__qty-btn:disabled { color: var(--muted); cursor: not-allowed; opacity: .5; }
.shop-card__qty-num {
	flex: 1;
	display: grid; place-items: center;
	min-width: 24px;
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

/* Ссылка на корзину рядом со стэппером */
.shop-card__cart-link {
	flex: none;
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border-radius: 10px;
	background: var(--ink);
	color: var(--dark-ink);
	transition: background .15s ease;
}
.shop-card__cart-link:hover { background: var(--ink-hover); color: var(--dark-ink); }
.shop-card__cart-link svg { width: 20px; height: 20px; }

/* Адаптив */
@media (max-width: 700px) {
	.shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.shop-card__meta-full { display: none; }          /* в двух колонках «Артикул» сокращается до «Арт.», чтобы номер не обрезался */
	.shop-card__meta-short { display: inline; }
	.shop-card__meta { gap: 4px; }
	.shop-card__meta .shop-card__stock { padding: 0 7px; }
	.shop-card__meta .shop-card__stock-dot { display: none; }   /* зелёный фон уже говорит «в наличии»; точка отнимала место у номера */
	.shop-card__meta-sku { padding: 0 6px; }
	.shop-card__add svg { display: none; }            /* в двух колонках цена и кнопка в одну строку помещаются только с надписью без значка */
	.shop-card__add { padding: 0 10px; }
}

/* ---------- Пагинация ---------- */
.shop__pagination {
	margin-top: 28px;
	display: flex;
	justify-content: center;
}
.shop__pagination ul.page-numbers {
	list-style: none;
	margin: 0; padding: 0;
	display: inline-flex;
	gap: 4px;
}
.shop__pagination ul.page-numbers li { margin: 0; padding: 0; }
.shop__pagination a.page-numbers,
.shop__pagination span.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 36px; height: 36px;
	padding: 0 10px;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: -.005em;
	font-variant-numeric: tabular-nums;
	transition: background .15s ease, color .15s ease;
}
.shop__pagination a.page-numbers:hover { background: var(--surface-2); color: var(--ink); }
.shop__pagination span.page-numbers.current {
	background: var(--ink);
	color: var(--dark-ink);
	font-weight: 600;
}
.shop__pagination span.page-numbers.dots {
	background: transparent;
	color: var(--muted);
	font-weight: 400;
}
.shop__pagination .prev,
.shop__pagination .next {
	color: var(--ink);
	font-size: 16px;
	font-weight: 400;
}

/* ---------- Modal panel (universal) ---------- */

/* Невидимый перехватчик клика — без затемнения, по правилам без фона.
   Закрывает модалку по клику в пустоту. */
.modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: transparent;
}
.modal-backdrop[hidden] { display: none; }

.modal-panel {
	--modal-width: 360px;
	position: fixed;
	top: var(--gap);
	bottom: var(--gap);
	left: calc(var(--sidebar-w) + var(--gap));
	width: var(--modal-width);
	max-width: calc(100vw - var(--sidebar-w) - var(--gap) * 2);
	background: transparent;
	display: flex;
	flex-direction: column;
	overflow: hidden;            /* скроллится только __body */
	padding: 6px 8px 8px;
	z-index: 50;

	transform: translateX(-12px);
	opacity: 0;
	pointer-events: none;
	transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
}
.modal-panel[hidden] { display: none; }
.modal-panel.is-active { transform: translateX(0); opacity: 1; pointer-events: auto; }

.modal-panel__head {
	flex: none;
	margin-bottom: 14px;
}

.modal-panel__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 4px 14px 16px 10px;   /* отступы под скролл и контент */
	font-size: 14px;

	scrollbar-gutter: stable;
}

/* Аккуратный, тихий скроллбар внутри модалки */
.modal-panel__body::-webkit-scrollbar { width: 8px; }
.modal-panel__body::-webkit-scrollbar-track {
	background: transparent;
	margin: 12px 0;            /* отступы сверху и снизу — скролл не упирается в края */
}
.modal-panel__body::-webkit-scrollbar-thumb {
	background: rgba(15, 17, 22, .12);
	border: 2px solid transparent;        /* визуальный воздух вокруг плашки */
	background-clip: padding-box;
	border-radius: var(--radius-md);
	transition: background-color .2s ease;
}
.modal-panel__body::-webkit-scrollbar-thumb:hover {
	background: rgba(15, 17, 22, .26);
	background-clip: padding-box;
}
.modal-panel__body { scrollbar-width: thin; scrollbar-color: rgba(15,17,22,.18) transparent; }

.modal-empty { color: var(--muted); font-size: 14px; padding: 4px; }

/* Когда модалка открыта — лочим скролл body, страница не дёргается
   при прокрутке колёсиком внутри модалки. */
body.is-modal-open {
	overflow: hidden;
}
.modal-panel__body {
	overscroll-behavior: contain;   /* скролл не «протекает» к body */
}

/* ---------- Модалка корзины ---------- */
/* Прозрачный фон — модалка на одной плоскости с сайдбаром */
.modal-panel--cart .modal-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 6px 10px;
}
.modal-panel--cart .modal-panel__title {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}
.modal-panel--cart .modal-panel__body {
	background: transparent;
	padding: 4px 6px;
}

.cart-full { display: block; }
.cart-full__empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }

.cart-full__list { list-style: none; margin: 0; padding: 0; }

.cart-full__item {
	display: grid;
	grid-template-columns: 30px auto 1fr auto auto 22px;
	align-items: center;
	gap: 10px;
	padding: 8px 4px;
}
.cart-full__item + .cart-full__item {
	border-top: 1px dotted var(--surface-3);
}

.cart-full__thumb {
	width: 30px;
	aspect-ratio: 3 / 4;
	border-radius: 3px;
	overflow: hidden;
	background: var(--surface-2);
}
.cart-full__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* +/- — высота миниатюры */
.cart-full__qty {
	display: inline-flex;
	align-items: stretch;
	height: 40px;
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	overflow: hidden;
	flex: none;
}
.cart-full__qty-btn {
	width: 26px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
	display: grid; place-items: center;
	transition: background .12s ease;
}
.cart-full__qty-btn:hover:not(:disabled) { background: var(--surface-3); }
.cart-full__qty-btn:disabled { color: var(--muted); cursor: not-allowed; opacity: .5; }
.cart-full__qty-num {
	display: inline-grid; place-items: center;
	min-width: 26px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ink);
}

.cart-full__info { display: flex; flex-direction: column; min-width: 0; gap: 1px; color: var(--ink); }
.cart-full__sku { font-size: 9.5px; letter-spacing: .03em; color: var(--muted); line-height: 1; }
.cart-full__name {
	font-size: 12.5px; font-weight: 500; color: var(--ink); line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.cart-full__prices { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; }
.cart-full__price-old { font-size: 9.5px; color: var(--muted); text-decoration: line-through; line-height: 1; }
.cart-full__price { font-size: 11px; color: var(--ink-2); font-weight: 400; line-height: 1.1; }

.cart-full__subtotal {
	font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap;
	min-width: 70px; text-align: right;
	letter-spacing: -.005em;
}

.cart-full__remove {
	display: grid; place-items: center;
	width: 22px; height: 22px;
	border: 0; background: transparent; color: var(--muted);
	border-radius: 4px;
	cursor: pointer;
	transition: background .12s ease, color .12s ease;
}
.cart-full__remove:hover { background: rgba(15, 17, 22, .05); color: var(--ink); }
.cart-full__remove svg { width: 11px; height: 11px; }

/* Футер — итого + чекаут */
.cart-full__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 4px 4px;
	margin-top: 6px;
	border-top: 1px dotted var(--surface-3);
}

.cart-full__total { display: flex; flex-direction: column; line-height: 1.1; }
.cart-full__total-label {
	font-size: 9px; font-weight: 600; letter-spacing: .08em;
	text-transform: uppercase; color: var(--muted);
}
.cart-full__total-value {
	font-size: 17px; font-weight: 700; color: var(--ink);
	letter-spacing: -.01em; margin-top: 3px; white-space: nowrap;
}

.cart-full__checkout {
	display: inline-flex; align-items: center;
	height: 36px;
	padding: 0 18px;
	border-radius: var(--radius-sm);
	background: var(--ink);
	color: var(--dark-ink);
	font-size: 12.5px; font-weight: 600;
	transition: background .15s ease;
	border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; text-decoration: none;
}
.cart-full__checkout:hover { background: var(--ink-hover); color: var(--dark-ink); }

/* Состояния корзины: убранная строка, снятый с продажи товар, пустая корзина, подсказки под списком */
.cart-mini__item[hidden], .cart-full__item[hidden] { display: none; }
.cart-mini__item.is-gone .cart-mini__thumb, .cart-mini__item.is-gone .cart-mini__info,
.cart-full__item.is-gone .cart-full__thumb, .cart-full__item.is-gone .cart-full__info { opacity: .5; }
.cart-mini__empty { margin: 0; padding: 18px 14px 6px; font-size: 13px; color: var(--muted); }
.cart-mini__note { margin: 0; padding: 4px 14px 10px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.cart-full__note { margin: 10px 4px 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.cart-full__empty .cart-full__checkout { margin-top: 4px; }
/* Количество уже новое, суммы ещё старые — бледнеют до ответа сервера */
.cart-full__subtotal, .cart-full__total-value { transition: opacity .15s ease; }
.cart-page.is-counting .cart-full__subtotal, .cart-page.is-counting .cart-full__total-value { opacity: .35; }

/* Телефон: строка корзины — карточка на заливке: сверху снимок и название, снизу количество, цена, сумма; цели нажатия — 44 px */
@media (max-width: 640px) {
	.cart-full__item {
		grid-template-columns: 56px minmax(0, 1fr) auto auto;
		grid-template-areas: "thumb info info remove" "thumb qty prices sum";
		gap: 10px 12px; align-items: center;
		padding: 12px; border-radius: var(--radius-md); background: var(--surface-2);
	}
	.cart-full__item + .cart-full__item { border-top: 0; margin-top: 8px; }
	.cart-full__thumb { grid-area: thumb; width: 56px; align-self: start; background: var(--surface); }
	.cart-full__info { grid-area: info; align-self: start; gap: 3px; }
	.cart-full__sku { font-size: 10.5px; }
	.cart-full__name { font-size: 14px; -webkit-line-clamp: 3; }
	.cart-full__remove { grid-area: remove; align-self: start; justify-self: end; width: 44px; height: 44px; margin: -10px -10px 0 0; border-radius: var(--radius-sm); }
	.cart-full__remove svg { width: 14px; height: 14px; }
	.cart-full__qty { grid-area: qty; height: 44px; background: var(--surface); justify-self: start; }
	.cart-full__qty-btn { width: 40px; font-size: 16px; }
	.cart-full__qty-num { min-width: 28px; font-size: 14px; }
	.cart-full__prices { grid-area: prices; justify-self: end; }
	.cart-full__price { font-size: 12px; }
	.cart-full__subtotal { grid-area: sum; min-width: 0; font-size: 14px; }
	.cart-full__footer { padding: 16px 4px 4px; margin-top: 10px; }
	.cart-full__checkout { height: 44px; padding: 0 22px; font-size: 13px; }
}

/* Крестик закрытия (используется и в catalog-toolbar) */
.modal-panel__close {
	display: grid; place-items: center;
	width: 36px; height: 36px;
	flex: none;
	border: 0; border-radius: 10px;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.modal-panel__close:hover { background: rgba(15, 17, 22, .05); color: var(--ink); }
.modal-panel__close svg { width: 16px; height: 16px; }

/* Workspace выезжает вправо ровно на ширину открытой модалки.
   --workspace-shift выставляет JS при открытии (берёт offsetWidth панели). */
.workspace,
.shop-filters { transition: transform .26s cubic-bezier(.2,.8,.2,1); }
body.is-modal-open .workspace,
body.is-modal-open .shop-filters {
	transform: translateX(var(--workspace-shift, 360px));
	pointer-events: none;
}

/* ---------- Catalog toolbar: tabs (full width) + close ---------- */

.catalog-toolbar {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.catalog-tabs {
	flex: 1;
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	background: rgba(15, 17, 22, .05);
	padding: 4px;
	border-radius: var(--radius-lg);
	gap: 0;
	height: 40px;
	box-sizing: border-box;
}
.catalog-tabs[data-tabs-count="1"] { grid-template-columns: 1fr; }

/* Подвижная белая «таблетка» под активным табом — JS двигает её */
.catalog-tabs__indicator {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	width: 0;
	background: var(--surface);
	border-radius: 9px;
	transform: translateX(0);
	transition: transform .28s cubic-bezier(.2,.8,.2,1), width .28s cubic-bezier(.2,.8,.2,1);
	z-index: 0;
	pointer-events: none;
}

.catalog-tab {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 0;
	background: transparent;
	border-radius: 9px;
	padding: 0 12px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-2);
	cursor: pointer;
	transition: color .2s ease;
	user-select: none;
}
.catalog-tab:hover:not(.is-active) { color: var(--ink); }
.catalog-tab.is-active { color: var(--ink); font-weight: 600; }

.catalog-tab__icon { display: inline-grid; place-items: center; width: 16px; height: 16px; color: currentColor; flex: none; }
.catalog-tab__icon svg { width: 14px; height: 14px; display: block; }

.catalog-panel[hidden] { display: none; }

/* ---------- Catalog grid (модалка каталога) ---------- */
/* 2 колонки. Обложка компактная (3:4, фикс. ширина), акцент на тексте. */

.catalog-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 18px;
}

.catalog-card { display: flex; flex-direction: column; min-width: 0; }

.catalog-card__cover {
	display: block;
	width: 96px;                  /* небольшая обложка, не доминирует */
	aspect-ratio: 3 / 4;          /* 96 × 128 */
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--surface);
}
.catalog-card__cover img,
.catalog-card__img {
	width: 100%; height: 100%;
	object-fit: contain;
	display: block;
	transition: transform .35s ease;
}
.catalog-card__cover:hover img { transform: scale(1.04); }
.catalog-card__img--placeholder { background: var(--surface); }

.catalog-card__title {
	display: block;
	margin: 10px 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -.005em;
	line-height: 1.3;
}
.catalog-card__title:hover { color: var(--ink-2); }

.catalog-card__subs {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-direction: column; gap: 0;
}
.catalog-card__sub {
	display: block;
	padding: 3px 0;
	color: var(--ink-2);
	font-size: 13px;
	line-height: 1.45;
	transition: color .15s ease;
}
.catalog-card__sub:hover { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
	.layout { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
	.sidebar { position: static; height: auto; }
	.workspace { border-radius: var(--radius-md); }
	.browser-bar { padding: 12px 14px; gap: 10px; }
	.workspace__content { padding: 22px 18px 32px; }

	.browser-bar__user-name { display: none; }
	.browser-bar__cart-thumb { display: none; }
	.browser-bar__crumb { max-width: 18ch; }

	.modal-panel {
		left: 12px; right: 12px; top: 12px; bottom: 12px;
		width: auto; max-width: none;
	}
	body.is-modal-open .workspace { transform: none; }
	.catalog-grid { gap: 18px 12px; }
}

@media (max-width: 520px) {
	.catalog-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Страница товара (single product) — тёмная тема каталога
   ========================================================= */
.product-page { max-width: 1100px; margin: 4px 0 0; }

.product-page__top {
	display: grid;
	grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
@media (max-width: 860px) {
	.product-page__top { grid-template-columns: 1fr; gap: 20px; }
}

/* --- Галерея --- */
.product-page__media { position: relative; }
.product-page__media .woocommerce-product-gallery { margin: 0; float: none; width: 100% !important; }
.product-page__media .woocommerce-product-gallery__wrapper { margin: 0; }
.product-page__media .woocommerce-product-gallery__image,
.product-page__media .flex-viewport {
	background: var(--surface);
	border-radius: var(--radius-md);
	overflow: hidden;
}
.product-page__media .woocommerce-product-gallery__image { aspect-ratio: 3 / 4; }
.product-page__media .woocommerce-product-gallery__image a,
.product-page__media .woocommerce-product-gallery__image img {
	width: 100%; height: 100%;
	object-fit: contain;
	display: block;
}
.product-page__media .flex-control-thumbs {
	display: flex; flex-wrap: wrap; gap: 8px;
	margin: 10px 0 0; padding: 0; list-style: none;
}
.product-page__media .flex-control-thumbs li { width: 62px; margin: 0; list-style: none; float: none; }
.product-page__media .flex-control-thumbs img {
	aspect-ratio: 3 / 4; width: 100%; height: auto;
	object-fit: contain;
	background: var(--surface);
	border-radius: var(--radius-sm);
	opacity: .5; cursor: pointer;
	transition: opacity .15s ease;
}
.product-page__media .flex-control-thumbs img.flex-active,
.product-page__media .flex-control-thumbs img:hover { opacity: 1; }
.product-page__media .onsale {
	position: absolute; top: 10px; left: 10px; z-index: 3;
	background: var(--ink); color: var(--dark-ink);
	border-radius: var(--radius-sm);
	padding: 4px 9px; font-size: 11px; font-weight: 700;
	min-height: 0; min-width: 0; margin: 0; line-height: 1.4;
}

/* --- Сводка --- */
.product-page__summary { padding: 2px 0; }
.product-page__brand { display: inline-flex; align-items: center; height: 30px; margin-bottom: 12px; }
.product-page__brand img { max-height: 30px; width: auto; object-fit: contain; }
.product-page__brand-text { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }

.product-page .product_title.entry-title,
.product-page .product_title {
	font-size: 24px; line-height: 1.25; font-weight: 700;
	letter-spacing: -.015em; color: var(--ink); margin: 0 0 10px;
}
.product-page__stock {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 16px;
}
.product-page__stock .shop-card__stock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.product-page__stock.shop-card__stock--in .shop-card__stock-dot { background: var(--stock-in); }
.product-page__stock.shop-card__stock--preorder .shop-card__stock-dot { background: var(--badge-orange-fg); }
.product-page__sold { color: var(--muted); }

.product-page .summary .price,
.product-page__summary .price {
	font-size: 28px; font-weight: 800; color: var(--ink);
	letter-spacing: -.02em; margin: 0 0 18px; line-height: 1.1;
}
.product-page .price del { font-size: 17px; font-weight: 500; color: var(--muted); margin-right: 8px; opacity: 1; }
.product-page .price ins { text-decoration: none; }

.product-page .woocommerce-product-details__short-description {
	font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 0 0 20px;
}
.product-page .woocommerce-product-details__short-description p { margin: 0 0 8px; }
.product-page .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* Форма добавления в корзину */
.product-page form.cart {
	display: flex; align-items: center; gap: 10px;
	margin: 0 0 20px; flex-wrap: wrap;
}
.product-page form.cart .quantity {
	display: inline-flex; align-items: stretch;
	height: 46px; background: var(--surface-2);
	border-radius: var(--radius-sm); overflow: hidden;
}
.product-page .product-page__qty-btn {
	width: 40px; border: 0; background: transparent; color: var(--ink);
	font-size: 18px; display: grid; place-items: center; transition: background .12s ease;
}
.product-page .product-page__qty-btn:hover { background: var(--surface-3); }
.product-page form.cart input.qty {
	width: 46px; border: 0; background: transparent; text-align: center;
	font-size: 15px; font-weight: 600; color: var(--ink);
	-moz-appearance: textfield; font-variant-numeric: tabular-nums;
}
.product-page form.cart input.qty::-webkit-outer-spin-button,
.product-page form.cart input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-page .single_add_to_cart_button {
	height: 46px; padding: 0 28px;
	background: var(--ink) !important; color: var(--dark-ink) !important;
	border: 0; border-radius: var(--radius-sm) !important;
	font-size: 15px; font-weight: 600; letter-spacing: -.005em;
	cursor: pointer; transition: background .15s ease;
	display: inline-flex; align-items: center;
}
.product-page .single_add_to_cart_button:hover { background: var(--ink-hover) !important; color: var(--dark-ink) !important; }

/* Мета (артикул / категории / метки / бренд) */
.product-page .product_meta {
	font-size: 12.5px; color: var(--muted); line-height: 1.9;
	padding-top: 16px; margin-top: 4px;
	border-top: 1px solid var(--surface-3);
}
.product-page .product_meta > span { display: block; }
.product-page .product_meta a { color: var(--ink-2); }
.product-page .product_meta a:hover { color: var(--ink); }

/* --- Табы --- */
.product-page__bottom { margin-top: 40px; }
.product-page .woocommerce-tabs ul.tabs {
	display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 22px; padding: 0;
	list-style: none; border-bottom: 1px solid var(--surface-3);
}
.product-page .woocommerce-tabs ul.tabs::before,
.product-page .woocommerce-tabs ul.tabs li::before,
.product-page .woocommerce-tabs ul.tabs li::after { display: none; content: none; }
.product-page .woocommerce-tabs ul.tabs li {
	margin: 0; padding: 0; background: none; border: 0; border-radius: 0;
}
.product-page .woocommerce-tabs ul.tabs li a {
	display: block; padding: 10px 14px;
	font-size: 14px; font-weight: 600; color: var(--muted) !important;
	border-bottom: 2px solid transparent; margin-bottom: -1px;
	background: none !important; text-shadow: none !important;
	transition: color .15s ease, border-color .15s ease;
}
.product-page .woocommerce-tabs ul.tabs li a:hover { color: var(--ink) !important; }
.product-page.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink) !important; border-bottom-color: var(--ink) !important; }
.product-page .woocommerce-tabs ul.tabs li.active { background: none !important; }
.product-page .woocommerce-Tabs-panel { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.product-page .woocommerce-Tabs-panel h2 { font-size: 18px; color: var(--ink); margin: 0 0 12px; }
.product-page .woocommerce-Tabs-panel table { border-collapse: collapse; width: 100%; margin: 12px 0; overflow-x: auto; display: block; }
.product-page .woocommerce-Tabs-panel table td,
.product-page .woocommerce-Tabs-panel table th {
	padding: 8px 10px; border-bottom: 1px solid var(--surface-3);
	text-align: left; font-size: 13.5px;
}

/* --- Похожие товары (карточки каталога) --- */
.product-page__related { margin-top: 44px; }
.product-page__section-title {
	font-size: 20px; font-weight: 700; color: var(--ink);
	letter-spacing: -.01em; margin: 0 0 18px;
}
.product-page__related .shop-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* Уменьшенная карточка каталога: разметка та же (.shop-card), меньше только размеры и шрифты */
@media (min-width: 701px) {
	.shop-grid--mini { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
}
.shop-grid--mini .shop-card__body { padding: 8px 10px 10px; gap: 3px; }
.shop-grid--mini .shop-card__name { font-size: 12px; }
.shop-grid--mini .shop-card__bottom { gap: 8px; padding-top: 6px; }
.shop-grid--mini .shop-card__meta { gap: 4px; }
.shop-grid--mini .shop-card__meta-sku,
.shop-grid--mini .shop-card__meta .shop-card__stock { height: 20px; padding: 0 6px; font-size: 10.5px; line-height: 20px; }
.shop-grid--mini .shop-card__meta-full { display: none; }
.shop-grid--mini .shop-card__meta-short { display: inline; }
.shop-grid--mini .shop-card__meta .shop-card__stock-dot { display: none; }
.shop-grid--mini .shop-card__price-old { font-size: 11.5px; }
.shop-grid--mini .shop-card__price { font-size: 16px; }
.shop-grid--mini .shop-card__add { height: 36px; padding: 0 10px; gap: 6px; font-size: 13px; border-radius: 8px; }
.shop-grid--mini .shop-card__add svg { width: 16px; height: 16px; }
.shop-grid--mini .shop-card__qty { width: 84px; height: 36px; border-radius: 8px; }
.shop-grid--mini .shop-card__qty-btn { width: 26px; font-size: 17px; }
.shop-grid--mini .shop-card__qty-num { font-size: 14px; }

/* Живая карточка списка (static/catalog/card-live.js): слои как в слайдере страницы товара — холст → живой фон в границах блока → товар.
   Обычная .shop-card__cover остаётся в разметке для поиска и без WebGL, под живым слоем она скрыта. Блок: x 45–675, y 210–1155 из 900×1200. */
.shop-card__media.is-live .shop-card__cover { visibility: hidden; }
.live-stack { position: absolute; inset: 0; display: block; pointer-events: none; }
.live-back, .live-front { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; user-select: none; }
.live-bg { position: absolute; left: 5%; top: 17.5%; width: 70%; height: 78.75%; border-radius: 5.714% / 3.81%; object-fit: cover; }
.live-stack .live-mark { position: absolute; left: 11.889%; top: 74.667%; width: 21.333%; height: 16.333%; object-fit: fill; pointer-events: none; user-select: none; }
.live-front { opacity: 0; transition: opacity .12s ease; }
.live-front.is-active { opacity: 1; }


/* Ярлычки площадок: правый верхний угол карточки, подсказка при наведении или фокусе (владелец 09.11.2026) */
.shop-card { position: relative; }
.mk-chips { position: absolute; top: 8px; right: 8px; z-index: 3; display: inline-flex; gap: 4px; }
.mk-chip { position: relative; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 7px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .16); cursor: help; outline: 0; }
.mk-chip img { display: block; width: 18px; height: 18px; border-radius: 4px; }
.mk-chip:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.mk-chip--off img { filter: grayscale(1); opacity: .45; }
.mk-own { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 8px 0 4px; border-radius: 7px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .16); color: var(--badge-green-fg); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.mk-own img { display: block; width: 16px; height: 16px; }
.mk-own--off { color: var(--muted); }
.mk-own--off img { filter: grayscale(1); opacity: .55; }
.shop-grid--mini .mk-own { height: 22px; font-size: 11px; padding: 0 6px 0 3px; }
.mc .mk-own { height: 22px; font-size: 11px; padding: 0 6px 0 3px; }
.mc .mk-chip { width: 22px; height: 22px; }
.mc .mk-chip img { width: 15px; height: 15px; }
.mk-tip { display: none; }
.mk-tipped { cursor: help; outline: 0; }
.mk-own:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.mk-pop[hidden] { display: none; }
.mk-pop { position: fixed; z-index: 1000; display: grid; gap: 8px; width: max-content; min-width: 150px; max-width: min(260px, calc(100vw - 16px)); padding: 12px 14px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 8px 28px rgba(16, 24, 40, .2), 0 1px 3px rgba(16, 24, 40, .12); font-size: 13px; line-height: 1.35; pointer-events: none; animation: mk-pop .12s ease-out; }
.mk-pop::before { content: ""; position: absolute; top: -5px; left: calc(var(--arrow, 20px) - 5px); width: 10px; height: 10px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.mk-pop--above::before { top: auto; bottom: -5px; }
@keyframes mk-pop { from { opacity: 0; transform: translateY(3px); } }
.mk-pop__head { position: relative; display: flex; align-items: center; gap: 10px; }
.mk-pop__head img { flex: none; width: 30px; height: 30px; border-radius: 7px; }
.mk-pop__head > span { display: grid; gap: 1px; }
.mk-pop__head b { font-size: 14px; font-weight: 600; }
.mk-pop__state { font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--badge-green-fg); }
.mk-pop__state--off { color: var(--muted); }
.mk-pop__rate { display: flex; align-items: center; gap: 6px; }
.mk-pop__rate b { font-weight: 600; }
.mk-pop__rate small { font-size: 12.5px; color: var(--muted); }
.mk-pop__line { position: relative; display: block; }
.shop-grid--mini .mk-chip { width: 22px; height: 22px; }
.shop-grid--mini .mk-chip img { width: 15px; height: 15px; }

/* Артикул под фото — единственный в карточке, должен читаться (владелец 09.11.2026) */
.shop-card .shop-card__sku { color: var(--ink); font-size: 13px; font-weight: 600; opacity: 1; }

/* Цена и кнопка всегда в одну строку (владелец 09.11.2026): кнопка сжимается, значок корзины уходит первым */
.shop-card__buy { flex-wrap: nowrap; container-type: inline-size; }
.shop-card__action { flex: 1 1 0; min-width: 0; }
.shop-card__add { width: 100%; min-width: 0; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
@container (max-width: 240px) { .shop-card__add svg { display: none; } }
@container (max-width: 180px) { .shop-card__add { padding-left: 4px; padding-right: 4px; font-size: 12.5px; } .shop-card__price { font-size: 16px; } }

/* Отзывы на карточке товара (catalog/_pdp_reviews.html) */
.pdp-rv{margin:40px 0 0}
.pdp-rv__head{display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:0 0 18px}
.pdp-rv__head .k-head{margin:0}
.pdp-rv__sum{display:inline-flex; align-items:center; gap:8px; font-weight:600}
.pdp-rv__sum small{font-weight:400; font-size:13px; color:var(--muted)}
.pdp-rv__list{display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:12px; margin:0; padding:0; list-style:none}
.pdp-rv__item{display:grid; align-content:start; gap:6px; padding:16px 18px; border-radius:var(--radius-md); background:var(--surface-2)}
.pdp-rv__who{display:flex; justify-content:space-between; gap:12px; font-weight:600}
.pdp-rv__who time{font-weight:400; font-size:12.5px; color:var(--muted)}
.pdp-rv__item p{margin:0; font-size:14.5px; line-height:1.5; white-space:pre-line}
.pdp-rv__src{display:inline-flex; align-items:center; gap:6px; margin-top:4px; font-size:12.5px; color:var(--muted); text-decoration:none}
a.pdp-rv__src[href]:hover{color:var(--ink)}
.pdp-rv__src img{border-radius:4px}
.rv-stars{position:relative; display:inline-block; font-size:16px; line-height:1; letter-spacing:1px; color:var(--grey-lo, #c9c9c4)}
.rv-stars::before{content:"★★★★★"}
.rv-stars::after{content:"★★★★★"; position:absolute; left:0; top:0; width:var(--v); overflow:hidden; white-space:nowrap; color:#f08a00}
