/* Viršutinė Juosta — sticky header */

.vj-header {
	/* Always fixed to the viewport, at rest, so it renders exactly where it
	   always has (e.g. overlapping a top banner/hero) with zero impact on
	   layout, regardless of any positioned ancestor in the page builder's
	   markup. On a non-sticky page, header.js then counters this with a
	   scroll-linked `transform: translateY()` so it visually scrolls away
	   with the page instead of staying pinned — see initFollowScroll(). */
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9000;
	background: var( --vj-bg-top, transparent );
	color: var( --vj-text-color, #ffffff );
	transition: background-color .3s ease;
	will-change: transform;
}
.vj-header--sticky {
	/* Only the sticky page animates its hide/show transform; a non-sticky
	   header's transform is driven 1:1 by scroll position (see header.js)
	   and must never be eased, or it would visibly lag behind the page. */
	transition: background-color .3s ease, transform .35s ease;
}
.vj-header.vj-scrolled {
	background: var( --vj-bg-scrolled, rgba(20,20,20,.92) );
}
.vj-header--sticky.vj-hidden {
	transform: translateY(-100%);
}

.vj-header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 14px 24px;
	position: relative;
}

.vj-logo {
	display: block;
	flex: 0 0 auto;
	line-height: 0;
}
.vj-logo-fallback {
	font-weight: 700;
	font-size: 18px;
	letter-spacing: .04em;
	color: inherit;
	text-transform: uppercase;
}

.vj-nav {
	flex: 1 1 auto;
	min-width: 0;
}
.vj-nav-list {
	display: flex;
	align-items: center;
	justify-content: flex-end; /* hug the icons on the right, not the logo on the left */
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.vj-nav-list a {
	color: inherit;
	text-decoration: none;
	font-family: 'PT Sans', sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 14px;
	line-height: 120%;
	letter-spacing: 0;
	vertical-align: middle;
	opacity: 1;
	transition: opacity .2s ease;
	white-space: nowrap;
}
.vj-nav-list a:hover {
	opacity: .8;
}

.vj-icons {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 0 0 auto;
}

.vj-icon {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	position: relative;
	background: transparent;
	border: 0;
	padding: 4px;
	cursor: pointer;
	color: inherit;
	line-height: 0;
	text-decoration: none;
}
.vj-icon:hover {
	opacity: .75;
}

.vj-cart-link {
	position: relative;
}
.vj-cart-link .vj-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16px;
	height: 16px;
	padding: 0 3px;
	border-radius: 999px;
	background: var( --vj-text-color, #fff );
	color: var( --vj-bg-scrolled, #111 );
	position: absolute;
	top: -4px;
	right: -8px;
	font-size: 10px;
	line-height: 16px;
	font-weight: 700;
}
/* Inside the drawer's plain text link, show the count inline instead of as a floating badge. */
.vj-drawer-list .vj-cart-count {
	display: inline-block;
	font-size: 12px;
	opacity: .6;
	font-weight: 600;
}

/* Account icon dropdown (desktop only, signed-out state) */
.vj-account {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.vj-account-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	/* padding-top (not margin-top) so the gap between the icon and the
	   panel stays part of the hoverable area — otherwise the dropdown
	   closes the instant the pointer leaves the icon. */
	padding-top: 10px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease;
	z-index: 9100;
}
.vj-account:hover .vj-account-dropdown,
.vj-account:focus-within .vj-account-dropdown {
	opacity: 1;
	pointer-events: auto;
}
.vj-account-dropdown-panel {
	background: #fff;
	color: #111;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0,0,0,.18);
	padding: 6px;
	min-width: 180px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.vj-account-dropdown-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 6px;
	color: inherit;
	text-decoration: none;
	font-family: 'PT Sans', sans-serif;
	font-size: 13px;
	white-space: nowrap;
}
.vj-account-dropdown-link:hover {
	background: rgba(128,128,128,.1);
}
.vj-account-dropdown-link svg {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}

/* Burger — mobile only */
.vj-burger {
	display: none;
}
.vj-burger svg {
	width: 22px;
	height: auto;
}

/* Search popover (desktop) */
.vj-search-popover {
	position: absolute;
	top: 100%;
	right: 24px;
	margin-top: 10px;
	background: #fff;
	color: #111;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0,0,0,.18);
	padding: 10px;
	width: min(320px, 90vw);
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.vj-search-popover.is-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.vj-search-widget {
	position: relative;
}
.vj-search-input {
	display: block;
	width: 100%;
	border: 1px solid rgba(0,0,0,.15);
	border-radius: 999px;
	padding: 9px 16px;
	font-size: 14px;
	outline: none;
	background: transparent;
	color: inherit;
	box-sizing: border-box;
}
.vj-search-results {
	margin-top: 8px;
	max-height: 60vh;
	overflow-y: auto;
}
.vj-search-results:empty {
	margin-top: 0;
}
.vj-search-status {
	margin: 10px 4px;
	font-size: 13px;
	opacity: .7;
}
.vj-search-result-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.vj-search-result-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 4px;
	text-decoration: none;
	color: inherit;
	border-radius: 6px;
}
.vj-search-result-list a:hover {
	background: rgba(128,128,128,.12);
}
.vj-search-result-thumb {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 4px;
	flex: 0 0 auto;
	background: rgba(128,128,128,.2);
}
.vj-search-result-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.vj-search-result-title {
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.vj-search-result-meta {
	font-size: 11px;
	opacity: .65;
}
.vj-search-result-meta ins {
	text-decoration: none;
}

/* Mobile drawer — slides down from the top, full width, height fits its content (capped at viewport) */
.vj-drawer {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	max-height: 100vh;
	max-height: 100dvh;
	background: #41413E;
	color: #fff;
	z-index: 9200;
	padding: 70px 32px 24px;
	display: flex;
	flex-direction: column;
	transform: translateY(-100%);
	pointer-events: none;
	transition: transform .35s ease;
	overflow-y: auto;
}
.vj-drawer.is-open {
	transform: translateY(0);
	pointer-events: auto;
}

.vj-drawer-close {
	position: absolute;
	top: 22px;
	right: 24px;
	background: transparent;
	border: 0;
	padding: 4px;
	line-height: 0;
	cursor: pointer;
	color: inherit;
}

.vj-drawer-search {
	margin-bottom: 24px;
	max-width: 420px;
}
.vj-drawer-search .vj-search-input {
	border: 1px solid rgba(255,255,255,.3);
	color: #fff;
}
.vj-drawer-search .vj-search-input::placeholder {
	color: rgba(255,255,255,.7);
}

.vj-drawer-list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	flex: 1 0 auto;
	max-width: 420px;
}
.vj-drawer-list li {
	border-bottom: 1px solid rgba(255,255,255,.18);
}
.vj-drawer-list a {
	display: block;
	padding: 14px 2px;
	color: inherit;
	text-decoration: none;
	font-family: 'Exo', sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 14px;
	line-height: 37px;
	letter-spacing: 0;
	vertical-align: middle;
	text-transform: uppercase;
}
.vj-drawer-list a:hover {
	opacity: .8;
}

.vj-drawer-auth {
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid rgba(255,255,255,.18);
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 20px;
}
.vj-drawer-auth-links {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
}
.vj-drawer-auth-links a {
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.vj-drawer-auth-primary {
	text-decoration: underline;
	font-weight: 700;
}
.vj-drawer-auth-logo {
	line-height: 0;
}

/* Responsive: collapse to burger below desktop nav breakpoint */
@media (max-width: 900px) {
	.vj-nav,
	.vj-search-toggle,
	.vj-cart-link,
	.vj-account {
		display: none;
	}
	.vj-burger {
		display: flex;
	}
	.vj-header-inner {
		padding: 12px 16px;
		/* With .vj-nav hidden, only the logo and .vj-icons remain — space them
		   apart so the burger doesn't collapse next to the logo. */
		justify-content: space-between;
	}
}

@media (min-width: 901px) {
	.vj-burger,
	.vj-drawer {
		display: none;
	}
}
