jQuery(document).ready(function ($) {
  $(window).scroll(function () {
    if ($(this).scrollTop() > 100) {
      $(".back-to-top a").fadeIn();
    } else {
      $(".back-to-top a").fadeOut();
    }
  });
  $(".back-to-top a").click(function () {
    $("html, body").animate({ scrollTop: 0 }, 800);
    return false;
  });
});

jQuery(document).ready(function($){
    $('.slider-box.owl-carousel').owlCarousel({
        loop: false,
        margin: 15,
        nav: true,
        dots: false,
        autoplay: false,
        autoplayTimeout: 3000,
        autoplayHoverPause: true,

        responsive:{
            0:{
                items:1
            }
        }
    });

    $('.cat-position.owl-carousel').owlCarousel({
        loop: true,
        margin: 15,
        nav: false,
        dots: false,
        autoplay: true,
        autoplayTimeout: 3000,
        autoplayHoverPause: true,
        responsive: {
        0: { 
          items: 1 
        },
        768: { 
          items: 2 
        },
        992: { 
          items: 2 
        },
        1200: { 
          items: 3 
        }
      },
    });

    $('.latest-box.owl-carousel').owlCarousel({
        loop: true,
        margin: 15,
        nav: false,
        dots: false,
        autoplay: true,
        autoplayTimeout: 3000,
        autoplayHoverPause: true,
        responsive: {
        0: { 
          items: 1 
        },
        768: { 
          items: 2 
        },
        992: { 
          items: 2 
        },
        1200: { 
          items: 3 
        }
      },
    });
});