/* ============================================================
   Terra Game — основной CSS
   ============================================================ */

/* ============ ПЕРЕМЕННЫЕ ============ */
:root {
	--bg: #f7f8fb;
	--surface: #ffffff;
	--surface-2: #f1f3f8;
	--surface-3: #e9ecf3;
	--border: #e6e8ef;
	--border-hover: #d4d8e3;

	--text: #14161c;
	--text-muted: #6b7280;
	--text-dim: #9ca3af;
	
	--accent: #005efe;
	--accent-hover: #004dcf;
	--accent-soft: #eef2ff;
	--accent-2: #06b6d4;
	
	/*
	--accent: #4f46e5;
	--accent-hover: #4338ca;
	--accent-soft: #eef0ff;
	--accent-2: #06b6d4;
	*/

	--danger: #ef4444;
	--success: #10b981;
	--warning: #f59e0b;

	--radius: 6px;
	--radius-sm: 4px;
	--radius-lg: 8px;

	--shadow-sm: 0 1px 2px rgba(20, 22, 28, 0.04);
	--shadow: 0 4px 16px rgba(20, 22, 28, 0.06);
	--shadow-lg: 0 12px 40px rgba(20, 22, 28, 0.10);

	--transition: 0.2s ease;

	--container: 1280px;
	--container-pad: 24px;
}

/* ============ RESET ============ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
	border: 0;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--transition);
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
	color: inherit;
}

input,
textarea,
select {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

ul,
ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 700;
	line-height: 1.25;
}

p {
	margin: 0 0 12px;
}

p:last-child {
	margin-bottom: 0;
}

/* ============ КОНТЕЙНЕР ============ */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--container-pad);
	width: 100%;
}

/* ============ ТИПОГРАФИКА ============ */
.h1 {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.3px;
	margin: 0 0 15px;
}

.h2 {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.2px;
	margin: 24px 0 16px;
}

.h3 {
	font-size: 17px;
	font-weight: 700;
	margin: 20px 0 12px;
}

.h4 {
	font-size: 15px;
	font-weight: 700;
	margin: 16px 0 10px;
}

.h5 {
	font-size: 14px;
	font-weight: 700;
	margin: 12px 0 8px;
}

.hidden {
	display: none !important;
}

.center_align {
	text-align: center;
}

.nowrap {
	white-space: nowrap;
}

.fright {
	float: right;
}

.fleft {
	float: left;
}

.clearfix::after {
	content: '';
	display: table;
	clear: both;
}

.md-hidden {
	display: none;
}

/* ============ HEADER ============ */
.header {
	display: contents;
}

/* Верхняя полоса */
.header_top_bar {
	background: #14161c;
	border-bottom: 1px solid #14161c;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
}

.header_top_bar_inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 40px;
	gap: 24px;
}

.header_top_bar_left,
.header_top_bar_right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.header_top_bar_item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.7);
}

.header_top_bar_item svg {
	flex-shrink: 0;
	opacity: 0.7;
	color: rgba(255, 255, 255, 0.7);
}

a.header_top_bar_item:hover {
	color: #fff;
}

a.header_top_bar_item:hover svg {
	opacity: 1;
	color: #fff;
}

/* Основная шапка */
.header_main {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

.header_main_inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 76px;
}

#top_mobile {
	display: none;
	gap: 6px;
	flex-shrink: 0;
}

#top_control,
#top_search {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	transition: all var(--transition);
}

#top_control:hover,
#top_search:hover {
	background: var(--surface-2);
	color: var(--accent);
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	max-width: 220px;
}
.logo img {
	max-height: 42px;
	width: auto;
	display: block;
}

.logo {
	display: flex; align-items: center; gap: 10px;
	font-weight: 800; font-size: 20px;
	letter-spacing: -0.5px; flex-shrink: 0;
	max-width: 260px;
}
.logo-mark {
	width: 36px; height: 36px; border-radius: var(--radius);
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	display: flex; align-items: center; justify-content: center;
	color: white; font-size: 18px; font-weight: 800;
}
.logo-text small {
	display: block; font-size: 11px; font-weight: 500;
	color: var(--text-muted); letter-spacing: 0; margin-top: -2px;
}

/* Поиск */
.header_search {
	flex: 1;
	max-width: 520px;
	position: relative;
}

.header_search .search {
	position: relative;
	display: flex;
	align-items: center;
}

.header_search .search_input {
	width: 100%;
	height: 44px;
	background: var(--surface-2);
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	padding: 0 48px 0 16px;
	font-size: 14px;
	outline: none;
	transition: all var(--transition);
}

.header_search .search_input::placeholder {
	color: var(--text-dim);
}

.header_search .search_input:focus {
	background: var(--surface);
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.header_search .search_button {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--transition);
}

.header_search .search_button:hover {
	background: var(--accent-hover);
}

.header_search .button_search {
	display: none;
}

/* ============ ДЕЙСТВИЯ ШАПКИ (все иконки одинаковые) ============ */
.header_actions {
	display: flex;
	align-items: stretch;
	gap: 4px;
	margin-left: auto;
}

/* Общий стиль для всех элементов действий */
.header_action {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 8px 6px;
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	font-size: 11px;
	line-height: 1.1;
	transition: all var(--transition);
	text-decoration: none;
	cursor: pointer;

	/* Фиксированные размеры — все кнопки одинаковые */
	width: 78px;
	min-width: 78px;
	height: 60px;
	box-sizing: border-box;
}

.header_action:hover {
	background: var(--surface-2);
	color: var(--accent);
}

/* Иконка внутри .header_action */
.header_action > svg,
.header_action .wishlist_info > svg,
.header_action .comparison_info > svg,
.header_action .cart_info > svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	display: block;
}

/* Подписи */
.header_action_label,
.header_action .header_action_label {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 11px;
	line-height: 1.1;
	font-weight: 400;
	text-align: center;
}

/* ============ Информеры (избранное, сравнение, корзина) ============ */
.header_action .wishlist_info,
.header_action .comparison_info,
.header_action .cart_info {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
	position: relative;
}

.header_action .wishlist_info:hover,
.header_action .comparison_info:hover,
.header_action .cart_info:hover {
	color: var(--accent);
}

/* Счётчик — в правом верхнем углу иконки */
.header_action .informer_counter,
.header_action .cart_counter {
	position: absolute;
	top: -4px;
	right: -4px;
	background: var(--accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
	border: 2px solid var(--surface);
	line-height: 1;
	z-index: 2;
	box-sizing: border-box;
}

/* Пустой счётчик (0) — можно скрыть */
.header_action .cart_counter:empty,
.header_action .informer_counter:empty {
	display: none;
}

/* ============ Всплывающая корзина ============ */
.header_action .cart_content {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 8px;
	min-width: 260px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 16px;
	z-index: 200;
	text-align: left;
}

.header_action:hover .cart_content {
	display: block;
}

.header_action .informer_total {
	font-size: 14px;
	margin-bottom: 12px;
	color: var(--text);
}

.header_action .informer_total > span {
	color: var(--text-muted);
}

.header_action .cart_check {
	margin-top: 8px;
}

.header_action .cart_check .button {
	display: block;
	width: 100%;
	text-align: center;
	padding: 10px;
	background: var(--accent);
	color: #fff;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
}

.header_action .cart_check .button:hover {
	background: var(--accent-hover);
}

/* Нижняя полоса: каталог + меню */
.header_nav {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	position: relative;
}

.header_nav_inner {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 56px;
}

.catalog_wrapper {
	position: relative;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.catalog_btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	transition: background var(--transition);
	flex-shrink: 0;
	height: 40px;
	box-sizing: border-box;
}

.catalog_btn:hover {
	background: var(--accent-hover);
}

.catalog_btn svg.arrow_down_small {
	transition: transform var(--transition);
}

.catalog_wrapper.open .catalog_btn svg.arrow_down_small {
	transform: rotate(180deg);
}

/* ============ МЕГА-МЕНЮ КАТАЛОГА ============ */
.mega_menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	width: 1200px;
	max-width: calc(100vw - 48px);
	height: auto;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 20px 60px rgba(20, 22, 28, 0.15);
	padding: 20px 12px;
	display: none;
	z-index: 200;
	max-height: 620px;
	overflow-y: auto;
}

.catalog_wrapper.open .mega_menu {
	display: block;
}

.mega_menu_grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px 12px;
}

/* Колонка */
.mega_menu_col {
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	transition: background var(--transition);
	min-width: 0;
}

.mega_menu_col:hover {
	background: var(--surface-2);
}

/* Заголовок категории */
.mega_menu_head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
}

/* Картинка категории (если есть) */
.mega_menu_icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition: background var(--transition);
}

.mega_menu_icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 4px;
	box-sizing: border-box;
}

.mega_menu_col:hover .mega_menu_icon {
	background: var(--surface);
}

.mega_menu_title {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.2px;
	line-height: 1.3;
	transition: color var(--transition);
}

.mega_menu_title:hover {
	color: var(--accent);
}

/* Ссылки на подкатегории */
.mega_menu_links {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-left: 0;
	margin: 0;
}

.mega_menu_links a {
	display: block;
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.4;
	padding: 3px 0;
	transition: color var(--transition);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mega_menu_links a:hover {
	color: var(--accent);
}

/* «+ Ещё N» */
.mega_menu_more {
	color: var(--accent) !important;
	font-size: 12px !important;
	font-weight: 500;
}

.mega_menu_more:hover {
	color: var(--accent-hover) !important;
	text-decoration: underline;
}

/* Основное меню */
.main_menu {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1;
	overflow-x: auto;
	scrollbar-width: none;
}

.main_menu::-webkit-scrollbar {
	display: none;
}

.main_menu .menu_item {
	flex-shrink: 0;
}

.main_menu .menu_link {
	display: block;
	padding: 8px 14px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-weight: 500;
	color: var(--text-muted);
	white-space: nowrap;
	transition: all var(--transition);
}

.main_menu .menu_link:hover {
	background: var(--surface-2);
	color: var(--text);
}

.main_menu .menu_link.selected,
.main_menu .menu_link.active {
	background: var(--accent-soft);
	color: var(--accent);
}

/* Мобильное меню */
#mobile_nav {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 300px;
	max-width: 85vw;
	height: 100vh;
	background: var(--surface);
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
	z-index: 999;
	overflow-y: auto;
	padding: 24px 0;
	transform: translateX(-100%);
	transition: transform 0.25s ease;
}

#mobile_nav ul {
	padding: 0 20px;
}

#mobile_nav li {
	margin-bottom: 4px;
}

#mobile_nav a {
	display: block;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-weight: 500;
	color: var(--text);
	transition: all var(--transition);
}

#mobile_nav a:hover,
#mobile_nav a.selected {
	background: var(--accent-soft);
	color: var(--accent);
}

/* ============ СЛАЙДЕР (Slick) ============ */
.main_banner {
	margin: 24px 0 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	position: relative;
}

.main_banner .slick-slide {
	position: relative;
}

.main_banner .slick-slide img {
	width: 100%;
	height: auto;
	display: block;
}

/* ============ ОСНОВНАЯ ОБЛАСТЬ ============ */
.main {
	padding: 0 0 40px;
}

.main_row {
	margin-top: 20px;
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 20px;
	align-items: start;
}

/* Главная — без сайдбара, контент на всю ширину */
.main_row_full {
	display: block;
}

/* Скрываем пустой сайдбар на главной */
.main_sidebar_empty {
	display: none !important;
}

/* Сайдбар с контентом */
.main_sidebar {
	min-width: 0;
}

.main_content {
	min-width: 0;
}

/* ============ STICKY-ШАПКА ============ */
.header_sticky {
	position: sticky;
	position: -webkit-sticky;
	top: 0;
	z-index: 500;
	background: var(--surface);
	box-shadow: 0 1px 0 var(--border);
	width: 100%;
}

/* При прокрутке добавляет тень через JS (опционально) */
.header_sticky.is-scrolled {
	box-shadow: 0 4px 12px rgba(20, 22, 28, 0.08);
}
/* ============ САЙДБАР ============ */
.sidebar_block {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	margin-bottom: 16px;
}

.sidebar_heading {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--text);
	margin-bottom: 12px;
}

/* ============ ПРОСМОТРЕННЫЕ ТОВАРЫ (сайдбар) ============ */

/* Контейнер — вертикальный список */
.sidebar_browsed .browsed,
.sidebar_browsed .browsed_list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Карточка — горизонтальная строка */
.browsed_item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 8px;
	background: transparent;
	border: 0;
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: all var(--transition);
	position: relative;
}

.browsed_item:hover {
	background: var(--surface-2);
}

/* Картинка — квадрат 56×56 */
.browsed_image {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	/*background: var(--surface-2);*/
	border-radius: var(--radius-sm);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--transition);
}

.browsed_item:hover .browsed_image {
	background: var(--surface);
}

.browsed_image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 4px;
	box-sizing: border-box;
	transition: transform 0.3s var(--transition);
}

.browsed_item:hover .browsed_image img {
	transform: scale(1.08);
}

/* Информация справа */
.browsed_info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.browsed_name {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color var(--transition);
}

.browsed_item:hover .browsed_name {
	color: var(--accent);
}

/* Цена */
.browsed_price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 2px;
}

.browsed_price_current {
	font-size: 12px;
	font-weight: 700;
	color: var(--text);
	line-height: 1.1;
}

.browsed_price_old {
	font-size: 10px;
	color: var(--text-dim);
	text-decoration: line-through;
	line-height: 1.1;
}

/* Убираем декоративную полоску сверху (она была для карточек) */
.browsed_item::before {
	display: none;
}

/* Соцсети в сайдбаре */
.sidebar_social {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0;
	background: transparent;
	border: 0;
	margin-bottom: 16px;
}

.sidebar_social_link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 14px;
	color: #fff;
	transition: all var(--transition);
}

.sidebar_social_link svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.sidebar_social_link.vk {
	background: #4477a1;
}

.sidebar_social_link.vk:hover {
	background: #3a6690;
}

.sidebar_social_link.tg {
	background: #37afe2;
}

.sidebar_social_link.tg:hover {
	background: #1b92d1;
}

/* ============ КАТЕГОРИИ (навигация) ============ */
.catalog_nav {
	margin-bottom: 16px;
}

.catalog_heading {
	display: none;
	padding: 12px 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	justify-content: space-between;
	align-items: center;
}

.catalog_heading svg {
	transition: transform var(--transition);
}

.catalog_heading.active svg {
	transform: rotate(180deg);
}

.catalog_menu {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 8px;
}

.catalog_ul,
.submenu {
	margin: 0;
	padding: 0;
}

.submenu {
	padding-left: 12px;
	margin-top: 4px;
	display: none;
}

/* Раскрываем только когда у родителя есть класс .opened */
.catalog_item.parent.opened > .submenu {
	display: block;
}

.catalog_item {
	position: relative;
	margin-bottom: 2px;
}

.catalog_link {
	display: block;
	padding: 9px 40px 9px 12px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	color: var(--text);
	transition: all var(--transition);
}

.catalog_item:not(.parent) > .catalog_link {
	padding-right: 12px;
}

.catalog_link:hover {
	background: var(--surface-2);
	color: var(--accent);
}

.catalog_link.selected {
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 600;
}

.cat_switch {
	position: absolute;
	right: 6px;
	top: 7px;
	width: 28px;
	height: 28px;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--text-muted);
	transition: all var(--transition);
}

.cat_switch::before {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -2px;
	transition: transform 0.2s ease;
}

.cat_switch.active::before {
	transform: rotate(-135deg);
	margin-top: 2px;
}

.cat_switch:hover {
	background: var(--surface-2);
	color: var(--accent);
}

/* ============ ХЛЕБНЫЕ КРОШКИ ============ */
.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 0;
	margin: 0 0 20px;
	font-size: 13px;
	color: var(--text-muted);
}

.breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.breadcrumbs li:not(:last-child)::after {
	content: '/';
	color: var(--text-dim);
}

.breadcrumbs a {
	color: var(--text-muted);
}

.breadcrumbs a:hover {
	color: var(--accent);
}

.breadcrumbs li:last-child {
	color: var(--text);
	font-weight: 500;
}

/* ============ FOOTER ============ */
.footer {
	background: var(--surface);
	border-top: 1px solid var(--border);
	margin-top: 20px;
}

.footer_top {
	padding: 40px 0 0;
}

.footer_grid {
	display: grid;
	grid-template-columns: 1.3fr 1.6fr 0.7fr 1.2fr;
	gap: 40px;
	padding-bottom: 40px;
	align-items: start;
}

.footer_col {
	min-width: 0;
}

/* Колонка 1 — логотип + описание + соцсети */
.footer_logo {
	display: inline-block;
	margin-bottom: 14px;
}

.footer_logo img {
	max-height: 42px;
	width: auto;
	display: block;
}

.footer_about_text {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.6;
	margin-bottom: 16px;
	max-width: 280px;
}

.footer_social {
	display: flex;
	gap: 6px;
}

/* Заголовки колонок */
.footer_heading {
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 16px;
	line-height: 1.3;
	letter-spacing: -0.1px;
	text-transform: none;
}

.footer_heading_social {
	margin-top: 20px;
}

/* Меню */
.footer_menu li {
	margin-bottom: 8px;
}

.footer_menu a {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.5;
	transition: color var(--transition);
}

.footer_menu a:hover {
	color: var(--accent);
}

/* Соцсети */
.footer_social_link {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition);
	font-size: 0;
}

.footer_social_link svg {
	width: 20px;
	height: 20px;
	display: block;
}

.footer_social_link.vk:hover {
	background: #4477a1;
	color: #fff;
}

.footer_social_link.tg:hover {
	background: #37afe2;
	color: #fff;
}

.footer_social_link.fb:hover {
	background: #3b5998;
	color: #fff;
}

.footer_social_link.yt:hover {
	background: #ff0000;
	color: #fff;
}

.footer_social_link.dz:hover {
	background: #000;
	color: #fff;
}

/* Компактные соцсети в 4-й колонке */
.footer_social_compact {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.footer_social_compact .footer_social_link {
	width: 44px;
	height: 40px;
	background: var(--surface-2);
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.footer_social_compact .footer_social_link:hover {
	background: var(--accent);
	color: #fff;
}

/* Если иконка не SVG, а текст (VK, TG, YT, DZ) */
.footer_social_compact .footer_social_link svg {
	display: none;
}

.footer_social_compact .footer_social_link::before {
	content: attr(title);
}

/* Подписка */
#subscribe_container {
	position: relative;
	margin-bottom: 8px;
}

.subscribe_form {
	display: flex;
	gap: 8px;
}

.subscribe_input {
	flex: 1;
	height: 40px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: 13px;
	outline: none;
	transition: all var(--transition);
	min-width: 0;
}

.subscribe_input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.subscribe_button {
	padding: 0 20px;
	height: 40px;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	transition: background var(--transition);
	flex-shrink: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.subscribe_button:hover {
	background: var(--accent-hover);
}

#subscribe_error,
#fn_subscribe_sent {
	padding: 12px;
	text-align: center;
	font-size: 13px;
}

/* Нижняя полоса */
.footer_bottom {
	background: #14161c;
	border-top: 1px solid #14161c;
	padding: 16px 0;
}

.footer_bottom_inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
}

.footer_bottom_legal {
	color: rgba(255, 255, 255, 0.6);
}

/* ============ КНОПКА ВВЕРХ ============ */
.to_top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 48px;
	height: 48px;
	border-radius: var(--radius);
	background: var(--accent);
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
	z-index: 200;
	transition: all var(--transition);
}

.to_top:hover {
	background: var(--accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(79, 70, 229, 0.45);
}

.to_top svg {
	width: 48px;
	height: 48px;
}

/* ============ ОБЩИЕ КОМПОНЕНТЫ ============ */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-weight: 600;
	transition: all var(--transition);
	cursor: pointer;
	border: 1px solid transparent;
	white-space: nowrap;
	background: var(--accent);
	color: #fff;
}

.button:hover {
	background: var(--accent-hover);
}

.button.active_btn {
	background: var(--success);
}

.button.active_btn:hover {
	background: #059669;
}

.form_group {
	margin-bottom: 16px;
}

.form_input,
.form_textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: 14px;
	outline: none;
	transition: all var(--transition);
}

.form_input:focus,
.form_textarea:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.form_textarea {
	resize: vertical;
	min-height: 100px;
}

.form_input::placeholder,
.form_textarea::placeholder {
	color: var(--text-dim);
}

.message_error {
	padding: 12px 16px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: var(--radius-sm);
	color: #b91c1c;
	font-size: 14px;
	margin-bottom: 16px;
}

.message_success {
	padding: 12px 16px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: var(--radius-sm);
	color: #047857;
	font-size: 14px;
	margin-bottom: 16px;
}

.block {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	margin-top: 20px;
	margin-bottom: 20px;
}

.block.padding {
	padding: 20px;
}

.box {
	margin-bottom: 32px;
}

/* ============ ЗАГОЛОВКИ БЛОКОВ НА ГЛАВНОЙ ============ */
.box_heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 24px;
	padding: 0 0 14px;
	border-bottom: 2px solid var(--border);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.6px;
	line-height: 1.15;
	color: var(--text);
	position: relative;
}

.box_heading::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 80px;
	height: 2px;
	background: var(--accent);
}

.box_heading > span {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.box_heading > a {
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
	white-space: nowrap;
	flex-shrink: 0;
	transition: color var(--transition);
}

.box_heading > a:hover {
	color: var(--accent-hover);
}

.padding {
	padding: 0;
}

/* ============ ТОВАРЫ ============ */
.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

/* Если есть сайдбар — 3 колонки товаров */
.has_sidebar .products {
	grid-template-columns: repeat(3, 1fr);
}

/* То же — для блоков «Хиты продаж», «Новинки», «Скидки» (на всякий случай) */
.has_sidebar #featured_products .products,
.has_sidebar #new_products .products,
.has_sidebar #discounted_products .products {
	grid-template-columns: repeat(3, 1fr);
}

/* И для похожих товаров в карточке */
.has_sidebar .related {
	grid-template-columns: repeat(3, 1fr);
}

.product {
	min-width: 0;
}

/* ============================================================
   КАРТОЧКА ТОВАРА (.fn_product)
   ============================================================ */
.fn_product {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	height: 100%;
	transition: all var(--transition);
	overflow: hidden;
}

.fn_product > .padding {
	padding: 14px;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.fn_product .fn_transfer {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Картинка */
.fn_product .image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	overflow: hidden;
	margin-bottom: 12px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fn_product .preview_image {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

.fn_product .preview_img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.4s var(--transition);
}

.fn_product:hover .preview_img {
	transform: scale(1.04);
}

.fn_product .promo_img {
	position: absolute;
	top: 8px;
	left: 8px;
	max-width: 40px;
	max-height: 40px;
	z-index: 2;
}

/* Информация о товаре */
.fn_product .product_info {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

/* Рейтинг */
.fn_product .rating {
	height: 14px;
	margin-bottom: 6px;
	flex-shrink: 0;
}

.fn_product .rating_starOff {
	display: block;
	position: relative;
	width: 90px;
	height: 14px;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 14'><g fill='%23d4d8e3'><path d='M7 1l1.85 3.75 4.15.6-3 2.92.7 4.13L7 10.4 3.3 12.4l.7-4.13-3-2.92 4.15-.6z'/><path d='M27 1l1.85 3.75 4.15.6-3 2.92.7 4.13L27 10.4l-3.7 2 .7-4.13-3-2.92 4.15-.6z'/><path d='M47 1l1.85 3.75 4.15.6-3 2.92.7 4.13L47 10.4l-3.7 2 .7-4.13-3-2.92 4.15-.6z'/><path d='M67 1l1.85 3.75 4.15.6-3 2.92.7 4.13L67 10.4l-3.7 2 .7-4.13-3-2.92 4.15-.6z'/><path d='M87 1l1.85 3.75 4.15.6-3 2.92.7 4.13L87 10.4l-3.7 2 .7-4.13-3-2.92 4.15-.6z'/></g></svg>") no-repeat left center;
	background-size: 90px 14px;
}

.fn_product .rating_starOn {
	display: block;
	height: 14px;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 14'><g fill='%23f59e0b'><path d='M7 1l1.85 3.75 4.15.6-3 2.92.7 4.13L7 10.4 3.3 12.4l.7-4.13-3-2.92 4.15-.6z'/><path d='M27 1l1.85 3.75 4.15.6-3 2.92.7 4.13L27 10.4l-3.7 2 .7-4.13-3-2.92 4.15-.6z'/><path d='M47 1l1.85 3.75 4.15.6-3 2.92.7 4.13L47 10.4l-3.7 2 .7-4.13-3-2.92 4.15-.6z'/><path d='M67 1l1.85 3.75 4.15.6-3 2.92.7 4.13L67 10.4l-3.7 2 .7-4.13-3-2.92 4.15-.6z'/><path d='M87 1l1.85 3.75 4.15.6-3 2.92.7 4.13L87 10.4l-3.7 2 .7-4.13-3-2.92 4.15-.6z'/></g></svg>") no-repeat left center;
	background-size: 90px 14px;
	overflow: hidden;
}

/* Название */
.fn_product .product_name {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--text);
	margin: 0 0 8px;
	flex-shrink: 0;
	transition: color var(--transition);
}

.fn_product .product_name:hover {
	color: var(--accent);
}

.fn_product .annotation {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 8px;
	line-height: 1.4;
}

/* Цена — сразу под названием, без margin-top: auto */
.fn_product .price_container {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	margin: 0 0 12px;
	min-height: 24px;
	flex-shrink: 0;
}

.fn_product .price {
	font-size: 17px;
	font-weight: 800;
	color: var(--text);
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	line-height: 1.1;
}

.fn_product .old_price {
	font-size: 12px;
	color: var(--text-dim);
	text-decoration: line-through;
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
}

/* Форма с кнопкой прижимается к низу */
.fn_product .preview_form {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Кнопка «В корзину» */
.fn_product .button.fn_is_stock,
.fn_product .button.fn_is_preorder {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 10px 12px;
	margin: 0;
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: var(--radius-sm);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: all var(--transition);
	text-decoration: none;
}

.fn_product .button.fn_is_stock:hover,
.fn_product .button.fn_is_preorder:hover {
	background: var(--accent-hover);
}

.fn_product .button svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	display: block;
}

.fn_product .button.fn_is_stock span,
.fn_product .button.fn_is_preorder span {
	display: inline;
	color: #fff;
}

.fn_product .button.fn_is_stock a {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.fn_product .button.fn_is_stock.active_btn {
	background: var(--success);
}

.fn_product .button.fn_is_stock.active_btn:hover {
	background: #059669;
}

/* Селект варианта */
.fn_product .variant_select {
	display: block;
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: 12px;
	color: var(--text);
	outline: none;
	cursor: pointer;
	transition: border-color var(--transition);
}

.fn_product .variant_select:focus {
	border-color: var(--accent);
}

/* Нет в наличии */
.fn_product .no_stock {
	/*
	display: block;
	width: 100%;
	padding: 10px;
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
	*/
}

.fn_product .button.fn_not_preorder {
	background: var(--surface-2);
	color: var(--text-muted);
	cursor: default;
}

/* Кнопки сравнения / избранного — фиксированный размер */
.fn_product .add_buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-top: 0;
}

.fn_product .add_buttons a,
.fn_product .comparison_button,
.fn_product .wishlist_button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 34px;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--text-muted);
	transition: all var(--transition);
	text-decoration: none;
}

.fn_product .add_buttons a:hover,
.fn_product .comparison_button:hover,
.fn_product .wishlist_button:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

.fn_product .add_buttons a.selected,
.fn_product .comparison_button.selected,
.fn_product .wishlist_button.selected {
	background: var(--accent);
	color: #fff;
}

.fn_product .comparison_button::before,
.fn_product .wishlist_button::before {
	content: '';
	display: block;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--icon-url) center / contain no-repeat;
	mask: var(--icon-url) center / contain no-repeat;
}

.fn_product .comparison_button::before {
	--icon-url: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='10 8 6 12 10 16'/><polyline points='14 8 18 12 14 16'/><line x1='3' y1='12' x2='21' y2='12'/></svg>");
}

.fn_product .wishlist_button::before {
	--icon-url: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/></svg>");
}

.fn_product .add_buttons:empty {
	display: none;
}

/* Remove link */
.fn_product .remove_link {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	background: var(--danger);
	color: #fff;
	border-radius: var(--radius-sm);
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
	width: auto;
	height: auto;
}

.fn_product .remove_link:hover {
	background: #dc2626;
	color: #fff;
}

.fn_product .remove_link svg {
	width: 10px;
	height: 10px;
}

.fn_product .remove_link::before {
	display: none !important;
}

/* ============ СОРТИРОВКА И ВИД ============ */
.category_toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 10px;
	padding: 12px 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	flex-wrap: wrap;
}

.sort {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 13px;
}

.sort b {
	color: var(--text-muted);
	font-weight: 500;
}

.sort_link {
	padding: 6px 10px;
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	font-size: 13px;
	transition: all var(--transition);
}

.sort_link:hover {
	background: var(--surface-2);
	color: var(--accent);
}

.sort_link.active_up,
.sort_link.active_down {
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 600;
}

.sort_link.active_up::after {
	content: '↑';
	margin-left: 4px;
}

.sort_link.active_down::after {
	content: '↓';
	margin-left: 4px;
}

.view {
	display: flex;
	gap: 4px;
}

.view span {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all var(--transition);
}

.view span svg {
	width: 18px;
	height: 18px;
}

.view span:hover,
.view span.selected {
	background: var(--accent-soft);
	color: var(--accent);
}

/* ============================================================
   ВИД СПИСКОМ (переключатель grid/list)
   ============================================================ */

/* Контейнер с товарами в list-виде — одна колонка */
#products.list #fn_products_content,
#products.list .fn_categories {
	display: block;
}

/* Каждый товар — на всю ширину */
#products.list .product {
	margin-bottom: 12px;
	width: 100%;
}

/* Карточка товара — горизонтальная раскладка */
#products.list .fn_product.product-card {
	flex-direction: row;
	align-items: stretch;
	gap: 20px;
	padding: 16px;
	min-height: 160px;
}

/* Картинка слева — фиксированный размер */
#products.list .fn_product.product-card .product-image {
	width: 140px;
	height: 140px;
	flex: 0 0 140px;
	margin-bottom: 0;
	aspect-ratio: auto;
}

#products.list .fn_product.product-card .preview_image {
	padding: 8px;
}

/* Информация справа */
#products.list .fn_product.product-card .product-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	justify-content: space-between;
}

/* Платформа — как бейдж перед названием */
#products.list .fn_product.product-card .product-platform {
	font-size: 11px;
	margin-bottom: 4px;
}

/* Название — крупнее, чем в плитке */
#products.list .fn_product.product-card .product-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
	min-height: 0;
	-webkit-line-clamp: 2;
}

/* Аннотация — показываем в list-виде */
#products.list .fn_product.product-card .annotation {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-muted);
	margin-bottom: 12px;
}

/* Рейтинг — компактный */
#products.list .fn_product.product-card .product-rating {
	position: absolute;
	top: 16px;
	right: 16px;
	margin-bottom: 0;
}

/* Цена — крупная */
#products.list .fn_product.product-card .product-price {
	font-size: 20px;
	margin-bottom: 0;
	align-items: baseline;
	gap: 10px;
}

#products.list .fn_product.product-card .price-current {
	font-size: 20px;
}

#products.list .fn_product.product-card .price-old {
	font-size: 14px;
}

/* Форма с кнопкой — в правом нижнем углу */
#products.list .fn_product.product-card .preview_form {
	position: absolute;
	bottom: 16px;
	right: 16px;
	margin-top: 0;
	flex-direction: row;
	gap: 8px;
	align-items: center;
}

#products.list .fn_product.product-card .product-actions {
	margin-top: 0;
	gap: 8px;
}

/* Кнопка «В корзину» — фиксированная ширина */
#products.list .fn_product.product-card .btn-cart {
	flex: 0 0 auto;
	min-width: 180px;
	padding: 10px 20px;
	font-size: 14px;
}

/* Кнопка «Сравнить» — компактная */
#products.list .fn_product.product-card .btn-compare {
	width: 42px;
	flex: 0 0 42px;
	height: 42px;
}

/* Селект варианта — компактный, внизу слева */
#products.list .fn_product.product-card .variant_select {
	width: auto;
	max-width: 240px;
	margin-top: auto;
	margin-bottom: 0;
}

/* Внутренний контент карточки — на всю высоту */
#products.list .fn_product.product-card .product-info {
	padding-right: 300px;
	position: relative;
}

/* Позиционирование рейтинга и кнопок поверх padding-right */
#products.list .fn_product.product-card .product-rating,
#products.list .fn_product.product-card .preview_form {
	padding-right: 0;
}

/* Мобильный list-вид — возвращаем вертикальную раскладку */
@media (max-width: 991px) {
	/* Скрываем каталог категорий в сайдбаре на мобильном */
	.main_sidebar .catalog_nav,
	.main_sidebar .catalog_heading,
	.main_sidebar .catalog_menu {
		display: none !important;
	}
	
	#products.list .fn_product.product-card {
		flex-direction: column;
		padding: 14px;
		gap: 12px;
	}

	#products.list .fn_product.product-card .product-image {
		width: 100%;
		height: auto;
		flex: 0 0 auto;
		aspect-ratio: 1 / 1;
	}

	#products.list .fn_product.product-card .product-info {
		padding-right: 0;
	}

	#products.list .fn_product.product-card .product-rating {
		position: static;
		margin-bottom: 6px;
	}

	#products.list .fn_product.product-card .preview_form {
		position: static;
		flex-direction: column;
		margin-top: 12px;
	}

	#products.list .fn_product.product-card .btn-cart {
		flex: 1;
		width: 100%;
		min-width: 0;
	}

	#products.list .fn_product.product-card .btn-compare {
		width: 100%;
		flex: 1;
		height: 40px;
	}
}

/* ============ ПАГИНАЦИЯ ============ */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	margin: 20px 0 0;
	flex-wrap: wrap;
}

.page_item {
	display: inline-block;
}

.page_link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--radius-sm);
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 14px;
	font-weight: 500;
	transition: all var(--transition);
}

.page_link:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.page_item.active .page_link {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* ============ КАРТОЧКА ТОВАРА (полная страница) ============ */
#flypage {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	margin-bottom: 24px;
}

#flypage .row.fn_transfer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	margin-bottom: 24px;
}

/* ============================================================
   ЗАГОЛОВОК ТОВАРА — НА ВСЮ ШИРИНУ
   ============================================================ */
#flypage .product_h1 {
	display: block;
	width: 100%;
	margin: 0 0 13px;
	padding: 0 0 10px;
	border-bottom: 1px solid var(--border);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.4px;
	color: var(--text);
	text-align: left;
}

#flypage .product_h1 span {
	display: inline;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	line-height: inherit;
}

/* Убираем старый стиль `#product_info .h1` — он больше не нужен */
#product_info .h1 {
	font-size: 24px;
	margin-bottom: 12px;
}

/* ============================================================
   ГАЛЕРЕЯ ТОВАРА
   ============================================================ */

#product_gallery {
	min-width: 0;
	position: relative;
}

/* Главная картинка */
#product_gallery .product_image {
	position: relative;
	/*background: var(--surface-2);*/
	border-radius: var(--radius-sm);
	margin-bottom: 12px;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

#product_gallery .product_image a {
	display: block;
	width: 100%;
	height: 100%;
	padding: 16px;
	box-sizing: border-box;
}

#product_gallery .product_image img.fn_img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

#product_gallery .product_image .promo_img {
	position: absolute;
	top: 12px;
	left: 12px;
	max-width: 60px;
	z-index: 2;
}

/* ============================================================
   МИНИАТЮРЫ (Slick-слайдер)
   ============================================================ */
#product_gallery .fn_images {
	position: relative;
	margin: 0 0 16px;
	padding: 0 32px; /* отступы под стрелки */
}

/* Стрелки Slick — компактные, по краям */
#product_gallery .fn_images .slick-prev,
#product_gallery .fn_images .slick-next {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-muted);
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	padding: 0;
	display: flex !important;
	align-items: center;
	justify-content: center;
	transition: all var(--transition);
	box-shadow: var(--shadow-sm);
}

#product_gallery .fn_images .slick-prev {
	left: 0;
}

#product_gallery .fn_images .slick-next {
	right: 0;
}

#product_gallery .fn_images .slick-prev::before,
#product_gallery .fn_images .slick-next::before {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

#product_gallery .fn_images .slick-prev::before {
	transform: translateX(2px) rotate(-135deg);
}

#product_gallery .fn_images .slick-next::before {
	transform: translateX(-2px) rotate(45deg);
}

#product_gallery .fn_images .slick-prev:hover,
#product_gallery .fn_images .slick-next:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

#product_gallery .fn_images .slick-prev.slick-disabled,
#product_gallery .fn_images .slick-next.slick-disabled {
	opacity: 0.4;
	cursor: default;
	pointer-events: none;
}

/* Слайды — размер превью */
#product_gallery .fn_images .images_item {
	padding: 0 4px;
	box-sizing: border-box;
}

#product_gallery .fn_images .images_link {
	display: block;
	aspect-ratio: 1 / 1;
	/*background: var(--surface-2);*/
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	overflow: hidden;
	transition: all var(--transition);
	position: relative;
}

#product_gallery .fn_images .images_link:hover {
	border-color: var(--border-hover);
}

#product_gallery .fn_images .images_link img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 4px;
	box-sizing: border-box;
	transition: transform 0.3s var(--transition);
}

#product_gallery .fn_images .images_link:hover img {
	transform: scale(1.05);
}

/* Активная миниатюра (slick-current) — акцентная рамка */
#product_gallery .fn_images .slick-current .images_link {
	border-color: var(--accent);
}

/* Слайды, которых нет в видимой области — скрываем */
#product_gallery .fn_images .slick-slide {
	opacity: 1;
	transition: opacity var(--transition);
}

#product_info {
	min-width: 0;
}

#product_info .h1 {
	font-size: 24px;
	margin-bottom: 12px;
}

/* ============================================================
   СТРОКА С РЕЙТИНГОМ + КНОПКИ
   ============================================================ */
#product_info .product_rating_row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 10px;
	flex-wrap: wrap;
	justify-content: space-between;
}

#product_info .product_rating_row .product_rating {
	margin-bottom: 0;
	height: 18px;
}

#product_info .product_rating_row .add_buttons {
	display: flex;
	gap: 6px;
	margin: 0;
	align-items: center;
}

/* Кнопки «В сравнение» / «В избранное» */
#product_info .addbtn_card {
	display: flex;
	gap: 6px;
	margin: 0;
}

#product_info .addbtn_card .product_compare,
#product_info .addbtn_card .product_wish {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition);
	position: relative;
	text-decoration: none;
	flex-shrink: 0;
}

#product_info .addbtn_card .product_compare::before,
#product_info .addbtn_card .product_wish::before {
	content: '';
	display: block;
	width: 16px;
	height: 16px;
	background: currentColor;
}

#product_info .addbtn_card .product_compare::before {
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><path d='M3 6h18M3 12h18M3 18h18'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><path d='M3 6h18M3 12h18M3 18h18'/></svg>") center / contain no-repeat;
}

#product_info .addbtn_card .product_wish::before {
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/></svg>") center / contain no-repeat;
}

#product_info .addbtn_card .product_compare:hover,
#product_info .addbtn_card .product_wish:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

#product_info .addbtn_card .product_compare.selected,
#product_info .addbtn_card .product_wish.selected {
	background: var(--accent);
	color: #fff;
}

#product_info .product_rating .rating_starOff {
	display: block;
	position: relative;
	width: 100px;
	height: 18px;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 18'%3E%3Cg fill='%23d4d8e3'%3E%3Cpath d='M9 1l2.4 4.9 5.4.8-3.9 3.8.9 5.4L9 13.4 3.9 15.9l.9-5.4L.9 6.7l5.4-.8z'/%3E%3Cpath d='M29 1l2.4 4.9 5.4.8-3.9 3.8.9 5.4L29 13.4 23.9 15.9l.9-5.4L20.9 6.7l5.4-.8z'/%3E%3Cpath d='M49 1l2.4 4.9 5.4.8-3.9 3.8.9 5.4L49 13.4 43.9 15.9l.9-5.4L40.9 6.7l5.4-.8z'/%3E%3Cpath d='M69 1l2.4 4.9 5.4.8-3.9 3.8.9 5.4L69 13.4 63.9 15.9l.9-5.4L60.9 6.7l5.4-.8z'/%3E%3Cpath d='M89 1l2.4 4.9 5.4.8-3.9 3.8.9 5.4L89 13.4 83.9 15.9l.9-5.4L80.9 6.7l5.4-.8z'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 100px 18px;
	overflow: hidden;
}

#product_info .product_rating .rating_starOn {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	height: 18px;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 18'%3E%3Cg fill='%23f59e0b'%3E%3Cpath d='M9 1l2.4 4.9 5.4.8-3.9 3.8.9 5.4L9 13.4 3.9 15.9l.9-5.4L.9 6.7l5.4-.8z'/%3E%3Cpath d='M29 1l2.4 4.9 5.4.8-3.9 3.8.9 5.4L29 13.4 23.9 15.9l.9-5.4L20.9 6.7l5.4-.8z'/%3E%3Cpath d='M49 1l2.4 4.9 5.4.8-3.9 3.8.9 5.4L49 13.4 43.9 15.9l.9-5.4L40.9 6.7l5.4-.8z'/%3E%3Cpath d='M69 1l2.4 4.9 5.4.8-3.9 3.8.9 5.4L69 13.4 63.9 15.9l.9-5.4L60.9 6.7l5.4-.8z'/%3E%3Cpath d='M89 1l2.4 4.9 5.4.8-3.9 3.8.9 5.4L89 13.4 83.9 15.9l.9-5.4L80.9 6.7l5.4-.8z'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 100px 18px;
	overflow: hidden;
}

#product_info .details {
	margin-bottom: 20px;
	font-size: 14px;
	color: var(--text-muted);
}

#product_info .details > div {
	margin-bottom: 6px;
}

#product_info .details a {
	color: var(--accent);
	font-weight: 600;
}

#product_info .sku {
	font-size: 13px;
	color: var(--text-dim);
}
#product_info .sku .sku_nubmer {
	font-weight: 600;
	color: var(--text);
}

/* ============ АННОТАЦИЯ В КАРТОЧКЕ ТОВАРА ============ */
#product_info .product_annotation {
	margin: 10px 0 16px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--text-muted);
	display: -webkit-box;
	position: relative;
}

/* Перебиваем inline-стили из админки, если есть */
#product_info .product_annotation * {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
	font-size: 13px !important;
	line-height: 1.55 !important;
	color: var(--text-muted) !important;
	margin: 0 !important;
	padding: 0 !important;
}

#product_info .product_annotation p {
	margin: 0 0 6px !important;
}

#product_info .product_annotation p:last-child {
	margin-bottom: 0 !important;
}

/* Убираем списки, картинки — не нужны в аннотации */
#product_info .product_annotation ul,
#product_info .product_annotation ol,
#product_info .product_annotation img,
#product_info .product_annotation table {
	display: none !important;
}

/* Жирный внутри аннотации — умеренный */
#product_info .product_annotation strong,
#product_info .product_annotation b {
	font-weight: 600 !important;
	color: var(--text) !important;
}

/* Ссылки — не выглядят как основные */
#product_info .product_annotation a {
	color: var(--accent) !important;
	text-decoration: none;
}

#product_info .product_annotation a:hover {
	text-decoration: underline;
}

#product_info .available {
	font-size: 14px;
}

#product_info .available .in_stock {
	color: var(--success);
	font-weight: 600;
}

#product_info .available .no_stock {
	color: var(--danger);
	font-weight: 600;
}

#product_info .price_container {
	margin: 20px 0;
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

#product_info .price {
	font-size: 32px;
	font-weight: 800;
	color: var(--text);
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}

#product_info .old_price {
	font-size: 18px;
	color: var(--text-dim);
	text-decoration: line-through;
}

#product_info .info_discount {
	padding: 16px;
	background: #fef2f2;
	border-radius: var(--radius-sm);
	border: 1px solid #fecaca;
	width: 100%;
}

#product_info .info_discount .discount_name {
	font-size: 32px;
	color: var(--danger);
	font-weight: 800;
}

/* ============ БЛОК ПОКУПКИ (количество + кнопка) ============ */
#product_info .buttons_box {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	margin-top: 16px;
	flex-wrap: nowrap;
}

/* Селект варианта — на всю ширину строки сверху */
#product_info .variant_amount {
	display: flex;
	align-items: stretch;
	gap: 12px;
	flex: 1;
	min-width: 0;
	order: 1;
}

/* Кнопка — фиксированная, справа */
#product_info .buttons_box > .button,
#product_info .buttons_box > .fn_is_stock,
#product_info .buttons_box > .fn_is_preorder {
	flex: 1 1 auto;
	min-width: 180px;
	max-width: none;
	order: 2;
	padding: 14px 24px;
	font-size: 15px;
	height: 52px;
	border-radius: var(--radius-sm);
}

/* Количество — компактное, слева */
#product_info .fn_product_amount {
	display: flex;
	align-items: center;
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	overflow: hidden;
	flex: 0 0 auto;
	height: 48px;
}

#product_info .fn_product_amount .button {
	width: 40px;
	height: 48px;
	background: transparent;
	color: var(--text-muted);
	border: 0;
	font-size: 18px;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all var(--transition);
}

#product_info .fn_product_amount .button:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

#product_info .input_amount {
	width: 50px;
	height: 48px;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	outline: none;
}

/* Селект варианта — прижат к количеству */
#product_info .variant_select {
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 14px;
	background: var(--surface);
	outline: none;
	height: 48px;
	transition: border-color var(--transition);
}

#product_info .variant_select:focus {
	border-color: var(--accent);
}

/* Кнопка «В корзину» / «Предзаказ» */
#product_info .buttons_box > .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--accent);
	color: #fff;
	border: 0;
	height: 48px;
	cursor: pointer;
	font-weight: 600;
	transition: all var(--transition);
	white-space: nowrap;
	width: auto;
}

#product_info .buttons_box > .button:hover {
	background: var(--accent-hover);
}

#product_info .buttons_box > .button svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

#product_info .buttons_box > .button.active_btn {
	background: var(--success);
}

#product_info .buttons_box > .button.active_btn:hover {
	background: #059669;
}

/* Адаптив — на мобильных кнопки в столбик */
@media (max-width: 767px) {
	#product_info .buttons_box {
		flex-direction: column;
		gap: 10px;
	}

	#product_info .buttons_box > .button {
		min-width: 0;
		max-width: none;
		width: 100%;
		order: 1;
	}

	#product_info .variant_amount {
		order: 2;
		width: 100%;
	}

	#product_info .fn_product_amount {
		height: 44px;
	}

	#product_info .fn_product_amount .button,
	#product_info .input_amount {
		height: 44px;
	}

	#product_info .variant_select {
		height: 44px;
	}
}

/* Табы */
.tabs {
	margin-top: 24px;
}

.tab_navigation {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 20px;
	overflow-x: auto;
	scrollbar-width: none;
}

.tab_navigation::-webkit-scrollbar {
	display: none;
}

.tab_navigation a {
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-muted);
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	transition: all var(--transition);
	cursor: pointer;
}

.tab_navigation a:hover {
	color: var(--text);
}

.tab_navigation a.selected {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.tab_container .tab {
	display: none;
}

.tab_container .tab:first-child {
	display: block;
}

.product_description {
	font-size: 15px;
	line-height: 1.65;
	color: var(--text-muted);
}

/* ============ ХАРАКТЕРИСТИКИ (вкладка «Характеристики») ============ */
.features {
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface);
}

.features li {
	display: grid;
	grid-template-columns: minmax(160px, 240px) 1fr;
	gap: 20px;
	padding: 10px 16px;
	align-items: center;
	border-bottom: 1px solid var(--border);
	font-size: 14px;
	line-height: 1.4;
	background: transparent;
	transition: background var(--transition);
}

.features li:last-child {
	border-bottom: none;
}

.features li:nth-child(odd) {
	background: rgba(241, 243, 248, 0.5);
}

.features li:hover {
	background: var(--surface-2);
}

.features_name {
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	margin: 0;
	cursor: default;
}

.features_value {
	color: var(--text);
	font-weight: 500;
	font-size: 14px;
	line-height: 1.4;
	text-align: right;
	word-break: break-word;
}

/* Комментарии */
.comment_list {
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
}

.comment_list.admin_note {
	margin-left: 20px;
	border-left: 3px solid var(--border);
	padding-left: 16px;
}

.comment_header {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: baseline;
	margin-bottom: 8px;
	font-size: 14px;
}

.comment_header b {
	font-weight: 700;
}

.comment_header span {
	color: var(--text-dim);
	font-size: 13px;
}

.comment_content {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-muted);
}

.no_comments {
	padding: 20px;
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	text-align: center;
	color: var(--text-muted);
	font-size: 14px;
	margin-bottom: 20px;
}

/* Похожие товары */
.related {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.related.slick-initialized {
	display: block;
}

.related.slick-initialized .slick-slide {
	padding: 0 10px;
}

.related .slick-prev,
.related .slick-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
	z-index: 10;
	font-size: 0;
	transition: all var(--transition);
}

.related .slick-prev {
	left: -20px;
}

.related .slick-next {
	right: -20px;
}

.related .slick-prev:hover,
.related .slick-next:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* Блоки на главной (Хиты, Новинки, Скидки) */
#featured_products,
#new_products,
#discounted_products {
	margin-bottom: 32px;
}

#featured_products .products,
#new_products .products,
#discounted_products .products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

/* ============ КОРЗИНА ============ */
.purchase_list {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 20px;
}

.purchase_row {
	display: grid;
	grid-template-columns: 80px 1fr 120px 140px 120px 40px;
	gap: 16px;
	padding: 16px;
	align-items: center;
	border-bottom: 1px solid var(--border);
	font-size: 14px;
}

.purchase_row:last-child {
	border-bottom: none;
}

.purchase_row.head_row {
	background: var(--surface-2);
	font-weight: 600;
	font-size: 13px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.purchase_image img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
}

.purchase_name a {
	color: var(--text);
	font-weight: 500;
	display: block;
	margin-bottom: 4px;
}

.purchase_name a:hover {
	color: var(--accent);
}

.purchase_name i {
	font-size: 12px;
	color: var(--text-dim);
	font-style: normal;
}

.purchase_price,
.purchase_sum {
	font-weight: 600;
}

.purchase_sum {
	color: var(--text);
}

.purchase_amount .amount {
	display: flex;
	align-items: center;
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	overflow: hidden;
	width: fit-content;
}

.purchase_amount .amount span {
	width: 32px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--text-muted);
	transition: all var(--transition);
}

.purchase_amount .amount span:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

.purchase_amount .input_amount {
	width: 44px;
	height: 36px;
	border: 0;
	background: transparent;
	text-align: center;
	font-weight: 600;
	outline: none;
}

.purchase_remove a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	transition: all var(--transition);
}

.purchase_remove a:hover {
	background: #fef2f2;
	color: var(--danger);
}

.purchase_remove svg {
	width: 16px;
	height: 16px;
}

/* Итого */
.total_block {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	margin-bottom: 20px;
	max-width: 400px;
	margin-left: auto;
}

.total_row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 8px 0;
	font-size: 14px;
	border-bottom: 1px solid var(--border);
}

.total_row:last-child {
	border-bottom: none;
	padding-top: 16px;
	margin-top: 8px;
	border-top: 2px solid var(--border);
}

.total_name {
	color: var(--text-muted);
}

.total_sum {
	font-weight: 600;
	color: var(--text);
}

.total_row:last-child .total_name {
	font-weight: 700;
	color: var(--text);
	font-size: 15px;
}

.total_row:last-child .total_sum {
	font-size: 20px;
	font-weight: 800;
	color: var(--accent);
}

/* Купон */
.coupon {
	display: flex;
	gap: 8px;
	margin: 16px 0;
	max-width: 400px;
}

.coupon .input_coupon {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: 14px;
	outline: none;
}

.coupon .input_coupon:focus {
	border-color: var(--accent);
}

.coupon .coupon_button {
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background var(--transition);
}

.coupon .coupon_button:hover {
	background: var(--accent-hover);
}

/* Доставка и оплата */
.wrap_delivery_payment {
	margin-bottom: 24px;
}

.wrap_delivery {
	margin-bottom: 24px;
}

.delivery_block {
	display: grid;
	gap: 12px;
}

.delivery_list {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	transition: all var(--transition);
}

.delivery_list:hover {
	border-color: var(--border-hover);
}

.delivery_label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	font-size: 14px;
}

.delivery_label input[type="radio"] {
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: var(--accent);
}

.delivery_label img {
	max-width: 50px;
	max-height: 24px;
	object-fit: contain;
	flex-shrink: 0;
}

.delivery_name {
	font-weight: 500;
	color: var(--text);
}

.delivery_description {
	margin-top: 8px;
	padding-left: 28px;
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.55;
}

.delivery_label.active .delivery_name {
	color: var(--accent);
	font-weight: 600;
}

.cart_form {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	margin-top: 24px;
}

.cart_form .h2 {
	margin-top: 0;
}

/* ============ СТРАНИЦЫ ============ */
.page_payment_block {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	margin-bottom: 24px;
}

.page_payment_block .row {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 24px;
	padding: 20px 0;
	align-items: center;
	border-bottom: 1px solid var(--border);
}

.page_payment_block .row:last-child {
	border-bottom: none;
}

.page_payment_block .img {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
}

.page_payment_block .img img {
	max-width: 100%;
	max-height: 100px;
	object-fit: contain;
}

.page_payment_block .descr .title {
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 8px;
}

.page_payment_block .descr p {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.6;
}

.page_bottom_text {
	margin-top: 24px;
	padding: 20px;
	background: var(--surface-2);
	border-radius: var(--radius);
	font-size: 14px;
	color: var(--text-muted);
	text-align: center;
}

.page_bottom_text a {
	color: var(--accent);
	font-weight: 600;
	display: inline-block;
	margin-top: 8px;
}

/* Страница «О компании» */
.page_about_grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 24px 0;
}

.page_about_item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
}

.page_about_item h4 {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--text);
}

.page_about_item p {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.55;
}

.page_about_worktime {
	font-size: 16px;
	margin-top: 30px;
	margin-bottom: 10px;
}

.page_about_note {
	font-size: 14px;
}

/* Галерея на странице «О нас» */
.gallery {
	margin: 20px 0;
}

.gallery .main-image {
	width: 100%;
	object-fit: contain;
	border-radius: var(--radius);
	background: var(--surface-2);
	margin-bottom: 12px;
}

.gallery .thumbnails {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.gallery .thumbnail {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: opacity var(--transition);
	background: var(--surface-2);
}

.gallery .thumbnail:hover {
	opacity: 0.8;
}

/* ============ БЛОГ ============ */
.blog_list_wrap {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.blog_list {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 20px;
	padding: 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: all var(--transition);
}

.blog_list:hover {
	border-color: var(--border-hover);
	box-shadow: var(--shadow);
}

.blog_image {
	display: block;
	aspect-ratio: 1;
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.blog_image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--transition);
}

.blog_list:hover .blog_img {
	transform: scale(1.05);
}

.blog_name {
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 8px;
}

.blog_name a {
	color: var(--text);
}

.blog_name a:hover {
	color: var(--accent);
}

.blog_date {
	font-size: 13px;
	color: var(--text-dim);
	margin-bottom: 10px;
}

.blog_annotation {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.6;
}

/* Пост */
.post_content {
	font-size: 15px;
	line-height: 1.7;
	color: var(--text-muted);
	margin-bottom: 24px;
}

.post_content h2,
.post_content h3 {
	color: var(--text);
	margin: 24px 0 12px;
}

.social_post {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 16px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	margin: 24px 0;
	font-size: 14px;
	color: var(--text-muted);
}

/* ============ БРЕНДЫ ============ */
.brands_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.brand_list {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	text-align: center;
	transition: all var(--transition);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100px;
}

.brand_list:hover {
	border-color: var(--border-hover);
	box-shadow: var(--shadow);
}

.brand_link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-weight: 600;
	color: var(--text);
}

.brand_link img {
	max-width: 100%;
	max-height: 60px;
	object-fit: contain;
}

/* ============================================================
   СТРАНИЦА СРАВНЕНИЯ
   ============================================================ */
.comparison_content {
	display: grid;
	grid-template-columns: 200px 1fr;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	margin-top: 16px;
}

/* ============ ЛЕВАЯ КОЛОНКА — характеристики ============ */
.comparison_left {
	background: var(--surface-2);
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
}

.comparison_left .fn_resize {
	padding: 16px;
	border-bottom: 1px solid var(--border);
	min-height: 62px;
	display: flex;
	align-items: center;
}

.comparison_left .fn_show {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.comparison_left .fn_show a {
	padding: 5px 10px;
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: 12px;
	font-weight: 500;
	color: var(--text-muted);
	border: 1px solid var(--border);
	transition: all var(--transition);
	text-decoration: none;
}

.comparison_left .fn_show a:hover {
	color: var(--accent);
	border-color: var(--accent);
}

.comparison_left .fn_show a.active {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

.comparison_left .cprs_rating,
.comparison_left [class^="cprs_feature_"] {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	font-size: 13px;
	font-weight: 500;
	color: var(--text);
	display: flex;
	align-items: center;
	min-height: 46px;
	line-height: 1.3;
}

.comparison_left [class^="cprs_feature_"]:last-child {
	border-bottom: 0;
}

/* ============ ПРАВАЯ ЧАСТЬ — товары (сетка) ============ */
.fn_comparison_products {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(240px, 1fr);
	overflow-x: auto;
	overflow-y: hidden;
	background: var(--surface);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

/* Каждый товар — колонка */
.comparison_item {
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--border);
	min-width: 0;
	background: var(--surface);
}

.comparison_item:last-child {
	border-right: 0;
}

/* Верхняя часть с карточкой товара */
.comparison_item .fn_resize {
	padding: 12px;
	border-bottom: 1px solid var(--border);
	min-height: 62px;
}

.comparison_item .comparison_product {
	padding: 0;
}

/* ============================================================
   КАРТОЧКА ТОВАРА В СРАВНЕНИИ — упрощённая
   ============================================================ */
.comparison_item .fn_product.product-card {
	position: relative;
	border: 0;
	box-shadow: none;
	padding: 0;
	background: transparent;
	height: auto;
	min-height: auto;
	overflow: visible;
}

.comparison_item .fn_product.product-card:hover {
	transform: none;
	box-shadow: none;
	border-color: transparent;
}

/* Картинка — компактнее */
.comparison_item .fn_product.product-card .product-image {
	aspect-ratio: 1 / 1;
	margin-bottom: 10px;
	border-radius: var(--radius-sm);
}

.comparison_item .fn_product.product-card .preview_image {
	padding: 8px;
}

/* Бейджи — меньше */
.comparison_item .fn_product.product-card .product-badge {
	padding: 3px 8px;
	font-size: 10px;
	top: 8px;
}

.comparison_item .fn_product.product-card .badge-new {
	right: 8px;
}

.comparison_item .fn_product.product-card .badge-sale {
	left: 8px;
}

/* Платформа */
.comparison_item .fn_product.product-card .product-platform {
	font-size: 10px;
	margin-bottom: 4px;
}

/* Название — компактное */
.comparison_item .fn_product.product-card .product-title {
	font-size: 13px;
	line-height: 1.35;
	margin-bottom: 8px;
	min-height: 0;
	-webkit-line-clamp: 3;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Цена */
.comparison_item .fn_product.product-card .product-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 10px;
}

.comparison_item .fn_product.product-card .price-current {
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.comparison_item .fn_product.product-card .price-old {
	font-size: 11px;
}

/* Скрываем действия и кнопки — они не нужны в сравнении */
.comparison_item .fn_product.product-card .product-actions,
.comparison_item .fn_product.product-card .preview_form,
.comparison_item .fn_product.product-card .btn-cart,
.comparison_item .fn_product.product-card .btn-compare,
.comparison_item .fn_product.product-card .product-fav,
.comparison_item .fn_product.product-card .variant_select,
.comparison_item .fn_product.product-card .no_stock {
	display: none !important;
}

/* ============================================================
   РЕЙТИНГ ТОВАРА В СРАВНЕНИИ
   ============================================================ */
.comparison_item .cprs_rating {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	min-height: 46px;
	display: flex;
	align-items: center;
}

.comparison_item .cprs_rating .rating_starOff {
	display: block;
	position: relative;
	width: 90px;
	height: 16px;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 16'%3E%3Cg fill='%23d4d8e3'%3E%3Cpath d='M8 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L8 11.8 3.8 14l.8-4.7L1.2 6l4.7-.7z'/%3E%3Cpath d='M26 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L26 11.8 21.8 14l.8-4.7L19.2 6l4.7-.7z'/%3E%3Cpath d='M44 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L44 11.8 39.8 14l.8-4.7L37.2 6l4.7-.7z'/%3E%3Cpath d='M62 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L62 11.8 57.8 14l.8-4.7L55.2 6l4.7-.7z'/%3E%3Cpath d='M80 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L80 11.8 75.8 14l.8-4.7L73.2 6l4.7-.7z'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 90px 16px;
	overflow: hidden;
}

.comparison_item .cprs_rating .rating_starOn {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	height: 16px;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 16'%3E%3Cg fill='%23f59e0b'%3E%3Cpath d='M8 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L8 11.8 3.8 14l.8-4.7L1.2 6l4.7-.7z'/%3E%3Cpath d='M26 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L26 11.8 21.8 14l.8-4.7L19.2 6l4.7-.7z'/%3E%3Cpath d='M44 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L44 11.8 39.8 14l.8-4.7L37.2 6l4.7-.7z'/%3E%3Cpath d='M62 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L62 11.8 57.8 14l.8-4.7L55.2 6l4.7-.7z'/%3E%3Cpath d='M80 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L80 11.8 75.8 14l.8-4.7L73.2 6l4.7-.7z'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 90px 16px;
	overflow: hidden;
}

/* ============================================================
   ХАРАКТЕРИСТИКИ ТОВАРА
   ============================================================ */
.comparison_item [class^="cprs_feature_"] {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	font-size: 13px;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	min-height: 46px;
	line-height: 1.4;
}

.comparison_item [class^="cprs_feature_"]:last-child {
	border-bottom: 0;
}

/* ============ АДАПТИВ ============ */
@media (max-width: 991px) {
	.comparison_content {
		grid-template-columns: 1fr;
	}

	.comparison_left {
		border-right: 0;
		border-bottom: 1px solid var(--border);
	}

	.comparison_left .cprs_rating,
	.comparison_left [class^="cprs_feature_"] {
		display: none;
	}

	.comparison_left .fn_resize {
		border-bottom: 0;
	}

	.fn_comparison_products {
		grid-auto-columns: minmax(200px, 1fr);
	}
}

@media (max-width: 767px) {
	.fn_comparison_products {
		grid-auto-columns: minmax(180px, 1fr);
	}

	.comparison_item .fn_product.product-card .product-title {
		font-size: 12px;
	}

	.comparison_item .fn_product.product-card .price-current {
		font-size: 14px;
	}
}

/* ============ ФОРМЫ ЛОГИНА/РЕГИСТРАЦИИ ============ */
.auth_grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.auth_col {
	min-width: 0;
}

.regular_customer,
.new_customer {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	height: 100%;
}

.login_heading {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 20px;
}

.login_icon {
	width: 32px;
	height: 32px;
	color: var(--accent);
	flex-shrink: 0;
}

.login_buttons {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 16px;
}

.remind_pass {
	color: var(--accent);
	font-size: 14px;
}

.remind_pass:hover {
	text-decoration: underline;
}

.change_pass {
	color: var(--accent);
	cursor: pointer;
	font-size: 13px;
}

.change_pass:hover {
	text-decoration: underline;
}

/* ============ ВСПЛЫВАЮЩИЕ ОКНА ============ */
.popup {
	padding: 24px;
	max-width: 420px;
	background: var(--surface);
	border-radius: var(--radius);
}

.popup_header,
.popup_heading {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 20px;
	text-align: center;
}

#subscribe_container {
	position: relative;
}

#subscribe_error,
#fn_subscribe_sent {
	padding: 16px;
	text-align: center;
	font-size: 14px;
}

/* ============================================================
   ФИЛЬТРЫ (сайдбар)
   ============================================================ */

/* Заголовок «ФИЛЬТР» */
.side_heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--text);
	margin: 0 0 12px;
	padding: 0;
}

.side_heading .fn_subswitch {
	display: none;
}

/* Блок фильтров */
.side_block {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0;
	margin-bottom: 16px;
	overflow: hidden;
}

/* Группа фильтра — заголовок + контент */
.feature_name {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	padding: 12px 16px;
	margin: 0;
	border-top: 1px solid var(--border);
	background: var(--surface);
	cursor: pointer;
	user-select: none;
	transition: background var(--transition);
}

.feature_name:first-child {
	border-top: 0;
}

.feature_name:hover {
	background: var(--surface-2);
}

/* Стрелка раскрытия/закрытия */
.feature_name::after {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--text-muted);
	border-bottom: 2px solid var(--text-muted);
	transform: rotate(45deg);
	margin-top: -4px;
	transition: transform var(--transition);
	flex-shrink: 0;
}

.feature_name.collapsed::after {
	transform: rotate(-135deg);
	margin-top: 4px;
}

/* Содержимое фильтра */
.feature_content {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 12px 12px;
	border-top: 1px solid var(--border);
	background: var(--surface);
}

.feature_content.collapsed {
	display: none;
}

.feature_content.max-height {
	max-height: 220px;
	overflow-y: auto;
	padding-right: 8px;
	scrollbar-width: thin;
	scrollbar-color: var(--border-hover) transparent;
}

.feature_content.max-height::-webkit-scrollbar {
	width: 4px;
}

.feature_content.max-height::-webkit-scrollbar-thumb {
	background: var(--border-hover);
	border-radius: 2px;
}

.feature_content.max-height::-webkit-scrollbar-track {
	background: transparent;
}

/* ============ ПУНКТ ФИЛЬТРА (чекбокс + название) ============ */
.filter_item {
	font-size: 13px;
	line-height: 1.4;
}

.filter_link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	cursor: pointer;
	transition: all var(--transition);
	text-decoration: none;
	min-width: 0;
}

.filter_link:hover {
	background: var(--surface-2);
	color: var(--text);
}

.filter_link.checked {
	color: var(--accent);
	font-weight: 600;
}

/* Чекбокс — квадрат */
.check_indicator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	min-width: 16px;
	border: 1.5px solid var(--border-hover);
	border-radius: 4px;
	background: var(--surface);
	flex-shrink: 0;
	position: relative;
	transition: all var(--transition);
}

.filter_link:hover .check_indicator {
	border-color: var(--accent);
}

.filter_link.checked .check_indicator {
	background: var(--accent);
	border-color: var(--accent);
}

.filter_link.checked .check_indicator::after {
	content: '';
	position: absolute;
	top: 1px;
	left: 4px;
	width: 5px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Текст пункта */
.filter_link > span,
.filter_link > b {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ============ ФИЛЬТР ЦЕНЫ ============ */
.price_position {
	padding: 12px 16px;
	border-top: 1px solid var(--border);
}

.price_position:first-child {
	border-top: 0;
}

.price_position .feature_name {
	padding: 0 0 10px;
	border: 0;
	cursor: default;
	background: transparent;
}

.price_position .feature_name:hover {
	background: transparent;
}

.price_position .feature_name::after {
	display: none;
}

.price_position .feature_content {
	padding: 0;
	border: 0;
	background: transparent;
}

.price_position .clearfix {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 16px;
}

/* Поля ввода цены */
.min_input,
.max_input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: 13px;
	font-weight: 500;
	color: var(--text);
	outline: none;
	text-align: center;
	transition: all var(--transition);
	-webkit-appearance: none;
	appearance: none;
	-moz-appearance: textfield;
}

.min_input::-webkit-outer-spin-button,
.min_input::-webkit-inner-spin-button,
.max_input::-webkit-outer-spin-button,
.max_input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.min_input:focus,
.max_input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Слайдер */
#fn_slider_price {
	height: 4px;
	background: var(--surface-2);
	border-radius: 2px;
	margin: 12px 8px 0;
	position: relative;
}

#fn_slider_price .ui-slider-range {
	background: var(--accent);
	border-radius: 2px;
}

#fn_slider_price .ui-slider-handle {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--surface);
	border: 2px solid var(--accent);
	top: 50%;
	transform: translateY(-50%);
	cursor: grab;
	outline: none;
	margin-left: -10px;
	box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
	transition: box-shadow var(--transition), transform var(--transition);
}

#fn_slider_price .ui-slider-handle:hover,
#fn_slider_price .ui-slider-handle.ui-state-focus {
	box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.15);
}

#fn_slider_price .ui-slider-handle:active {
	cursor: grabbing;
	transform: translateY(-50%) scale(1.1);
}

/* ============ ФИЛЬТР ПО АЛФАВИТУ ============ */
.alphabet_filter_wrap {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
}

.fn_alphabet_container {
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color var(--transition);
}

.fn_alphabet_container::before {
	content: '';
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -3px;
	transition: transform var(--transition);
}

.fn_alphabet_container.active::before {
	transform: rotate(-135deg);
	margin-top: 3px;
}

.fn_alphabet_container:hover {
	color: var(--accent);
}

.alphabet_filter {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 12px 14px;
	margin-bottom: 16px;
	display: none; /* ← скрыт по умолчанию */
}

.alphabet_filter.active {
	display: block;
}

.alphabet_container {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.alphabet,
.alphabet_ru {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text);
	text-decoration: none;
	transition: all var(--transition);
	line-height: 1;
}

.alphabet:hover,
.alphabet_ru:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

.alphabet.disabled,
.alphabet_ru.disabled {
	color: var(--text-dim);
	cursor: default;
	opacity: 0.5;
}

.alphabet.strong,
.alphabet_ru.strong {
	font-weight: 800;
}

.alphabet_divider {
	width: 100%;
	height: 1px;
	background: var(--border);
	margin: 8px 0;
}

/* ============ АДАПТИВ ============ */
@media (max-width: 991px) {
	.side_heading {
		font-size: 14px;
	}

	.feature_name {
		padding: 10px 14px;
		font-size: 13px;
	}

	.feature_content {
		padding: 6px 10px 10px;
	}

	.filter_link {
		padding: 5px 6px;
		font-size: 12px;
	}
}

/* ============ СОЦСЕТИ в карточке товара (мобильные) ============ */
.sidebar_social_mobile {
	display: none;
	margin-top: 15px;
}

.sidebar_social_mobile a {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	min-height: 44px;
	font-size: 15px;
	padding: 10px 14px;
	margin-bottom: 8px;
	color: #fff;
	border-radius: var(--radius-sm);
	transition: all var(--transition);
}

.sidebar_social_mobile a:last-child {
	margin-bottom: 0;
}

.sidebar_social_mobile svg {
	width: 22px;
	height: 22px;
}

.sidebar_social_mobile .vk {
	background: #4477a1;
}

.sidebar_social_mobile .fb {
	background: #3b5998;
}

/* ============================================================
   КАРТА КОНТАКТОВ на главной
   ============================================================ */
.map_contacts {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 0;
	margin: 40px 0 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	min-height: 500px;
	max-height: 600px;
}

/* Левая колонка — контакты */
.map_contacts_info {
	padding: 28px 24px;
	background: var(--surface);
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.map_contacts_head h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 20px;
	color: var(--text);
	letter-spacing: -0.2px;
}

.map_contacts_body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1;
}

.map_contacts_item {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.map_contacts_title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--text);
	margin: 0;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.map_contacts_properties {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.map_contacts_prop {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.map_contacts_prop_title {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--text-dim);
	line-height: 1.2;
}

.map_contacts_prop_value {
	font-size: 14px;
	color: var(--text);
	line-height: 1.5;
	font-weight: 500;
}

.map_contacts_prop_value .dim {
	color: var(--text-dim);
	font-weight: 400;
}

.map_contacts_prop_value a {
	color: var(--text);
	font-weight: 600;
	transition: color var(--transition);
}

.map_contacts_prop_value a:hover {
	color: var(--accent);
}

/* Правая колонка — карта */
.map_contacts_frame {
	position: relative;
	background: var(--surface-2);
	overflow: hidden;
	min-height: 500px;
}

.map_contacts_frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	min-height: 500px;
}

/* Адаптив */
@media (max-width: 991px) {
	.map_contacts {
		grid-template-columns: 1fr;
		min-height: auto;
		max-height: none;
		margin-top: 32px;
	}

	.map_contacts_info {
		border-right: 0;
		border-bottom: 1px solid var(--border);
		padding: 24px 20px;
	}

	.map_contacts_frame {
		min-height: 400px;
	}

	.map_contacts_frame iframe {
		min-height: 400px;
	}
}

@media (max-width: 767px) {
	.map_contacts_info {
		padding: 20px 16px;
	}

	.map_contacts_head h3 {
		font-size: 16px;
		margin-bottom: 16px;
	}

	.map_contacts_frame {
		min-height: 320px;
	}

	.map_contacts_frame iframe {
		min-height: 320px;
	}
}

/* ============ БЛОК ПРЕИМУЩЕСТВ ============ */
.attendance {
	margin: 40px 0;
}

.attendance_grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

.attendance_box {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px 16px;
	text-align: center;
	transition: all var(--transition);
	height: 100%;
}

.attendance_box:hover {
	border-color: var(--border-hover);
	box-shadow: var(--shadow);
}

.attendance_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.attendance_icon svg {
	width: 64px;
	height: 64px;
}

.attendance_title {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--text);
	line-height: 1.3;
}

.attendance_description {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.5;
}

/* ============ ОБЩИЕ АНИМАЦИИ ============ */
.fn_ajax_wait {
	position: relative;
	min-height: 60px;
}

/* ============ SEO-БЛОК на главной ============ */
.main_page_description {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	margin: 32px 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--text-muted);
}

.main_page_description h2,
.main_page_description h3 {
	color: var(--text);
	margin: 20px 0 12px;
}

/* ============ АДАПТИВ (в responsive.css) ============ */

/* Медиа-запрос для картинки главной */
@media (max-width: 991px) {
	.main_page_description {
		padding: 20px;
	}
}

/* Скрытие блоков на мобильных */
@media (max-width: 767px) {
	.mobile-hidden {
		display: none !important;
	}

	.sidebar_social_mobile {
		display: block;
	}
}

/* ============================================================
   ПРЕВЬЮ ТОВАРА — ФИНАЛЬНЫЕ СТИЛИ ПОД МАКЕТ
   Применяются на главной, в каталоге, в избранном/сравнении
   ============================================================ */

.fn_product.product-card {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: all var(--transition);
	overflow: hidden;
}

.fn_product.product-card:hover {
	border-color: var(--border-hover);
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

/* Убираем старые .padding / .fn_transfer, они больше не нужны */
.fn_product.product-card > .padding,
.fn_product.product-card .fn_transfer {
	display: contents;
}

/* ============ IMAGE ============ */
.fn_product.product-card .product-image {
	position: relative;
	aspect-ratio: 1 / 1;
	/*background: var(--surface-2);*/
	border-radius: var(--radius-sm);
	overflow: hidden;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.fn_product.product-card .preview_image {
	display: block;
	width: 100%;
	height: 100%;
	padding: 12px;
	box-sizing: border-box;
}

.fn_product.product-card .preview_img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.4s var(--transition);
}

.fn_product.product-card:hover .preview_img {
	transform: scale(1.05);
}

.fn_product.product-card .promo_img {
	position: absolute;
	top: 8px;
	left: 8px;
	max-width: 40px;
	max-height: 40px;
	z-index: 2;
}

/* ============ BADGES ============ */
.fn_product.product-card .product-badge {
	position: absolute;
	top: 10px;
	padding: 4px 10px;
	border-radius: var(--radius-sm);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	z-index: 3;
	letter-spacing: 0.3px;
}

.fn_product.product-card .badge-sale {
	left: 10px;
	background: var(--danger);
	color: #fff;
}

.fn_product.product-card .badge-new {
	right: 10px;
	background: var(--accent);
	color: #fff;
	left: auto;
}

/* ============ WISHLIST (сердце на картинке) ============ */
.fn_product.product-card .product-fav {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	transition: all var(--transition);
	z-index: 3;
	opacity: 0;
	cursor: pointer;
}

/* Если badge-new есть, сердце сдвигаем ниже */
.fn_product.product-card .badge-new ~ .product-fav,
.fn_product.product-card .badge-sale ~ .product-fav {
	top: 48px;
}

.fn_product.product-card:hover .product-fav {
	opacity: 1;
}

.fn_product.product-card .product-fav:hover {
	color: var(--danger);
	background: #fff;
}

.fn_product.product-card .product-fav.selected {
	color: var(--danger);
	background: #fff;
	opacity: 1;
}

.fn_product.product-card .product-fav::before {
	content: '';
	display: block;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/></svg>") center / contain no-repeat;
}

/* ============ INFO ============ */
.fn_product.product-card .product-info {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.fn_product.product-card .product-platform {
	font-size: 11px;
	font-weight: 700;
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-bottom: 6px;
	line-height: 1.2;
}

/* ============ RATING (звёзды через SVG) ============ */
.fn_product.product-card .product-rating {
	height: 16px;
	margin-bottom: 8px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.fn_product.product-card .rating_starOff {
	display: block;
	position: relative;
	width: 90px;
	height: 16px;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 16'%3E%3Cg fill='%23d4d8e3'%3E%3Cpath d='M8 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L8 11.8 3.8 14l.8-4.7L1.2 6l4.7-.7z'/%3E%3Cpath d='M26 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L26 11.8 21.8 14l.8-4.7L19.2 6l4.7-.7z'/%3E%3Cpath d='M44 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L44 11.8 39.8 14l.8-4.7L37.2 6l4.7-.7z'/%3E%3Cpath d='M62 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L62 11.8 57.8 14l.8-4.7L55.2 6l4.7-.7z'/%3E%3Cpath d='M80 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L80 11.8 75.8 14l.8-4.7L73.2 6l4.7-.7z'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 90px 16px;
	overflow: hidden;
}

.fn_product.product-card .rating_starOn {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	height: 16px;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 16'%3E%3Cg fill='%23f59e0b'%3E%3Cpath d='M8 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L8 11.8 3.8 14l.8-4.7L1.2 6l4.7-.7z'/%3E%3Cpath d='M26 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L26 11.8 21.8 14l.8-4.7L19.2 6l4.7-.7z'/%3E%3Cpath d='M44 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L44 11.8 39.8 14l.8-4.7L37.2 6l4.7-.7z'/%3E%3Cpath d='M62 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L62 11.8 57.8 14l.8-4.7L55.2 6l4.7-.7z'/%3E%3Cpath d='M80 1l2.1 4.3 4.7.7-3.4 3.3.8 4.7L80 11.8 75.8 14l.8-4.7L73.2 6l4.7-.7z'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 90px 16px;
	overflow: hidden;
	transition: width 0.2s ease;
}

.fn_product.product-card .product-title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--text);
	margin-bottom: 12px;
	min-height: 38px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color var(--transition);
	flex-shrink: 0;
}

.fn_product.product-card .product-title:hover {
	color: var(--accent);
}

/* ============ АННОТАЦИЯ В ПРЕВЬЮ ТОВАРА ============ */
.fn_product.product-card .annotation {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.45;
	color: var(--text-muted);
	margin-bottom: 10px;
	max-height: 35px; /* 12px * 1.45 * 2 ≈ 35px */
	word-break: break-word;
}

/* Перебиваем inline-стили из админки */
.fn_product.product-card .annotation * {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
	font-size: 12px !important;
	line-height: 1.45 !important;
	color: var(--text-muted) !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Убираем отступы у параграфов внутри аннотации */
.fn_product.product-card .annotation p {
	margin: 0 !important;
	display: inline;
}

.fn_product.product-card .annotation p + p {
	margin-top: 4px !important;
}

/* Скрываем всё, что может вылезать (картинки, списки, ссылки-кнопки) */
.fn_product.product-card .annotation img,
.fn_product.product-card .annotation ul,
.fn_product.product-card .annotation ol,
.fn_product.product-card .annotation table,
.fn_product.product-card .annotation blockquote {
	display: none !important;
}

/* ============================================================
   СТРАНИЦА 404
   ============================================================ */

/* Обёртка — сетка из 2 колонок */
.page_404 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	padding: 40px 0;
	max-width: 1000px;
	margin: 0 auto;
	text-align: left;
}

/* Все прямые потомки — снимаем float и ширины от Bootstrap */
.page_404 > * {
	float: none !important;
	width: auto !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	text-align: center;
}

/* Первая колонка (404) */
.page_404 > *:first-child {
	text-align: center;
}

/* Вторая колонка (ссылки) */
.page_404 > *:nth-child(2) {
	text-align: left;
}

/* Снимаем все inline font-size */
.page_404 * {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
	color: inherit !important;
}

/* Цифра 404 */
.page_404 span[style*="font-size: 150px"],
.page_404 span[style*="font-size:150px"] {
	font-size: 120px !important;
	line-height: 1 !important;
	font-weight: 800 !important;
	color: var(--accent) !important;
	display: block;
	margin-bottom: 12px;
	letter-spacing: -4px;
}

/* Заголовок «Страница не найдена» внутри 404 */
.page_404 span[style*="font-size: 36pt"],
.page_404 span[style*="font-size:36pt"] {
	font-size: 22px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	color: var(--text) !important;
	display: block;
}

/* «Попробуйте посмотреть еще:» */
.page_404 span[style*="font-size: 18pt"],
.page_404 span[style*="font-size:18pt"] {
	font-size: 15px !important;
	line-height: 1.5 !important;
	color: var(--text-muted) !important;
	display: block;
	margin-bottom: 20px;
	text-align: center;
}

/* Ссылки (главная, блог, оплата, доставка, контакты) */
.page_404 span[style*="font-size: 24pt"],
.page_404 span[style*="font-size:24pt"] {
	font-size: 16px !important;
	line-height: 1.5 !important;
	font-weight: 600 !important;
	display: block;
	margin-bottom: 8px;
	text-align: center;
}

.page_404 span[style*="font-size: 24pt"] a,
.page_404 span[style*="font-size:24pt"] a {
	color: var(--accent) !important;
	transition: color var(--transition);
	display: inline-block;
	padding: 6px 12px;
	border-radius: var(--radius-sm);
}

.page_404 span[style*="font-size: 24pt"] a:hover,
.page_404 span[style*="font-size:24pt"] a:hover {
	background: var(--accent-soft);
	color: var(--accent-hover) !important;
}

/* Все остальные div'ы внутри 404 — центрируем */
.page_404 > div > div {
	text-align: center !important;
	margin-bottom: 8px;
}

/* Блок с «&nbsp;» (пустые) — не занимает места */
.page_404 div:empty,
.page_404 div:has(> span:empty),
.page_404 .clearfix {
	display: none !important;
}

/* Убираем лишние пустые span'ы с &nbsp; */
.page_404 span:empty {
	display: none !important;
}

/* Адаптив */
@media (max-width: 767px) {
	.page_404 {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 24px 0;
	}

	.page_404 span[style*="font-size: 150px"],
	.page_404 span[style*="font-size:150px"] {
		font-size: 80px !important;
	}
}

@media (max-width: 480px) {
	.page_404 span[style*="font-size: 150px"],
	.page_404 span[style*="font-size:150px"] {
		font-size: 64px !important;
	}
}

/* ============ PRICE ============ */
.fn_product.product-card .product-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 12px;
	flex-wrap: wrap;
	flex-shrink: 0;
	min-height: 24px;
}

.fn_product.product-card .price-current {
	font-size: 18px;
	font-weight: 800;
	color: var(--text);
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	line-height: 1.1;
}

.fn_product.product-card .price-old {
	font-size: 13px;
	color: var(--text-dim);
	text-decoration: line-through;
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
}

/* ============ FORM ============ */
.fn_product.product-card .preview_form {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fn_product.product-card .variant_select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: 12px;
	color: var(--text);
	outline: none;
	cursor: pointer;
	transition: border-color var(--transition);
}

.fn_product.product-card .variant_select:focus {
	border-color: var(--accent);
}

/* ============ ACTIONS (кнопка + сравнение) ============ */
.fn_product.product-card .product-actions {
	display: flex;
	gap: 8px;
	align-items: stretch;
	margin-top: auto;
}

/* Кнопка «В корзину» — светлая по умолчанию, синяя при hover */
.fn_product.product-card .btn-cart {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 12px;
	background: var(--accent-soft);
	color: var(--accent);
	border: 0;
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: all var(--transition);
	text-decoration: none;
	white-space: nowrap;
}

.fn_product.product-card .btn-cart:hover {
	background: var(--accent);
	color: #fff;
}

.fn_product.product-card .btn-cart svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	display: block;
	fill: currentColor;
}

/* Товар УЖЕ в корзине — кнопка зелёная */
.fn_product.product-card .btn-cart.active_btn {
	background: var(--success);
	color: #fff;
}

.fn_product.product-card .btn-cart.active_btn:hover {
	background: #059669;
	color: #fff;
}

/* Preorder — тоже светлая */
.fn_product.product-card .button.fn_is_preorder {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 12px;
	background: var(--accent-soft);
	color: var(--accent);
	border: 0;
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: all var(--transition);
	text-decoration: none;
	white-space: nowrap;
}

.fn_product.product-card .button.fn_is_preorder:hover {
	background: var(--accent);
	color: #fff;
}

.fn_product.product-card .button.fn_is_preorder svg, 
.fn_product.product-card .button.fn_is_preorder svg path {
	fill: currentColor;
}

/* Кнопка «Сравнить» — тоже светлая, но по hover становится акцентной */
.fn_product.product-card .btn-compare {
	position: relative;
	width: 40px;
	flex: 0 0 40px;
	height: auto;
	min-height: 40px;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition);
	text-decoration: none;
}

.fn_product.product-card .btn-compare:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

/* Товар уже в сравнении — синяя */
.fn_product.product-card .btn-compare.selected {
	background: var(--accent);
	color: #fff;
}

.fn_product.product-card .btn-compare::before {
	content: '';
	display: block;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><path d='M3 6h18M3 12h18M3 18h18'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><path d='M3 6h18M3 12h18M3 18h18'/></svg>") center / contain no-repeat;
}

/* Нет в наличии */
.fn_product.product-card .no_stock {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 10px 12px;
	background: var(--surface-2);
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 600;
	color: var(--text-muted);
	text-align: center;
}

/* Убираем старую .add_buttons, если где-то осталась */
.fn_product.product-card .add_buttons {
	display: contents;
}

/* ============================================================
   ОПИСАНИЕ ТОВАРА — перебиваем inline-стили из админки
   ============================================================ */

/* Базовый текст описания */
.tab.product_description {
	font-size: 15px;
	line-height: 1.7;
	color: var(--text-muted);
}

/* Все вложенные элементы — наследуют наш шрифт и цвет */
.tab.product_description * {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
	color: inherit;
}

/* Абзацы */
.tab.product_description p {
	margin: 0 0 14px;
	font-size: 15px !important;
	line-height: 1.7;
}

.tab.product_description p:last-child {
	margin-bottom: 0;
}

/* Заголовки h4 (как «Особенности игры:») */
.tab.product_description h4 {
	font-size: 18px !important;
	font-weight: 700;
	line-height: 1.3;
	color: var(--text) !important;
	margin: 24px 0 14px;
	letter-spacing: -0.2px;
}

.tab.product_description h4:first-child {
	margin-top: 0;
}

.tab.product_description h3 {
	font-size: 20px !important;
	font-weight: 700;
	color: var(--text) !important;
	margin: 28px 0 14px;
}

.tab.product_description h2 {
	font-size: 22px !important;
	font-weight: 700;
	color: var(--text) !important;
	margin: 28px 0 14px;
}

.tab.product_description h5,
.tab.product_description h6 {
	font-size: 16px !important;
	font-weight: 700;
	color: var(--text) !important;
	margin: 20px 0 10px;
}

/* Списки */
.tab.product_description ul,
.tab.product_description ol {
	margin: 0 0 16px;
	padding-left: 0;
	list-style: none;
}

.tab.product_description ul li,
.tab.product_description ol li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 14px;
	font-size: 15px !important;
	line-height: 1.7;
	color: var(--text-muted);
	list-style: none;
}

/* Свои маркеры для UL */
.tab.product_description ul li::before {
	content: '';
	position: absolute;
	left: 6px;
	top: 10px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
}

/* Свои маркеры для OL */
.tab.product_description ol {
	counter-reset: item;
}

.tab.product_description ol li {
	counter-increment: item;
}

.tab.product_description ol li::before {
	content: counter(item);
	position: absolute;
	left: 0;
	top: 2px;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: var(--accent);
	border-radius: 50%;
	line-height: 1;
}

/* Внутри li бывает структура <span>Заголовок</span><br><span>Текст</span> —
   это выглядит как «подзаголовок + описание». Делаем красиво: */
.tab.product_description ul li > span:first-child,
.tab.product_description ol li > span:first-child {
	display: block;
	font-weight: 700 !important;
	color: var(--text) !important;
	font-size: 15px !important;
	line-height: 1.4;
	margin-bottom: 4px;
}

.tab.product_description ul li > span:not(:first-child),
.tab.product_description ol li > span:not(:first-child) {
	display: block;
	color: var(--text-muted) !important;
	font-size: 14px !important;
	line-height: 1.65;
}

/* Убираем лишние <br>, если они стоят между span'ами */
.tab.product_description ul li > br,
.tab.product_description ol li > br {
	display: none;
}

/* Пустые параграфы (с &nbsp;) — схлопываем */
.tab.product_description p:empty,
.tab.product_description p:has(> span:only-child:empty),
.tab.product_description p > span:only-child {
	/* сюда попадают <p><span>&nbsp;</span></p> */
}

/* Собственно — отступы между абзацами с "пустотой" */
.tab.product_description p:has(> span:only-child) {
	margin: 0;
	padding: 0;
	overflow: hidden;
}

/* Ссылки в описании */
.tab.product_description a {
	color: var(--accent) !important;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.tab.product_description a:hover {
	border-bottom-color: var(--accent);
}

/* Изображения в описании */
.tab.product_description img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 16px 0;
	border-radius: var(--radius-sm);
}

/* Таблицы в описании */
.tab.product_description table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
	font-size: 14px;
}

.tab.product_description table td,
.tab.product_description table th {
	padding: 10px 14px;
	border: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.tab.product_description table th {
	background: var(--surface-2);
	font-weight: 700;
	color: var(--text) !important;
}

/* Блоки цитат */
.tab.product_description blockquote {
	margin: 16px 0;
	padding: 14px 20px;
	border-left: 3px solid var(--accent);
	background: var(--surface-2);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--text-muted);
	font-size: 14px;
}

/* Выделения */
.tab.product_description strong,
.tab.product_description b {
	font-weight: 700;
	color: var(--text) !important;
}

.tab.product_description em,
.tab.product_description i {
	font-style: italic;
	color: var(--text-muted);
}

/* Код / pre */
.tab.product_description code,
.tab.product_description pre {
	font-family: 'JetBrains Mono', 'Courier New', monospace !important;
	background: var(--surface-2);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 13px !important;
	color: var(--text) !important;
}

.tab.product_description pre {
	padding: 14px 16px;
	margin: 16px 0;
	overflow-x: auto;
}

/* Разделители */
.tab.product_description hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 24px 0;
}

/* ============================================================
   ОПИСАНИЕ КАТЕГОРИИ / БРЕНДА (SEO-блок под пагинацией)
   ============================================================ */

.category_description {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px 40px;
	margin: 20px 0 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--text-muted);
	max-width: 100%;
}

/* Заголовки */
.category_description h2 {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.3px;
	color: var(--text) !important;
	margin: 0 0 16px;
	padding: 0;
}

.category_description h3 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--text) !important;
	margin: 28px 0 14px;
}

.category_description h4,
.category_description h5,
.category_description h6 {
	font-size: 16px;
	font-weight: 700;
	color: var(--text) !important;
	margin: 24px 0 12px;
}

.category_description h2:first-child,
.category_description h3:first-child,
.category_description h4:first-child {
	margin-top: 0;
}

/* Все вложенные элементы — единый шрифт */
.category_description * {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

/* Абзацы */
.category_description p {
	font-size: 15px !important;
	line-height: 1.7;
	margin: 0 0 14px;
	color: var(--text-muted);
}

.category_description p:last-child {
	margin-bottom: 0;
}

/* Пустые абзацы (<p>&nbsp;</p>) — схлопываем до небольшого отступа */
.category_description p:empty,
.category_description p:has(> span:only-child:empty),
.category_description p:has(> span:only-child) {
	/* если внутри только пустая span */
}

.category_description p > span:only-child {
	display: inline;
}

/* Пустой абзац (только &nbsp;) — уменьшаем до 8px */
.category_description p > span:only-child:empty,
.category_description p:has(> br:only-child) {
	margin: 0;
	padding: 0;
	height: 8px;
}

/* Списки */
.category_description ul,
.category_description ol {
	margin: 0 0 16px;
	padding-left: 24px;
}

.category_description ul li {
	list-style: disc;
	font-size: 15px !important;
	line-height: 1.7;
	margin-bottom: 8px;
	color: var(--text-muted);
}

.category_description ol li {
	list-style: decimal;
	font-size: 15px !important;
	line-height: 1.7;
	margin-bottom: 8px;
	color: var(--text-muted);
}

/* Ссылки */
.category_description a {
	color: var(--accent) !important;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.category_description a:hover {
	border-bottom-color: var(--accent);
}

/* Жирный / курсив */
.category_description strong,
.category_description b {
	font-weight: 700;
	color: var(--text) !important;
}

.category_description em,
.category_description i {
	font-style: italic;
	color: var(--text-muted);
}

/* Изображения */
.category_description img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 20px 0;
	border-radius: var(--radius-sm);
}

/* Таблицы */
.category_description table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
	font-size: 14px;
}

.category_description table td,
.category_description table th {
	padding: 10px 14px;
	border: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.category_description table th {
	background: var(--surface-2);
	font-weight: 700;
	color: var(--text) !important;
}

/* Разделители */
.category_description hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 24px 0;
}

/* Цитаты */
.category_description blockquote {
	margin: 16px 0;
	padding: 14px 20px;
	border-left: 3px solid var(--accent);
	background: var(--surface-2);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--text-muted);
	font-size: 14px;
}

/* Адаптив */
@media (max-width: 991px) {
	.category_description {
		padding: 24px 22px;
		margin-top: 24px;
	}

	.category_description h2 {
		font-size: 20px;
	}

	.category_description h3 {
		font-size: 16px;
	}

	.category_description p,
	.category_description ul li,
	.category_description ol li {
		font-size: 14px !important;
	}
}

@media (max-width: 767px) {
	.category_description {
		padding: 20px 16px;
		border-radius: var(--radius-sm);
	}

	.category_description h2 {
		font-size: 18px;
	}
}

/* ============================================================
   ТОВАРЫ НЕ НАЙДЕНЫ (пустой каталог)
   ============================================================ */
.products_not_found {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 60px 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin: 0;
	min-height: 400px;
}

.products_not_found_icon {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--surface-2);
	color: var(--text-dim);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
}

.products_not_found_icon svg {
	width: 44px;
	height: 44px;
	stroke: currentColor;
}

.products_not_found_title {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.3px;
	color: var(--text);
	margin-bottom: 8px;
	line-height: 1.3;
}

.products_not_found_text {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.6;
	max-width: 400px;
	margin-bottom: 24px;
}

.products_not_found_actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.products_not_found_actions .button {
	padding: 10px 20px;
	font-size: 13px;
}

.products_not_found_actions .button_ghost {
	background: transparent;
	color: var(--text-muted);
	border: 1px solid var(--border);
}

.products_not_found_actions .button_ghost:hover {
	background: var(--surface-2);
	color: var(--text);
	border-color: var(--border-hover);
}

/* Адаптив */
@media (max-width: 767px) {
	.products_not_found {
		padding: 40px 16px;
		min-height: 320px;
	}

	.products_not_found_icon {
		width: 72px;
		height: 72px;
		margin-bottom: 16px;
	}

	.products_not_found_icon svg {
		width: 34px;
		height: 34px;
	}

	.products_not_found_title {
		font-size: 18px;
	}

	.products_not_found_text {
		font-size: 13px;
		margin-bottom: 20px;
	}
}

/* ============================================================
   КОНТАКТЫ В ПОДВАЛЕ (4-я колонка)
   ============================================================ */
.footer_col_contacts {
	min-width: 0;
}

.footer_heading_contacts {
	margin-top: 24px;
}

.footer_contacts_list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 4px;
}

.footer_contact_item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.footer_contact_icon {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background var(--transition);
}

.footer_contact_icon svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.footer_contact_item:hover .footer_contact_icon {
	background: var(--accent-soft);
}

.footer_contact_body {
	flex: 1;
	min-width: 0;
	padding-top: 2px;
}

.footer_contact_label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--text-dim);
	margin-bottom: 2px;
	line-height: 1.2;
}

.footer_contact_text {
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-muted);
	word-break: break-word;
}

.footer_contact_text a {
	color: var(--text);
	font-weight: 500;
	transition: color var(--transition);
}

.footer_contact_text a:hover {
	color: var(--accent);
}

/* Адаптив */
@media (max-width: 767px) {
	.footer_contacts_list {
		gap: 10px;
	}

	.footer_contact_icon {
		width: 28px;
		height: 28px;
	}

	.footer_contact_icon svg {
		width: 14px;
		height: 14px;
	}
}

/* ============================================================
   ПОДПИСКА В ПОДВАЛЕ (4-я колонка)
   ============================================================ */
.footer_col_subscribe {
	min-width: 0;
}

.footer_subscribe_text {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.5;
	margin: 0 0 12px;
}

/* ============================================================
   КОНТАКТЫ В ПОДВАЛЕ (2-я колонка)
   ============================================================ */
.footer_col_contacts {
	min-width: 0;
}

.footer_contacts_list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer_contact_item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.footer_contact_icon {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background var(--transition);
}

.footer_contact_icon svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.footer_contact_item:hover .footer_contact_icon {
	background: var(--accent-soft);
}

.footer_contact_body {
	flex: 1;
	min-width: 0;
	padding-top: 5px;
}

.footer_contact_text {
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-muted);
	word-break: break-word;
}

.footer_contact_text a {
	color: var(--text);
	font-weight: 500;
	transition: color var(--transition);
}

.footer_contact_text a:hover {
	color: var(--accent);
}

/* Кнопка закрытия мега-меню (по умолчанию скрыта, показывается на мобильном) */
.mega_menu_close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--surface-2);
	color: var(--text);
	display: none;
	align-items: center;
	justify-content: center;
	border: 0;
	cursor: pointer;
	transition: all var(--transition);
	z-index: 10;
}

.mega_menu_close:hover {
	background: var(--accent);
	color: #fff;
}

.mega_menu_close svg {
	width: 20px;
	height: 20px;
}

/* ============================================================
   ВКЛАДКА «КАК КУПИТЬ» В КАРТОЧКЕ ТОВАРА
   ============================================================ */

.how_to_buy {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-muted);
}

/* Список шагов */
.how_to_buy_steps {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}

/* Один шаг */
.how_to_buy_step {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px;
	background: var(--surface-2);
	border-radius: var(--radius);
	border: 1px solid transparent;
	transition: all var(--transition);
}

.how_to_buy_step:hover {
	background: var(--surface);
	border-color: var(--border);
	box-shadow: var(--shadow-sm);
}

/* Номер шага — круг */
.how_to_buy_num {
	width: 36px;
	height: 36px;
	min-width: 36px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* Контент шага */
.how_to_buy_content {
	flex: 1;
	min-width: 0;
	padding-top: 4px;
}

.how_to_buy_title {
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
	line-height: 1.35;
	margin-bottom: 4px;
	letter-spacing: -0.1px;
}

.how_to_buy_content p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--text-muted);
}

.how_to_buy_content strong {
	color: var(--text);
	font-weight: 600;
}

/* Блок «Совет» */
.how_to_buy_note {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 18px;
	background: #eef0ff;
	border-radius: var(--radius);
	border-left: 3px solid var(--accent);
}

.how_to_buy_note_icon {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
	padding-top: 2px;
}

.how_to_buy_note_body {
	flex: 1;
	min-width: 0;
}

.how_to_buy_note_title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--accent);
	margin-bottom: 4px;
}

.how_to_buy_note p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--text);
}

/* Адаптив */
@media (max-width: 767px) {
	.how_to_buy_step {
		padding: 14px;
		gap: 12px;
	}

	.how_to_buy_num {
		width: 32px;
		height: 32px;
		min-width: 32px;
		font-size: 14px;
	}

	.how_to_buy_title {
		font-size: 14px;
	}

	.how_to_buy_content p {
		font-size: 13px;
	}

	.how_to_buy_note {
		padding: 14px;
		gap: 12px;
	}

	.how_to_buy_note_icon {
		font-size: 20px;
	}
}

/* ============================================================
   ИНФОРМАЦИЯ О ДОСТАВКЕ В КАРТОЧКЕ ТОВАРА
   ============================================================ */
.product_delivery_info {
	margin-top: 20px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	border-top: 1px solid var(--border);
	padding-top: 20px;
}

/* Группа доставки — иконка + текст */
.product_delivery_item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.product_delivery_icon {
	width: 32px;
	height: 32px;
	min-width: 32px;
	border-radius: var(--radius-sm);
	background: var(--accent-soft);
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.product_delivery_icon svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* Текстовый блок */
.product_delivery_body {
	flex: 1;
	min-width: 0;
}

.product_delivery_title {
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
	line-height: 1.3;
	margin-bottom: 6px;
}

/* Строка: «Название — стоимость» */
.product_delivery_row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--text-muted);
	padding: 2px 0;
}

.product_delivery_label {
	color: var(--text-muted);
}

.product_delivery_value {
	color: var(--accent);
	font-weight: 600;
	white-space: nowrap;
}

/* Адаптив */
@media (max-width: 767px) {
	.product_delivery_info {
		margin-top: 16px;
		gap: 12px;
	}

	.product_delivery_icon {
		width: 28px;
		height: 28px;
		min-width: 28px;
	}

	.product_delivery_icon svg {
		width: 16px;
		height: 16px;
	}

	.product_delivery_title {
		font-size: 13px;
	}

	.product_delivery_row {
		font-size: 12px;
	}
}

.important-info {
	margin-top: 30px;
	margin-bottom: 30px;
	padding: 15px 20px;
	background-color: #F5F8FD;
	border: 1px solid #2E6BE6;
	border-left: 4px solid #2E6BE6;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	color: #333333;
}
.important-info__header {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
}
.important-info__icon {
	margin-right: 10px;
	flex-shrink: 0;
}
.important-info__title {
	font-weight: 700;
	font-size: 16px;
	color: #000000;
}
.important-info__content p {
	margin: 0;
}
.important-info__content a {
	color: #2E6BE6;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}
.important-info__content a:hover {
	color: #1a4fb8;
	text-decoration: underline;
}

.variant_description {
	margin-top: 15px;
	margin-bottom: 0;
}

/* ============================================
   ORDER DETAILS UI — изолированные стили
   #14161C — текст, заголовки
   #004DCF — акцент, кнопки, ссылки
   #FFFFFF — фон карточек
   #F1F3F8 — фон страницы, разделители
   ============================================ */

/* Сброс только внутри контейнера, чтобы не ломать глобальные стили */
.order-details-ui *,
.order-details-ui *::before,
.order-details-ui *::after {
    box-sizing: border-box;
}

.order-details-ui {
    color: #14161C;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ---- Блок «Детали заказа» ---- */
.order-details-ui .clearfix {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(20, 22, 28, 0.06);
    padding: 24px;
    margin-bottom: 24px;
}

.order-details-ui .clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ---- Заголовки ---- */
.order-details-ui .h2 {
    margin: 0 0 16px 0;
    padding: 0 0 12px 0;
    border-bottom: 2px solid #004DCF;
}

.order-details-ui .h2 span {
    font-size: 18px;
    font-weight: 700;
    color: #14161C;
    letter-spacing: 0.2px;
}

/* Заголовок «Детали оплаты» — как верхняя часть карточки */
.order-details-ui .clearfix + .h2 {
    margin-top: 0;
    padding: 24px 24px 12px 24px;
    background-color: #FFFFFF;
    border-radius: 10px 10px 0 0;
    border-bottom: 2px solid #004DCF;
    box-shadow: 0 2px 8px rgba(20, 22, 28, 0.06);
}

/* ---- Таблица заказа ---- */
.order-details-ui table.order_info {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    overflow: hidden;
}

.order-details-ui table.order_info tr {
    border-bottom: 1px solid #F1F3F8;
}

.order-details-ui table.order_info tr:last-child {
    border-bottom: none;
}

.order-details-ui table.order_info td {
    padding: 12px 16px;
    vertical-align: middle;
}

.order-details-ui table.order_info td:first-child {
    width: 40%;
    color: #6b7280;
    font-weight: 500;
}

.order-details-ui table.order_info td:first-child span {
    color: #6b7280;
}

.order-details-ui table.order_info td:last-child {
    color: #14161C;
    font-weight: 600;
    text-align: right;
}

.order-details-ui table.order_info tr:hover {
    background-color: #F1F3F8;
}

/* ---- Блок оплаты ---- */
.order-details-ui .method {
    background-color: #FFFFFF;
    border-radius: 0 0 10px 10px;
    padding: 0 24px 24px 24px;
    box-shadow: 0 2px 8px rgba(20, 22, 28, 0.06);
}

.order-details-ui .method_name {
    padding: 16px 0;
    font-size: 14px;
    color: #14161C;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.order-details-ui .method_name > span {
    color: #6b7280;
    font-weight: 500;
}

/* Бейдж способа оплаты — только <b> внутри .method_name */
.order-details-ui .method_name > b.method_name {
    display: inline-block;
    padding: 4px 12px;
    background-color: #F1F3F8;
    border: 1px solid #004DCF;
    border-radius: 6px;
    color: #004DCF;
    font-weight: 600;
    font-size: 14px;
}

.order-details-ui .method_form {
    margin: 0;
}

/* ---- Кнопка — только внутри контейнера ---- */
.order-details-ui .button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #004DCF;
    color: #FFFFFF;
    border: 2px solid #004DCF;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    letter-spacing: 0.2px;
}

.order-details-ui .button:hover {
    background-color: #003BA3;
    border-color: #003BA3;
    box-shadow: 0 4px 12px rgba(0, 77, 207, 0.3);
}

.order-details-ui .button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 77, 207, 0.25);
}

.order-details-ui .button:focus-visible {
    outline: 3px solid rgba(0, 77, 207, 0.35);
    outline-offset: 2px;
}

/* ---- Адаптив ---- */
@media (max-width: 600px) {
    .order-details-ui .clearfix,
    .order-details-ui .clearfix + .h2,
    .order-details-ui .method {
        padding-left: 16px;
        padding-right: 16px;
    }

    .order-details-ui table.order_info td {
        padding: 10px 12px;
    }

    .order-details-ui table.order_info td:first-child {
        width: 45%;
    }

    .order-details-ui .button {
        width: 100%;
        text-align: center;
    }
}