@import url(‘https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap’);
/* Custom styles for the Diwali theme using NN- prefix */
.nn-font-inter { font-family: ‘Inter’, sans-serif; }
.nn-bg-primary { background-color: #14532d; } /* Outer Background (Deep Red/Maroon) */
.nn-bg-box { background-color: #581845; } /* Timer Box Background (Darker Plum) */
.nn-shadow { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
Grab Your Gifts Before the Lights Go Out
// — Countdown Timer Logic —
// Setting the target date to a fixed date (November 10th, 2025 at midnight).
// The timer will not restart or change based on when the user loads the page.
const saleEndDate = new Date(“2025-10-20T00:00:00”);
// Note: You can easily change this date string to any future date/time.
function updateCountdown() {
const now = new Date().getTime();
const distance = saleEndDate.getTime() – now;
const countdownEl = document.getElementById(‘countdown’);
if (distance < 0) {
countdownEl.innerHTML = "
HAPPY DIWALI! Sale Ended.
“;
clearInterval(countdownInterval);
return;
}
// Time calculations for days, hours, minutes and seconds
const days = Math.floor(distance / (1000 * 60 * 60 * 24));
const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Helper function to format time units (styled to match the image)
const formatTime = (value, unit) => `
`;
countdownEl.innerHTML =
formatTime(days, ‘DAYS’) +
formatTime(hours, ‘HOURS’) +
formatTime(minutes, ‘MINUTES’) +
formatTime(seconds, ‘SECONDS’);
}
// Run the function immediately and then every second
updateCountdown();
const countdownInterval = setInterval(updateCountdown, 1000);