<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en" />

<meta property="og:image" content="https://w2.chabad.org/media/images/1320/SYVD13204788.png" itemprop="image" width="150" height="150" />
<meta property="og:image:width" content="150" />
<meta property="og:image:height" content="150" />
<meta name="keywords" content="Kosher,Kitchen,1" />
<meta name="title" content="Kosher Kitchen 1 - Chabad Cambodia" />
<meta property="og:type" content="website" />
<meta name="scope-aids" content="1015798-1015806-2900143-7260181-7320761" />
<meta name="article-keywords" content="1675-6760-16403-16669-2170-2898" />
<meta name="scope-aid" content="1015798" />
<meta name="scope-aid" content="1015806" />
<meta name="scope-aid" content="2900143" />
<meta name="scope-aid" content="7260181" />
<meta name="scope-aid" content="7320761" />
<meta name="article-keyword" content="1675" />
<meta name="article-keyword" content="6760" />
<meta name="article-keyword" content="16403" />
<meta name="article-keyword" content="16669" />
<meta name="article-keyword" content="2170" />
<meta name="article-keyword" content="2898" />
<meta property="og:url" content="https://www.jewishcambodia.com/templates/articlecco_cdo/aid/7320761/jewish/Kosher-Kitchen-1.htm" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:site" content="@chabad" />
<meta property="og:title" content="Kosher Kitchen 1 - Chabad Cambodia" /><link rel="canonical" href="https://www.jewishcambodia.com/templates/articlecco_cdo/aid/7320761/jewish/Kosher-Kitchen-1.htm" />
<link rel="icon" type="image/png" href="https://www.jewishcambodia.com/media/images/1320/SYVD13204788.png" />
<link rel="Stylesheet" href="/css/fonts/font-awesome/font-awesome-5.css?g=30&v=2D6ABDDB" id="kfont-awesome" type="text/css"/>
<link rel="Stylesheet" href="/css/DefaultGrid.css?g=30&v=A13D74E8" id="kgrid" type="text/css"/>
<link rel="Stylesheet" href="/css/Elements.css?g=30&v=3A4C63F4" id="k6" type="text/css"/>
<link rel="Stylesheet" href="/css/vendor/ds/tokens/sites.css?g=30&v=A934B108" id="ksites-ds-css" type="text/css"/>
<link rel="Stylesheet" href="/css/new/main.css?g=30&v=BB63DD50" id="k7" type="text/css"/>
<link rel="Stylesheet" href="/css/old/global.css?g=30&v=43DDBA77" id="k2898" type="text/css"/>
<link rel="Stylesheet" href="/css/bootstrap/grid.css?g=30&v=F4390F2B" id="kbootstrap4-grid" type="text/css"/>
<link rel="Stylesheet" href="/css/Library/reader-comments.css?g=30&v=8AB57D79" id="kCommentsStylesheet" type="text/css"/>
<link rel="Stylesheet" href="/css/inline/BookInfo.css?g=30&v=3D052243" id="kBookInfoCss" type="text/css"/>

<script>$q=[];$j=function(f){$q.push(f);}</script>
<script type="text/javascript" src="https://w2.chabad.org/scripts/js/os/jquery-latest.min.js?g=30&v=278824AF"></script>
<script type="text/javascript" src="https://w2.chabad.org/scripts/js/co/dist/CoLib.js?g=30&v=98C851E4"></script>
<script type="text/javascript" src="https://w2.chabad.org/scripts/js/WebComponents/bundles/magen-cdo-global.js?g=30&v=41844740"></script>
<script type="text/javascript" src="https://w2.chabad.org/scripts/js/custom/multimedia/infolayer.js?g=30&v=ED1B8531"></script>
<script type="text/javascript" src="https://w2.chabad.org/scripts/js/article/comments/reply-form-controller.js?g=30&v=DC70C970"></script>
<script type="text/javascript" src="https://w2.chabad.org/scripts/js/custom/commentsloader.js?g=30&v=AD6AAB79"></script>
<script type="text/javascript" src="https://w2.chabad.org/scripts/js/custom/subscribeprompt.js?g=30&v=86D84DC2"></script>
<script type="text/javascript" src="https://w2.chabad.org/scripts/js/custom/deprecated.js?v=D506A83E&g=30"></script><script>$j = $j.fn ? $j : jQuery;$j(()=>{$q.forEach(f=>{try{f.call(window);}catch(ex){console.error(ex);}});})</script><script  language="javascript" type="text/javascript"> Co.Settings      = {CacheClassName:'js-cache-default',MosadName:'Chabad Cambodia'}; Co.ArticleId     = '7320761';Co.SectionId     = 2900143;Co.PartnerSiteId = 0;Co.SiteId        = 8578;Co.IsMobilePage  = false;Co.IsResponsive  = false;Co.DbDomain      = 'JewishCambodia.com';Co.LanguageCode  = '';Co.LoginStatus   = 'None';</script><script>
<!-- -->
</script> 
	
	<style type="text/css">
		body{margin:0;}
	</style>
	


<script>
	window.dataLayer = window.dataLayer || [];
	dataLayer.push({"event":"datalayer-initialized","page":{"numberOfComments":0,"publicationDate":"2026-04-12","primaryArticleId":7320761,"title":"","author":"","authorId":0,"contentLevel1":"My Site","contentLevel2":"TEST form","contentLevel3":"Test Ben ","contentLevel4":"Kosher Kitchen 1","siteName":"Chabad Cambodia"},"time":{"upcomingHoliday":"Rosh Hashanah","daysToUpcomingHoliday":24,"hebrewDate":"5786-06-06"}});
		dataLayer.push({ 'articleHierarchy': '-1015798-1015806-2900143-7260181-7320761-', 'keywords': '-k2898-k2170-k16669-k16403-k6760-k1675-', 'k': '-1015798-1015806-2900143-7260181-7320761--k2898-k2170-k16669-k16403-k6760-k1675-' });
	
</script>
<script>

(function(c,h,a,b,a,d){c[a]=c[a]||[];c[a].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=h.getElementsByTagName(b)[0],
j=h.createElement(b);j.async=true;
j.src='https://w6.chabad.org/mitzvah-tank.js';f.parentNode.insertBefore(j,f);
})(window,document,0,'script','dataLayer');</script>

	<!-- Start of StatCounter Code -->
	<script type="text/javascript">
	var sc_project = 5233248;var sc_partition = 59;var sc_invisible = 1;var sc_remove_link=1;var sc_security = "dd1664a7";var sc_https = 1;
	</script>
	<script type="text/javascript" src="https://secure.statcounter.com/counter/counter_xhtml.js" defer async></script>
	<noscript><img src="//c60.statcounter.com/counter.php?sc_project=5233248&amp;java=0&amp;security=dd1664a7&amp;invisible=1" border="0" /> </noscript>
	<!-- End of StatCounter Code -->


<title>
	Kosher Kitchen 1 - Chabad Cambodia
</title></head>
<body class="lang_en dir_ltr cco_body cco_templateless_page">
	
	
		<div width="100%" class="cco_templateless_template" style="z-index:100 !important;display:block !important;left:0px !important;top:0px !important;height:30px!important;width:100% !important;line-height:30px !important; position:relative !important; margin-bottom:0 !important; padding:0;text-indent: 25px;" align="Left"><a href="//www.JewishCambodia.com" style="display:block!important;font-size:14px !important;">&laquo; Back to&nbsp;Chabad Cambodia</a></div>
	
	<div class="cco_templatelates_content">
		
	<div id="cco_body">
		<div class="content  no_margin no_overflow" id="co_content_container">
			
			
	

	<article class="content js-content" itemscope itemtype="http://schema.org/Article">
	



<meta itemprop="mainEntityOfPage headline name" content="" />

<meta itemprop="image" content="" />


<meta itemprop="uploadDate" content="2026-04-12T06:55:37" />
<span itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
	<meta itemprop="name" content="Chabad Cambodia" />
	<meta itemprop="brand" content="Chabad Cambodia" />
	<span itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
		<meta itemprop="url" content="https://w2.chabad.org/media/images/1320/SYVD13204788.png" />
		<meta itemprop="height" content="150" />
		<meta itemprop="width" content="150" />
	</span>
</span>
<meta itemprop="datePublished" content="2026-04-12T06:55:37" />
			<div itemprop="articleBody">
				<co:body xmlns:co="www1.chabadonline.com/alpha1" xmlns:ext="urn:xslt-extensions">
  <div class="co_body article-body cf">
<div style="max-width:640px;margin:0 auto;direction:rtl;text-align:right;font-family:Arial,Helvetica,sans-serif;color:#1a1a2e;">

<!-- ══ HERO ══ -->
  <div style="background:linear-gradient(150deg,#e8fbf9 0%,#f5fffe 60%,#fffbe8 100%);margin:0 -20px 0;padding:28px 28px 22px;text-align:center;border-bottom:3px solid #2bbdb5;position:relative;"><section>
<div style="display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px;">
<div style="display:flex;gap:5px;">
<button id="btn-he" onclick="chb_setLang('he')" style="background:#2bbdb5;border:2px solid #2bbdb5;padding:3px 8px;border-radius:16px;cursor:pointer;font-size:19px;line-height:1.1;font-family:Arial,sans-serif;">🇮🇱</button>
<button id="btn-en" onclick="chb_setLang('en')" style="background:transparent;border:2px solid #c8ecea;padding:3px 8px;border-radius:16px;cursor:pointer;font-size:19px;line-height:1.1;font-family:Arial,sans-serif;">🇬🇧</button>
</div>
<div style="flex:1;"></div>
</div>
<div style="font-size:11px;color:#2bbdb5;letter-spacing:3px;text-transform:uppercase;font-weight:700;margin-bottom:10px;">חב"ד קמבודיה · פנום פן</div>
</section><section><h2 id="mainTitle" style="font-family:Georgia,'Times New Roman',serif;font-size:36px;font-weight:900;color:#1a1a2e;line-height:1.15;margin:0 0 6px;">מטבח <span style="color:#2bbdb5;">כשר</span></h2>
<div style="width:50px;height:2px;background:linear-gradient(to right,transparent,#f5a520,transparent);margin:0 auto;"></div>
</section></div>

<!-- ══ NIGHT NOTICE ══ -->
  <div id="nightNotice" style="display:none;background:#fffbea;border:1px solid #e0a800;border-radius:8px;padding:9px 14px;font-size:13px;color:#7a5800;text-align:center;margin:14px 0 0;font-weight:600;"></div>

<!-- ══ CUSTOMER FORM ══ -->
  <div style="background:#f4fffe;border-radius:14px;border-top:4px solid #2bbdb5;padding:20px 18px;margin-top:20px;margin-bottom:16px;">
<div id="formCardTitle" style="font-family:Georgia,serif;font-size:18px;font-weight:700;color:#1a1a2e;margin-bottom:3px;">🛒 פרטי הזמנה</div>
<div id="formCardSubtitle" style="font-size:12px;color:#778099;margin-bottom:16px;">מלא פרטים ובחר את אפשרות ההזמנה</div>
<div style="display:flex;flex-direction:column;align-items:center;gap:10px;">
<input type="text" id="customerName" placeholder="שם לקוח (אנגלית בלבד)..." oninput="chb_enforceEnglishName(this);chb_updateSummary()" style="width:100%;max-width:400px;padding:9px 11px;font-size:14px;border-radius:8px;border:1px solid #b2e8e5;outline:none;background:#ffffff;color:#1a1a2e;font-family:Arial,sans-serif;box-sizing:border-box;">
<div style="display:flex;width:100%;max-width:400px;gap:8px;direction:ltr;">
<input type="text" id="phonePrefix" value="+972" oninput="chb_updateSummary()" style="width:65px;text-align:center;font-weight:700;padding:9px 4px;flex-shrink:0;font-size:14px;border-radius:8px;border:1px solid #b2e8e5;outline:none;background:#ffffff;color:#1a1a2e;font-family:Arial,sans-serif;box-sizing:border-box;">
<input type="tel" id="customerPhone" placeholder="מספר טלפון (חובה)..." oninput="chb_updateSummary()" style="flex:1;padding:9px 11px;font-size:14px;border-radius:8px;border:1px solid #b2e8e5;outline:none;background:#ffffff;color:#1a1a2e;font-family:Arial,sans-serif;box-sizing:border-box;">
</div>
<select id="orderType" onchange="chb_toggleOrderFields();chb_updateSummary()" style="width:100%;max-width:400px;padding:9px 11px;font-size:14px;border-radius:8px;border:1px solid #b2e8e5;outline:none;background:#ffffff;color:#1a1a2e;font-family:Arial,sans-serif;box-sizing:border-box;cursor:pointer;">
<option value="" disabled selected id="optTypeDefault">בחר סוג הזמנה...</option>
<option value="Dine-in" id="optDineIn">אכילה במקום</option>
<option value="Pickup" id="optPickup">איסוף עצמי</option>
<option value="Delivery" id="optDelivery">משלוח</option>
</select>
<div id="time-container" style="display:none;flex-direction:column;align-items:center;gap:8px;width:100%;">
<label id="lblTime" style="font-size:13px;font-weight:700;color:#1a1a2e;text-align:start;width:100%;max-width:400px;">שעת הגעה / משלוח מבוקשת: <span style="color:#f5a520;">*</span></label>
<input type="time" id="arrivalTime" onchange="chb_updateSummary()" style="width:100%;max-width:400px;padding:9px 11px;font-size:14px;border-radius:8px;border:1px solid #b2e8e5;outline:none;background:#ffffff;color:#1a1a2e;font-family:Arial,sans-serif;box-sizing:border-box;">
</div>
<div id="delivery-container" style="display:none;flex-direction:column;align-items:center;gap:10px;width:100%;">
<input type="text" id="deliveryAddress" placeholder="כתובת למשלוח (חובה)..." oninput="chb_updateSummary()" style="width:100%;max-width:400px;padding:9px 11px;font-size:14px;border-radius:8px;border:1px solid #b2e8e5;outline:none;background:#ffffff;color:#1a1a2e;font-family:Arial,sans-serif;box-sizing:border-box;">
<input type="text" id="roomNumber" placeholder="מספר חדר (אופציונלי)..." oninput="chb_updateSummary()" style="width:100%;max-width:400px;padding:9px 11px;font-size:14px;border-radius:8px;border:1px solid #b2e8e5;outline:none;background:#ffffff;color:#1a1a2e;font-family:Arial,sans-serif;box-sizing:border-box;">
<input type="tel" id="localPhone" placeholder="טלפון מקומי בקמבודיה (חובה)..." oninput="chb_updateSummary()" style="width:100%;max-width:400px;padding:9px 11px;font-size:14px;border-radius:8px;border:1px solid #b2e8e5;outline:none;background:#ffffff;color:#1a1a2e;font-family:Arial,sans-serif;box-sizing:border-box;">
<input type="text" id="mapsLink" placeholder="קישור גוגל מפות (חובה)..." oninput="chb_updateSummary()" style="width:100%;max-width:400px;padding:9px 11px;font-size:14px;border-radius:8px;border:1px solid #b2e8e5;outline:none;background:#ffffff;color:#1a1a2e;font-family:Arial,sans-serif;box-sizing:border-box;direction:ltr;text-align:left;">
<label style="font-size:13px;font-weight:700;color:#1a1a2e;text-align:start;width:100%;max-width:400px;">
<span id="photoLabel">תמונה של המיקום (ניתן לבחור כמה):</span>
<input type="file" id="locationPhotos" accept="image/*" multiple style="width:100%;max-width:400px;padding:6px;font-size:13px;border-radius:8px;border:1px solid #b2e8e5;background:#ffffff;color:#1a1a2e;margin-top:6px;box-sizing:border-box;">
</label>
<div id="deliveryFeeNote" style="display:none;background:#fff8e8;border:1px solid #f5c060;border-radius:8px;padding:10px 14px;font-size:13px;color:#7a5000;text-align:center;width:100%;max-width:400px;box-sizing:border-box;font-weight:600;">
          🛵 <span id="deliveryFeeText">דמי משלוח יחושבו בעת המשלוח</span>
</div>
</div>
</div>
</div>

<!-- ══ MENU ══ -->
  <div id="menu-container"></div>

<!-- ══ CART ══ -->
  <div id="cart-container" style="display:none;background:#f4fffe;border-radius:14px;border-top:4px solid #2bbdb5;padding:18px;margin-top:0;">
<h2 id="cartTitle" style="font-family:Georgia,serif;font-size:19px;font-weight:700;text-align:center;margin:0 0 14px;color:#1a1a2e;">🧾 ההזמנה שלי</h2>
<div id="cart-items"></div>
</div>

<!-- ══ SUMMARY / RECEIPT ══ -->
  <div style="margin-top:22px;display:flex;flex-direction:column;align-items:center;">
<textarea id="orderSummary" style="display:none;"></textarea>
<div id="receiptVisual" style="display:none;background:#fff;color:#222;width:100%;max-width:270px;padding:20px 18px;border-radius:12px;box-shadow:0 4px 24px rgba(43,189,181,.18);font-family:'Courier New',monospace;text-align:center;direction:ltr;box-sizing:border-box;border:1px solid #b2e8e5;margin:0 auto;">
<div style="text-align:right;font-size:13px;font-weight:bold;margin-bottom:5px;">ב"ה</div>
<img src="https://w2.chabad.org/media/images/1320/SYVD13204788.png" alt="Chabad Logo" style="width:90px;margin-bottom:12px;">
<div style="font-size:14px;margin-bottom:16px;border-bottom:1px dashed #aaa;padding-bottom:12px;line-height:1.7;color:#444;">419 Preah Sisowath Quay, Phnom Penh<br>☎ 085807205 ✉ rabbi@jewishcambodia.com<br>
<br>
<b>CHABAD CAMBODIA KOSHER</b></div>
<div id="receiptTimeRow" style="display:none;text-align:center;margin:4px 0 16px;border:2px dashed #b2e8e5;border-radius:8px;padding:12px 10px;">
<div style="font-size:11px;color:#888;margin-bottom:6px;letter-spacing:2px;text-transform:uppercase;font-family:'Courier New',monospace;">ARRIVAL / DELIVERY TIME</div>
<div>
<span id="receiptTimeHM" style="font-size:34px;font-weight:900;letter-spacing:2px;color:#222;font-family:'Courier New',monospace;display:inline-block;"></span><span id="receiptTimeAMPM" style="font-size:28px;font-weight:900;color:#c0392b;margin-left:6px;display:inline-block;font-family:'Courier New',monospace;background:#fff0f0;padding:2px 8px;border-radius:5px;border:2px solid #c0392b;"></span></div>
</div>
<div id="receiptBodyText" style="text-align:left;font-size:13px;margin-bottom:16px;white-space:pre;overflow-x:hidden;color:#222;line-height:1.7;display:inline-block;width:100%;"></div>
<div style="font-size:13px;border-top:1px dashed #aaa;padding-top:14px;font-weight:bold;line-height:2;color:#333;">THANK YOU<br>No Jew Will Be Left Behind<br>חב"ד - עם כל הלב לכל אחד</div>
</div>
<div id="actionBtns" style="display:none;flex-wrap:wrap;gap:10px;margin-top:16px;margin-bottom:60px;justify-content:center;width:100%;max-width:340px;">
<button id="btnCopy" onclick="chb_copyOrderOnly()" style="flex:1;min-width:130px;padding:12px;font-size:14px;border:2px solid #2bbdb5;border-radius:50px;cursor:pointer;font-weight:700;color:#2bbdb5;background:#ffffff;font-family:Arial,sans-serif;">העתק רשימה</button>
<button id="btnTelegram" onclick="chb_sendToTelegram()" style="flex:1;min-width:130px;padding:12px;font-size:14px;border:none;border-radius:50px;cursor:pointer;font-weight:700;color:white;background:#f5a520;font-family:Arial,sans-serif;">סיים ושלח ✔️</button>
</div>
</div>

</div>


<div id="floatContainer" style="position:fixed;bottom:20px;left:50%;transform:translateX(-50%);display:none;gap:10px;z-index:999;width:max-content;">
<button id="floatClearBtn" onclick="chb_clearOrder()" style="padding:11px 20px;border-radius:50px;cursor:pointer;font-weight:700;display:flex;align-items:center;justify-content:center;gap:7px;box-shadow:0 4px 18px rgba(0,0,0,.2);font-size:14px;border:none;font-family:Arial,sans-serif;background:#e05555;color:white;transition:padding .2s,width .2s;">
<span id="floatClearText">נקה 🗑️</span></button>
<button id="floatFinishBtn" onclick="chb_scrollToCart()" style="padding:11px 20px;border-radius:50px;cursor:pointer;font-weight:700;display:flex;align-items:center;gap:7px;box-shadow:0 4px 18px rgba(0,0,0,.2);font-size:14px;border:none;font-family:Arial,sans-serif;background:#f5a520;color:white;position:relative;">
<span id="floatFinishText">סיום הזמנה 🛒</span><span id="floatingCartBadge" style="display:none;position:absolute;top:-8px;right:-8px;background:#e05555;color:white;border-radius:50%;min-width:22px;height:22px;font-size:12px;justify-content:center;align-items:center;font-weight:700;border:2px solid white;padding:0 4px;">0</span></button>
</div>


<div id="chb-toast" style="visibility:hidden;min-width:240px;background:rgba(26,26,46,.92);color:#fff;text-align:center;border-radius:30px;padding:12px 24px;position:fixed;z-index:1000;left:50%;bottom:30px;transform:translateX(-50%);font-size:14px;box-shadow:0 4px 20px rgba(0,0,0,.25);opacity:0;transition:opacity .3s,bottom .3s;pointer-events:none;"></div>


<div id="chb-successModal" style="display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:2000;justify-content:center;align-items:center;padding:16px;">
<div style="background:#ffffff;border-top:4px solid #2bbdb5;border-radius:20px;padding:32px 24px;text-align:center;max-width:340px;width:100%;box-shadow:0 12px 40px rgba(43,189,181,.2);">
<div style="font-size:52px;margin-bottom:12px;">✅</div>
<h3 id="modalTitle" style="font-family:Georgia,serif;font-size:20px;font-weight:800;color:#2bbdb5;margin-bottom:8px;margin-top:0;">ההזמנה נשלחה!</h3>
<p id="modalBody" style="font-size:14px;color:#3a4a6a;line-height:1.7;margin-bottom:22px;white-space:pre-line;">ההזמנה שלך נשלחה לחב"ד בהצלחה.
היא גם הועתקה ללוח שלך.
אנא פנה אלינו בווצאפ לאישור.</p>
<button onclick="chb_closeModal()" id="modalBtn" style="background:#f5a520;color:white;border:none;border-radius:50px;padding:11px 32px;font-size:15px;font-weight:700;cursor:pointer;font-family:Arial,sans-serif;">סגור</button>
</div>
</div>

<script>//
var chb_i18n={
  he:{title:"מטבח כשר",formCardTitle:"🛒 פרטי הזמנה",formCardSubtitle:"מלא פרטים ובחר את אפשרות ההזמנה",placeholderName:"שם לקוח (אנגלית בלבד)...",placeholderPhone:"מספר טלפון (חובה)...",optTypeDefault:"בחר סוג הזמנה...",optDineIn:"אכילה במקום",optPickup:"איסוף עצמי",optDelivery:"משלוח",lblTime:"שעת הגעה / משלוח מבוקשת:",deliveryAddress:"כתובת למשלוח (חובה)...",roomNumber:"מספר חדר (אופציונלי)...",localPhone:"טלפון מקומי בקמבודיה (חובה)...",mapsLink:"קישור לגוגל מפות (חובה)...",photoLabel:"תמונה של המיקום (ניתן לבחור כמה):",cartTitle:"🧾 ההזמנה שלי",btnCopy:"העתק רשימה",btnTelegram:"סיים ושלח ✔️",floatFinish:"סיום הזמנה 🛒",floatClear:"נקה 🗑️",btnRemove:"הסר",btnAdd:"➕ הוסף להזמנה",mustSelectSideError:"חובה לבחור תוספת למנה זו!",emptyOrderError:"ההזמנה ריקה.",formRequiredError:"יש למלא שם, טלפון, סוג הזמנה ואת כל פרטי החובה!",copySuccess:"ההזמנה הועתקה!",addedToast:"נוסף להזמנה!",confirmClear:"האם אתה בטוח שברצונך לנקות את ההזמנה?",modalTitle:"ההזמנה נשלחה! ✅",modalBody:"ההזמנה שלך נשלחה לחב\"ד בהצלחה.\nהיא גם הועתקה ללוח שלך.\nאנא פנה אלינו בווצאפ לאישור.",modalBtn:"סגור",nightNotice:"⚠️ לאחר 21:00 ניתן להזמין סוג מנה עיקרית אחד בלבד",deliveryFeeText:"🛵 דמי משלוח יחושבו בעת המשלוח",nightMainLimit:"השעה אחרי 21:00: ניתן להזמין רק סוג אחד של מנה עיקרית (עם אותה תוספת)!",sending:"שולח..."},
  en:{title:"Kosher Kitchen",formCardTitle:"🛒 Order Details",formCardSubtitle:"Fill in details and choose order type",placeholderName:"Customer Name...",placeholderPhone:"Phone number (Required)...",optTypeDefault:"Select Order Type...",optDineIn:"Dine-in",optPickup:"Pickup",optDelivery:"Delivery",lblTime:"Requested Arrival / Delivery Time:",deliveryAddress:"Delivery Address (Required)...",roomNumber:"Room Number (Optional)...",localPhone:"Local Phone in Cambodia (Required)...",mapsLink:"Google Maps Link (Required)...",photoLabel:"Location Photo (Multiple allowed):",cartTitle:"🧾 My Order",btnCopy:"Copy Order",btnTelegram:"Finish & Send ✔️",floatFinish:"Finish Order 🛒",floatClear:"Clear 🗑️",btnRemove:"Remove",btnAdd:"➕ Add to Order",mustSelectSideError:"You must select a side dish for this item!",emptyOrderError:"The order is empty.",formRequiredError:"Please fill in Name, Phone, Order Type and all required details!",copySuccess:"Order copied!",addedToast:"added to order!",confirmClear:"Are you sure you want to clear the order?",modalTitle:"Order Sent! ✅",modalBody:"Your order was sent to Chabad successfully.\nIt was also copied to your clipboard.\nPlease contact us on WhatsApp to confirm.",modalBtn:"Close",nightNotice:"⚠️ After 21:00, only one type of main dish per order",deliveryFeeText:"🛵 Delivery fee will be calculated at delivery",nightMainLimit:"It is after 21:00: You can only order one type of main dish!",sending:"Sending..."}
};

var chb_optionsData={side:[
  {en:"White Rice",he:"אורז לבן"},
  {en:"Fried Rice",he:"אורז מטוגן"},
  {en:"Pasta",he:"פסטה"},
  {en:"Spaghetti",he:"ספגטי"},
  {en:"French Fries",he:"צ'יפס"},
  {en:"Couscous",he:"קוסקוס"},
  {en:"Carrot Cake",he:"פשטידת גזר"},
  {en:"Israeli Couscous",he:"פתיתים"}
]};

var chb_menuData=[
  {categoryEn:"Breakfast",categoryHe:"ארוחות בוקר",items:[
    {id:"b1_o",en:"Omelette",he:"חביתה",price:4,descHe:"(כולל סלט ולחם הבית)",descEn:"(Inc. salad & roll)"},
    {id:"b1_s",en:"Shakshukah",he:"שקשוקה",price:4,descHe:"(כולל סלט ולחם הבית)",descEn:"(Inc. salad & roll)"},
    {id:"b2",en:"Add Tahini",he:"תוספת טחינה",price:1.5},
    {id:"b3",en:"Add Hummus",he:"תוספת חומוס",price:1.5}
  ]},
  {categoryEn:"Sandwiches",categoryHe:"סנדוויצ'ים",items:[
    {id:"s2",en:"Tuna Deluxe",he:"טונה דה לוקס",price:2.5},
    {id:"s3",en:"Egg Sandwich",he:"סנדווי'ץ חביתה",price:2.5},
    {id:"s4",en:"Burger Sandwich",he:"סנדווי'ץ בורגר",price:3.75},
    {id:"s5",en:"Schnitzel Sandwich",he:"שניצל בסנדווי'ץ",price:4},
    {id:"s6",en:"Tuna Burger",he:"סנדווי'ץ בורגר טונה",price:2.5}
  ]},
  {categoryEn:"Salads (Served with a roll)",categoryHe:"סלטים (מוגש עם לחם הבית)",items:[
    {id:"sa1",en:"Israeli Salad Special",he:"סלט חי קצוץ",price:2},
    {id:"sa2",en:"Hummus",he:"חומוס",price:2},
    {id:"sa3",en:"Marinated Eggplant",he:"חצילים מטוגנים",price:2},
    {id:"sa4",en:"Matbucha",he:"מטבוחה",price:2},
    {id:"sa5",en:"Tahini",he:"טחינה",price:2},
    {id:"sa6",en:"Olive Dip",he:"ממרח זיתים",price:2}
  ]},
  {categoryEn:"Mains (Served with side)",categoryHe:"עיקריות (מוגש עם תוספת)",items:[
    {id:"m1",en:"Schnitzel",he:"שניצל מטוגן",price:6,isMain:true,selections:[{type:"side",labelEn:"Side Dish",labelHe:"תוספת"}]},
    {id:"m2",en:"Burger",he:"סנדוויץ' בורגר",price:5.5,isMain:true,selections:[{type:"side",labelEn:"Side Dish",labelHe:"תוספת"}]},
    {id:"m3",en:"Meatballs",he:"קציצות בקר",price:6,isMain:true,selections:[{type:"side",labelEn:"Side Dish",labelHe:"תוספת"}]},
    {id:"m4",en:"Fried Fish",he:"שניצל דג",price:5,isMain:true,selections:[{type:"side",labelEn:"Side Dish",labelHe:"תוספת"}]},
    {id:"m5",en:"Spaghetti Bolognese",he:"ספגטי בולונז",price:5,isMain:true,selections:[{type:"side",labelEn:"Side Dish",labelHe:"תוספת"}]},
    {id:"m6",en:"Chicken Stir-fry",he:"חזה עוף מוקפץ",price:6,isMain:true,selections:[{type:"side",labelEn:"Side Dish",labelHe:"תוספת"}]}
  ]},
  {categoryEn:"Vegan ($4 - Served with roll & salad)",categoryHe:"טבעוניות ($4 - מוגש עם לחם וסלט)",items:[
    {id:"v1",en:"White Rice",he:"אורז לבן",price:4},
    {id:"v2",en:"Fried Rice",he:"אורז מטוגן",price:4},
    {id:"v3",en:"Pasta",he:"פסטה",price:4},
    {id:"v4",en:"Spaghetti",he:"ספגטי",price:4},
    {id:"v5",en:"French Fries",he:"צ'יפס",price:4},
    {id:"v6",en:"Couscous",he:"קוסקוס",price:4},
    {id:"v7",en:"Carrot Cake",he:"פשטידת גזר",price:4},
    {id:"v8",en:"Israeli Couscous",he:"פתיתים",price:4}
  ]}
];

var chb_cart=[];
var chb_currentLang='he';
var chb_BOT_TOKEN='8237765574:AAG8py51ZKCfCUAhUoPmAC8hgZXcWgh-7BM';
var chb_CHAT_ID='-5233191660';

function chb_enforceEnglishName(input){input.value=input.value.replace(/[^a-zA-Z0-9\s\.,'\-]/g,'');}
function chb_escapeHTML(s){return(s||"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");}
function chb_getLocalOptionText(type,enVal,lang){var l=chb_optionsData[type];if(!l)return enVal;for(var i=0;i<l.length;i++){if(l[i].en===enVal)return l[i][lang];}return enVal;}
function chb_padDots(l,r,t){if(t===undefined)t=32;var s=t-l.length-r.length;if(s<2)s=2;return l+'.'.repeat(s)+r;}
function chb_formatTime12h(t){if(!t)return null;var p=t.split(':');var h=parseInt(p[0]);var m=parseInt(p[1]);return{hm:(h%12||12)+':'+String(m).padStart(2,'0'),ampm:h>=12?'PM':'AM'};}

function chb_setFieldError(id){var el=document.getElementById(id);if(el){el.style.border='1px solid #e05555';el.style.background='#fff5f5';}}
function chb_clearFieldError(id){var el=document.getElementById(id);if(el){el.style.border='1px solid #b2e8e5';el.style.background='#ffffff';}}
function chb_setGroupError(id){var el=document.getElementById(id);if(el){el.style.border='1px solid #e05555';el.style.background='rgba(224,85,85,.05)';}}
function chb_clearGroupError(id){var el=document.getElementById(id);if(el){el.style.border='1px solid #b2e8e5';el.style.background='rgba(43,189,181,.04)';}}

function chb_checkNightMode(){
  var h=new Date().getHours();
  var n=document.getElementById('nightNotice');
  if(h>=21){n.textContent=chb_i18n[chb_currentLang].nightNotice;n.style.display='block';}
  else{n.style.display='none';}
}

function chb_setLang(lang){
  chb_currentLang=lang;
  document.documentElement.lang=lang;
  document.documentElement.dir=lang==='he'?'rtl':'ltr';
  var bh=document.getElementById('btn-he'),be=document.getElementById('btn-en');
  if(lang==='he'){bh.style.background='#2bbdb5';bh.style.borderColor='#2bbdb5';be.style.background='transparent';be.style.borderColor='#c8ecea';}
  else{be.style.background='#2bbdb5';be.style.borderColor='#2bbdb5';bh.style.background='transparent';bh.style.borderColor='#c8ecea';}
  var t=chb_i18n[lang];
  document.getElementById('mainTitle').innerText=t.title;
  document.getElementById('formCardTitle').innerText=t.formCardTitle;
  document.getElementById('formCardSubtitle').innerText=t.formCardSubtitle;
  document.getElementById('customerName').placeholder=t.placeholderName;
  document.getElementById('customerPhone').placeholder=t.placeholderPhone;
  document.getElementById('optTypeDefault').innerText=t.optTypeDefault;
  document.getElementById('optDineIn').innerText=t.optDineIn;
  document.getElementById('optPickup').innerText=t.optPickup;
  document.getElementById('optDelivery').innerText=t.optDelivery;
  document.getElementById('lblTime').innerText=t.lblTime;
  document.getElementById('deliveryAddress').placeholder=t.deliveryAddress;
  document.getElementById('roomNumber').placeholder=t.roomNumber;
  document.getElementById('localPhone').placeholder=t.localPhone;
  document.getElementById('mapsLink').placeholder=t.mapsLink;
  document.getElementById('photoLabel').innerText=t.photoLabel;
  document.getElementById('cartTitle').innerText=t.cartTitle;
  document.getElementById('btnCopy').innerText=t.btnCopy;
  document.getElementById('btnTelegram').innerText=t.btnTelegram;
  document.getElementById('floatFinishText').innerText=t.floatFinish;
  document.getElementById('floatClearText').innerText=t.floatClear;
  document.getElementById('deliveryFeeText').innerText=t.deliveryFeeText;
  var ci=['customerName','customerPhone','deliveryAddress','localPhone','mapsLink','arrivalTime'];
  for(var i=0;i<ci.length;i++)chb_clearFieldError(ci[i]);
  chb_checkNightMode();chb_renderMenu();chb_updateCartUI();
}

function chb_toggleOrderFields(){
  var type=document.getElementById('orderType').value;
  document.getElementById('time-container').style.display=type?'flex':'none';
  document.getElementById('delivery-container').style.display=type==='Delivery'?'flex':'none';
  document.getElementById('deliveryFeeNote').style.display=type==='Delivery'?'block':'none';
  var ci=['deliveryAddress','localPhone','mapsLink','arrivalTime'];
  for(var i=0;i<ci.length;i++)chb_clearFieldError(ci[i]);
}

function chb_toggleCategory(id){
  var b=document.getElementById(id+'-body'),c=document.getElementById(id+'-chevron');
  var open=b.style.display==='block';
  b.style.display=open?'none':'block';
  c.style.transform=open?'':'rotate(180deg)';
}
function chb_toggleItem(id){
  var b=document.getElementById('item-body-'+id),c=document.getElementById('item-chevron-'+id);
  var open=b.style.display==='flex';
  b.style.display=open?'none':'flex';
  c.style.transform=open?'':'rotate(180deg)';
}
function chb_changeQty(id,d){var i=document.getElementById('qty-'+id);i.value=Math.max(1,(parseInt(i.value)||1)+d);}
function chb_validateQty(id){var i=document.getElementById('qty-'+id);if(isNaN(parseInt(i.value))||parseInt(i.value)<1)i.value=1;}

function chb_renderMenu(){
  var container=document.getElementById('menu-container');
  container.innerHTML='';
  for(var ci=0;ci<chb_menuData.length;ci++){
    var cat=chb_menuData[ci];
    var catTitle=chb_currentLang==='he'?cat.categoryHe:cat.categoryEn;
    var catId='cat-'+ci;
    var html='<div id="'+catId+'" style="background:#ffffff;border:1px solid #d4f0ee;border-radius:12px;margin-bottom:10px;overflow:hidden;">';
    html+='<div onclick="chb_toggleCategory(\''+catId+'\')" style="display:flex;justify-content:space-between;align-items:center;padding:12px 16px;cursor:pointer;background:rgba(43,189,181,.07);user-select:none;border-bottom:1px solid #d4f0ee;">';
    html+='<span style="font-size:15px;font-weight:700;color:#1a1a2e;">'+catTitle+'</span>';
    html+='<span id="'+catId+'-chevron" style="color:#2bbdb5;font-size:18px;transition:transform .3s;line-height:1;">&#8964;</span>';
    html+='</div>';
    html+='<div id="'+catId+'-body" style="display:none;padding:0 14px 10px;">';
    for(var ii=0;ii<cat.items.length;ii++){
      var item=cat.items[ii];
      var name=chb_currentLang==='he'?item.he:item.en;
      var desc=item.descHe?(chb_currentLang==='he'?item.descHe:item.descEn):'';
      var isLast=(ii===cat.items.length-1);
      if(item.selections){
        html+='<div id="item-'+item.id+'" style="'+(isLast?'':'border-bottom:1px solid #d4f0ee;')+'">';
        html+='<div onclick="chb_toggleItem(\''+item.id+'\')" style="display:flex;justify-content:space-between;align-items:center;padding:11px 0;cursor:pointer;user-select:none;">';
        html+='<div style="flex:1;"><div style="font-size:14px;font-weight:700;color:#1a1a2e;">'+name+'</div>'+(desc?'<div style="font-size:12px;color:#778099;margin-top:2px;">'+desc+'</div>':'')+'</div>';
        html+='<div style="background:#fff8e8;border:1px solid #f5c060;color:#b37000;font-size:13px;font-weight:800;padding:3px 10px;border-radius:20px;margin:0 10px;white-space:nowrap;">$'+item.price+'</div>';
        html+='<div style="display:flex;align-items:center;gap:5px;">';
        html+='<button id="btn-remove-'+item.id+'" onclick="event.stopPropagation();chb_removeOneFromMenu(\''+item.id+'\')" style="background:#fff0f0;color:#e05555;border:1px solid #f5c0c0;border-radius:6px;font-size:14px;cursor:pointer;font-weight:600;width:26px;height:26px;justify-content:center;align-items:center;display:none;">&#8722;</button>';
        html+='<span id="badge-'+item.id+'" style="background:#e8f9f8;color:#2bbdb5;border:1px solid #b2e8e5;border-radius:6px;min-width:26px;height:26px;padding:0 4px;display:none;justify-content:center;align-items:center;font-size:12px;font-weight:700;">0</span>';
        html+='<span id="item-chevron-'+item.id+'" style="color:#2bbdb5;font-size:16px;transition:transform .3s;line-height:1;margin:0 2px;">&#8964;</span>';
        html+='</div></div>';
        html+='<div id="item-body-'+item.id+'" style="display:none;padding-bottom:12px;flex-direction:column;gap:10px;">';
        for(var si=0;si<item.selections.length;si++){
          var sel=item.selections[si];
          var reqText=chb_currentLang==='he'?'בחר '+sel.labelHe:'Choose '+sel.labelEn;
          var grp='sel_'+item.id+'_'+sel.type;
          html+='<div id="group_'+grp+'" style="background:rgba(43,189,181,.04);border:1px solid #b2e8e5;border-radius:8px;padding:10px;">';
          html+='<div style="font-weight:700;font-size:13px;color:#1a1a2e;margin-bottom:8px;border-bottom:1px solid #d4f0ee;padding-bottom:6px;">'+reqText+' <span style="color:#f5a520;">*</span></div>';
          html+='<div style="display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:6px;">';
          var opts=chb_optionsData[sel.type];
          for(var oi=0;oi<opts.length;oi++){
            var opt=opts[oi];var optText=chb_currentLang==='he'?opt.he:opt.en;
            html+='<label style="display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer;background:#ffffff;border:1px solid #b2e8e5;padding:6px 10px;border-radius:8px;color:#1a1a2e;">';
            html+='<input type="radio" id="radio_'+grp+'_'+oi+'" name="'+grp+'" value="'+opt.en+'" style="width:16px;height:16px;cursor:pointer;accent-color:#2bbdb5;"> '+optText+'</label>';
          }
          html+='</div></div>';
        }
        html+='<div style="display:flex;justify-content:space-between;align-items:center;background:#f4fffe;border:1px solid #d4f0ee;padding:8px 10px;border-radius:8px;gap:8px;">';
        html+='<div style="display:flex;align-items:center;gap:4px;">';
        html+='<button onclick="chb_changeQty(\''+item.id+'\',-1)" style="background:#fff;border:1px solid #b2e8e5;width:28px;height:28px;font-size:15px;cursor:pointer;border-radius:6px;font-weight:500;color:#2bbdb5;display:flex;justify-content:center;align-items:center;">&#8722;</button>';
        html+='<input type="number" id="qty-'+item.id+'" value="1" min="1" onchange="chb_validateQty(\''+item.id+'\')" style="width:36px;height:28px;text-align:center;border:1px solid #b2e8e5;border-radius:6px;font-size:13px;font-weight:700;background:#fff;color:#1a1a2e;font-family:Arial,sans-serif;">';
        html+='<button onclick="chb_changeQty(\''+item.id+'\',1)" style="background:#fff;border:1px solid #b2e8e5;width:28px;height:28px;font-size:15px;cursor:pointer;border-radius:6px;font-weight:500;color:#2bbdb5;display:flex;justify-content:center;align-items:center;">+</button>';
        html+='</div>';
        html+='<button onclick="chb_addToCart(\''+item.id+'\')" style="background:#f5a520;color:white;border:none;border-radius:8px;font-size:13px;cursor:pointer;font-weight:700;padding:8px 14px;flex-grow:1;font-family:Arial,sans-serif;">'+chb_i18n[chb_currentLang].btnAdd+'</button>';
        html+='</div></div></div>';
      } else {
        html+='<div style="display:flex;justify-content:space-between;align-items:center;'+(isLast?'':'border-bottom:1px solid #d4f0ee;')+'padding:11px 0;">';
        html+='<div style="flex:1;"><div style="font-size:14px;font-weight:700;color:#1a1a2e;">'+name+'</div>'+(desc?'<div style="font-size:12px;color:#778099;margin-top:2px;">'+desc+'</div>':'')+'</div>';
        html+='<div style="background:#fff8e8;border:1px solid #f5c060;color:#b37000;font-size:13px;font-weight:800;padding:3px 10px;border-radius:20px;margin:0 10px;white-space:nowrap;">$'+item.price+'</div>';
        html+='<div style="display:flex;align-items:center;gap:5px;">';
        html+='<button id="btn-remove-'+item.id+'" onclick="chb_removeOneFromMenu(\''+item.id+'\')" style="background:#fff0f0;color:#e05555;border:1px solid #f5c0c0;border-radius:6px;font-size:14px;cursor:pointer;font-weight:600;width:26px;height:26px;justify-content:center;align-items:center;display:none;">&#8722;</button>';
        html+='<span id="badge-'+item.id+'" style="background:#e8f9f8;color:#2bbdb5;border:1px solid #b2e8e5;border-radius:6px;min-width:26px;height:26px;padding:0 4px;display:none;justify-content:center;align-items:center;font-size:12px;font-weight:700;">0</span>';
        html+='<button onclick="chb_addToCart(\''+item.id+'\')" style="background:#f5a520;color:white;border:none;border-radius:6px;font-size:16px;cursor:pointer;font-weight:600;width:26px;height:26px;display:flex;justify-content:center;align-items:center;">+</button>';
        html+='</div></div>';
      }
    }
    html+='</div></div>';
    container.innerHTML+=html;
  }
}

function chb_addToCart(id){
  var item=null;
  for(var ci=0;ci<chb_menuData.length;ci++){for(var ii=0;ii<chb_menuData[ci].items.length;ii++){if(chb_menuData[ci].items[ii].id===id){item=chb_menuData[ci].items[ii];break;}}if(item)break;}
  if(!item)return;
  var sideEn='',sideHe='',qty=1;
  var displayName=chb_currentLang==='he'?item.he:item.en;
  if(item.selections){
    var grp='sel_'+item.id+'_side';var checked=null;var opts=chb_optionsData['side'];
    for(var oi=0;oi<opts.length;oi++){var radio=document.getElementById('radio_'+grp+'_'+oi);if(radio&&radio.checked){checked=radio;break;}}
    if(!checked){alert(chb_i18n[chb_currentLang].mustSelectSideError);chb_setGroupError('group_'+grp);return;}
    chb_clearGroupError('group_'+grp);
    sideEn=checked.value;sideHe=chb_getLocalOptionText('side',sideEn,'he');
    displayName+=chb_currentLang==='he'?' + '+sideHe:' + '+sideEn;
    qty=parseInt(document.getElementById('qty-'+id).value)||1;
  }
  if(item.isMain&&new Date().getHours()>=21){
    var mains=[];for(var i=0;i<chb_cart.length;i++){if(chb_cart[i].isMain)mains.push(chb_cart[i]);}
    if(mains.length>0){var f=mains[0];if(f.baseEn!==item.en||f.sideEn!==sideEn){alert(chb_i18n[chb_currentLang].nightMainLimit);return;}}
  }
  var existing=null;
  for(var i=0;i<chb_cart.length;i++){if(chb_cart[i].originalId===id&&chb_cart[i].sideEn===sideEn){existing=chb_cart[i];break;}}
  if(existing){existing.qty+=qty;}
  else{chb_cart.push({id:Date.now(),originalId:id,baseEn:item.en,baseHe:item.he,sideEn:sideEn,sideHe:sideHe,price:item.price,qty:qty,isMain:!!item.isMain});}
  if(item.selections){var opts2=chb_optionsData['side'];for(var oi2=0;oi2<opts2.length;oi2++){var r=document.getElementById('radio_sel_'+item.id+'_side_'+oi2);if(r)r.checked=false;}document.getElementById('qty-'+id).value=1;}
  chb_updateCartUI();chb_showToast((qty>1?qty+'x ':'')+displayName);
}
function chb_removeFromCart(cartItemId){var nc=[];for(var i=0;i<chb_cart.length;i++){if(chb_cart[i].id!==cartItemId)nc.push(chb_cart[i]);}chb_cart=nc;chb_updateCartUI();}
function chb_changeCartQty(cartItemId,delta){for(var i=0;i<chb_cart.length;i++){if(chb_cart[i].id===cartItemId){chb_cart[i].qty+=delta;if(chb_cart[i].qty<=0)chb_cart.splice(i,1);break;}}chb_updateCartUI();}
function chb_removeOneFromMenu(originalId){for(var i=chb_cart.length-1;i>=0;i--){if(chb_cart[i].originalId===originalId){if(chb_cart[i].qty>1)chb_cart[i].qty--;else chb_cart.splice(i,1);break;}}chb_updateCartUI();}

function chb_updateCartUI(){
  var cartDiv=document.getElementById('cart-container');var cartItemsDiv=document.getElementById('cart-items');
  for(var ci=0;ci<chb_menuData.length;ci++){for(var ii=0;ii<chb_menuData[ci].items.length;ii++){var iid=chb_menuData[ci].items[ii].id;var b=document.getElementById('badge-'+iid);var rb=document.getElementById('btn-remove-'+iid);if(b){b.innerText='0';b.style.display='none';}if(rb)rb.style.display='none';}}
  var ic={};for(var i=0;i<chb_cart.length;i++){var c=chb_cart[i];ic[c.originalId]=(ic[c.originalId]||0)+c.qty;}
  var total=0;var keys=Object.keys(ic);
  for(var k=0;k<keys.length;k++){var oid=keys[k];var cnt=ic[oid];total+=cnt;var b2=document.getElementById('badge-'+oid);var rb2=document.getElementById('btn-remove-'+oid);if(b2&&cnt>0){b2.innerText=cnt;b2.style.display='flex';if(rb2)rb2.style.display='flex';}}
  var fb=document.getElementById('floatingCartBadge');
  if(total>0){fb.innerText=total;fb.style.display='flex';}else{fb.style.display='none';}
  if(chb_cart.length===0){cartDiv.style.display='none';document.getElementById('receiptVisual').style.display='none';document.getElementById('actionBtns').style.display='none';}
  else{
    cartDiv.style.display='block';document.getElementById('receiptVisual').style.display='block';document.getElementById('actionBtns').style.display='flex';
    cartItemsDiv.innerHTML='';
    for(var j=0;j<chb_cart.length;j++){
      var citem=chb_cart[j];
      var bn=chb_currentLang==='he'?citem.baseHe:citem.baseEn;
      var sn=citem.sideEn?(chb_currentLang==='he'?' + '+citem.sideHe:' + '+citem.sideEn):'';
      var lt=(citem.price*citem.qty).toFixed(2);
      cartItemsDiv.innerHTML+='<div style="margin-bottom:8px;background:#ffffff;padding:10px 12px;border-radius:10px;border:1px solid #d4f0ee;"><div style="display:flex;justify-content:space-between;align-items:center;gap:8px;"><div style="font-size:14px;flex:1;color:#1a1a2e;"><span style="color:#2bbdb5;font-weight:700;">'+citem.qty+'x</span> '+bn+sn+' <span style="color:#778099;font-size:12px;">($'+lt+')</span></div><div style="display:flex;align-items:center;gap:4px;"><button onclick="chb_changeCartQty('+citem.id+',-1)" style="background:#fff;color:#2bbdb5;border:1px solid #b2e8e5;width:26px;height:26px;border-radius:6px;font-size:14px;cursor:pointer;font-weight:500;display:flex;justify-content:center;align-items:center;">&#8722;</button><span style="min-width:26px;text-align:center;font-weight:700;font-size:14px;color:#1a1a2e;">'+citem.qty+'</span><button onclick="chb_changeCartQty('+citem.id+',1)" style="background:#fff;color:#2bbdb5;border:1px solid #b2e8e5;width:26px;height:26px;border-radius:6px;font-size:14px;cursor:pointer;font-weight:500;display:flex;justify-content:center;align-items:center;">+</button></div><button onclick="chb_removeFromCart('+citem.id+')" style="background:#e05555;color:white;border:none;padding:5px 8px;border-radius:6px;cursor:pointer;font-size:12px;font-weight:700;flex-shrink:0;">'+chb_i18n[chb_currentLang].btnRemove+'</button></div></div>';
    }
  }
  chb_updateSummary();
  chb_updateFloatButtons();
}

function chb_updateSummary(){
  var name=document.getElementById('customerName').value.trim();var phone=document.getElementById('customerPhone').value.trim();
  var prefix=document.getElementById('phonePrefix').value.trim();var orderType=document.getElementById('orderType').value;
  var arrivalTime=document.getElementById('arrivalTime').value;var address=document.getElementById('deliveryAddress').value.trim();
  var room=document.getElementById('roomNumber').value.trim();var localPh=document.getElementById('localPhone').value.trim();
  var summaryBox=document.getElementById('orderSummary');var receiptBody=document.getElementById('receiptBodyText');
  if(name)chb_clearFieldError('customerName');if(phone)chb_clearFieldError('customerPhone');
  if(chb_cart.length===0){summaryBox.value='';receiptBody.innerText='';return;}
  var now=new Date();var dateStr=now.toLocaleDateString('en-GB');var timeStr=now.toLocaleTimeString('en-GB',{hour:'2-digit',minute:'2-digit'});
  var text='--- NEW ORDER ---\n';text+='Date: '+dateStr+' '+timeStr+'\n';text+='Name: '+(name||'MISSING!')+'\n';text+='Phone: '+prefix+(phone||'MISSING!')+'\n';
  if(orderType)text+='Type: '+orderType+'\n';
  var tf=chb_formatTime12h(arrivalTime);if(tf)text+='Time: '+tf.hm+' '+tf.ampm+'\n';
  if(orderType==='Delivery'){text+='Address: '+(address||'MISSING!')+'\n';if(room)text+='Room: '+room+'\n';if(localPh)text+='Local Ph: '+localPh+'\n';}
  text+='--------------------------------\n';
  var total=0;var counts={};
  for(var i=0;i<chb_cart.length;i++){var ci=chb_cart[i];var key=ci.sideEn?ci.baseEn+'|'+ci.sideEn:ci.baseEn;if(!counts[key])counts[key]={base:ci.baseEn,side:ci.sideEn,qty:0,price:ci.price};counts[key].qty+=ci.qty;total+=ci.price*ci.qty;}
  var ck=Object.keys(counts);for(var k=0;k<ck.length;k++){var inf=counts[ck[k]];var lt=inf.qty*inf.price;var ps='$'+lt.toFixed(2);if(inf.side){text+=inf.qty+'x '+inf.base+'\n';text+=chb_padDots('  - '+inf.side,ps)+'\n';}else{text+=chb_padDots(inf.qty+'x '+inf.base,ps)+'\n';}}
  text+='--------------------------------\n';text+=chb_padDots('SUBTOTAL:','$'+total.toFixed(2))+'\n';
  if(orderType==='Delivery')text+=chb_padDots('DELIVERY FEE:','TBD')+'\n';
  text+='--------------------------------\n';
  summaryBox.value=text;receiptBody.innerText=text;
  var tr=document.getElementById('receiptTimeRow');
  if(tf&&tr){document.getElementById('receiptTimeHM').innerText=tf.hm;document.getElementById('receiptTimeAMPM').innerText=tf.ampm;tr.style.display='block';}
  else if(tr){tr.style.display='none';}
}

function chb_validateForm(){
  var ni=document.getElementById('customerName'),pi=document.getElementById('customerPhone'),ti=document.getElementById('orderType'),tmi=document.getElementById('arrivalTime'),ai=document.getElementById('deliveryAddress'),li=document.getElementById('localPhone'),mi=document.getElementById('mapsLink');
  var valid=true;
  if(!ni.value.trim()){chb_setFieldError('customerName');valid=false;}
  if(!pi.value.trim()){chb_setFieldError('customerPhone');valid=false;}
  if(!ti.value){chb_setFieldError('orderType');valid=false;}
  else{chb_clearFieldError('orderType');if(!tmi.value){chb_setFieldError('arrivalTime');valid=false;}else chb_clearFieldError('arrivalTime');if(ti.value==='Delivery'){if(!ai.value.trim()){chb_setFieldError('deliveryAddress');valid=false;}else chb_clearFieldError('deliveryAddress');if(!li.value.trim()){chb_setFieldError('localPhone');valid=false;}else chb_clearFieldError('localPhone');if(!mi.value.trim()){chb_setFieldError('mapsLink');valid=false;}else chb_clearFieldError('mapsLink');}}
  if(!valid){alert(chb_i18n[chb_currentLang].formRequiredError);if(!ni.value.trim())ni.focus();else if(!pi.value.trim())pi.focus();}
  return valid;
}
function chb_copyText(text){try{if(navigator.clipboard&&navigator.clipboard.writeText)return navigator.clipboard.writeText(text);}catch(e){}var ta=document.getElementById('orderSummary');ta.style.display='block';ta.select();document.execCommand('copy');ta.style.display='none';return Promise.resolve();}
function chb_copyOrderOnly(){if(!chb_validateForm())return;if(chb_cart.length===0)return alert(chb_i18n[chb_currentLang].emptyOrderError);chb_copyText(document.getElementById('orderSummary').value);chb_showToast(chb_i18n[chb_currentLang].copySuccess);}
function chb_clearOrder(silent){if(chb_cart.length===0&&!document.getElementById('customerName').value)return;if(!silent&&!confirm(chb_i18n[chb_currentLang].confirmClear))return;chb_cart=[];var ci=['customerName','customerPhone','arrivalTime','deliveryAddress','roomNumber','localPhone','mapsLink'];for(var i=0;i<ci.length;i++)document.getElementById(ci[i]).value='';document.getElementById('phonePrefix').value='+972';document.getElementById('orderType').value='';document.getElementById('locationPhotos').value='';var ei=['customerName','customerPhone','orderType','arrivalTime','deliveryAddress','localPhone','mapsLink'];for(var j=0;j<ei.length;j++)chb_clearFieldError(ei[j]);chb_toggleOrderFields();chb_updateCartUI();}
function chb_showSuccessModal(){var t=chb_i18n[chb_currentLang];document.getElementById('modalTitle').innerText=t.modalTitle;document.getElementById('modalBody').innerText=t.modalBody;document.getElementById('modalBtn').innerText=t.modalBtn;document.getElementById('chb-successModal').style.display='flex';}
function chb_closeModal(){document.getElementById('chb-successModal').style.display='none';chb_clearOrder(true);}
function chb_saveUserDetails(){try{var p={name:document.getElementById('customerName').value,prefix:document.getElementById('phonePrefix').value,phone:document.getElementById('customerPhone').value,address:document.getElementById('deliveryAddress').value,room:document.getElementById('roomNumber').value,localPhone:document.getElementById('localPhone').value,mapsLink:document.getElementById('mapsLink').value};localStorage.setItem('chabadCustomerProfile',JSON.stringify(p));}catch(e){}}
function chb_loadUserDetails(){try{var s=localStorage.getItem('chabadCustomerProfile');if(s){var p=JSON.parse(s);if(p.name)document.getElementById('customerName').value=p.name;if(p.prefix)document.getElementById('phonePrefix').value=p.prefix;if(p.phone)document.getElementById('customerPhone').value=p.phone;if(p.address)document.getElementById('deliveryAddress').value=p.address;if(p.room)document.getElementById('roomNumber').value=p.room;if(p.localPhone)document.getElementById('localPhone').value=p.localPhone;if(p.mapsLink)document.getElementById('mapsLink').value=p.mapsLink;chb_updateSummary();}}catch(e){}}
function chb_sendToTelegram(){
  if(!chb_validateForm())return;if(chb_cart.length===0)return alert(chb_i18n[chb_currentLang].emptyOrderError);
  var btn=document.getElementById('btnTelegram');var orig=btn.innerHTML;btn.innerHTML=chb_i18n[chb_currentLang].sending;btn.disabled=true;
  var text=document.getElementById('orderSummary').value;chb_copyText(text);
  var safeText=chb_escapeHTML(text);var rawPrefix=document.getElementById('phonePrefix').value.trim();var rawPhone=document.getElementById('customerPhone').value.trim();
  var waPhone=(rawPrefix+rawPhone).replace(/[^\d]/g,'');var custName=document.getElementById('customerName').value.trim();
  var mapsLinkRaw=document.getElementById('mapsLink').value.trim();var finalMapsLink='';
  if(mapsLinkRaw){var processed=mapsLinkRaw;if(!processed.startsWith('http://')&&!processed.startsWith('https://')){processed=(!processed.includes(' '))?'https://'+processed:'https://maps.google.com/?q='+encodeURIComponent(processed);}try{var url=new URL(processed);finalMapsLink=url.href;}catch(e1){try{var url2=new URL(encodeURI(processed));finalMapsLink=url2.href;}catch(e2){finalMapsLink='';}}if(finalMapsLink.length>500)finalMapsLink='';}
  var waMsg='Hello '+custName+', we received your order and are working on it!';
  var keyboard=[[{text:'💬 Customer WhatsApp',url:'https://wa.me/'+waPhone},{text:'✅ Send Confirmation',url:'https://wa.me/'+waPhone+'?text='+encodeURIComponent(waMsg)}]];
  if(finalMapsLink)keyboard.push([{text:'📍 Google Maps',url:finalMapsLink}]);keyboard.push([{text:'🖨️ Print',callback_data:'print_order'}]);
  var mapsExtra=(!finalMapsLink&&mapsLinkRaw)?'\n📍 Maps: '+chb_escapeHTML(mapsLinkRaw):'';
  fetch('https://api.telegram.org/bot'+chb_BOT_TOKEN+'/sendMessage',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({chat_id:chb_CHAT_ID,text:'<pre>'+safeText+'</pre>'+mapsExtra,parse_mode:'HTML',disable_web_page_preview:true,reply_markup:{inline_keyboard:keyboard}})})
  .then(function(res){if(!res.ok)return res.json().then(function(err){throw new Error(err.description||'Send failed');});return res.json();})
  .then(function(data){var msgId=data.result.message_id;var photoInput=document.getElementById('locationPhotos');var pp=[];if(photoInput&&photoInput.files.length>0){for(var pi=0;pi<photoInput.files.length;pi++){var fd=new FormData();fd.append('chat_id',chb_CHAT_ID);fd.append('photo',photoInput.files[pi]);fd.append('reply_to_message_id',msgId);pp.push(fetch('https://api.telegram.org/bot'+chb_BOT_TOKEN+'/sendPhoto',{method:'POST',body:fd}));}}return Promise.all(pp);})
  .then(function(){chb_saveUserDetails();chb_showSuccessModal();})
  .catch(function(err){alert('שגיאת חיבור: '+err.message);})
  .finally(function(){btn.innerHTML=orig;btn.disabled=false;});
}
function chb_showToast(text){var toast=document.getElementById('chb-toast');toast.textContent=text+' '+chb_i18n[chb_currentLang].addedToast;toast.style.visibility='visible';toast.style.bottom='90px';toast.style.opacity='1';setTimeout(function(){toast.style.opacity='0';toast.style.bottom='30px';setTimeout(function(){toast.style.visibility='hidden';},300);},3000);}
function chb_scrollToCart(){var c=document.getElementById('actionBtns');if(chb_cart.length>0&&c&&c.style.display!=='none')c.scrollIntoView({behavior:'smooth',block:'center'});}
function chb_updateFloatButtons(){
  var ab=document.getElementById('actionBtns');
  var fb=document.getElementById('floatFinishBtn');
  var cb=document.getElementById('floatClearBtn');
  var ct=document.getElementById('floatClearText');
  var fc=document.getElementById('floatContainer');
  if(!fb||!cb||!ct||!fc)return;
  if(chb_cart.length===0){fc.style.display='none';return;}
  fc.style.display='flex';
  var actionVisible=false;
  if(ab&&ab.style.display!=='none'){var r=ab.getBoundingClientRect();actionVisible=(r.top<window.innerHeight&&r.bottom>0);}
  if(actionVisible){
    fb.style.display='none';
    cb.style.padding='0';cb.style.width='44px';cb.style.height='44px';cb.style.minWidth='44px';cb.style.borderRadius='50%';
    ct.innerText='🗑️';
    fc.style.left='auto';fc.style.right='16px';fc.style.transform='none';
    var r2=ab.getBoundingClientRect();fc.style.bottom=(window.innerHeight-r2.top+12)+'px';
  } else {
    fb.style.display='flex';
    cb.style.padding='11px 20px';cb.style.width='';cb.style.height='';cb.style.minWidth='';cb.style.borderRadius='50px';
    ct.innerText=chb_i18n[chb_currentLang].floatClear;
    fc.style.left='50%';fc.style.right='auto';fc.style.transform='translateX(-50%)';fc.style.bottom='20px';
  }
}

window.addEventListener('scroll',chb_updateFloatButtons);
window.addEventListener('beforeunload',function(e){if(chb_cart.length>0){e.preventDefault();e.returnValue='';}});
setInterval(chb_checkNightMode,60000);
chb_setLang('he');
chb_loadUserDetails();
chb_updateFloatButtons();
//</script>

</div>
</co:body>
			</div>
			

			<div class="break_floats"></div>
			
	<div class="break_floats"></div>
	

<div class="content-footer">
	
	
	
	
	
	
</div>
	</article>

		</div>
	</div>

	</div>

	<div id="BodyContainer">
		<div class="g960 footer">
			<div class="poweredby large_bottom_margin">
				


	<div class="footer3"><b>Chabad Cambodia • #419, Sisowath Quay • Phnom Penh, Cambodia • 855-(0)85-807-205</b></div>
	<img src="https://w2.chabad.org/images/global/spacer.gif" width="1" height="6" border="0" /><br />




Powered by <a href="https://www.chabad.org/" target="_new" class="">Chabad.org</a> &copy; 1993-2026 <a href="/4026210" target="_blank" class="privacy-link">Privacy Policy</a>




			</div>
		</div>
	</div>
	
	

	
	
<script>
    // Function to update the Chabad link text based on the active language
    function updateChabadText() {
        const activeLanguageLabel = document.getElementById('LanguageSelectorActiveLanguage');
        // Use querySelector to get the specific <a> tag under #header_branding
        const chabadLink = document.querySelector('#header_branding > a.site_title');
        // Get the subtitle span directly within that link
        const chabadSubtitle = chabadLink ? chabadLink.querySelector('.site_subtitle') : null;

        if (!activeLanguageLabel || !chabadLink || !chabadSubtitle) {
            console.warn('One or more required elements not found for Chabad text update.');
            return;
        }

        const currentLanguageText = activeLanguageLabel.textContent.trim();

        if (currentLanguageText === 'עברית') {
            // Update the main title text (the text node directly inside <a>)
            if (chabadLink.firstChild && chabadLink.firstChild.nodeType === Node.TEXT_NODE) {
                chabadLink.firstChild.nodeValue = 'חב"ד קמבודיה';
            }
            chabadSubtitle.textContent = 'אף יהודי לא יישאר מאחור'; // Update the subtitle span
            chabadLink.title = 'חב"ד קמבודיה'; // Update the title attribute for accessibility
        } else { // Assume English or any other language
            if (chabadLink.firstChild && chabadLink.firstChild.nodeType === Node.TEXT_NODE) {
                chabadLink.firstChild.nodeValue = 'Chabad Cambodia';
            }
            chabadSubtitle.textContent = 'No Jew Will Be Left Behind';
            chabadLink.title = 'Chabad Cambodia';
        }
    }

    // Function to update the Donate link's href based on the active language
    function updateDonateLinkHref() {
        const activeLanguageLabel = document.getElementById('LanguageSelectorActiveLanguage');
        // Select the donate link using the specific path
        const donateLink = document.querySelector('#tabContentMain > td.co_menu_item.donate_link > span > div > a');

        if (!activeLanguageLabel || !donateLink) {
            console.warn('Language selector label or donate link not found for Donate href update.');
            return;
        }

        const currentLanguageText = activeLanguageLabel.textContent.trim();

        if (currentLanguageText === 'English') {
            donateLink.href = '/6936938'; // Set href for English
        } else if (currentLanguageText === 'עברית') { // If the language is Hebrew
            // Set href to the new iCount URL for Hebrew
            donateLink.href = 'https://app.icount.co.il/m/28dbe/c6cdap27u68581d024a?utm_source=iCount&utm_medium=paypage&utm_campaign=39';
        }
    }

    // Function to handle language selection (remains largely the same)
    function setLanguage(langCode, clickedElement) {
        const activeLanguageLabel = document.getElementById('LanguageSelectorActiveLanguage');
        const languageItems = document.querySelectorAll('.language_item');

        // Remove 'active' class from all language items
        languageItems.forEach(item => {
            item.classList.remove('active');
        });

        // Add 'active' class to the clicked language item
        if (clickedElement) {
            clickedElement.classList.add('active');
            activeLanguageLabel.textContent = clickedElement.textContent.trim();
        }

        // Call functions to update content based on the new language
        updateChabadText();
        updateDonateLinkHref(); // NEW: Call this function after language changes

        // Optionally close the dropdown after selection
        const languageSelectorMenu = document.getElementById('LanguageSelectorMenu');
        languageSelectorMenu.classList.remove('active_dropdown');
    }

    // Function to toggle the language dropdown visibility
    function toggleLanguageDropdown(menuElement) {
        menuElement.classList.toggle('active_dropdown');
    }

    // --- Initial setup on page load ---
    document.addEventListener('DOMContentLoaded', (event) => {
        // Set initial active language label text based on the HTML's active language item
        const initialActiveLangItem = document.querySelector('.language_item.active');
        if (initialActiveLangItem) {
            document.getElementById('LanguageSelectorActiveLanguage').textContent = initialActiveLangItem.textContent.trim();
        }

        // Perform the initial checks and updates when the page loads
        updateChabadText();
        updateDonateLinkHref(); // NEW: Call this function on initial load
    });
</script>
</body>
</html>