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

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

/************************************************************************************
HEADER
*************************************************************************************/
/* header */
.mobile_menu_active #header {
	height: 130px;
}
.mobile_menu_active #header hgroup {
	top: 55px;
}

/* site description */
.mobile_menu_active .fixed-header #site-description {
	display: none;
}

/* social widget */
.mobile_menu_active .social-widget {
	position: static !important;
	float: none;
	margin: 0 0 0 45px;
	padding: 15px 0 0;
}

/* searchform */
.mobile_menu_active #header #searchform {
	top: 12px;
}

/************************************************************************************
MOBILE NAV BUTTON
*************************************************************************************/
.mobile_menu_active .mobile-button {
	position: relative;
	width: 32px;
	height: 30px;
	margin: 12px 3px 3px 0;
	display: block;
	float: left;
	cursor: pointer;
	background-color: #eee;
	border-radius: 5px;
}
.mobile_menu_active .mobile-button:before {
	content: "\f0c9";
	font: normal 21px/1em 'themify_theme_icons';
	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;
}
.mobile_menu_active .fixed-header .mobile-button {
	margin-top: 8px;
}

/************************************************************************************
MAIN NAV (MOBILE)
*************************************************************************************/

/* main nav */
.mobile_menu_active #main-nav {
	max-height: 320px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	clear: both;
	text-align: left;
	position: absolute;
	top: 43px;
	width: 160px;
	height: auto;
	padding: 10px 5px;
	background-color: #fff;
	border: solid 1px #EEE;
	display: none;
	margin-left: 0;
	left: 0;
	box-shadow: 0 1px 2px rgba(0,0,0,.3);
	border-radius: 5px;
}
.mobile_menu_active #main-nav li {
	clear: both;
	float: left;
	margin: 5px 0 5px 10px;
	padding: 0;
	border: none;
	box-shadow: none;
}
.mobile_menu_active #main-nav a, 
.mobile_menu_active #main-nav ul a {
	font: inherit;
	text-transform: inherit;
	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;
}

/* fixed header main nav */
.mobile_menu_active .fixed-header#headerwrap #main-nav {
	top: 43px;
}

/* 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;
}
.mobile_menu_active #main-nav ul li {
	float: left;
}
@media screen and (max-width: 1200px) {
	#headerwrap #site-logo a img{
		height: auto;
	}
}
@media screen and (max-width: 980px) {

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

	.pagewidth,
	.full_width .module_row > .row_inner {
		max-width: 94%;
	}
	.full_width .module-layout-part .module_row.fullwidth > .row_inner,
	.full_width .module_row.fullwidth > .row_inner {
		max-width:100%;
	}
		
	/* content */
	#content {
		padding: 7% 0 5%;
		width: 67.8%;
	}
	
	/* sidebar */
	#sidebar {
		padding: 7% 0 5%;
		width: 26.2%;
	}
	#sidebar .secondary {
		width: 47.4%;
	}
	
	/************************************************************************************
	POST
	*************************************************************************************/
	/* list large image */
	.list-large-image .post-image {
		position: static;
		width: 100%;
		margin: 0;
	}
	.list-large-image .post-content {
		margin: 0 0 3px 0;
		float: none;
	}
}

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

	/************************************************************************************
	STRUCTURE
	*************************************************************************************/
	#content {
		width: 100% !important;
		max-width: 100%;
		float: none;
		clear: both;
	}
	
	/* sidebar */
	#sidebar {
		width: 100% !important;
		max-width: 100%;
		float: none !important;
		clear: both;
	}
	
	/************************************************************************************
	SLIDER
	*************************************************************************************/
	#slider {
		font-size: 1em;
	}
	/* default slide */
	.slider-default .slide-image {
		float: none;
		margin: 0 0 10px;
	}
	.slider-default .slide-content {
		position: static;
		padding-top: 0;
	}
	.slider-default .post-video {
		max-width: 100%;
		width: 100%;
	}

	/* image caption slide */
	.slider-image-caption .slide-content {
		position: static;
		font-size: 1em;
	}

	/************************************************************************************
	POST
	*************************************************************************************/
	/* list large image */
	.list-large-image .post-image {
		position: static;
	}
	.list-large-image .post-content {
		margin: 0 0 3px 0;
		float: none;
	}
	#content .related.products  ul.products .product {
		width: 49.5%;
	}
	#content .related.products  ul.products .product:nth-of-type(2n+1) {
		clear: left !important;
	}
}

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

	.grid4 .loops-wrapper .post,
	.grid3 .loops-wrapper .post,
	.grid2 .loops-wrapper .post {
		margin-left: 0 !important;
		width: 100% !important;
	}
		
	/************************************************************************************
	POST
	*************************************************************************************/

	.list-post .post-date-wrap {
		position: static !important;
		width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
		text-align: left !important;
		color: #777 !important;
		background: none !important;
		border-radius: 0;
	}
	.list-post .post-date span {
		display: inline !important;
	}
	.list-post .post-content {
		margin-left: 0 !important;
	}
	.list-post .post-date .day {
		font-size: 1.1em !important;
	}

	/************************************************************************************
	LAYOUTS
	*************************************************************************************/
	
	/* list thumb post */
	.list-thumb-image .post-image {
		position: static;
		float: left;
	}
	.list-thumb-image .post-content {
		float: none;
		margin: 0 0 3px 0;
	}


	/************************************************************************************
	SLIDER
	*************************************************************************************/
	/* hide slider direction nav on mobile */
	.flex-direction-nav {
		display: none;
	}	

	/************************************************************************************
	PORTFOLIO
	*************************************************************************************/
	.single .portfolio .post-image {
		margin-right: 0;
		float: none;
	}
	
	/************************************************************************************
	COMMENTS
	*************************************************************************************/
	.commentlist ul, .commentlist ol {
		margin: 0 0 0 20px;
	}
	
	/************************************************************************************
	SHOP
	*************************************************************************************/
	#shopdock {
		top: 139px;
	}
	
	ul.products {
		margin-left: 0;
	}
	
	/* product single */
	.single-product .product .images,
	.sidebar-none.single-product .product .images {
		width: 305px;
		float: none;
	}
	.single-product .product .summary,
	.sidebar-none.single-product .product .summary {
		float: none;
		width: 100%;
	}

	/************************************************************************************
	GRID
	*************************************************************************************/
	.col4-1,
	.col4-2, .col2-1,
	.col4-3,
	.col3-1,
	.col3-2	 {
		margin-left: 0;
		width: 100%;
		max-width: 100%;
	}
	
	/************************************************************************************
	POST
	*************************************************************************************/
	/* post */
	.post {
		width: auto !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		float: none !important;
	}
	
	.loops-wrapper.grid4 .post,
	.loops-wrapper.grid3 .post,
	.loops-wrapper.grid2 .post,
	.post {
		width: 100% !important;
		margin-left: 0 !important;
		float: none !important;
		position: static !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 ul, .commentlist ol {
		margin: 0;
	}
	#commentform textarea {
		padding: 1%;
	}
	.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 */
	.woocommerce.woocommerce-page ul.products.masonry-done>.product,
	ul.products>.product {
		width: 45% !important;
		margin-left: 2%;
		margin-right: 2%;
	}

	/* 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%;
	}
	
	/* product tabs */
	.woocommerce-tabs .tabs li a {
		font-size: .76em;
		padding: 8px 8px 10px;
	}
	.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;
	}

}