.header {
	direction: rtl;
	height: 80px;
	background-color: #fff;
	box-shadow: 0px 4px 30px rgba(199, 199, 199, 0.25);
	padding: 0;
	z-index: 999;

	@media (max-width: 576px) {
		height: 60px;
	}

	&.header-mobile-hide {
		@media (max-width: 576px) {
			display: none;
		}
	}

	&.has-alert {
		margin-top: 90px;
	}

	.container {
		height: 100%;

		@media (max-width: 576px) {
			justify-content: center;
		}
	}

	.nav-wrapper {
		position: relative;
		height: 100%;
	}

	.navbar-brand {
		margin-left: 50px;

		@media (max-width: 576px) {
			margin-left: 0;
			margin-right: 0;
		}

		.header-logo {
			background-image: url('/assets/images/logo.png');
			background-repeat: no-repeat;
			background-position: right center;
			width: 142px;
			height: 50px;

			@media (max-width: 576px) {
				background-size: 100px;
				width: 100px;
			}
		}
	}

	.navbar-nav {
		height: 100%;
		align-items: center;

		.nav-item {
			height: 100%;
			margin: 0 12px;
			padding: 0;

			&.menu-user {
				@media (min-width: 576px) {
					display: none;
				}
			}

			a {
				height: 100%;
				color: #455464;
				align-items: center;
				display: flex;
				text-decoration: none;

				.icon {
					@media (min-width: 576px) {
						display: none;
					}
				}
			}

			&:hover {
				color: #7a90a7;
			}

			&.active {
				border-bottom: 3px solid #48577c;
			}
		}
	}

	.search-icon {
		position: absolute;
		left: 0%;
		top: 0%;
		bottom: 0%;
		margin: auto;
		padding-left: 5px;
	}
}

.btn-user {
	direction: ltr;

	a {
		width: 95px;
		height: 48px;
		box-shadow: 0px 4px 10px rgba(230, 110, 0, 0.2);
		position: relative;
	}

	.signup {
		border-radius: 0 10px 10px 0;
		padding-top: 12px;
	}

	.login {
		border-radius: 10px 0 0 10px;
		padding-top: 11px;

		&:before {
			content: '';
			width: 1px;
			background-color: #fff;
			position: absolute;
			height: 30px;
			top: 9px;
			right: 0;
		}
	}

	.user-logged {
		display: flex;
		direction: rtl;
		align-items: center;
		// justify-content: space-between;
		font-size: 18px;
		width: 187px;

		span {
			display: inline-block;
			overflow: hidden;
			white-space: nowrap;
			font-size: 15px;
			margin-right: 5px;
			text-overflow: ellipsis;
			width: 100%;
		}
	}

	.avatar {
		width: 30px;
		height: 30px;
		border-radius: 50%;
		object-fit: cover;
	}
}

.btn-basket,
.btn-search {
	position: relative;
	height: 48px;
	width: 55px;
	padding: 7px 10px 0 0;
	margin-left: 10px;
	border-radius: 10px;

	&:hover {
		background-color: #f5f5f5;
	}

	.count {
		position: absolute;
		right: 6px;
		top: 7px;
		min-width: 18px;
		height: 18px;
		padding-top: 1px;
		border-radius: 50%;
		background-color: #48577c;
		color: #fff;
		font-size: 11px;
		font-family: tahoma;
	}
}

.btn-search {
	padding: 0;
}

.hidden-space {
	height: 80px;

	&.has-alert {
		height: 150px;
	}
}

.header-search {
	border: 1px solid #ff8852;
	background-color: #fff;
	height: 48px;
	width: 53px;
	overflow: hidden;
	border-radius: 10px;
	display: flex;
	justify-content: left;
	align-items: center;
	padding: 0 10px;
	position: absolute;
	left: 265px;
	transition: width 0.5s;

	&.open {
		width: 350px;
	}

	button {
		background-color: transparent;
		border: 1px solid transparent;
	}

	input {
		color: #546e7a;
		border: 0 none;
		width: 300px;

		&:focus {
			outline: none;
		}
	}
}

.header-alert {
	position: fixed;
	z-index: 998;
	top: 0;
	left: 0;
	width: 100%;
	background-color: #dfe0df;
	height: 90px;
	text-align: center;
	color: #dd4500;
	font-size: 15px;
	font-style: normal;
	font-weight: 500;
	align-items: center;
	display: flex;
	justify-content: center;
	direction: rtl;
	padding: 0 70px;
	line-height: 28px;

	a {
		text-decoration: none;
		color: #dd4500;

		&:hover {
			color: #a53400;
		}
	}

	@media (max-width: 576px) {
		padding: 0;
		line-height: 22px;
	}

	.Typewriter {
		margin-bottom: 0;

		@media (max-width: 576px) {
			margin-right: 39px;
			text-align: right;
			font-size: 13px;
			margin-left: 20px;
		}
	}

	button {
		outline: 0;
		border: none;
		background: transparent;
		position: absolute;
		right: 30px;

		@media (max-width: 576px) {
			right: 15px;
		}
	}
}

.header-modal {
	font-style: normal;
	font-weight: 300;
	font-size: 14px;
	line-height: 22px;
	text-align: right;
	color: #546e7a;
	padding: 25px;

	h3 {
		font-size: 14px;
	}

	ul {
		list-style: none;
		margin-bottom: 24px;
	}

	li {
		position: relative;
		padding-right: 16px;
		margin-bottom: 7px;

		&::before {
			content: '•';
			color: #ff8852;
			font-size: 20px;
			position: absolute;
			line-height: 1;
			right: 0;
		}
	}

	.box {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 10px 4px 11px;
		background: #ededed;
		border-radius: 12px;
		margin: 6px 0;
		height: 151px;

		img {
			width: 130px;
			height: 130px;

			@media (max-width: 576px) {
				height: 100px;
				object-fit: contain;
			}
		}

		&.custom {
			overflow: hidden;

			@media (max-width: 576px) {
				height: 121px;
			}

			img {
				width: auto;
				height: 200px;

				@media (max-width: 576px) {
					height: 180px;
					object-fit: contain;
				}
			}
		}
	}
}

.mobile-header {
	width: 100%;
	height: 58px;
	position: fixed;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	top: 0;
	right: 0;
	direction: rtl;
	background-color: #fff;
	z-index: 100;
	box-shadow: 0px 4px 30px rgba(199, 199, 199, 0.25);

	&.has-alert {
		margin-top: 90px;
	}

	@media (min-width: 576px) {
		display: none;
	}

	.mobile-menu {
		outline: 0;
		background-color: transparent;
		border: none;
		margin-right: 20px;
	}

	.btn-basket {
		margin: 10px 0 0 0;
		display: inline-block;

		.count {
			text-align: center;
		}
	}
}

.mobile-sidemenu-back {
	background-color: rgba(0, 0, 0, 0.6);
	position: fixed;
	z-index: 9999;
	width: 100%;
	height: 100%;
	top: 0;
	right: 0;
	display: none;

	&.active {
		display: block;
	}
}

.mobile-sidemenu {
	position: fixed;
	z-index: 100000;
	background-color: #fff;
	width: 85%;
	height: 100%;
	right: -100%;
	transition: all 0.5s ease 0s;

	@media (min-width: 576px) {
		display: none;
	}

	&.active {
		right: 0;
	}

	.close-menu {
		float: left;
		outline: 0;
		background-color: transparent;
		border: none;
		margin: 22px 0 0 18px;
	}

	.header-logo {
		background-image: url('/assets/images/logo.png');
		width: 142px;
		height: 50px;
		margin: 50px auto 25px;
	}

	.nav {
		direction: rtl;

		.nav-item {
			width: 100%;
			padding: 16px 20px;
			flex-direction: row;
			align-items: center;

			a {
				text-decoration: none;
			}

			span {
				margin-right: 20px;
				font-style: normal;
				font-weight: 500;
				font-size: 15px;
				color: #546e7a;
			}
		}
	}
}
