
/*   VIRTUEMART   */

div.vendor-store-desc { display: block !important; }

/* Kategoria-sivu */
/* Kategoriat */

.category-view { margin: 0 !important; }

.virtuemart_category { position: relative; top: 0; float: left; box-sizing: border-box; padding: 10px; border-radius: 6px; display: flex; flex-direction: column; background: #fff; text-align: center;
	-webkit-transition: all 0.3s;-moz-transition: all 0.3s;-ms-transition: all 0.3s;-o-transition: all 0.3s;transition: all 0.3s; }

	.virtuemart_category:hover { top: -10px; box-shadow: 0 0 5px rgba(0,0,0,0.3); }

	.virtuemart_category img { max-height: 200px; }

/* Tuotteet*/
.terasp_product { position: relative; top: 0;  float: left; box-sizing: border-box; border-radius: 6px; display: flex; flex-direction: column; background: #fff;
	-webkit-transition: all 0.3s;-moz-transition: all 0.3s;-ms-transition: all 0.3s;-o-transition: all 0.3s;transition: all 0.3s; }

	.terasp_product:hover { top: -10px; box-shadow: 0 0 5px rgba(0,0,0,0.3); }

	.virtuemart_product_top { padding: 10px; box-sizing: border-box; width: 100%; text-align: center; flex-grow: 1;}

		.virtuemart_product_top img { max-height: 180px; }

	.virtuemart_product_bottom { background-color: #f3faff; width: 100%; padding: 10px; box-sizing: border-box; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }

	h3.virtuemart_product_category_header a,
	h3.virtuemart_product_category_header { font-size: 17px !important; text-decoration: none; color: #414141; padding-bottom: 4px !important; }

	.virtuemart_product_price {	
		font-family: 'Exo', Helvetica, Arial, sans-serif;
		font-weight: 600;
		font-size: 24px;
		font-style: normal;
		color: #1077bd;
		line-height: 1.2em;
	}

	.vm-price-desc {min-width: 0 !important; margin: 0 !important; }

	/* Yliviivatun hinnan muoto tuotelistaussivulla*/
	.virtuemart_product_bottom .PricebasePriceVariant {     font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 15px; line-height: 18px;
    color: #414141; text-decoration: none !important; position: relative; font-weight: bold; }

/* Tuotteet-sivu */

.vm-product-media-container { max-width: 400px !important; width: 50% !important; }

.vm-product-details-container { float: left !important; }

.PricesalesPrice { margin: 10px 0; font-size: 13px !important; text-align: left !important; } /* Alvillinen hinta */

.spacer-buy-area div.PricebasePrice { margin: 10px 0; text-align: left; }

	.PricebasePrice .vm-price-desc,
	.PricediscountedPriceWithoutTax .vm-price-desc{
		font-family: 'Exo', Helvetica, Arial, sans-serif;
		font-weight: 600;
		font-style: normal;
		line-height: 1.2em;
		font-size: 19px !important;
		text-decoration: none; 
		color: #414141;
		text-align: left;
		display: block;
	}

	.PricebasePrice .PricebasePrice,
	.PricediscountedPriceWithoutTax .PricediscountedPriceWithoutTax {
		font-family: 'Exo', Helvetica, Arial, sans-serif;
		font-weight: 600;
		font-size: 28px;
		font-style: normal;
		color: #1077bd;
		line-height: 1.2em;
		display: block;
		text-align: left;
	}

.product-price { text-align: left !important; }

span.price-crossed { display: block; margin: 6px 0; }

span.price-crossed span.PricebasePriceVariant { text-decoration: none !important; position: relative; font-weight: bold; }

span.price-crossed span.PricebasePriceVariant:after {
    position: absolute;
    content: "";
    height: 0;
    left: -3px;
    right: -3px;
    border-top: 1px solid red;
    top: 50%;
    -ms-transform: rotate(-7deg);
    -webkit-transform: rotate(-7deg);
    transform: rotate(-7deg);
}

.chzn-results {padding: 0 0 0 2px !important;}

.product-description { padding: 10px 0 0 16px; }

.spacer-buy-area { background: #fff; margin: 20px 0 20px 16px; padding: 10px !important; border-radius: 6px; box-shadow: 0 0 4px rgba(0,0,0,0.4); }

#ui-tabs .tabs{ padding: 0 0 10px 0 !important; }

	#ui-tabs .tabs table { margin-top: 0 !important; }

/* Ostoskori */

.col-total .PricesalesPrice { text-align: right !important; }

#ProOPC .cart-page-title{
	font-family: 'Exo', Helvetica, Arial, sans-serif;
	font-weight: 600;
	font-style: normal;
	color: #1077bd;
	line-height: 1.2em;
	font-size: 2.6em; padding: 0.4em 0 0.4em 0; 
	text-align: left; 
}

.fancy-tos-body { text-align: left; }

.vm-orders-information th, .vm-orders-information td { padding: 4px 9px; }

#ui-tabs .tabs { padding: 10px 0; }


/**********   MEDIA QUERIES    ************/


@media screen and (min-width: 1201px) {
	
	.virtuemart_category { width: 23.5%; margin: 0 2% 2% 0; }

		.virtuemart_category:nth-child(4n) { margin-right: 0; }
	
	.terasp_product { width: 18.4%; margin: 0 2% 2% 0; }
	
		.terasp_product:nth-child(5n) { margin-right: 0; }
	
}

@media screen and (min-width: 901px) and (max-width: 1200px)  {	
	
	.virtuemart_category { width: 23.5%; margin: 0 2% 2% 0; }

		.virtuemart_category:nth-child(4n) { margin-right: 0; }
	
	.terasp_product { width: 23.5%; margin: 0 2% 2% 0; }
	
		.terasp_product:nth-child(4n) { margin-right: 0; }
	
}

@media screen and (min-width: 701px) and (max-width: 900px)  {	
	
	.virtuemart_category { width: 32%; margin: 0 2% 2% 0; }

		.virtuemart_category:nth-child(3n) { margin-right: 0; }
	
	.terasp_product { width: 32%; margin: 0 2% 2% 0; }
	
		.terasp_product:nth-child(3n) { margin-right: 0; }
	
}

@media screen and (min-width: 501px) and (max-width: 700px)  {	
	
	.virtuemart_category { width: 48.5%; margin: 0 3% 3% 0; }

		.virtuemart_category:nth-child(2n) { margin-right: 0; }
	
	.terasp_product { width: 48.5%; margin: 0 3% 3% 0; }
	
		.terasp_product:nth-child(2n) { margin-right: 0; }
	
	.back-to-category { display: none !important; }
	
}

@media screen and (max-width: 500px)  {	
	
	.virtuemart_category { width: 100%; margin: 0 0 20px 0; }
	
	.terasp_product { width: 100%; margin: 0 0 20px 0; }
	
	.product-description { padding: 10px 0 0 0; }
	
	.spacer-buy-area { margin: 20px 0; }
	
	.back-to-category { display: none !important; }
	
}

	