/* ===================== HEADER v2 ===================== */

.bx-header {
	position: sticky;
	top: 0;
	z-index: 1100;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Mobile contacts strip */
.header-mobile-contacts {
	background: #f8f9fa;
	border-bottom: 1px solid #e9ecef;
	padding: 0.4rem 0;
	font-size: 0.8rem;
	text-align: center;
}

.header-mobile-contacts__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0.75rem;
}

.header-mobile-contact-link {
	color: #333;
	text-decoration: none;
	font-weight: 500;
	white-space: nowrap;
}

.header-mobile-contact-link:hover {
	color: var(--brand-primary);
}

.header-mobile-contact-sep {
	color: #ccc;
}

/* Desktop row 1 */
.header-row-1 {
	padding: 1rem 0;
}

.header-row-1__grid {
	display: grid;
	grid-template-columns: auto auto auto auto;
	align-items: center;
	gap: 1.5rem 2rem;
}

.header-logo .bx-logo-block img {
	max-height: 72px;
	width: auto;
}

.header-contact-link {
	color: #333;
	text-decoration: none;
	font-weight: 600;
}

.header-contact-link:hover {
	color: var(--brand-primary);
}

.header-block-label {
	color: var(--brand-secondary);
	font-weight: 600;
	font-size: 0.875rem;
	margin-bottom: 0.35rem;
}

.header-block-content {
	font-size: 0.95rem;
	line-height: 1.5;
	color: #333;
}

.header-block-content .text-brand-primary {
	color: var(--brand-primary) !important;
}

/* Mobile bar: burger | logo | CTA */
.header-mobile-bar {
	padding: 0.6rem 0;
	border-bottom: 1px solid #eee;
}

.header-mobile-bar__grid {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.75rem;
}

.header-burger {
	background: none;
	border: none;
	font-size: 1.35rem;
	color: var(--brand-secondary);
	padding: 0.25rem 0.5rem;
	cursor: pointer;
	line-height: 1;
}

.header-mobile-bar .header-logo .bx-logo-block img {
	max-height: 48px;
}

.header-cta-icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: none;
	background: linear-gradient(135deg, var(--brand-primary), #b01212);
	color: #fff;
	font-size: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	box-shadow: 0 3px 10px rgba(151, 1, 1, 0.35);
}

.header-cta-icon:hover {
	transform: scale(1.05);
}

/* Row 2 — navigation */
.header-row-2 {
	border-top: 1px solid #f0f0f0;
	padding: 0;
}

.header-unified-nav .header-row-2 {
	display: block;
}

.header-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 0;
}

.header-nav-item {
	display: flex;
}

.header-nav-link {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.85rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.2s, background 0.2s;
	white-space: nowrap;
	font-family: inherit;
}

.header-nav-link:hover,
.header-nav-link.is-active {
	color: var(--brand-primary);
}

.header-nav-link.is-active {
	box-shadow: inset 0 -2px 0 var(--brand-primary);
}

.header-nav-link--catalog .header-nav-chevron {
	font-size: 0.65rem;
	transition: transform 0.2s;
}

.header-nav-link--catalog[aria-expanded="true"] .header-nav-chevron {
	transform: rotate(180deg);
}

/* Mobile nav drawer */
.mobile-nav-drawer {
	position: fixed;
	inset: 0;
	z-index: 1150;
	display: none;
}

.mobile-nav-drawer.is-open {
	display: block;
}

.mobile-nav-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
}

.mobile-nav-drawer__panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(320px, 85vw);
	background: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
}

.mobile-nav-drawer.is-open .mobile-nav-drawer__panel {
	transform: translateX(0);
}

.mobile-nav-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #eee;
}

.mobile-nav-drawer__title {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--brand-secondary);
}

.mobile-nav-drawer__close {
	background: none;
	border: none;
	font-size: 1.25rem;
	color: #666;
	cursor: pointer;
	padding: 0.25rem;
}

.mobile-nav-list {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	overflow-y: auto;
	flex: 1;
}

.mobile-nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0.9rem 1.25rem;
	color: #333;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	border: none;
	background: none;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
	border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-link:hover {
	color: var(--brand-primary);
	background: #fafafa;
}

/* Page breadcrumbs (outside header) */
.page-breadcrumbs-block {
	background: inherit;
}

.page-breadcrumbs-block .section-title {
	margin-top: 0;
}

/* Disable category card animation inside mega menu */
.catalog-mega-menu .category-card {
	animation: none;
}

@media (max-width: 1199px) {
	.header-row-1__grid {
		gap: 1rem;
	}
}

@media (max-width: 991px) {
	.header-unified-nav .header-row-2 {
		display: none;
	}
}
