// -----------------------------------------------------------------------------
// This file contains all owl-carousel override styles.
// -----------------------------------------------------------------------------

.slider-fouc {
  display: none;
}

.s-skeleton {
  position: relative;


  &--h-600 {
    min-height: 600px;
  }
  &--h-640 {
    min-height: 640px;
  }

  &--bg-grey {
    background-color: $g-card-bg-color;
  }

  &--bg-black {
    background-color: $g-black;
  }
  .owl-carousel {
    position: static;// All dots or prev/next now relative to s-skeleton
  }
}



// Slider 1
.primary-style-1 {
  .hero-slide {
    height: 600px;
    display: flex;
    align-items: center; // Vertical Center slider-content
    //justify-content: center; // Horizontal center
  }
}

// Slider 2
.primary-style-2 {
  .hero-slide {
    height: 600px;
    display: flex;
    align-items: center; // Vertical Center slider-content
  }
}

// Slider 3
.primary-style-3 {
  .hero-slide {
    height: 640px;
  }
}

.primary-style-3-wrap {
  position: absolute;
  bottom: 120px;
  z-index: 1;
  width: 100%;
}



// Global
.hero-slide {
  // These below styles apply to all sliders
  background: center center/cover no-repeat;// position size repeat

  &--1 {
    background-image: url('../images/slider/slide-1.jpg');
  }
  &--2 {
    background-image: url('../images/slider/slide-2.jpg');
  }
  &--3 {
    background-image: url('../images/slider/slide-3.jpg');
  }

  &--4 {
    background-image: url('../images/slider/slide-4.jpg');
  }

  &--5 {
    background-image: url('../images/slider/slide-5.jpg');
  }

  &--6 {
    background-image: url('../images/slider/slide-6.jpg');
  }

  &--7 {
    background-image: url('../images/slider/slide-7.jpg');
  }
  &--8 {
    background-image: url('../images/slider/slide-8.jpg');
  }
  &--9 {
    background-image: url('../images/slider/slide-9.jpg');
  }

}









// Owl-dots global
.owl-carousel {
  .owl-dots {
    position: absolute;
  }

  //  button
  button.owl-dot {
    &:focus {
      outline:0;
    }
  }
}


// Owl-dots
.owl-carousel.primary-style-1 {
  .owl-dots {
    top: 50%;
    transform: translateY(-50%);
    right:40px;
  }
  //  button
  button.owl-dot {
    width:14px;
    height:14px;
    border-radius: 50%;
    display:block;
    margin-bottom:6px;
    background: #e1e1e1;
    transition: background 0.8s ease-out;
    &:last-child {
      margin-bottom:0;
    }
    &.active,&:hover {
      background: transparent linear-gradient(-180deg, $g-brand-color 0%, lighten($g-brand-color,10%) 100%);
    }
  }
}

// Owl-dots
.owl-carousel.primary-style-2 {
  .owl-dots {
    width:100%;
    text-align:center;
    bottom:20px;
  }
  //  button
  button.owl-dot {
    width:11px;
    height:11px;
    display:inline-block;
    margin-right:4px;
    border-radius:50%;
    background-color: #7f7f7f;
    transition: background 0.8s ease-out;
    &:last-child {
      margin-right:0;
    }
    &.active,&:hover {
      background-color: $g-white;
    }
  }
}


.primary-style-2-container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .primary-style-2-container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .primary-style-2-container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .primary-style-2-container {
    max-width: 960px;
  }
}



// Owl-dots
.owl-carousel.primary-style-3 {
  .owl-dots {
    top: 50%;
    transform: translateY(-50%);
    right:40px;
  }
  //  button
  button.owl-dot {
    width: 5px;
    height: 32px;
    display:block;
    margin-bottom:6px;
    background-color: #f3f3f3;
    transition: background 0.8s ease-out;
    &:last-child {
      margin-bottom:0;
    }
    &.active,&:hover {
      background-color: $g-brand-color;
    }
  }
}

.owl-carousel#testimonial-slider {

  .owl-dots {
    width:100%;
    text-align:center;
    bottom:-30px;
  }

  button.owl-dot {
    width:11px;
    height:11px;
    display:inline-block;
    border: 1px solid $g-brand-secondary-color;
    margin-right:4px;
    border-radius:50%;
    background-color: transparent;
    transition: background 0.8s ease-out;
    &:last-child {
      margin-right:0;
    }
    &.active,&:hover {
      background-color: $g-brand-secondary-color;
    }
  }
}









.content-span-1 {
    font-size: rem(20); // line-height golden ration 20 * 1.5 = 30
    font-weight: 700;
    display: block; // Animation only apply on block elements
  }

.content-span-2 {
    font-weight: 700;
    font-size: rem(52); // line-height golden ration 52 * 1.5 = 78
    display: block;
  }

.content-span-3 {
    display: block;
    font-size: rem(14); // 14 * 1.5 = 21
    margin-bottom: 8px;
  }

.content-span-4 {
  display: block;
  font-weight: 600;
  font-size: rem(14);
  margin-bottom: 20px;
  span {
    font-weight: 700;
    margin-left: 4px;
    font-size: rem(22);
  }
}

.shop-now-link {
    padding: 18px 53px;
    font-size: rem(12);
    position: relative;
    transition: background 0.3s;
    text-align: center;
    border-radius: 6px;
    display: inline-block;
  }







// Animation styles
.owl-item {
  .slider-content--animation * {
    animation-duration: 1s;
    animation-fill-mode: both;
  }

  &.active {
      .content-span-1 {
        animation-delay: 0.5s;
        animation-name: fadeInLeft;
      }

    .content-span-2 {
      animation-delay: 1s;
      animation-name: fadeInLeft;
    }

    .content-span-3 {
      animation-delay: 1.5s;
      animation-name: fadeInLeft;
    }

    .content-span-4 {
      animation-delay: 1.5s;
      animation-name: fadeInLeft;
    }

    .shop-now-link {
      animation-delay: 2s;
      animation-name: fadeInLeft;
    }
  }
}



// Product Slider
.product-slider,.tab-slider {
  position: static;
    .owl-item:hover {
      z-index: 2;
  }
}



/* Products-Slider (Previous & Next Buttons) */
.section__content:hover {
    .p-prev,.t-prev,.p-next,.t-next {
     opacity: 1;
    }
}

// Half Circle 72/2 = 36
// Global
.p-prev,.p-next {
  text-align: center;
  box-shadow: 0 6px 15px 5px rgba(36, 37, 38, 0.08);
  z-index: 1;
  cursor: pointer;
  display: inline-block;
  position: absolute;
  top: 0;
  bottom: 0;
  height: 72px;
  line-height: 72px;
  width: 36px;
  background-color: $g-white;
  margin: auto 0;
  transition: opacity .6s ease-in,background-color .6s ease-in;
  opacity: 0;
 > i {
    font-size: 14px;
    color: $g-brand-secondary-color;
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

}

.p-prev {
  left: 0;
  border-bottom-right-radius: 90px;
  border-top-right-radius: 90px;
 > i {
   left: 6px;
  }
}

.p-next {
  right: 0;
  border-bottom-left-radius: 90px;
  border-top-left-radius: 90px;
  > i {
    right: 6px;
  }
}



// Tab Slider
.t-prev,.t-next {
  text-align: center;
  z-index: 1;
  display: inline-block;
  box-shadow: 0 6px 15px 5px rgba(36, 37, 38, 0.08);
  background-color: $g-white;
  position: absolute; // Makes relative
  top: 0;
  bottom: 0;
  cursor: pointer;
  height: 36px;
  line-height: 36px;
  width: 36px;
  margin: auto 0;
  transition: opacity .6s ease-in;
  opacity: 0;
  > i {
    font-size: 14px;
    color: $g-brand-secondary-color;
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

}

.t-prev {
  left: 0;
  border-bottom-right-radius: 90px;
  border-top-right-radius: 90px;
  > i {
    left: 10px;
  }
}

.t-next {
  right: 0;
  border-bottom-left-radius: 90px;
  border-top-left-radius: 90px;
  > i {
    right: 10px;
  }
}






// Brand Slider
#brand-slider {
  .owl-stage {
    margin: rem(20) 0;
  }
}

// div
.brand-slide {
 width: 155px;
 height: 60px;
 margin: 0 auto;
  a {
    display: block;
    background-color: $g-white;
    transition: all .3s;
    &:hover {
      box-shadow: 2px 3px 8px 0 rgba(0,0,0,0.2);
    }
  }
}



.b-prev,.b-next {
  text-align: center;
  z-index: 1;
  display: inline-block;
  position: absolute; // Makes relative to container
  top: 0;
  cursor: pointer;
  bottom: 0;
  height: 36px;
  line-height: 36px;
  width: 36px;
  box-shadow: 0 6px 15px 5px rgba(36, 37, 38, 0.08);
  background-color: $g-white;
  margin: auto 0;
  transition: opacity .6s ease-in;
  opacity: 0;
  > i {
    font-size: 14px;
    color: $g-brand-secondary-color;
  }

}

.b-prev {
  left: 0;
}

.b-next {
  right: 0;
}

/* Brand-Slider (Previous & Next Buttons) */
.section__content:hover {
  .b-prev,.b-next {
    opacity: 1;
  }
}




