// HEADER SLIDER
var swiper = new Swiper(".mySwiper", {
  slidesPerView : 1,
  spaceBetween : 20 ,
  autoplay: {
    delay: 2500,
    disableOnInteraction: false,
  },
  speed: 1500,
  loop : true,
  navigation: {
    nextEl: ".button-next",
    prevEl: ".button-prev",
  },
});


// Latest Products 
var swiper = new Swiper(".LatestProducts", {
  slidesPerView: 1,
  spaceBetween: 30,
  breakpoints: {
    350: {
      slidesPerView: 2,
      spaceBetween: 10,
    },
    640: {
      slidesPerView: 3,
      spaceBetween: 20,
    },
    768: {
      slidesPerView: 3,
      spaceBetween: 40,
    },
    1024: {
      slidesPerView: 4,
      spaceBetween: 20,
    },
    1200: {
      slidesPerView: 4,
      spaceBetween: 10
    },
    1260: {
      slidesPerView: 5,
      spaceBetween : 20
    }
  },
  loop: true,
  autoplay: {
    delay: 2000,
    disableOnInteraction: false,
  },
  speed: 1000,
  navigation: {
    nextEl: ".next-slide",
    prevEl: ".prev-slide",
  },
});

// Best-selling SLIDER
var swiper = new Swiper(".BestSelling", {
  slidesPerView: 1,
  spaceBetween: 30,
  breakpoints: {
    350: {
      slidesPerView: 2,
      spaceBetween: 10,
    },
    640: {
      slidesPerView: 3,
      spaceBetween: 20,
    },
    768: {
      slidesPerView: 3,
      spaceBetween: 40,
    },
    1024: {
      slidesPerView: 4,
      spaceBetween: 20,
    },
    1200: {
      slidesPerView: 4,
      spaceBetween: 10
    },
    1260: {
      slidesPerView: 5,
      spaceBetween : 20
    }
  },
  loop: true,
  autoplay: {
    delay: 1500,
    disableOnInteraction: false,
  },
  speed: 1000,
  navigation: {
    nextEl: ".next-slide-best",
    prevEl: ".prev-slide-best",
  },
});


var swiper = new Swiper(".porduct-details-slider", {
  spaceBetween: 20,
  pagination: {
    el: ".swiper-pagination",
  },
});


// Article SLIDER
var swiper = new Swiper(".Article", {
  loop: true,
  navigation: {
      nextEl: '.swiper-button-next-custom',
      prevEl: '.swiper-button-prev-custom',
  },
  breakpoints: {
      340: {
          slidesPerView: 1,
          spaceBetween: 14,
      },
      640: {
          slidesPerView: 1,
          spaceBetween: 14,
      },
      768: {
          slidesPerView: 1,
          spaceBetween: 20,
      },
      1024: {
          slidesPerView: 2,
          spaceBetween: 0,
      },
  },
});

// Offers
var swiper = new Swiper(".Offer", {
  slidesPerView: 1,
  spaceBetween: 30,
  breakpoints: {
    350: {
      slidesPerView: 2,
      spaceBetween: 10,
    },
    640: {
      slidesPerView: 3,
      spaceBetween: 20,
    },
    768: {
      slidesPerView: 3,
      spaceBetween: 40,
    },
    1024: {
      slidesPerView: 4,
      spaceBetween: 20,
    },
    1200: {
      slidesPerView: 4,
      spaceBetween: 10
    },
    1260: {
      slidesPerView: 5,
      spaceBetween : 20
    }
  },
  loop: true,
  autoplay: {
    delay: 2000,
    disableOnInteraction: false,
  },
  speed: 1000,
  navigation: {
    nextEl: ".next-slide",
    prevEl: ".prev-slide",
  },
});

// Popular
var swiper = new Swiper(".Popular", {
  slidesPerView: 1,
  spaceBetween: 30,
  breakpoints: {
    350: {
      slidesPerView: 2,
      spaceBetween: 10,
    },
    640: {
      slidesPerView: 3,
      spaceBetween: 20,
    },
    768: {
      slidesPerView: 3,
      spaceBetween: 40,
    },
    1024: {
      slidesPerView: 4,
      spaceBetween: 20,
    },
    1200: {
      slidesPerView: 4,
      spaceBetween: 10
    },
    1260: {
      slidesPerView: 5,
      spaceBetween : 20
    }
  },
  loop: true,
  autoplay: {
    delay: 2100,
    disableOnInteraction: false,
  },
  speed: 1100,
  navigation: {
    nextEl: ".next-slide",
    prevEl: ".prev-slide",
  },
});
