/* NAFAH 2 / Atelier Oud — a new Click-theme experience. Reference: NAFAH 1 category assets and contact details only. Native Salla product, search, login, cart and analytics are preserved. */(function(){'use strict';if(window.NAFAH2_ATELIER) return;window.NAFAH2_ATELIER=true;function init(){ if(!document.body.classList.contains('theme-click'))return; const ar=(document.documentElement.lang||'ar').startsWith('ar'); const tr=(a,e)=>ar?a:e; const brandName=tr('نفح اطيب العود','NAFAH ATYAB AL-OUD'); const cats=[ ['عود طبيعي','Natural oud','681113008','sfBHaSCLVM67vdhr191h1tOd2rw0i0UpYXqonzHy.png'], ['دهن العود','Oud oils','1898570880','PmSInMbs1IXD8eS7UcDU5PNpc2LmgnRRkjnzHRZz.png'], ['عود محسن','Enhanced oud','1053178158','AcoSa9LEsGifclrKsO1wCAVuG47zwHT50g82iWH7.png'], ['بخور','Bakhur','144922671','QOqLlyoTeXM1K1CYnXQjZ1r3nhsVT7GUeZWiQv8a.png'], ['مسك وورد','Musk & rose','1343800363','dwxRchjJlWMK9yTX9o69IPwZfWai3ZmcsYgev0dB.png'] ]; const storeRoot=(document.querySelector('.side-panel--menu a')?.href||location.origin+'/'+(ar?'ar':'en')).replace(/\/$/,''); const url=id=>storeRoot+'/-/c'+id; const asset=f=>'https://cdn.salla.sa/Vpzob/products/'+f; const home=document.querySelector('.side-panel--menu a')?.href||'https://nafahaloud.com/'; const make=(tag,cls,html)=>{const e=document.createElement(tag);e.className=cls;e.innerHTML=html;return e;}; const header=document.querySelector('.store-header'); const hc=document.querySelector('.header-container'); const logo=document.querySelector('.hero-area img, .footer-logo img'); if(header&&hc&&!document.getElementById('n2-brand')){ const brand=make('a','n2-brand',''+brandName+' '+tr('عود | دهن العود | بخور','OUD | OUD OIL | BAKHUR')+' '); brand.id='n2-brand';brand.href=home;brand.setAttribute('aria-label',tr('نفح اطيب العود — الرئيسية','NAFAH ATYAB AL-OUD — Home')); if(logo){const im=logo.cloneNode(true);im.removeAttribute('style');im.alt=brandName;brand.prepend(im);} hc.prepend(brand); const nav=make('nav','n2-nav',cats.map(c=>''+tr(c[0],c[1])+' ').join('')+''+tr('العروض','Offers')+' '); nav.setAttribute('aria-label',tr('أقسام المتجر','Shop categories'));header.append(nav); } const main=document.querySelector('main.store-main'); const isHome=document.body.classList.contains('index'); if(isHome&&main&&!document.getElementById('n2-home')){ const arrow=ar?'←':'→'; const intro=make('div','n2-home','');intro.id='n2-home'; intro.innerHTML=''+tr('نفح اطيب العود','NAFAH ATYAB AL-OUD')+'
'+tr('عود يليق بذائقتك. وأثر يدوم.','A lasting impression. Your kind of oud.')+' '+tr('اكتشف تشكيلة نفح اطيب العود من العود الطبيعي ودهن العود والبخور، واختر ما يناسب ذائقتك ومناسباتك.','Explore natural oud, rich oud oils and bakhur. Find your scent and make the moment yours.')+'
OUD · CHARACTER · TRADITION '+ '
'+tr('تسوق حسب الفئة','Shop by oud type')+' '+tr('دفع آمن عبر سلة','Secure Salla checkout')+' '+tr('تواصل مباشر عبر واتساب','Personal help on WhatsApp')+'
'+tr('تسوق حسب الفئة','Find your signature')+' '+tr('اختر القسم المناسب واستكشف منتجاتنا','Start with the scents you love')+'
'+tr('أقسام المتجر','THE COLLECTION')+' '; main.prepend(intro);
const stories=make('section','n2-stories',''+tr('لمسة تعبر عنك','A PERSONAL SIGNATURE')+' '+tr('دهن العود حضور يليق بك','Oud oils. A signature of your own.')+' '+tr('اكتشف دهن العود واختر عطرك المفضل.','Explore oud oils and discover your favourite scent.')+'
'+tr('تسوق دهن العود','Shop oud oils')+' '+arrow+' '+tr('لبيتك وضيوفك','FOR YOUR HOME & GUESTS')+' '+tr('بخور يضيف دفئاً للمكان','Bakhur. A warm welcome.')+' '+tr('استكشف تشكيلة البخور لأوقاتك ومناسباتك.','Discover bakhur for everyday moments and special occasions.')+'
'+tr('اكتشف البخور','Explore bakhur')+' '+arrow+' ');
intro.append(stories);const promise=make('section','n2-promise',''+brandName+' '+tr('نحن معروفون بتجارة الجملة للعود الطبيعي ودهن العود','WE ARE KNOWN FOR WHOLESALE OF NATURAL OUD AND OUD OIL')+' '+tr('اكتشف العود الطبيعي','Explore natural oud')+' '+arrow+' ');intro.insertBefore(promise,stories);document.body.classList.add('n2-ready'); const heading=main.querySelector('.s-block--latest-products h2'); if(heading)heading.textContent=tr('أحدث المنتجات','Discover the latest'); const outro=make('div','n2-shell',''+tr('دليلك لاختيار العود','FIND YOUR OUD')+'
'+tr('اختيار العود يبدأ بذائقتك.','Good oud begins with your taste.')+' '+tr('للتبخير اليومي، للمناسبات، أو لعطر يرافقك. استكشف الأقسام أو دعنا نساعدك في الاختيار.','For everyday rituals, special occasions or a scent to carry with you. Browse the collection or let us help you choose.')+'
'+tr('تعرّف على أنواع العود','Explore the oud guide')+' '+arrow+' '); outro.id='n2-outro';main.append(outro);
const branches=[['فرع الرياض','Riyadh','MgVa8a3d4miMPH896','966570391045','ykZfhYOfEP8IVDqWY4V2nWc5OhrbwU2sHTtKdwH0.jpg'],['فرع جدة 1','Jeddah 1','DEgsumnmnJoSWqep8','966504689476','CgKRvbIoPGD6BF7I41jYCw0Rb7p7tmHgkpWlIM7E.jpg'],['فرع جدة 2','Jeddah 2','d9x1G1dTZTXq8anL7','966568640492','M9iCIl5dUYNDPS4ia00tc47RzI5GJKghI5Qh7mu8.jpg'],['فرع إندونيسيا','Indonesia','9rdqKKaD7iMgHxxw7','628131299047','products/IfEKmQvRii7wQT88Z1XpeQXWU7ecsY3VGw1yO9bV.png']];
const visit=make('section','n2-section',''+tr('فروع نفح اطيب العود','NAFAH ATYAB AL-OUD stores')+' '+tr('يسعدنا استقبالكم في الرياض وجدة وإندونيسيا.','We look forward to welcoming you in Riyadh, Jeddah and Indonesia.')+'
'+branches.map(x=>'
').join('')+'
');
visit.id='n2-branches';visit.style.scrollMarginTop='120px';visit.setAttribute('aria-labelledby','n2-visit-title');outro.append(visit);
const nav=document.querySelector('.n2-nav');
if(nav){nav.append(make('a','n2-text-link',tr('دليل العود','Oud guide')));nav.lastElementChild.href='https://nafahaloud.com/'+(ar?'ar':'en')+'/p/BDrDO/';nav.append(make('a','n2-text-link',tr('فروعنا','Our stores')));nav.lastElementChild.href='#n2-branches';}
}
const sbcFrame=document.createElement('iframe');sbcFrame.id='n2-sbc-official';sbcFrame.title='SBC Verification';sbcFrame.setAttribute('scrolling','no');sbcFrame.style.cssText='border:0;width:140px;height:44px;max-width:calc(100vw - 36px);max-height:calc(100dvh - 36px);transition:width .18s,height .18s;position:fixed;z-index:2147483000;bottom:18px;left:18px;background:transparent;';
window.addEventListener('message',function(e){if(e.origin!=='https://eauthenticate.saudibusiness.gov.sa'||e.source!==sbcFrame.contentWindow||!e.data||e.data.sbcSeal!==true)return;const w=Number(e.data.width),h=Number(e.data.height);if(Number.isFinite(w)&&Number.isFinite(h)&&w>0&&h>0){sbcFrame.style.width=Math.min(w,360)+'px';sbcFrame.style.height=Math.min(h,650)+'px';}});
sbcFrame.src='https://eauthenticate.saudibusiness.gov.sa/EAuthSealApi/seal?token=bk92Sy9LTzY5NFBmMXR0aEkxWlE5UT09&lang='+(ar?'ar':'en')+'&pos=bottom';const sbcSection=make('section','n2-sbc-placement',''+tr('تسوق بثقة','Shop with confidence')+' '+tr('متجر موثق لدى المركز السعودي للأعمال','Verified by the Saudi Business Center')+'
');const sbcStories=document.querySelector('#n2-home .n2-stories');if(sbcStories)sbcStories.before(sbcSection);else{const footer=document.querySelector('.store-footer');if(footer)footer.prepend(sbcSection);else document.body.append(sbcSection);}sbcSection.querySelector('.n2-sbc-slot').append(sbcFrame);const sbcPlacementStyle=document.createElement('style');sbcPlacementStyle.textContent='body.theme-click .n2-sbc-placement{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:960px;margin:24px auto 36px;padding:24px 30px;background:#fffef9;border:1px solid #dce3d8;border-inline-start:4px solid #426853;border-radius:16px;color:#30251f}body.theme-click .n2-sbc-placement b{font-size:20px;color:#315642}body.theme-click .n2-sbc-placement p{font-size:13px;margin:6px 0 0;line-height:1.7}body.theme-click .n2-sbc-slot{position:relative;width:140px;height:44px;flex-shrink:0}body.theme-click #n2-sbc-official{position:absolute!important;bottom:0!important;left:50%!important;transform:translateX(-50%);z-index:100!important;max-height:none!important}@media(max-width:700px){body.theme-click .n2-sbc-placement{margin:22px 18px 30px;padding:22px 18px;flex-direction:column;text-align:center;gap:18px}body.theme-click .n2-sbc-placement b{font-size:19px}}';document.head.append(sbcPlacementStyle);
const polish=document.createElement('style');polish.textContent=`body.theme-click .n2-brand b{font-size:20px;line-height:1.4;letter-spacing:0;max-width:250px}body.theme-click .n2-brand small{letter-spacing:1px;font-size:9px}.theme-click main.store-main{font-weight:400}body.theme-click .n2-stories{display:grid;grid-template-columns:1fr 1fr;gap:22px;max-width:1280px;margin:35px auto 55px;padding:0 28px}body.theme-click .n2-story{position:relative;display:flex;align-items:center;min-height:345px;background:#e9dfce;overflow:hidden;padding:36px;color:#30251f}body.theme-click .n2-story img{position:absolute;inset-inline-end:0;bottom:0;width:48%;height:100%;object-fit:cover;opacity:.65;mix-blend-mode:multiply}body.theme-click .n2-story>div{position:relative;z-index:1;max-width:72%}body.theme-click .n2-story span{font-size:10px;letter-spacing:1px}body.theme-click .n2-story h2{font-size:32px;line-height:1.5;margin:14px 0}body.theme-click .n2-story p{font-size:14px;max-width:270px;line-height:1.8;margin-bottom:22px}body.theme-click .n2-story b{font-size:13px;border-bottom:1px solid;padding-bottom:5px}body.theme-click .n2-story-dark{background:#4e202a;color:#fff8ef}body.theme-click .n2-story-dark img{mix-blend-mode:luminosity;opacity:.18}body.theme-click .n2-story:hover img{transform:scale(1.025);transition:transform .3s}body.theme-click .n2-brand{flex-shrink:0} @media(max-width:700px){body.theme-click .n2-stories{grid-template-columns:1fr;padding:0 18px;gap:16px;margin:24px auto 35px}body.theme-click .n2-story{min-height:290px;padding:26px}body.theme-click .n2-story h2{font-size:28px}body.theme-click .n2-brand b{font-size:13px;max-width:150px}body.theme-click .n2-brand small{font-size:7px;letter-spacing:0}body.theme-click .n2-brand img{width:36px;height:36px}body.theme-click .n2-hero h1{font-size:34px}body.theme-click .header-container{gap:7px}}`;polish.textContent+="body.theme-click .n2-branch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding-bottom:48px}body.theme-click .n2-branch-card{background:#fff;border:1px solid #e8dfd2;border-radius:12px;overflow:hidden}body.theme-click .n2-branch-photo{width:100%;height:195px;object-fit:cover;display:block}body.theme-click .n2-branch-info{padding:20px}body.theme-click .n2-branch-info h3{font-size:20px;margin:0 0 17px}body.theme-click .n2-branch-actions{display:flex;gap:10px}body.theme-click .n2-branch-actions .n2-button{flex:1;text-align:center;padding:11px 7px;font-size:12px;white-space:nowrap}body.theme-click .n2-button-outline{background:transparent;color:#721d2b!important;border:1px solid #721d2b}body.theme-click .n2-promise{text-align:center;background:#30251f;color:#fff8ef;margin:35px 0;padding:42px 24px}body.theme-click .n2-promise>span{font-size:11px;letter-spacing:1px;color:#e0c398}body.theme-click .n2-promise h2{font-size:clamp(23px,3vw,36px);line-height:1.6;max-width:880px;margin:12px auto 22px}body.theme-click .n2-promise a{color:#fff8ef}body.theme-click .n2-whatsapp{display:flex;gap:9px;align-items:center;touch-action:none;user-select:none;cursor:grab;box-shadow:0 5px 22px #30251f25}body.theme-click .n2-whatsapp:active{cursor:grabbing}body.theme-click .n2-whatsapp img{width:25px;height:25px;object-fit:contain;pointer-events:none}body.theme-click .n2-whatsapp span{pointer-events:none}body.theme-click .n2-category small{display:none}@media(max-width:900px){body.theme-click .n2-branch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){body.theme-click .n2-categories{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px 10px;overflow:visible}body.theme-click .n2-category{grid-column:span 2;min-width:0}body.theme-click .n2-category:nth-child(n+4){grid-column:span 3}body.theme-click .n2-category-image{width:100%;height:115px;border-radius:60px 60px 10px 10px}body.theme-click .n2-category:nth-child(n+4) .n2-category-image{height:135px}body.theme-click .n2-category h3{font-size:13px;line-height:1.5;margin:9px 0 0}body.theme-click .n2-hero-copy{padding:27px 22px}body.theme-click .n2-hero h1{font-size:31px;line-height:1.5}body.theme-click .n2-hero p{font-size:14px}body.theme-click .n2-actions{gap:13px;flex-wrap:wrap}body.theme-click .n2-actions .n2-button{border-radius:6px}body.theme-click .n2-nav{gap:22px;padding:13px 16px;background:#f1e9dd;scroll-padding:16px}body.theme-click .n2-branch-grid{grid-template-columns:1fr;gap:20px}body.theme-click .n2-branch-photo{height:210px}body.theme-click .n2-branch-info{padding:20px}body.theme-click .n2-branch-actions .n2-button{min-height:45px;font-size:14px;border-radius:6px}body.theme-click .n2-promise{padding:30px 22px}body.theme-click .n2-promise h2{font-size:23px}body.theme-click .n2-whatsapp{padding:11px 14px;font-size:12px;bottom:16px}body.theme-click .n2-brand b{font-size:13px;max-width:145px}body.theme-click .n2-brand small{font-size:8px;letter-spacing:0}body.theme-click .n2-story{border-radius:10px}body.theme-click .header-container{min-height:78px}body.theme-click .n2-section{padding-top:30px}}";polish.textContent+='body.theme-click .n2-sbc{display:flex;align-items:center;justify-content:center;gap:14px;max-width:620px;margin:25px auto;padding:18px 22px;border:1px solid #d6c5a8;border-radius:10px;background:#f6f0e6;color:#30251f}body.theme-click .n2-sbc b{display:block;font-size:15px}body.theme-click .n2-sbc small{display:block;font-size:12px;margin-top:5px;text-decoration:underline}body.theme-click .n2-sbc img{object-fit:contain}@media(max-width:600px){body.theme-click .n2-sbc{margin:20px 18px;padding:16px}body.theme-click .n2-sbc b{font-size:13px}}';polish.textContent+='body.theme-click #n2-whatsapp{background:transparent!important;border:0!important;box-shadow:none!important;padding:8px!important;border-radius:50%;width:56px;height:56px;justify-content:center}body.theme-click #n2-whatsapp img{width:40px;height:40px}';polish.textContent+="body.theme-click .store-footer .s-social-list{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:12px!important}body.theme-click .store-footer .s-social-link a{display:flex!important;align-items:center!important;justify-content:center!important;width:48px!important;height:48px!important;background:#fff8ed!important;color:#721d2b!important;border:1px solid #d6be99!important;border-radius:12px!important;opacity:1!important}body.theme-click .store-footer .s-social-icon{display:flex!important;align-items:center!important;justify-content:center!important;color:#721d2b!important;background:transparent!important;opacity:1!important}body.theme-click .store-footer .s-social-icon svg{width:25px!important;height:25px!important;fill:#721d2b!important;color:#721d2b!important;opacity:1!important}body.theme-click .store-footer .s-social-icon svg path{fill:#721d2b!important}body.theme-click .store-footer .s-social-link a:hover{background:#ead9bd!important;transform:translateY(-2px)}body.theme-click .store-footer__info-bar>.container{flex-wrap:wrap;gap:22px}body.theme-click .store-footer__info-bar .flex:has(>salla-social){width:100%;justify-content:center;flex-wrap:wrap;gap:16px;padding-top:22px;border-top:1px solid #ffffff25}body.theme-click .store-footer h4{color:#fff8ed!important;font-size:16px!important}body.theme-click .n2-sbc{max-width:860px;display:flex;justify-content:flex-start;gap:24px;background:#fffdf8;border:1px solid #cbbb9e;border-inline-start:5px solid #1b6650;border-radius:14px;padding:26px 30px;margin:30px auto;box-shadow:0 7px 24px #30251f08;text-decoration:none}body.theme-click .n2-sbc-seal{display:flex;align-items:center;justify-content:center;flex:0 0 76px;height:76px;border-radius:50%;background:#edf4ee;border:1px solid #d8e5d8}body.theme-click .n2-sbc img{width:48px;height:48px}body.theme-click .n2-sbc-copy{flex:1}body.theme-click .n2-sbc-kicker{display:block;color:#496757;font-size:10px;letter-spacing:1px;margin-bottom:5px}body.theme-click .n2-sbc b{font-size:23px;color:#233d31;line-height:1.5}body.theme-click .n2-sbc small{font-size:13px;text-decoration:none;color:#596354;margin-top:3px}body.theme-click .n2-sbc-cta{display:inline-flex;align-items:center;gap:12px;padding:12px 17px;border:1px solid #1b6650;border-radius:7px;color:#1b6650;font-size:13px;font-weight:600;white-space:nowrap}body.theme-click .n2-sbc:hover .n2-sbc-cta{background:#1b6650;color:white}@media(max-width:600px){body.theme-click .n2-sbc{margin:24px 18px;padding:20px;gap:16px;flex-wrap:wrap}body.theme-click .n2-sbc-seal{flex-basis:62px;height:62px}body.theme-click .n2-sbc b{font-size:22px}body.theme-click .n2-sbc-cta{width:100%;justify-content:center;min-height:46px}body.theme-click .store-footer .s-social-list{gap:10px!important}body.theme-click .store-footer .s-social-link a{width:44px!important;height:44px!important}body.theme-click .store-footer__info-bar .flex:has(>salla-social){flex-direction:column}body.theme-click .store-footer .s-social-icon svg{width:24px!important;height:24px!important}}";document.head.append(polish);
function tidyMobileHeader(){const list=document.querySelector('.header-btns-list');if(!list)return;if(!list.querySelector('.n2-mobile-language')){const item=make('li','n2-mobile-language',''+tr('EN','عربي')+' ');item.querySelector('button').addEventListener('click',function(){if(document.body.classList.contains('n2-language-switching'))return;document.body.classList.add('n2-language-switching');salla.event.dispatch('localization::open');let attempts=0;const timer=setInterval(function(){const radio=document.querySelector('#lang-'+(ar?'en':'ar'));const submit=document.querySelector('.s-localization-modal-inner salla-button button');if(radio&&submit){clearInterval(timer);radio.click();setTimeout(function(){submit.click();},80);}else if(++attempts>100){clearInterval(timer);document.body.classList.remove('n2-language-switching');}},50);setTimeout(function(){document.body.classList.remove('n2-language-switching');},8000);});const cart=list.querySelector('.cart-item');list.insertBefore(item,cart);}}
tidyMobileHeader();window.addEventListener('load',tidyMobileHeader,{once:true});setTimeout(tidyMobileHeader,1500);
const mobileHeaderStyle=document.createElement('style');mobileHeaderStyle.textContent='body.theme-click .n2-mobile-language{display:none!important}@media(max-width:767px){body.theme-click .hero-area,body.theme-click .store-header .n2-nav{display:none!important}body.theme-click .header-container{display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:12px 14px!important}body.theme-click #n2-brand{flex:1 1 calc(100% - 52px)!important;min-width:0!important;order:0}body.theme-click #n2-brand img{width:38px!important;height:38px!important}body.theme-click #n2-brand b{font-size:14px!important;max-width:none!important}body.theme-click #n2-brand small{font-size:8px!important}body.theme-click .header-container>div:has(.mburger){order:1;margin:0!important}body.theme-click .mburger{margin:0!important;width:36px;height:38px}body.theme-click .header-btns-list{order:2;display:flex!important;justify-content:flex-end!important;align-items:center!important;width:100%!important;gap:14px!important;margin:0!important;padding-top:6px!important;border-top:1px solid #e9e1d6}body.theme-click .header-btns-list>.lang-item{display:none!important}body.theme-click .header-btns-list>.n2-mobile-language{display:flex!important;align-items:center}body.theme-click .n2-mobile-language button{min-width:42px;height:36px;border:1px solid #d5c7b4;border-radius:8px;background:transparent;color:#721d2b;font-size:13px;font-weight:700;cursor:pointer}body.theme-click .header-btns-list .header-btn{min-width:32px;min-height:36px}body.theme-click .header-btns-list .cart-item{margin:0!important}body.theme-click .s-cart-summary-content{display:none!important}}';document.head.append(mobileHeaderStyle);
const desktopHeaderStyle=document.createElement('style');desktopHeaderStyle.textContent='body.n2-language-switching salla-modal:has(.s-localization-modal-inner){visibility:hidden!important}@media(min-width:768px){body.theme-click .store-header .mburger{display:none!important}body.theme-click .header-btns-list>.lang-item{display:none!important}body.theme-click .header-btns-list>.n2-mobile-language{display:flex!important}body.theme-click .n2-mobile-language button{min-width:44px;height:36px;border:1px solid #d5c7b4;border-radius:8px;background:transparent;color:#721d2b;font-weight:700;cursor:pointer}body.theme-click .hero-area{display:none!important}}';document.head.append(desktopHeaderStyle);
// Shared navigation uses Salla's real subcategory links.
function n2Dropdowns(){const nav=document.querySelector('.n2-nav');if(!nav)return;nav.querySelectorAll(':scope > a').forEach(a=>{const id=(a.href.match(/\/c(\d+)/)||[])[1];if(!id)return;const source=[...document.querySelectorAll('.side-panel--menu .root-level.has-children')].find(li=>{const top=li.querySelector(':scope > a');return top&&top.href.includes('/c'+id);});if(!source)return;const links=source.querySelectorAll('.sub-menu a');if(!links.length)return;const group=make('div','n2-nav-group','');a.before(group);group.append(a);const toggle=make('button','n2-sub-toggle','⌄ ');toggle.type='button';toggle.setAttribute('aria-label',tr('أقسام ','Subcategories: ')+a.textContent);toggle.setAttribute('aria-expanded','false');const panel=make('div','n2-submenu','');panel.id='n2-sub-'+id;toggle.setAttribute('aria-controls',panel.id);links.forEach(link=>{const copy=make('a','', '');copy.textContent=link.textContent.trim();copy.href=link.href;panel.append(copy);});group.append(toggle,panel);toggle.addEventListener('click',()=>{const open=group.classList.toggle('is-open');toggle.setAttribute('aria-expanded',String(open));});group.addEventListener('keydown',e=>{if(e.key==='Escape'){group.classList.remove('is-open');toggle.setAttribute('aria-expanded','false');toggle.focus();}});});}
n2Dropdowns();window.addEventListener('load',n2Dropdowns,{once:true});setTimeout(n2Dropdowns,1500);document.addEventListener('click',e=>{document.querySelectorAll('.n2-nav-group.is-open').forEach(g=>{if(!g.contains(e.target)){g.classList.remove('is-open');g.querySelector('button').setAttribute('aria-expanded','false');}});});
const pageStyle=document.createElement('style');pageStyle.textContent=
'body.theme-click .store-header .navbar-brand{display:none!important}body.theme-click .n2-nav{overflow:visible!important;position:relative;z-index:50}body.theme-click .n2-nav-group{position:relative;display:flex;align-items:center;gap:0}body.theme-click .n2-nav-group>a{padding:14px 3px}body.theme-click .n2-sub-toggle{border:0;background:transparent;color:inherit;min-width:30px;height:38px;cursor:pointer;font-size:19px}body.theme-click .n2-submenu{display:none;position:absolute;top:100%;inset-inline-start:0;width:540px;max-width:calc(100vw - 40px);padding:18px;background:#fffdf8;border:1px solid #e2d6c5;border-top:3px solid #721d2b;border-radius:0 0 14px 14px;box-shadow:0 18px 36px #30251f24;grid-template-columns:1fr 1fr;gap:4px;z-index:100}body.theme-click .n2-submenu a{display:block;padding:12px!important;white-space:normal;font-size:12px;text-transform:capitalize;border-radius:7px;color:#382b23}body.theme-click .n2-submenu a:hover,body.theme-click .n2-submenu a:focus-visible{background:#eee5d7;color:#721d2b}body.theme-click .n2-nav-group:hover>.n2-submenu,body.theme-click .n2-nav-group:focus-within>.n2-submenu,body.theme-click .n2-nav-group.is-open>.n2-submenu{display:grid}body.theme-click .store-header{overflow:visible!important}body.theme-click .n2-page-intro{background:#eee5d7;border-radius:16px;padding:36px 40px;margin:24px auto 32px;max-width:1280px;color:#35271f}body.theme-click .n2-page-intro .n2-kicker{font-size:11px;letter-spacing:1.5px;color:#8c6842;margin-bottom:12px}body.theme-click .n2-page-intro h1{font-size:36px;line-height:1.4;margin:0 0 10px;font-weight:700}body.theme-click .n2-page-intro p{font-size:15px;line-height:1.9;max-width:700px;margin:0;color:#6b5b4d}body.theme-click .n2-category-links{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}body.theme-click .n2-category-links a{padding:9px 15px;border:1px solid #d6c5ad;border-radius:30px;font-size:12px;background:#fffaf2;color:#5a3f31}body.theme-click .n2-category-links a:hover{background:#721d2b;color:#fff}body.theme-click.n2-catalog .main-content>.s-block__title{margin-top:0;padding-bottom:16px;border-bottom:1px solid #e5dbce}body.theme-click.n2-catalog .main-content>.s-block__title h1{font-size:20px;color:#721d2b}body.theme-click.n2-catalog .s-filters-widget-container{padding:20px;background:#fffdf8;border:1px solid #e7dece;border-radius:12px;margin-bottom:14px}body.theme-click.n2-catalog .s-filters-widget-title{color:#593429;font-size:16px}body.theme-click.n2-catalog .s-filters-label{font-size:13px;line-height:1.7;padding-block:5px}body.theme-click.n2-catalog .s-filters-widget-search-input{border-radius:8px;background:#f8f4ee;border-color:#dfd3c2}body.theme-click.n2-catalog .product-entry{border:1px solid #e5dccf;border-radius:14px;background:#fffdf9;overflow:hidden;box-shadow:0 4px 16px #382b2306;transition:box-shadow .2s,transform .2s}body.theme-click.n2-catalog .product-entry:hover{box-shadow:0 12px 28px #382b2312;transform:translateY(-3px)}body.theme-click.n2-catalog .product-entry__image{aspect-ratio:1/1;background:#f3ede3}body.theme-click.n2-catalog .product-entry__image img{object-fit:contain!important;width:100%;height:100%}body.theme-click.n2-catalog .product-entry__content{padding:18px}body.theme-click.n2-catalog .product-entry__title{font-size:15px;line-height:1.7;min-height:50px;color:#3c2921}body.theme-click.n2-catalog .sale-price{color:#721d2b;font-weight:700}body.theme-click.n2-catalog .add-to-cart-conatiner button:not(:disabled){background:#721d2b;color:#fff;border-color:#721d2b;border-radius:9px;min-height:44px}body.theme-click.n2-catalog .promotion-badge{border-radius:0 8px 8px 0}body.theme-click .n2-help-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 28px;background:#eee5d7;border:1px solid #e1d2bd;border-radius:14px;margin:28px 0;color:#39281f}body.theme-click .n2-help-strip p{font-size:14px;line-height:1.8;margin:0}body.theme-click .n2-help-strip a{font-size:14px;font-weight:700;color:#721d2b;white-space:nowrap;text-decoration:underline;text-underline-offset:5px}body.theme-click .n2-cart-steps{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;color:#8b7967;margin-top:22px}body.theme-click .n2-cart-steps b{color:#721d2b}body.theme-click .cart-page>.n2-page-intro{margin-top:12px}body.theme-click .cart-page .cart-item{border:1px solid #e2d8c9;border-radius:14px;background:#fffdf9;box-shadow:0 6px 22px #30251f06}body.theme-click .cart-page .cart-item h3{font-size:17px;line-height:1.8;font-weight:600}body.theme-click .cart-page .cart-item img{border-radius:10px;object-fit:contain;background:#f4eee4}body.theme-click .cart-page .item-price,body.theme-click .cart-page .item-total{color:#721d2b;font-weight:700}body.theme-click .cart-page .s-quantity-input-container{border:1px solid #dbcdbb;border-radius:9px;background:#fff}body.theme-click .cart-page .s-cart-summary-card-sheet{background:#fffdf8;border:1px solid #e0d4c2;border-radius:16px;box-shadow:0 8px 28px #30251f0a}body.theme-click .cart-page .s-cart-summary-card-sheet-title{color:#721d2b;font-size:21px}body.theme-click .cart-page .s-cart-summary-card-line{padding-block:10px;font-size:14px}body.theme-click .cart-page .s-cart-summary-card button:not(:disabled),body.theme-click .cart-page .s-cart-coupons-coupon-button-apply{background:#721d2b;color:white;border-color:#721d2b;border-radius:9px}body.theme-click .cart-page .s-conditional-offer-container{background:#f3ebdc;border:1px solid #e3d4bb;border-radius:12px;margin-bottom:24px}body.theme-click .cart-page .no-content-placeholder{border:1px dashed #d9c4a6;border-radius:18px;background:#fffdf8;padding:54px 24px;margin:0}body.theme-click .cart-page .no-content-placeholder .icon{color:#96704b;background:#f2e8d7;border-radius:50%;padding:24px;font-size:40px}body.theme-click .cart-page .no-content-placeholder p{font-size:22px;color:#473027;margin:22px 0}body.theme-click .cart-page .no-content-placeholder a{background:#721d2b;color:#fff;border:0;border-radius:9px;padding:14px 28px}body.theme-click.n2-information .content--single-page{width:100%!important;max-width:1100px;border:1px solid #e3d8c8;border-radius:18px;background:#fffdf8;padding:38px;margin-top:18px;color:#3d3026}body.theme-click.n2-information .content--single-page>h1{font-size:32px;line-height:1.5;padding-bottom:22px;border-bottom:1px solid #e7dbc9;margin-bottom:24px;color:#632333}body.theme-click.n2-information .content-entry{max-width:820px;margin:auto;font-size:16px;line-height:2.05}body.theme-click.n2-information .content-entry h1,body.theme-click.n2-information .content-entry h2,body.theme-click.n2-information .content-entry h3{color:#721d2b;line-height:1.6;scroll-margin-top:180px;margin:30px 0 14px}body.theme-click.n2-information .content-entry h1{font-size:25px}body.theme-click.n2-information .content-entry h2{font-size:21px}body.theme-click.n2-information .content-entry p{margin:14px 0}body.theme-click.n2-information .content-entry li{margin:10px 0}body.theme-click.n2-information .content-entry a{color:#721d2b;text-decoration:underline;text-underline-offset:3px}body.theme-click.n2-information .content-entry img{max-width:100%;height:auto;border-radius:12px}body.theme-click .n2-page-index{background:#f2eadd;border-radius:12px;padding:20px 24px;margin-bottom:28px}body.theme-click .n2-page-index summary{cursor:pointer;font-size:16px;font-weight:700;color:#6a2738}body.theme-click .n2-page-index nav{display:flex;gap:10px 22px;flex-wrap:wrap;padding-top:16px}body.theme-click .n2-page-index a{font-size:13px;color:#5a4434;text-decoration:underline;text-underline-offset:3px}body.theme-click.n2-information .s-comments{border-top:1px solid #e8dece;margin-top:34px;padding-top:28px}body.theme-click .n2-info-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}body.theme-click .n2-info-links a{padding:10px 14px;background:#f2ebdf;border-radius:8px;font-size:12px;color:#5f3c2c}@media(max-width:767px){body.theme-click .n2-submenu{display:none!important}body.theme-click .n2-page-intro{padding:26px 22px;margin:18px 14px 24px;border-radius:13px}body.theme-click .n2-page-intro h1{font-size:28px}body.theme-click .n2-page-intro p{font-size:14px}body.theme-click .n2-category-links{flex-wrap:nowrap;overflow:auto;padding-bottom:8px}body.theme-click .n2-category-links a{white-space:nowrap}body.theme-click.n2-catalog .product-entry__content{padding:12px}body.theme-click.n2-catalog .product-entry__title{font-size:13px;min-height:44px}body.theme-click.n2-catalog .s-products-list-wrapper{gap:12px}body.theme-click.n2-catalog #open-filters-menu{width:auto;min-width:44px;min-height:44px;border:1px solid #d5c3ab;border-radius:9px}body.theme-click .n2-help-strip{padding:22px;flex-direction:column;align-items:flex-start}body.theme-click .cart-page>.n2-page-intro{margin-inline:0}body.theme-click .cart-page .cart-item{padding:18px 14px}body.theme-click .cart-page .cart-item h3{font-size:14px}body.theme-click.n2-information .content--single-page{padding:22px 18px;margin-top:12px;border-radius:12px}body.theme-click.n2-information .content--single-page>h1{font-size:25px}body.theme-click.n2-information .content-entry{font-size:15px;line-height:2}body.theme-click .n2-page-index{padding:18px}body.theme-click .n2-page-index nav{flex-direction:column}body.theme-click .n2-info-links{flex-direction:column}}';pageStyle.textContent+='@media(max-width:767px){body.theme-click.n2-cart #n2-whatsapp{bottom:130px!important;top:auto!important}body.theme-click.n2-cart .s-conditional-offer-title{font-size:15px!important;line-height:1.7!important}body.theme-click.n2-cart .s-conditional-offer-container{padding:18px!important}body.theme-click.n2-cart .s-conditional-offer-progress-container{margin-top:20px!important}}body.theme-click .n2-submenu{max-height:65vh;overflow-y:auto!important}';document.head.append(pageStyle);
function pageHelp(){return make('div','n2-help-strip',''+tr('نساعدك في اختيار العود والإجابة عن استفسارات طلبك.','Our team can help you choose your oud and answer order questions.')+'
'+tr('تواصل عبر واتساب','Ask us on WhatsApp')+' ');}
const catalogMain=document.querySelector('main salla-products-list');if(catalogMain&&!document.querySelector('#n2-home')){document.body.classList.add('n2-catalog');const pageMain=document.querySelector('main');const title=pageMain.querySelector('h1');const intro=make('section','n2-page-intro',''+brandName+'
'+tr('اختر العود الذي يناسب ذائقتك. تصفح المنتجات واستخدم التصفية للوصول إلى اختيارك.','Find the oud that suits your taste. Explore the collection and use the filters to refine your selection.')+'
');intro.querySelector('h1').textContent=title?title.textContent:tr('تشكيلتنا','Our collection');intro.querySelector('nav').setAttribute('aria-label',tr('تصفح الأقسام','Browse categories'));cats.forEach(c=>{const a=make('a','',tr(c[0],c[1]));a.href=url(c[2]);intro.querySelector('nav').append(a);});pageMain.prepend(intro);if(title)title.textContent=tr('المنتجات','Products');const area=catalogMain.closest('.main-content')||catalogMain.parentElement;area.append(pageHelp());}
const cartPage=document.querySelector('.cart-page');if(cartPage){document.body.classList.add('n2-cart');const intro=make('section','n2-page-intro',''+brandName+'
'+tr('سلة مشترياتك','Your shopping bag')+' '+tr('راجع اختياراتك والكميات، ثم تابع لإتمام طلبك.','Review your selection and quantities, then continue to checkout.')+'
'+tr('١ · السلة','1 · Bag')+' — '+tr('٢ · التوصيل','2 · Delivery')+' — '+tr('٣ · الدفع','3 · Payment')+'
');const crumb=cartPage.querySelector('salla-breadcrumb');if(crumb)crumb.after(intro);else cartPage.prepend(intro);cartPage.append(pageHelp());}
const article=document.querySelector('.content--single-page .content-entry');if(article){document.body.classList.add('n2-information');const heads=[...article.querySelectorAll('h1,h2,h3')];if(heads.length>1){const index=make('details','n2-page-index',''+tr('في هذه الصفحة','On this page')+' ');index.open=true;heads.forEach((h,i)=>{h.id=h.id||'n2-section-'+i;const a=make('a','','');a.textContent=h.textContent.trim();a.href='#'+h.id;index.querySelector('nav').append(a);});article.before(index);}const infoLinks=make('nav','n2-info-links','');infoLinks.setAttribute('aria-label',tr('معلومات المتجر','Store information'));document.querySelectorAll('.store-footer a[href*="page-"],.store-footer a[href*="/p/"]').forEach(source=>{if([...infoLinks.children].some(a=>a.href===source.href))return;const a=make('a','','');a.textContent=source.textContent.trim();a.href=source.href;infoLinks.append(a);});article.after(infoLinks,pageHelp());}
// Explicit light surfaces preserve contrast even when the device prefers dark mode.
document.documentElement.classList.remove('dark');document.body.classList.remove('dark','color-mode-dark');document.body.classList.add('color-mode-light');
const contrastStyle=document.createElement('style');contrastStyle.id='n2-contrast-repair';contrastStyle.textContent=`
html:has(body.theme-click){color-scheme:light!important}
body.theme-click{--color-text:#302720;--color-background:#faf7f0;color:#302720!important;background:#faf7f0!important;color-scheme:light!important}
body.theme-click main.store-main{color:#302720!important;background:#faf7f0!important}
body.theme-click main :is(.product-single,.product-details,.product-description,.content-entry,.s-product-options-wrapper,.s-product-options-option,.s-cart-summary-card-sheet){background:#fffdf8!important;color:#302720!important}
body.theme-click main :is(h1,h2,h3,h4,label,.product-entry__title){color:#452c29!important}
body.theme-click main :is(input,select,textarea){background:#fff!important;color:#29221e!important;border-color:#bdb1a2!important;color-scheme:light!important}
body.theme-click main :is(input,textarea)::placeholder{color:#706459!important;opacity:1!important}
body.theme-click main .s-button-primary{background:#662e37!important;color:#fff!important}
body.theme-click main .s-button-primary *{color:inherit!important}
body.theme-click main :is(.product-description,.content-entry) :is(p,li,span,div){color:#302720!important}
body.theme-click .n2-sbc-placement{color:#263e30!important;background:#f0f5eb!important;isolation:isolate}
body.theme-click .n2-sbc-placement p{color:#405440!important}
body.theme-click .n2-sbc-placement{position:relative;z-index:5;margin:40px auto!important;max-width:calc(100% - 32px)}
.n2-national-day{background:#14573f;color:#fff;display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 40px;text-align:center;font-size:14px;line-height:1.6}
.n2-national-day b{color:#fff!important;border:1px solid #c7dfbd;border-radius:50%;width:38px;height:38px;display:grid;place-items:center;flex-shrink:0;font-size:18px}
.n2-national-day span{color:#fff!important}
@media(max-width:767px){.n2-national-day{padding:9px 16px;font-size:12px}.n2-national-day b{width:32px;height:32px;font-size:16px}}
body.theme-click.product-single .product-details .main-content,body.theme-click .s-modal-body,body.theme-click [role="dialog"]{background:#fffdf8!important;color:#302720!important}
body.theme-click.product-single .product-details :is(p,span,small,label),body.theme-click .s-modal-body :is(p,h1,h2,h3,label),body.theme-click [role="dialog"] :is(p,h1,h2,h3,label){color:#302720!important}
body.theme-click.product-single .product-details .s-button-primary,body.theme-click.product-single .product-details .s-button-primary *{color:#fff!important}
body.theme-click.product-single .product-details .main-content{padding:24px;border:1px solid #e0d5c7;border-radius:20px}
body.theme-click .product-name{font-size:clamp(23px,3vw,34px);line-height:1.5}
body.theme-click.product-single main .tabs-panel{color:#302720!important;background:#fffdf8!important}
@media(max-width:767px){body.theme-click.product-single .product-details .main-content{padding:18px 14px;border-radius:14px}body.theme-click.product-single main{overflow-wrap:anywhere}}
/* National Day 96 — original decorative skyline, no external assets. */
body.theme-click .n2-national-day{position:relative;isolation:isolate;overflow:hidden;display:block;padding:0;background:radial-gradient(ellipse at 15% 20%,#287450 0,transparent 55%),linear-gradient(115deg,#073d30,#12533b 60%,#072e26);border-bottom:1px solid #bca76d;color:#fff;min-height:134px}
.n2-national-day:after{content:"";position:absolute;inset:-100% -30%;z-index:-1;background:linear-gradient(110deg,transparent 42%,#ffffff09 49%,transparent 56%);animation:n2-day-glow 12s ease-in-out infinite;pointer-events:none}
.n2-day-inner{position:relative;max-width:1280px;margin:auto;display:flex;align-items:center;gap:26px;padding:24px 36px;text-align:start;min-height:134px}
.n2-day-number{width:90px;flex:0 0 90px;text-align:center;border-inline-end:1px solid #c7b78070;padding-inline-end:24px}
.n2-national-day .n2-day-number>span{display:block;font-size:54px;line-height:1;font-weight:800;letter-spacing:-3px;color:#efdfad!important;text-shadow:0 2px 20px #efdfad26}
.n2-national-day .n2-day-number small{display:block;font-size:8px;letter-spacing:1px;line-height:1.8;margin-top:8px;color:#f1e7c9!important;white-space:nowrap}
.n2-day-copy{display:flex;flex-direction:column;gap:7px;max-width:690px;position:relative;z-index:1}
.n2-national-day .n2-day-eyebrow{font-size:10px;font-weight:600;letter-spacing:2.3px;color:#efdfad!important}
.n2-national-day .n2-day-copy strong{font-size:clamp(19px,2.1vw,27px);font-weight:600;line-height:1.5;color:#fff!important}
.n2-national-day .n2-day-note{font-size:11px;line-height:1.7;color:#e2eee5!important}
.n2-national-day .n2-day-date{margin-inline-start:auto;align-self:flex-start;font-size:9px;letter-spacing:1.5px;color:#efdfad!important;border:1px solid #b8b58a70;border-radius:20px;padding:7px 12px;white-space:nowrap}
.n2-day-art{position:absolute;inset-inline-end:0;bottom:0;width:420px;opacity:.34;z-index:-1;pointer-events:none;animation:n2-day-breathe 9s ease-in-out infinite}
.n2-day-art svg{width:100%;height:auto;display:block}
@keyframes n2-day-glow{0%,100%{transform:translateX(-15%)}50%{transform:translateX(15%)}}
@keyframes n2-day-breathe{0%,100%{opacity:.26}50%{opacity:.45}}
@media(max-width:767px){body.theme-click .n2-national-day{min-height:140px}.n2-day-inner{min-height:140px;padding:19px 17px;gap:16px}.n2-day-number{width:66px;flex-basis:66px;padding-inline-end:14px}.n2-national-day .n2-day-number>span{font-size:44px}.n2-national-day .n2-day-number small{font-size:7px;letter-spacing:0}.n2-day-copy{gap:6px;padding-block:5px}.n2-national-day .n2-day-eyebrow{font-size:8px;letter-spacing:1.1px}.n2-national-day .n2-day-copy strong{font-size:18px;line-height:1.55}.n2-national-day .n2-day-note{font-size:10px}.n2-national-day .n2-day-date{display:block;position:absolute;bottom:7px;inset-inline-end:17px;font-size:8px;letter-spacing:.4px;padding:3px 8px}.n2-day-inner{padding-bottom:35px}.n2-day-art{width:280px;opacity:.22}}
@media(prefers-reduced-motion:reduce){.n2-national-day:after,.n2-day-art{animation:none!important}}
/* National Day refinement: illuminated anniversary seal and woven golden detail. */
body.theme-click .n2-national-day{background:radial-gradient(ellipse at 80% 110%,#38754a66,transparent 50%),radial-gradient(ellipse at 0% 0%,#34846188,transparent 48%),linear-gradient(110deg,#063e31,#062c25);border-bottom:3px solid #c2a765;min-height:184px}
.n2-national-day:before{content:"";position:absolute;inset:8px;pointer-events:none;border:1px solid #d9c58d30;z-index:-1;background-image:radial-gradient(circle,#e3cd9229 1px,transparent 1.3px);background-size:22px 22px;mask-image:linear-gradient(90deg,#000,transparent 38%,transparent 62%,#000)}
.n2-day-inner{min-height:184px;max-width:1320px;padding:27px 42px;gap:30px}
.n2-day-number{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;width:116px;height:116px;flex:0 0 116px;padding:0;border:1px solid #f0d892;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff8d2,#d9bd79 65%,#a38140);box-shadow:0 0 0 6px #d7bf7912,0 0 0 7px #e5d09755,0 9px 28px #0003;transform:rotate(-7deg)}
.n2-day-number:before{content:"";position:absolute;inset:6px;border:1px dashed #34523680;border-radius:50%}
.n2-national-day .n2-day-number>span{font-size:66px;color:#124735!important;letter-spacing:-4px;text-shadow:0 1px 0 #fff8;line-height:.95}
.n2-national-day .n2-day-number small{font-size:8px;letter-spacing:.9px;color:#204c38!important;margin-top:7px}
.n2-day-copy{max-width:740px;gap:8px}
.n2-national-day .n2-day-eyebrow{display:flex;align-items:center;gap:10px;color:#f3dd9f!important;font-size:11px;letter-spacing:2px}
.n2-day-eyebrow:before{content:"✦";font-size:16px;animation:n2-star 5s ease-in-out infinite}
.n2-national-day .n2-day-copy strong{font-size:clamp(26px,3.1vw,43px);font-weight:700;line-height:1.4;letter-spacing:-.5px;text-shadow:0 2px 18px #0003}
.n2-national-day .n2-day-note{font-size:13px;color:#f0f3e8!important;line-height:1.8}
.n2-national-day .n2-day-date{position:absolute;bottom:20px;inset-inline-end:40px;align-self:auto;letter-spacing:.5px;background:#062e25b8;border-color:#d2bd8170;color:#f8e4b1!important;font-size:10px;backdrop-filter:blur(4px)}
.n2-day-art{width:480px;opacity:.55;animation:n2-day-breathe 10s ease-in-out infinite;inset-inline-end:-15px;bottom:3px}
@keyframes n2-day-breathe{0%,100%{opacity:.36}50%{opacity:.62}}
@keyframes n2-star{0%,100%{opacity:.65;transform:scale(.85)}50%{opacity:1;transform:scale(1.1)}}
@media(max-width:767px){body.theme-click .n2-national-day{min-height:218px}.n2-day-inner{min-height:218px;padding:26px 22px 45px;gap:21px;align-items:center}.n2-day-number{width:79px;height:79px;flex-basis:79px}.n2-national-day .n2-day-number>span{font-size:47px;letter-spacing:-3px}.n2-national-day .n2-day-number small{font-size:6px;letter-spacing:.2px;margin-top:4px}.n2-day-copy{gap:7px}.n2-national-day .n2-day-eyebrow{font-size:8px;letter-spacing:.7px;gap:5px}.n2-day-eyebrow:before{font-size:11px}.n2-national-day .n2-day-copy strong{font-size:25px;line-height:1.4;letter-spacing:-.3px}.n2-national-day .n2-day-note{font-size:10px;line-height:1.7}.n2-national-day .n2-day-date{bottom:13px;inset-inline-end:22px;font-size:9px;padding:4px 10px}.n2-day-art{width:330px;bottom:0;opacity:.35}.n2-national-day:before{inset:7px}}
@media(max-width:359px){.n2-day-inner{gap:15px;padding-inline:17px}.n2-day-number{width:67px;height:67px;flex-basis:67px}.n2-national-day .n2-day-copy strong{font-size:22px}}
@media(prefers-reduced-motion:reduce){.n2-day-eyebrow:before{animation:none!important}}
/* Reference-inspired charcoal and green geometric celebration. */
body.theme-click .n2-national-day{min-height:164px;padding:0;background:#202a34;border-block:4px solid #248755;isolation:isolate}
.n2-national-day:before{inset:0;border:0;background:repeating-conic-gradient(#ffffff03 0% 25%,transparent 0% 50%) 50%/36px 36px;mask-image:none;z-index:-1}
.n2-national-day:after{inset:0;z-index:-1;background:linear-gradient(110deg,transparent 20%,#40946712 50%,transparent 80%);animation:n2-day-glow 12s ease-in-out infinite}
.n2-ref-inner{max-width:1400px;margin:auto;display:grid;grid-template-columns:minmax(170px,1fr) 52px minmax(360px,2.6fr) 52px minmax(140px,.8fr);align-items:stretch;min-height:164px;padding-inline:30px}
.n2-ref-brand,.n2-ref-anniversary{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:20px 12px;gap:9px;background:#202a34aa}
.n2-national-day .n2-ref-brand strong{color:#fff!important;font-size:clamp(16px,1.7vw,25px);font-weight:700;line-height:1.5;max-width:220px}
.n2-national-day .n2-ref-brand span{color:#d5e2dc!important;font-size:9px;letter-spacing:.7px}
.n2-ref-message{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:18px 24px}
.n2-national-day .n2-ref-message>strong{font-size:clamp(28px,3.5vw,49px);font-weight:900;line-height:1.2;letter-spacing:-1px;color:#fff!important;transform:skew(-5deg)}
.n2-national-day .n2-ref-message>span{font-size:16px;color:#fff!important;letter-spacing:1px}
.n2-national-day .n2-ref-message .n2-day-date{position:static;display:block;margin:2px 0 0;border:0;background:none;backdrop-filter:none;padding:0;letter-spacing:1px;color:#c4d8cd!important;font-size:10px;line-height:1.6}
.n2-national-day .n2-ref-anniversary b{display:block;width:auto;height:auto;border:0;border-radius:0;font-weight:800;font-size:65px;line-height:1;color:#fff!important;letter-spacing:-3px}
.n2-national-day .n2-ref-anniversary span{font-size:10px;color:#d5e2dc!important;letter-spacing:1px}
.n2-ref-pattern{background:conic-gradient(from 90deg,#269960 25%,transparent 0% 50%,#269960 0% 75%,transparent 0%) 0 0/36px 36px;border-inline:3px dashed #369764;mask-image:linear-gradient(180deg,#000 0%,#000 22%,transparent 49%,#000 77%,#000 100%);opacity:.85}
@media(max-width:767px){body.theme-click .n2-national-day{min-height:195px;border-block-width:3px}.n2-ref-inner{grid-template-columns:18px 1fr 70px 18px;min-height:195px;padding-inline:10px;position:relative}.n2-ref-brand{grid-column:2/4;grid-row:1;padding:12px 5px 0;background:none;gap:2px}.n2-national-day .n2-ref-brand strong{font-size:12px;max-width:none;letter-spacing:.5px}.n2-national-day .n2-ref-brand span{display:none}.n2-ref-pattern{grid-row:1/3;background-size:22px 22px;border-inline-width:1px}.n2-ref-pattern:nth-child(2){grid-column:1}.n2-ref-pattern:nth-child(4){grid-column:4}.n2-ref-message{grid-column:2;grid-row:2;padding:12px 8px 18px;gap:8px}.n2-national-day .n2-ref-message>strong{font-size:29px;line-height:1.2;letter-spacing:-.8px}.n2-national-day .n2-ref-message>span{font-size:11px;letter-spacing:.3px}.n2-national-day .n2-ref-message .n2-day-date{font-size:9px;letter-spacing:0}.n2-ref-anniversary{grid-column:3;grid-row:2;padding:0 6px 10px;background:none;border-inline-start:1px solid #71948744;align-self:center;gap:7px}.n2-national-day .n2-ref-anniversary b{font-size:43px}.n2-national-day .n2-ref-anniversary span{font-size:7px;letter-spacing:0}}
/* Clean unbranded National Day composition. */
body.theme-click .n2-national-day{background:radial-gradient(ellipse at 50% 110%,#20453655,transparent 65%),#1d2932;border-top:2px solid #31a56c;border-bottom:2px solid #31a56c;min-height:174px}
.n2-national-day:before{background:repeating-conic-gradient(#ffffff05 0% 25%,transparent 0% 50%) 50%/30px 30px;opacity:.35}
.nd96-layout{max-width:1000px;margin:auto;min-height:174px;display:flex;justify-content:center;align-items:center;gap:44px;padding:22px 80px;position:relative;z-index:1}
.nd96-number{text-align:center;flex:0 0 122px;padding-inline-end:36px;border-inline-end:1px solid #b1dbbf45}
.n2-national-day .nd96-number b{display:block;position:static;width:auto;height:auto;border:0;border-radius:0;color:#fff!important;font-size:80px;line-height:1;font-weight:800;letter-spacing:-4px;text-shadow:3px 3px 0 #33946150}
.n2-national-day .nd96-number span{display:block;margin-top:10px;color:#9de0b9!important;font-size:9px;letter-spacing:.8px;white-space:nowrap}
.nd96-copy{text-align:center;display:flex;flex-direction:column;gap:8px}
.n2-national-day .nd96-kicker{color:#a7dfbd!important;font-size:11px;letter-spacing:2px;font-weight:600}
.n2-national-day .nd96-copy strong{color:#fff!important;font-size:clamp(32px,4vw,54px);font-weight:900;line-height:1.25;letter-spacing:-1px;transform:skew(-4deg)}
.n2-national-day .nd96-date{color:#d6e2dc!important;font-size:10px;letter-spacing:.7px;line-height:1.5}
.nd96-edge{position:absolute;top:0;bottom:0;width:80px;pointer-events:none;opacity:.8;background:conic-gradient(from 90deg,#29965c 25%,transparent 0% 50%,#29965c 0% 75%,transparent 0%) 0 0/32px 32px;mask-image:linear-gradient(180deg,#000,transparent 46%,#000);border-inline:1px solid #50b67a44}
.nd96-edge-start{inset-inline-start:20px;transform:skew(-9deg)}.nd96-edge-end{inset-inline-end:20px;transform:skew(-9deg)}
@media(max-width:767px){body.theme-click .n2-national-day{min-height:166px}.nd96-layout{min-height:166px;gap:20px;padding:23px 34px}.nd96-number{flex:0 0 67px;padding-inline-end:17px}.n2-national-day .nd96-number b{font-size:54px;letter-spacing:-3px}.n2-national-day .nd96-number span{font-size:6px;letter-spacing:0;margin-top:7px}.nd96-copy{gap:9px}.n2-national-day .nd96-copy strong{font-size:30px;line-height:1.25;letter-spacing:-.5px}.n2-national-day .nd96-kicker{font-size:8px;letter-spacing:.3px}.n2-national-day .nd96-date{font-size:8px;letter-spacing:0}.nd96-edge{width:18px;background-size:20px 20px;opacity:.6}.nd96-edge-start{inset-inline-start:4px}.nd96-edge-end{inset-inline-end:4px}}
/* Wholesale statement: explicit high contrast overrides broad heading rules. */
body.theme-click main.store-main .n2-promise{background:linear-gradient(115deg,#33241f,#231d1a)!important;color:#fff8eb!important;padding:48px 24px!important;text-align:center;border-block:1px solid #b7996355}
body.theme-click main.store-main .n2-promise>span{display:block;color:#e8c98b!important;font-size:12px;letter-spacing:1px;margin-bottom:17px}
body.theme-click main.store-main .n2-promise h2{color:#fff8eb!important;font-size:clamp(25px,3vw,40px)!important;line-height:1.65!important;font-weight:700;max-width:960px;margin:0 auto 24px!important;text-wrap:balance}
body.theme-click main.store-main .n2-promise .n2-text-link{display:inline-flex;align-items:center;justify-content:center;color:#2b211b!important;background:#f3dfb6!important;border:1px solid #f3dfb6;border-radius:8px;padding:12px 22px;text-decoration:none!important;font-size:14px;font-weight:600;transition:background .2s,transform .2s}
body.theme-click main.store-main .n2-promise .n2-text-link:hover{background:#fff0d2!important;transform:translateY(-2px)}
body.theme-click main.store-main .n2-promise .n2-text-link:focus-visible{outline:3px solid #fff;outline-offset:4px}
@media(max-width:767px){body.theme-click main.store-main .n2-promise{padding:34px 22px!important}body.theme-click main.store-main .n2-promise h2{font-size:25px!important;line-height:1.75!important;margin-bottom:20px!important}body.theme-click main.store-main .n2-promise>span{font-size:10px}body.theme-click main.store-main .n2-promise .n2-text-link{font-size:12px;padding:11px 18px}}
/* Shared visibility and containment repairs. */
body.theme-click main.store-main .n2-stories .n2-story{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);padding:0!important;align-items:stretch;min-height:340px;overflow:hidden}
body.theme-click main.store-main .n2-story>img{position:static!important;inset:auto!important;grid-column:2;grid-row:1;width:100%!important;height:100%!important;min-height:340px;object-fit:cover;opacity:1!important;max-width:100%}
body.theme-click main.store-main .n2-story>div{grid-column:1;grid-row:1;position:relative;width:auto!important;max-width:none!important;min-width:0;padding:30px 26px;align-self:center;overflow-wrap:break-word}
body.theme-click main.store-main .n2-story h2{font-size:clamp(23px,2.15vw,31px)!important;line-height:1.5!important;margin:15px 0 20px;overflow-wrap:break-word;color:#38271f!important}
body.theme-click main.store-main .n2-story p{font-size:14px;line-height:1.8;color:#493b32!important}
body.theme-click main.store-main .n2-story :is(span,b){color:#493b32!important}
body.theme-click main.store-main .n2-story-dark :is(h2,p,span,b){color:#fff8ef!important}
body.theme-click main.store-main .n2-story-dark{background:#4e202a!important}
body.theme-click .store-header :is(.mburger,.header-btn,.s-user-menu-trigger,.s-cart-summary-icon,.s-cart-summary-total,.s-search-icon){color:#452923!important;opacity:1!important}
body.theme-click .store-header :is(.mburger,.header-btn,.s-user-menu-trigger){min-width:40px;min-height:40px}
body.theme-click .store-header :is(.mburger i,.header-btn i,.s-user-menu-trigger-icon,.s-cart-summary-icon){color:#452923!important;opacity:1!important;font-size:24px!important}
body.theme-click .store-header .s-cart-summary-count{background:#762d3a!important;color:#fff!important;border:2px solid #fff8ef;line-height:18px;min-width:21px;min-height:21px}
body.theme-click :is(.side-panel--menu,.s-user-menu-dropdown,.n2-submenu){color:#302720!important;background:#fffdf8!important}
body.theme-click :is(.side-panel--menu,.s-user-menu-dropdown,.n2-submenu) a{color:#302720!important}
body.theme-click :is(input.s-form-control,select.s-form-control,input.form-input,.s-cart-coupon-input){box-sizing:border-box;min-height:44px;line-height:1.5!important;padding-block:10px!important;color:#302720!important;background:#fffdf8!important;border-color:#a99a87!important}
body.theme-click input.s-quantity-input-input{box-sizing:border-box;height:40px!important;min-height:40px!important;padding:0 4px!important;line-height:40px!important;text-align:center!important;color:#302720!important;background:#fffdf8!important}
body.theme-click .s-quantity-input-container{min-height:42px;align-items:center}
body.theme-click textarea{box-sizing:border-box;line-height:1.6!important;padding:12px!important;color:#302720!important;background:#fffdf8!important}
body.theme-click input::placeholder,body.theme-click textarea::placeholder{color:#756656!important;opacity:1!important}
body.theme-click :is(input,select,textarea,button,a):focus-visible{outline:2px solid #874850;outline-offset:3px}
body.theme-click :is(.s-search-input){box-sizing:border-box;min-height:44px;line-height:22px!important;padding-block:10px!important;color:#302720!important;background:#f6f1e8!important}
body.theme-click main .s-button-primary,body.theme-click main .s-button-primary :is(span,i,svg){color:#fff!important}
body.theme-click .s-button-disabled{opacity:.6}
@media(max-width:767px){body.theme-click main.store-main .n2-stories .n2-story{grid-template-columns:minmax(0,1fr);min-height:0}body.theme-click main.store-main .n2-story>img{grid-column:1;grid-row:1;height:190px!important;min-height:0;object-position:center}body.theme-click main.store-main .n2-story>div{grid-column:1;grid-row:2;padding:24px}body.theme-click main.store-main .n2-story h2{font-size:26px!important;margin:10px 0 14px}body.theme-click :is(input.s-form-control,select.s-form-control,input.form-input,textarea){font-size:16px!important}}
body.theme-click main.store-main .n2-heading p{color:#655448!important}
`;document.head.append(contrastStyle);
const nationalDayExpiresAt=Date.parse('2026-09-26T07:35:18+03:00');
if(Date.now()'+tr('٩٦','96')+' '+tr('عاماً من العز','YEARS OF PRIDE')+'
'+tr('اليوم الوطني السعودي','SAUDI NATIONAL DAY')+' '+tr('عزّنا بطبعنا','PRIDE IN OUR NATURE')+' '+tr('١٢ ربيع الآخر ١٤٤٨ هـ','12 RABI AL-THANI 1448 AH')+'
');day.dataset.expiresAt='2026-09-26T07:35:18+03:00';day.setAttribute('aria-label',tr('اليوم الوطني السعودي ٩٦','Saudi National Day 96'));document.querySelector('.store-header')?.before(day);}
function expireNationalDay(){if(Date.now()>=nationalDayExpiresAt)document.querySelector('.n2-national-day')?.remove();}
const nationalDayRemaining=nationalDayExpiresAt-Date.now();if(nationalDayRemaining>0)setTimeout(expireNationalDay,nationalDayRemaining+100);
window.addEventListener('pageshow',expireNationalDay);document.addEventListener('visibilitychange',expireNationalDay);
if(!isHome){const badge=document.querySelector('.n2-sbc-placement');const pageMain=document.querySelector('main.store-main');if(badge&&pageMain)pageMain.after(badge);}
function localizeNative(){
document.querySelectorAll('.store-footer a[href],.n2-policy-links a[href]').forEach(a=>{try{const u=new URL(a.href);if(u.hostname==='nafahaloud.com'&&/\/(page-|p\/)/.test(u.pathname)){u.pathname=u.pathname.replace(/^\/(ar|en)(?=\/)/,ar?'/ar':'/en');if(u.searchParams.has('lang'))u.searchParams.set('lang',ar?'ar':'en');a.href=u.href;}}catch(e){}});
// Keep native page links in the language selected by the customer, within this draft only.
document.querySelectorAll('a[href]').forEach(a=>{try{const u=new URL(a.href);if(u.hostname!=='nafahaloud.com'||/\/(checkout|payment|order|account)(\/|$)/.test(u.pathname))return;if(location.hostname==='salla.sa'&&/^\/(ar|en)(\/|$)/.test(u.pathname)){const root=new URL(storeRoot);u.hostname=root.hostname;u.pathname=root.pathname.replace(/\/$/,'')+u.pathname.replace(/^\/(ar|en)/,'');a.href=u.href;} }catch(e){}});
document.querySelectorAll('.store-footer strong,.store-footer a,.side-panel--menu h1').forEach(el=>{if(/^(Nafah Atyab Al-Oud|نفح اطيب العود)$/i.test(el.textContent.trim()))el.textContent=brandName;});
const menuBtn=document.querySelector('button[aria-label="Open Menu"]');if(menuBtn)menuBtn.setAttribute('aria-label',tr('فتح القائمة','Open menu'));
document.querySelectorAll('a[href="#login"]').forEach(el=>el.setAttribute('aria-label',tr('تسجيل الدخول','Sign in')));
document.querySelectorAll('.store-header h2,.side-panel--menu h2').forEach(el=>{if(/^(Nafah Atyab Al-Oud|نفح اطيب العود)$/i.test(el.textContent.trim()))el.textContent=brandName;});
}
document.addEventListener('click',function(e){const a=e.target.closest('a[href]');if(a)localizeNative();},true);
localizeNative();window.addEventListener('load',localizeNative,{once:true});setTimeout(localizeNative,1500);setTimeout(localizeNative,4000);
if(!document.getElementById('n2-whatsapp')){ const wa=make('a','n2-whatsapp',' '); wa.id='n2-whatsapp';wa.href='https://wa.me/966570391045';wa.target='_blank';wa.rel='noopener';wa.setAttribute('aria-label',tr('تواصل مع نفح اطيب العود عبر واتساب','Contact NAFAH ATYAB AL-OUD on WhatsApp'));document.body.append(wa);
wa.setAttribute('aria-label',tr('واتساب 0570391045. اسحب الزر لتغيير مكانه.','WhatsApp 0570391045. Drag to reposition.'));wa.title=tr('اسحب لتغيير المكان، واضغط لفتح واتساب','Drag to move, click to open WhatsApp');
let dragState=null,suppressClick=false;
function place(x,y){wa.style.inset='auto';wa.style.left=Math.max(8,Math.min(x,window.innerWidth-wa.offsetWidth-8))+'px';wa.style.top=Math.max(8,Math.min(y,window.innerHeight-wa.offsetHeight-8))+'px';}
wa.addEventListener('pointerdown',e=>{if(e.button!==0)return;const r=wa.getBoundingClientRect();dragState={x:e.clientX,y:e.clientY,left:r.left,top:r.top,moved:false};suppressClick=false;wa.setPointerCapture(e.pointerId);});
wa.addEventListener('pointermove',e=>{if(!dragState)return;const dx=e.clientX-dragState.x,dy=e.clientY-dragState.y;if(Math.hypot(dx,dy)>6)dragState.moved=true;if(dragState.moved){e.preventDefault();place(dragState.left+dx,dragState.top+dy);}});
wa.addEventListener('pointerup',()=>{if(dragState)suppressClick=dragState.moved;dragState=null;});wa.addEventListener('pointercancel',()=>{dragState=null;suppressClick=true;});
wa.addEventListener('click',e=>{if(suppressClick){e.preventDefault();suppressClick=false;}});
window.addEventListener('resize',()=>{if(wa.style.left){const r=wa.getBoundingClientRect();place(r.left,r.top);}});
wa.addEventListener('keydown',e=>{if(!e.altKey||!['ArrowLeft','ArrowRight','ArrowUp','ArrowDown'].includes(e.key))return;e.preventDefault();const r=wa.getBoundingClientRect();place(r.left+(e.key==='ArrowRight'?20:e.key==='ArrowLeft'?-20:0),r.top+(e.key==='ArrowDown'?20:e.key==='ArrowUp'?-20:0));});
}}if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',init,{once:true});else init();})();