.titlebar {
    border-bottom: 1px solid #CCC;
    margin-top: 20px;
    /*margin: 20px 10px 0 10px;*/
    background-color: #FFF;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.titlebar h3 {
    font-size: 16px;
    color: #005957;
}

.viewall {
	border-radius: 4px;
	text-decoration: none;
	color: #005957;
	background: url(../svg/arrow.svg) no-repeat center right;
}

.details { text-align: center;}

.viewall { padding: 10px 40px 10px 20px; }

.titlebar h3 { padding: 10px 20px 10px 5px;  }

.products {
    margin: 10px 0;
}

.products .qtybar {
    margin-top: 15px;
}

.part .flag {
    float: right;
    margin-right: 10px;
    margin-top: -10px;
}

.products .flag {
    float: right;
    margin-right: 10px;
}

.products .mgPart {
    background-color: #FFF;
    border: 1px solid #CCC;
    box-sizing: border-box;
    position: relative;
    margin: 20px 0;
}

.products .hover:hover {
    box-shadow: 4px 16px 22px 0px rgba(0,0,0,0.18);
    -moz-transform: translate(0px, -3px);
    -webkit-transform: translate(0px, -3px);
    -o-transform: translate(0px, -3px);
    -ms-transform: translate(0px, -3px);
    transform: translate(0px, -3px);
}

.products.flex .mgPart {
    display: flex;
    flex-direction: column;
}

/*.quantity_green {
    background: url(../img/icons_nalichnosti.png) no-repeat right 3px;
}

.quantity_orange {
    background:url(../img/icons_nalichnosti.png) no-repeat right -20px;
}

.quantity_red {
    background: url(../img/icons_nalichnosti.png) no-repeat right -43px;
}*/

.pr_qty_new { text-align: left; }

.pr_qty_new strong span {
    padding-right: 5px;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.mgPart table {
    width: 100%;
}

.mgPart table td { vertical-align: top; }


td.availability,
td.quantity,
td.price { white-space: nowrap; }

strong.mgAvailability span {
    width: 20px;
    height: 20px;
    padding: 0 0 0 5px;
    vertical-align: top;
    margin: 0;
}

input.mgQuantity { width: 50px; }

.mgShowStores {
    background-image: url(../img/arrow_down.png);
    background-repeat: no-repeat;
    display: inline-block;
    width: 40px;
    height: 25px;
    vertical-align: top;
    background-size: 24px;
    background-position: center;
    cursor: pointer;
}

.quantity_green {  background:url("../img/icons_nalichnosti.png") no-repeat right 3px; display:inline-block; /*padding-right:23px;*/ line-height:30px; }
.quantity_orange {  background:url("../img/icons_nalichnosti.png") no-repeat right -20px; display:inline-block; /*padding-right:23px;*/ line-height:30px; }
.quantity_red {  background:url("../img/icons_nalichnosti.png") no-repeat right -43px; display:inline-block; /*padding-right:23px;*/ line-height:30px; }

.quantity_green10 {  background:url("../img/icons_nalichnosti.png") no-repeat right -66px; display:inline-block; padding-right:37px; line-height:30px; }
.quantity_red1 {  background:url("../img/icons_nalichnosti.png") no-repeat right -319px; display:inline-block; padding-right:37px; line-height:30px; }
.quantity_orange10 {  background:url("../img/icons_nalichnosti.png") no-repeat right -89px; display:inline-block; padding-right:37px; line-height:30px; }
.quantity_orange9 {  background:url("../img/icons_nalichnosti.png") no-repeat right -112px; display:inline-block; padding-right:37px; line-height:30px; }
.quantity_orange8 {  background:url("../img/icons_nalichnosti.png") no-repeat right -135px; display:inline-block; padding-right:37px; line-height:30px; }
.quantity_orange7 {  background:url("../img/icons_nalichnosti.png") no-repeat right -158px; display:inline-block; padding-right:37px; line-height:30px; }
.quantity_orange6 {  background:url("../img/icons_nalichnosti.png") no-repeat right -181px; display:inline-block; padding-right:37px; line-height:30px; }
.quantity_orange5 {  background:url("../img/icons_nalichnosti.png") no-repeat right -204px; display:inline-block; padding-right:37px; line-height:30px; }
.quantity_orange4 {  background:url("../img/icons_nalichnosti.png") no-repeat right -227px; display:inline-block; padding-right:37px; line-height:30px; }
.quantity_orange3 {  background:url("../img/icons_nalichnosti.png") no-repeat right -250px; display:inline-block; padding-right:37px; line-height:30px; }
.quantity_orange2 {  background:url("../img/icons_nalichnosti.png") no-repeat right -273px; display:inline-block; padding-right:37px; line-height:30px; }
.quantity_orange1 {  background:url("../img/icons_nalichnosti.png") no-repeat right -296px; display:inline-block; padding-right:37px; line-height:30px; }

.qtynew_green,
.qtynew_orange,
.qtynew_red {
    background-image: url(../img/icons_nalichnosti.png);
    background-repeat: no-repeat;
    display: inline-block;
    padding-right: 30px;
    margin-right: 15px;
}

.qtynew_green { background-position: right 0px; }
.qtynew_orange { background-position: right -22px; }
.qtynew_red { background-position: right -45px; }


    /*MAX-WIDTH-754*/

@media all and (max-width: 754px) {
    .titlebar { display: none; }
    .products { margin: 10px auto; }
}

/******/

/*PART and QTYBAR*/

.price .pr_quantity { text-align: left; }

.pr_quantity input {
    width: 35px;
    text-align: center;
}

.price .pr_qty { text-align: left; }




		/****custom responsive****/


@media all and (min-width: 320px) and (max-width: 600px) {
	.products.flex .mgPart { width: 100%; margin: 10px; }
}

@media all and (min-width: 460px) and (max-width: 767px) {
	.products.flex .mgPart { width: calc(50% - 20px); margin: 10px; }
}

@media all and (min-width: 767px) and (max-width: 939px) {
	.products.flex .mgPart { width: calc(33.333333333% - 20px); margin: 10px; }
}

@media all and (min-width: 940px) {
	.products.flex .mgPart { width: calc(25% - 20px); margin: 10px; }
}

			/*******/

.products .info h4 { text-transform: uppercase; }

.info {
    padding:0 15px;
    margin-bottom: auto;
}

.info p { margin-bottom: 5px; }

.products .price {
    margin-top: auto;
}


.products .price .home,
.products .price-index .home{
    display: flex;
    justify-content: space-between;
    background-color: #005957;
    border-top: 5px solid #cfcfcf;
    padding: 10px;
    color: #FFF;
    line-height: 20px;
}

a.button.pr_but {
    display: block;
    margin-top: 50px;
}

a.button {
    display: inline-block;
    border-radius: 4px;
    color: #005957;
    padding: 8px 20px;
    line-height: 18px;
    text-decoration: none;
    background: linear-gradient(#f0f0f0, #cfcfcf);
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    min-height: 18px;
    /*margin: 0 15px 15px;*/
}

a.button:hover {
    background: #005957;
    color: #fff;
}

.products .price a.button { margin: 0 15px 15px; }

.mgPart table a.button {
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0;
}

a.mrg { margin: 15px 0; }

/*print buton in products*/

.print{
    background: url(../svg/printer.svg) no-repeat;
    background-position: -6px top;
    padding-top: 5px;
    padding-left: 29px;
    margin-bottom: 10px;
    cursor: pointer;
}

.itemprint a {
    color: #555555 !important;
    font-size: 12px;
    vertical-align: text-bottom;
}

/******/

/*part and product info in 3 column*/

.itemprint,
.itemprice,
.iteminfo  { margin-top: 20px; }

/*.products .price span,*/
.products .price.red span {
    display: inline-block;
    font-weight: bold;
    font-size: 16px;
}
.products .price .home span { color: #fff; }
.products .price.red span { color: #005957; }

/******/


/*POLYGON AND ROTATE TEXT*/

.tagnew {
    position: absolute;
    margin: -2px 0 0 -2px;
    z-index: 1;
}

.tagnew .polygon {
    clip-path: polygon(50% 0, 100% 0, 0 100%, 0 50%);
    -webkit-clip-path: polygon(50% 0, 100% 0, 0 100%, 0 50%);
    width: 75px;
    height: 74px;
    background: #ffde00;
}

.tagnew span.rotate {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    color: #005957;
    position: absolute;
    top: 17px;
    left: -20px;
    font-size: 14px;
    font-weight: bolder;
    text-align: center;
    width: 97px;
}

.tagnew.current span.rotate { color: #fff; }


        /*MAX-WIDTH-495*/

@media all and (max-width: 495px) {
    .info { text-align: center; }

    .info h4,.info p { text-align: left; }

    .titlebar { display: none; }

}

/*part-inside*/

section.part {
    background-color: #FFF;
    border: 1px solid #CCC;
    box-sizing: border-box;
    margin: 20px 0;
}
section.part h3 {
    margin: 0 0 10px 0;
    color:#005957;
    padding-bottom: 5px;
    border-bottom: 1px solid #CCC;
    line-height: 22px;
}


/****/

section .products h3 a,
section .products div.title {
    margin: 0;
    color:#005957;
    line-height: 22px;
}
section .products h3,
section .products div.title {
    padding-bottom: 5px;
    border-bottom: 1px solid#CCC;
}

section .products .prd-img { width: 100%; }

section .products .mrg-top { margin-top: 15px; }


div.gallery .items { margin-top: 15px; }

.params {
    background-color: #EEE;
    padding: 10px 15px;
    border-radius: 10px;
}

 .params > div {
    padding: 5px;
    overflow: auto;
}

.params > div:not(:last-child) {
    border-bottom: 1px solid #999;
}

.params .paramvalue { float: right; }

.mgPart td.availability,
.mgPart td.quantity,
.mgPart td.price { vertical-align: middle; }

.mgPart td hr {
    border: none;
    height: 2px;
    background-color: #CCC;
    padding: 0;
    margin: 5px 0 10px 0;
}

.productimg { position: relative; }

.productimg .partlabel,
.mgPart .partlabel {
    position: absolute;
    width: 120px;
    right: 10px;
    top: 10px;
}

#Basket .product {
    display: flex;
}

#Basket .product > div:last-child {
    white-space: nowrap;
}

#Basket .product a.button {
    font-size: 20px;
}

#BasketTotal {
    text-align: right;
    margin-right: 80px;
}

#BasketTotal > span {
    display: inline-block;
    padding: 5px 10px;
    border-top: 1px solid;
    min-width: 60px;
    margin: 0 4px;
}
