/************************************************************************************
MOBILE MENU ACTIVE
*************************************************************************************/
/* change max-width to trigger mobile menu active class */

/* ensure #nav and #searchform is visible on desktop version */
body:not(.mobile_menu_active) #main-nav,
body:not(.mobile_menu_active) #headerwrap #searchform {
	display: block !important;
}

/************************************************************************************
HEADER
*************************************************************************************/
/* header */
.mobile_menu_active #header {
	height: auto !important;
	padding-bottom: 10px;
}

/* reset absolute elements to static */
.mobile_menu_active .social-widget,
.mobile_menu_active #site-logo,
.mobile_menu_active #site-description  {
	position: static !important;
	float: none;
	clear: both;
}

/* site logo */
.mobile_menu_active #site-logo {
	font-size: 42px;
	text-align: left;
	padding: 15px 100px 10px 0;
	padding-right: 90px;
	margin: 0;
	width: auto;
}
.mobile_menu_active #site-logo a {
	font-size: 30px;
}

/* site description */
.mobile_menu_active #site-description {
	text-align: left;
	margin: 0 0 10px;
}
	
/* social widget */
.mobile_menu_active .social-widget {
	position: static;
	float: none;
	padding: 0;
}

/* header widget */
.mobile_menu_active .header-widget {
	position: static;
	float: none;
	text-align: left;
	clear: both;
	margin: 0;
}
.mobile_menu_active .header-widget .widget {
	margin: 0 0 10px;
}

/************************************************************************************
MOBILE NAV BUTTON
*************************************************************************************/
.mobile_menu_active .mobile-button {
	position: relative;
	width: 32px;
	height: 30px;
	margin-bottom: 3px;
	margin-right: 3px;
	display: block;
	float: right;
	cursor: pointer;
	background-color: #eee;
	border-width: 0 1px 1px 1px;
	border-style: solid;
	border-color: #ccc;
	border-radius: 0 0 5px 5px;
}
.mobile_menu_active .mobile-button:before {
	content: "\f0c9";
	font: normal 21px/1em FontAwesome;
	color: #000;
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -.5em 0 0 -.5em;
	width: 1em;
	height: 1em;
	text-align: center;
}
.mobile_menu_active .mobile-button.active:before {
	color: #555;
}

/************************************************************************************
MAIN NAV
*************************************************************************************/
.mobile_menu_active #main-nav-wrap {
	position: absolute;
	top: 0;
	right: 0;
}

/* main nav */
.mobile_menu_active #main-nav {
	clear: both;
	position: static;
	height: auto;
	width: 160px;
	z-index: 1000;
	padding: 10px 5px;
	background-color: #fff;
	border: solid 1px #999;
	display: none; /* visibility will be toggled with jquery */
	margin: 20px 0 10px;
}
.mobile_menu_active #main-nav li {
	clear: both;
	float: none;
	margin: 3px 0 3px 10px;
	padding: 0;
	border: none;
	box-shadow: none;
}
.mobile_menu_active #main-nav a,
.mobile_menu_active #main-nav ul a {
	background: none;
	width: auto;
	display: inline;
	padding: 0;
	color: #666;
	border: none;
	text-shadow: none;
	box-shadow: none;
}
.mobile_menu_active #main-nav a:hover,
.mobile_menu_active #main-nav ul a:hover {
	background: none;
	color: #000;
}

/* dropdown */
.mobile_menu_active #main-nav ul {
	position: static;
	display: block;
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

/************************************************************************************
SEARCH FORM
*************************************************************************************/
.mobile_menu_active #searchform-wrap {
	position: absolute;
	top: 0;
	right: 40px;
}
.mobile_menu_active #search-icon:before {
	content: "\f002";
	font-size: 19px;
}
.mobile_menu_active #header #searchform {
	clear: both;
	width: auto;
	width: 160px \0;
	position: static;
	display: inline;
	overflow: hidden;
	background-color: #fff;
	border: solid 1px #999;
	padding: 5px;
	display: none; /* visibility will be toggled with jquery */
	border-radius: 5px;
	box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.mobile_menu_active #header #searchform #s {
	background-image: none;
	padding-left: 8px;
	width: 140px \0;
}

/* search option */
.mobile_menu_active #headerwrap #searchform .search-option {
	position: static;
	display: block;
	clear: both;
	margin: 0;
	padding: 5px 0 0;
	float: none;
	background: none;
	border: none;
}


@media screen and (max-width: 980px) {

	/************************************************************************************
	STRUCTURE
	*************************************************************************************/
	#pagewrap {
		max-width: 100%;
	}

	.pagewidth,
	.full_width .themify_builder_row .row_inner {
		max-width: 94%;
	}
		
	/* content */
	#content {
		padding: 7% 0 5%;
		width: 67.8%;
	}
	
	/* sidebar */
	#sidebar {
		padding: 7% 0 5%;
		width: 26.2%;
	}
	#sidebar .secondary {
		width: 47%;
	}
	
	/************************************************************************************
	GRID
	*************************************************************************************/
	.col4-1,
	.col4-2,
	.col4-3,
	.col3-1,
	.col3-2,
	.col2-1
	{
		margin-left: 2%;
	}
	.col4-1 {
		max-width: 23%;
	}
	.col4-2, .col2-1 {
		max-width: 48%;
	}
	.col4-3 {
		max-width: 72%;
	}
	.col3-1 {
		max-width: 31%;
	}
	.col3-2 {
		max-width: 62%;
	}
	
	/************************************************************************************
	LAYOUTS
	*************************************************************************************/
	/* grid4 */
	.loops-wrapper.grid4 .post {
		width: 23.125%;
		margin-left: 2.5%;
	}

	/* grid3 */
	.loops-wrapper.grid3 .post {
		width: 31%;
		margin-left: 3.5%;
	}

	/* grid2 */
	.loops-wrapper.grid2-thumb .post,
	.loops-wrapper.grid2 .post {
		width: 48%;
		margin-left: 3.75%;
	}

}

@media screen and (max-width: 760px) {

	/************************************************************************************
	STRUCTURE
	*************************************************************************************/
	#content {
		width: 100%;
		max-width: 100%;
		float: none;
		clear: both;
	}
	
	/* sidebar */
	#sidebar {
		width: 100%;
		max-width: 100%;
		float: none;
		clear: both;
	}
	#sidebar .secondary {
		width: 48%;
	}
	
	/************************************************************************************
	LAYOUTS
	*************************************************************************************/
	#slider .slide-content {
		overflow: visible;
		padding: 10px 0 0;
		clear: both;
	}

	/************************************************************************************
	LAYOUTS
	*************************************************************************************/
	/* list large image */
	.list-large-image .post-image {
		float: none;
		margin-right: 0;
	}
	.list-large-image .post-content {
		overflow: visible;
		float: none;
	}

	/************************************************************************************
	SHOP
	*************************************************************************************/
	/* checkout column */
	.col2-set .col-1,
	.col2-set .col-2 {
		float:none !important;
		width:100% !important;
	}
	
	/* cart total table */
	.cart-collaterals .cart_totals {
		width: 85%;
	}
	
	/* shipping calculator form */
	.cart-collaterals .shipping_calculator {
		width: 70%;
	}

}

@media screen and (max-width: 680px) {
	
	/************************************************************************************
	LAYOUTS
	*************************************************************************************/
	/* grid4 */
	.loops-wrapper.grid4 .post,
	.sidebar1 .loops-wrapper.grid4 .post {
		width: 100%;
		margin-left: 0;
		float: none;
	}

	/* grid3 */
	.loops-wrapper.grid3 .post,
	.sidebar1 .loops-wrapper.grid3 .post {
		width: 100%;
		margin-left: 0;
		float: none;
	}
	
	/* post content */
	.post-content {
		overflow: visible !important;
	}

	/************************************************************************************
	SHOP DOCK
	*************************************************************************************/
	#cart-slider {
		display: none;
	}
	
	/* checkout wrap */
	.checkout-wrap {
		width: 100%;
		max-width: 100%;
		float: none;
		padding-bottom: 6px;
	}
	
	/* check button */
	.checkout-button {
		float: right;
	}
	
	/* cart total */
	.cart-total {
		font-size: 110%;
		margin-top: 4px;
		float: left;
		text-align: left;
	}
	
	/************************************************************************************
	SHOP
	*************************************************************************************/
	/* product single */
	.single-product .product .images,
	.sidebar-none.single-product .product .images {
		width: 280px;
		float: none;
	}
	.single-product .product .summary,
	.sidebar-none.single-product .product .summary {
		float: none;
		width: 100%;
	}

	/* disable webkit text size adjust (for iPhone) */
	html {
		-webkit-text-size-adjust: none;
	}

	/************************************************************************************
	GRID
	*************************************************************************************/
	.col4-1,
	.col4-2, .col2-1,
	.col4-3,
	.col3-1,
	.col3-2	 {
		margin-left: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	/************************************************************************************
	LAYOUTS
	*************************************************************************************/
	/* post */
	.post {
		width: auto !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		float: none !important;
	}
	
	/* post title */
	.post-title {
		margin: 0 0 2px !important;
		font-size: 2em !important;
	}

	/* post image */
	.post-image {
		float: none !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	/* post content */
	.post-content {
		overflow: visible !important;
		float: none !important;
	}

	/************************************************************************************
	POST NAV
	*************************************************************************************/
	.post-nav .prev, .post-nav .next {
		display: block;
		width: 100%;
		clear: both;
		margin-bottom: 10px;
	}
	
	/************************************************************************************
	COMMENTS
	*************************************************************************************/
	.commentlist {
		padding-left: 0;
	}
	.commentlist .commententry {
		clear: left;
	}
	.commentlist .avatar {
		float: left;
		width: 40px;
		height: 40px;
		margin: 0 10px 10px 0;
	}

	/************************************************************************************
	FOOTER
	*************************************************************************************/
	#footer-logo {
		position: static;
	}
	.footer-nav {
		padding: 0;
	}

	/************************************************************************************
	SHOP
	*************************************************************************************/
	/* reset product container width */
	ul.products .product {
		width: 45% !important;
		margin-left: 2%;
		margin-right: 2%;
	}

	/* product single wrapper */
	#product_single_wrapper .product-imagewrap {
		margin-right: 0;
	}
	
	/* product tabs */
	.woocommerce-tabs .tabs li a {
		font-size: .76em;
		padding: 6px;
	}
	.woocommerce-tabs .entry-content {
		font-size: .91em;
	}
	.woocommerce-tabs .entry-content h2 {
		margin: 5px 0 10px;
	}
	.woocommerce-tabs .entry-content .comment-text {
		overflow: hidden;
	}
	.woocommerce-tabs .entry-content .star-rating {
		float: none;
		margin: 0 0 5px 0;
	}
		
}