/**
 * Menu InWeb v2 — Bootstrap 5 + Imela branding (scoped).
 */

:root {
	--imela-orange: #e8a05e;
	--imela-teal: #32c5b4;
	--imela-bar: #366b60;
	--imela-text: #4b4b4b;
	--imela-border: #e8e8e8;
}

/* Sakrij stari YIT header */
body.inweb-header-active #nav,
body.inweb-header-active .upper-header-menu,
body.inweb-header-active #header-search,
body.inweb-header-active #mobile-menu-trigger,
body.inweb-header-active .slider-container .shop-by-category,
body.inweb-header-active #header .logo,
body.inweb-header-active .st-menu,
body.inweb-header-active #st-container.st-menu-open {
	display: none !important;
}

body.inweb-header-active #header-container {
	position: relative;
	z-index: 10100;
	background: #fff;
	border-bottom: 0;
	overflow: visible !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.inweb-header-active #wrapper.container,
body.inweb-header-active #header-container > .container,
body.inweb-header-active .slider-container,
body.inweb-header-active .slider-container > .container,
body.inweb-header-active .revolution-wrapper.container {
	width: 100% !important;
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.imela-offcanvas-open #topbar {
	z-index: 1 !important;
}

body.imela-offcanvas-open #header-container {
	z-index: 1 !important;
}

body.inweb-header-active #header-container .container {
	overflow: visible;
}

body.inweb-header-active #header-container.fixed {
	z-index: 10100;
	overflow: visible !important;
	position: relative !important;
	top: 0 !important;
	left: auto !important;
	right: auto !important;
	width: 100% !important;
	animation: none !important;
	transition: none !important;
}

/* YIT sticky placeholder — uzrok skoka na home skrolu */
body.inweb-header-active .header-placeholder {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

body.inweb-header-active #header-container .header-wrapper {
	padding: 0;
	background: #fff;
	overflow: visible;
}

#imela-header.imela-header {
	position: relative;
	z-index: 1030;
	background: #fff;
	font-family: "Jost", "Roboto Condensed", "Open Sans", sans-serif;
}

#imela-header .imela-header__logo {
	height: 72px;
	width: auto;
	max-width: 280px;
	object-fit: contain;
	display: block;
}

#imela-header .imela-header__utility-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 0.5rem 0;
}

#imela-header .imela-header__brand,
#imela-header .imela-header__cart {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

#imela-header .imela-header__brand-link {
	display: flex;
	align-items: center;
	line-height: 0;
}

/* Utility meni — jedan red */
#imela-header .imela-header__utility {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

#imela-header .imela-utility-rows {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 100%;
}

#imela-header .imela-utility-nav {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	gap: 0.15rem;
}

#imela-header .imela-utility-nav .nav-item {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

#imela-header .imela-utility-nav .nav-link {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--imela-text);
	padding: 0.4rem 0.7rem;
	white-space: nowrap;
	letter-spacing: 0.02em;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

#imela-header .imela-utility-nav .nav-link.dropdown-toggle {
	display: inline-flex !important;
	align-items: center;
	gap: 0.35rem;
	padding-right: 0.35rem;
}

#imela-header .imela-utility-nav .nav-link.dropdown-toggle::before {
	display: none !important;
	content: none !important;
}

#imela-header .imela-utility-nav .nav-link.dropdown-toggle::after {
	display: inline-block !important;
	content: "" !important;
	margin: 0 !important;
	border: 0.28em solid transparent !important;
	border-top: 0.32em solid currentColor !important;
	border-bottom: 0 !important;
	width: 0 !important;
	height: 0 !important;
	vertical-align: middle;
	background: none !important;
	transform: none !important;
	opacity: 1;
}

#imela-header .imela-utility-nav .caret,
#imela-header .imela-utility-nav .submenu-indicator,
#imela-header .imela-utility-nav .yit-arrow,
#imela-header .imela-utility-nav .imela-submenu-icon {
	display: none !important;
}

#imela-header .imela-utility-nav .nav-link:hover,
#imela-header .imela-utility-nav .current-menu-item > .nav-link {
	color: var(--imela-orange);
}

#imela-header .imela-header__utility-row {
	position: relative;
	z-index: 10300;
}

#imela-header .imela-utility-nav {
	position: relative;
	z-index: 10301;
}

#imela-header .imela-utility-nav .nav-item {
	position: relative;
	z-index: 1;
}

#imela-header .imela-utility-nav .nav-link {
	position: relative;
	z-index: 2;
	pointer-events: auto;
}

#imela-header .imela-utility-nav .dropdown-menu {
	font-size: 12px;
	text-transform: uppercase;
	min-width: 220px;
	z-index: 10350;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
}

#imela-header .imela-utility-nav .dropdown-item {
	border-bottom: 1px solid #f0f0f0;
}

#imela-header .imela-utility-nav .dropdown-item:last-child {
	border-bottom: 0;
}

/* Kategorije — tekst preko cele širine, bez ikona */
#imela-header .imela-cat-nav {
	display: flex !important;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: stretch;
	width: 100%;
	gap: 0;
}

#imela-header .imela-cat-nav > .imela-cat-nav__item {
	display: flex;
	align-items: stretch;
	flex: 1 1 auto;
	justify-content: center;
}

#imela-header .imela-cat-nav__link {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	color: var(--imela-text);
	padding: 0.4rem 0.4rem !important;
	white-space: nowrap;
	border: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

#imela-header .imela-cat-nav__icon {
	display: none !important;
}

#imela-header .imela-cat-nav__label {
	display: block;
	width: 100%;
	text-align: center;
	pointer-events: none;
}

#imela-header .imela-cat-nav__link:hover,
#imela-header .imela-cat-nav__item.show > .imela-cat-nav__link,
#imela-header .imela-cat-nav__item:hover > .imela-cat-nav__link {
	color: var(--imela-orange);
	padding: 0.4rem 0.4rem !important;
	border: 0 !important;
	transform: none !important;
	text-decoration: none !important;
}

#imela-header .imela-cat-nav__item:hover {
	background: rgba(31, 208, 183, 0.12);
	border-radius: 2px;
}

#imela-header .imela-cat-navbar,
#imela-header .imela-cat-nav {
	border: 0 !important;
	background: none !important;
}

#imela-header .imela-cat-nav > .imela-cat-nav__item {
	border: 0 !important;
	border-bottom: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	position: relative;
}

#imela-header .imela-cat-nav > .imela-cat-nav__item:not(:last-child) {
	border-right: 1px solid var(--imela-bar) !important;
}

#imela-header .imela-cat-nav__item.dropdown::before {
	content: "";
	display: block !important;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 10px;
	background: transparent;
	pointer-events: auto;
}

#imela-header .imela-cat-nav__item::after,
#imela-header .imela-cat-nav__link::before,
#imela-header .imela-cat-nav__link::after {
	display: none !important;
	content: none !important;
}

#imela-header .imela-cat-nav__link--parent::after {
	display: none !important;
}

/* Katalog: puna širina, search pored kategorija na desktopu */
#imela-header .imela-header__catalog {
	width: 100%;
	overflow: visible !important;
}

#imela-header .imela-header__catalog-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	position: relative;
	z-index: 1031;
	overflow: visible !important;
}

#imela-header .imela-header__search-row {
	padding: 0.5rem 0;
}

@media (min-width: 992px) {
	#imela-header .imela-header__catalog {
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
	}

	#imela-header .imela-header__catalog-row {
		flex-direction: row;
		align-items: center !important;
		gap: 14px;
		padding: 4px 0 8px;
	}

	#imela-header .imela-header__catalog-row::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		height: 12px;
		background: transparent;
		pointer-events: auto;
	}

	#imela-header .imela-header__categories-row {
		flex: 1 1 auto;
		min-width: 0;
		width: auto;
		padding: 0;
		position: static !important;
		align-items: center;
	}

	#imela-header .imela-cat-navbar,
	#imela-header .imela-cat-nav {
		position: static !important;
		width: 100%;
	}

	#imela-header .imela-header__search-row {
		flex: 0 0 260px;
		max-width: 300px;
		width: auto;
		height: 34px;
		padding: 0 0 0 14px;
		margin-top: -12px;
		border-left: 1px solid #e4e4e4;
		display: flex !important;
		align-items: center;
		align-self: center;
	}

	#imela-header .imela-search,
	#imela-header .imela-search__form {
		display: flex;
		align-items: center;
		width: 100%;
		height: 34px;
		margin: 0;
	}

	#imela-header .imela-search__group {
		height: 34px;
	}

	#imela-header .imela-search__input {
		font-size: 13px;
		padding: 0 0.75rem !important;
		height: 34px;
		min-height: 0 !important;
		line-height: 34px;
	}

	#imela-header .imela-search__submit {
		flex-basis: 34px !important;
		height: 34px;
	}
}

@media (min-width: 992px) and (max-width: 1199.98px) {
	#imela-header .imela-header__search-row {
		flex-basis: 220px;
		max-width: 240px;
	}

	#imela-header .imela-cat-nav__link,
	#imela-header .imela-cat-nav__link:hover,
	#imela-header .imela-cat-nav__item.show > .imela-cat-nav__link,
	#imela-header .imela-cat-nav__item:hover > .imela-cat-nav__link {
		font-size: 13px;
		padding: 0.5rem 0.28rem !important;
	}
}

/* 992–1440: gornji (utility) meni — bez preklapanja preko logoa */
@media (min-width: 992px) and (max-width: 1439.98px) {
	#imela-header .imela-header__utility-top {
		align-items: center;
		gap: 14px;
	}

	#imela-header .imela-header__brand {
		flex: 0 0 auto;
		max-width: 168px;
		position: relative;
		z-index: 3;
	}

	#imela-header .imela-header__logo {
		height: 54px;
		max-width: 168px;
	}

	#imela-header .imela-header__utility {
		flex: 1 1 auto;
		min-width: 0;
		justify-content: flex-end;
		overflow: visible;
	}

	#imela-header .imela-utility-rows {
		justify-content: flex-end;
		width: 100%;
	}

	#imela-header .imela-utility-nav {
		flex-wrap: wrap;
		justify-content: flex-end;
		align-items: center;
		gap: 0 0.05rem;
		row-gap: 2px;
		width: 100%;
	}

	#imela-header .imela-utility-nav .nav-item {
		flex: 0 0 auto;
	}

	#imela-header .imela-utility-nav .nav-link {
		font-size: 11px;
		padding: 0.28rem 0.38rem;
		letter-spacing: 0.01em;
	}

	#imela-header .imela-header__cart {
		flex: 0 0 auto;
		align-self: center;
		position: relative;
		z-index: 3;
	}
}

@media (min-width: 1200px) and (max-width: 1439.98px) {
	#imela-header .imela-header__brand {
		max-width: 200px;
	}

	#imela-header .imela-header__logo {
		height: 60px;
		max-width: 200px;
	}

	#imela-header .imela-utility-nav .nav-link {
		font-size: 12px;
		padding: 0.32rem 0.5rem;
	}
}

@media (min-width: 1400px) {
	#imela-header .imela-header__search-row {
		flex-basis: 320px;
		max-width: 340px;
	}

	.imela-sticky-bar__search {
		width: 260px;
		max-width: 260px;
	}
}

/* Mega meni */
#imela-header {
	--imela-sticky-top: 0;
}

body.admin-bar #imela-header {
	--imela-sticky-top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar #imela-header {
		--imela-sticky-top: 46px;
	}
}

.imela-scroll-sentinel {
	display: block;
	width: 100%;
	height: 1px;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

/* Sticky traka — poseban element, samo pri skrolu */
#imela-sticky-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10200;
	background: #fff;
	border-bottom: 1px solid #efefef;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-100%);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

#imela-sticky-bar.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.imela-sticky-bar__inner {
	display: grid;
	grid-template-columns: minmax(120px, auto) minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 20px;
}

.imela-sticky-bar__logo-link {
	display: flex;
	align-items: center;
	line-height: 0;
}

.imela-sticky-bar__logo-img {
	display: block;
	height: 42px;
	width: auto;
	max-width: 150px;
	object-fit: contain;
}

.imela-sticky-bar__nav {
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 0;
	width: 100%;
	overflow: visible;
}

.imela-sticky-bar__nav .imela-sticky-cat-nav {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: stretch;
	gap: 0;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.imela-sticky-bar__nav .imela-sticky-cat-nav > .imela-cat-nav__item {
	list-style: none;
	margin: 0;
	padding: 0;
}

.imela-sticky-bar__nav .imela-sticky-cat-nav > .imela-cat-nav__item::marker {
	content: none;
}

#imela-sticky-bar .imela-cat-nav__item,
#imela-sticky-bar .imela-cat-nav__item.bigmenu,
#imela-sticky-bar .imela-cat-nav__item.menu-item {
	border: 0 !important;
	border-top: 0 !important;
	border-bottom: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}

#imela-sticky-bar .imela-cat-nav__item::before,
#imela-sticky-bar .imela-cat-nav__item::after,
#imela-sticky-bar .imela-cat-nav__link::before,
#imela-sticky-bar .imela-cat-nav__link::after {
	display: none !important;
	content: none !important;
}

#imela-sticky-bar .menu-item-description,
#imela-sticky-bar .custom-item-image,
#imela-sticky-bar .tooltip {
	display: none !important;
}

.imela-sticky-bar__nav .imela-cat-nav__item {
	flex: 1 1 0;
}

#imela-sticky-bar .imela-sticky-bar__nav .imela-cat-nav__item:not(:last-child) {
	border-right: 1px solid var(--imela-bar) !important;
}

.imela-sticky-bar__nav .imela-cat-nav__link {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	min-width: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
	text-transform: uppercase;
	color: var(--imela-text);
	padding: 0.4rem 0.3rem !important;
	white-space: nowrap;
	border: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

.imela-sticky-bar__nav .imela-cat-nav__icon {
	display: none !important;
}

.imela-sticky-bar__nav .imela-cat-nav__label {
	display: block;
	width: 100%;
	text-align: center;
	font-size: inherit;
	pointer-events: none;
}

.imela-sticky-bar__nav .imela-cat-nav__link:hover {
	color: var(--imela-orange);
}

.imela-sticky-bar__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.imela-sticky-bar__search {
	width: 220px;
	max-width: 28vw;
}

.imela-sticky-bar__search .imela-search,
.imela-sticky-bar__search .imela-search__form {
	display: flex;
	align-items: stretch;
	width: 100%;
	margin: 0;
	position: relative;
}

.imela-sticky-bar__search .imela-search__group {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	width: 100%;
	height: 36px;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 2px;
	overflow: hidden;
	background: var(--imela-bar);
}

.imela-sticky-bar__search .imela-search__input {
	flex: 1 1 0 !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	font-size: 12px;
	padding: 0 0.65rem !important;
	line-height: 34px;
	margin: 0 !important;
	background: #fff !important;
	-webkit-appearance: none;
	appearance: none;
}

.imela-sticky-bar__search .imela-search__input:focus {
	box-shadow: none !important;
	outline: none !important;
}

.imela-sticky-bar__search .imela-search__submit {
	flex: 0 0 36px !important;
	width: 36px !important;
	min-width: 36px !important;
	height: auto !important;
	min-height: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: var(--imela-bar) !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: #fff;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
}

.imela-sticky-bar__search .imela-search__submit:hover {
	background: #2c574e;
	color: #fff;
}

.imela-sticky-bar__search .imela-search__submit svg {
	width: 16px;
	height: 16px;
}

.imela-sticky-bar__cart {
	flex: 0 0 auto;
}

.imela-sticky-bar__cart .imela-mini-cart__label {
	font-size: 10px;
}

.imela-sticky-bar__cart .imela-mini-cart__icon svg {
	width: 22px;
	height: 22px;
}

#imela-sticky-bar .imela-sticky-bar__nav {
	--imela-text: #333;
	--imela-orange: #f7941d;
}

/* Sticky padajući mega meni (isti kao glavni header) */
#imela-sticky-bar {
	overflow: visible;
}

#imela-sticky-bar .imela-sticky-bar__inner {
	position: relative;
	overflow: visible;
}

#imela-sticky-bar .imela-sticky-cat-nav > .imela-cat-nav__item.dropdown {
	position: static !important;
}

#imela-sticky-bar .imela-cat-nav__item > .imela-mega-menu {
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	right: 0 !important;
	bottom: auto !important;
	width: auto !important;
	min-width: 100% !important;
	max-width: none !important;
	inset: 100% 0 auto 0 !important;
	transform: none !important;
	margin-top: 0 !important;
	z-index: 10250;
	background: #fff;
	border: 1px solid #ececec;
	border-top: 1px solid #eee !important;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22), 0 8px 16px rgba(0, 0, 0, 0.1) !important;
	display: none;
	padding: 10px 8px 18px;
	border-radius: 0 0 2px 2px;
	overflow: visible !important;
}

@media (min-width: 992px) {
	#imela-sticky-bar .imela-cat-nav__item.dropdown:hover > .imela-mega-menu,
	#imela-sticky-bar .imela-cat-nav__item.dropdown.show > .imela-mega-menu,
	#imela-sticky-bar .imela-mega-menu.dropdown-menu.show {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
}

#imela-sticky-bar .imela-mega-menu__cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 0;
	width: 100%;
	padding: 0;
	min-width: 0;
	max-width: none;
	max-height: none;
	overflow: visible;
	border-right: 0;
	list-style: none;
	margin: 0;
}

#imela-sticky-bar .imela-mega-menu__cats > li {
	position: relative !important;
	flex: 0 1 auto;
}

#imela-sticky-bar .imela-mega-menu__cats > li:not(:last-child) {
	border-right: 1px solid #ececec;
}

@media (max-width: 991.98px) {
	#imela-sticky-bar {
		display: none !important;
	}
}

#imela-header .imela-header__categories-row {
	overflow: visible !important;
}

#imela-header .imela-cat-nav > .imela-cat-nav__item.dropdown {
	position: static !important;
}

#imela-header .imela-cat-nav__item > .imela-mega-menu,
#imela-sticky-bar .imela-cat-nav__item > .imela-mega-menu {
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	right: 0 !important;
	bottom: auto !important;
	width: auto !important;
	min-width: 100% !important;
	max-width: none !important;
	inset: 100% 0 auto 0 !important;
	transform: none !important;
	margin-top: 0 !important;
	z-index: 10150;
	background: #fff;
	border: 1px solid #ececec;
	border-top: 1px solid #eee !important;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22), 0 8px 16px rgba(0, 0, 0, 0.1) !important;
	display: none;
}

@media (min-width: 992px) {#imela-header .imela-cat-nav__item.dropdown:hover > .imela-mega-menu,
#imela-header .imela-cat-nav__item.dropdown.show > .imela-mega-menu,
#imela-header .imela-mega-menu.dropdown-menu.show,
#imela-sticky-bar .imela-cat-nav__item.dropdown:hover > .imela-mega-menu,
#imela-sticky-bar .imela-cat-nav__item.dropdown.show > .imela-mega-menu,
#imela-sticky-bar .imela-mega-menu.dropdown-menu.show {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	#imela-header .imela-header__catalog-row:has(.imela-cat-nav__item.dropdown:hover),
	#imela-header .imela-header__catalog-row:has(.imela-cat-nav__item.dropdown.show) {
		border-bottom: 1px solid #eee;
	}

#imela-header .imela-cat-nav__item.dropdown:hover > .imela-mega-menu,
#imela-header .imela-cat-nav__item.dropdown.show > .imela-mega-menu,
#imela-sticky-bar .imela-cat-nav__item.dropdown:hover > .imela-mega-menu,
#imela-sticky-bar .imela-cat-nav__item.dropdown.show > .imela-mega-menu {
		border-top: 1px solid #eee !important;
		box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22), 0 8px 16px rgba(0, 0, 0, 0.1) !important;
	}
}

#imela-header .imela-mega-menu,
#imela-sticky-bar .imela-mega-menu {
	min-width: 100%;
	width: auto;
	padding: 10px 8px 18px;
	border-radius: 0 0 2px 2px;
	overflow: visible !important;
	background: #fff;
	border: 1px solid #ececec;
	--bs-dropdown-min-width: 100%;
	--bs-dropdown-box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

#imela-header .imela-mega-menu__inner,
#imela-sticky-bar .imela-mega-menu__inner {
	overflow: visible !important;
}

#imela-header .imela-mega-menu__cats,
#imela-sticky-bar .imela-mega-menu__cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 0;
	width: 100%;
	padding: 0;
	min-width: 0;
	max-width: none;
	max-height: none;
	overflow: visible;
	border-right: 0;
}

#imela-header .imela-mega-menu__cats > li,
#imela-sticky-bar .imela-mega-menu__cats > li {
	position: relative !important;
	flex: 0 1 auto;
}

#imela-header .imela-mega-menu__cats > li:not(:last-child),
#imela-sticky-bar .imela-mega-menu__cats > li:not(:last-child) {
	border-right: 1px solid #ececec;
}

#imela-header .imela-mega-cat__link,
#imela-sticky-bar .imela-mega-cat__link {
	display: block;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	color: #6d6c6c;
	padding: 0.55rem 0.9rem;
	border-radius: 2px;
	white-space: nowrap;
	line-height: 1.35;
	border: 0 !important;
	text-decoration: none;
}

#imela-header .imela-mega-cat__link--parent,
#imela-sticky-bar .imela-mega-cat__link--parent {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-right: 0.65rem;
}

#imela-header .imela-mega-cat__link--parent::after,
#imela-sticky-bar .imela-mega-cat__link--parent::after {
	content: "";
	flex: 0 0 8px;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	transition: transform 0.15s ease;
}

#imela-header .imela-mega-cat--parent.is-sub-open > .imela-mega-cat__link--parent::after,
#imela-sticky-bar .imela-mega-cat--parent.is-sub-open > .imela-mega-cat__link--parent::after {
	transform: rotate(180deg);
}

#imela-header .imela-mega-cat__link:hover,
#imela-header .imela-mega-menu__cats > li.imela-products-active > .imela-mega-cat__link,
#imela-sticky-bar .imela-mega-cat__link:hover,
#imela-sticky-bar .imela-mega-menu__cats > li.imela-products-active > .imela-mega-cat__link {
	background: rgba(31, 208, 183, 0.12);
	color: var(--imela-teal);
}

#imela-header .imela-mega-menu--with-panel .imela-menu-products-zone,
#imela-sticky-bar .imela-mega-menu--with-panel .imela-menu-products-zone {
	flex: 1 1 auto;
	padding: 14px 16px;
	background: #fafafa;
	min-width: 0;
	min-height: 200px;
}

#imela-header .imela-mega-menu--with-panel .imela-menu-products-zone[hidden],
#imela-sticky-bar .imela-mega-menu--with-panel .imela-menu-products-zone[hidden] {
	display: block !important;
}

#imela-header .imela-mega-menu--with-panel .imela-menu-products-zone[hidden]:empty::before,
#imela-sticky-bar .imela-mega-menu--with-panel .imela-menu-products-zone[hidden]:empty::before {
	content: "Proizvodi u kategoriji";
	display: block;
	margin: 0 0 10px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #9a9a9a;
}

#imela-header .imela-mega-menu .imela-mega-cat--parent,
#imela-sticky-bar .imela-mega-menu .imela-mega-cat--parent {
	position: relative;
}

#imela-header .imela-mega-sublist,
#imela-sticky-bar .imela-mega-sublist {
	display: none;
	position: absolute !important;
	top: 100%;
	left: 0;
	z-index: 3;
	float: none !important;
	min-width: 220px;
	width: max-content;
	max-width: 320px;
	margin: 0;
	padding: 6px 0;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 2px;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18), 0 3px 10px rgba(0, 0, 0, 0.08);
	list-style: none;
}

#imela-header .imela-mega-sublist > li:not(:last-child),
#imela-sticky-bar .imela-mega-sublist > li:not(:last-child) {
	border-bottom: 1px solid #f0f0f0;
}

#imela-header .imela-mega-sublist .imela-mega-cat__link,
#imela-sticky-bar .imela-mega-sublist .imela-mega-cat__link {
	font-size: 11px;
	font-weight: 500;
	padding: 0.45rem 0.75rem;
	border-radius: 0;
}

#imela-header .imela-mega-sublist .imela-mega-sublist,
#imela-sticky-bar .imela-mega-sublist .imela-mega-sublist {
	top: 0;
	left: 100%;
	padding-left: 0;
}

#imela-header .imela-mega-cat--parent.is-sub-open > .imela-mega-sublist,
#imela-header .imela-mega-cat--parent:hover > .imela-mega-sublist,
#imela-sticky-bar .imela-mega-cat--parent.is-sub-open > .imela-mega-sublist,
#imela-sticky-bar .imela-mega-cat--parent:hover > .imela-mega-sublist {
	display: block !important;
}

#imela-header .imela-mega-menu__cats > li:last-child > .imela-mega-sublist,
#imela-header .imela-mega-menu__cats > li:nth-last-child(-n+2) > .imela-mega-sublist,
#imela-sticky-bar .imela-mega-menu__cats > li:last-child > .imela-mega-sublist,
#imela-sticky-bar .imela-mega-menu__cats > li:nth-last-child(-n+2) > .imela-mega-sublist {
	left: auto;
	right: 0;
}

/* Proizvodi u meniju */
.imela-menu-products-panel[hidden] {
	display: none !important;
}

.imela-menu-products::before {
	content: "Proizvodi u kategoriji";
	display: block;
	margin: 0 0 10px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #9a9a9a;
}

.imela-menu-products__list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 3px;
	overflow: hidden;
}

.imela-menu-products__item {
	border-bottom: 1px solid #f0f0f0;
}

.imela-menu-products__item:last-child {
	border-bottom: 0;
}

.imela-menu-products__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	padding: 9px 12px;
	text-decoration: none;
	color: #555;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.4;
	text-transform: uppercase;
}

.imela-menu-products__link:hover {
	background: rgba(31, 208, 183, 0.08);
	color: var(--imela-teal);
}

.imela-menu-products__price {
	font-size: 11px;
	font-weight: 700;
	color: #1a1a1a;
	white-space: nowrap;
	text-align: right;
}

.imela-menu-products__footer {
	margin-top: 12px;
	text-align: right;
}

.imela-menu-products__all {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--imela-teal);
	text-decoration: none;
}

.imela-menu-products__all:hover {
	color: var(--imela-orange);
}

.imela-menu-products__loading,
.imela-menu-products__empty {
	padding: 16px;
	font-size: 11px;
	color: #888;
	text-align: center;
	border: 1px dashed #ddd;
	border-radius: 3px;
	background: #fff;
}

/* Pretraga */
.imela-search label,
#imela-header .imela-search label,
#imela-sticky-bar .imela-search label,
.imela-offcanvas .imela-search label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

#imela-header .imela-search__form {
	width: 100%;
}

#imela-header .imela-search__group {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	width: 100%;
	border: 1px solid #ccc;
	border-radius: 2px;
	overflow: hidden;
}

#imela-header .imela-search__input {
	flex: 1 1 auto !important;
	width: 1% !important;
	min-width: 0;
	border: 0;
	box-shadow: none;
	font-size: 15px;
	padding: 0.65rem 1rem;
}

#imela-header .imela-search__input:focus {
	box-shadow: none;
	border-color: transparent;
}

#imela-header .imela-search__submit {
	flex: 0 0 52px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: var(--imela-bar);
	border: 0;
	color: #fff;
	padding: 0;
}

#imela-header .imela-search__submit:hover {
	background: #2c574e;
	color: #fff;
}

@media (min-width: 992px) {
	#imela-header .imela-search__group {
		height: 34px;
	}

	#imela-header .imela-search__input {
		font-size: 13px;
		padding: 0 0.75rem !important;
		height: 34px !important;
		min-height: 0 !important;
		line-height: 34px;
	}

	#imela-header .imela-search__submit {
		flex: 0 0 34px !important;
		height: 34px;
	}
}

/* Korpa */
#imela-header .imela-mini-cart__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #6d6c6c;
	font-size: 11px;
	border: 1px solid #b5b5b5;
	padding: 6px 12px 6px 8px;
	background: #fff;
}

#imela-header .imela-mini-cart__label.dropdown-toggle::after {
	display: none;
}

#imela-header .imela-mini-cart__icon {
	padding-right: 8px;
	border-right: 1px dashed #a1a1a1;
}

#imela-header .imela-mini-cart__summary {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

#imela-header .imela-mini-cart__dropdown {
	min-width: 300px;
}

/* Mobilni toggle */
#imela-header .imela-header__toggle {
	width: 44px;
	height: 44px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#imela-header .imela-header__toggle--menu {
	width: auto;
	min-width: 64px;
	height: auto;
	min-height: 40px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--imela-text);
}

#imela-header .imela-header__toggle-label {
	display: block;
	font-family: inherit;
	pointer-events: none;
}

#imela-header .imela-hamburger {
	display: none;
}

/* Mobilni header red — MENU levo, logo centar, korpa desno */
@media (max-width: 991.98px) {
	#imela-header .imela-header__utility-mobile-bar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
		gap: 8px;
		position: relative;
		padding: 0.65rem 0 0.5rem;
		background: #fff;
	}

	#imela-header .imela-header__utility-mobile .imela-header__brand--mobile-center {
		grid-column: 2;
		justify-self: center;
		min-width: 0;
		max-width: 46vw;
		text-align: center;
	}

	#imela-header .imela-header__utility-mobile .imela-header__logo {
		display: block;
		height: 48px;
		width: auto;
		max-width: 100%;
		margin: 0 auto;
		object-fit: contain;
	}

	#imela-header .imela-header__mobile-controls {
		grid-column: 1;
		justify-self: start;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 6px;
		position: static;
		transform: none;
	}

	#imela-header .imela-header__utility-mobile .imela-header__cart {
		grid-column: 3;
		justify-self: end;
		margin-left: 0;
	}

	#imela-header .imela-header__utility-mobile .imela-mini-cart__label {
		font-size: 9px;
		line-height: 1.15;
	}

	#imela-header .imela-header__utility-mobile .imela-mini-cart__icon svg {
		width: 20px;
		height: 20px;
	}

	#imela-header .imela-header__utility-mobile .imela-header__toggle {
		width: 40px;
		height: 40px;
	}

	#imela-header .imela-header__utility-mobile .imela-header__toggle--menu {
		width: auto;
		height: auto;
		min-height: 40px;
		padding: 8px 12px;
		font-size: 13px;
	}
}

/* Offcanvas — preko cele širine, skrol na samom panelu (iOS) */
.offcanvas.imela-offcanvas {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	z-index: 30000 !important;
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
	height: 100dvh !important;
	max-height: 100% !important;
	max-height: 100dvh !important;
	overflow-x: hidden !important;
	overflow-y: scroll !important;
	-webkit-overflow-scrolling: touch !important;
	touch-action: pan-y !important;
	overscroll-behavior: contain;
	visibility: hidden;
	background-color: #fff;
	background-clip: padding-box;
	outline: 0;
	box-shadow: none;
	transform: translateX(100%);
	transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.offcanvas.imela-offcanvas.show {
	visibility: visible;
	transform: none;
	overflow-y: scroll !important;
	overflow-x: hidden !important;
}

.offcanvas-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 29990 !important;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.5);
}

.offcanvas-backdrop.fade {
	opacity: 0;
}

.offcanvas-backdrop.show {
	opacity: 1;
}

html.imela-offcanvas-open,
html.imela-offcanvas-open body {
	overflow: hidden !important;
	height: 100% !important;
	overscroll-behavior: none;
}

html.imela-offcanvas-open .st-container,
html.imela-offcanvas-open #st-container,
html.imela-offcanvas-open .st-pusher,
html.imela-offcanvas-open .st-content,
html.imela-offcanvas-open .st-content-inner {
	overflow: visible !important;
	transform: none !important;
}

.imela-offcanvas .offcanvas-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px 16px;
	padding-top: max(18px, env(safe-area-inset-top, 18px));
	position: sticky;
	top: 0;
	z-index: 2;
	flex-shrink: 0;
	background: #fff;
}

.imela-offcanvas .offcanvas-title {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #333 !important;
	margin: 0;
}

.imela-offcanvas .btn-close {
	width: 28px;
	height: 28px;
	padding: 0;
	margin: 0;
	opacity: 1;
	background-size: 18px;
	flex-shrink: 0;
}

.imela-offcanvas .offcanvas-body {
	display: block !important;
	flex: none !important;
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
	overflow: visible !important;
	padding-bottom: 48px;
	-webkit-overflow-scrolling: auto;
	touch-action: auto;
}

.imela-offcanvas .imela-mobile-menu {
	margin: 0;
	padding: 0;
}

.imela-offcanvas .imela-mobile-link,
.imela-offcanvas .imela-mobile-branch {
	display: flex !important;
	width: 100%;
	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--imela-text) !important;
	border: 0;
	border-bottom: 1px solid #f0f0f0;
	background: #fff;
	padding: 16px 20px;
	text-align: left;
	text-decoration: none;
}

.imela-offcanvas .imela-mobile-branch {
	cursor: pointer;
}

.imela-offcanvas .imela-mobile-link:hover,
.imela-offcanvas .imela-mobile-branch:hover {
	color: var(--imela-teal) !important;
	background: rgba(31, 208, 183, 0.06);
}

.imela-offcanvas .imela-mobile-item {
	display: block !important;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.imela-offcanvas .imela-mobile-sublist-wrap {
	overflow: hidden;
}

.imela-offcanvas .imela-mobile-sublist-wrap .imela-mobile-sublist {
	padding: 0 0 8px;
	margin: 0;
	background: #f7f7f7;
}

.imela-offcanvas .imela-mobile-sublist-wrap .imela-mobile-item {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.imela-offcanvas .imela-mobile-sublist-wrap.collapse.show {
	display: block !important;
	height: auto !important;
	max-height: none !important;
	visibility: visible !important;
	overflow: visible !important;
}

.imela-offcanvas .imela-mobile-sublist-wrap.collapsing {
	display: block !important;
	height: auto !important;
	visibility: visible !important;
}

.imela-offcanvas .imela-mobile-item--depth-1 .imela-mobile-link,
.imela-offcanvas .imela-mobile-item--depth-1 .imela-mobile-branch {
	font-size: 16px;
	font-weight: 500;
	padding-left: 28px;
}

.imela-offcanvas .imela-mobile-item--depth-2 .imela-mobile-link,
.imela-offcanvas .imela-mobile-item--depth-2 .imela-mobile-branch,
.imela-offcanvas .imela-mobile-item--depth-3 .imela-mobile-link,
.imela-offcanvas .imela-mobile-item--depth-3 .imela-mobile-branch {
	font-size: 15px;
	font-weight: 400;
	color: #6d6c6c;
	padding-left: 36px;
}

.imela-offcanvas .imela-mobile-sublist-wrap:not(.show):not(.collapsing) {
	height: 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	display: none !important;
}

.imela-offcanvas li.imela-has-products > .imela-mobile-link::after {
	content: "+";
	float: right;
	color: var(--imela-teal);
	font-weight: 400;
	font-size: 16px;
	line-height: 1;
}

.imela-offcanvas li.imela-drawer-products-open > .imela-mobile-link::after {
	content: "−";
}

.imela-offcanvas .imela-menu-products-panel {
	padding: 10px 12px 14px;
	background: #fafafa;
	border-left: 3px solid var(--imela-teal);
	margin: 0 0 8px;
}

.imela-offcanvas .imela-offcanvas-pages .imela-mobile-branch__icon,
.imela-offcanvas .imela-mobile-menu .imela-mobile-branch__icon {
	flex: 0 0 auto;
	margin-left: 12px;
	font-size: 16px;
	line-height: 1;
	color: var(--imela-teal);
}

.imela-offcanvas .imela-mobile-branch[aria-expanded="true"] .imela-mobile-branch__icon {
	content: none;
}

/* Sticky — YIT tema (samo mobilni utility) */
@media (min-width: 992px) {
	body.inweb-header-active #header-container.fixed {
		position: static !important;
		top: auto !important;
		height: auto !important;
		box-shadow: none !important;
	}
}

@media (max-width: 991.98px) {
	body.inweb-header-active #header-container {
		overflow: visible !important;
	}

	/* YIT sticky — ne meša se sa našim mobilnim stickyjem */
	body.inweb-header-active #header-container.fixed:not(.imela-mobile-fixed) {
		position: static !important;
		top: auto !important;
		height: auto !important;
		box-shadow: none !important;
		display: block !important;
	}

	body.inweb-header-active #header-container.imela-mobile-fixed {
		position: fixed !important;
		top: 0 !important;
		left: 0;
		right: 0;
		width: 100%;
		z-index: 10150 !important;
		background: #fff !important;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
		height: auto !important;
	}

	body.admin-bar.inweb-header-active #header-container.imela-mobile-fixed {
		top: 46px !important;
	}

	body.inweb-header-active #header-container.imela-mobile-fixed .imela-header__search-row {
		display: none !important;
	}

	body.inweb-header-active #header-container.imela-mobile-fixed .imela-header__catalog {
		display: none !important;
	}

	body.inweb-header-active #header-container.imela-mobile-fixed .imela-header__utility-row {
		border-bottom: 1px solid #efefef;
	}

	.imela-mobile-header-placeholder {
		display: block;
		width: 100%;
		height: 0;
		margin: 0;
		padding: 0;
		border: 0;
		overflow: hidden;
		pointer-events: none;
	}
}

@media (max-width: 991.98px) and (max-width: 782px) {
	body.admin-bar.inweb-header-active #header-container.imela-mobile-fixed {
		top: 46px !important;
	}
}

@media (max-width: 600px) {
	body.admin-bar.inweb-header-active #header-container.imela-mobile-fixed {
		top: 0 !important;
	}
}

@media (min-width: 1200px) {
	#imela-header .imela-utility-nav .nav-link {
		font-size: 14px;
		padding: 0.45rem 0.85rem;
	}

	#imela-header .imela-cat-nav__link {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#imela-header * {
		transition: none !important;
	}
}
