FREE WORLDWIDE SHIPPING · WE COVER ALL DUTIES · 70% OFF SITEWIDE
Shop worldwide with free shipping and no duties to pay   ·   70% off all products

Find Your Perfect Routine

Answer a few quick questions and we’ll match you with the best products for you.


  • Takes 30 seconds

  • 3 quick questions

  • Personalized picks

‘;
qslot.innerHTML = html;

qslot.querySelectorAll(‘.pq-opt’).forEach(function (btn) {
btn.addEventListener(‘click’, function () {
selectOption(parseInt(btn.dataset.optIndex, 10), btn);
});
});

var title = qslot.querySelector(‘.pq-qtitle’);
if (title) title.focus({ preventScroll: true });

questionShownAt = Date.now();
track(‘quiz_question_view’, {
quiz_step: num,
quiz_total: total,
quiz_question: q.title,
quiz_revisit: !!state.answers[state.step]
});
}

/* Rebuild the question flow from scratch: main-flow questions plus,
for every answered option that carries branch:, that branch’s
questions inserted right after the question that was answered.
Deterministic — safe to call after any answer change. */
function rebuildFlow() {
var flow = mainFlow.slice();
for (var i = 0; i = o.budget[0] && p.price o.budget[1]) s -= 5;
}
});
scores.set(p, s);
});
candidates.sort(function (a, b) {
return (scores.get(b) – scores.get(a)) || (POOL.indexOf(a) – POOL.indexOf(b));
});
var first = candidates[0];
var second = null;
for (var i = 1; i 1) second = candidates[1];
return second ? [first, second] : [first];
}

function showResults() {
var picks = computeResults();

resultsGrid.innerHTML = ”;
picks.forEach(function (p) {
p.el.hidden = false;
resultsGrid.appendChild(p.el);
});

var goalAnswer = state.answers.find(function (a) { return a && a.question.subtitleSource; });
if (goalAnswer && resultsSub) {
resultsSub.textContent = ‘Hand-picked from your answers — matched for “’ + goalAnswer.option.label.toLowerCase() + ‘”.’;
}
var kids = state.answers.some(function (a) { return a && a.option.audience === ‘kids’; });
if (resultsTitle) {
resultsTitle.textContent = kids ? ‘Perfect picks for your little one’ : (picks.length > 1 ? ‘Meet your perfect matches’ : ‘Meet your perfect match’);
}
showScreen(‘results’);
state.completed = true;
track(‘quiz_complete’, {
quiz_result_products: picks.map(function (p) { return p.handle; }).join(‘,’),
quiz_top_match: picks[0] ? picks[0].handle : ”,
quiz_path: answersPath(),
quiz_total: state.flow.length,
quiz_duration_ms: quizStartedAt ? Date.now() – quizStartedAt : 0
});
root.scrollIntoView({ behavior: ‘smooth’, block: ‘start’ });
if (resultsTitle) resultsTitle.focus({ preventScroll: true });
}

function resetQuiz() {
clearTimeout(advanceTimer);
/* Return result cards to the hidden pool so they can win again */
root.querySelectorAll(‘[data-pq-results-grid] [data-pq-card]’).forEach(function (card) {
pool.appendChild(card);
});
state.step = 0;
state.answers = [];
state.flow = mainFlow.slice(0, MAX_PATH);
state.branch = ”;
state.completed = false;
abandonSent = false;
quizStartedAt = Date.now();
showScreen(‘quiz’);
renderQuestion();
}

root.querySelector(‘[data-pq-start]’).addEventListener(‘click’, function () {
if (!state.started) {
state.started = true;
quizStartedAt = Date.now();
track(‘quiz_start’, {});
}
showScreen(‘quiz’);
renderQuestion();
});

backBtn.addEventListener(‘click’, function () {
clearTimeout(advanceTimer);
if (state.step > 0) {
track(‘quiz_back’, {
quiz_step: state.step + 1,
quiz_question: state.flow[state.step] ? state.flow[state.step].title : ”
});
state.step -= 1;
renderQuestion();
}
});

root.querySelector(‘[data-pq-retake]’).addEventListener(‘click’, function () {
track(‘quiz_retake’, { quiz_path: answersPath() });
resetQuiz();
});

/* Result-screen interactions: which recommended product gets clicked,
what kind of click, and one-time vs subscription for add-to-cart */
screens.results.addEventListener(‘click’, function (e) {
var card = e.target.closest(‘[data-pq-card]’);
if (!card) return;
var action = null;
if (e.target.closest(‘product-form’)) action = ‘add_to_cart’;
else if (e.target.closest(‘a’)) action = ‘view_product’;
if (action) {
var position = 1;
resultsGrid.querySelectorAll(‘[data-pq-card]’).forEach(function (c, i) {
if (c === card) position = i + 1;
});
var payload = {
quiz_action: action,
quiz_product: card.dataset.handle,
quiz_result_position: position
};
if (action === ‘add_to_cart’) {
var plan = card.querySelector(‘[data-pq-selling-plan]’);
payload.quiz_purchase_type = plan && !plan.disabled && plan.value ? ‘subscribe’ : ‘one_time’;
}
track(‘quiz_result_click’, payload);
}
});

/* Abandon: fires when the visitor leaves mid-quiz (tab hidden or page
unload after starting, before completing). If they come back and
keep answering, the flag resets so a later exit is captured too.
quiz_complete is the source of truth — an abandon followed by a
complete in the same session means “paused, then finished”. */
function sendAbandon() {
if (!state.started || state.completed || abandonSent) return;
abandonSent = true;
var q = state.flow[state.step];
track(‘quiz_abandon’, {
quiz_step: state.step + 1,
quiz_total: flowTotal(),
quiz_question: q ? q.title : ”,
quiz_path: answersPath(),
quiz_duration_ms: quizStartedAt ? Date.now() – quizStartedAt : 0
});
}
window.addEventListener(‘pagehide’, sendAbandon);
document.addEventListener(‘visibilitychange’, function () {
if (document.visibilityState === ‘hidden’) sendAbandon();
});
})();