
// --------------------------------------------------------------------------------------------
// OWL CAROUSEL 2.0
// --------------------------------------------------------------------------------------------

// ------------------------------------------
// Owl Carousel - Core
// ------------------------------------------

.owl-carousel {
  display: none;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
//   position relative and z-index fix webkit rendering fonts issue
  position: relative;
  z-index: 1;

  .owl-stage {
    position: relative;
    -ms-touch-action: pan-Y;
  }

  .owl-stage:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
  }

  .owl-stage-outer {
    position: relative;
    overflow: hidden;
    clear: both; //owl-carousel after full-width row fix (Basel 2.11.0)
    // fix for flashing background
    -webkit-transform: translate3d(0px, 0px, 0px);
  }

  .owl-wrapper,
  .owl-item{
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -webkit-transform: translate3d(0,0,0);
    -ms-transform: translate3d(0,0,0);
  }

  .owl-item {
    position: relative;
    min-height: 1px;
    float: left;
    -webkit-backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }

//   div.owl-item {
    
//     img {
//       width:auto;
//       display: inline;
//     }
//   }
  // .owl-item img {
  //   display: block;
  //   width: 100%;
  // }

  .owl-nav.disabled,
  .owl-dots.disabled {
    display: none;
  }

  .owl-nav .owl-prev,
  .owl-nav .owl-next,
  .owl-dot {
    cursor: pointer;
    cursor: hand;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  &.owl-loaded {
    display: block;
  }

  &.owl-loading {
    opacity: 0;
    display: block;
  }

  &.owl-hidden {
    opacity: 0;
  }

  &.owl-refresh .owl-item {
    visibility: hidden;
  }

  &.owl-drag .owl-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  &.owl-grab {
    cursor: move;
    cursor: grab;
  }

  &.owl-rtl {
    direction: rtl;
  }

  &.owl-rtl .owl-item {
    float: right;
  }
}

// ------------------------------------------
// No Js
// ------------------------------------------

.no-js .owl-carousel {
  display: block;
}

// ------------------------------------------
// Owl Carousel - Animate Plugin
// ------------------------------------------

 .owl-carousel {

    .owl-item {
  
      &.animated {
        animation-duration: 600ms;
        animation-fill-mode: both;  
      } 
  
      &.fadeOut {
        animation-name: fade-out;
      }
    }
  
    .owl-animated-in {
      z-index: 0;
    }
  
    .owl-animated-out {
      z-index: 1;
    }
  }

// ------------------------------------------
// Owl Carousel - Auto Height Plugin
// ------------------------------------------

.owl-height {
  transition: height 500ms ease-in-out;
}

// ------------------------------------------
// Owl Carousel - Lazy Load Plugin
// ------------------------------------------

.owl-carousel {
  .owl-item {
    .owl-lazy {
        opacity: 0;
        transition: opacity 400ms ease;
    }

    img.owl-lazy {
      transform-style: preserve-3d;
    }
  }
}

// ------------------------------------------
// Owl Carousel - Video Plugin
// ------------------------------------------

.owl-carousel{
  .owl-video-wrapper {
    position: relative;
    height: 100%;
    background: #000;
  }

  .owl-video-play-icon {
    position: absolute;
    height: 80px;
    width: 80px;
    left: 50%;
    top: 50%;
    margin-left: -40px;
    margin-top: -40px;
    background: url("owl.video.play.png") no-repeat;
    cursor: pointer;
    z-index: 1;
    -webkit-backface-visibility: hidden;
    transition: transform 100ms ease;
  }

  .owl-video-play-icon:hover {
    transform: scale(1.3, 1.3);
  }

  .owl-video-playing .owl-video-tn,
  .owl-video-playing .owl-video-play-icon {
    display: none;
  }

  .owl-video-tn {
    opacity: 0;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: opacity 400ms ease;
  }

  .owl-video-frame {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
  }
}

// --------------------------------------------------------------------------------------------
// CUSTOM STYLES
// --------------------------------------------------------------------------------------------

// ------------------------------------------
// Elements sliders
// ------------------------------------------

.items-with-space,
.teaser_grid_container,
.vc_carousel_container {
    margin-left:0 -$slides_space/2;
    margin-right:0 -$slides_space/2;

    .isotope-inner,
    .owl-carousel-item-inner {
        padding-right:$slides_space/2;
        padding-left:$slides_space/2;
    }
}

.teaser_grid_container {
    .categories_filter {
        margin: 0 $slides_space/2 10px;
    }
}

.isotope-item,
.owl-carousel-item {

    .post-thumb {
        margin-bottom: 15px;
    }

    .post-title {
        margin-bottom: 15px;
    }

    .entry-content {
        line-height: 1.7;
        margin-bottom: 15px;

        p {
            margin-bottom: 0;
        }
    }
}

// ------------------------------------------
// SPACE PRODUCT AND CATEGORY IN OWL
// ------------------------------------------

.owl-carousel {
  
    .category-grid-item,
    .product-grid-item {
        margin-bottom:10px;
    }

    &.basel-hover-info {
      margin-bottom:10px;
    }
}

// ------------------------------------------
// Styling Next and Prev buttons
// ------------------------------------------

.owl-carousel {

    &:hover {

        .owl-nav {
            
            > div {
                opacity: 1;
            }
        
            .owl-prev {
                left:-47px;
            }
    
            .owl-next {
                right:-47px;
            }
        }
    }
}

.owl-nav {

    > div {
        position: absolute;
        top:50%;
        color: black;
        display: inline-block;
        text-align: center;
        cursor: pointer;
        zoom: 1;
        opacity: 0;
        *display: inline; 
        // IE7 life-saver
        margin: 0;
        z-index: 2;
        filter: Alpha(Opacity=0);
        // IE7 fix
        transform:translateY(-50%);
        -o-transform:translateY(-50%);
        -webkit-transform:translateY(-50%);
        -moz-transform:translateY(-50%);
        -sand-transform:translateY(-50%);
        -ms-transform:translateY(-50%);
    
        -o-transition:all 0.25s ease;
        -moz-transition:all 0.25s ease;
        -webkit-transition:all 0.25s ease;
        transition:all 0.25s ease;

        &.disabled {
            color: rgba(0,0,0,.3);
            cursor: default;
        }

        &:hover:not(.disabled) {
            color: rgba(0,0,0,.6);
        }

        &:before {
            display: block;
            content:"\e605";
            font-family: 'simple-line-icons';
            width:55px;
            font-size:36px;
            height:55px;
            line-height:55px;      
        }
    }

    .owl-prev {
        left: -20px;
        padding-left: 0;
    }

    .owl-next {
        left: auto;
        right: -20px;
        padding-right: 0; 

        &:before {
            content: "\e606";
        }     
    }

    .color-scheme-light &,
    .pagin-color-light & {

        > div {
            color: rgba(255, 255, 255, 0.8);
    
            &.disabled {
                color: rgba(255, 255, 255, 0.6);
            }
    
            &:hover:not(.disabled) {
                color: rgba(255, 255, 255, 1);
            }
        }
    }
}

.owl-dots {
    text-align: center;

    .owl-dot {
        display: inline-block;
        margin-top: 10px;
        zoom: 1;
        *display: inline; 
        // IE7 life-saver

        span {
            display: block;
            width: 10px;
            height: 10px;
            margin: 5px 7px;
            background: #cccccc;
            border-radius: 20px;
        }

        &.active,
        &:hover {
            span {
                background-color: #1F1F1F;
            }
        }
    }

    .color-scheme-light &,
    .pagin-color-light & {

        > div {
    
            & span {
                background-color: rgba(255, 255, 255, 0.6);
            }
    
            &.active span,
            &:hover span {
                background-color: rgba(255, 255, 255, 1);
            }
        }
    }
}

// ------------------------------------------
// COLOR-SCHEME LIGHT ON BOXED WRAP
// ------------------------------------------

.color-scheme-light {

    .wrapper-boxed & {

        .owl-nav {

            > div {
                color: rgba(0, 0, 0, 1);

                &.disabled {
                    color: rgba(0, 0, 0, 0.3);
                }
  
                &:hover:not(.disabled) {
                    color: rgba(0, 0, 0, 0.6);
                }
            }
        }
    }
}

// ------------------------------------------
// INFO BOX CAROUSEL
// ------------------------------------------

@each $space in 0, 2, 6, 10, 20, 30 {

  .info-box-spacing-#{$space} {
    margin-left:-#{$space / 2}px;
    margin-right:-#{$space / 2}px;
      
      .owl-item,
      .owl-carousel:not(.owl-loaded) > div {
        padding-left:#{$space / 2}px;
        padding-right:#{$space / 2}px;
      }
    }
}

.info-box-carousel-wrapper {
    
    .basel-info-box, 
    .basel-info-box2 {
        margin-bottom: 20px;
    }
}