/************ responsive ****************/

@media screen and (max-width: 1590px) {
	#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;
	}
	#jm-allpage #djcatalog.djc_item .djc_images {
		width: 100%;
		margin: 0 0 30px;
	}
	#jm-allpage #djcatalog.djc_item .djc_mainimage {
		margin-left: 0;
		margin-right: 0;
	}
	#jm-allpage #djcatalog.djc_item .djc_thumbnail {
		margin: 0 20px 20px 0;
	}
	html[dir='rtl'] #jm-allpage #djcatalog.djc_item .djc_thumbnail {
		margin: 0 0 20px 20px;
	}
	#djcatalog .djc_filter_list li, #djcatalog .djc_filter_search li {
		display: block;
		margin: 0 0 10px;
	}
	/* frontpage module */
	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;
		padding: 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 screen and (max-width: 979px) {
	#djcatalog table {
		position: relative;
		width: auto;
		overflow-x: scroll;
		display: block;
	}
	#djcatalog .djc_attributes table {
		position: static;
		width: 100%;
		overflow-x: none;
		display: table;
	}
	#djcatalog img {
		max-width: 100%;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
	}
	#djcatalog #fbcomments, #djcatalog .fb-comments, #djcatalog .fb-comments iframe, #djcatalog .fb-comments span {
		width: 100% !important;
	}
}

@media screen and (max-width: 767px) {
	#djcatalog .djc_subcategories_grid .djc_subcategory, #djcatalog .djc_items .djc_item, #djcatalog .djc_related_items .djc_item {
		float: none !important;
		width: 100% !important;
	}
	#djcatalog .djc_subcategory_bg, #djcatalog .djc_item_bg {
		height: auto !important;
	}
	#djcatalog .djc_images {
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.mod_djc_item {
		float: none !important;
		width: 100% !important;
	}
	/* added */
	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: 30px !important;
	}
	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;
	}
	body #jm-allpage #djcatalog .djc_images {
		float: none;
		margin-left: 0;
		margin-right: 0;
		width: 100% !important;
		text-align: center;
		display: inline-block;
	}
	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;
	}
	body #jm-allpage #djcatalog .djc_mainimage img, body #jm-allpage #djcatalog .djc_thumbnail img {.box-sizing(border-box);
	}
	body #jm-allpage #djcatalog .djc_order_buttons li span {
		padding: 0;
		border: none !important;
	}
	#djcatalog .djc_filter_list .inputbox, #djcatalog .djc_filter_list select, #djcatalog .djc_filter_search .inputbox {
		min-width: 0;
	}
}

@media screen and (max-width: 480px) {
	#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;
	}
	body #djcatalog.djc_itemform .formelm-buttons .button {
		margin: 0 0 5px;
	}
}