/* ===========================================================
   Тема "default" -- демо-витрина движка SiteRadius CMS.
   Только сетка Bootstrap (bootstrap-grid.css) -- весь остальной
   CSS в этом файле написан с нуля, без компонентов/утилит
   Bootstrap. Палитра и радиусы -- в духе .sr-* системы админки
   (admin/templates/css/style.css), но отдельный, независимый
   набор токенов -- сайт и админка стилистически близки, но не
   обязаны совпадать один в один.
   =========================================================== */

:root {
	--site-accent: #184f95;
	--site-accent-dark: #123a70;
	--site-accent-soft: #e8f0fc;
	--site-text: #15171a;
	--site-text-muted: #6b7280;
	--site-border: #e5e7eb;
	--site-bg: #ffffff;
	--site-bg-alt: #f7f8fa;
	--site-danger: #c0392b;
	--site-success: #2e9e5b;
	--site-radius: 8px;
	--site-radius-md: 12px;
	--site-radius-lg: 20px;
	--site-shadow: 0 1px 2px rgba(20,20,30,.05), 0 1px 1px rgba(20,20,30,.03);
	--site-shadow-card: 0 1px 2px rgba(20,20,30,.04), 0 10px 24px -14px rgba(20,20,30,.16);
	--site-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--site-header-h: 72px;
}

/* --- Сброс/база --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--site-font);
	color: var(--site-text);
	background: var(--site-bg);
	font-size: 15px;
	line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--site-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 700; line-height: 1.25; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
button { font-family: inherit; }

/* --- Кнопки --- */
.site-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: var(--site-radius);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background .15s, border-color .15s, color .15s;
	text-decoration: none;
	line-height: 1.2;
}
.site-btn:hover { text-decoration: none; }
.site-btn-dark { background: var(--site-text); color: #fff; }
.site-btn-dark:hover { background: #000; }
.site-btn-accent { background: var(--site-accent); color: #fff; }
.site-btn-accent:hover { background: var(--site-accent-dark); }
.site-btn-outline { background: #fff; color: var(--site-text); border-color: var(--site-border); }
.site-btn-outline:hover { border-color: var(--site-text); }
.site-btn-block { width: 100%; }
.site-btn-sm { padding: 7px 14px; font-size: 13px; }
.site-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* --- Карточки --- */
.site-card {
	background: #fff;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius-lg);
	box-shadow: var(--site-shadow-card);
}

/* --- Поля ввода --- */
.site-input, select.site-input, textarea.site-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius);
	background: var(--site-bg-alt);
	font-family: inherit;
	font-size: 14px;
	color: var(--site-text);
}
.site-input:focus { outline: none; border-color: var(--site-accent); background: #fff; }
.site-field-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }

/* --- Бейджи --- */
.site-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}
.site-badge-accent { background: var(--site-accent-soft); color: var(--site-accent); }
.site-badge-danger { background: #fbeaea; color: var(--site-danger); }
.site-badge-success { background: #e5f7ec; color: var(--site-success); }

/* ===========================================================
   Шапка сайта
   =========================================================== */
.site-header {
	border-bottom: 1px solid var(--site-border);
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header-row {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--site-header-h);
}
.site-logo { font-size: 20px; font-weight: 800; color: var(--site-text); white-space: nowrap; }
.site-logo:hover { text-decoration: none; }
.site-header-search { flex: 1; max-width: 480px; }

/*
 * Форма поиска -- файл-партиал modules/catalog_items/templates/site/blocks_search.tpl
 * (общий для "rin" и "default", верстка на <table>, за неё цепляется
 * live_search.js по классу .query) -- сам файл не трогаем, чтобы не
 * сломать автодополнение, только переопределяем вид его элементов здесь.
 */
.site-header-search table { width: 100%; border-collapse: collapse; }
.site-header-search td { padding: 0; }
.site-header-search td:last-child { width: 44px; }
.site-header-search input.query {
	width: 100%;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--site-border);
	border-right: none;
	border-radius: var(--site-radius) 0 0 var(--site-radius);
	background: var(--site-bg-alt);
	font-family: inherit;
	font-size: 14px;
	color: var(--site-text);
}
.site-header-search input.query:focus { outline: none; border-color: var(--site-accent); background: #fff; }
.site-header-search input#button {
	height: 40px;
	width: 44px;
	border: 1px solid var(--site-border);
	border-radius: 0 var(--site-radius) var(--site-radius) 0;
	background: var(--site-bg-alt) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315171a' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/></svg>") center/18px no-repeat;
	cursor: pointer;
	text-indent: -9999px;
}
.site-header-search input#button:hover { background-color: var(--site-border); }
.site-header-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }

/*
 * Виджеты шапки (сравнение/избранное/корзина) -- общие файлы-партиалы
 * modules/catalog_items/templates/site/{compare,watchlist}_small.tpl и
 * modules/cart/templates/cart_small.tpl, используются и темой "rin", и
 * "default". Каждый тег уже рендерит свой цельный <a>, поэтому стили
 * вешаются прямо на него и на вложенный div#...-info/счётчик -- без
 * дополнительной обёртки. Селекторы ограничены предком
 * .site-header-actions, чтобы не задеть вёрстку "rin" (там те же id
 * оформлены через div.header-cart).
 */
.site-header-actions .catalog-compare-widget,
.site-header-actions .catalog-watchlist-widget,
.site-header-actions .cart-widget {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--site-text);
	position: relative;
}
.site-header-actions .catalog-compare-widget:hover,
.site-header-actions .catalog-watchlist-widget:hover,
.site-header-actions .cart-widget:hover {
	color: var(--site-accent);
	text-decoration: none;
}
.site-header-actions .catalog-compare-widget #compare-info,
.site-header-actions .catalog-watchlist-widget #watchlist-info,
.site-header-actions .cart-widget #cart-info {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	background-color: currentColor;
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
}
.site-header-actions .catalog-compare-widget #compare-info {
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M3 3v18h18'/><path d='M18 17V9'/><path d='M13 17V5'/><path d='M8 17v-3'/></svg>");
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M3 3v18h18'/><path d='M18 17V9'/><path d='M13 17V5'/><path d='M8 17v-3'/></svg>");
}
.site-header-actions .catalog-watchlist-widget #watchlist-info {
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M20.8 4.6c-1.8-1.8-4.7-1.8-6.5 0L12 6.9l-2.3-2.3c-1.8-1.8-4.7-1.8-6.5 0-1.8 1.8-1.8 4.7 0 6.5L12 20l8.8-8.9c1.8-1.8 1.8-4.7 0-6.5Z'/></svg>");
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M20.8 4.6c-1.8-1.8-4.7-1.8-6.5 0L12 6.9l-2.3-2.3c-1.8-1.8-4.7-1.8-6.5 0-1.8 1.8-1.8 4.7 0 6.5L12 20l8.8-8.9c1.8-1.8 1.8-4.7 0-6.5Z'/></svg>");
}
.site-header-actions .cart-widget #cart-info {
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/></svg>");
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/></svg>");
}
.site-header-actions .catalog-compare-count,
.site-header-actions .catalog-watchlist-count,
.site-header-actions #cart_small_goods {
	position: absolute;
	top: -6px;
	right: -8px;
	background: var(--site-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	min-width: 16px;
	height: 16px;
	line-height: 16px;
	border-radius: 999px;
	text-align: center;
	padding: 0 3px;
}

/* --- Главное меню --- */
.site-nav { background: var(--site-bg-alt); border-bottom: 1px solid var(--site-border); }

/* ===========================================================
   Хлебные крошки
   =========================================================== */
/*
 * Хлебные крошки -- файл-партиал modules/breadcrumbs/templates/site/breadcrumbs.tpl,
 * свои классы (.breadcrumbs/.breadcrumbs-link/...), не трогаем сам файл --
 * оборачиваем тег [breadcrumbs] в .site-breadcrumbs в шаблоне страницы и
 * переопределяем вид его потомков здесь же.
 */
.site-breadcrumbs { margin: 18px 0; }
.site-breadcrumbs .breadcrumbs { font-size: 13px; color: var(--site-text-muted); }
.site-breadcrumbs .breadcrumbs-link { color: var(--site-text-muted); text-decoration: none; }
.site-breadcrumbs .breadcrumbs-link:hover { color: var(--site-accent); text-decoration: underline; }
.site-breadcrumbs .breadcrumbs-current { color: var(--site-text); font-weight: 500; }
.site-breadcrumbs .breadcrumbs-separator { margin: 0 2px; opacity: .6; }

/* ===========================================================
   Сетка товаров (каталог)
   =========================================================== */
.site-product-card {
	background: #fff;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius-lg);
	padding: 16px;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: box-shadow .15s, border-color .15s;
}
.site-product-card:hover { box-shadow: var(--site-shadow-card); border-color: transparent; }
.site-product-card-photo { display: block; border-radius: var(--site-radius-md); overflow: hidden; margin-bottom: 12px; background: var(--site-bg-alt); aspect-ratio: 1 / 1; }
.site-product-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.site-product-card-title { font-size: 14px; font-weight: 600; color: var(--site-text); margin-bottom: 8px; flex: 1; }
.site-product-card-title:hover { color: var(--site-accent); text-decoration: none; }
.site-product-card-price { margin-top: auto; padding-top: 8px; }

/* --- Цена (используется и в карточке списка, и на странице товара) --- */
.site-price { font-size: 20px; font-weight: 800; color: var(--site-text); }
.site-price-old {
	font-size: 14px;
	font-weight: 500;
	color: var(--site-text-muted);
	text-decoration: line-through;
	margin-right: 8px;
}
.site-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px; }
.site-promo { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; padding: 9px 14px; border-radius: var(--site-radius); background: var(--site-accent-soft); color: var(--site-accent-dark); font-size: 13.5px; font-weight: 600; }
.site-promo .timer { font-weight: 800; color: var(--site-danger); white-space: nowrap; }

/* --- Фильтр каталога --- */
.site-filter { padding: 18px; }
.site-filter-group { margin-bottom: 18px; }
.site-filter-group:last-child { margin-bottom: 0; }
.site-filter-group-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--site-text-muted); margin-bottom: 10px; }

/* ===========================================================
   Карточка товара
   =========================================================== */
.site-item-gallery-main { border-radius: var(--site-radius-lg); overflow: hidden; background: var(--site-bg-alt); margin-bottom: 12px; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.site-item-gallery-main img { max-width: 100%; max-height: 480px; object-fit: contain; }
.site-item-title { margin-bottom: 8px; }
.site-item-attrs { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.site-item-attrs td { padding: 7px 0; border-bottom: 1px dashed var(--site-border); }
.site-item-attrs td:first-child { color: var(--site-text-muted); width: 45%; }
.site-item-buybox { padding: 20px; margin-top: 18px; }
.site-item-stock-in { color: var(--site-success); font-weight: 600; font-size: 13px; }
.site-item-stock-out { color: var(--site-danger); font-weight: 600; font-size: 13px; }

/* ===========================================================
   Корзина / чекаут
   =========================================================== */
.site-cart-table { width: 100%; border-collapse: collapse; }
.site-cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--site-border); vertical-align: middle; }
.site-cart-row-photo { width: 64px; height: 64px; border-radius: var(--site-radius); object-fit: cover; background: var(--site-bg-alt); }
.site-cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--site-border); border-radius: var(--site-radius); overflow: hidden; }
.site-cart-qty button { width: 32px; height: 32px; border: none; background: var(--site-bg-alt); cursor: pointer; font-size: 16px; }
.site-cart-qty input { width: 40px; height: 32px; border: none; text-align: center; font-size: 14px; }
.site-cart-summary { padding: 20px; }
.site-cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.site-cart-summary-row.total { font-size: 18px; font-weight: 800; border-top: 1px solid var(--site-border); margin-top: 8px; padding-top: 14px; }

.site-method-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius-md);
	margin-bottom: 10px;
	cursor: pointer;
}
.site-method-option:has(input:checked) { border-color: var(--site-accent); background: var(--site-accent-soft); }

/* ===========================================================
   Подвал
   =========================================================== */
.site-footer { background: var(--site-text); color: #fff; margin-top: 60px; padding: 40px 0; font-size: 13px; }
.site-footer a { color: #fff; opacity: .8; }
.site-footer a:hover { opacity: 1; }
.site-footer-title { font-weight: 700; margin-bottom: 14px; font-size: 14px; }
.site-footer-bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); opacity: .6; font-size: 12px; }

/* ===========================================================
   Листинг каталога -- main_template/template категории (БД,
   mt_modul_catalog), тег [catalog_items:filter] (общий файл-партиал
   filter.tpl, свои классы .catalog-items-filter-*), [sort]/[pages]
   (генерируются PHP напрямую, классы .catalog-filter/.sort-line/
   .page_navigation) -- ничего из этого не меняем в коде, только
   переопределяем вид под тему "default".
   =========================================================== */
.site-catalog-title { margin-bottom: 4px; }
.site-catalog-intro { color: var(--site-text-muted); margin-bottom: 20px; }
.site-catalog-bottom { color: var(--site-text-muted); margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--site-border); }

/* --- Сортировка --- */
.site-catalog-sort { margin-bottom: 18px; }
.site-catalog-sort .sort-line { margin: 0; font-size: 13px; color: var(--site-text-muted); }
.site-catalog-sort .sort-line u { color: var(--site-text); text-decoration: none; font-weight: 600; }
.site-catalog-sort .sort-line a { display: inline-block; width: 18px; text-align: center; color: var(--site-text-muted); }
.site-catalog-sort .sort-line a:hover { color: var(--site-accent); text-decoration: none; }

/* --- Пагинация --- */
.site-catalog-pages { margin-top: 28px; display: flex; gap: 6px; flex-wrap: wrap; }
.site-catalog-pages a, .site-catalog-pages .page_navigation, .site-catalog-pages span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: var(--site-radius);
	border: 1px solid var(--site-border);
	color: var(--site-text);
	font-size: 14px;
	text-decoration: none;
}
.site-catalog-pages a:hover { border-color: var(--site-accent); color: var(--site-accent); }
.site-catalog-pages .page_navigation { background: var(--site-text); color: #fff; border-color: var(--site-text); font-weight: 600; }

/* --- Подразделы (sub_catalogs_template) --- */
.sub-catalog { margin-bottom: 12px; }
.sub-catalog a {
	display: block;
	padding: 14px 16px;
	background: var(--site-bg-alt);
	border-radius: var(--site-radius);
	color: var(--site-text);
	font-weight: 600;
	font-size: 14px;
}
.sub-catalog a:hover { background: var(--site-accent-soft); color: var(--site-accent); text-decoration: none; }

/* ===========================================================
   Фильтр (сайдбар) -- modules/catalog_items/templates/site/filter.tpl
   =========================================================== */
.site-filter { padding: 20px; }
.filter-title-desktop { font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.catalog-items-filter-group {
	position: relative;
	padding: 12px 20px 12px 0;
	border-top: 1px solid var(--site-border);
	cursor: pointer;
}
.catalog-items-filter-group:first-of-type { border-top: none; padding-top: 0; }
.catalog-items-filter-group a {
	color: var(--site-text);
	font-weight: 600;
	font-size: 14px;
}
.catalog-items-filter-group a:hover { text-decoration: none; }
.catalog-items-filter-group::after {
	content: "";
	position: absolute;
	right: 2px;
	top: 16px;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--site-text-muted);
	border-bottom: 2px solid var(--site-text-muted);
	transform: rotate(45deg);
	transition: transform .15s;
}
.catalog-items-filter-group.opened::after { transform: rotate(-135deg); top: 20px; }
.catalog-items-filter-item { padding: 14px 0 6px; }
.catalog-items-filter-item ul { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.catalog-items-filter-item li { margin-bottom: 8px; }
.catalog-items-filter-item label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--site-text); cursor: pointer; }
.catalog-items-filter-item table, .catalog-items-filter-item tr, .catalog-items-filter-item td { border: none; padding: 0; }
.catalog-items-filter-item td.td-check { width: 20px; }
.catalog-items-filter-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--site-accent); cursor: pointer; }
.catalog-items-filter-item input:disabled, .catalog-items-filter-item label:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.catalog-filter-swatch { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--site-border); vertical-align: middle; margin-right: 4px; background-size: cover; }
.catalog-items-filter-button, .catalog-items-filter-button-clear {
	margin-top: 14px;
	padding: 9px 16px;
	border-radius: var(--site-radius);
	border: 1px solid var(--site-border);
	background: #fff;
	font-size: 13px;
	cursor: pointer;
}
.catalog-items-filter-button:hover, .catalog-items-filter-button-clear:hover { border-color: var(--site-accent); color: var(--site-accent); }
.calculate {
	background: var(--site-text);
	color: #fff;
	border-radius: var(--site-radius-md);
	padding: 10px 16px;
	font-size: 13px;
	box-shadow: var(--site-shadow-card);
	z-index: 70;
}
.calculate b { font-weight: 700; }
.calculate p { margin: 4px 0 0; }
.calculate a { color: #fff; text-decoration: underline; }

/* ===========================================================
   Переключатель вариантов товара (осей) -- generated HTML живёт в PHP
   (class.catalog_items.php::_buildSwitcherAxesHtml/_buildColorGlassAxesHtml)
   и в offers_switcher_axes.tpl/offers_price_type_switcher.tpl -- логику
   (включая недавний фикс бага с несуществующими сочетаниями) не трогаем,
   только оформляем. Эта же разметка уже нужна была для бага с плашкой
   фильтра/карточки товара на soart.ru этой сессией -- там правился JS,
   здесь -- только внешний вид.
   =========================================================== */
.catalog-offers-switcher { margin: 18px 0; }
.catalog-offers-axis { margin-bottom: 16px; }
.catalog-offers-axis-name { font-size: 13px; font-weight: 600; color: var(--site-text-muted); margin-bottom: 8px; }

/* --- Цвет/Остекление -- кружки-образцы (ось-страница, переход на другой товар) --- */
.catalog-offers-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.catalog-offers-color {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid var(--site-border);
	background-color: var(--site-bg-alt);
	background-size: cover;
	background-position: center;
	color: var(--site-text);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.catalog-offers-color:hover { border-color: var(--site-accent); text-decoration: none; }
.catalog-offers-color--active { border-color: var(--site-accent); box-shadow: 0 0 0 2px var(--site-accent-soft); }

/* --- Размер и прочие оси-переключатели (таблетки) --- */
.catalog-offers-values { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-offers-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius);
	font-size: 13px;
	font-weight: 600;
	color: var(--site-text);
	cursor: pointer;
	background: #fff;
}
.catalog-offers-value:has(input:checked) { border-color: var(--site-accent); background: var(--site-accent-soft); color: var(--site-accent); }
.catalog-offers-value input { position: absolute; opacity: 0; width: 0; height: 0; }

/* --- Артикул / наличие / "нет сочетания" --- */
.catalog-offers-articul { margin: 14px 0; font-size: 14px; }
.catalog-offers-articul table { border-collapse: collapse; }
.catalog-offers-articul td { padding: 2px 0; }
.catalog-offers-articul td.code_item { color: var(--site-text-muted); padding-right: 8px; }
.catalog-offers-not-found {
	margin: 12px 0;
	padding: 10px 14px;
	border-radius: var(--site-radius);
	background: #fbeaea;
	color: var(--site-danger);
	font-size: 13px;
	font-weight: 600;
}
.catalog-offers-stock-in { color: var(--site-success); font-weight: 600; font-size: 13px; margin: 8px 0; }
.catalog-offers-stock-out { color: var(--site-danger); font-weight: 600; font-size: 13px; margin: 8px 0; }

/* --- Переключатель типа цены (Цена/Цена2/Комплект) --- */
.catalog-offers-price-type-row { margin: 14px 0; }
.catalog-offers-price-type-options { display: flex; flex-wrap: wrap; gap: 10px; }
.catalog-offers-price-type-option {
	position: relative;
	display: block;
	padding: 10px 16px;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius-md);
	font-size: 13px;
	cursor: pointer;
	text-align: center;
	line-height: 1.4;
}
.catalog-offers-price-type-option:has(input:checked) { border-color: var(--site-accent); background: var(--site-accent-soft); }
.catalog-offers-price-type-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.catalog-offers-price-type-option-kit-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.catalog-offers-price-type-option-kit-wrap .catalog-offers-price-type-option { width: 100%; }
.catalog-offers-kit-composition-trigger { display: inline-block; margin-top: 4px; font-size: 11px; color: var(--site-text-muted); text-align: center; cursor: help; line-height: 1.3; }
.catalog-offers-kit-tooltip {
	display: none;
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 8px;
	width: 220px;
	padding: 12px 14px;
	background: var(--site-text);
	color: #fff;
	border-radius: var(--site-radius);
	font-size: 12px;
	text-align: left;
	z-index: 80;
}
.catalog-offers-kit-composition-trigger:hover .catalog-offers-kit-tooltip,
.catalog-offers-kit-composition-trigger:focus .catalog-offers-kit-tooltip { display: block; }
.catalog-offers-kit-tooltip-title { font-weight: 700; display: block; margin-bottom: 4px; }
.catalog-offers-kit-tooltip ul { margin: 0; padding-left: 16px; }

/* ===========================================================
   Карточка товара -- продолжение (кнопка в корзину, счётчик
   количества, вкладки описания, сервисные ссылки). Реальные классы
   подтверждены просмотром живой страницы rin -- файлы-партиалы не
   трогаем, только переопределяем вид.
   =========================================================== */

/* --- Форма "В корзину" + степпер количества --- */
.form-cart { margin-top: 4px; }
.form-cart table.amount-cart-box { border-collapse: collapse; }
.form-cart table.amount-cart-box td { padding: 0; border: none; }
.form-cart table.amount-cart-box td:first-child { padding-right: 10px; }
.amount-box {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius);
	overflow: hidden;
}
.amount-box .qty-btn {
	width: 36px;
	height: 44px;
	border: none;
	background: var(--site-bg-alt);
	font-size: 16px;
	cursor: pointer;
	color: var(--site-text);
}
.amount-box .qty-btn:hover { background: var(--site-border); }
.amount-box .amount {
	width: 48px;
	height: 44px;
	border: none;
	border-left: 1px solid var(--site-border);
	border-right: 1px solid var(--site-border);
	text-align: center;
	font-size: 14px;
}
button.to_shopping {
	height: 44px;
	padding: 0 26px;
	border-radius: var(--site-radius);
	border: none;
	background: var(--site-accent);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}
button.to_shopping:hover { background: var(--site-accent-dark); }
.fast-order-open-btn {
	margin-top: 10px;
	height: 44px;
	padding: 0 20px;
	border-radius: var(--site-radius);
	border: 1px solid var(--site-border);
	background: #fff;
	color: var(--site-text);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}
.fast-order-open-btn:hover { border-color: var(--site-accent); color: var(--site-accent); }

/* --- Сервисные ссылки (сравнить/отложить/подписки) --- */
.site-item-service { display: flex; flex-direction: column; gap: 10px; }
.site-item-service .ci-action { align-self: flex-start; }
.site-item-consult { padding: 18px; background: var(--site-bg-alt); border-radius: var(--site-radius-lg); font-size: 13px; color: var(--site-text-muted); }
.site-item-consult-title { font-weight: 700; color: var(--site-text); margin-bottom: 8px; font-size: 14px; }
.site-item-consult a { color: var(--site-accent); }

/* --- Вкладки описания (Описание/Характеристики/Аналоги/Отзывы) --
   чистый CSS без JS: радиокнопки + label + общий соседний селектор.
   Разметка не меняется, просто даём ей то же поведение, что было у
   неё в css.css темы "rin" (которую тема "default" не подключает). */
.site-item-tabs { padding: 24px; margin-top: 32px; }
.site-item-tabs main > input { display: none; }
.site-item-tabs label {
	display: inline-block;
	padding: 10px 18px;
	margin-bottom: -1px;
	border: 1px solid transparent;
	border-radius: var(--site-radius) var(--site-radius) 0 0;
	font-weight: 600;
	font-size: 14px;
	color: var(--site-text-muted);
	cursor: pointer;
}
.site-item-tabs label:hover { color: var(--site-accent); }
.site-item-tabs main > input:checked + label {
	color: var(--site-text);
	border-color: var(--site-border);
	border-bottom-color: #fff;
}
.site-item-tabs main { border-bottom: 1px solid var(--site-border); }
.site-item-tabs section { display: none; padding: 20px 0 0; }
.site-item-tabs #tab1:checked ~ #content1,
.site-item-tabs #tab2:checked ~ #content2,
.site-item-tabs #tab3:checked ~ #content3,
.site-item-tabs #tab4:checked ~ #content4 { display: block; }

/* ===========================================================
   Мобильная адаптация (минимум, т.к. это демо-витрина, а не
   production-тема конкретного клиента)
   =========================================================== */
@media (max-width: 767.98px) {
	.site-header-row { flex-wrap: wrap; height: auto; padding: 12px 0; }
	.site-header-search { order: 3; flex-basis: 100%; max-width: none; margin-top: 10px; }
}

/* ===========================================================
   Личный кабинет клиента (модуль "Клиенты", "Корзина": заказы, оформление)
   Палитра кабинета -- переменные --cab-* (список и значения по
   умолчанию в modules/customer/css/style.css); здесь они привязаны
   к токенам темы, поэтому кабинет и оформление заказа выглядят как
   остальной сайт.
   =========================================================== */
:root {
	--cab-font: var(--site-font);
	--cab-heading-font: var(--site-font);
	--cab-text: #374151;
	--cab-muted: var(--site-text-muted);
	--cab-heading: var(--site-text);
	--cab-link: var(--site-accent);
	--cab-card-bg: #fff;
	--cab-card-border: var(--site-border);
	--cab-soft-bg: var(--site-bg-alt);
	--cab-line: #eef0f3;
	--cab-accent: var(--site-accent);
	--cab-accent-hover: var(--site-accent-dark);
	--cab-accent-text: #fff;
	--cab-ghost-bg: #fff;
	--cab-ghost-border: var(--site-border);
	--cab-ghost-text: var(--site-text);
	--cab-input-bg: #fff;
	--cab-input-border: #d1d5db;
	--cab-input-text: var(--site-text);
	--cab-input-placeholder: #9ca3af;
	--cab-focus-ring: rgba(24, 79, 149, .16);
	--cab-danger: var(--site-danger);
	--cab-danger-bg: #fdecea;
	--cab-success: var(--site-success);
	--cab-success-bg: #eaf7ef;
	--cab-info-bg: var(--site-accent-soft);
	--cab-warning: #92700f;
	--cab-warning-bg: #fdf3d7;
	--cab-radius: var(--site-radius-md);
	--cab-field-radius: var(--site-radius);
	--cab-btn-radius: var(--site-radius);
}

/* значок кабинета в шапке ([customer:smallmenu]) */
.site-header-actions .customer-widget {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--site-text);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.site-header-actions .customer-widget:hover {
	color: var(--site-accent);
	text-decoration: none;
}
.site-header-actions .customer-widget--logged { color: var(--site-accent); }
@media (max-width: 767.98px) {
	.site-header-actions .customer-widget__label { display: none; }
}
