/**
 * Fixed glass header via [nizva_header]. Stays at top even inside Elementor.
 */

.nizva-header-wrap,
.nizva-header,
.nizva-header * {
	box-sizing: border-box;
}

body.nizva-header-on {
	--nizva-hh: 3.75rem;
	padding-top: var(--nizva-hh) !important;
}

.nizva-header-wrap {
	height: 0;
	pointer-events: none;
}

.nizva-header {
	position: fixed !important;
	top: 0;
	right: 0;
	left: 0;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	width: 100%;
	pointer-events: auto;
	transform: none !important;
	color: #0f172a;
	background: #fff;
	border-bottom: 1px solid rgba(30, 79, 214, 0.08);
	font-family: inherit;
	contain: style;
	overflow: visible;
}

.admin-bar .nizva-header {
	top: 32px;
}

.nizva-header__skip {
	position: absolute;
	right: 12px;
	top: -100px;
	z-index: 2;
	padding: 8px 12px;
	border-radius: 10px;
	background: #0f172a;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.nizva-header__skip:focus {
	top: 8px;
}

.nizva-header__inner {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 3.75rem;
	padding: 6px 12px;
}

.nizva-header__logo {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	max-width: 180px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.nizva-header__logo img,
.nizva-header img.nizva-header__logo-img,
.nizva-header__logo-img {
	display: block !important;
	width: auto !important;
	max-width: 180px !important;
	height: 42px !important;
	max-height: 42px !important;
	object-fit: contain !important;
	object-position: right center !important;
}

.nizva-header__logo-text {
	overflow: hidden;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nizva-header__search,
.nizva-header__account,
.nizva-header__cart,
.nizva-header__nav {
	display: none;
}

.nizva-header__wallet,
.nizva-header__account,
.nizva-header__cart,
.nizva-header__search-submit,
.nizva-header__cat {
	touch-action: manipulation;
}

.nizva-header__actions {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	min-width: 0;
}

.nizva-header__wallet {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 62%;
	padding: 5px 10px 5px 8px;
	border: 1px solid rgba(30, 79, 214, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.7);
	color: inherit;
	text-decoration: none;
}

.nizva-header__wallet-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}

.nizva-header__wallet-label {
	display: block;
	overflow: hidden;
	margin-bottom: 1px;
	color: #5b6f86;
	font-size: 10px;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nizva-header__wallet-icon,
.nizva-header__account-icon,
.nizva-header__cart-icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	color: #1e4fd6;
}

.nizva-header__wallet-amount {
	overflow: hidden;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-variant-numeric: tabular-nums;
}

.nizva-header__account {
	align-items: center;
	gap: 6px;
	max-width: 14rem;
	padding: 6px 14px 6px 10px;
	border: 1px solid rgba(30, 79, 214, 0.12);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.nizva-header__account-text {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nizva-header__welcome {
	display: flex;
	align-items: center;
	gap: 8px;
	max-height: 0;
	padding: 0 12px;
	overflow: hidden;
	opacity: 0;
	background: linear-gradient(90deg, #eff6ff 0%, #f8fbff 100%);
	border-top: 0 solid transparent;
	transition:
		max-height 0.38s ease,
		opacity 0.28s ease,
		padding 0.38s ease,
		border-color 0.28s ease;
}

.nizva-header__welcome.is-open {
	max-height: 3.25rem;
	padding-top: 8px;
	padding-bottom: 8px;
	opacity: 1;
	border-top: 1px solid rgba(30, 79, 214, 0.1);
}

.nizva-header__welcome-text {
	flex: 1 1 auto;
	margin: 0;
	overflow: hidden;
	min-width: 0;
	color: #1e4fd6;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nizva-header__welcome-close {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: rgba(30, 79, 214, 0.08);
	color: #1e4fd6;
	cursor: pointer;
}

.nizva-header__welcome-close:hover {
	background: rgba(30, 79, 214, 0.16);
}

.nizva-header__cart {
	position: relative;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(30, 79, 214, 0.16);
	border-radius: 10px;
	background: #fff;
	color: #1e4fd6;
	text-decoration: none;
}

.nizva-header__cart-icon {
	color: inherit;
}

.nizva-header__cart-count {
	position: absolute;
	top: -5px;
	left: -5px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #1e4fd6;
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	line-height: 12px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.nizva-header__cart.is-empty .nizva-header__cart-count {
	display: none;
}

.nizva-header__search {
	position: relative;
	flex: 1 1 28rem;
	width: auto;
	max-width: 32rem;
	min-width: 0;
}

.nizva-header__search-input {
	width: 100%;
	height: 40px;
	padding: 0 40px 0 14px;
	border: 1px solid rgba(30, 79, 214, 0.14);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font-family: inherit;
	font-size: 13px;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}

.nizva-header__search-input:focus {
	border-color: rgba(30, 79, 214, 0.45);
	box-shadow: 0 0 0 3px rgba(30, 79, 214, 0.12);
}

.nizva-header__search-submit {
	position: absolute;
	top: 50%;
	right: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #1e4fd6;
	transform: translateY(-50%);
	cursor: pointer;
}

.nizva-header__suggest {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	z-index: 3;
	max-height: min(70vh, 420px);
	overflow: auto;
	border: 1px solid rgba(30, 79, 214, 0.12);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.nizva-header__suggest-list {
	margin: 0;
	padding: 6px;
	list-style: none;
}

.nizva-header__suggest-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 10px;
	color: inherit;
	text-decoration: none;
}

.nizva-header__suggest-item:hover,
.nizva-header__suggest-item.is-active {
	background: rgba(30, 79, 214, 0.08);
}

.nizva-header__suggest-item img,
.nizva-header__suggest-ph {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	background: #f1f5f9;
}

.nizva-header__suggest-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nizva-header__suggest-name {
	overflow: hidden;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nizva-header__suggest-name mark {
	padding: 0;
	background: transparent;
	color: #1e4fd6;
	font-weight: 800;
}

.nizva-header__suggest-price {
	color: #5b6f86;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.nizva-header__suggest-empty {
	margin: 0;
	padding: 14px 16px;
	color: #64748b;
	font-size: 13px;
}

.nizva-header__cats {
	display: flex;
	align-items: center;
	gap: 0;
	width: 100%;
	margin: 0;
	padding: 0 28px;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}

.nizva-header__cats::-webkit-scrollbar {
	display: none;
}

.nizva-header__cats > li {
	display: flex;
	align-items: center;
}

.nizva-header__cats > li + li::before {
	content: "";
	display: block;
	width: 1px;
	height: 1em;
	margin: 0 2px;
	background: rgba(15, 23, 42, 0.14);
	flex: 0 0 auto;
}

.nizva-header__cat {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	color: #334155;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.nizva-header__cat:hover,
.nizva-header__cat.is-current {
	color: #1e4fd6;
	background: rgba(30, 79, 214, 0.08);
}

.nizva-header__search-submit:hover,
.nizva-header__account:hover,
.nizva-header__wallet:hover {
	color: #1e4fd6;
}

.nizva-header__cart:hover {
	background: rgba(30, 79, 214, 0.08);
}

@media (min-width: 960px) {
	body.nizva-header-on {
		--nizva-hh: 6.25rem;
	}

	body.nizva-header-on:has(.nizva-header__nav) {
		--nizva-hh: 9.25rem;
	}

	.nizva-header__inner {
		min-height: 5.75rem;
		height: auto;
		gap: 20px;
		padding: 14px 28px;
	}

	.nizva-header__logo {
		max-width: 240px;
	}

	.nizva-header__logo img,
	.nizva-header img.nizva-header__logo-img,
	.nizva-header__logo-img {
		max-width: 240px !important;
		height: auto !important;
		max-height: 56px !important;
	}

	.nizva-header__search {
		display: flex;
		flex: 1 1 28rem;
		width: auto;
		max-width: 32rem;
	}

	.nizva-header__search-input {
		height: 42px;
	}

	.nizva-header__account,
	.nizva-header__cart,
	.nizva-header__nav {
		display: flex;
	}

	.nizva-header__wallet {
		max-width: none;
		gap: 8px;
		padding: 7px 12px 7px 10px;
	}

	.nizva-header__wallet-label {
		font-size: 11px;
	}

	.nizva-header__wallet-amount {
		font-size: 13px;
		font-weight: 800;
	}

	.nizva-header__welcome {
		display: none;
	}

	.nizva-header__account {
		max-width: none;
	}

	.nizva-header__actions {
		flex: 0 0 auto;
		margin-inline-start: auto;
		gap: 10px;
	}

	.nizva-header__account {
		height: 42px;
		padding: 0 14px 0 10px;
		font-size: 13px;
	}

	.nizva-header__cart {
		width: 42px;
		height: 42px;
	}

	.nizva-header__nav {
		align-items: center;
		min-height: 3rem;
		border-top: 1px solid rgba(30, 79, 214, 0.08);
	}
}

@media (max-width: 782px) {
	.admin-bar .nizva-header {
		top: 46px;
	}
}

@media print {
	.nizva-header,
	.nizva-header-wrap {
		display: none !important;
	}
}
