
#cat_carousel{
  ul {
    margin:0 0 0 0;
    padding: 0;
  }

  ul li {
    margin:0 10px 0 0 ;
    padding: 0;
    width: 212px;
    float:left;
    border:none;
  }

  ul li:last-child {
    margin:0 0 0 0 ;
  }

  ul li .thumbnail {
    border:none;
    padding:0;
    margin:0;
  }

  ul li .thumbnail .caption {
    background-color:#fff;
    padding:0;
    margin:0;
  }

  ul li .thumbnail .btn {
    background: url('../img/btn_bg3.png') no-repeat 0 0;
    border: 0 solid transparent !important;
   -moz-border-radius: 0px !important;
   -webkit-border-radius: 0px !important;
   -khtml-border-radius: 0px !important;
   border-radius: 0px !important;  
   width:212px;
   height:43px;
   font-family: 'Raleway-Regular';
    -moz-font-feature-settings:"lnum" 1;
-ms-font-feature-settings:"lnum" 1;
-o-font-feature-settings:"lnum" 1;
-webkit-font-feature-settings:"lnum" 1;
font-feature-settings:"lnum" 1; 
   text-transform: uppercase;
   font-size: 1.1em;
   padding:0;
   line-height:43px;
  }

  ul li .thumbnail .twoline_btn {
   padding-top:10px;
   line-height: 13px;
  }

  ul li .thumbnail .btn:hover {
   background-position: 0 -80px;
   color: #fff;
  }

  ul li .thumbnail:hover{
    cursor:pointer;
  }

  ul li .thumbnail:hover .btn {
   background-position: 0 -80px;
   color: #fff;
  }

  ul li .thumbnail:hover img {
   -webkit-filter: grayscale(100%);
   -moz-filter: grayscale(100%); 
   -ms-filter: grayscale(100%);
   -o-filter: grayscale(100%);
   filter: grayscale(100); 
  }
}



@media (min-width:$screen-xs-min) {
  #cat_carousel {
    .item { 
      display:block;
      padding-bottom:10px;
    }

    }
}

@media (max-width:$screen-xs-max) {
 #cat_carousel {
   margin: 0 auto;
   width:212px;
   display: none;
  .carousel-inner {
   position:relative;
   width:212px;
   }
}
}

@media only screen and (max-width: 480px) and (min-width: 320px){
  .sales_box_row{
    margin-left: 0;
    margin-right: 0;
  }
  .sales_box_row .col-lg-6.new_sale_box{
    padding-left: 5px;
    padding-right: 0;
    display: inline-block;
    width: 49%;
  }
  div.row.sales_box_row .col-sm-2-4.salesbox{
    margin: 10px 0 10px 0;
    display: block;
    float: left;
    width: 100%;
    height: 490px;
  }
  .img_container img{
    max-width: 90%;
  }
  .sales_box_row .img_container{
    height: 200px;
  }
  .sales_box_row .codetitle{
    position: relative;
    bottom: -5px;
    margin: 0 5px;
    font-size: 1.3em;
  }
  .sales_box_row .salesbox .var_choises{
    margin-top: 35px !important;
    padding-left: 0px;
    padding-right: 0px;
  }
  .sales_box_row .addtocart{
    padding: 8px 0;
    font-size: 12px;
    padding-right: 15px;
    max-width: 93%;
  }
  .sales_box_row .addtocart .triangle-topleft_red{
    border-right: 35px solid #fff;
  }
  #cat_carousel{
    display: none;
  }
}

@media only screen and (orientation: landscape) and (max-width: 785px) and (min-width: 480px){
  #cat_carousel{
    margin: 0;
    width: 100%;
  }
  #cat_carousel .carousel-inner{
    position: relative;
    width: 100%;
  }
  #cat_carousel ul li {
    margin: 0 0 0 0;
    padding: 0;
    width: 50%;
    float: left;
    border: none;
  }
  #cat_carousel ul li .thumbnail .caption{
    background-color: #fff;
    padding: 0;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    display: table;
  }
  .sales_box_row{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  div.row.sales_box_row .col-sm-2-4.salesbox{
    margin: 10px 5px 10px 5px;
    display: block;
    width: 100%;
    height: 510px;
  }
  div.col-lg-6.new_sale_box{
    width: 33%;
    float: left;
  }
  .sales_box_row .img_container{
    height: 220px;
  }
  .img_container img{
    max-width: 90%;
  }
  .sales_box_row .addtocart{
    padding: 0 0;
    font-size: 12px;
    max-width: 93%;
  }
  .sales_box_row .addtocart .triangle-topleft_red{
    border-right: 35px solid #fff;
  }
  .sales_box_row .salesbox .var_choises{
    margin-top: 30px !important;
    padding-left: 0px;
    padding-right: 0px;
  }
}

.carousel div.thumbnail{
  position: relative;
  display: inline-block;
}

.carousel div.thumbnail span{
  position: absolute;    
  text-align: center;
  width: 100%;
  color: #fff;
  left:0;
  top:0;

}

.carousel div.thumbnail span:before{
  display: inline-block;
  vertical-align: middle;
  height: 100%;
  content: '';
}
#cat_carousel.carousel ul li .thumbnail div.caption{
  display:none;
}

@media only screen and (max-width: 785px){
  #cat_carousel{
    display: none;
  } 
}

@media only screen and (max-width: 960px) and (min-width: 736px){
  // #cat_carousel{
  //   margin: 0;
  //   width: 100%;
  //   display: none;
  // }
  #cat_carousel .carousel-inner{
    position: relative;
    width: 100%;
  }
  #cat_carousel ul li {
    margin: 0 0 0 0;
    padding: 0;
    width: 33%;
    float: left;
    border: none;
  }
  #cat_carousel ul li .thumbnail .caption{
    background-color: #fff;
    padding: 0;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    display: table;
  }
  .sales_box_row .col-sm-2-4.salesbox{
    margin: 10px 10px 10px 0;
    display: block;
  }
  div.col-lg-6.new_sale_box{
    width: 33%;
    float: left;
  }

}

@media only screen and (max-width: 1366px) and (min-width: 1024px){
  #cat_carousel{
    margin: 0;
    width: 100%;
  }
  #cat_carousel .carousel-inner{
    position: relative;
    width: 100%;
  }
  #cat_carousel ul li {
    margin: 0 10px 0 0;
    padding: 0;
    width: 212px;
    float: left;
    border: none;
  }
  #cat_carousel ul li .thumbnail .caption{
    background-color: #fff;
    padding: 0;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    display: table;
  }
  div.row.sales_box_row .col-sm-2-4.salesbox{
    margin: 10px 10px 10px 0;
    display: block;
  }
}


//new rules
.category-teasers{
  padding:0;
  li {
    position: relative;
    display: inline-block;
    list-style: none;
    margin: 0 4px;

    .thumbnail {
      border:none;
      padding:0;
      margin:0;
    }

    .thumbnail .caption{
      background-color: #fff;
      padding: 0;
      margin: 0;
      margin-left: auto;
      margin-right: auto;
      display: table;
    }

    .thumbnail .btn {
      background: url('../img/btn_bg3.png') no-repeat 0 0;
      border: 0 solid transparent !important;
     -moz-border-radius: 0px !important;
     -webkit-border-radius: 0px !important;
     -khtml-border-radius: 0px !important;
     border-radius: 0px !important;  
     width:212px;
     height:43px;
     font-family: 'Raleway-Regular';
      -moz-font-feature-settings:"lnum" 1;
-ms-font-feature-settings:"lnum" 1;
-o-font-feature-settings:"lnum" 1;
-webkit-font-feature-settings:"lnum" 1;
font-feature-settings:"lnum" 1; 
     text-transform: uppercase;
     font-size: 1.1em;
     padding:0;
     line-height:43px;
    }

    .thumbnail .twoline_btn {
      padding-top:10px;
      line-height: 13px;
     }
   
     .thumbnail .btn:hover {
      background-position: 0 -80px;
      color: #fff;
     }
   
     .thumbnail:hover{
       cursor:pointer;
     }
   
     .thumbnail:hover .btn {
      background-position: 0 -80px;
      color: #fff;
     }
   


     div.thumbnail span{
      position: absolute;    
      text-align: center;
      width: 100%;
      color: #fff;
      left:0;
      top: 45%;


      //font settings
      font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
      text-transform: uppercase;
      font-size: 1.4em;
      font-weight: bolder;
    
    }
    
    // div.thumbnail span:before{
    //   display: inline-block;
    //   vertical-align: middle;
    //   height: 100%;
    //   content: '';
    // }
  }
}
@media (min-width: 786px)
{
  .category-teasers{
    .thumbnail:hover img {
      filter: grayscale(100); 
      -webkit-filter: grayscale(100%);
      -moz-filter: grayscale(100%); 
      -ms-filter: grayscale(100%);
      -o-filter: grayscale(100%); 
    }

    div.thumbnail span{
      display:none;
    }
  }
  .small-only{
    display: none !important;
  }
}

// @media (min-width:600px) and (max-width: 599px)
// {
//   .category-teasers{
//     li{
//       margin: 3px 1%;
//     }
//   }
// }

// @media (min-width:600px) and (max-width: 641px)
// {
//   .category-teasers{
//     li{
//       margin: 3px 2%;
//     }
//   }
// }

// @media (min-width:642px) and (max-width: 689px)
// {
//   .category-teasers{
//     li{
//       margin: 3px 3%;
//     }
//   }
// }

// @media (min-width:690px) and (max-width: 745px)
// {
//   .category-teasers{
//     li{
//       margin: 3px 4%;
//     }
//   }
// }

// @media (min-width:746px) and (max-width: 785px)
// {
//   .category-teasers{
//     li{
//       margin: 3px 5%;
//     }
//   }
// }

// @media (min-width:384px) and (max-width: 785px)
// {
//   ul.category-teasers{
//     display: flex;
//     justify-content: space-around;
//     flex-wrap: wrap;
//   }
// }
@media (max-width: 383px)
{
  div.container{
    padding:0 5px;
  }

  ul.category-teasers{    
    li{
      margin: 1px 0px;
    }
  }
}

@media (max-width: 785px)
{
  ul.category-teasers{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
  }
  
  .category-teasers{
    
    li{
      padding: 0;
      margin: 3px 0px;
    }
    .thumbnail picture{

      -webkit-transition: all 0.2s ease-in-out;
      -o-transition: all 0.2s ease-in-out;
      transition: all 0.2s ease-in-out;

      filter: brightness(50%);
      margin-bottom: 7px;
    }

    .thumbnail picture:hover {

      filter: brightness(90%);
    }

    div.caption{
      display: none !important;
    }

  }

}
