$(document).ready(function () {
    'use strict';

    /*
     * Recently Viewed
     */
    if ($('.recentlyViewedList').length) {

        $('.recentlyViewedList').slick({
            dots: false,
            infinite: true,
            arrows: true,
            autoplay: false,
            slidesToShow: 4,
            slidesToScroll: 4,
            appendArrows: '.recentlyViewedWrap .itemDisplayTitle span',
            responsive: [{
                breakpoint: (window.breakpoints.tablet + 20),
                settings: {
                    slidesToShow: 3,
                    slidesToScroll: 3
                }
            }, {
                breakpoint: (window.breakpoints.mobile + 1),
                settings: {
                    slidesToShow: 2,
                    slidesToScroll: 2,
                    arrows: false
                }
            }]
        });
    }

}); // document ready
