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

@media screen and (max-width: 979px) {
    html {
        -webkit-text-size-adjust: none;
    }
    #djcatalog input.button, 
    #djcatalog button, 
	#djcatalog .btn {
        -webkit-appearance: none;
    }
    #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;
	}
    /* added */
  #jm-allpage .djc_attributes table {
        display: table;
        position: static;
        width: 100%;
        overflow-x: none;
  }
  #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);
    }  
    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: 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_filter_list li, 
	#djcatalog .djc_filter_search li, 
	#djcatalog .djc_order_buttons li {
		float: none!important;
		margin-top: 5px!important;
		margin-bottom: 5px!important;
	}
	#djcatalog .djc_atoz_list li:nth-child(14) {
    	clear: both;
	}
	#djcatalog .djc_atoz_list li {
    	width: 7.2%!important;
    	margin: 0.2%!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: 10px!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_atoz_list li span.btn {
        font-size: 11px;
        line-height: 20px;
    }
    body #jm-allpage #djcatalog .djc_order_buttons li span {
        padding: 0;
        border: none!important;
    }
    body #jm-allpage #djcatalog .djc_order_buttons li {
        list-style: none;
    }
    body #jm-allpage #djcatalog .djc_items .djc_item_row_last_0 .djc_item_bg,
    body #jm-allpage #djcatalog .djc_items .djc_item_row_last_1 .djc_item_bg,
    body #jm-allpage #djcatalog .djc_related_items .djc_item_row_last_0 .djc_item_bg,
    body #jm-allpage #djcatalog .djc_related_items .djc_item_row_last_1 .djc_item_bg,
    body #jm-allpage #djcatalog .djc_items .djc_item_row_first_last_0 .djc_item_bg,
    body #jm-allpage #djcatalog .djc_items .djc_item_row_first_last_1 .djc_item_bg,
    body #jm-allpage #djcatalog .djc_related_items .djc_item_row_first_last_0 .djc_item_bg,
    body #jm-allpage #djcatalog .djc_related_items .djc_item_row_first_last_1 .djc_item_bg {
      margin-bottom: 25px!important;
    }
    body #jm-allpage #djcatalog .djc_items .djc_item_row_last_0 .djc_item:last-child .djc_item_bg,
    body #jm-allpage #djcatalog .djc_items .djc_item_row_last_1 .djc_item:last-child .djc_item_bg,
    body #jm-allpage #djcatalog .djc_related_items .djc_item_row_last_0 .djc_item:last-child .djc_item_bg,
    body #jm-allpage #djcatalog .djc_related_items .djc_item_row_last_1 .djc_item:last-child .djc_item_bg,
    body #jm-allpage #djcatalog .djc_items .djc_item_row_first_last_0 .djc_item:last-child .djc_item_bg,
    body #jm-allpage #djcatalog .djc_items .djc_item_row_first_last_1 .djc_item:last-child .djc_item_bg,
    body #jm-allpage #djcatalog .djc_related_items .djc_item_row_first_last_0 .djc_item:last-child .djc_item_bg,
    body #jm-allpage #djcatalog .djc_related_items .djc_item_row_first_last_1 .djc_item:last-child .djc_item_bg {
      margin-bottom: 0!important;
    }
    body #jm-allpage #djcatalog a.djc_producer_items_link {
      display: table;
      margin: 5px 0;
      font-size: 9px;
    }
}

@media screen and (max-width: 480px) {
  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;  
     }
}