

/*------------------------------------------------------------------
[Table of contents]

1. cms-recent-post
2. Search

-------------------------------------------------------------------*/

/* =Widgets
-------------------------------------------------------------- */
#sb_instagram #sbi_images{
  padding: 0 37px !important;
  .sbi_item{
    padding: 0 15px !important;
    .sbi_photo{
      position: relative;
      height: 210px !important;
      border-radius: 20px;
      &:before{
        /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#a43fb9+0,bd3392+23,dc3374+45,fcc561+100 */
        background: #a43fb9; /* Old browsers */
        background: -moz-linear-gradient(45deg, #a43fb9 0%, #bd3392 23%, #dc3374 45%, #fcc561 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(45deg, #a43fb9 0%,#bd3392 23%,#dc3374 45%,#fcc561 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(45deg, #a43fb9 0%,#bd3392 23%,#dc3374 45%,#fcc561 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a43fb9', endColorstr='#fcc561',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
        top: 20px;
        left: 20px;
        right: 20px;
        bottom: 20px;
        content: '';
        position: absolute;
        opacity: 0;
        @include transition(all 300ms linear 0ms);
        border-radius: 20px;
      }
      &:after{
        content: "\f16d";
        position: absolute;
        display: inline-block;
        font: normal normal normal 14px/1 FontAwesome;
        font-size: inherit;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-size: 43px;
        top: 50%;
        left: 50%;
        opacity: 0;
        border-radius: 0;
        @include transition(all 300ms linear 0ms);
        @include transform(translate(-50%,-50%));
        color: #fff;

      }
      &:hover{
        &:before,
        &:after{
          opacity: 0.9;
        }
      }

    }
  }
}
#sidebar{
  width: 100%;
  float: left;
  .template-cms_carousel-blog{
    margin-top: -2px;
    .cms-carousel-item {
      padding: 15px 8px;
    }
   .cms-carousel-item .content-right .more {
      display: none;
    }
    .cms-carousel-item .content-right {
      padding: 0px 0px 43px;
    }
    .cms-carousel-item .content-right .entry-content {
      padding: 22px 6px 0;
      min-height: 147px;
      .entry-title{
        line-height: 23px;
        margin-bottom: 7px;
      }
    }
    .cms-carousel-item .content-right .archive_detail {
    width: calc(100% - 26px);
    margin-left: 13px;
      .detail-terms{
        display: none;
      }
  }
    &.cms-carousel .owl-dots, .owl-dots {
      margin-top: -44px;
      z-index: 2;
      position: relative;
    }
  }
  .widget_media_image{
    text-align: center;
    img{
      display: inline-block;
    }
  }
  ul.products {
    padding-top: 3px;
    padding-bottom: 15px;
    li.product{
      width: 100% !important;
      margin-bottom: 20px;
      &:last-child{
        margin-bottom: -20px;
        .product-inner .product-content{
          border: none;
        }
      }
      .product-inner {
        text-align: left;
        .product-top{
          width: 111px;
          float: left;
          img{
            width: 111px;
            height: 95px;
          }
          .bottom-product{
            display: none;
          }
        }

        .product-content{
          width: calc(100% - 132px);
          float: right;
          background: none;
          h3{
            font-size: 16px;
            line-height: 30px;
            margin-top: -6px;
            color: $secondary_color;
            margin-bottom: 0px;
            @extend .custom-font-2;
          }
          .price{
            font-size: 16px;
            color: $primary_color;
            font-weight: 700;
            @extend .custom-font-2;
            line-height: 1;
            margin-bottom: 6px;
          }
          .bottom-product a{
            opacity: 0;
          }
        }
      }
    }
  }
  .ft_flickr_widget{
    padding-bottom: 63px;
    .wg-title{
      margin-bottom: 13px;
    }
  }
  .wg-title{
    +label{
      margin-top: 10px;
    }

  }
  .calendar_wrap{
    margin-top: 10px;
  }
  .widget-title, .wg-title {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 11px;
    position: relative;
    font-weight: 500;
    padding-left: 18px;
    padding-top: 4px;
    position: relative;
    span{
      padding: 0 9px;
      display: inline-block;
      background: #fff;
      position: relative;
      z-index: 2;
    }
    &:after{
      content: '';
      position: absolute;
      width: 100%;
      top: 50%;
      height: 2px;
      background: #e5e9ee;
      left: 0;
      @include transform(translateY(-50%));
    }
  }
  aside{
    padding-bottom: 45px;
    float: left;
    width: 100%;
    &:last-child{
      margin-bottom: 0;
      border-bottom: none;
      padding-bottom: 0;
    }
  }
  ul.children, ul.sub-menu {
    padding-left: 15px;
  }
  #searchform {
    background: #fff;
    height: 45px;
    border-radius: 2px;
    border: #666 solid 1px;
   #searchsubmit{
      border: none;
     background: transparent;

    }
  }
  .widget_archive,
  .widget_categories,
  .widget_meta,
  .widget_nav_menu,
  .widget_pages,
  .widget_product_categories,
  .widget_layered_nav,
  .widget_recent_entries,
  .widget_recent_comments,
  .widget_rss {
    .wg-title {
      margin-bottom: 21px ;
    }
  }
  .widget_categories{
    li{
      text-align: right;
      a{
        float: left;
      }
      &:hover{
        color: $primary_color;
      }
    }

  }
  .cms-category-product{
    li{
     span{
        float: right;
      }
      &:hover{
        color: $primary_color;
      }
    }

  }

  #sb_instagram{
  margin-top: 2px;
}
  .cms-recent-post-wrapper{
    margin-top: 6px;
    float: left;
    list-style: none;
    img{
      width: 80px;
      height: 80px;border-radius: 50%;
      border: #fff solid 2px;
    }
    .cms-recent-media{
      float: left;
      width: 80px;
    }

    li{
      padding-bottom: 20px;
      float: left;
      width: 100%;

      &:last-child{
        padding-bottom: 0;
        .cms-recent-details{
          border-bottom: none;
        }
      }
    }
    .cms-recent-details{
      float: left;
      width: calc(100% - 80px);
      padding-left: 20px;
      padding-bottom: 9px;
      margin-top: -1px;
      .archive_detail{
        float: left;
        width: 100% ;
        text-align: center;
        position: relative;
        margin-top: 2px;
        li{
          display: inline-block;
          padding-bottom: 0;
          font-size: 13px;
          width: auto;
          color: $primary_color;
          line-height: 24px;
          font-weight: 500;
          float:left;
          margin-right: 21px;
          &.detail-terms{
            display: none;
          }
          i{
            margin-right: 5px;
            color: $primary_color;
          }
          &:last-child{
            margin-right: 0;
          }
        }
      }

    }
  }

}
.widget_newsletterwidget{
 display: inline-block;
  .wg-title{
    margin-bottom: 10px;
  }
  form{
    p{
      display: inline-block;
      float: left;
    }
  }
  .intro{
    float: left;
    font-size: 18px;
    color: #fff;
    text-align: left;
    text-transform: uppercase;
    line-height: 22px;
    font-weight: 500;
    margin-right: 27px;
    
  }
  .tnp-widget{
    width: auto;
    float: left;
  }
  label{
    display: none !important;
  }
  input[type="text"],
  input[type="email"]{
    display: block;
    width: 350px !important;
    max-width: 100%;
    height: 39px !important;
    padding: 0 !important;
    padding-left: 10px !important;
    line-height: 1;
    font-size: 14px !important;
    background-color: transparent !important;
    background-image: none;
    border: none !important;
    color: #fff !important;
    border-bottom: 1px solid #fff !important;
    border-right: none !important;
    margin-bottom: 0 !important;
    border-radius: 0;

    &:focus{

    }
  }
  @include  placeholder(#fff);
  .tnp-field-email{
    float: left;
  }
  .tnp-field-button{
    float: left;
    position: relative;
    margin-left: 33px;
  }
  .tnp-submit{
    padding: 0 25px !important;
    float: right;
    font-size: 14px !important;
    color: #fff;
    background: $secondary_color !important;
    border: none !important;
    border-left: none !important;
    border-radius: 19px;
    height: 39px !important;
    line-height: 39px;
    text-transform: uppercase;
    overflow: hidden;
    position: relative !important;
    z-index: 3;
    box-shadow: 0 5px 7px rgba(#000,0.23);
    -webkit-box-shadow: 0 5px 7px rgba(#000,0.23);

    &:hover{
      background: #fff !important;
      color: $primary_color !important;
    }
  }

}
/* 3. Search */
#searchform {
  position: relative;
  background: transparent;
  float: left;
  width: 100%;
  input[type="text"] {
    @include box-shadow(none);
    border-radius: 30px;
    height: 45px;
    border: none;
    line-height: 43px;
    padding: 2px 17px;
    width: calc(100% - 45px);
    font-size: 16px;
   font-weight: 400;
    background: transparent;
    float: left;
    border-bottom-right-radius: 0;
   border-top-right-radius: 0;
    &:focus{
      + #searchsubmit {
        border-color: $primary_color;
        &:hover{
          border-color: $primary_color !important;
        }
      }
    }
  }
  @include placeholder(#666);
  #searchsubmit {
    background-color: transparent;
    font-size: 0;
    max-width: 50px;
    float: right;
    z-index: 99;
    padding: 0px;
    border: 1px solid #c5c9cf;
    border-left: none;
    border-radius: 2px;
    border-bottom-left-radius: 0;
    border-top-left-radius:0 ;
    width: 45px;
    height: 45px;
    margin-top: 0;
    box-shadow: none;
    @include transition(border-color ease-in-out 0.15s);
    &:hover{
      border-color: #c5c9cf !important;
    }
  }
  .screen-reader-text {
    display: none;
  }
  &:before {
    content: "\e86f";
    display: inline-block;
    text-rendering: auto;
    position: absolute;
    right: 15px;
    top: 13px;
    font-size: 18px;
    color: $secondary_color;
    z-index: 2;
    padding-left: 15px;
    font-family: 'Linearicons-Free';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}
/* 3. End Search */
  .widget_archive,
  .widget_categories,
  .widget_meta,
  .widget_nav_menu,
  .widget_pages,
  .widget_product_categories,
  .widget_layered_nav,
  .widget_recent_entries,
  .widget_recent_comments,
  .widget_rss,
  .cms-category-product{
    > ul{
padding: 0;
      margin-top: -7px;
    }
    ul {
      list-style: none;

      li {
        float: left;
        width: 100%;
        list-style: none;
        line-height: 30px;
        font-size: 13px;
        color: #666;
        font-weight: 300;
        position: relative;
        padding-left: 19px;
        a {
          color: inherit;
          &:hover {
              color: $primary_color;
          }
        }

        ul {
          li{
            &:last-child{
              border: none;
              padding-bottom: 0;
            }
          
          }
        }
        &:last-child{
          border-bottom: none;
        }
      }
      &.sub-menu {
        padding-left: 15px;

      }
    }
  }

  .product-categories{
    margin-top: -7px;
  }
.widget_product_categories {
  padding-bottom: 39px !important;
}
  .widget_ww_news_tabs{
    border: 1px solid #e6e6e6;
    ul.nav-tabs {
      background: #f5f5f5;
      padding: 8px 0 0;
      text-align: center;
      border: none;
      li{
        float: none;
        display: inline-block;
        a {
        padding: 10px 12px;
        border-radius: 0px;
          border: none;
          outline: none;
          color: #777;
          &:hover{
            background: none;
          }
      }
        &.active,
        &:hover{
         a{
           border: none;
           background: #fff;
           color: $link_hover;
         }
        }
      }
    }
    .tab-content {
      padding: 0 20px;
      border: none;
      width: auto;
      min-height: inherit;
      li {
        padding-top: 20px;
        padding-bottom: 20px;
        margin: 0px;
        font-size: 12px;
        border-bottom: 1px solid #e6e6e6;
        line-height: 18px;
        float: left;
        width: 100%;
        .cs-meta{
          float: left;
        }
        .cs-details{
          float: right;
          width: calc(100% - 75px);
        }
        .image{
          border: 1px solid #F0F0F0;
          float: left;
          margin: 0 15px 0 0;
          max-width: 60px;
        }
        h4 {
          color: #333;
          font-weight: 500;
          display: block;
          float: none;
          background: none;
          font-size: 14px;
          padding: 5px;
          margin: 0;
          line-height: 10px;
        }
        a{
          text-transform: none;
          display: block;
          font-size: 12px;
          font-style: italic;
          color: #777;
          &:hover{
            color: $link_hover;
          }
        }
        &:last-child{
          border: none;
        }
      }
    }
  }


  .widget_layered_nav {
    a:before {
      color: $primary_color;
    }
    .count {
      display: none;
    }
  }

  /*gallery photo*/
  .wpb_gallery_slides.wpb_flexslider.flexslider_fade.flexslider{
    margin: 1px 0 0 0;
    border: none;
    box-shadow: none;
    float: left;
    height: auto !important;
    position: static;
    display: block;
    overflow: visible;
    width: 100%;
    ul {
      margin-left: -3.5px;
      margin-right: -2.5px;
      margin-top: 3px;
      margin-bottom: 12px;
      li{
        float: left!important;
        width: 33.333%!important;
        margin: 0 !important;
        padding: 3.5px 4.5px;
        opacity: 1 !important;
        display: inline-block;
        img{
          height: auto;
          position: relative;
        }
        &:after{
          display: none;
        }
      }
    }
    .flex-control-nav,
    .flex-direction-nav{
      display: none;
    }
  }
.widget_nav_menu {
  .widget-title {
    margin: 0 0 15px;
  }
  li.current-menu-item > a {
    color: $primary_color;
  }
  ul.sub-menu {
    margin-left: -5px !important;
  }
}
.widget_calendar {
  &.slidingbar-widget-col {
    margin-top: 60px;
  }
  #wp-calendar {
    position: relative;
    caption {
      background-color: $primary_color;
      color: #ffffff;
      font-size: 24px;
      font-weight: 700;
      line-height: 1;
      padding: 18px 0;
      text-align: center;
    }
    thead {
      background-color: $secondary_color;
      color: #ffffff;
      border-left: 1px solid #e5e5e5;
      border-right: 1px solid #e5e5e5;

      th {
        font-weight: 700;
        text-align: center;
        color: #fff;
      }
      tr th:first-child {
        padding-left: 20px;
      }
      tr th:last-child {
        padding-right: 20px;
      }
    }
    tbody {
      border-left: 1px solid #e5e5e5;
      border-right: 1px solid #e5e5e5;
      td {
        font-weight: 300;
        text-align: center;
        padding: 0;
        border-top: none;
        a {
          font-weight: 700;
          color: $primary_color;
          &:hover {
            color: $secondary_color;
          }
        }
      }
      tr td:first-child {
        padding-left: 20px;
      }
      tr td:last-child {
        padding-right: 20px;
      }
      tr:first-child {
        td {
          padding-top: 12px;
        }
      }
      tr:last-child {
        td {
          padding-bottom: 12px;
        }
      }
    }
    tfoot {
      border: medium none;
      float: left;
      width: 100%;
      td {
        padding: 0;
        border: none;
        height: 60px;
        position: absolute;
        top: 0;
        left: 15px;
        &#prev a {
          font-size: 0;
          &:before {
            color: #fff;
            content: "\f104";
            font-family: FontAwesome;
            font-size: 16px;
            line-height: 60px;
          }
        }
        &#next {
          left: inherit;
          right: 15px;
          a {
            font-size: 0;
            &:before {
              color: #fff;
              content: "\f105";
              font-family: FontAwesome;
              font-size: 16px;
              line-height: 60px;
            }
          }
        }
      }
    }
  }
}
.widget_recent_comments {
  ul li{
    a{
      color: rgba(#000,0.6);
      &:hover{
        color: $primary_color;
      }
    }
  }
  .comment-author-link {
  }
}
#sidebar .widget_nav_menu{
 ul ul li{
   &:last-child{
     padding-bottom: 0;
   }
  }
}
.widget_rss {
  .rsswidget {
    display: inline-block;
    color: $primary_color;

  }
  .rss-date {
    font-style: italic;
    display: block;
  }
  .rssSummary {
    padding-top: 12px;
  }
  li {
    border-bottom: 1px solid #ededed;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
}
.widget select option {
  max-width: 300px;
}
.tagcloud{
  padding: 0;
  float: left;
  width: 100%;
  margin-top: 10px;
  a {
    font-size: 14px !important;
    text-transform: capitalize;
    color: #fff;
    padding: 0 28px;
    height: 34px;
    line-height: 34px;
    background: $secondary_color;
    border-radius: 17px;
    float: left;
    display: block;
    margin-bottom: 17px;
    margin-right: 13px;
    border: none;
    text-decoration: none;
  &:hover{
    background: $primary_color !important;
    color: #fff !important;

  }
  }
}
.ft_flickr_widget{
  margin-left:17px;
  margin-top: 12px;
  margin-right: 17px;
  width: auto !important;

  .wg-title{
    padding-left: 3px;
  margin-bottom: 19px !important;
  }
  .flickr_badge_image{
    width: 33.33%;
    padding: 3px;
    float: left;
    margin: 0;
    height: auto;
    img{
      width: 100%;
      height: auto;
      max-height: initial;
    }
  }
}
/*new twitter*/
.template-layout2{
  float: left;
  width: 100%;
  padding: 14px 0;
  i{
    float: left;
    font-size: 24px;
    line-height: 24px;
    color: #fff;
    opacity: 0.5;
    padding: 8px 18px 0 6px;
  }
  .content-right{
    width: calc(80% - 47px);
    float: left;
    font-size: 13px;
    line-height: 18px;
    padding-left: 16px;
    border-left: rgba(#fff,0.5) solid 1px;
    a{
      color: $primary_color;
    }
    .date{
      color: $primary_color;
      width: 100%;
      float: left;
      font-size: 13px;
      margin-top: 5px;
    }
  }
  .link-follow{
    width: auto;
    float: right;
    font-size: 13px;
    line-height: 22px;
    padding: 7px 0;
    padding-left: 18px;
    color: inherit;
    border-left: rgba(#fff,0.5) solid 1px;
  }
}
.wpb_widgetised_column{
  .widget_newsletterwidget{
    text-align: center;
    .title-transperant{
        @extend .ft-molle;
      font-size: 100px;
      line-height: 100px;
      color: $primary_color;
    }
    .tnp-widget{
      .tnp-field{
        margin-bottom: 0;
      }
  }

  }

}
.mix-blend-mode-multiply{
  mix-blend-mode: multiply;
}

.apss-social-share > div{
  width: 100%;
  clear: both;
}
.apss-theme-2{
.apss-facebook .apss-icon-block {
  background-color: #4d77b7;
}
  .apss-twitter .apss-icon-block {
    background-color: #01a4e6;
  }
}
.apss-theme-2 .apss-facebook .apss-social-text,
.apss-theme-2 .apss-twitter .apss-social-text,
.apss-theme-2 .apss-google-plus .apss-social-text{
  border-left: 2px solid #fff;
}
.apss-theme-2 .apss-single-icon{

  a{
    margin: 0 0 10px;
    width: 90%;
    &:hover .fa:before{
      @include transform(rotate(0deg));
    }

  }
  &:last-child a{
    margin-bottom: 0;
  }
  .fa{
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-right:#fff;
    &:before{
      font-size: 16px;
    }
  }
  .apss-social-text{
    line-height: 60px;
    padding: 0 30px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 12px;
    font-family: 'Raleway', sans-serif;
  }
}