@import url("reset.css");

:root {
	--color-primary: #2563eb;
	--color-primary-hover: #1d4ed8;
	--color-primary-light: #eff6ff;
	--color-success: #16a34a;
	--color-success-hover: #15803d;
	--color-error: #dc2626;
	--color-error-bg: #fef2f2;
	--color-error-border: #fca5a5;
	--color-text: #1f2937;
	--color-text-secondary: #6b7280;
	--color-text-muted: #9ca3af;
	--color-border: #e5e7eb;
	--color-bg: #f8f9fa;
	--color-surface: #ffffff;
	--color-surface-hover: #f9fafb;
	--color-dark: #1f2937;
	--color-dark-text: #9ca3af;
	--color-dark-link: #93c5fd;
	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
	--shadow-md: 0 2px 8px rgba(0,0,0,0.08);
	--shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
	--transition: 0.2s ease;
}

*, *::before, *::after {
	box-sizing: border-box;
}

/* @group Общий стиль */
html,
body {
	width: 100%;
	height: 100%;
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background-color: var(--color-bg);
	color: var(--color-text);
}

p { margin-bottom: 15px; }

h1 {
	font-size: 28px;
	margin-bottom: 10px;
	font-weight: 600;
	line-height: 1.3;
}

h2 {
	font-size: 22px;
	margin-bottom: 10px;
	font-weight: 600;
}

h3 {
	font-size: 17px;
	margin-top: 0;
	margin-bottom: 10px;
	font-weight: 600;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--transition);
}
a:hover {
	color: var(--color-primary-hover);
}

input[type="button"], button {
	cursor: pointer;
	font-family: inherit;
}
/* @end — Общий стиль */


/* @group Верхняя строка */
#top_background {
	min-height: 44px;
	padding-top: 10px;
	width: 100%;
	padding-bottom: 5px;
	background-color: var(--color-surface);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
#top {
	margin: 0 auto;
	max-width: 1280px;
	width: 100%;
	padding: 0 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}
#menu {
	margin-top: 7px;
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	gap: 2px;
}
#menu li {
	display: block;
	list-style: none;
}
#menu li a {
	margin-right: 5px;
	font-size: 13px;
	display: block;
	padding: 6px 11px;
	color: var(--color-text-secondary);
	border-radius: 20px;
	transition: all var(--transition);
}
#menu li a:hover {
	color: var(--color-text);
	background-color: var(--color-surface-hover);
}
#menu li.selected a {
	color: var(--color-primary);
	background-color: var(--color-primary-light);
	font-weight: 500;
}

#blog {
	list-style: none;
}

#currencies {
	margin-bottom: 15px;
}
#currencies ul {
	margin-top: 10px;
}
#currencies ul li {
	font-size: 12px;
	display: inline;
	padding-right: 5px;
	list-style: none;
}
#currencies ul li a {
	white-space: nowrap;
	color: var(--color-text-secondary);
}
#currencies ul li.selected a {
	text-decoration: none;
	color: var(--color-primary);
	font-weight: 500;
}

#cart_informer {
	background-color: var(--color-primary-light);
	padding: 5px 13px 6px 13px;
	border-radius: 20px;
	margin-left: 10px;
	color: var(--color-primary);
	white-space: nowrap;
	font-weight: 500;
	transition: background-color var(--transition);
}
#cart_informer:hover {
	background-color: #dbeafe;
}


/* @group Шапка сайта */
#header {
	margin: 0 auto;
	max-width: 1280px;
	width: 100%;
	/* padding: 0 10px; */
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: space-around;
	flex-wrap: wrap;
}

/* @group Футер сайта */
#footer {
	margin: 0 auto;
	max-width: 1280px;
	width: 100%;
	padding: 0 10px;
	height: auto;
	min-height: 60px;
	padding-top: 30px;
	padding-bottom: 30px;
	text-align: center;
	background-color: var(--color-dark);
	color: var(--color-dark-text);
	border-radius: var(--radius-md) var(--radius-md) 0 0;
}
#footer a {
	color: var(--color-dark-link);
}
#footer a:hover {
	color: #bfdbfe;
}


#account {
	font-size: 13px;
	margin: 12px 10px 10px 0;
	text-align: right;
	color: var(--color-text-secondary);
	white-space: nowrap;
}
#account #login {
	padding-left: 7px;
	font-weight: 500;
}
#account #logout {
	padding-left: 7px;
	color: var(--color-text-muted);
}
#account #logout:hover {
	color: var(--color-error);
}


#logo {
	margin-top: 15px;
	padding-left: 0;
	width: 250px;
}
#logo img {
	max-width: 100%;
	height: auto;
}
#contact {
	text-align: right;
	/* margin-top: 45px;
	margin-right: 5px; */
	font-style: italic;
	/* height: 25px; */
	height: auto;
	color: var(--color-text-secondary);
	font-size: 15px;
}
#contact #phone,
#contact #phone1 {
	font-size: 20px;
	font-weight: 600;
	font-style: normal;
	color: var(--color-text);
}


#main {
	margin: 0 auto;
	max-width: 1280px;
	width: 100%;
	padding: 0 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
#content {
	flex: 1;
	min-width: 0;
	margin-bottom: 20px;
}

#left {
	flex: 0 0 280px;
	overflow: hidden;
	background-color: var(--color-surface);
	border-radius: var(--radius-md);
	padding: 16px;
	box-shadow: var(--shadow-sm);
}

#right {
	flex: 0 0 220px;
	overflow: hidden;
	background-color: var(--color-surface);
	border-radius: var(--radius-md);
	padding: 16px;
	box-shadow: var(--shadow-sm);
	align-self: flex-start;
}


/* @group Поиск */
#search form {
	margin-top: 0;
	margin-bottom: 16px;
	height: auto;
	display: flex;
	gap: 0;
}
#search .input_search {
	flex: 1;
	min-width: 0;
	height: 36px;
	font-size: 13px;
	border: 1px solid var(--color-border);
	border-right: none;
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	display: block;
	padding: 0 10px;
	outline: none;
	transition: border-color var(--transition);
}
#search .input_search:focus {
	border-color: var(--color-primary);
}
#search .button_search {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	background-position: center;
	background: url(../images/search.png) no-repeat center;
	background-color: var(--color-primary);
	border-style: none;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	cursor: pointer;
	display: block;
	transition: background-color var(--transition);
}
#search .button_search:hover {
	background-color: var(--color-primary-hover);
}


/* @group Меню каталога */
#catalog_menu {
	margin-top: 10px;
	margin-bottom: 10px;
}
#catalog_menu ul {
	padding-left: 0;
	padding-bottom: 5px;
	list-style: none;
}
#catalog_menu ul ul {
	padding-left: 16px;
	padding-top: 0;
	padding-bottom: 0;
	display: none; /* Скрываем вложенные списки по умолчанию */
}
#catalog_menu li.open > ul {
	display: block; /* Показываем вложенные списки при наличии класса open */
}
#catalog_menu ul li {
	font-size: 15px;
	margin-top: 4px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
#catalog_menu ul li > ul {
	width: 100%;
}
#catalog_menu ul li img {
	max-width: 24px;
	max-height: 24px;
	object-fit: contain;
	vertical-align: middle;
	border-radius: 3px;
}
#catalog_menu ul li a {
	display: inline-block;
	padding: 4px 8px;
	border-radius: var(--radius-sm);
	color: var(--color-text-secondary);
	transition: all var(--transition);
}
/* Добавляем отступ справа для родительских категорий (для стрелки) */
#catalog_menu ul li.parent > a {
	padding-right: 24px;
	position: relative;
}
/* Стрелка-индикатор для родительских категорий */
#catalog_menu ul li.parent > a::after {
	content: '';
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid currentColor;
	transition: transform var(--transition);
}
/* Поворот стрелки при раскрытии */
#catalog_menu ul li.parent.open > a::after {
	transform: translateY(-50%) rotate(180deg);
}
#catalog_menu ul li a:hover {
	background-color: var(--color-surface-hover);
	color: var(--color-text);
}
#catalog_menu ul li a.selected {
	color: #ffffff;
	background-color: var(--color-primary);
	font-weight: 500;
}
#catalog_menu ul ul li {
	font-size: 13px;
	flex-wrap: wrap;
}
#catalog_menu ul ul ul li {
	font-size: 12px;
}
/* #catalog_menu {
	margin-top: 10px;
	margin-bottom: 10px;
}
#catalog_menu ul {
	padding-left: 0;
	padding-bottom: 5px;
	list-style: none;
}
#catalog_menu ul ul {
	padding-left: 16px;
	padding-top: 0;
	padding-bottom: 0;
}
#catalog_menu ul li {
	font-size: 15px;
	margin-top: 4px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
#catalog_menu ul li > ul {
	width: 100%;
}
#catalog_menu ul li img {
	max-width: 24px;
	max-height: 24px;
	object-fit: contain;
	vertical-align: middle;
	border-radius: 3px;
}
#catalog_menu ul li a {
	display: inline-block;
	padding: 4px 8px;
	border-radius: var(--radius-sm);
	color: var(--color-text-secondary);
	transition: all var(--transition);
}
#catalog_menu ul li a:hover {
	background-color: var(--color-surface-hover);
	color: var(--color-text);
}
#catalog_menu ul li a.selected {
	color: #ffffff;
	background-color: var(--color-primary);
	font-weight: 500;
}
#catalog_menu ul ul li {
	font-size: 13px;
}
#catalog_menu ul ul ul li {
	font-size: 12px;
} */
/* @end — Меню каталога */


#all_brands {
	max-width: 100%;
	margin-bottom: 15px;
}
#all_brands a {
	display: inline-block;
	margin-bottom: 6px;
	margin-right: 4px;
}
#all_brands img {
	max-width: 180px;
	max-height: 40px;
	object-fit: contain;
	vertical-align: middle;
}
#all_brands h2 {
	font-size: 15px;
	color: var(--color-text-secondary);
	margin-bottom: 8px;
}


/* @group Brands */
#brands {
	margin-bottom: 10px;
	margin-top: 10px;
}
#brands a {
	color: var(--color-primary);
	font-size: 12px;
	margin-right: 10px;
}
#brands img {
	vertical-align: middle;
	border-radius: 3px;
}
#brands a:hover {
	color: var(--color-primary-hover);
}
#brands a.selected {
	background-color: var(--color-primary);
	color: #ffffff;
	padding: 3px 8px;
	border-radius: var(--radius-sm);
	font-weight: 500;
}
/* @end */

/* Хлебные крошки */
#path {
	margin-top: 5px;
	margin-bottom: 10px;
	font-size: 12px;
	color: var(--color-text-muted);
}
#path a {
	color: var(--color-text-muted);
}
#path a:hover {
	color: var(--color-primary);
}
/* @end */


/* @group Товар подробно */
.product {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.product .image {
	text-align: center;
	flex: 0 0 300px;
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	padding: 8px;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}
.product .image img {
	max-width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: var(--radius-sm);
}
.product .images {
	flex: 0 0 300px;
	margin-bottom: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.product .images img {
	text-align: center;
	width: 50px;
	height: 50px;
	object-fit: cover;
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	padding: 3px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: border-color var(--transition);
}
.product .images img:hover {
	border-color: var(--color-primary);
}
.product .description {
	flex: 1;
	min-width: 0;
}

.product .features {
	list-style: none;
	width: 100%;
	display: block;
	margin-top: 15px;
	margin-bottom: 25px;
	border-bottom: 1px solid var(--color-border);
}
.product .features li {
	padding: 10px 8px;
	overflow: hidden;
	border-top: 1px solid var(--color-border);
}
.product .features li.even {
	background-color: var(--color-surface-hover);
}
.product .features label {
	font-weight: 500;
	color: var(--color-text-secondary);
	display: block;
	width: 30%;
}
.product .features p {
	display: block;
	width: 70%;
}
.product .variants {
	font-size: 13px;
	margin-top: 10px;
}
.product .variant td {
	padding-bottom: 6px;
	vertical-align: middle;
}
.product .compare_price {
	font-size: 14px;
	text-decoration: line-through;
	white-space: nowrap;
	color: var(--color-text-muted);
}
.product .price {
	font-size: 18px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--color-text);
}
.product .variant_name {
	float: left;
	margin-right: 10px;
	font-size: 13px;
}
.product .variant_radiobutton {
	margin-right: 5px;
	margin-left: 0;
}
#back_forward {
	font-size: 14px;
	margin-bottom: 20px;
}
#back_forward a.prev_page_link {
	margin-right: 20px;
}
/* @end — Товар подробно */


/* @group Маленькие карточки товаров */
.tiny_products {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.tiny_products .product {
	flex: 0 0 calc(25% - 12px);
	word-spacing: normal;
	vertical-align: top;
	background-color: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: box-shadow var(--transition), transform var(--transition);
}
.tiny_products .product:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}
.tiny_products .product .image {
	vertical-align: middle;
	text-align: center;
	width: 100%;
	height: auto;
	line-height: normal;
	background-color: var(--color-surface-hover);
	border: none;
	padding: 16px 16px 0 16px;
	margin-bottom: 0;
	border-radius: 0;
	box-shadow: none;
}
.tiny_products .product .image img {
	vertical-align: middle;
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: var(--radius-sm);
}
.tiny_products .product h3 {
	font-size: 14px;
	margin: 10px 14px;
	font-weight: 500;
}
.tiny_products .product h3 a {
	color: var(--color-text);
}
.tiny_products .product h3 a:hover {
	color: var(--color-primary);
}
.tiny_products .product h3.featured {
	background: url(../images/star.png) no-repeat left center;
	background-size: 16px;
	padding-left: 22px;
}
.tiny_products .product .variants {
	padding: 0 14px 14px 14px;
}
.tiny_products .product .price {
	font-size: 16px;
	font-weight: 600;
	color: var(--color-text);
}
.tiny_products .product .button {
	margin-top: 8px;
}


/* @group Список товаров (каталог) */
.products {
	list-style: none;
	display: block;
}
.products .product {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	overflow: hidden;
	margin-bottom: 20px;
	background-color: var(--color-surface);
	border-radius: var(--radius-md);
	padding: 16px;
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition);
}
.products .product:hover {
	box-shadow: var(--shadow-md);
}
.products .product .image {
	text-align: center;
	flex: 0 0 200px;
	background-color: var(--color-surface-hover);
	border: none;
	padding: 8px;
	border-radius: var(--radius-sm);
	box-shadow: none;
}
.products .product .image img {
	width: 200px;
	height: 200px;
	object-fit: cover;
	border-radius: var(--radius-sm);
}
.products .product .product_info {
	flex: 1;
	min-width: 0;
	margin-bottom: 10px;
}
.products .product h3 {
	font-size: 18px;
	margin-bottom: 5px;
	font-weight: 600;
}
.products .product h3 a {
	color: var(--color-text);
}
.products .product h3 a:hover {
	color: var(--color-primary);
}
.products .product h3.featured {
	background: url(../images/star.png) no-repeat left center;
	background-size: 16px;
	padding-left: 22px;
}
.products .product .annotation {
	font-size: 13px;
	color: var(--color-text-secondary);
	margin-bottom: 8px;
	line-height: 1.5;
}


/* @group Кнопки */
.button {
	cursor: pointer;
	background-color: var(--color-primary);
	color: #ffffff;
	border: none;
	border-radius: var(--radius-sm);
	display: inline-block;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	padding: 8px 20px;
	text-decoration: none;
	transition: background-color var(--transition), box-shadow var(--transition);
}
.button:hover {
	background-color: var(--color-primary-hover);
	box-shadow: var(--shadow-sm);
}
.button:active {
	position: relative;
	top: 1px;
}
/* Вторичная кнопка */
input[type="submit"].button,
.button-secondary {
	background-color: var(--color-surface-hover);
	color: var(--color-text);
	border: 1px solid var(--color-border);
}
input[type="submit"].button:hover,
.button-secondary:hover {
	background-color: #e5e7eb;
}
/* @end — Кнопки */


/* @group Фильтр по свойствам */
#features {
	background-color: var(--color-surface);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	margin-top: 20px;
	margin-bottom: 10px;
	width: 100%;
	padding: 4px 0;
}
#features .feature_name {
	padding: 7px 8px;
	font-weight: 500;
	color: var(--color-text-secondary);
}
#features .feature_values {
	padding: 7px 8px;
}
#features a {
	padding-right: 6px;
	white-space: nowrap;
	color: var(--color-text-secondary);
}
#features a:hover {
	color: var(--color-primary);
}
#features a.selected {
	color: var(--color-primary);
	font-weight: 500;
	text-decoration: none;
}
/* @end — Фильтр по свойствам */


/* @group Сортировка */
.sort {
	color: var(--color-text-muted);
	font-size: 13px;
	margin-top: 10px;
	margin-bottom: 10px;
	font-weight: normal;
	font-style: normal;
}
.sort a {
	margin-right: 5px;
	color: var(--color-text-secondary);
}
.sort a:hover {
	color: var(--color-primary);
}
.sort .selected {
	color: var(--color-primary);
	text-decoration: none;
	margin-right: 5px;
	font-weight: 500;
}
/* @end */


/* @group Постраничная навигация */
.pagination {
	margin-top: 8px;
	margin-bottom: 8px;
	font-size: 13px;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.pagination a {
	display: block;
	background-color: var(--color-surface);
	margin-right: 0;
	margin-bottom: 0;
	padding: 7px 10px;
	min-width: 32px;
	text-align: center;
	border: 1px solid var(--color-border);
	text-decoration: none;
	border-radius: var(--radius-sm);
	color: var(--color-text-secondary);
	transition: all var(--transition);
}
.pagination a.selected:hover,
.pagination a.selected {
	background-color: var(--color-primary);
	color: #ffffff;
	border-color: var(--color-primary);
}
.pagination a:hover {
	background-color: var(--color-surface-hover);
	border-color: var(--color-text-muted);
}
.pagination a.next_page_link,
.pagination a.prev_page_link {
	border: none;
	background: none;
	color: var(--color-primary);
	font-weight: 500;
}
/* @end */


/* @group Просмотренные товары */
#browsed_products {
	margin-bottom: 20px;
	overflow: hidden;
}
#browsed_products li {
	display: block;
	float: left;
	overflow: hidden;
	border: 1px solid var(--color-border);
	background-color: var(--color-surface);
	margin: 0 7px 7px 0;
	width: 50px;
	height: 50px;
	border-radius: var(--radius-sm);
	transition: border-color var(--transition);
}
#browsed_products li:hover {
	border-color: var(--color-primary);
}
#browsed_products li a {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	width: 50px;
	height: 50px;
}
#browsed_products li a img {
	width: 50px;
	height: 50px;
	object-fit: cover;
}
/* @end — Просмотренные товары */


/* @group Формы */
input[type="text"],
input[type="password"] {
	width: 100%;
	font-size: 15px;
	padding: 8px 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	outline: none;
	transition: border-color var(--transition), box-shadow var(--transition);
	font-family: inherit;
}
input[type="text"]:focus,
input[type="password"]:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form {
	width: 100%;
	max-width: 400px;
	margin-bottom: 20px;
}
.form textarea {
	width: 100%;
	height: 100px;
	font-size: 15px;
	padding: 8px 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	outline: none;
	resize: vertical;
	font-family: inherit;
	transition: border-color var(--transition), box-shadow var(--transition);
}
.form textarea:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text-secondary);
	margin-bottom: 4px;
}
.form input[type="text"] {
	display: block;
	margin-bottom: 12px;
}
/* @end — Формы */


/* @group Комментарии */
.comment_list {
	margin-top: 15px;
	list-style: none;
}
.comment_list li {
	padding-bottom: 15px;
	border-bottom: 1px solid var(--color-border);
}
.comment_list li:last-child {
	border-bottom: none;
}
.comment_header {
	font-size: 16px;
	font-weight: 500;
}
.comment_header i {
	font-weight: normal;
	font-style: normal;
	color: var(--color-text-muted);
	font-size: 13px;
}
/* @end — Комментарии */


/* @group Форма отправки комментария */
.comment_form {
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	padding: 20px;
	margin-top: 20px;
	width: 100%;
	overflow: hidden;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}
.comment_form h2 {
	margin-bottom: 0;
}
.comment_form .comment_textarea {
	width: 100%;
	height: 100px;
	font-size: 14px;
}
.comment_form label {
	display: block;
	float: left;
	width: 100px;
	font-size: 15px;
	font-weight: 500;
	margin-top: 15px;
}
.comment_form .input_name {
	font-size: 15px;
	width: 250px;
	margin-top: 15px;
}
.comment_form .input_captcha,
.cart_form .input_captcha {
	float: left;
	width: 150px;
	font-size: 22px;
	font-weight: bold;
	text-transform: uppercase;
	margin-top: 15px;
	height: 40px;
	border-radius: var(--radius-sm);
}
.comment_form .captcha,
.cart_form .captcha {
	float: left;
	display: block;
	margin-top: 15px;
	margin-right: 10px;
}
.comment_form .button,
.feedback_form .button,
.register_form .button,
.login_form .button {
	float: right;
	display: block;
	margin-top: 15px;
	margin-right: 0;
}
/* @end — Форма отправки комментария */


/* @group Форма отправки обратной связи */
.feedback_form {
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	padding: 20px;
	margin-top: 20px;
	width: 100%;
	overflow: hidden;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}
.feedback_form .input_captcha,
.register_form .input_captcha {
	float: left;
	width: 150px;
	font-size: 22px;
	font-weight: bold;
	text-transform: uppercase;
	margin-top: 15px;
	height: 40px;
}
.feedback_form .captcha,
.register_form .captcha {
	float: left;
	display: block;
	margin-top: 15px;
	margin-right: 10px;
}
.feedback_form .button_send {
	font-size: 16px;
	float: right;
	margin-top: 25px;
}
/* @end — Форма отправки обратной связи */


/* @group Корзина */
#purchases {
	width: 100%;
	overflow-x: auto;
}
#purchases tr {
	border-top: none;
	border-bottom: 1px solid var(--color-border);
	height: 70px;
}
#purchases tr:last-child {
	border-bottom: none;
}
#purchases th {
	vertical-align: top;
	padding-top: 10px;
	font-size: 16px;
	font-weight: 500;
}
#purchases .image {
	width: 50px;
	text-align: center;
}
#purchases .image a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 1px solid var(--color-border);
	background-color: var(--color-surface);
	border-radius: var(--radius-sm);
	overflow: hidden;
}
#purchases .image a img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 3px;
}
#purchases .name {
	padding-left: 10px;
	padding-right: 10px;
	text-align: left;
}
#purchases td.name {
	font-size: 14px;
}
#purchases td .download_attachment {
	white-space: nowrap;
	color: var(--color-success);
	padding: 4px 10px;
	background-color: #f0fdf4;
	border-radius: var(--radius-sm);
	line-height: 30px;
	border: 1px solid #bbf7d0;
}
#purchases .price {
	padding-left: 8px;
	padding-right: 8px;
	white-space: nowrap;
	text-align: right;
}
#purchases td.price {
	font-size: 14px;
}
#purchases .remove {
	padding-left: 15px;
	text-align: right;
}
#purchases .amount {
	font-size: 14px;
	padding-left: 5px;
	padding-right: 5px;
}
#purchases .amount select {
	font-size: 13px;
	padding: 4px 8px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
}
#purchases .coupon .name {
	font-size: 14px;
}
#purchases .coupon .name input.coupon_code {
	width: 200px;
}
#purchases .coupon .name input {
	font-size: 15px;
}

ul#deliveries {
	margin-top: 20px;
	margin-bottom: 20px;
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	padding: 20px 20px 0 20px;
	list-style: none;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}
ul#deliveries li {
	margin-bottom: 20px;
}
ul#deliveries li div.checkbox {
	float: left;
}
ul#deliveries li h3,
ul#deliveries li .description {
	display: block;
	margin-left: 25px;
}
/* @end */


/* @group Кабинет */
#orders_history {
	list-style: none;
}
#orders_history li {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--color-border);
}
#orders_history li:last-child {
	border-bottom: none;
}
#orders_history li a {
	font-size: 15px;
	font-weight: 500;
}
/* @end — Кабинет */


/* @group Детали заказа */
table.order_info {
	margin-right: 20px;
	margin-bottom: 20px;
	background-color: var(--color-surface);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}
table.order_info td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--color-border);
	font-size: 14px;
}
table.order_info tr:last-child td {
	border-bottom: none;
}
.checkout_button {
	padding: 10px 20px;
	border: 1px solid var(--color-success);
	background-color: #f0fdf4;
	color: var(--color-success-hover);
	font-size: 14px;
	border-radius: var(--radius-sm);
}
/* @end */


/* Сообщение с ошибкой */
.message_error {
	padding: 12px 16px;
	margin-bottom: 15px;
	margin-top: 10px;
	overflow: hidden;
	color: #991b1b;
	background-color: var(--color-error-bg);
	border: 1px solid var(--color-error-border);
	border-radius: var(--radius-sm);
	font-size: 14px;
}
/* @end */


/* @group Каталог на главной */
.home_catalog {
	margin-bottom: 30px;
}
.home_catalog_grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.home_catalog_item {
	background-color: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: box-shadow var(--transition), transform var(--transition);
	text-align: center;
}
.home_catalog_item:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}
.home_catalog_item a {
	display: block;
	text-decoration: none;
	color: inherit;
}
.home_catalog_img {
	padding: 16px 16px 0 16px;
}
.home_catalog_img img {
	width: 100%;
	height: 160px;
	object-fit: contain;
	border-radius: var(--radius-sm);
}
.home_catalog_name {
	padding: 12px 14px 6px;
	font-size: 15px;
	font-weight: 600;
	color: var(--color-text);
}
.home_catalog_name:hover {
	color: var(--color-primary);
}
.home_catalog_subcats {
	padding: 0 14px 14px;
	font-size: 12px;
	color: var(--color-text-secondary);
	line-height: 1.8;
}
.home_catalog_subcats a {
	color: var(--color-text-secondary);
	margin-right: 4px;
}
.home_catalog_subcats a:hover {
	color: var(--color-primary);
}
.home_catalog_subcats a::after {
	content: ",";
}
.home_catalog_subcats a:last-child::after {
	content: "";
}
/* @end — Каталог на главной */

/* @group Подкатегории на странице каталога */
.catalog_subcategories {
	margin-bottom: 30px;
}
.catalog_subcategories_grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.catalog_subcategories_item {
	background-color: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: box-shadow var(--transition), transform var(--transition);
	text-align: center;
	text-decoration: none;
	color: inherit;
}
.catalog_subcategories_item:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}
.catalog_subcategories_img {
	padding: 16px 16px 0 16px;
}
.catalog_subcategories_img img {
	width: 100%;
	height: 160px;
	object-fit: contain;
	border-radius: var(--radius-sm);
}
.catalog_subcategories_name {
	padding: 12px 14px 14px;
	font-size: 15px;
	font-weight: 600;
	color: var(--color-text);
}
.catalog_subcategories_item:hover .catalog_subcategories_name {
	color: var(--color-primary);
}
/* @end — Подкатегории на странице каталога */


/* ========================
   MEDIA QUERIES
   ======================== */

/* Планшеты: max-width 1024px */
@media (max-width: 1024px) {
	#right {
		flex: 0 0 100%;
		order: 3;
	}

	#all_brands {
		max-width: 100%;
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		align-items: center;
	}

	.home_catalog_grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.catalog_subcategories_grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Планшеты: max-width 768px */
@media (max-width: 768px) {
	#left {
		flex: 0 0 100%;
		order: 1;
	}

	#content {
		order: 2;
	}

	#right {
		order: 3;
	}

	.tiny_products .product {
		flex: 0 0 calc(50% - 10px);
	}

	.product {
		flex-direction: column;
	}
	.product .image {
		flex: 0 0 auto;
	}
	.product .image img {
		height: auto;
		max-height: 300px;
	}
	.product .images {
		flex: 0 0 auto;
	}
	.product .description {
		flex: 0 0 100%;
	}

	.products .product {
		flex-direction: column;
	}
	.products .product .image {
		flex: 0 0 auto;
	}
	.products .product .image img {
		/* width: 100%; */
		height: 200px;
	}
	.products .product .product_info {
		flex: 0 0 100%;
	}

	#contact {
		margin-top: 10px;
	}

	.home_catalog_grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.catalog_subcategories_grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Телефоны: max-width 480px */
@media (max-width: 480px) {
	#top {
		flex-direction: column;
		align-items: stretch;
	}

	#menu {
		justify-content: center;
		margin-bottom: 5px;
	}

	#cart_informer {
		margin-left: 0;
		text-align: center;
	}

	#account {
		text-align: center;
		margin: 5px 0;
		white-space: normal;
	}

	#header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	#logo {
		width: auto;
	}

	#contact {
		text-align: center;
		margin-top: 10px;
		margin-right: 0;
	}

	.tiny_products .product {
		flex: 0 0 100%;
	}
	.tiny_products .product .image img {
		height: 200px;
	}

	.home_catalog_grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.catalog_subcategories_grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.comment_form label {
		float: none;
		width: 100%;
		font-size: 14px;
	}

	.comment_form .input_name {
		width: 100%;
	}

	.comment_form .input_captcha,
	.cart_form .input_captcha {
		float: none;
		width: 100%;
	}

	.comment_form .captcha,
	.cart_form .captcha {
		float: none;
		margin-bottom: 10px;
	}

	.form {
		max-width: 100%;
	}

	#purchases {
		font-size: 12px;
	}

	.product .features label {
		width: 100%;
	}

	.product .features p {
		width: 100%;
	}

	.pagination {
		overflow-x: auto;
		white-space: nowrap;
		padding-bottom: 5px;
	}

	#footer {
		border-radius: 0;
	}
}

.cart-transfer-ghost {
	position: absolute;
	z-index: 9999;
	pointer-events: none;
	overflow: hidden;
	transition: left 0.6s ease-in-out, top 0.6s ease-in-out,
	            width 0.6s ease-in-out, height 0.6s ease-in-out,
	            opacity 0.6s ease-in-out;
}
