/*
Theme Name: ENTL
Theme URI: https://entl.ru/
Author: ENTL
Description: Лёгкие базовые стили темы и фиксы для строки поиска.
Version: 1.0.1
Text Domain: entl
*/

/* Подключение шрифта Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Стили для кнопок с иконками */
.contact-btn, .auth-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.btn-icon {
	display: none;
}

.btn-text {
	display: inline;
}

/* На мобильных показываем иконки вместо текста */
@media (max-width: 768px) {
	.btn-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	
	.btn-text {
		display: none;
	}
	
	.contact-btn, .auth-link {
		padding: 8px;
		min-width: 40px;
		height: 40px;
		border-radius: 8px;
		justify-content: center;
	}
	
	.user-menu {
		display: flex;
		gap: 8px;
	}
}

/* Мобильная шапка: аккуратные иконки справа в один ряд */
@media (max-width: 768px) {
	.topbar .container.topbar-inner {
		display: grid;
		grid-template-columns: 1fr auto auto;
		grid-auto-rows: minmax(0, auto);
		align-items: center;
		column-gap: 8px;
		row-gap: 12px;
	}

	.topbar .brand { grid-column: 1 / 2; }
	.topbar .header-search { grid-column: 1 / 4; }
	.topbar .header-contacts { grid-column: 2 / 3; justify-self: end; }
	.topbar .header-auth { grid-column: 3 / 4; justify-self: end; }

	.header-contacts, .header-auth {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	/* Единый размер и стиль кнопок-иконок */
	/* Жёстко выравниваем размеры и убираем различия у <button> и <a> */
	.site-header .contact-btn,
	.site-header .auth-link,
	.site-header .user-menu .auth-link {
		width: 44px;
		height: 44px;
		padding: 0;
		margin: 0;
		border: 0;
		box-sizing: border-box;
		border-radius: 10px;
		background: var(--entl-color-accent);
		color: #fff;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		line-height: 1;
		text-decoration: none;
	}

	/* Светлая тема кнопок при необходимости */
	.contact-btn .btn-icon svg, .auth-link .btn-icon svg {
		width: 20px;
		height: 20px;
		stroke: currentColor;
	}

	/* Убираем лишние внешние отступы у ссылок в меню пользователя */
	.user-menu .auth-link { margin: 0; }
}

/* На странице Управление пользователями: иконки под поиском в один ряд (моб.) */
@media (max-width: 768px) {
	.page-template-page-user-management-php .topbar .container.topbar-inner {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 12px !important;
	}

	.page-template-page-user-management-php .topbar .brand { 
		order: 0 !important; 
		width: auto !important;
		flex-shrink: 0 !important;
	}
	
	.page-template-page-user-management-php .topbar .header-search { 
		order: 1 !important; 
		width: 100% !important; 
		flex-shrink: 0 !important;
	}
	
	/* Создаём единый горизонтальный контейнер для всех 4 кнопок */
	.page-template-page-user-management-php .topbar .header-contacts,
	.page-template-page-user-management-php .topbar .header-auth {
		order: 2 !important;
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 6px !important;
		margin: 0 !important;
		flex-shrink: 0 !important;
	}

	/* Убираем промежуток между блоками иконок */
	.page-template-page-user-management-php .topbar .header-contacts + .header-auth {
		margin-left: 0 !important;
	}

	/* Иконки авторизации — строго в одну горизонтальную строку */
	.page-template-page-user-management-php .topbar .header-auth .user-menu {
		display: flex !important;
		flex-direction: row !important;
		gap: 6px !important;
		margin: 0 !important;
	}

	/* Единый размер и стили для всех иконок в горизонтальном ряду */
	.page-template-page-user-management-php .topbar .header-contacts .contact-btn,
	.page-template-page-user-management-php .topbar .header-auth .auth-link,
	.page-template-page-user-management-php .topbar .header-auth .user-menu .auth-link {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 44px !important;
		height: 44px !important;
		padding: 0 !important;
		margin: 0 !important;
		border: 0 !important;
		box-sizing: border-box !important;
		border-radius: 10px !important;
		background: #1e3a8a !important; /* Синий цвет логотипа ЭНТЕЛ */
		border: none !important; /* Убираем обводку */
		color: #fff !important;
		line-height: 1 !important;
		text-decoration: none !important;
		flex-shrink: 0 !important;
	}

}

/* Hide contact button on user-management page (all viewports) */
.page-template-page-user-management-php .topbar .header-contacts .contact-btn {
	display: none !important;
}

:root {
	--entl-color-bg: #ffffff;
	--entl-color-text: #0f172a;
	--entl-color-muted: #64748b;
	--entl-color-surface: #f4f6fa;
	--entl-color-border: #cbd5e1;
	--entl-color-accent: #1e3a8a; /* Синий цвет логотипа ЭНТЕЛ */
	--entl-container: 1200px;
	--entl-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body { 
	margin: 0; 
	color: var(--entl-color-text); 
	background: var(--entl-color-bg); 
	font-family: var(--entl-font-family);
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Улучшенная типографика с Inter */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--entl-font-family);
	font-weight: 600;
	line-height: 1.3;
	color: var(--entl-color-text);
	margin: 0 0 1rem 0;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.875rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 500; }
h5 { font-size: 1.125rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p {
	margin: 0 0 1rem 0;
	line-height: 1.6;
}

/* Улучшенные стили для кнопок и ссылок */
button, .btn, input[type="submit"] {
	font-family: var(--entl-font-family);
	font-weight: 500;
}

/* Улучшенные стили для форм */
input, textarea, select {
	font-family: var(--entl-font-family);
	font-weight: 400;
}
a { color: #121324; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--entl-container); margin: 0 auto; padding: 0 16px; }

/* ====== Шапка: аккуратный мобильный вид ====== */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--entl-color-border); }
.topbar { background:#fff; }
.topbar-inner { display:flex; align-items:center; gap: 20px; padding:8px 16px; }
.brand { display:flex; align-items:center; gap:10px; min-width:0; flex-shrink: 0; }
.brand img, .brand__logo-img, .custom-logo { max-height: 70px; height:auto; width:auto; display:block; }
.brand__title { font-size: 24px; font-weight: 700; color: #121324; }
.header-contacts { 
	display: flex !important; 
	align-items: center !important; 
	margin-left: auto !important; 
	visibility: visible !important;
	opacity: 1 !important;
}
.contact-btn { 
	background: #121324 !important; 
	color: white !important; 
	border: none !important; 
	padding: 10px 20px !important; 
	border-radius: 6px !important; 
	font-size: 14px !important; 
	font-weight: 600 !important; 
	cursor: pointer !important; 
	transition: background-color 0.2s ease, transform 0.2s ease !important; 
	white-space: nowrap !important; 
	display: inline-block !important;
	visibility: visible !important;
	opacity: 1 !important;
}
.contact-btn:hover { background: #2d3748 !important; transform: translateY(-1px) !important; }
.contact-btn:active { transform: translateY(0) !important; }

/* Блок авторизации */
.header-auth { margin-left: 20px; }
.auth-link { 
	display: inline-block; 
	padding: 8px 16px; 
	background: #121324; 
	color: #fff; 
	text-decoration: none; 
	border-radius: 6px; 
	font-size: 14px; 
	font-weight: 600; 
	transition: background-color 0.2s ease;
}
.auth-link:hover { 
	background: #2d3748; 
	text-decoration: none; 
}
.user-menu { 
	display: flex; 
	flex-direction: column; 
	gap: 8px; 
	align-items: flex-end; 
}
.user-greeting { 
	font-size: 14px; 
	color: var(--entl-color-text); 
	font-weight: 600; 
}
.admin-link { 
	background: #dc2626; 
}
.admin-link:hover { 
	background: #b91c1c; 
}
.logout-link { 
	background: #6b7280; 
	font-size: 12px; 
	padding: 6px 12px; 
}
.logout-link:hover { 
	background: #4b5563; 
}

/* Поле поиска в шапке */
.header-search { 
	position: absolute; 
	left: 50%; 
	transform: translateX(-50%); 
	width: 400px; 
	max-width: calc(100vw - 200px);
	margin: 0;
}
.search-form { position: relative; display: flex; align-items: center; }
.search-field { 
	width: 100%; 
	padding: 10px 45px 10px 16px; 
	border: 1px solid var(--entl-color-border); 
	border-radius: 8px; 
	font-size: 14px; 
	background: #fff;
	transition: border-color 0.2s ease;
}
.search-field:focus { 
	outline: none; 
	border-color: #121324; 
	box-shadow: 0 0 0 2px rgba(18, 19, 36, 0.1);
}
.search-submit { 
	position: absolute; 
	right: 8px; 
	top: 50%; 
	transform: translateY(-50%); 
	background: none; 
	border: none; 
	padding: 6px; 
	cursor: pointer; 
	color: var(--entl-color-muted);
	transition: color 0.2s ease;
}
.search-submit:hover { color: #121324; }
.search-submit svg { display: block; }

.header-actions { display: none; }
.nav-toggle { display:none; appearance:none; border:1px solid var(--entl-color-border); background:#fff; color:var(--entl-color-text); padding:8px 12px; border-radius:8px; }

/* Десктопная полоса навигации (опционально) */
.navbar { background:#fff; border-top: 1px solid var(--entl-color-border); }
.navbar .container { display:flex; align-items:center; justify-content:center; gap:20px; padding:6px 16px; }
.navbar .nav-toggle { display: none; }
.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav ul { list-style:none; margin:0; padding:0; display:flex; gap:18px; justify-content: center; }
.primary-nav a { color: var(--entl-color-text); font-weight:700; text-decoration:none; transition: all 0.2s ease; position: relative; padding: 8px 0; }
.primary-nav a:hover { color: #121324; }
.primary-nav a.current { color: #121324; }
.primary-nav a.current::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #121324; }

/* Скрываем мобильный логотип на десктопе по умолчанию */
.primary-nav .mobile-logo { display: none; }
.primary-nav::before { display: none; }

/* ====== Каталог товаров ====== */
.catalog-section, .popular-products, .news-section {
	margin: 80px 0;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
	border-bottom: 2px solid var(--entl-color-border);
	padding-bottom: 16px;
}

/* Заголовки без кнопок */
.section-header:only-child .section-title {
	margin: 0 auto;
}

/* Заголовки без кнопок - центрируем */
.section-header:not(:has(.section-link)) {
	justify-content: center;
}

/* Заголовки по центру */
.section-header-center {
	justify-content: center;
}

.section-title {
	font-size: 32px;
	font-weight: 800;
	margin: 0;
	color: var(--entl-color-text);
}

.section-link {
	color: #121324;
	font-weight: 600;
	text-decoration: none;
	padding: 8px 16px;
	border: 2px solid #121324;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.section-link:hover {
	background: #121324;
	color: white;
	text-decoration: none;
}

/* Сетка каталога категорий на главной странице */
.catalog-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

/* Адаптивность для каталога категорий на главной */
@media (max-width: 1200px) {
	.catalog-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.catalog-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	
	.catalog-category {
		height: auto !important;
		min-height: 360px !important;
		padding: 16px;
		justify-content: flex-start !important;
		overflow: visible;
		box-sizing: border-box;
	}
	
	.category-image {
		margin-bottom: 12px;
	}
	
	.category-header {
		margin-bottom: 10px;
	}
	
	.category-title {
		font-size: 16px;
		line-height: 1.3;
	}
	
	.subcategories-list {
		margin: 0;
		margin-bottom: 12px;
		flex-grow: 0 !important;
	}
	
	.category-actions {
		margin-top: 24px !important;
		padding-top: 8px;
		margin-bottom: 8px;
	}
	
	.btn {
		min-width: 140px;
		max-width: calc(100% - 32px);
		padding: 10px 18px;
		font-size: 14px;
		font-weight: 600;
	}
}

@media (max-width: 480px) {
	.catalog-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.catalog-category {
		height: auto !important;
		min-height: 320px !important;
		padding: 14px;
		justify-content: flex-start !important;
		overflow: visible;
		box-sizing: border-box;
	}
	
	.category-image {
		margin-bottom: 10px;
	}
	
	.category-header {
		margin-bottom: 8px;
	}
	
	.category-title {
		font-size: 15px;
		line-height: 1.2;
	}
	
	.subcategories-list {
		margin: 0;
		margin-bottom: 10px;
		flex-grow: 0 !important;
	}
	
	.category-actions {
		margin-top: 20px !important;
		padding-top: 6px;
		margin-bottom: 6px;
	}
	
	.btn {
		min-width: 120px;
		max-width: calc(100% - 28px);
		padding: 8px 16px;
		font-size: 13px;
		font-weight: 600;
	}
}

.catalog-category {
	background: var(--entl-color-surface);
	border: 1px solid var(--entl-color-border);
	border-radius: 12px;
	padding: 24px;
	transition: all 0.2s ease;
	text-align: center;
	display: flex;
	flex-direction: column;
	height: 320px;
	justify-content: space-between;
}

.category-image {
	margin-bottom: 20px;
	text-align: center;
	flex-shrink: 0;
}

.category-thumb {
	width: 100%;
	max-width: 200px;
	height: 120px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--entl-color-border);
}

.category-placeholder {
	width: 100%;
	max-width: 200px;
	height: 120px;
	background: var(--entl-color-border);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.placeholder-icon {
	font-size: 48px;
	opacity: 0.5;
}

.catalog-category:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.category-header {
	text-align: center;
	margin-bottom: 16px;
	flex-shrink: 0;
}

.category-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	text-align: center;
	line-height: 1.3;
}

.category-title a {
	color: var(--entl-color-text);
	text-decoration: none;
}

.category-title a:hover {
	color: #121324;
}

.category-count {
	display: none;
}

.subcategories-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex-grow: 1;
}

.subcategory-item {
	margin-bottom: 8px;
}

.subcategory-item a {
	color: var(--entl-color-muted);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s ease;
}

.subcategory-item a:hover {
	color: #121324;
}

.category-actions {
	text-align: center;
	margin-top: 0;
}

.btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
	min-width: 160px;
	max-width: 100%;
	box-sizing: border-box;
}

.btn-primary {
	background: #121324;
	color: white;
}

.btn-primary:hover {
	background: #1a1b2e;
	text-decoration: none;
}

/* Сетка товаров на главной странице */
.products-grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 24px !important;
}

/* Специально для страницы каталога */
.catalog-main .products-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 24px !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* Адаптивность для сетки товаров */
@media (max-width: 1200px) {
	.products-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
	
	.catalog-main .products-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 20px !important;
	}
}

@media (max-width: 768px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	
	.catalog-main .products-grid {
		grid-template-columns: repeat(1, 1fr) !important;
		gap: 16px !important;
	}
}

@media (max-width: 480px) {
	.products-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.catalog-main .products-grid {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
	}
}

.product-card {
	background: var(--entl-color-surface);
	border: 1px solid var(--entl-color-border);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Специально для карточек в каталоге */
.catalog-main .product-card {
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
}

.product-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Специально для hover эффекта карточек товаров в каталоге */
.catalog-main .product-card:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.product-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

/* Специально для ссылок товаров в каталоге */
.catalog-main .product-link {
	display: block !important;
	height: 100% !important;
}

/* Действия товара */
.product-actions {
	text-align: center;
	margin-top: auto;
	padding: 20px;
}

/* Специально для действий товаров в каталоге */
.catalog-main .product-actions {
	text-align: center !important;
	margin-top: auto !important;
	padding: 20px !important;
}

.catalog-main .product-actions .btn {
	background: #121324 !important;
	color: white !important;
	border: none !important;
	padding: 10px 20px !important;
	border-radius: 8px !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	transition: all 0.2s ease !important;
}

.catalog-main .product-actions .btn:hover {
	background: #1a1b2e !important;
	transform: translateY(-2px) !important;
}

.product-image {
	position: relative;
	overflow: hidden;
}

/* Специально для изображений товаров в каталоге */
.catalog-main .product-image {
	position: relative !important;
	overflow: hidden !important;
}

.product-thumb {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

/* Специально для изображений товаров в каталоге */
.catalog-main .product-thumb {
	height: 200px !important;
	object-fit: cover !important;
}

.product-card:hover .product-thumb {
	transform: scale(1.05);
}

/* Специально для hover эффекта изображений товаров в каталоге */
.catalog-main .product-card:hover .product-thumb {
	transform: scale(1.05) !important;
}

.product-info {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

/* Специально для информации о товаре в каталоге */
.catalog-main .product-info {
	flex-grow: 1 !important;
	display: flex !important;
	flex-direction: column !important;
}

.product-title {
	margin: 0 0 12px 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--entl-color-text);
}

.product-title a {
	color: var(--entl-color-text);
	text-decoration: none;
}

.product-title a:hover {
	color: #121324;
}

/* Специально для заголовков товаров в каталоге */
.catalog-main .product-title {
	margin: 0 0 12px 0 !important;
	font-size: 18px !important;
	font-weight: 700 !important;
}

.catalog-main .product-title a {
	color: var(--entl-color-text) !important;
	text-decoration: none !important;
}

.catalog-main .product-title a:hover {
	color: #121324 !important;
}

.product-excerpt {
	color: var(--entl-color-muted);
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 12px;
}

/* Специально для описания товаров в каталоге */
.catalog-main .product-excerpt {
	margin-bottom: 12px !important;
}

.product-meta {
	font-size: 12px;
	color: var(--entl-color-muted);
	margin-top: auto;
}

/* Специально для мета-информации товара в каталоге */
.catalog-main .product-meta {
	margin-top: auto !important;
}

.product-categories {
	background: #121324;
	color: white;
	padding: 8px 12px;
	border-radius: 6px;
	margin-right: 4px;
	font-size: 12px;
	font-weight: 500;
	display: inline-block;
}

/* Специально для категорий товаров в каталоге */
.catalog-main .product-categories {
	background: #121324 !important;
	color: white !important;
}

/* Сетка новостей */
.news-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

/* Адаптивность для сетки новостей */
@media (max-width: 1200px) {
	.news-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.news-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.news-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

.news-card {
	background: var(--entl-color-surface);
	border: 1px solid var(--entl-color-border);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.2s ease;
}

.news-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.news-thumb {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.news-info {
	padding: 20px;
}

.news-title {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--entl-color-text);
}

.news-meta {
	color: var(--entl-color-muted);
	font-size: 12px;
}

/* ====== Страница каталога ====== */
.archive-header {
	text-align: center;
	margin: 16px 0;
	padding: 12px 0;
	border-bottom: 2px solid var(--entl-color-border);
}

.archive-title {
	font-size: 36px;
	font-weight: 800;
	margin: 0 0 16px 0;
}

.archive-description {
	font-size: 18px;
	color: var(--entl-color-muted);
	margin: 0;
}

.catalog-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 48px;
	margin: 48px 0;
}

.catalog-sidebar {
	background: var(--entl-color-surface);
	border: 1px solid var(--entl-color-border);
	border-radius: 12px;
	padding: 24px;
	height: fit-content;
}

.sidebar-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 20px 0;
	border-bottom: 2px solid var(--entl-color-border);
	padding-bottom: 12px;
}

.category-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.category-group {
	margin-bottom: 16px;
}

.main-category-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--entl-color-text);
	text-decoration: none;
	font-weight: 600;
	padding: 8px 0;
	transition: color 0.2s ease;
}

.category-link-content {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.sidebar-category-thumb {
	width: 32px;
	height: 32px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid var(--entl-color-border);
}

.category-name {
	flex: 1;
}

.main-category-link:hover {
	color: #0ea5e9;
}

.main-category-link.loading {
	opacity: 0.7;
	pointer-events: none;
}

.main-category-link.loading::after {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 2px solid transparent;
	border-top: 2px solid currentColor;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-left: 8px;
}

.category-count {
	font-size: 12px;
	color: var(--entl-color-muted);
}

.subcategories-nav {
	list-style: none;
	margin: 8px 0 0 16px;
	padding: 0;
}

.subcategory-nav-item {
	margin-bottom: 4px;
}

.subcategory-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--entl-color-muted);
	text-decoration: none;
	font-size: 14px;
	padding: 4px 0;
	transition: color 0.2s ease;
}

.subcategory-link:hover {
	color: #0ea5e9;
}

.subcategory-link.loading {
	opacity: 0.7;
	pointer-events: none;
}

.subcategory-link.loading::after {
	content: '';
	display: inline-block;
	width: 10px;
	height: 10px;
	border: 2px solid transparent;
	border-top: 2px solid currentColor;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-left: 6px;
}

.subcategory-count {
	font-size: 11px;
	color: var(--entl-color-muted);
}

.category-group.current .main-category-link {
	color: #0ea5e9;
	font-weight: 700;
}

/* Фильтры */
.catalog-filters, .category-filters {
	display: flex;
	gap: 24px;
	margin-bottom: 32px;
	padding: 20px;
	background: var(--entl-color-surface);
	border: 1px solid var(--entl-color-border);
	border-radius: 12px;
}

.filter-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.filter-label {
	font-weight: 600;
	font-size: 14px;
}

.filter-select {
	padding: 8px 12px;
	border: 1px solid var(--entl-color-border);
	border-radius: 6px;
	background: white;
	font-size: 14px;
}

/* Подкатегории */
.subcategories-section {
	margin-bottom: 48px;
}

.subcategories-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* Адаптивность для сетки подкатегорий */
@media (max-width: 1200px) {
	.subcategories-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}
}

@media (max-width: 768px) {
	.subcategories-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

@media (max-width: 480px) {
	.subcategories-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

.subcategory-card {
	background: var(--entl-color-surface);
	border: 1px solid var(--entl-color-border);
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	transition: all 0.2s ease;
}

.subcategory-image {
	margin-bottom: 16px;
}

.subcategory-thumb {
	width: 100%;
	height: 100px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--entl-color-border);
}

.subcategory-placeholder {
	width: 100%;
	height: 100px;
	background: var(--entl-color-border);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.subcategory-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.subcategory-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.subcategory-title {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--entl-color-text);
}

.subcategory-count {
	font-size: 12px;
	color: var(--entl-color-muted);
}

/* Пагинация */
.catalog-pagination, .category-pagination {
	margin-top: 48px;
}

.catalog-pagination .page-numbers,
.category-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	min-width: 40px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--entl-color-border);
	color: var(--entl-color-text);
	text-decoration: none;
	margin: 0 4px;
	transition: all 0.2s ease;
}

.catalog-pagination .current,
.category-pagination .current {
	background: #121324;
	color: white;
	border-color: #121324;
	font-weight: 700;
}

.catalog-pagination .page-numbers:hover,
.category-pagination .page-numbers:hover {
	background: var(--entl-color-surface);
	border-color: #121324;
}

/* Пустые состояния */
.catalog-empty, .products-empty, .no-products {
	text-align: center;
	padding: 48px 20px;
	background: var(--entl-color-surface);
	border: 1px solid var(--entl-color-border);
	border-radius: 12px;
}

.catalog-empty p, .products-empty p, .no-products p {
	font-size: 16px;
	color: var(--entl-color-muted);
	margin: 0 0 20px 0;
}

.no-products-icon {
	font-size: 64px;
	margin-bottom: 16px;
	opacity: 0.5;
}

.no-products h3 {
	margin: 0 0 16px 0;
	font-size: 24px;
	font-weight: 700;
	color: var(--entl-color-text);
}

.no-categories {
	padding: 24px;
	text-align: center;
	background: var(--entl-color-surface);
	border-radius: 8px;
	border: 1px solid var(--entl-color-border);
}

.no-categories p {
	margin: 0;
	color: var(--entl-color-muted);
	font-style: italic;
}

/* Состояния загрузки и ошибок */
.loading-products {
	text-align: center;
	padding: 48px 20px;
	background: var(--entl-color-surface);
	border: 1px solid var(--entl-color-border);
	border-radius: 12px;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid var(--entl-color-border);
	border-top: 4px solid #121324;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 16px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loading-products p {
	margin: 0;
	color: var(--entl-color-muted);
	font-size: 16px;
}

.error-loading {
	text-align: center;
	padding: 48px 20px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 12px;
}

.error-icon {
	font-size: 64px;
	margin-bottom: 16px;
	opacity: 0.7;
}

.error-loading h3 {
	margin: 0 0 16px 0;
	font-size: 24px;
	font-weight: 700;
	color: #dc2626;
}

.error-loading p {
	margin: 0;
	font-size: 16px;
	color: #7f1d1d;
}

/* ====== Стили для админки ====== */
.term-image-wrap {
	margin: 15px 0;
	padding: 15px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.term-image-wrap label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.term-image-wrap #category_image_wrapper {
	margin: 10px 0;
	min-height: 50px;
}

.term-image-wrap #category_image_wrapper img {
	border: 2px solid #0073aa;
	border-radius: 3px;
}

.term-image-wrap .button-group {
	margin: 15px 0;
}

.term-image-wrap .button {
	margin-right: 10px;
	margin-bottom: 5px;
}

.term-image-wrap .button-secondary {
	background: #0073aa;
	border-color: #0073aa;
	color: #fff;
}

.term-image-wrap .button-secondary:hover {
	background: #005a87;
	border-color: #005a87;
}

.term-image-wrap .button-link-delete {
	color: #a00;
	border-color: #a00;
}

.term-image-wrap .button-link-delete:hover {
	background: #a00;
	color: #fff;
}

.term-image-wrap .description {
	margin-top: 10px;
	font-style: italic;
	color: #666;
}

/* ====== Мобайл-правки ====== */
@media (max-width: 768px) {
	/* Делаем кнопку меню видимой */
	.nav-toggle { display:inline-flex; }
	.header-contacts { margin-left: 0; }
	
	/* Изменяем структуру шапки на мобильных */
	.topbar-inner { 
		flex-direction: column; 
		align-items: stretch; 
		gap: 12px; 
		padding: 12px 16px; 
	}
	
	/* Логотип на мобильных - первый элемент */
	.brand { 
		order: 1; 
		justify-content: center; 
		margin-bottom: 8px; 
	}
	
	/* Поле поиска на мобильных - второй элемент */
	.header-search { 
		position: static; 
		transform: none; 
		order: 2; 
		width: 100%; 
		max-width: none; 
		margin: 0; 
		flex: none; 
	}
	
	/* Контакты на мобильных - третий элемент */
	.header-contacts { 
		order: 3; 
		margin-left: 0; 
		align-items: center; 
		justify-content: center; 
	}
	
	.contact-btn {
		font-size: 13px;
		padding: 8px 16px;
	}
	
	/* Авторизация на мобильных - четвертый элемент */
	.header-auth { 
		order: 4; 
		margin-left: 0; 
		align-self: center; 
	}
	.user-menu { 
		align-items: center; 
		gap: 6px; 
	}
	.auth-link { 
		font-size: 13px; 
		padding: 6px 12px; 
	}
	
	/* Показываем кнопку меню в navbar на мобильных */
	.navbar .container {
		justify-content: flex-end;
		padding: 8px 16px;
	}
	.navbar .nav-toggle {
		display: inline-flex;
	}
	.search-field { 
		font-size: 16px; /* Предотвращает зум на iOS */
		padding: 12px 45px 12px 16px; 
	}
	
	/* Логотип на мобильных */
	.brand img, .brand__logo-img, .custom-logo { max-height: 55px; }
	.brand__title { font-size: 20px; }

	/* Выезжающее меню справа */
	.primary-nav { position: fixed; top:0; right:0; bottom:0; width: min(340px, 86vw); background:#fff; border-left:1px solid var(--entl-color-border); transform: translateX(110%); transition: transform .25s ease-in-out; z-index:9999; padding:0; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
	.primary-nav.open { transform: translateX(0); }
	.primary-nav ul { flex-direction: column; gap:0; justify-content: flex-start; margin: 0; padding: 0; position: relative; z-index: 3; }
	.primary-nav li { border-bottom: 1px solid #f0f0f0; position: relative; z-index: 3; }
	.primary-nav a { display: block; padding: 16px 24px; color: var(--entl-color-text); font-weight: 600; text-decoration: none; transition: all 0.2s ease; position: relative; z-index: 3; cursor: pointer; user-select: none; }
	.primary-nav a:hover { background: #f8f9fa; color: #121324; }
	.primary-nav a.current { color: #121324; }
	.primary-nav a.current::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #121324; }
	
	/* Логотип в мобильном меню */
	.primary-nav::before { content: ''; display: block !important; height: 60px; background: #f8f9fa; border-bottom: 1px solid #e9ecef; position: relative; z-index: 1; }
	.primary-nav .mobile-logo { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: flex !important; align-items: center; justify-content: center; z-index: 2; }
	.primary-nav .mobile-logo img { max-height: 40px; }
	.primary-nav .mobile-logo .brand__title { font-size: 18px; font-weight: 700; color: #121324; }
	
	/* Кнопка закрытия мобильного меню */
	.mobile-menu-close {
		position: absolute;
		top: 16px;
		right: 24px;
		background: #f8f9fa;
		border: 2px solid #e9ecef;
		font-size: 20px;
		color: #6c757d;
		cursor: pointer;
		padding: 8px;
		border-radius: 50%;
		transition: all 0.2s ease;
		z-index: 100;
		width: 36px;
		height: 36px;
		display: flex !important;
		align-items: center;
		justify-content: center;
		font-weight: bold;
	}
	
	.mobile-menu-close:hover {
		background: #e9ecef;
		color: #121324;
		border-color: #121324;
	}
	
	/* Убираем перекрытие пунктов меню */
	.primary-nav ul {
		margin-top: 80px !important;
		padding: 0 !important;
	}
	
	.nav-overlay { position: fixed; inset:0; background: rgba(0,0,0,.6); opacity:0; visibility:hidden; transition: opacity .25s, visibility .25s; z-index:1000; pointer-events: none; }
	.nav-overlay.open { opacity:1; visibility:visible; pointer-events: auto; }
	
	/* Дополнительные гарантии для оверлея */
	.nav-overlay.open {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		display: block !important;
		background: rgba(0,0,0,.6) !important;
	}
	
	body.no-scroll { overflow:hidden; }

	/* Адаптация каталога */
	.catalog-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	
	.catalog-sidebar {
		order: -1;
	}

	.catalog-filters, .category-filters {
		flex-direction: column;
		gap: 16px;
	}

	.section-header {
		flex-direction: column;
		gap: 16px;
		align-items: flex-start;
	}

	.catalog-grid {
		grid-template-columns: 1fr;
	}

	.products-grid {
		grid-template-columns: 1fr;
	}

	.subcategories-grid {
		grid-template-columns: 1fr;
	}
}

/* ====== Десктопные стили для навигации ====== */
@media (min-width: 769px) {
	/* Скрываем мобильный логотип на десктопе */
	.primary-nav .mobile-logo { display: none !important; }
	.primary-nav::before { display: none !important; }
	
	/* Скрываем кнопку закрытия на десктопе */
	.mobile-menu-close { display: none !important; }
}

/* ====== Герой ====== */
.hero { position: relative; min-height: 420px; display: grid; place-items: center; text-align: center; border-bottom: 1px solid var(--entl-color-border); background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); z-index: 0; }
.hero::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.85)); z-index: 0; }
.hero__inner { position:relative; z-index:1; padding:56px 16px; background: rgba(0,0,0,.35); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); border:1px solid rgba(255,255,255,.08); border-radius:12px; }
.hero__title { font-size: clamp(28px, 4vw, 44px); margin:0 0 8px; font-weight:800; color:#fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero__subtitle { color: rgba(255,255,255,.9); margin:0; text-shadow: 0 2px 12px rgba(0,0,0,.6); }

/* ====== Сетка карточек ====== */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.grid--cards { margin: 32px 0 48px; }
.card { grid-column: span 12; background: var(--entl-color-surface); border: 1px solid rgba(15,23,42,0.08); border-radius: 12px; overflow: hidden; display:flex; flex-direction:column; }
.card__thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card__body { padding: 16px; }
.card__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.card__meta { color: var(--entl-color-muted); font-size: 14px; }
@media (min-width: 640px) { .card { grid-column: span 6; } }
@media (min-width: 960px) { .card { grid-column: span 4; } }

/* ====== Контент, пагинация, подвал ====== */
.content { padding: 32px 0 48px; }
.content h1, .content h2, .content h3 { color: #0f172a; }
.content img { max-width: 100%; height: auto; }
.pagination { display:flex; gap:8px; justify-content:center; margin:24px 0 0; }
.pagination .page-numbers { display:inline-flex; align-items:center; justify-content:center; height:36px; min-width:36px; padding:0 10px; border-radius:8px; border:1px solid var(--entl-color-border); color: var(--entl-color-text); }
.pagination .current { background:#121324; color:#fff; border-color:#121324; font-weight:700; }
.site-footer { margin-top:48px; border-top:1px solid var(--entl-color-border); background:#fff; }
.footer-inner { padding:24px 0; color: var(--entl-color-muted); font-size:14px; }

/* ====== СТРАНИЦА ТОВАРА ====== */

.product-page {
	padding: 40px 0;
}

.product-layout {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 40px;
	align-items: start;
}

/* ====== ЛЕВАЯ КОЛОНКА - КАТАЛОГ ====== */

.product-sidebar {
	position: sticky;
	top: 20px;
}

.catalog-navigation {
	background: white;
	border-radius: 12px;
	border: 1px solid var(--entl-color-border);
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
	margin: 0 0 20px 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--entl-color-text);
	border-bottom: 2px solid #10b981;
	padding-bottom: 12px;
}



/* Список товаров */
.products-list {
	margin-bottom: 20px;
}

.product-item {
	margin-bottom: 12px;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.2s ease;
}

.product-item:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-item.current {
	background: #10b981;
	border: 2px solid #10b981;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.product-item.current .product-link {
	color: white;
	background: #10b981;
	border-color: #10b981;
}

.product-item.current .product-title {
	color: white;
	font-weight: 700;
}

.product-item.current .product-excerpt {
	color: rgba(255, 255, 255, 0.9);
}

.product-item .product-link {
	display: block;
	padding: 12px;
	text-decoration: none;
	color: #121324;
	background: white;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.product-item .product-link:hover {
	text-decoration: none;
	color: #121324;
	background: #f8f9fa;
	border-color: #10b981;
}

.product-item .product-info {
	width: 100%;
}

.product-item .product-title {
	margin: 0 0 4px 0;
	font-size: 14px;
	font-weight: 600;
	color: #121324;
	line-height: 1.3;
}

.product-item .product-excerpt {
	margin: 0;
	font-size: 12px;
	color: #6c757d;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Кнопка "Все товары категории" */
.category-actions {
	margin-top: 20px;
	text-align: center;
}

.category-actions .btn {
	width: 100%;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
}

/* Состояния без товаров */
.no-products,
.no-category {
	padding: 20px;
	text-align: center;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.no-products p,
.no-category p {
	margin: 0;
	color: #6c757d;
	font-style: italic;
}

/* ====== ПРАВАЯ КОЛОНКА - ТОВАР ====== */

.product-content {
	background: white;
	border-radius: 12px;
	border: 1px solid var(--entl-color-border);
	padding: 32px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Основная информация о товаре - обтекание текстом */
.product-main-info {
	margin-bottom: 32px;
}

.product-article {
	margin: 0;
}

.product-header {
	margin-bottom: 32px;
	text-align: left;
}

.product-title {
	margin: 0 0 16px 0;
	font-size: 32px;
	font-weight: 700;
	color: var(--entl-color-text);
	line-height: 1.2;
	text-align: left;
}

.product-excerpt {
	font-size: 18px;
	color: #6c757d;
	line-height: 1.6;
	max-width: none;
	margin: 0;
}

.product-image {
	float: left;
	margin: 0 24px 16px 0;
	max-width: 300px;
	width: 100%;
}

.product-thumbnail {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid var(--entl-color-border);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	object-fit: cover;
}

.product-placeholder {
	width: 100%;
	height: 300px;
	background: #f8f9fa;
	border: 2px dashed #dee2e6;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.placeholder-icon {
	font-size: 48px;
	color: #adb5bd;
}

/* ====== ТАБЫ ====== */

.product-tabs {
	margin-top: 32px;
	clear: both;
}

.tabs-navigation {
	display: flex;
	border-bottom: 2px solid #e9ecef;
	margin-bottom: 24px;
	gap: 4px;
}

.tab-button {
	background: none;
	border: none;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	color: #6c757d;
	cursor: pointer;
	transition: all 0.2s ease;
	border-radius: 8px 8px 0 0;
	position: relative;
}

.tab-button:hover {
	background: #f8f9fa;
	color: #10b981;
}

.tab-button.active {
	color: #10b981;
	background: white;
	border-bottom: 2px solid #10b981;
	margin-bottom: -2px;
}

.tabs-content {
	min-height: 300px;
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

.tab-section {
	margin-bottom: 24px;
}

.tab-section h3 {
	margin: 0 0 16px 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--entl-color-text);
	border-bottom: 1px solid #e9ecef;
	padding-bottom: 8px;
}

.tab-section ul {
	margin: 0;
	padding-left: 20px;
}

.tab-section li {
	margin-bottom: 8px;
	color: var(--entl-color-text);
	line-height: 1.6;
}

.tab-section p {
	margin: 0 0 16px 0;
	color: var(--entl-color-text);
	line-height: 1.6;
}

.product-main-description {
	font-size: 16px;
	line-height: 1.6;
	color: var(--entl-color-text);
	overflow: hidden;
}

.product-main-description h2,
.product-main-description h3,
.product-main-description h4 {
	color: var(--entl-color-text);
	margin-top: 0;
	margin-bottom: 16px;
}

.product-main-description p {
	color: var(--entl-color-text);
	line-height: 1.6;
	margin-bottom: 16px;
}

.product-main-description ul,
.product-main-description ol {
	margin: 0 0 16px 0;
	padding-left: 20px;
}

.product-main-description li {
	margin-bottom: 8px;
	color: var(--entl-color-text);
	line-height: 1.6;
}

.product-description {
	border-top: 1px solid #e9ecef;
	padding-top: 24px;
}

.product-description h2,
.product-description h3,
.product-description h4 {
	color: var(--entl-color-text);
	margin-top: 24px;
	margin-bottom: 16px;
}

.product-description p {
	color: var(--entl-color-text);
	line-height: 1.6;
	margin-bottom: 16px;
}

/* ====== СТИЛИ ДЛЯ ССЫЛОК В ТАБАХ ====== */

.tab-section a {
	color: #10b981;
	text-decoration: none;
	transition: all 0.2s ease;
	border-bottom: 1px solid transparent;
}

.tab-section a:hover {
	color: #059669;
	border-bottom-color: #059669;
	text-decoration: none;
}

.tab-section a.btn,
.tab-section a.button {
	display: inline-block;
	background: #10b981;
	color: white;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	margin: 8px 8px 8px 0;
	transition: all 0.2s ease;
	border: 2px solid #10b981;
}

.tab-section a.btn:hover,
.tab-section a.button:hover {
	background: #059669;
	border-color: #059669;
	color: white;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tab-section a.btn-outline {
	background: transparent;
	color: #10b981;
	border: 2px solid #10b981;
}

.tab-section a.btn-outline:hover {
	background: #10b981;
	color: white;
}

.tab-section a.btn-large {
	padding: 12px 24px;
	font-size: 16px;
}

.tab-section a.btn-small {
	padding: 6px 12px;
	font-size: 14px;
}

.tab-section .download-links {
	margin: 20px 0;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.tab-section .download-links h4 {
	margin: 0 0 16px 0;
	color: var(--entl-color-text);
	font-size: 18px;
}

.tab-section .download-links .link-group {
	margin-bottom: 16px;
}

.tab-section .download-links .link-group:last-child {
	margin-bottom: 0;
}

.tab-section .download-links .link-group h5 {
	margin: 0 0 8px 0;
	color: #6c757d;
	font-size: 14px;
	font-weight: 600;
}

.tab-section .download-links .link-group .links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tab-section .download-links .link-group .links a {
	margin: 0;
}

.tab-section .video-links {
	margin: 20px 0;
}

.tab-section .video-links .video-item {
	margin-bottom: 16px;
	padding: 16px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.tab-section .video-links .video-item h5 {
	margin: 0 0 8px 0;
	color: var(--entl-color-text);
	font-size: 16px;
}

.tab-section .video-links .video-item p {
	margin: 0 0 12px 0;
	color: #6c757d;
	font-size: 14px;
}

.tab-section .video-links .video-item .video-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #dc3545;
	color: white;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s ease;
}

.tab-section .video-links .video-item .video-link:hover {
	background: #c82333;
	color: white;
	text-decoration: none;
	transform: translateY(-1px);
}

.tab-section .video-links .video-item .video-link::before {
	content: "▶";
	font-size: 12px;
}

/* ====== АДАПТИВНОСТЬ СТРАНИЦЫ ТОВАРА ====== */

@media (max-width: 1024px) {
	.product-layout {
		grid-template-columns: 250px 1fr;
		gap: 24px;
	}
	
	.product-content {
		padding: 24px;
	}
	
	.product-title {
		font-size: 28px;
	}
	
	.product-image {
		max-width: 250px;
		margin: 0 20px 16px 0;
	}
}

@media (max-width: 768px) {
	.product-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	
	.product-sidebar {
		position: static;
		order: 2;
	}
	
	.product-content {
		order: 1;
		padding: 20px;
	}
	
	.product-title {
		font-size: 24px;
	}
	
	.product-excerpt {
		font-size: 16px;
	}
	
	.product-image {
		max-width: 200px;
		margin: 0 16px 16px 0;
		float: left;
	}
	
	.product-main-description {
		overflow: hidden;
	}
	
	/* Стили для левой панели на мобильных */
	.products-list {
		display: block;
	}
	
	.product-item .product-link {
		padding: 16px;
	}
	
	.product-item .product-title {
		font-size: 16px;
		margin-bottom: 8px;
	}
	
	.product-item .product-excerpt {
		font-size: 14px;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}
	
	/* Табы по 2 в ряд на мобильных */
	.tabs-navigation {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
		border-bottom: none;
		margin-bottom: 20px;
	}
	
	.tab-button {
		padding: 12px 16px;
		font-size: 14px;
		border-radius: 8px;
		border: 1px solid #e9ecef;
		background: #f8f9fa;
		margin-bottom: 0;
		text-align: center;
	}
	
	.tab-button.active {
		background: #10b981;
		color: white;
		border-color: #10b981;
		border-bottom: none;
		margin-bottom: 0;
	}
	
	.tab-button:hover {
		background: #e9ecef;
		color: var(--entl-color-text);
	}
}

@media (max-width: 480px) {
	.product-page {
		padding: 20px 0;
	}
	
	.product-content {
		padding: 16px;
	}
	
	.product-title {
		font-size: 22px;
	}
	
	.product-image {
		max-width: 150px;
		margin: 0 12px 12px 0;
		float: left;
	}
	
	.product-main-description {
		overflow: hidden;
	}
	
	/* Табы по 2 в ряд на маленьких экранах */
	.tabs-navigation {
		grid-template-columns: repeat(2, 1fr);
		gap: 6px;
	}
	
	.tab-button {
		padding: 10px 12px;
		font-size: 13px;
	}
}

@media (max-width: 360px) {
	.product-image {
		max-width: 120px;
		margin: 0 10px 10px 0;
	}
	
	.product-title {
		font-size: 20px;
	}
	
	.tab-button {
		padding: 8px 10px;
		font-size: 12px;
	}
	
	/* Стили для каталога на очень маленьких экранах */
	.catalog-category {
		height: auto !important;
		min-height: 300px !important;
		padding: 12px;
		justify-content: flex-start !important;
		overflow: visible;
		box-sizing: border-box;
	}
	
	.category-image {
		margin-bottom: 8px;
	}
	
	.category-header {
		margin-bottom: 6px;
	}
	
	.category-title {
		font-size: 14px;
		line-height: 1.2;
	}
	
	.subcategories-list {
		margin: 0;
		margin-bottom: 8px;
		flex-grow: 0 !important;
	}
	
	.category-actions {
		margin-top: 16px !important;
		padding-top: 4px;
		margin-bottom: 4px;
	}
	
	.btn {
		min-width: 100px;
		max-width: calc(100% - 24px);
		padding: 6px 12px;
		font-size: 12px;
		font-weight: 600;
	}
}

/* ====== Глобальные стили для мобильного меню ====== */
.primary-nav {
	/* Гарантируем, что мобильное меню всегда поверх всего */
	z-index: 9999 !important;
	/* Убираем любые возможные конфликты */
	transform-style: preserve-3d;
	backface-visibility: hidden;
}

/* Принудительно показываем мобильное меню поверх всего */
@media (max-width: 768px) {
	.primary-nav {
		z-index: 9999 !important;
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		/* Дополнительные гарантии */
		will-change: transform;
		transform: translateZ(0);
	}
	
	.primary-nav a {
		pointer-events: auto !important;
		cursor: pointer !important;
		/* Дополнительные гарантии для ссылок */
		position: relative !important;
		z-index: 9999 !important;
	}
	
	/* Убираем любые возможные перекрытия */
			.primary-nav * {
			z-index: inherit !important;
		}
	}

/* ====== Дополнительные гарантии для мобильного меню ====== */
@media (max-width: 768px) {
	/* Принудительно устанавливаем z-index для всех элементов мобильного меню */
	.primary-nav,
	.primary-nav::before,
	.primary-nav .mobile-logo,
	.primary-nav ul,
	.primary-nav li,
	.primary-nav a {
		z-index: 9999 !important;
	}
	
	/* Убираем любые возможные перекрытия от других элементов */
	body > *:not(.primary-nav):not(.nav-overlay) {
		z-index: auto !important;
	}
	
	/* Скрываем кнопку закрытия на десктопе */
	.mobile-menu-close {
		display: none !important;
	}
	
	/* Принудительно показываем кнопку закрытия на мобильных */
	.mobile-menu-close {
		display: flex !important;
		z-index: 10000 !important;
		position: absolute !important;
		top: 16px !important;
		right: 24px !important;
		background: #f8f9fa !important;
		border: 2px solid #e9ecef !important;
		color: #6c757d !important;
		width: 36px !important;
		height: 36px !important;
	}
	
	/* Дополнительные гарантии для оверлея */
	.nav-overlay {
		z-index: 1000 !important;
		position: fixed !important;
		inset: 0 !important;
		background: rgba(0,0,0,.6) !important;
	}
	
	.nav-overlay.open {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		display: block !important;
		background: rgba(0,0,0,.6) !important;
	}
}

/* ====== Дополнительные гарантии для hero баннера ====== */
@media (max-width: 768px) {
	/* Принудительно устанавливаем низкий z-index для hero на мобильных */
	.hero,
	.hero::after,
	.hero__inner {
		z-index: 0 !important;
		position: relative !important;
	}
	
	/* Гарантируем, что мобильное меню поверх hero */
	.primary-nav {
		z-index: 9999 !important;
		position: fixed !important;
	}
	
	/* Гарантируем, что оверлей поверх hero */
	.nav-overlay {
		z-index: 1000 !important;
		position: fixed !important;
	}
}

/* ====== Принудительные стили для закрытия мобильного меню ====== */
@media (max-width: 768px) {
	/* Принудительно скрываем мобильное меню когда нет класса open */
	.primary-nav:not(.open) {
		transform: translateX(110%) !important;
		visibility: hidden !important;
		opacity: 0 !important;
	}
	
	/* Принудительно показываем мобильное меню когда есть класс open */
	.primary-nav.open {
		transform: translateX(0) !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	/* Принудительно скрываем оверлей когда нет класса open */
	.nav-overlay:not(.open) {
		opacity: 0 !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}
	
	/* Принудительно показываем оверлей когда есть класс open */
	.nav-overlay.open {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}
}

/* ====== КРИТИЧЕСКОЕ ИСПРАВЛЕНИЕ Z-INDEX ====== */
/* Эти стили должны быть в самом конце для максимального приоритета */

/* Мобильное меню поверх АБСОЛЮТНО ВСЕГО */
@media screen and (max-width: 768px) {
	body .primary-nav {
		z-index: 999999 !important;
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		background: #fff !important;
		border-left: 1px solid var(--entl-color-border) !important;
		width: min(340px, 86vw) !important;
		box-shadow: -5px 0 15px rgba(0,0,0,0.1) !important;
	}
	
	body .primary-nav.open {
		transform: translateX(0) !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	body .primary-nav:not(.open) {
		transform: translateX(110%) !important;
		visibility: hidden !important;
		opacity: 0 !important;
	}
	
	body .primary-nav ul,
	body .primary-nav li,
	body .primary-nav a,
	body .primary-nav .mobile-logo {
		z-index: 999999 !important;
	}
	
	/* Кнопка закрытия поверх всего */
	body .mobile-menu-close {
		z-index: 1000000 !important;
		position: absolute !important;
		top: 16px !important;
		right: 24px !important;
		display: flex !important;
		background: #f8f9fa !important;
		border: 2px solid #e9ecef !important;
		color: #6c757d !important;
		width: 36px !important;
		height: 36px !important;
		align-items: center !important;
		justify-content: center !important;
		font-weight: bold !important;
		cursor: pointer !important;
	}
	
	/* Оверлей под меню, но поверх всего остального */
	body .nav-overlay {
		z-index: 999998 !important;
		position: fixed !important;
		inset: 0 !important;
		background: rgba(0,0,0,.6) !important;
		pointer-events: none !important;
		opacity: 0 !important;
		visibility: hidden !important;
	}
	
	body .nav-overlay.open {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		display: block !important;
	}
	
	/* Hero баннер и header под всем */
	body .hero,
	body .hero::after,
	body .hero__inner,
	body .site-header {
		z-index: 0 !important;
		position: relative !important;
	}
}

/* ====== МОДАЛЬНОЕ ОКНО "СВЯЗАТЬСЯ С НАМИ" ====== */

.contact-modal {
	display: none;
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
	justify-content: center;
	align-items: center;
	padding: 20px;
	box-sizing: border-box;
}

.contact-modal-content {
	background: white;
	border-radius: 12px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	width: 100%;
	max-width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}

.contact-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 30px;
	border-bottom: 1px solid #e5e7eb;
	background: #f8f9fa;
	border-radius: 12px 12px 0 0;
}

.contact-modal-header h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #121324;
}

.contact-modal-close {
	background: none;
	border: none;
	font-size: 28px;
	color: #6b7280;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: background-color 0.2s ease;
}

.contact-modal-close:hover {
	background: #e5e7eb;
	color: #374151;
}

.contact-modal-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	padding: 30px;
}

.contact-form-section {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact-form-description {
	color: #6b7280;
	font-size: 14px;
	margin: 0 0 20px 0;
	line-height: 1.5;
}

.contact-topic-buttons {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.topic-btn {
	background: white;
	border: 2px solid #e5e7eb;
	color: #6b7280;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	flex: 1;
}

.topic-btn:hover {
	border-color: #121324;
	color: #121324;
}

.topic-btn.active {
	background: #121324;
	border-color: #121324;
	color: white;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-group label {
	font-weight: 600;
	color: #374151;
	font-size: 14px;
}

.form-group input,
.form-group textarea {
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 16px;
	transition: border-color 0.2s ease;
	font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #121324;
	box-shadow: 0 0 0 3px rgba(18, 19, 36, 0.1);
}

.form-group textarea {
	resize: vertical;
	min-height: 100px;
}

.form-submit {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 10px;
}

.contact-submit-btn {
	background: #121324;
	color: white;
	border: none;
	padding: 14px 20px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.contact-submit-btn:hover {
	background: #2d3748;
}

.contact-consent {
	font-size: 12px;
	color: #6b7280;
	margin: 0;
	line-height: 1.4;
}

.contact-info-section {
	background: #f8f9fa;
	padding: 30px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
}

.contact-info h3 {
	margin: 0 0 20px 0;
	font-size: 20px;
	font-weight: 700;
	color: #121324;
}

.contact-item {
	margin-bottom: 20px;
}

.contact-item:last-child {
	margin-bottom: 0;
}

.contact-item strong {
	color: #374151;
	font-weight: 600;
	display: block;
	margin-bottom: 5px;
}

.contact-item a {
	color: #121324;
	text-decoration: none;
	font-weight: 500;
}

.contact-item a:hover {
	text-decoration: underline;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
	body .contact-modal {
		z-index: 99999 !important; /* Увеличиваем z-index на мобильных устройствах */
	}
	
	.contact-modal-body {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 20px;
	}
	
	.contact-modal-header {
		padding: 15px 20px;
	}
	
	.contact-modal-header h2 {
		font-size: 20px;
	}
	
	.contact-topic-buttons {
		flex-direction: column;
		gap: 8px;
	}
	
	.topic-btn {
		flex: none;
	}
	
	.contact-info-section {
		padding: 20px;
	}
	
	.contact-info h3 {
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	body .contact-modal {
		padding: 10px;
		z-index: 99999 !important; /* Увеличиваем z-index на очень маленьких экранах */
	}
	
	.contact-modal-content {
		max-height: 95vh;
	}
	
	.contact-modal-body {
		padding: 15px;
		gap: 20px;
	}
	
	.contact-modal-header {
		padding: 12px 15px;
	}
	
	.contact-modal-header h2 {
		font-size: 18px;
	}
	
	.contact-info-section {
		padding: 15px;
	}
}


/* Force hide contact button on user-management page (mobile + desktop) */
.page-template-page-user-management-php .topbar .header-contacts .contact-btn,
.page-template-page-user-management-php .header-contacts .contact-btn,
.page-template-page-user-management-php .contact-btn {
	display: none !important;
}

/* Цвета кнопок в стиле логотипа ЭНТЕЛ на странице управления пользователями */
.page-template-page-user-management-php .topbar .header-contacts .contact-btn,
.page-template-page-user-management-php .topbar .header-auth .auth-link,
.page-template-page-user-management-php .topbar .header-auth .user-menu .auth-link {
	background: #1e3a8a !important; /* Синий цвет логотипа */
	color: #fff !important;
	border: none !important; /* Убираем обводку */
}

.page-template-page-user-management-php .topbar .header-contacts .contact-btn:hover,
.page-template-page-user-management-php .topbar .header-auth .auth-link:hover,
.page-template-page-user-management-php .topbar .header-auth .user-menu .auth-link:hover {
	background: #2563eb !important; /* Более светлый синий при наведении */
	color: #fff !important;
}

/* Дополнительное правило для принудительного применения цветов логотипа */
body.page-template-page-user-management-php .topbar .header-contacts .contact-btn,
body.page-template-page-user-management-php .topbar .header-auth .auth-link,
body.page-template-page-user-management-php .topbar .header-auth .user-menu .auth-link {
	background: #1e3a8a !important; /* Синий цвет логотипа ЭНТЕЛ */
	border: none !important; /* Убираем обводку */
	color: #fff !important;
}

/* Общее правило для всех кнопок на сайте */
.contact-btn,
.auth-link {
	background: #1e3a8a !important; /* Синий цвет логотипа ЭНТЕЛ */
	border: none !important; /* Убираем обводку */
	color: #fff !important;
}

.contact-btn:hover,
.auth-link:hover {
	background: #2563eb !important; /* Более светлый синий при наведении */
	color: #fff !important;
}

/* Скрываем кнопку "Личный кабинет" на странице личного кабинета */
.page-template-page-personal-cabinet-php .header-auth .auth-link[href*="personal-cabinet"],
body.page-template-page-personal-cabinet-php .header-auth .auth-link[href*="personal-cabinet"] {
	display: none !important;
}

/* Исправляем разные размеры кнопок на десктопе */
@media (min-width: 769px) {
	.contact-btn,
	.auth-link {
		padding: 10px 20px !important;
		font-size: 14px !important;
		font-weight: 600 !important;
		border-radius: 6px !important;
		min-height: 40px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		white-space: nowrap !important;
		box-sizing: border-box !important;
	}
}

/* Исправляем центрирование иконок на мобильных устройствах */
@media (max-width: 768px) {
	.contact-btn,
	.auth-link {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 44px !important;
		height: 44px !important;
		padding: 0 !important;
		margin: 0 !important;
		border: 0 !important;
		box-sizing: border-box !important;
		border-radius: 10px !important;
		background: #1e3a8a !important;
		color: #fff !important;
		line-height: 1 !important;
		text-decoration: none !important;
		flex-shrink: 0 !important;
	}
	
	.btn-icon {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		height: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	
	.btn-icon svg {
		width: 20px !important;
		height: 20px !important;
		stroke: currentColor !important;
		display: block !important;
		margin: 0 !important;
		padding: 0 !important;
	}
}

/* Исправляем изображения товаров на странице каталога */
@media (max-width: 768px) {
	/* Исправляем обрезание изображений товаров - более специфичные селекторы */
	main article img,
	body article img,
	.catalog-main article img,
	article img {
		width: 100% !important;
		height: auto !important;
		max-height: 200px !important;
		object-fit: contain !important;
		object-position: center !important;
		display: block !important;
		margin: 0 auto !important;
		border-radius: 8px !important;
		background: #f8f9fa !important;
	}
	
	/* Изменяем порядок элементов: картинка сверху, описание снизу */
	article {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 16px !important;
		padding: 16px !important;
		background: var(--entl-color-surface) !important;
		border: 1px solid var(--entl-color-border) !important;
		border-radius: 12px !important;
		overflow: visible !important;
	}
	
	/* Контейнер для изображения */
	article > a {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 16px !important;
		text-decoration: none !important;
		color: inherit !important;
	}
	
	/* Изображение товара - более специфичные селекторы */
	main article img,
	body article img,
	.catalog-main article img,
	article img {
		order: 1 !important;
		width: 100% !important;
		height: auto !important;
		max-height: 200px !important;
		object-fit: contain !important;
		object-position: center !important;
		background: #f8f9fa !important;
		border-radius: 8px !important;
	}
	
	/* Контейнер с текстом */
	article > a > div {
		order: 2 !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 8px !important;
	}
	
	/* Заголовок товара */
	article h3 {
		order: 1 !important;
		margin: 0 !important;
		font-size: 16px !important;
		font-weight: 600 !important;
		color: var(--entl-color-text) !important;
		line-height: 1.3 !important;
	}
	
	/* Описание товара */
	article p {
		order: 2 !important;
		margin: 0 !important;
		font-size: 14px !important;
		color: var(--entl-color-muted) !important;
		line-height: 1.4 !important;
		display: -webkit-box !important;
		-webkit-line-clamp: 3 !important;
		line-clamp: 3 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
	}
	
	/* Дополнительные специфичные селекторы для изображений товаров */
	.product-thumb,
	.catalog-main .product-thumb,
	article .product-thumb,
	main article .product-thumb,
	body article .product-thumb,
	.product-image img,
	article .product-image img,
	.product-link .product-image img,
	article .product-link .product-image img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		max-height: 300px !important;
		min-height: 200px !important;
		object-fit: contain !important;
		object-position: center !important;
		display: block !important;
		margin: 0 auto !important;
		border-radius: 8px !important;
		background: #f8f9fa !important;
	}
	
	/* Исправляем контейнер изображения */
	.product-image,
	article .product-image,
	.product-link .product-image {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		max-height: 300px !important;
		min-height: 200px !important;
		overflow: visible !important;
		display: block !important;
		margin: 0 auto !important;
		text-align: center !important;
	}
	
	/* Изменяем порядок элементов в ссылке товара */
	.product-link,
	article .product-link,
	.product-card .product-link,
	article.product-card .product-link {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 16px !important;
		text-decoration: none !important;
		color: inherit !important;
	}
	
	/* Порядок элементов: изображение сверху */
	.product-image,
	article .product-image {
		order: 1 !important;
	}
	
	/* Порядок элементов: информация снизу */
	.product-info,
	article .product-info {
		order: 2 !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 8px !important;
	}
	
	/* Исправляем порядок внутри .product-info: название сверху, описание снизу */
	.product-title,
	article .product-title {
		order: 1 !important;
		margin: 0 !important;
		font-size: 16px !important;
		font-weight: 600 !important;
		color: var(--entl-color-text) !important;
		line-height: 1.3 !important;
	}
	
	.product-excerpt,
	article .product-excerpt {
		order: 2 !important;
		margin: 0 !important;
		font-size: 14px !important;
		color: var(--entl-color-muted) !important;
		line-height: 1.4 !important;
		display: -webkit-box !important;
		-webkit-line-clamp: 3 !important;
		line-clamp: 3 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
	}
	
}

/* Ширина для .product-thumbnail (для всех устройств) */
.product-thumbnail {
	width: 99% !important;
}

/* Стили для хлебных крошек */
.breadcrumbs {
	background: var(--entl-color-surface);
	border-bottom: 1px solid var(--entl-color-border);
	padding: 8px 0;
	margin-bottom: 8px;
}

.breadcrumb-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.4;
}

.breadcrumb-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.breadcrumb-link {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--entl-color-muted);
	text-decoration: none;
	transition: color 0.2s ease;
	padding: 4px 8px;
	border-radius: 4px;
}

.breadcrumb-link:hover {
	color: var(--entl-color-accent);
	background: rgba(30, 58, 138, 0.1);
}

.breadcrumb-link svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.breadcrumb-current {
	color: var(--entl-color-text);
	font-weight: 500;
	padding: 4px 8px;
	background: rgba(30, 58, 138, 0.1);
	border-radius: 4px;
	border: 1px solid rgba(30, 58, 138, 0.2);
}

.breadcrumb-separator {
	width: 16px;
	height: 16px;
	color: var(--entl-color-muted);
	flex-shrink: 0;
}

/* Адаптивность хлебных крошек */
@media (max-width: 768px) {
	.breadcrumbs {
		padding: 6px 0;
		margin-bottom: 6px;
	}
	
	.breadcrumb-list {
		font-size: 13px;
		gap: 6px;
	}
	
	.breadcrumb-item {
		gap: 6px;
	}
	
	.breadcrumb-link,
	.breadcrumb-current {
		padding: 3px 6px;
	}
	
	.breadcrumb-link svg,
	.breadcrumb-separator {
		width: 14px;
		height: 14px;
	}
	
	/* Скрываем текст на очень маленьких экранах, оставляем только иконки */
	@media (max-width: 480px) {
		.breadcrumb-link span {
			display: none;
		}
		
		.breadcrumb-current {
			font-size: 12px;
		}
	}
}

/* Исправляем отображение на странице отдельного продукта */
@media (max-width: 768px) {
	/* Для страницы отдельного продукта */
	.single-product article {
		display: flex !important;
		flex-direction: column !important;
		gap: 16px !important;
	}
	
	/* Заголовок продукта на странице отдельного продукта - ПЕРВЫЙ */
	.single-product .product-header,
	.single-product .product-header h1,
	.single-product h1 {
		order: 1 !important;
		margin: 0 0 12px 0 !important;
		font-size: 18px !important;
		font-weight: 700 !important;
		color: var(--entl-color-text) !important;
		line-height: 1.3 !important;
	}
	
	/* Изображение продукта на странице отдельного продукта - ВТОРОЙ */
	.single-product .product-image,
	.single-product .product-thumbnail {
		order: 2 !important;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		max-height: 300px !important;
		min-height: 200px !important;
		object-fit: contain !important;
		object-position: center !important;
		display: block !important;
		margin: 0 auto !important;
		border-radius: 8px !important;
		background: #f8f9fa !important;
	}
	
	/* Контейнер с изображением и описанием - ТРЕТИЙ */
	.single-product .product-main-info {
		order: 3 !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 16px !important;
	}
	
	/* Изображение внутри .product-main-info - ПЕРВОЕ */
	.single-product .product-main-info .product-image {
		order: 1 !important;
	}
	
	/* Описание внутри .product-main-info - ВТОРОЕ */
	.single-product .product-main-info .product-main-description,
	.single-product .product-main-info p,
	.single-product .product-description {
		order: 2 !important;
		margin: 0 !important;
		font-size: 14px !important;
		color: var(--entl-color-muted) !important;
		line-height: 1.4 !important;
		display: block !important;
		visibility: visible !important;
	}
	
	/* Табы продукта на странице отдельного продукта - ЧЕТВЕРТЫЙ */
	.single-product .product-tabs {
		order: 4 !important;
		margin-top: 16px !important;
	}
}

/* ====== СТИЛИ ДЛЯ СИСТЕМЫ ПОДТВЕРЖДЕНИЯ ПОЛЬЗОВАТЕЛЕЙ ====== */

/* Стили для ограниченного доступа к ПО */
.software-access-denied {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
}

.software-access-denied .access-message h3 {
    margin: 0 0 20px 0;
    color: #856404;
    font-size: 24px;
    font-weight: 600;
}

.software-access-denied .access-message p {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 16px;
    line-height: 1.5;
}

.software-access-denied .access-message ol {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
    color: #856404;
}

.software-access-denied .access-message li {
    margin-bottom: 8px;
    font-size: 14px;
}

.access-actions {
    margin-top: 25px;
}

.access-actions .btn {
    display: inline-block;
    padding: 12px 24px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.access-actions .btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Адаптивность для ограниченного доступа */
@media (max-width: 768px) {
    .software-access-denied {
        padding: 20px;
        margin: 15px 0;
    }
    
    .software-access-denied .access-message h3 {
        font-size: 20px;
    }
    
    .software-access-denied .access-message p {
        font-size: 14px;
    }
    
    .access-actions .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Стили для модального окна входа */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
    position: relative;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px 16px 0 0;
}

.login-modal-header h3 {
    margin: 0;
    color: #121324;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-modal-close {
    background: #f8f9fa;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.login-modal-close:hover {
    background: #e9ecef;
    color: #121324;
    transform: scale(1.05);
}

.login-modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.025em;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 4px rgba(0, 124, 186, 0.1);
    transform: translateY(-1px);
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #007cba;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.form-actions .btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.form-actions .btn-primary:active {
    transform: translateY(0);
}

.form-actions .btn-secondary {
    background: #f8f9fa;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.form-actions .btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.login-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .login-modal {
        padding: 16px;
        align-items: flex-start;
        padding-top: 60px;
    }
    
    .login-modal-content {
        max-width: 100%;
        border-radius: 12px;
        margin: 0;
    }
    
    .login-modal-header {
        padding: 20px 20px 16px 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .login-modal-header h3 {
        font-size: 20px;
    }
    
    .login-modal-body {
        padding: 20px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="password"] {
        font-size: 16px; /* Предотвращает зум на iOS */
        padding: 16px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }
    
    .form-actions .btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .login-modal-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .login-modal {
        padding: 12px;
        padding-top: 40px;
    }
    
    .login-modal-content {
        border-radius: 8px;
    }
    
    .login-modal-header {
        padding: 16px 16px 12px 16px;
        border-radius: 8px 8px 0 0;
    }
    
    .login-modal-header h3 {
        font-size: 18px;
    }
    
    .login-modal-body {
        padding: 16px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="password"] {
        padding: 14px;
        font-size: 16px;
    }
    
    .form-actions {
        margin-top: 20px;
    }
    
    .form-actions .btn {
        padding: 14px 16px;
    }
}

/* Дополнительные улучшения для модального окна */
.login-modal-content::-webkit-scrollbar {
    width: 6px;
}

.login-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.login-modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.login-modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


