//--------------------------------------------------------------
// 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
//---------------------------------------------------------------

//import DJ-Catalog LTR Theme

@import "djcatalog.less";

//---------------------------------------------------------------

// DJCATALOG2 RTL
//---------------------------------------------------------------

html[dir='RTL'] {
//RTL target

	#djcatalog .djc_category_info a,
	#djcatalog .djc_producer_info a,
	#djcatalog .djc_price span, div.mod_djc_items .djc_category_info a,
	div.mod_djc_items .djc_producer_info a,
	div.mod_djc_items .djc_price span,
	#jm-allpage .djc_price span {
		display: inline-block;
		vertical-align: middle;
	}

	.djc_comments .fb-comments iframe {   
		position: relative !important;
	}

	.addthis_toolbox {
		float: right;
		direction: ltr;
	}

	.djc_category_counter {
		display: inline-block;
	}

	//ORIGINAL THEME
	//---------------------------------------------------------------

	//rss
	#djcatalog > a.djc_rss_link {
		text-align: left;
	}

	// Subcategories
	// -------------------------- 

	#djcatalog .djc_subcategories_grid .djc_subcategory {
		float: right;
	}

	#djcatalog .djc_subcategory .djc_image a {
		&:after {
			left: 0;
			-webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-130%,0);
			transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-130%,0);
		}
		&:hover {
			&:after {
				-webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,130%,0);
				transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,130%,0);
			}
		}
	}

	// Filters
	// -------------------------- 

	#djcatalog .djc_filter_list,
	#djcatalog .djc_filter_map_search,
	#djcatalog .djc_filter_radius_search,
	#djcatalog .djc_filter_search,
	#djcatalog .djc_order_buttons {
		li {
			margin-left: 20px;
			margin-right: 0;
		}
	}

	#djcatalog .djc_order_buttons {
		li {
			margin-left: 12px;
			margin-right: 0;
		}
	}

	//advanced
	#djcatalog .djc_filters,
	#djcatalog .djc_additional_filters {
		.djc_adv_search_wrap {
			text-align: left;
		}
	}

	//order
	#djcatalog .djc_order .djc_order_buttons {
		li {
			padding-left: 20px;
			padding-right: 0;
			background-position: left center;
		}
		.djcat_order_dir {
			margin: 0 6px 0 0;
		}
	}

	#djcatalog .djc_layout_buttons {
		float: left;
		li {
			float: left;
			padding: 0 2px 0 0;
		}
	}

	// Blog view
	// -------------------------- 

	#djcatalog .djc_items,
	#djcatalog .djc_related_items {
		.djc_item_row .djc_image a {
			&:after {
				left: 0;
				-webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-130%,0);
				transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-130%,0);
			}
			&:hover {
				&:after {
					-webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,130%,0);
					transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,130%,0);
				}
			}
		}
		.djc_item {
			float: right;
		}
	}

	//featured
	#djcatalog .djc_items,
	#djcatalog .djc_related_items  {
		.featured_item .djc_title h3 {
			background-image: url("../images/catalog/featured.png");
			background-position: right center;
			padding-left: 0;
			padding-right: 25px;
		}
	}

	#djcatalog .djc_items .djc_description,
	#djcatalog .djc_items .djc_title,
	#djcatalog .djc_related_items .djc_description,
	#djcatalog .djc_related_items .djc_title {
		text-align: right;
	}

	#djcatalog {
		.djc_category_info,
		.djc_producer_info,
		.djc_price,
		.djc_author,
		.djc_date,
		.djc_hits,
		.djc_contact	{
			span {
				margin-left: 0;
				margin-right: 5px;
			}
		}
	}

	#djcatalog .djc_items,
	#djcatalog .djc_related_items {
		.djc_item .djc_addtocart + div + .djc_readon {
			margin-left: 0;
			margin-right: 10px;
		}
	}

	// Table
	// -------------------------- 

	#djcatalog.djc_list table.category,
	#djcatalog.djc_mylist table.category,
	#djcatalog .djc_item_variants {
		//attributes
		div.djc_attributes {
			table .djc_attribute td.djc_label {
				padding-left: 0;
				padding-right: 10px;
			}
		}
	}

	// Producers and Producer
	// -------------------------- 

	#djcatalog.djc_producer .djc_images .djc_thumbnail {
		float: right;
	}

	// Single Product
	// -------------------------- 

	//featured
	#djcatalog.djc_item .djc_title img.djc_featured_image {
		margin-right: 0;
		margin-left: 5px;
	}
	
	//thumbnails
	#djcatalog.djc_item .djc_images {
		margin-left: 0;
		margin-right: 20px;
		text-align: left;
	}

	//producers link
	#djcatalog .djc_producer_info {
		a.modal {
			margin-left: 5px;
			margin-right: 0;
		}
	}

	#djcatalog .djc_product_top_nav a.djc_prev_btn,
	#djcatalog .djc_product_bottom_nav a.djc_prev_btn {
		float: right;
	}

	#djcatalog .djc_product_top_nav a.djc_next_btn,
	#djcatalog .djc_product_bottom_nav a.djc_next_btn {
		float: left;
	}

	// Checkout Cart / Query
	// -------------------------- 

	#jm-allpage #djcatalog .djc_cart_table {
		td.djc_td_update_qty {
			padding-left: 1px;
			padding-right: 5px;
			text-align: left;
		}
		td.djc_td_cart_remove {
			padding-left: 5px;
			padding-right: 1px;
			text-align: right;
		}
	}

	// Modules
	// -------------------------- 

	// front module
	#jm-allpage .djf_mod {
		.djf_gal {
			float: left;
		}
		.djf_gal .djc_col {
			float: right;
			margin: 10px 10px 0 0;
		}
		.djf_img {
			float: right; 
		}
		.djf_left {
			 margin: 0 0 0 @JMbaseSpace;
		}
		.djf_pag {
			left: 0;
			right: auto;
			span {
				margin: 0 10px 0 0;
			}
		}
	}

	// Items module
	div.mod_djc_item {
		.djc_title,
		.djc_description {
			text-align: right;
		}
	}

	div.mod_djc_item .djc_image a {
		&:after {
			left: 0;
			-webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-130%,0);
			transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-130%,0);
		}
		&:hover {
			&:after {
				-webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,130%,0);
				transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,130%,0);
			}
		}
	}

	//filters in filters section
	#djcatalog #djc_additional_filters .mod_djc2filters {
		.mod_djc2filters_group_wrapper {
		margin: -10px -(@JMbaseSpace/2) 0;
		}
		.mod_djc2filters_attribute {
			float: right;
		}
	}
	
	// Search module
	.djc_mod_search input#mod_djcatsearch {
		margin: 0 0 0 5px;
	}
	
	//cart module
	#jm-top-bar .mod_djc2cart {
		.mod_djc2cart_button .btn {
			margin-left: 0!important;
			margin-right: 10px!important;
		}
	}
	
//RTL target
}