//--------------------------------------------------------------
// Copyright (C) joomla-monster.com
// License: http://www.joomla-monster.com/license.html Joomla-Monster Proprietary Use License
// Website: http://www.joomla-monster.com
// Support: info@joomla-monster.com
//---------------------------------------------------------------

// VARIABLES import
//---------------------------------------------------------------

@import "bootstrap_variables.less";  
@import "template_variables.less";

// MIXINS import
//---------------------------------------------------------------
  
@import "override/ltr/mixins.less";
@import "template_mixins.less";

// DJCATALOG2 Responsive
//---------------------------------------------------------------

@media (max-width: 1170px) {
	//table
	#jm-allpage #djcatalog table.djc_items_table {
		position: relative;
		width: auto;
		overflow-x: scroll;
		display: block;
	}
	#jm-allpage #djcatalog table.djc_items_table::-webkit-scrollbar {
		-webkit-appearance: none;
		width: 14px;
		height: 14px;
	}
	#jm-allpage #djcatalog table.djc_items_table::-webkit-scrollbar-thumb {
		border-radius: 8px;
		border: 3px solid #fff;
		background-color: rgba(0, 0, 0, 0.3);
	}
	#jm-allpage .djc_attributes table,
	#jm-allpage #djcatalog table table {
		display: table;
		position: static;
		width: 100%;
		overflow-x: none;
	}
	//single product
	#jm-allpage #djcatalog.djc_item .djc_images {
		width: 100%;
		margin: 0 0 @JMbaseSpace;
		text-align: center;
	}
	#jm-allpage #djcatalog.djc_item .djc_mainimage {
		margin-left: 0;
		margin-right: 0;
	}
	#djcatalog.djc_item .djc_thumbnail {
		margin: 5px !important;
	}
	//module frontpage
	body #jm-allpage .djf_mod .djf_left {
		margin: 0 0 50px;
		text-align: center;
		float: none;
	}
	body #jm-allpage .djf_mod .djf_gal .djf_row {
		display: inline-block;
		clear: none;
	}
	body #jm-allpage .djf_mod .djf_img {
		float: none;
	}
	body #jm-allpage .djf_mod .djf_gal {
		float: none;
	}
	body #jm-allpage .djf_mod .djf_gal .djc_col {
		float: none;
		margin: 0 10px 20px;
	}
	body #jm-allpage .djf_mod .djf_text {
		clear: both;
	}
	body #jm-allpage .djf_mod .djf_left,
	body #jm-allpage .djf_mod .djf_img {
		max-width: 100%;
		.box-sizing(border-box);
	}
}

@media (max-width: 979px) {
	//table
	#djcatalog table {
		position: relative;
		width: auto;
		overflow-x: scroll;
		display: block;
	}
	#djcatalog .djc_attributes table {
		position: static;
		width: 100%;
		overflow-x: none;
		display: table;
	}
	//facebook
	#djcatalog #fbcomments,
	#djcatalog .fb-comments,
	#djcatalog .fb-comments iframe,
	#djcatalog .fb-comments span {
		width: 100% !important;
	}
	//module frontpage
	#jm-allpage .djf_mod .djf_pag {
		position: static;
		margin-top: 20px;
	}
}

@media (max-width: 767px) {
	//blog items
	#djcatalog .djc_items .djc_item_row .djc_image a,
	#djcatalog .djc_related_items .djc_item_row .djc_image a {
		margin: 0;
	}
	#djcatalog .djc_subcategories_grid .djc_subcategory,
	#djcatalog .djc_items .djc_item,
	#djcatalog .djc_related_items .djc_item {
		clear: both;
		width: 100% !important;
		float: none !important;
	}
	body #jm-allpage #djcatalog .djc_items .djc_item_bg,
	body #jm-allpage #djcatalog .djc_related_items .djc_item_bg,
	body #jm-allpage #djcatalog .djc_subcategory_bg {
		height: auto !important;
	}
	//module items
	body #jm-allpage .djc_items .mod_djc_item:first-child {
		margin-top: 0 !important;
	}
	body #jm-allpage .djc_items .mod_djc_item {
		width: 100% !important;
	}
	body #jm-allpage .djc_items .mod_djc_item {
		margin-top: @JMbaseSpace !important;
	}
	//module frontpage
	body #jm-allpage .djf_mod .djf_gal,
	body #jm-allpage .djf_mod .djf_gal .djc_col,
	body #jm-allpage .djf_mod .djf_left {
		float: none;
	}
	body #jm-allpage .djf_mod .djf_left {
		text-align: center;
	}
	body #jm-allpage .djf_mod .djf_text {
		clear: both;
	}
	body #jm-allpage .djf_mod .djf_img {
		float: none;
		margin-left: 0;
		margin-right: 0;
	}
	body #jm-allpage .djf_mod .djf_img img,
	body #jm-allpage .djf_mod .djf_left,
	body #jm-allpage .djf_mod .djf_img {
		max-width: 100%;
		.box-sizing(border-box);
	}
	body #jm-allpage .djf_gal .djf_row {
		display: inline-block;
	}
	//all images
	#djcatalog .djc_images {
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	
	body #jm-allpage #djcatalog .djc_images {
		float: none;
		margin-left: 0;
		margin-right: 0;
		width: 100% !important;
		text-align: center;
		display: inline-block;
	}
	//order buttons
	body #jm-allpage #djcatalog .djc_order_buttons li span {
		padding: 0;
		border: none !important;
	}
	//filters
	#djcatalog .djc_filter_list .inputbox,
	#djcatalog .djc_filter_list select,
	#djcatalog .djc_filter_search .inputbox {
		min-width: 0;
	}
	
	//advanced search
	#djcatalog #djc_additional_filters .mod_djc2filters .mod_djc2filters_attribute {
		clear: both;
		width: auto !important;
	}
}

@media (max-width: 480px) {
	//tables
	#jm-allpage .djc_attributes table {
		position: relative;
		width: auto;
		overflow-x: scroll;
		display: block;
	}
	body #jm-allpage #djcatalog table#jform_description_tbl,
	body #jm-allpage #djcatalog table#jform_intro_desc_tbl {
		position: relative;
		width: auto;
		height: auto !important;
		overflow-x: scroll;
		display: block;
	}
	//itemform
	body #djcatalog.djc_itemform .formelm-buttons .button {
		margin: 0 0 5px;
	}
	//filters
	#djcatalog .djc_filter_list li,
	#djcatalog .djc_filter_search li {
		display: block;
		margin: 0 0 10px;
	}
	#djcatalog .djc_filter_list.djc_price_filter li {
		display: inline-block;
	}
	
}