HOME BANNER

<style>
/* ===== MAIN BANNER ===== */
#c2k-banner {
position: fixed;
left: 50%;
bottom: 5vh;
transform: translateX(-50%);
width: 75vw;
height: 75vh;
z-index: 99999;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ===== SLIDES ===== */
.c2k-slide {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
opacity: 0;
pointer-events: none;
transition: opacity 1s ease;
}

.c2k-slide.active {
opacity: 1;
pointer-events: auto;
cursor: pointer;
}

/* ===== CLOSE BUTTON ===== */
#c2k-close {
position: absolute;
top: 16px;
right: 16px;
z-index: 3;
background: #fff;
border: none;
width: 40px;
height: 40px;
font-size: 26px;
border-radius: 50%;
cursor: pointer;
}

/* ===== COLLAPSED CTA ===== */
#c2k-mini {
position: fixed;
top: 50%;
left: 0;
transform: translateY(-50%);
background: #eb8113;
color: #fff;
font-weight: 700;
padding: 16px 18px;
border-radius: 0 12px 12px 0;
cursor: pointer;
z-index: 99999;
display: none;
}

/* ===== DESKTOP IMAGES ===== */
@media (min-width: 769px) {
.slide-1 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/9c3cf993-5896-4448-94c8-45ab1170b124-high.jpg?enable-io=true&width=1920");
}
.slide-2 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/happy-lunar-vn-high-hu87ze.png?enable-io=true&crop=1.294%3A1&width=1252");
}
.slide-3 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/9c3cf993-5896-4448-94c8-45ab1170b124-high.jpg?enable-io=true&width=1920");
}
.slide-4 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/happy-lunar-en-high-eps50r.png?enable-io=true&crop=1.3356%3A1%2Coffset-y100&width=1252");
}
}

/* ===== MOBILE IMAGES ===== */
@media (max-width: 768px) {
#c2k-banner {
width: 90vw;
height: 70vh;
}
.slide-1 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/gemini_generated_image_732u39732u39732u-high.png?enable-io=true&width=816");
}
.slide-2 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/gemini_generated_image_8vilry8vilry8vil-high.png?enable-io=true&width=816");
}
.slide-3 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/happy-lunar-mobile-high.png?enable-io=true&crop=0.7762%3A1&width=532");
}
.slide-4 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/gemini_generated_image_mpg95qmpg95qmpg9-high.png?enable-io=true&width=816");
}

}
</style>

<div id="c2k-banner">
<button id="c2k-close">×</button>

<div class="c2k-slide slide-1 active"></div>
<div class="c2k-slide slide-2"></div>
<div class="c2k-slide slide-3"></div>
<div class="c2k-slide slide-4"></div>
</div>

<div id="c2k-mini">TET SAVINGS from FEB 1 to 28</div>

<script>
document.addEventListener("DOMContentLoaded", () => {
const banner = document.getElementById("c2k-banner");
const closeBtn = document.getElementById("c2k-close");
const miniCTA = document.getElementById("c2k-mini");
const slides = document.querySelectorAll(".c2k-slide");

const isMobile = window.matchMedia("(max-width: 768px)").matches;

/* ===== DESKTOP RANDOM LINK (ONCE) ===== */
const desktopLinks = [
"https://www.c2khealthandbeauty.com/product/20889167/c2k-nad-60-capsules-vien",
"https://www.c2khealthandbeauty.com/product/20888618/c2k-fuicoidan-60-capsules-vien"
];
const desktopRandom =
desktopLinks[Math.floor(Math.random() * desktopLinks.length)];

/* ===== CLICK HANDLING (ACTIVE SLIDE ONLY) ===== */
banner.addEventListener("click", e => {
const activeSlide = document.querySelector(".c2k-slide.active");
if (!activeSlide) return;

if (isMobile) {
if (activeSlide.classList.contains("slide-1")) {
window.open(
"https://www.c2khealthandbeauty.com/product/20889167/c2k-nad-60-capsules-vien",
"_blank"
);
} else {
window.open(
"https://www.c2khealthandbeauty.com/product/20888618/c2k-fuicoidan-60-capsules-vien",
"_blank"
);
}
} else {
if (activeSlide.classList.contains("slide-1")) {
window.open(desktopRandom, "_blank");
}
}
});

/* ===== SLIDE ROTATION ===== */
let index = 0;
setInterval(() => {
slides[index].classList.remove("active");
index = (index + 1) % slides.length;
slides[index].classList.add("active");
}, 5000);

/* ===== CLOSE / REOPEN ===== */
closeBtn.onclick = e => {
e.stopPropagation();
banner.style.display = "none";
miniCTA.style.display = "block";
};

miniCTA.onclick = () => {
banner.style.display = "block";
miniCTA.style.display = "none";
};
});
</script>

VNMESE - BANNER

<style>
/* ===== MAIN BANNER ===== */
#c2k-banner {
position: fixed;
left: 50%;
bottom: 5vh;
transform: translateX(-50%);
width: 75vw;
height: 75vh;
z-index: 99999;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ===== SLIDES ===== */
.c2k-slide {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.6s ease;
}

.c2k-slide.active {
opacity: 1;
pointer-events: auto;
cursor: pointer;
}

/* ===== CLOSE BUTTON ===== */
#c2k-close {
position: absolute;
top: 16px;
right: 16px;
z-index: 3;
background: #fff;
border: none;
width: 40px;
height: 40px;
font-size: 26px;
border-radius: 50%;
cursor: pointer;
}

/* ===== COLLAPSED CTA ===== */
#c2k-mini {
position: fixed;
top: 25%;
left: 0;
transform: translateY(-50%);
background: #eb8113;
color: #fff;
font-weight: 700;
padding: 16px 18px;
border-radius: 0 12px 12px 0;
cursor: pointer;
z-index: 99999;
display: none;
}

/* ===== DESKTOP IMAGES ===== */
@media (min-width: 768px) {
.slide-1 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/7706db99-137c-482e-9451-81513ab8ea4b-high.jpg?enable-io=true&width=1920");
}
.slide-2 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/happy-lunar-vn-high-hu87ze.png?enable-io=true&crop=1.294%3A1&width=1252");
}
.slide-3 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/7706db99-137c-482e-9451-81513ab8ea4b-high.jpg?enable-io=true&width=1920");
}
.slide-4 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/corda-high.png?enable-io=true&crop=1.3015%3A1%2Coffset-y83&width=816");
}
}

/* ===== MOBILE IMAGES ===== */
@media (max-width: 768px) {
#c2k-banner {
width: 90vw;
height: 70vh;
}
.slide-1 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/gemini_generated_image_732u39732u39732u-high.png?enable-io=true&width=816");
}
.slide-2 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/gemini_generated_image_8vilry8vilry8vil-high.png?enable-io=true&width=816");
}
.slide-3 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/gemini_generated_image_z6s4rlz6s4rlz6s4-high.png?enable-io=true&width=816");
}
.slide-4 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/corda-high.png?enable-io=true&crop=1.3015%3A1%2Coffset-y83&width=816");
}
}
</style>

<div id="c2k-banner">
<button id="c2k-close">×</button>

<div class="c2k-slide slide-1 active"></div>
<div class="c2k-slide slide-2"></div>
<div class="c2k-slide slide-3"></div>
<div class="c2k-slide slide-4"></div>
</div>

<div id="c2k-mini">KHUYẾN MÃI ĐẶC BIỆT từ 1-28/2</div>

<script>
document.addEventListener("DOMContentLoaded", () => {
const banner = document.getElementById("c2k-banner");
const closeBtn = document.getElementById("c2k-close");
const miniCTA = document.getElementById("c2k-mini");
const slides = document.querySelectorAll(".c2k-slide");

const isMobile = window.matchMedia("(max-width: 768px)").matches;

/* ===== DESKTOP RANDOM LINK (ONCE) ===== */
const desktopLinks = [
"https://www.c2khealthandbeauty.com/product/20889167/c2k-nad-60-capsules-vien",
"https://www.c2khealthandbeauty.com/product/20888618/c2k-fuicoidan-60-capsules-vien"
];
const desktopRandom =
desktopLinks[Math.floor(Math.random() * desktopLinks.length)];

const slide4Link =
"https://www.c2khealthandbeauty.com/product/21953721/thien-trieu-bird-s-nest-drink-nuoc-yen-sao-thien-trieu";

/* ===== CLICK HANDLING (ACTIVE SLIDE ONLY) ===== */
banner.addEventListener("click", e => {
const activeSlide = document.querySelector(".c2k-slide.active");
if (!activeSlide) return;

/* FORCE SLIDE 4 TO SPECIAL URL */
if (activeSlide.classList.contains("slide-4")) {
window.open(slide4Link, "_blank");
return;
}

if (isMobile) {
if (activeSlide.classList.contains("slide-1")) {
window.open(
"https://www.c2khealthandbeauty.com/product/20889167/c2k-nad-60-capsules-vien",
"_blank"
);
} else {
window.open(
"https://www.c2khealthandbeauty.com/product/20888618/c2k-fuicoidan-60-capsules-vien",
"_blank"
);
}
} else {
if (activeSlide.classList.contains("slide-1")) {
window.open(desktopRandom, "_blank");
}
}
});

/* ===== SLIDE ROTATION ===== */
let index = 0;
setInterval(() => {
slides[index].classList.remove("active");
index = (index + 1) % slides.length;
slides[index].classList.add("active");
}, 5000);

/* ===== CLOSE / REOPEN ===== */
closeBtn.onclick = e => {
e.stopPropagation();
banner.style.display = "none";
miniCTA.style.display = "block";
};

miniCTA.onclick = () => {
banner.style.display = "block";
miniCTA.style.display = "none";
};
});
</script>

ENGLISH - BANNER

<style>
/* ===== MAIN BANNER ===== */
#c2k-banner {
position: fixed;
left: 50%;
bottom: 5vh;
transform: translateX(-50%);
width: 75vw;
height: 75vh;
z-index: 99999;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ===== SLIDES ===== */
.c2k-slide {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.6s ease;
}

.c2k-slide.active {
opacity: 1;
pointer-events: auto;
cursor: pointer;
}

/* =========================
CLOSE BUTTON
========================= */
#c2k-close {
position: absolute;
top: 16px;
right: 16px;
z-index: 5;
background: #fff;
border: none;
width: 40px;
height: 40px;
font-size: 26px;
border-radius: 50%;
cursor: pointer;
}

/* =========================
COLLAPSED CTA ========================= */
#c2k-mini {
position: fixed;
top: 25%;
left: 0;
transform: translateY(-50%);
background: #eb8113;
color: #fff;
font-weight: 700;
padding: 16px 18px;
border-radius: 0 12px 12px 0;
cursor: pointer;
z-index: 99999;
display: none;
user-select: none;
}

/* ===== DESKTOP IMAGES ===== */
@media (min-width: 769px) {
.slide-1 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/7706db99-137c-482e-9451-81513ab8ea4b-high.jpg?enable-io=true&width=1920");
}
.slide-2 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/happy-lunar-en-high-eps50r.png?enable-io=true&crop=1.3356%3A1%2Coffset-y100&width=1252");
}
.slide-3 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/7706db99-137c-482e-9451-81513ab8ea4b-high.jpg?enable-io=true&width=1920");
}
.slide-4 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/corda-high.png?enable-io=true&crop=1.3015%3A1%2Coffset-y83&width=816");
}
}

/* ===== MOBILE IMAGES ===== */
@media (max-width: 768px) {
#c2k-banner {
width: 90vw;
height: 70vh;
}
.slide-1 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/gemini_generated_image_732u39732u39732u-high.png?enable-io=true&width=816");
}
.slide-2 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/gemini_generated_image_8vilry8vilry8vil-high.png?enable-io=true&width=816");
}
.slide-3 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/gemini_generated_image_64syjt64syjt64sy-high.png?enable-io=true&width=816");
}
.slide-4 {
background-image: url("https://primary.jwwb.nl/public/n/w/w/temp-gkvqkiepscrtkilodacl/happy-lunar-mobile-high.png?enable-io=true&crop=0.7762%3A1&width=532");
}
}
</style>

<div id="c2k-banner">
<button id="c2k-close">×</button>

<div class="c2k-slide slide-1 active"></div>
<div class="c2k-slide slide-2"></div>
<div class="c2k-slide slide-3"></div>
<div class="c2k-slide slide-4"></div>
</div>

<div id="c2k-mini">TET SAVINGS from FEB 1 to 28</div>

<script>
document.addEventListener("DOMContentLoaded", () => {
const banner = document.getElementById("c2k-banner");
const closeBtn = document.getElementById("c2k-close");
const miniCTA = document.getElementById("c2k-mini");
const slides = document.querySelectorAll(".c2k-slide");

const isMobile = window.matchMedia("(max-width: 768px)").matches;

/* ===== DESKTOP RANDOM LINK (ONCE) ===== */
const desktopLinks = [
"https://www.c2khealthandbeauty.com/product/20889167/c2k-nad-60-capsules-vien",
"https://www.c2khealthandbeauty.com/product/20888618/c2k-fuicoidan-60-capsules-vien"
];
const desktopRandom =
desktopLinks[Math.floor(Math.random() * desktopLinks.length)];

const slide4Link =
"https://www.c2khealthandbeauty.com/product/21953721/thien-trieu-bird-s-nest-drink-nuoc-yen-sao-thien-trieu";

/* ===== CLICK HANDLING (ACTIVE SLIDE ONLY) ===== */
banner.addEventListener("click", e => {
const activeSlide = document.querySelector(".c2k-slide.active");
if (!activeSlide) return;

/* FORCE SLIDE 4 TO SPECIAL URL */
if (activeSlide.classList.contains("slide-4")) {
window.open(slide4Link, "_blank");
return;
}

if (isMobile) {
if (activeSlide.classList.contains("slide-1")) {
window.open(
"https://www.c2khealthandbeauty.com/product/20889167/c2k-nad-60-capsules-vien",
"_blank"
);
} else {
window.open(
"https://www.c2khealthandbeauty.com/product/20888618/c2k-fuicoidan-60-capsules-vien",
"_blank"
);
}
} else {
if (activeSlide.classList.contains("slide-1")) {
window.open(desktopRandom, "_blank");
}
}
});


/* ===== SLIDE ROTATION ===== */
let index = 0;
setInterval(() => {
slides[index].classList.remove("active");
index = (index + 1) % slides.length;
slides[index].classList.add("active");
}, 5000);

/* ===== CLOSE / REOPEN ===== */
closeBtn.onclick = e => {
e.stopPropagation();
banner.style.display = "none";
miniCTA.style.display = "block";
};

miniCTA.onclick = () => {
banner.style.display = "block";
miniCTA.style.display = "none";
};
});
</script>