BLACK FRIDAY✦DISCOUNT CODES✦BIGGEST DEALS OF THE YEAR✦FREE UK DELIVERY OVER £15✦BLACK FRIDAY✦DISCOUNT CODES✦BIGGEST DEALS OF THE YEAR✦FREE UK DELIVERY OVER £15✦BLACK FRIDAY✦DISCOUNT CODES✦BIGGEST DEALS OF THE YEAR✦FREE UK DELIVERY OVER £15✦BLACK FRIDAY✦DISCOUNT CODES✦BIGGEST DEALS OF THE YEAR✦FREE UK DELIVERY OVER £15✦BLACK FRIDAY✦DISCOUNT CODES✦BIGGEST DEALS OF THE YEAR✦FREE UK DELIVERY OVER £15✦BLACK FRIDAY✦DISCOUNT CODES✦BIGGEST DEALS OF THE YEAR✦FREE UK DELIVERY OVER £15✦
Black Friday · Join the list
Black Friday is coming.
Never miss a deal.
Get our biggest beauty deals of the year and the latest discount codes straight to your inbox.
Black Friday starts in
00Days
00Hrs
00Min
00Sec
Black Friday is live
Choosing a selection results in a full page refresh.
Opens in a new window.
$refs.input && $refs.input.focus())"
@keydown.escape.window="open = false"
x-bind:data-open="open"
class="ga:relative"
x-init="
const KEY = 'gaSearchOpen';
let scrollY = 0;
const lockScroll = () => {
// zaten kilitliyse tekrar etme
if (document.body.style.position === 'fixed') return;
scrollY = window.scrollY || window.pageYOffset || 0;
document.body.style.position = 'fixed';
document.body.style.top = `-${scrollY}px`;
document.body.style.left = '0';
document.body.style.right = '0';
document.body.style.width = '100%';
};
const unlockScroll = () => {
const top = document.body.style.top;
document.body.style.position = '';
document.body.style.top = '';
document.body.style.left = '';
document.body.style.right = '';
document.body.style.width = '';
// eski konuma dön
const y = top ? parseInt(top) * -1 : scrollY;
window.scrollTo(0, y || 0);
};
if (window.Shopify && Shopify.designMode) {
// 1) İlk yüklemede otomatik açma YOK (default kapalı); varsa session’dan oku
const saved = sessionStorage.getItem(KEY);
open = saved === '1';
// 2) Section seçilince aç (focus ver), fakat sayfa konumu sabit kalsın
const onSelect = (e) => {
if (e.detail.sectionId === 'sections--26487754293623__ga_search_overlay_DaTAJQ') {
open = true;
sessionStorage.setItem(KEY, '1');
// seçimin tetiklediği olası kaymayı geri al
requestAnimationFrame(() => { window.scrollTo(0, scrollY || 0); });
$nextTick(() => { if ($refs.input) $refs.input.focus(); });
}
};
document.addEventListener('shopify:section:select', onSelect);
document.addEventListener('shopify:block:select', onSelect);
document.addEventListener('shopify:inspector:activate', onSelect);
// 3) Section reload olursa state’i koru
const onLoad = (e) => {
if (e.detail.sectionId === 'sections--26487754293623__ga_search_overlay_DaTAJQ') {
const keep = sessionStorage.getItem(KEY) === '1';
open = keep;
if (keep) {
requestAnimationFrame(() => { window.scrollTo(0, scrollY || 0); });
$nextTick(() => { $refs.input && $refs.input.focus(); });
}
}
};
document.addEventListener('shopify:section:load', onLoad);
// 4) open değişimini kalıcılaştır + scroll kilidi uygula
$watch('open', v => {
sessionStorage.setItem(KEY, v ? '1' : '0');
v ? lockScroll() : unlockScroll();
});
} else {
// live sitede sadece scroll kilidi
$watch('open', v => { v ? lockScroll() : unlockScroll(); });
}
"
>