/* --- Основная структура шапки --- */
.site-header {
	position: relative;
	top: auto;
	z-index: 100;
	background: var(--chc-color-bg);
	border-bottom: 1px solid var(--chc-color-border);
	transition: box-shadow 0.2s ease;
}

/* --- Sticky Header (Липкая шапка) --- */
.site-header.has-sticky-header {
	position: sticky !important;
	top: 0 !important;
	z-index: 99999 !important;
}

.site-header.is-sticky {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Учет админ-панели WP */
body.admin-bar .site-header.has-sticky-header {
	top: 32px !important;
}

@media (max-width: 782px) {
	body.admin-bar .site-header.has-sticky-header {
		top: 46px !important;
	}
}

/* --- Внутренние блоки --- */
.chc-header-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 14px 0;
	flex-wrap: nowrap;
}

.site-branding {
	order: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	min-width: 0;
}

.site-logo img,
.custom-logo {
	display: block;
	max-height: var(--chc-logo-height-desktop, 54px);
	width: auto;
}

@media (max-width: 768px) {
	.site-logo img,
	.custom-logo {
		max-height: var(--chc-logo-height-mobile, 42px);
	}
}

.site-branding-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.site-title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.2;
}

.site-title a {
	text-decoration: none;
	color: inherit;
}

.site-description {
	margin: 4px 0 0;
	font-size: 0.9rem;
	line-height: 1.3;
	color: var(--chc-color-muted);
}

/* --- Поиск --- */
.chc-header-search {
	order: 3;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	margin-left: auto;
}

.chc-header-search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.chc-header-search-field {
	width: 200px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--chc-color-border);
	border-radius: var(--chc-radius);
	background: #fff;
	color: var(--chc-color-text);
}

.chc-header-search-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--chc-color-border);
	border-radius: var(--chc-radius);
	background: #fff;
	cursor: pointer;
	text-decoration: none;
}

/* --- Иконки и счетчики (Cart, Wishlist, Compare) --- */
.chc-header-icons {
	order: 4;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

.chc-header-icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid var(--chc-color-border);
	border-radius: var(--chc-radius);
	background: #fff;
	color: var(--chc-color-text);
	text-decoration: none;
	white-space: nowrap;
}

.chc-cart-count,
.chc-wishlist-count,
.chc-compare-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 1px 6px 0;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 0.72rem;
	line-height: 1;
	box-sizing: border-box;
}

.chc-cart-count[data-cart-count="0"],
.chc-wishlist-count[data-count="0"],
.chc-compare-count[data-count="0"] {
	opacity: 0.72;
}

/* --- Мини-корзина --- */
.chc-header-cart-wrap {
	position: relative;
}

.chc-mini-cart {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	width: 360px;
	max-width: min(90vw, 360px);
	padding: 16px;
	border: 1px solid var(--chc-color-border);
	border-radius: var(--chc-radius);
	background: #fff;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.2s ease;
	z-index: 120;
}

.chc-header-cart-wrap:hover .chc-mini-cart,
.chc-header-cart-wrap:focus-within .chc-mini-cart {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.chc-mini-cart .woocommerce-mini-cart-item {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 10px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--chc-color-border);
}

.chc-mini-cart .woocommerce-mini-cart__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 16px;
}

/* --- Нижняя панель меню (Menu Bar) --- */
.chc-header-menu-bar {
	border-top: 1px solid var(--chc-color-border);
	background: #fff;
}

.chc-header-menu-bar .primary-navigation ul {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 22px;
	margin: 0;
	padding: 0;
	min-height: 44px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.chc-header-menu-bar .primary-navigation a {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	text-decoration: none;
	white-space: nowrap;
	font-size: 0.95rem;
}

.chc-header-menu-bar .primary-navigation {
	flex: 1 1 auto;
}

.chc-header-menu-bar .chc-container {
	display: flex;
	align-items: center;
	gap: 16px;
}

.chc-catalog-dropdown {
	flex: 0 0 auto;
}

.chc-mobile-menu-toggle {
	display: none;
}

/* --- АДАПТИВНОСТЬ --- */

@media (max-width: 1200px) {
	.chc-header-inner {
		flex-wrap: nowrap;
	}

	.site-branding {
		flex: 0 0 auto;
	}

	.chc-header-search {
		flex: 0 0 auto;
		margin-left: auto;
	}

	.chc-header-icons {
		flex: 0 0 auto;
		margin-left: 10px;
	}
}

@media (max-width: 768px) {
	.chc-header-search, .chc-header-icons { flex: 1 1 100%; margin-left: 0; }
	.chc-header-search-field { width: 100%; }
	.chc-mini-cart { right: auto; left: 0; width: min(92vw, 360px); }
	
	.chc-mobile-menu-toggle {
	display: none;
	width: 100%;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 14px;
	border: 1px solid var(--chc-color-border);
	border-radius: var(--chc-radius);
	background: #fff;
	color: var(--chc-color-text);
	font-weight: 600;
	cursor: pointer;
    }
	
	.chc-header-menu-bar .primary-navigation {
	display: none;
	margin-top: 10px;
    }
    
    .chc-header-menu-bar.is-open .primary-navigation {
    	display: block;
    }
    
    .chc-header-menu-bar .primary-navigation ul {
    	display: grid;
    	gap: 6px;
    	padding: 8px 0;
    	overflow: visible;
    }
    
    .chc-header-menu-bar .primary-navigation a {
    	display: flex;
    	align-items: center;
    	min-height: 42px;
    	padding: 0 12px;
    }
}

@media (max-width: 560px) {
	.site-branding {
		flex-direction: row;
		align-items: center;
		gap: 10px;
	}

	.site-branding-text {
		min-width: 0;
	}

	.site-title {
		font-size: 1rem;
	}

	.site-description {
		display: none;
	}
}

/* MOBILE MENU FIX */
.chc-mobile-menu-toggle {
	display: none !important;
}

@media (max-width: 768px) {
	.chc-mobile-menu-toggle {
		display: inline-flex !important;
	}
}

@media (max-width: 768px) {

	.chc-header-menu-bar .primary-navigation {
		display: none !important;
	}

	.chc-header-menu-bar.is-open .primary-navigation {
		display: block !important;
	}
}

@media (max-width: 768px) {
	.chc-header-inner {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.site-branding {
		width: 100%;
	}

	.chc-header-icons {
		width: 100%;
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
	}

	.chc-header-icon-link {
		padding: 0 8px;
		min-height: 38px;
	}

	.chc-header-icon-label {
		display: none;
	}

	.chc-header-search {
		width: 100%;
	}

	.chc-header-search-form {
		width: 100%;
	}

	.chc-header-search-field {
		width: 100%;
	}
}

@media (max-width: 768px) {

	.chc-header-icon-link {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;

		width: 42px !important;
		height: 42px !important;
		min-width: 42px !important;

		padding: 0 !important;

		border-radius: 8px !important; /* ← вот тут магия */
	}

	.chc-header-icon-label {
		display: none !important;
	}

	.chc-header-icon {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		font-size: 16px;
		line-height: 1;
	}

	.chc-header-icons {
		display: flex !important;
		gap: 8px;
		justify-content: space-between;
	}
}

@media (max-width: 768px) {

	.chc-header-icon-link {
		position: relative;

		display: flex !important;
		align-items: center !important;
		justify-content: center !important;

		width: 48px !important;
		height: 42px !important;

		padding: 0 !important;

		border-radius: 8px !important;
	}

	.chc-header-icon {
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 18px;
		line-height: 1;
	}

	/* Счётчик выносим в угол */
	.chc-cart-count,
	.chc-wishlist-count,
	.chc-compare-count {
		position: absolute;
		top: 4px;
		right: 4px;

		min-width: 16px;
		height: 16px;
		padding: 0 4px;

		font-size: 10px;
		border-radius: 999px;
	}

	.chc-header-icon-label {
		display: none !important;
	}
}

/* Header icon polish */
.chc-header-icon-link {
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.chc-header-icon-link:hover,
.chc-header-icon-link:focus-visible {
	background: #f5f5f5;
	border-color: #cfcfcf;
	transform: translateY(-1px);
}

.chc-header-wishlist-link.is-active,
.chc-header-compare-link.is-active {
	background: #111;
	color: #fff;
	border-color: #111;
}

.chc-header-wishlist-link.is-active .chc-wishlist-count,
.chc-header-compare-link.is-active .chc-compare-count {
	background: #fff;
	color: #111;
}

.chc-cart-count,
.chc-wishlist-count,
.chc-compare-count {
	transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.chc-count-bump {
	animation: chc-count-bump 0.28s ease;
}

@keyframes chc-count-bump {
	0% {
		transform: scale(1);
	}
	45% {
		transform: scale(1.22);
	}
	100% {
		transform: scale(1);
	}
}

html,
body {
	overflow: visible !important;
}

.site-header.has-sticky-header {
	position: sticky !important;
	top: 0 !important;
	z-index: 99999 !important;
}

.site-header:not(.has-sticky-header) {
	position: relative !important;
	top: auto !important;
}

body.admin-bar .site-header.has-sticky-header {
	top: 32px !important;
}

@media (max-width: 782px) {
	body.admin-bar .site-header.has-sticky-header {
		top: 46px !important;
	}
}

.chc-menu-close {
	display: none;
}

.chc-header-menu-bar.is-open .chc-menu-icon {
	display: none;
}

.chc-header-menu-bar.is-open .chc-menu-close {
	display: inline;
}

/* Search toggle */
.chc-search-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--chc-color-border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}

.chc-header-search-dropdown {
	transition: all 0.2s ease;
}

/* MOBILE */
@media (max-width: 768px) {

	.chc-search-toggle {
		display: flex;
	}

	.chc-header-search-dropdown {
		display: none;
		width: 100%;
		margin-top: 8px;
	}

	.chc-header-search.is-open .chc-header-search-dropdown {
		display: block;
	}
}

@media (max-width: 768px) {
	.chc-header-search {
		width: 100%;
		display: grid !important;
		gap: 8px;
	}

	.chc-search-toggle {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0;
		border: 1px solid var(--chc-color-border);
		border-radius: 8px;
		background: #fff;
		color: var(--chc-color-text);
		cursor: pointer;
	}

	.chc-header-search-dropdown {
		display: none !important;
		width: 100%;
	}

	.chc-header-search.is-open .chc-header-search-dropdown {
		display: block !important;
	}

	.chc-header-search.is-open .chc-header-search-form {
		width: 100%;
	}
}

/* Search: desktop/mobile split */
.chc-search-toggle {
	display: none !important;
}

.chc-header-search-dropdown {
	display: block;
}

@media (max-width: 768px) {
    	.chc-header-search {
    	width: 100% !important;
    	display: grid !important;
    	gap: 8px;
    }

	.chc-search-toggle {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0;
		border: 1px solid var(--chc-color-border);
		border-radius: 8px;
		background: #fff;
		color: var(--chc-color-text);
		cursor: pointer;
	}

	.chc-header-search-dropdown {
    	display: none !important;
    	position: static;
    	width: 100%;
    	margin-top: 8px;
    	padding: 12px;
    	border: 1px solid var(--chc-color-border);
    	border-radius: var(--chc-radius);
    	background: #fff;
    	box-shadow: none;
    }

	.chc-header-search.is-open .chc-header-search-dropdown {
		display: block !important;
	}

	.chc-header-search-form {
		width: 100%;
	}

	.chc-header-search-field {
		width: 100% !important;
	}
}

.chc-search-toggle {
	display: none !important;
}

.chc-header-search-dropdown {
	display: block !important;
	position: static !important;
	width: 100% !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
}

/* Search rollback */
.chc-search-toggle,
.chc-header-search-dropdown {
	display: none !important;
}

.chc-header-search {
	order: 3;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	margin-left: auto;
}

.chc-header-icons {
	order: 4;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 10px;
}

@media (max-width: 768px) {
	.chc-header-search {
		width: 100%;
		flex: 1 1 100%;
		margin-left: 0;
	}

	.chc-header-search-form {
		width: 100%;
	}

	.chc-header-search-field {
		width: 100%;
	}

	.chc-header-icons {
		width: 100%;
		margin-left: 0;
	}
}

/* Desktop header layout restore */
@media (min-width: 769px) {
	.chc-header-inner {
		display: flex !important;
		align-items: center !important;
		flex-wrap: nowrap !important;
		gap: 20px !important;
	}

	.site-branding {
		flex: 0 0 auto !important;
	}

	.chc-header-search {
		flex: 0 0 auto !important;
		margin-left: auto !important;
		width: auto !important;
	}

	.chc-header-icons {
		flex: 0 0 auto !important;
		width: auto !important;
		margin-left: 10px !important;
		display: flex !important;
		align-items: center !important;
		flex-wrap: nowrap !important;
	}

	.chc-header-search-form {
		width: auto !important;
	}

	.chc-header-search-field {
		width: 200px !important;
	}
}

@media (min-width: 769px) {
	.chc-header-inner {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
	}

	.site-branding {
		flex: 0 0 auto !important;
		width: auto !important;
	}

	.chc-header-search {
		flex: 0 0 auto !important;
		width: auto !important;
		margin-left: auto !important;
	}

	.chc-header-icons {
		flex: 0 0 auto !important;
		width: auto !important;
		margin-left: 10px !important;
		display: flex !important;
		flex-wrap: nowrap !important;
	}
}

/* Catalog dropdown */
.chc-catalog-dropdown {
	position: relative;
}

.chc-catalog-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--chc-color-border);
	border-radius: var(--chc-radius);
	background: #fff;
	cursor: pointer;
	font-weight: 600;
}

.chc-catalog-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 260px;
	padding: 16px;
	border: 1px solid var(--chc-color-border);
	border-radius: var(--chc-radius);
	background: #fff;
	box-shadow: 0 16px 36px rgba(0,0,0,0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.2s ease;
	z-index: 999;
}

.chc-catalog-dropdown:hover .chc-catalog-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.chc-catalog-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px 16px;
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 320px;
	overflow-y: auto;
}

.chc-catalog-item a {
	text-decoration: none;
	color: var(--chc-color-text);
	font-size: 0.95rem;
}

.chc-catalog-item a:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.chc-catalog-dropdown {
		width: 100%;
	}

	.chc-catalog-toggle {
		width: 100%;
		justify-content: center;
	}

	.chc-catalog-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		margin-top: 8px;
		display: none;
	}

	.chc-catalog-dropdown.is-open .chc-catalog-menu {
		display: block;
	}
}

.chc-catalog-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 360px;
	overflow-y: auto;
}

.chc-catalog-item {
	min-width: 0;
}

.chc-catalog-parent {
	display: inline-flex;
	margin-bottom: 6px;
	font-weight: 700;
	text-decoration: none;
	color: var(--chc-color-text);
}

.chc-catalog-sublist {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chc-catalog-sublist a {
	text-decoration: none;
	font-size: 0.9rem;
	color: var(--chc-color-muted);
}

.chc-catalog-sublist a:hover,
.chc-catalog-parent:hover {
	color: var(--chc-color-text);
	text-decoration: underline;
}

@media (max-width: 768px) {
	.chc-catalog-list {
		grid-template-columns: 1fr;
		max-height: none;
	}
}

@media (max-width: 768px) {
	.chc-header-menu-bar .chc-container {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		align-items: start;
	}

	.chc-mobile-menu-toggle,
	.chc-catalog-toggle {
		width: 100% !important;
		min-height: 42px;
		justify-content: center;
	}

	.chc-header-menu-bar .primary-navigation {
		grid-column: 1 / -1;
	}

	.chc-catalog-dropdown {
		width: 100%;
	}

	.chc-catalog-menu {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.chc-header-menu-bar .chc-container {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 8px !important;
	}

	.chc-mobile-menu-toggle {
		grid-column: 1;
		width: 100% !important;
	}

	.chc-catalog-dropdown {
		grid-column: 2;
		width: 100% !important;
		min-width: 0 !important;
	}

	.chc-catalog-toggle {
		width: 100% !important;
		min-width: 0 !important;
	}

	.chc-header-menu-bar .primary-navigation,
	.chc-catalog-menu {
		grid-column: 1 / -1 !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.chc-catalog-menu {
		position: static !important;
		margin-top: 8px;
		box-sizing: border-box;
	}
}

.chc-catalog-close {
	display: none;
}

.chc-catalog-dropdown.is-open .chc-catalog-icon {
	display: none;
}

.chc-catalog-dropdown.is-open .chc-catalog-close {
	display: inline;
}

@media (max-width: 768px) {
	.chc-header-menu-bar .primary-navigation,
	.chc-catalog-menu {
		grid-column: 1 / -1 !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-top: 8px !important;
		padding: 12px !important;
		border: 1px solid var(--chc-color-border) !important;
		border-radius: var(--chc-radius) !important;
		background: #fff !important;
		box-shadow: none !important;
		box-sizing: border-box !important;
	}

	.chc-header-menu-bar .primary-navigation ul,
	.chc-catalog-list {
		margin: 0 !important;
		padding: 0 !important;
	}

	.chc-header-menu-bar .primary-navigation {
		display: none;
	}

	.chc-header-menu-bar.is-open .primary-navigation {
		display: block;
	}

	.chc-catalog-menu {
		display: none;
		position: static !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
	}

	.chc-catalog-dropdown.is-open .chc-catalog-menu {
		display: block;
	}
}

@media (max-width: 768px) {
	.chc-catalog-dropdown {
		display: contents !important;
	}

	.chc-catalog-toggle {
		grid-column: 2;
		width: 100% !important;
	}

	.chc-catalog-menu {
		grid-column: 1 / -1 !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.chc-catalog-dropdown:not(.is-open) .chc-catalog-menu {
		display: none !important;
	}

	.chc-catalog-dropdown.is-open .chc-catalog-menu {
		display: block !important;
	}
}

.chc-catalog-close {
	display: none;
}

.chc-catalog-dropdown.is-open .chc-catalog-icon {
	display: none;
}

.chc-catalog-dropdown.is-open .chc-catalog-close {
	display: inline;
}

/* Mobile menu/catalog emergency fix */
@media (max-width: 768px) {

	/* КНОПКИ */
	.chc-header-menu-bar .chc-container {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.chc-mobile-menu-toggle,
	.chc-catalog-toggle {
		width: 100%;
		min-height: 42px;
		justify-content: center;
	}

	/* MENU */
	.chc-header-menu-bar .primary-navigation {
		grid-column: 1 / -1;
		display: none;
	}

	.chc-header-menu-bar.is-open .primary-navigation {
		display: block;
	}

	/* CATALOG */
	.chc-catalog-menu {
		grid-column: 1 / -1;
		display: none;
		position: static;
		margin-top: 8px;
		padding: 12px;
		border: 1px solid var(--chc-color-border);
		border-radius: var(--chc-radius);
		background: #fff;
	}

	.chc-catalog-dropdown.is-open .chc-catalog-menu {
		display: block;
	}
}

@media (max-width: 768px) {
	.site-header .site-logo img,
	.site-header .custom-logo {
		max-height: var(--chc-logo-height-mobile, 42px) !important;
		height: auto !important;
		width: auto !important;
	}
}

/* Header Builder Lite */
.site-header {
	min-height: var(--chc-header-height-desktop, 78px);
}

.site-header .site-header-inner,
.site-header .chc-header-inner,
.site-header .header-inner {
	min-height: var(--chc-header-height-desktop, 78px);
	align-items: center;
}

@media (max-width: 768px) {
	.site-header {
		min-height: var(--chc-header-height-mobile, 64px);
	}

	.site-header .site-header-inner,
	.site-header .chc-header-inner,
	.site-header .header-inner {
		min-height: var(--chc-header-height-mobile, 64px);
	}
}

/* Header container width */
.site-header .chc-container {
	max-width: var(--chc-header-container-width, 1200px);
}

/* Customizer Reset Button Styles */
.chc-range-reset {
    margin-top: 8px !important;
    display: inline-block !important;
}

/* Header height styles */
.site-header {
    min-height: var(--chc-header-height-desktop, 78px);
}

@media (max-width: 768px) {
    .site-header {
        min-height: var(--chc-header-height-mobile, 64px);
    }
}

/* Header container width - ТОЛЬКО ДЛЯ ХЕДЕРА */
.site-header .chc-container {
    max-width: var(--chc-header-container-width, 1200px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--chc-header-padding-x, 18px);
    padding-right: var(--chc-header-padding-x, 18px);
}

/* Для остального контента - своя ширина (например, 1200px по умолчанию) */
.site-main .chc-container,
footer .chc-container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Logo height */
.site-logo img {
    max-height: var(--chc-logo-height-desktop, 54px);
    width: auto;
    height: auto;
}

@media (max-width: 768px) {
    .site-logo img {
        max-height: var(--chc-logo-height-mobile, 42px);
    }
}

/* Live search lite */
.chc-header-search {
	position: relative;
}

.chc-live-search {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 9999;
	display: none;
	padding: 8px;
	border: 1px solid var(--chc-color-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(0,0,0,0.12);
}

.chc-live-search.is-visible {
	display: block;
}

.chc-live-search-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	transition: background 0.18s ease;
}

.chc-live-search-item:hover {
	background: rgba(0,0,0,0.04);
}

.chc-live-search-item__title {
	font-size: 0.92rem;
	font-weight: 500;
}

.chc-live-search-item__price {
	font-size: 0.88rem;
	font-weight: 600;
	white-space: nowrap;
}

.chc-live-search-empty {
	padding: 10px 12px;
	font-size: 0.9rem;
	opacity: 0.7;
}