/* Updated: Header styling improvements */
/* Author: Nguyen Thai Son - https://github.com/Tson28 */

/* Header */
	.header {
		position: sticky;
		position: -webkit-sticky; /* Safari */
		top: 0;
		z-index: 12;
		background-color: #FFD400; /* yellow theme */
		padding: 12px 0 8px 0 ;
		border-bottom: none;
	}

	/* Logo */
		.header .logo {
			width: 250px;
			height: 60px;
			float: left;
			transition-duration: .1s;
		}
		.header .logo:hover {
			transform: scale(1.05)
		}
		.header .logo .logo-text {
			display: inline-block;
			font-weight: 800;
			font-size: 32px;
			line-height: 60px;
			padding: 0 12px;
			color: #000;
			text-decoration: none;
			border-radius: 8px;
			background: rgba(255,255,255,0.3);
		}
	/* ======= End logo ======== */

	/* Content */
		.header .content{
			/* tru width cua logo */
			width: calc(100% - 250px);
			float: left;
			display: -webkit-box;
			display: -ms-flexbox;
			display: flex;
			-webkit-box-align: center;
			    -ms-flex-align: center;
			        align-items: center;
			-webkit-box-pack: justify;
			    -ms-flex-pack: justify;
			        justify-content: space-between;
		}

		/* Search */
			.search-header {
				float: none;
				margin: 0 auto;
				text-align: center;
			}

			form.input-search {
				margin-left: 20px;
				background: #fff;
				border: 2px solid #e1e1e1;
				border-radius: 100px;
				height: 44px;
				width: 680px;
			}
			.input-search input {
				float: left;
				padding-left: 15px;
				border: none;
				border-radius: 100px 0 0 100px;
				height: 100%;
				width: calc(100% - 110px - 20px);
				/* 100 la width button, 20 la padding button */
			}
			.input-search button {
				float: right;
				font-size: 16px;
				font-weight: bold;
				padding: 0 14px;
				color: #000;
				background: none;
				width: 110px;
				height: 100%;
				border: none;
				cursor: pointer;
				-webkit-transition-duration: .3s;
				     -o-transition-duration: .3s;
				        transition-duration: .3s;
			}
			.input-search button:hover {
				color: #288ad6;
			}

			.tags {
				margin: 5px 0 0 0;
				font-size: 14px;
				text-align: center;
			}
			.tags a {
				color: #333;
				padding: 0 5px;
			}
			.tags a:hover {
				color: #000;
				text-decoration: underline;
			}

			/* W3 school autocomplete */
				.autocomplete {
					/*the container must be positioned relative:*/
					position: relative;
					height: 100%;
				}
				.autocomplete-items {
					position: absolute;
					border: 1px solid #d4d4d4;
					border-bottom: none;
					border-top: none;
					z-index: 99;
					/*position the autocomplete items to be the same width as the container:*/
					top: 100%;
					left: 0;
					right: 0;
				}
				.autocomplete-items div {
					padding: 10px;
					cursor: pointer;
					background-color: #fff; 
					border-bottom: 1px solid #d4d4d4; 
				}
				.autocomplete-items div:hover {
					/*when hovering an item:*/
					background-color: #e9e9e9; 
				}
				.autocomplete-active {
					/*when navigating through the items using the arrow keys:*/
					background-color: DodgerBlue !important; 
					color: #ffffff; 
				}
			/* End auto complete */
		/* ======= End search ========== */

		/* Tools Member */
			.tools-member {
				float: none;
				display: table;
				margin-left: 10px;
				font-size: 16px;
			}

			.tools-member a {
				position: relative;
				padding: 5px 0;
				text-align: center;
				font-size: 16px;
				font-weight: bold;
				color: #333;
				cursor: pointer;
			}
			.tools-member a:hover > i {
				border: 1px solid #fff;
				background-color: #000;
				color: #fff;
			}

			.tools-member i { /* icon */
				padding: 10px;
				border-radius: 50%;
				border: 1px solid #e1e1e1;
				background-color: #fff;
				color: #000;
				-webkit-transition: 0.2s;
				-o-transition: 0.2s;
				transition: 0.2s;
			}
			.tools-member .fa-user {
				padding: 10px 12.5px;
			}
			.tools-member .fa-shopping-cart {
				padding: 10px 11px;
			}
			/* Member */
				.member {
					position: relative;
					float: left;
					display: table-cell;
				}
				.member:hover > .menuMember{
					z-index: 20;
					transform: translateX(-40%) scale(1);
				}
				.member .menuMember {
					position: absolute;
					left: 0;
					text-align: center;
					border-radius: 5px;
					background-color: #eee;
					min-width: 170px;
					transition-duration: .15s;
					transform: translateX(-40%) scale(0);
				}
				.member .menuMember a {
					display: block;
					padding: 10px 0;
				}
				.member .menuMember a:hover {
					background-color: #888;
					color: #eee;
				}
				.member .hide {
					display: none;
				}
			/* ======= End Member ======= */

			/* Cart */
				.cart {
					float: left;
					display: table-cell;
					/* border-left: 1px solid #bbb; */
					margin: 0 15px; 
					padding-left: 5px;
				}
				.cart-number {
					position: absolute;
					left: 1.4em;
					bottom: -1em;
					font-weight: bold;
					font-size: 1em;
					color: red;
					border-radius: 50%;
					width: 2em;
					height: 2em;
					line-height: 2em;
					text-align: center;
				}
				.cart .cart-number {
					transition-duration: .4s; 
				}
			/* ======= End Cart ======== */

			/* Check Order - Đã loại bỏ */
				.check-order {
					float: left;
					display: table-cell;
					border-left: 1px solid #bbb;
					margin-left: 5px;
					padding-left: 5px; 
				}
			/* ======= End Check Order ======= */
		/* ======= End Tools Member ======= */
	/* ======= End Content ========= */
/* ======= End header ======== */