#content.sticktohead,
#content {
	padding-top: var(--head-height);
}

@media (max-width: 768px) {
	.pagetoptitle,
	#content #adminpagetitle {
		display: block;
		z-index: 101 !important;
		top: 0;
		margin-top: 0 !important;
		position: fixed;
		color: white;
		box-sizing: border-box;
		overflow: hidden;
		text-align: center;
		text-overflow: ellipsis;
		width: 100%;
		font-size: 24px;
		font-weight: 500;
		pointer-events: none;
		white-space: nowrap;
		left: 0;
	}
}


#head {
	position: fixed;
	top: 0;
	left: 0;
	height: var(--head-height);
	border: none;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	/* border-bottom: 2px solid var(--main-color); */
}

@media (max-width: 768px) {
	#head {
		background: var(--main-color);
	}
	.head_img_wrapper {
		display: none;
	}

}


#head.smallmenuopen {
	z-index: 98;
}

#head.smallmenuopen .hamburder_and_search .search_wrapper {
	opacity: 0;
	pointer-events: none;
}

#head.smallmenuopen .head_wrap_background {
	position: fixed;
	top: 0;
	left: 0;
	width: calc(100vw);
	height: calc(100%);
	background: rgba(0, 0, 0, 0.4);
	z-index: 3;
}

.head_wrap {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	max-width: var(--mobile-menu-width);
}

.close_menu_on_wide_screens {
	height: var(--head-height);
	background: white;
	cursor: pointer;
	position: fixed;
	top: 0;
	left: 0;
	width: var(--mobile-menu-width);
	max-width: 100vw;
	max-width: 100dvw;
	left: calc(min(var(--mobile-menu-width), 100vw) * -1);
	transition: left 0.3s ease;
	z-index: 103;
	padding-right: 15px;
	padding-top: 12px;
	display: flex;
	justify-content: flex-end;
}

#head.smallmenuopen .close_menu_on_wide_screens {
	left: 0;
}

.close_menu_on_wide_screens .nav-icon {
	left: unset;
	right: 8px;
}


@media (max-width: 1280px) {
	.close_menu_on_wide_screens {
		display: none;
	}


	.head_wrap {
		top: calc(var(--head-height));
	}

	#head.smallmenuopen .head_wrap_background {
		top: calc(var(--head-height));
	}
}

.hamburder_and_search {
	position: absolute;
    top: 7px;
    left: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0px;
    height: calc(100% - 7px);
    padding-right: 5px;
	flex-direction: row;
}

@media (max-width: 768px) {
	.hamburder_and_search .search_wrapper {
		display: none;
	}
}



.head_img {
	all: unset;
	position: relative;
	width: 40px;
	height: 35px;
	padding: 0;
	overflow: hidden;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: left center;
}

.head_img_wrapper {
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.head_img_wrapper img {
	padding-top: calc(var(--head-height) * 0.15);
	height: calc(var(--head-height) * 0.7);
	object-fit: contain;
}

.head_img_and_basket {
	position: absolute;
	top: 7px;
	right: 6px;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	height: calc(100% - 7px);
	padding-right: 5px;
}

.head_basket {
	all: unset;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	color: var(--main-color);
	position: relative;
	font-size: 18px;
	font-weight: 500;
}

.head_basket i {
	color: var(--main-color);
	font-size: 23px;
}

.head_basket span {
	font-size: 12px;
	position: absolute;
	left: 4px;
	top: 0;
	border-radius: 50%;
	background: #444;
	padding: 2px 6px;
	color: white;
	font-weight: 500;
}

.head_img img {
	opacity: 0.01;
	height: 100%;
}

.head_username {
	color: var(--main-color);
	font-size: 20px;
    display: flex;
	gap: 6px;
    justify-content: center;
    align-items: center;
	font-weight: 400;
	position: relative;
}

.head_username i {
	font-size: 25px;
}

.head_username a {
	color: var(--main-color);
	font-weight: 400;
}

.head_img {
	display: none;
}

@media (max-width: 768px) {
	.head_basket {
		display: none;
	}
	.head_img {
		display: block;
		background-image: url(/skin/ipokloni/images/logo_glava_w.png);
	}

	.head_username {
		display: none;
	}
}

#head.admin .head_img {
	padding: 0;
}

.nav-icon {
	/* position: absolute;
	top: 12px;
	left: 15px; */
	width: 32px;
}

.nav-icon:after,
.nav-icon:before,
.nav-icon div {
	background-color: var(--main-color);
	border-radius: 3px;
	content: '';
	display: block;
	height: 4px;
	margin: 4px 0 5px;
	transition: all .2s ease-in-out;
}

@media (max-width: 768px) {

	.nav-icon:after,
	.nav-icon:before,
	.nav-icon div {
		background-color: white;
	}
}

#head.smallmenuopen .nav-icon:before {
	transform: translateY(8px) rotate(135deg);
}

#head.smallmenuopen .nav-icon:after {
	transform: translateY(-10px) rotate(-135deg);
}

#head.smallmenuopen .nav-icon div {
	transform: scale(0);
}



#head.admin .head_wrap {
	background: #444;
}

#head.smallmenuopen .head_wrap {
	height: calc(100dvh - var(--head-height));
}





.head_menu {
	position: relative;
	right: unset;
	bottom: unset;
	width: 100%;
	padding-bottom: 50px;
	background: transparent;
}

#head.admin .head_menu {
	right: unset;
}




/* Hide original menu */
/* .head_menu {
	display: none;
} */

.head_wrap a {
	cursor: pointer;
}





.mobile_menu_wrapper {
	height: 100vh;
	width: var(--mobile-menu-width);
	max-width: 100vw;
	max-width: 100dvw;
	overflow-x: hidden;
	left: -100%;
	transition: left 0.3s ease;
	position: absolute;
	top: 0;
	z-index: 99;
	box-sizing: border-box;
	background: white;
	overflow-y: hidden;
}

.mobile_menu_wrapper * {
	box-sizing: border-box;
}




#head.smallmenuopen .mobile_menu_wrapper {
	left: 0;
}

/* Mobile menu header */
.mobile_menu_header {
	background: var(--main-color);
	padding: 15px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: white;
}

.close_menu {
	background: none;
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
}

.mobile_menu_header h1 {
	margin: 0;
	font-size: 20px;
	font-weight: bold;
}

.user_icon {
	font-size: 18px;
}

/* Search section */
.search_section {
	height: 100px;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	max-height: 100px;
	margin: 0;
	padding: 0 20px 20px 20px;
}

.search_input {
	position: relative;

	border-radius: 8px;
	overflow: hidden;
}

.search_input input {
	width: 100%;
	padding: 12px 40px 12px 15px;
	border: none;
	outline: none;
	font-size: 16px;
	background: #f5f5f5;

}

.search_input i {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
}



.menu_section+.menu_section {
	border-top: 1px solid #eee;
}

.prijava_section {
	/* flex-grow: 1; */
}

.menu_item {
	padding: 20px 0 10px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	transition: background 0.2s ease;
}

.menu_item:hover {}

.menu_item_content {
	display: flex;
	align-items: center;
	gap: 15px;
}


.submenu_item_with_children span {
	font-size: 15px;
	color: #666;
	font-weight: 400;
}



.submenu.submenu_foto_pokloni a,
.submenu.submenu_foto_pokloni span {
	padding-left: 10px !important;
	padding: 10px;
}

.submenu.submenu_foto_pokloni span {
	display: block;
	padding-top: 20px;
}

.submenu.submenu_foto_pokloni .submenu_children a {
	padding-left: 30px !important;
	color: #888;
}

.menu_item_content i {
	width: 20px;
	font-size: 18px;
	color: #666;
}

.menu_item_content span {
	font-size: 17px;
	color: #333;
	font-weight: 500;
}

/* Submenu */
.submenu {
	margin: 0 -20px;
	padding: 0px 20px 20px;
}

.submenu a {
	display: block;
	padding: 7px 0 7px 35px;
	color: #666;
	font-weight: 400;
	text-decoration: none;
	font-size: 15px;
	border-left: 2px solid transparent;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.submenu a:hover {
	color: var(--main-color);
	border-left-color: var(--main-color);
}

/* App download section */
.app_download {
	padding: 20px;
	text-align: center;
	background: #FFF2DA;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding-bottom: 20px;
	width: 100%;
	max-width: 100vw;
	max-width: 100dvw;
	box-sizing: border-box;
	position: relative;
	bottom: unset;
	margin-top: 20px;
	padding-bottom: 50px;
	z-index: -1;

}
.app_download {
	padding-bottom: 60px;
}

.app_download_wrapper {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	padding-bottom: 0 !important;
}

@media screen and (max-width: 768px) {
	.app_download {
		padding-bottom: 150px;
	}
}

@media (min-width: 1280px) {
	.menu_content {
		min-height: calc(100dvh - var(--head-height));
	}

}


#head.smallmenuopen .app_download {
	left: 0;
}

.app_download p {
	margin: 0 0 15px;
	color: #000;
	font-size: 14px;
	font-weight: 400;
	text-align: left;
}

.app_buttons {
	width: fit-content;
	padding-top: 10px;
	max-width: 250px;
	max-height: 60px;
	margin-bottom: 20px;
	margin-top: -30px;

}

.app_buttons img {
	height: 80px;
	object-fit: contain;
	overflow-clip-margin: content-box;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.app_buttons img:hover {
	transform: scale(1.05);
}

.app_button_apple {
	width: 40%;
}

.app_button_google {
	width: 50%;
	margin-left: 3%;
}



/* Menu toggle button */
.menu_toggle {
	cursor: pointer;
	transition: opacity 0.3s ease;
}

#head.smallmenuopen .menu_toggle {
	opacity: 0;
}

@media (max-width: 1280px) {
	.menu_toggle {
		opacity: 1;
	}

	#head.smallmenuopen .menu_toggle {
		opacity: 1;
	}
}

/* Responsive */
@media (min-width: 768px) {
	.new_menu_overlay {
		width: 400px;
	}
}

.menu_screen {
	display: flex;
	position: absolute;
	left: 0;
	top: var(--head-height);
	max-height: calc(100dvh - var(--head-height));
	width: 100%;
	min-height: 100%;
	background: #fff;
	z-index: 102;
	transition: left 0.3s ease;

	flex-direction: column;
	align-items: center;

	box-sizing: border-box;

	overflow-x: hidden;
	overflow-y: scroll;
	height: 100%;
}

.menu_screen.inactive  {
}


/* Menu content */
.menu_content {
	padding: 0;
	min-height: calc(100vh - var(--head-height) - 250px);
	display: flex;
	flex-direction: column;
	overflow-y: scroll;
	overflow-x: hidden;
	height: 100%;
}

.menu_content > div:last-child {
	padding-bottom: 140px;
}


@media (min-width: 768px) {
.menu_content >  div.app_download:last-child {
		padding-bottom: 50px;
	}
}

.menu_section {
	padding: 0 20px;
}




@media (max-width: 1280px) {
	.menu_screen {
		padding: 0px 0px 0px 0px;
		top: 0;
	}


	.menu_content {
	}

	.menu_item_content {
		gap: 10px;
	}

	.submenu a {
		padding: 7px 0 7px 30px;
	}
}

.menu_screen.inactive {
	left: 100%;

}

.menu_screen.active {
	left: 0;
	min-height: 100%;
}

.menu_screen>div {
	flex: 1;
	width: 100%;

}

.menu_screen .search_section {
	flex: 0 0 fit-content;
}

/* View all link */
.view_all {
	color: #666 !important;
	font-size: 14px;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 5px;
	font-weight: 400 !important;
}


.view_all i {
	margin-top: 2px;
}

.view_all:hover {
	color: var(--main-color) !important;
}

/* Special offer styling */
.special_offer .menu_item_content {
	color: #ff0000;
}

.special_offer .menu_item_content i {
	color: #ff0000;
}

.special_offer .menu_item_content span {
	font-size: 15px;
	color: #666;
	font-weight: 400;
}

.special_offer .menu_item_content,
.question_item .menu_item_content {
	gap: 5px;
}


.question_item .menu_item_content span {
	font-size: 15px;
	color: #666;
	font-weight: 400;
}



/* Adjust menu item to accommodate view all link */
.menu_item {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.menu_item_username span,
.menu_item_username i {
	color: var(--main-color);
}

.menu_item_kosarica {
	flex-grow: 1;
	width: 100%;
	position: relative;
	/* z-index: -1; */
	margin-bottom: 10px;
}
.menu_item_content_text {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-grow: 1;
	width: 100%;
}

.menu_item_kosarica span, 
.menu_item_kosarica i {
	color: var(--main-color);
}

.menu_item_kosarica:hover span {
	color: #666;
}


.menu_section_subpage .menu_item_content span {
	color: var(--main-color);
}

.menu_section_subpage .submenu  a{
	padding-left: 10px;
}

.menu_item_logout:hover .menu_item_content span,
.menu_item_logout:hover .menu_item_content i {
	color: var(--main-color);
}

.menu_go_back {
	font-size: 20px;
	color: #aaa;
	font-weight: 500;
	text-decoration: none;
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	padding: 20px 20px 20px 20px;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 60px;
	background: white;
	border-bottom: 1px solid #eee;

}

.menu_go_back_after{
	height: 60px;
}

.menu_go_back .menu_item_content {
	flex-grow: 1;
	display: flex;
	text-align: center;
	justify-content: center;
}


.hidden {
	display: none;
}

/* .head_wrap {
	overflow: visible;
	width: 800px !important;
	max-width: unset;
} */

.mobile_menu_wrapper {
	contain: layout paint;
}



.is_scheduled_menu .mobile_menu_wrapper  {
	border: 3px dashed #e67800;
}

.dim_note {
	color: #888;
	font-size: 12px;
	font-weight: 400;
	text-align: left;
	flex-grow: 1;
	padding-left: 10px;
}

.search_in_menu {
	padding: 10px 10px 20px 10px;
}

@media (max-width: 768px) {
	.search_in_menu {
		padding: 20px 10px;
	}
}

.head_search_icon {
	display: none;
}