/* =HEADER
----------------------------------------------- */

#masthead {
}

#header-meta {
	background-color: #F8F8F8;
	border-bottom: 1px solid #EAEAEA;
}

#header-text-nav-container {
	border-bottom: 1px solid #EAEAEA;

	&.headroom {
		background: #ffffff;
		will-change: transform;
		transition: transform 500ms linear;
		z-index: 9999;
	}

	&.headroom--pinned {
		transform: translateY(0%);
	}

	&.headroom--unpinned {
		transform: translateY(-100%);
	}
}

#header-text-nav-wrap {
	padding-top: 15px;
	padding-bottom: 15px;
}

#header-left-section {
	float: left;
	margin-right: 25px;
}

#header-logo-image {
	float: left;
	padding: 0 20px 0 0;
	max-width: 100%;

	img {
		margin-bottom: 0px;
	}
}

#header-text {
	float: left;
	padding: 10px 20px 0 0;
}

#site-title a {
	color: #444444;
	font-size: 36px;
}

h1#site-title, h3#site-title {
	padding-bottom: 5px;
	font-size: 30px;
	line-height: 36px;
}

#site-title a:hover {
	color: #0FBE7C;
}

#site-description {
	line-height: 24px;
	font-size: 16px;
	padding-bottom: 0;
	color: #666666;
}

#header-right-section {
	float: right;
}

#header-right-sidebar {
	overflow: hidden;
}

#header-right-section .widget {
	text-align: right;
	padding-top: 10px;

	h3 {
		padding-bottom: 5px;
	}
}

.header-image {
	margin-bottom: 0;
	border-bottom: 1px solid #EAEAEA;
	width: 100%;
}

/* =HEADER INFO TEXT
----------------------------------------------- */

.small-info-text {
	float: left;
	max-width: 100%;
	padding-right: 15px;
	padding-top: 2px;

	p {
		padding: 2px 0 0;
		font-size: 12px;
		color: #555555;
		margin-bottom: 0;
	}
}

/* =SOCIAL LINKS
----------------------------------------------- */

.social-links {
	max-width: 100%;
	float: left;
	padding-right: 15px;

	ul li {
		padding: 5px 15px 5px 0px;
		float: left;

		a {
			background-repeat: no-repeat;
		}
	}

	i {
		font-size: 18px;
		vertical-align: top;
	}

	ul li {
		&.spacious-codepen, &.spacious-digg, &.spacious-dribbble, &.spacious-facebook, &.spacious-flickr, &.spacious-googleplus, &.spacious-github, &.spacious-instagram, &.spacious-linkedin, &.spacious-pinterest, &.spacious-polldaddy, &.spacious-pocket, &.spacious-reddit, &.spacious-skype, &.spacious-stumbleupon, &.spacious-tumblr, &.spacious-twitter, &.spacious-vimeo, &.spacious-wordpress, &.spacious-youtube, &.spacious-rss, &.spacious-mail {
			a:before {
				display: inline-block;
				-webkit-font-smoothing: antialiased;
				font: normal 18px/1 'FontAwesome';
				vertical-align: top;
			}
		}

		&.spacious-codepen a:before {
			content: '\f1cb';
			color: #555555;
		}

		&.spacious-digg a:before {
			content: '\f1a6';
			color: #555555;
		}

		&.spacious-dribbble a:before {
			content: '\f17d';
			color: #ea4c89;
		}

		&.spacious-facebook a:before {
			content: '\f082';
			color: #3b5998;
		}

		&.spacious-flickr a:before {
			content: '\f16e';
			color: #ff0084;
		}

		&.spacious-googleplus a:before {
			content: '\f0d5';
			color: #dd4b39;
		}

		&.spacious-github a:before {
			content: '\f09b';
			color: #4183c4;
		}

		&.spacious-instagram a:before {
			content: '\f16d';
			color: #3f729b;
		}

		&.spacious-linkedin a:before {
			content: '\f08c';
			color: #0e76a8;
		}

		&.spacious-pinterest a:before {
			content: '\f0d2';
			color: #c8232c;
		}

		&.spacious-polldaddy a:before {
			content: '\f217';
			color: #bc0b0b;
		}

		&.spacious-pocket a:before {
			content: '\f265';
			color: #ee4056;
		}

		&.spacious-reddit a:before {
			content: '\f281';
			color: #336699;
		}

		&.spacious-skype a:before {
			content: '\f17e';
			color: #00aff0;
		}

		&.spacious-stumbleupon a:before {
			content: '\f1a4';
			color: #ff2618;
		}

		&.spacious-tumblr a:before {
			content: '\f174';
			color: #34526f;
		}

		&.spacious-twitter a:before {
			content: '\f099';
			color: #33ccff;
		}

		&.spacious-vimeo a:before {
			content: '\f27d';
			color: #1AB7EA;
		}

		&.spacious-wordpress a:before {
			content: '\f19a';
			color: #21759b;
		}

		&.spacious-youtube a:before {
			content: '\f16a';
			color: #c4302b;
		}

		&.spacious-rss a:before {
			content: '\f09e';
			color: #fa9b39;
		}

		&.spacious-mail a:before {
			content: '\f0e0';
			color: #dd4b39;
		}

		&.spacious-codepen a:hover, &.spacious-digg a:hover, &.spacious-dribbble a:hover, &.spacious-facebook a:hover, &.spacious-flickr a:hover, &.spacious-googleplus a:hover, &.spacious-github a:hover, &.spacious-instagram a:hover, &.spacious-linkedin a:hover, &.spacious-pinterest a:hover, &.spacious-polldaddy a:hover, &.spacious-pocket a:hover, &.spacious-reddit a:hover, &.spacious-skype a:hover, &.spacious-stumbleupon a:hover, &.spacious-tumblr a:hover, &.spacious-twitter a:hover, &.spacious-vimeo a:hover, &.spacious-wordpress a:hover, &.spacious-youtube a:hover, &.spacious-rss a:hover, &.spacious-mail a:hover,
		a i:hover {
			opacity: 0.8;
			filter: alpha(opacity=80);
			/* For IE8 and earlier */
		}
	}
}

/* =NAVIGATION
----------------------------------------------- */

nav li > {
	ul, ol {
		margin: 0;
		list-style: none;
	}
}

.main-navigation {
	float: right;
	padding-top: 20px;

	li {
		float: left;
		position: relative;
		padding: 0 0 0 25px;
		font-family: 'Lato', sans-serif;

		&.default-menu {
			display: none;
		}

	}

	.tg-menu-extras-wrap {
		line-height: 1.875;
	}

	a {
		color: #444444;
		display: block;
		float: left;
		line-height: 1.875;

		&:hover {
			color: #0FBE7C;
		}
	}

	.menu-primary-container {
		> ul {
			&::after {
				content: '';
				display: block;
				clear: both;
			}

			.spacious-menu-header-button-enabled & {
				display: flex;
				flex-wrap: wrap;
				align-items: center;
			}
		}
	}

	ul {
		li {
			&.tg-header-button-wrap {
				box-sizing: content-box;

				&.button-one {
					padding: 0;
					margin-left: 25px;

					a {
						border: 2px solid #0fbe7c;
						border-radius: 5px;
						padding: 5px 15px;
						background-color: #0fbe7c;
						color: #ffffff;

						&:hover {
							color: #ffffff;
							background-color: #0fbe7c;

						}
					}
				}

				&.button-two {
					padding: 0;
					margin-left: 25px;

					a {
						border: 2px solid #0fbe7c;
						border-radius: 5px;
						padding: 5px 15px;
						color: #0fbe7c;

						&:hover {
							color: #0fbe7c;

						}
					}
				}
			}

			&:not(.tg-header-button-wrap) {
				padding-top: 5px;
				padding-bottom: 5px;
			}

			a {
				font-size: 16px;
			}

			&:hover {
				> .sub-menu {
					visibility: visible;
					opacity: 1;
					transform: translateY(0);
				}
			}

			&.current-menu-item a,
			&.current_page_ancestor a,
			&.current-menu-ancestor a,
			&.current_page_item a,
			&:hover > a {
				color: #0FBE7C;
			}

			ul,
			&:hover ul ul {
				display: none;
				z-index: 9999;
			}

			&:hover ul {
				display: block;
			}

			ul {
				position: absolute;
				background-color: #FFFFFF;
				border-top: 1px solid #0FBE7C;
				top: 100%;
				left: 25px;
				width: 150px;

				li {
					float: none;
					border-bottom: 1px solid #EAEAEA;
					padding: 0;

					a {
						float: none;
						line-height: 21px;
						font-size: 13px;
						font-weight: normal;
						height: 100%;
						padding: 6px 10px;
						color: #666666;
					}

					ul {
						left: 150px;
						top: -1px;
					}

					a:hover,
					&:hover > a {
						color: #0FBE7C;
					}

					&.current-menu-item ul li a:hover {
						color: #0FBE7C;
					}

				}
			}

			&.current-menu-item ul li a,
			ul li.current-menu-item a,
			&.current_page_ancestor ul li a,
			&.current-menu-ancestor ul li a,
			&.current_page_item ul li a {
				float: none;
				line-height: 21px;
				font-size: 13px;
				font-weight: normal;
				height: 100%;
				padding: 6px 10px;
				color: #666666;
			}
		}

		ul {
			li:hover ul ul {
				display: none;
				z-index: 9999;
			}

			ul {
				li:hover ul ul,
				ul li:hover ul ul {
					display: none;
					z-index: 9999;
				}

				li:hover ul {
					display: block;
				}

				ul {
					li:hover ul,
					ul li:hover ul {
						display: block;
					}
				}
			}

			li:hover ul {
				display: block;
			}

		}

		li.focus > ul {
			display: block;
		}
	}

	select {
		display: none;
	}

	.menu-primary-container {

		> ul {

			> li {
				.sub-menu {

					li {

						&.menu-item-has-children {

							.sub-menu {

								&.spacious-menu--left {
									left: -100%;
								}
							}
						}
					}
				}
			}
		}
	}
}

li.default-menu {
	display: none;
}

/* =CART ICON
----------------------------------------------- */

.cart-wrapper {
	float: right;
	position: relative;
	padding: 0 0 0 25px;
	cursor: pointer;

	.spacious-woocommerce-cart-views {
		padding: 5px 0;
		line-height: 1.875;
	}

	.bottom-menu & {
		padding: 0 10px 0 25px;
	}
}

.spacious-woocommerce-cart-views {
	.wcmenucart-contents {
		display: inline-block;
		vertical-align: top;
		position: relative;
		text-align: center;
		color: #666666;
	}

	.cart-value {
		position: absolute;
		line-height: 15px;
		width: 15px;
		height: 15px;
		top: -5px;
		right: -15px;
		color: #fff;
		background: #0FBE7C;
		border-radius: 100%;
		font-size: 12px;
	}

	.spacious-woocommerce-cart-wrap {
		display: none;
	}
}

#header-right-section .cart-wrapper,
.bottom-menu .cart-wrapper {
	.widget_shopping_cart {
		position: absolute;
		width: 250px;
		z-index: 99999;
		background: #fff;
		padding: 5px 15px;
		box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
		top: 100%;
		left: 100%;
		visibility: hidden;
		opacity: 0;
		-webkit-transition: all 0.5s ease;
		-moz-transition: all 0.5s ease;
		-o-transition: all 0.5s ease;
		transition: all 0.5s ease;
		-webkit-transform: translateX(-100%);
		-moz-transform: translateX(-100%);
		-o-transform: translateX(-100%);
		transform: translateX(-100%);

		.woocommerce-mini-cart__empty-message {
			margin-bottom: 0;
			padding: 15px;
		}
	}

	&:hover .widget_shopping_cart {
		visibility: visible;
		opacity: 1;
	}
}

.cart-wrapper .woocommerce {
	ul {
		&.cart_list li, &.product_list_widget li {
			padding-top: 10px;
			margin: 0;
			border-bottom: 1px solid #efefef;
			padding-left: 0;
			padding-right: 2em;
			text-align: left;
		}

		&.cart_list li:last-child, &.product_list_widget li:last-child {
			border-bottom: none transparent;
		}
	}

	&.widget_shopping_cart .cart_list li a.remove {
		top: 5px;
		font-size: 16px;
		left: auto;
		right: 0;
		text-align: center;
	}

	ul.cart_list li a {
		text-align: left;
		font-size: 14px;
		color: #444444;
	}
}

.woocommerce ul.product_list_widget li a {
	text-align: left;
	font-size: 14px;
	color: #444444;
}

.quantity {
	font-size: 14px;
}

.cart-wrapper .woocommerce ul.cart_list li img,
.woocommerce ul.product_list_widget li img {
	float: left;
	margin-left: 0;
	margin-right: 10px;
}

.cart-wrapper .woocommerce {
	.widget_shopping_cart .buttons a {
		display: inline-block;
		padding: 15px 25px;
		font-weight: 500;
	}

	&.widget_shopping_cart .buttons a {
		display: inline-block;
		padding: 15px 25px;
		font-weight: 500;

		&:last-child {
			margin-right: 0;
		}

		&:hover {
			color: #ffffff;
		}
	}
}

/* =DROP DOWN
----------------------------------------------- */

/* =SMALL MENU
----------------------------------------------- */

.menu-toggle {
	display: none;
	cursor: pointer;
}

.site-header .menu-toggle {
	background: #3A3A3A;
	color: #fff;
	font-size: 20px;
	font-weight: 300;
	padding: 5px 22px;
	margin: 0;
	text-align: center;

	&:hover {
		background: #0FBE7C;
	}

	&:before {
		content: '\f0c9';
		margin-right: 10px;
		font-family: FontAwesome;
	}
}

.main-small-navigation {
	float: none;
	padding-top: 0;
	background-color: #000000;
	margin-top: 5px;

	a {
		display: block;
		color: #FFFFFF;
		padding: 10px 40px;
		text-decoration: none;
	}

	li {
		background: #3A3A3A;
		position: relative;

		&:hover {
			background: #0FBE7C;
		}
	}

	ul {
		margin: 0;
		list-style: none;

		ul {
			a {
				padding-left: 60px;
			}

			ul a {
				padding-left: 80px;
			}
		}

		> {
			.current_page_item,
			.current-menu-ancestor,
			.current-menu-item {
				background: #0FBE7C;
			}
		}
	}
}

.sub-toggle {
	display: none;
}

/* =PAGE HEADER TITLE
----------------------------------------------- */

.header-post-title-container {
	border-bottom: 1px solid #EAEAEA;
	padding: 20px 0;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.05) inset;

	.post-title-wrapper {
		float: left;
		max-width: 100%;
		padding-right: 30px;
		width: 70%;
	}
}

.header-post-title-class {
	font-size: 22px;
	padding-bottom: 0;
}

.header-post-title-container .taxonomy-description p {
	font-size: 12px;
	line-height: 22px;
}

/* Header Action CSS
----------------------------------------------- */
.header-action {
	position: relative;
	float: right;
	padding-top: 20px;

	.bottom-menu & {
		float: left;
		padding-top: 0;
	}

	.search-wrapper {
		float: right;
		padding: 0 0 0 25px;
		position: relative;
		cursor: pointer;

		.search {
			padding: 5px 0;
			line-height: 1.875;
		}

		.bottom-menu & {
			padding: 0 0 0 25px;
		}

		&:hover {
			.fa {
				color: #0FBE7C;
			}
		}

		.header-search-form {
			visibility: hidden;
			opacity: 0;
			position: absolute;
			right: -15px;
			width: 180px;
			top: 170%;
			transition: 0.9s ease-in-out;
			background: #ffffff;
			padding-top: 10px;
			padding-bottom: 10px;
			padding-left: 10px;
			box-shadow: 0 0 6px rgba(0, 0, 0, .1);
			z-index: 99999;

			&.show {
				visibility: visible;
				opacity: 1;
				top: 100%;

			}

			.search-wrap {
				input.s {
					vertical-align: top;
					width: 140px;

					&:focus {
						outline: none;
					}
				}
			}
		}
	}
}

/* =Header Display Menu Bottom
----------------------------------------------- */

.spacious-header-display-four {

	.bottom-menu {
		.main-navigation {
			float: left;

			&.spacious-header-button-enabled {
				margin-bottom: 10px;
			}

			li {
				&:first-child {
					padding-left: 0;
				}
			}
		}

		.header-action {
			padding-top: 20px;
		}
	}
}

/* =Header Display Option Css
----------------------------------------------- */

/* Header Display Left Menu And Right Logo
----------------------------------------------- */
.spacious-header-display-two {
	#header-left-section {
		float: right;
		margin-right: 0;
	}

	#header-logo-image {
		float: right;
		padding: 0 0 20px 0;
	}

	#header-text {
		float: right;
	}

	#header-right-section {
		float: left;
	}

	.main-navigation li {
		&:first-child {
			padding: 0;
		}
	}

	#header-right-section {
		.widget {
			text-align: left;
		}
	}

}

/* Header Display Center Menu And Center Logo
----------------------------------------------- */
.spacious-header-display-three {
	#header-text-nav-container {
		text-align: center;
	}

	#header-left-section {
		float: none;
		margin: 0 auto;
		display: inline-block;
	}

	#header-right-section {
		float: none;
	}

	#header-logo-image,
	#header-text {
		float: none;
		display: inline-block;
		vertical-align: top;
	}

	#header-right-section .widget {
		text-align: center;
		margin-top: 10px;

	}

	.social-links ul li {
		padding: 5px 15px 0 0px;
	}

	.main-navigation {
		float: none;
	}

	.main-navigation {
		display: inline-block;

		li {
			float: none;
			display: inline-block;
		}

		.tg-menu-extras-wrap {
			vertical-align: top;
		}

		ul li ul li {
			display: block;

			a {
				display: block;
			}
		}
	}

	.main-small-navigation li {
		text-align: left;
	}
}
