/* Template Name: Rokon - Single Product eCommerce HTML Template Author Name: Hook theme Author URL: https://themeforest.net/user/hooktheme Version: 1.0.0 */ "use strict"; // Preloader const preLoader = function () { let preloaderWrapper = document.getElementById("preloader"); window.onload = () => { preloaderWrapper.classList.add("loaded"); }; }; preLoader(); // getSiblings var getSiblings = function (elem) { const siblings = []; let sibling = elem.parentNode.firstChild; while (sibling) { if (sibling.nodeType === 1 && sibling !== elem) { siblings.push(sibling); } sibling = sibling.nextSibling; } return siblings; }; /* Slide Up */ var slideUp = (target, time) => { const duration = time ? time : 500; target.style.transitionProperty = "height, margin, padding"; target.style.transitionDuration = duration + "ms"; target.style.boxSizing = "border-box"; target.style.height = target.offsetHeight + "px"; target.offsetHeight; target.style.overflow = "hidden"; target.style.height = 0; window.setTimeout(() => { target.style.display = "none"; target.style.removeProperty("height"); target.style.removeProperty("overflow"); target.style.removeProperty("transition-duration"); target.style.removeProperty("transition-property"); }, duration); }; /* Slide Down */ var slideDown = (target, time) => { const duration = time ? time : 500; target.style.removeProperty("display"); let display = window.getComputedStyle(target).display; if (display === "none") display = "block"; target.style.display = display; const height = target.offsetHeight; target.style.overflow = "hidden"; target.style.height = 0; target.offsetHeight; target.style.boxSizing = "border-box"; target.style.transitionProperty = "height, margin, padding"; target.style.transitionDuration = duration + "ms"; target.style.height = height + "px"; window.setTimeout(() => { target.style.removeProperty("height"); target.style.removeProperty("overflow"); target.style.removeProperty("transition-duration"); target.style.removeProperty("transition-property"); }, duration); }; // Get window top offset function TopOffset(el) { let rect = el.getBoundingClientRect(), scrollTop = window.pageYOffset || document.documentElement.scrollTop; return { top: rect.top + scrollTop }; } // Header sticky activation const headerStickyWrapper = document.querySelector("header"); const headerStickyTarget = document.querySelector(".header__sticky"); if (headerStickyTarget) { let headerHeight = headerStickyWrapper.clientHeight; window.addEventListener("scroll", function () { let StickyTargetElement = TopOffset(headerStickyWrapper); let TargetElementTopOffset = StickyTargetElement.top; if (window.scrollY > TargetElementTopOffset) { headerStickyTarget.classList.add("sticky"); } else { headerStickyTarget.classList.remove("sticky"); } }); } // Back to top const scrollTop = document.getElementById("scroll__top"); if (scrollTop) { scrollTop.addEventListener("click", function () { window.scroll({ top: 0, left: 0, behavior: "smooth" }); }); window.addEventListener("scroll", function () { if (window.scrollY > 300) { scrollTop.classList.add("active"); } else { scrollTop.classList.remove("active"); } }); } // slider swiper activation var swiper = new Swiper(".hero__slider--activation", { slidesPerView: 1, loop: true, clickable: true, speed: 500, spaceBetween: 30, autoplay: { delay: 3000, disableOnInteraction: false, }, pagination: { el: ".hero__slider--inner .swiper-pagination", clickable: true, }, }); // tab activation const tab = function (wrapper) { let tabContainer = document.querySelector(wrapper); if (tabContainer) { tabContainer.addEventListener("click", function (evt) { let listItem = evt.target; if (listItem.hasAttribute("data-toggle")) { let targetId = listItem.dataset.target, targetItem = document.querySelector(targetId); listItem.parentElement .querySelectorAll('[data-toggle="tab"]') .forEach(function (list) { list.classList.remove("active"); }); listItem.classList.add("active"); targetItem.classList.add("active"); setTimeout(function () { targetItem.classList.add("show"); }, 150); getSiblings(targetItem).forEach(function (pane) { pane.classList.remove("show"); setTimeout(function () { pane.classList.remove("active"); }, 150); }); } }); } }; // Homepage 1 product tab tab(".project__tab--one"); // product details media swiper activation var swiperSmallProduct1 = new Swiper(".product-nav1", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig1 = new Swiper(".product__media--preview1", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct1, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--1"); // product details media swiper activation var swiperSmallProduct2 = new Swiper(".product-nav2", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig2 = new Swiper(".product__media--preview2", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct2, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--2"); // product details media swiper activation var swiperSmallProduct3 = new Swiper(".product-nav3", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig3 = new Swiper(".product__media--preview3", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct3, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--3"); // product details media swiper activation var swiperSmallProduct4 = new Swiper(".product-nav4", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig4 = new Swiper(".product__media--preview4", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct4, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--4"); // product details media swiper activation var swiperSmallProduct5 = new Swiper(".product-nav5", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig5 = new Swiper(".product__media--preview5", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct5, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--5"); // product details media swiper activation var swiperSmallProduct6 = new Swiper(".product-nav6", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig6 = new Swiper(".product__media--preview6", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct6, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--6"); // product details media swiper activation var swiperSmallProduct7 = new Swiper(".product-nav7", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig7 = new Swiper(".product__media--preview7", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct7, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--7"); // product details media swiper activation var swiperSmallProduct8 = new Swiper(".product-nav8", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig8 = new Swiper(".product__media--preview8", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct8, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--8"); // product details media swiper activation var swiperSmallProduct9 = new Swiper(".product-nav9", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig9 = new Swiper(".product__media--preview9", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct9, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--9"); // product details media swiper activation var swiperSmallProduct10 = new Swiper(".product-nav10", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig10 = new Swiper(".product__media--preview10", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct10, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--10"); // product details media swiper activation var swiperSmallProduct11 = new Swiper(".product-nav11", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig11 = new Swiper(".product__media--preview11", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct11, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--11"); // product details media swiper activation var swiperSmallProduct12 = new Swiper(".product-nav12", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig12 = new Swiper(".product__media--preview12", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct12, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--12"); // product details media swiper activation var swiperSmallProduct13 = new Swiper(".product-nav13", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig13 = new Swiper(".product__media--preview13", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct13, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--13"); // product details media swiper activation var swiperSmallProduct14 = new Swiper(".product-nav14", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig14 = new Swiper(".product__media--preview14", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct14, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--14"); // product details media swiper activation var swiperSmallProduct15 = new Swiper(".product-nav15", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig15 = new Swiper(".product__media--preview15", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct15, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--15"); // product details media swiper activation var swiperSmallProduct16 = new Swiper(".product-nav16", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig16 = new Swiper(".product__media--preview16", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct16, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--16"); // product details media swiper activation var swiperSmallProduct17 = new Swiper(".product-nav17", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig17 = new Swiper(".product__media--preview17", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct17, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--17"); // product details media swiper activation var swiperSmallProduct18 = new Swiper(".product-nav18", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig18 = new Swiper(".product__media--preview18", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct18, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--18"); // product details media swiper activation var swiperSmallProduct19 = new Swiper(".product-nav19", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig19 = new Swiper(".product__media--preview19", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct19, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--19"); // product details media swiper activation var swiperSmallProduct20 = new Swiper(".product-nav20", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig20 = new Swiper(".product__media--preview20", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct20, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--20"); // product details media swiper activation var swiperSmallProduct21 = new Swiper(".product-nav21", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig21 = new Swiper(".product__media--preview21", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct21, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--21"); // product details media swiper activation var swiperSmallProduct22 = new Swiper(".product-nav22", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig22 = new Swiper(".product__media--preview22", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct22, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--22"); // product details media swiper activation var swiperSmallProduct23 = new Swiper(".product-nav23", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig23 = new Swiper(".product__media--preview23", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct23, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--23"); // product details media swiper activation var swiperSmallProduct24 = new Swiper(".product-nav24", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig24 = new Swiper(".product__media--preview24", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct24, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--24"); // product details media swiper activation var swiperSmallProduct25 = new Swiper(".product-nav25", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig25 = new Swiper(".product__media--preview25", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct25, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--25"); // product details media swiper activation var swiperSmallProduct26 = new Swiper(".product-nav26", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig26 = new Swiper(".product__media--preview26", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct26, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--26"); // product details media swiper activation var swiperSmallProduct27 = new Swiper(".product-nav27", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig27 = new Swiper(".product__media--preview27", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct27, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--27"); // product details media swiper activation var swiperSmallProduct28 = new Swiper(".product-nav28", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig28 = new Swiper(".product__media--preview28", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct28, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--28"); // product details media swiper activation var swiperSmallProduct29 = new Swiper(".product-nav29", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig29 = new Swiper(".product__media--preview29", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct29, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--29"); // product details media swiper activation var swiperSmallProduct30 = new Swiper(".product-nav30", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig30 = new Swiper(".product__media--preview30", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct30, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--30"); // product details media swiper activation var swiperSmallProduct31 = new Swiper(".product-nav31", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 4, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 4, }, 0: { slidesPerView: 1, }, }, }); var productBig31 = new Swiper(".product__media--preview31", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct31, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); tab(".product__tab--31"); /* // product details media swiper activation var swiperSmallProduct = new Swiper(".product__media--nav2", { loop: true, spaceBetween: 20, slidesPerView: 4, direction: "vertical", freeMode: true, watchSlidesProgress: true, autoHeight: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 5, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 3, }, 0: { slidesPerView: 1, }, }, }); var productBig = new Swiper(".product__media--preview2", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); */ // product details media horizontal style activation var swiperSmallProduct2 = new Swiper(".product__media--nav__horizontal", { loop: true, spaceBetween: 20, slidesPerView: 4, freeMode: true, watchSlidesProgress: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 5, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 3, }, 0: { slidesPerView: 1, }, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); var productBig = new Swiper(".product__media--preview__horizontal", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct2, }, }); // product details media horizontal two style activation var swiperSmallProduct2 = new Swiper(".product__media--nav__horizontal--two", { loop: true, spaceBetween: 20, slidesPerView: 4, freeMode: true, watchSlidesProgress: true, breakpoints: { 768: { slidesPerView: 4, }, 576: { slidesPerView: 5, }, 480: { slidesPerView: 4, }, 200: { slidesPerView: 3, }, 0: { slidesPerView: 1, }, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); var productBig = new Swiper(".product__media--preview__horizontal--two", { loop: true, spaceBetween: 10, thumbs: { swiper: swiperSmallProduct2, }, }); // blog swiper column3 activation var swiper = new Swiper(".blog__swiper--activation", { slidesPerView: 3, loop: true, clickable: true, spaceBetween: 30, breakpoints: { 1200: { slidesPerView: 3, }, 992: { slidesPerView: 3, }, 768: { slidesPerView: 2, spaceBetween: 30, }, 480: { slidesPerView: 2, spaceBetween: 20, }, 0: { slidesPerView: 1, }, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); // blog swiper column4 activation var swiper = new Swiper(".blog__swiper--column4", { slidesPerView: 3, loop: true, clickable: true, spaceBetween: 30, breakpoints: { 1366: { slidesPerView: 4, }, 1200: { slidesPerView: 3, }, 992: { slidesPerView: 3, }, 768: { slidesPerView: 2, spaceBetween: 30, }, 480: { slidesPerView: 2, spaceBetween: 20, }, 0: { slidesPerView: 1, }, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); // product swiper activation var swiper = new Swiper(".product__swiper--column1", { slidesPerView: 1, loop: true, clickable: true, spaceBetween: 30, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); // testimonial swiper activation var swiper = new Swiper(".testimonial__swiper--activation", { slidesPerView: 3, loop: true, clickable: true, spaceBetween: 30, breakpoints: { 1200: { slidesPerView: 3, }, 992: { slidesPerView: 3, }, 768: { slidesPerView: 2, spaceBetween: 30, }, 480: { slidesPerView: 2, spaceBetween: 20, }, 0: { slidesPerView: 1, }, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); // instagram swiper activation var swiper = new Swiper(".instagram__swiper--activation", { slidesPerView: 7, loop: true, clickable: true, spaceBetween: 30, breakpoints: { 1366: { slidesPerView: 7, }, 1200: { slidesPerView: 6, }, 992: { slidesPerView: 5, }, 768: { slidesPerView: 4, spaceBetween: 30, }, 576: { slidesPerView: 3, spaceBetween: 20, }, 0: { slidesPerView: 2, }, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, }); // quickview swiper activation var swiper = new Swiper(".quickview__swiper--activation", { slidesPerView: 1, loop: true, clickable: true, spaceBetween: 30, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, pagination: { el: ".swiper-pagination", clickable: true, }, }); // countdown activation document.querySelectorAll("[data-countdown]").forEach(function (elem) { const countDownItem = function (value, label) { return `
${label}