/* bosch-msk.ru (s3): разделы каталога — 3 в ряд, крупные иконки и текст.
   Классы st-mm-* ставит script.js на блок, где есть ссылки на 3+ раздела каталога с иконками. */
.st-mm-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 12px 24px !important;
	align-items: stretch !important;
}
.st-mm-grid > .st-mm-item {
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	flex: none !important;
	float: none !important;
	margin: 0 !important;
	padding: 16px 20px !important;
	border-radius: 16px !important;
	box-sizing: border-box !important;
	transition: background-color .2s ease;
}
.st-mm-grid > .st-mm-item:hover { background-color: rgba(237, 0, 7, .05) !important; }
.st-mm-row {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 20px !important;
}
.st-mm-icw {
	width: 72px !important;
	height: 72px !important;
	min-width: 72px !important;
	max-width: none !important;
	max-height: none !important;
	flex: 0 0 72px !important;
	overflow: visible !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
	position: static !important;
}
.st-mm-ic {
	width: 64px !important;
	height: 64px !important;
	max-width: none !important;
	max-height: none !important;
	flex: 0 0 64px !important;
	position: static !important;
	transform: none !important;
}
.st-mm-title {
	font-size: 20px !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
	margin: 0 !important;
	padding: 0 !important;
}
.st-mm-item:hover .st-mm-title { color: #ED0007 !important; }
@media (max-width: 1199px) {
	.st-mm-grid { gap: 8px 12px !important; }
	.st-mm-grid > .st-mm-item { padding: 12px 14px !important; }
	.st-mm-title { font-size: 18px !important; }
}
@media (max-width: 767px) {
	.st-mm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.st-mm-row { gap: 12px !important; }
	.st-mm-icw { width: 52px !important; height: 52px !important; min-width: 52px !important; flex-basis: 52px !important; }
	.st-mm-ic { width: 46px !important; height: 46px !important; flex-basis: 46px !important; }
	.st-mm-title { font-size: 15px !important; }
}

/* ==========================================================================
   Карточка товара — описание как на svoetechno.ru (скопировано из её custom.css).
   Каждое правило начинается с body.site_s3 и файл подключается только на s3 —
   на svoetechno и другие сайты не влияет.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Характеристики в описании товара — стиль «как у HIBERG»
      Таблица из описания товара → две колонки, название — пунктир — значение.
   -------------------------------------------------------------------------- */

body.site_s3 .catalog-detail #desc .content > table {
	/* приглушённый цвет названий: 65% основного текста поверх фона страницы */
	--st-label: var(--basic_text_black);
	--st-label: color-mix(in srgb, var(--white_text_black) 65%, var(--black_bg_black));
	/* пунктир */
	--st-dots: var(--stroke_black);
	--st-dots: color-mix(in srgb, var(--white_text_black) 18%, transparent);

	display: block;
	width: 100% !important;
	max-width: none;
	height: auto !important;
	margin: 0 0 32px;
	border: 0 !important;
	border-collapse: separate;
	background: transparent;
	font-size: 15px;
	line-height: 1.4;
}

/* заголовок «Характеристики» над первой таблицей описания */
body.site_s3 .catalog-detail #desc .content > table:first-of-type::before {
	content: "Характеристики";
	display: block;
	margin: 8px 0 12px;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--white_text_black);
}

/* сетка в две колонки */
body.site_s3 .catalog-detail #desc .content > table > tbody {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 56px;
}

/* строка: название ··········· значение */
body.site_s3 .catalog-detail #desc .content > table tr {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 9px 0;
	border: 0;
	background: none;
}

/* пунктир между названием и значением */
body.site_s3 .catalog-detail #desc .content > table tr::before {
	content: "";
	order: 2;
	flex: 1 1 auto;
	min-width: 24px;
	margin-bottom: 5px;
	border-bottom: 1px dashed var(--st-dots);
}

body.site_s3 .catalog-detail #desc .content > table :is(td, th) {
	display: block;
	width: auto !important;
	height: auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	font-size: inherit;
	line-height: inherit;
	text-align: left;
	vertical-align: baseline;
}

/* название */
body.site_s3 .catalog-detail #desc .content > table :is(td, th):first-child {
	order: 1;
	max-width: 62%;
	font-weight: 400;
	color: var(--st-label);
}

/* значение */
body.site_s3 .catalog-detail #desc .content > table :is(td, th):last-child:not(:first-child) {
	order: 3;
	text-align: right;
	color: var(--white_text_black);
	transition: color .15s ease;
}

body.site_s3 .catalog-detail #desc .content > table tr:hover :is(td, th):last-child:not(:first-child) {
	color: var(--theme-base-color);
}

/* строка из одной ячейки с текстом — подзаголовок группы на всю ширину */
body.site_s3 .catalog-detail #desc .content > table tr:has(> :is(td, th):only-child:not(:empty)) {
	grid-column: 1 / -1;
	padding: 18px 0 6px;
}
body.site_s3 .catalog-detail #desc .content > table tr:has(> :is(td, th):only-child:not(:empty))::before {
	display: none;
}
body.site_s3 .catalog-detail #desc .content > table tr > :is(td, th):only-child {
	max-width: none;
	font-weight: 600;
	color: var(--white_text_black);
}

/* пустые строки (например, <tr><td></td></tr> в конце) — скрываем */
body.site_s3 .catalog-detail #desc .content > table tr:not(:has(> :is(td, th):not(:empty))) {
	display: none;
}

/* --------------------------------------------------------------------------
   2. Вкладки карточки товара (Описание / Отзывы / Оплата / Доставка) — кнопками
   -------------------------------------------------------------------------- */

body.site_s3 .catalog-detail .tabs-block .tabs {
	--st-tab-bg: var(--card_bg_black);
	--st-tab-bg: color-mix(in srgb, var(--white_text_black) 6%, var(--black_bg_black));
	--st-tab-border: var(--stroke_black);
	--st-tab-border: color-mix(in srgb, var(--white_text_black) 13%, var(--black_bg_black));

	border-bottom: 0;
	margin-bottom: 28px;
}

body.site_s3 .catalog-detail .tabs-block .nav-tabs > li {
	margin: 3px 10px 3px 3px;
}

/* убираем подчёркивание Аспро */
body.site_s3 .catalog-detail .tabs-block .nav-tabs > li::before,
body.site_s3 .catalog-detail .tabs-block .nav-tabs > li::after {
	display: none !important;
}

body.site_s3 .catalog-detail .tabs-block .nav-tabs > li > a {
	display: block;
	padding: 11px 22px;
	border: 1px solid var(--st-tab-border);
	border-radius: var(--theme-outer-border-radius, 8px);
	background: var(--st-tab-bg);
	color: var(--basic_text_black);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

body.site_s3 .catalog-detail .tabs-block .nav-tabs > li:not(.active) > a:hover {
	border-color: var(--theme-base-color);
	color: var(--white_text_black);
}

body.site_s3 .catalog-detail .tabs-block .nav-tabs > li.active > a,
body.site_s3 .catalog-detail .tabs-block .nav-tabs > li.active > a:hover {
	background: var(--theme-base-color);
	border-color: var(--theme-base-color);
	color: #fff;
}

body.site_s3 .catalog-detail .tabs-block .nav-tabs > li > a:focus-visible {
	outline: 2px solid var(--theme-base-color);
	outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   4. Бренд в описании — ссылка на «эта категория + этот бренд» (см. custom.js)
   -------------------------------------------------------------------------- */

body.site_s3 .catalog-detail #desc .content a.st-brand-link {
	color: var(--theme-base-color);
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color .15s ease;
}

body.site_s3 .catalog-detail #desc .content a.st-brand-link:hover {
	text-decoration-style: solid;
}

body.site_s3 .catalog-detail #desc .content tr.st-brand-row :is(td, th):last-child {
	font-weight: 500;
}


/* --------------------------------------------------------------------------
   5. «есть / да» → галочка, «нет» → прочерк (классы ставит custom.js)
      Текст ячейки остаётся в разметке, на экране его заменяет значок.
   -------------------------------------------------------------------------- */

body.site_s3 .catalog-detail #desc .content > table :is(td, th).st-yes,
body.site_s3 .catalog-detail #desc .content > table :is(td, th).st-no {
	font-size: 0 !important;
	line-height: 0 !important;
	align-self: center;
}

body.site_s3 .catalog-detail #desc .content > table :is(td, th).st-yes::after {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	background-color: var(--theme-base-color);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.site_s3 .catalog-detail #desc .content > table :is(td, th).st-no::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 2px;
	margin: 9px 3px;
	border-radius: 1px;
	background-color: var(--st-label);
}



/* адаптив */
/* планшеты и телефоны — одна колонка */
@media (max-width: 767px) {
	body.site_s3 .catalog-detail .tabs-block .nav-tabs > li {
		margin-right: 6px;
	}
	body.site_s3 .catalog-detail .tabs-block .nav-tabs > li > a {
		padding: 9px 16px;
		font-size: 14px;
	}
	body.site_s3 .catalog-detail #desc .content > table {
		font-size: 14px;
	}
	body.site_s3 .catalog-detail #desc .content > table > tbody {
		grid-template-columns: minmax(0, 1fr);
	}
	body.site_s3 .catalog-detail #desc .content > table :is(td, th):first-child {
		max-width: 55%;
	}
	body.site_s3 .catalog-detail #desc .content > table:first-of-type::before {
		font-size: 20px;
	}
}


/* ==========================================================================
   Баннеры в списке товаров без картинки — текстовый баннер (разметку добавляет script.js)
   ========================================================================== */
body.site_s3 .banners-slider__item.st-text-banner {
	position: relative;
	min-height: 120px;
	background: var(--theme-base-color, #ED0007) !important;
}
body.site_s3 .banners-slider__item.st-text-banner > a {
	display: block;
	color: #fff;
	text-decoration: none;
}
body.site_s3 .st-tb {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 48px;
	color: #fff;
}
body.site_s3 .st-tb__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
body.site_s3 .st-tb__title { font-size: 24px; font-weight: 600; line-height: 1.2; }
body.site_s3 .st-tb__sub { font-size: 15px; line-height: 1.35; opacity: .9; }
body.site_s3 .st-tb__sub:empty { display: none; }
body.site_s3 .st-tb__btn {
	flex: none;
	padding: 11px 22px;
	border: 1.5px solid rgba(255, 255, 255, .75);
	border-radius: var(--theme-outer-border-radius, 8px);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}
body.site_s3 .st-text-banner a:hover .st-tb__btn { background: #fff; color: var(--theme-base-color, #ED0007); }
@media (max-width: 767px) {
	body.site_s3 .banners-slider__item.st-text-banner { min-height: 110px; }
	body.site_s3 .st-tb { padding: 16px 20px; }
	body.site_s3 .st-tb__title { font-size: 18px; }
	body.site_s3 .st-tb__sub { font-size: 13px; }
	body.site_s3 .st-tb__btn { display: none; }
}
