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

    /*
     * Customers Also Viewed
     */

    if ($('.customersAlsoViewedList li').length) {

        $('.customersAlsoViewedList').slick({
            dots: false,
            infinite: true,
            arrows: true,
            autoplay: false,
            slidesToShow: 4,
            slidesToScroll: 4,
            appendArrows: '.customersAlsoViewedWrap .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
