<!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" />
<meta name="title" content="Kosher Kitchen - Chabad Cambodia" />
<meta property="og:type" content="website" />
<meta name="scope-aids" content="1015798-1015806-6828247-7320756" />
<meta name="article-keywords" content="16403-16669-6760-1675-2170-2898" />
<meta name="scope-aid" content="1015798" />
<meta name="scope-aid" content="1015806" />
<meta name="scope-aid" content="6828247" />
<meta name="scope-aid" content="7320756" />
<meta name="article-keyword" content="16403" />
<meta name="article-keyword" content="16669" />
<meta name="article-keyword" content="6760" />
<meta name="article-keyword" content="1675" />
<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/7320756/jewish/Kosher-Kitchen.htm" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:site" content="@chabad" />
<meta property="og:title" content="Kosher Kitchen - Chabad Cambodia" /><link rel="canonical" href="https://www.jewishcambodia.com/templates/articlecco_cdo/aid/7320756/jewish/Kosher-Kitchen.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?v=2D6ABDDB" id="kfont-awesome" type="text/css"/>
<link rel="Stylesheet" href="/css/DefaultGrid.css?v=A13D74E8" id="kgrid" type="text/css"/>
<link rel="Stylesheet" href="/css/Elements.css?v=3A4C63F41" id="k6" type="text/css"/>
<link rel="Stylesheet" href="/css/vendor/ds/tokens/sites.css?v=A934B108" id="ksites-ds-css" type="text/css"/>
<link rel="Stylesheet" href="/css/new/main.css?v=BB63DD50" id="k7" type="text/css"/>
<link rel="Stylesheet" href="/css/old/global.css?v=43DDBA77" id="k2898" type="text/css"/>
<link rel="Stylesheet" href="/css/bootstrap/grid.css?v=F4390F2B" id="kbootstrap4-grid" type="text/css"/>
<link rel="Stylesheet" href="/css/Library/reader-comments.css?v=8AB57D79" id="kCommentsStylesheet" type="text/css"/>
<link rel="Stylesheet" href="/css/inline/BookInfo.css?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?v=278824AF"></script>
<script type="text/javascript" src="https://w2.chabad.org/scripts/js/co/dist/CoLib.js?v=98C851E4"></script>
<script type="text/javascript" src="https://w2.chabad.org/scripts/js/WebComponents/bundles/magen-cdo-global.js?v=41844740"></script>
<script type="text/javascript" src="https://w2.chabad.org/scripts/js/custom/multimedia/infolayer.js?v=ED1B8531"></script>
<script type="text/javascript" src="https://w2.chabad.org/scripts/js/article/comments/reply-form-controller.js?v=DC70C970"></script>
<script type="text/javascript" src="https://w2.chabad.org/scripts/js/custom/commentsloader.js?v=AD6AAB79"></script>
<script type="text/javascript" src="https://w2.chabad.org/scripts/js/custom/subscribeprompt.js?v=86D84DC2"></script>
<script type="text/javascript" src="https://w2.chabad.org/scripts/js/custom/deprecated.js?v=D506A83E"></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     = '7320756';Co.SectionId     = 6828247;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":7320756,"title":"","author":"","authorId":0,"contentLevel1":"My Site","contentLevel2":"Hebrew","contentLevel3":"Kosher Kitchen","siteName":"Chabad Cambodia"},"time":{"upcomingHoliday":"Rosh Hashanah","daysToUpcomingHoliday":23,"hebrewDate":"5786-06-07"}});
		dataLayer.push({ 'articleHierarchy': '-1015798-1015806-6828247-7320756-', 'keywords': '-k2898-k2170-k1675-k6760-k16669-k16403-', 'k': '-1015798-1015806-6828247-7320756--k2898-k2170-k1675-k6760-k16669-k16403-' });
	
</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 - 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-12T05:16:57" />
<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-12T05:16:57" />
			<div itemprop="articleBody">
				<co:body xmlns:co="www1.chabadonline.com/alpha1" xmlns:ext="urn:xslt-extensions">
  <div class="co_body article-body cf">
<style type="text/css">/**/
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;600;700;800&display=swap');
*{box-sizing:border-box;margin:0;padding:0;}
body{font-family:'Heebo',Arial,sans-serif;background-color:#00B2B2;color:#fff;padding:12px 16px 120px;min-height:100vh;}
.app-wrapper{max-width:660px;margin:0 auto;}
.header-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;}
.header-titles{flex:1;text-align:center;}
.header-titles h1{font-size:clamp(15px,4vw,24px);font-weight:800;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.3);line-height:1.2;margin:0;}
.lang-toggle{display:flex;gap:6px;}
.lang-toggle button{background:rgba(255,255,255,.2);color:white;border:1px solid rgba(255,255,255,.4);border-radius:20px;padding:6px 14px;cursor:pointer;font-weight:700;font-size:13px;transition:.2s;font-family:'Heebo',Arial,sans-serif;}
.lang-toggle button.active{background:white;color:#00B2B2;border-color:white;}
.lang-toggle button:hover:not(.active){background:rgba(255,255,255,.3);}
.night-notice{display:none;background:rgba(255,200,0,.15);border:1px solid #FFD700;border-radius:8px;padding:8px 12px;font-size:13px;color:#FFE84D;text-align:center;margin-bottom:12px;}
.night-notice.visible{display:block;}
.customer-card{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:10px;padding:16px;margin-bottom:20px;box-shadow:0 4px 12px rgba(0,0,0,.1);}
.form-grid{display:flex;flex-direction:column;align-items:center;gap:10px;}
.field-input{width:100%;max-width:360px;padding:10px 14px;font-size:15px;border-radius:8px;border:2px solid transparent;outline:none;background:rgba(255,255,255,.95);color:#333;font-family:'Heebo',Arial,sans-serif;transition:.2s;}
.field-input:focus{border-color:#FFD700;box-shadow:0 0 0 3px rgba(255,215,0,.25);}
.field-input.error-border{border-color:#E85555!important;background:#fff0f0;}
select.field-input{cursor:pointer;}
.phone-row{display:flex;width:100%;max-width:360px;gap:8px;direction:ltr;}
#phonePrefix{width:65px;text-align:center;font-weight:700;padding:10px 4px;flex-shrink:0;}
#customerPhone{flex:1;}
.dynamic-container{display:none;flex-direction:column;align-items:center;gap:10px;width:100%;animation:slideDown .25s ease;}
@keyframes slideDown{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.field-label{font-size:13px;color:#FFD700;font-weight:700;text-align:start;width:100%;max-width:360px;margin-bottom:-4px;}
.delivery-fee-note{display:none;background:rgba(255,215,0,.1);border:1px solid rgba(255,215,0,.4);border-radius:8px;padding:10px 14px;font-size:13px;color:#FFE84D;text-align:center;margin-top:4px;width:100%;max-width:360px;}
.category{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);border-radius:12px;margin-bottom:14px;overflow:hidden;}
.category-header{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;cursor:pointer;background:rgba(0,0,0,.15);user-select:none;transition:.2s;}
.category-header:hover{background:rgba(0,0,0,.25);}
.category-header h2{font-size:17px;font-weight:700;color:#FFD700;margin:0;}
.category-chevron{font-size:16px;transition:transform .3s;color:#FFD700;}
.category.expanded .category-chevron{transform:rotate(180deg);}
.category-body{display:none;padding:0 14px 14px;flex-direction:column;}
.category.expanded .category-body{display:flex;animation:fadeIn .25s ease;}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.item{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(255,255,255,.15);padding:12px 0;}
.item:last-child{border-bottom:none;padding-bottom:0;}
.item-details{flex:1;display:flex;flex-direction:column;justify-content:center;text-align:start;}
.item-name{font-size:15px;font-weight:700;}
.item-desc{font-size:12px;color:rgba(255,255,255,.75);margin-top:2px;}
.item-price-tag{flex:0 0 auto;background:rgba(0,0,0,.15);border:1px solid rgba(255,215,0,.25);color:#FFD700;font-size:15px;font-weight:800;padding:3px 10px;border-radius:8px;margin:0 12px;text-align:center;}
.item-actions{flex:0 0 auto;display:flex;align-items:center;gap:8px;}
.add-btn{background:#FFD700;color:#333;border:none;border-radius:8px;font-size:20px;cursor:pointer;font-weight:bold;width:36px;height:36px;display:flex;justify-content:center;align-items:center;transition:.2s;}
.add-btn:hover{background:#FFE84D;transform:scale(1.1);}
.remove-btn-inline{background:#E85555;color:white;border:none;border-radius:8px;font-size:20px;cursor:pointer;font-weight:bold;width:36px;height:36px;justify-content:center;align-items:center;display:none;transition:.2s;}
.remove-btn-inline:hover{background:#c73c3c;}
.qty-badge{background:#222;color:white;border-radius:8px;min-width:30px;height:30px;padding:0 6px;display:none;justify-content:center;align-items:center;font-size:13px;font-weight:700;}
.item-accordion{flex-direction:column;align-items:stretch;padding:0!important;}
.item-accordion .item-header{display:flex;justify-content:space-between;align-items:center;padding:12px 0;cursor:pointer;user-select:none;}
.item-accordion .item-body{display:none;padding-bottom:14px;flex-direction:column;gap:10px;animation:fadeIn .25s ease;}
.item-accordion.expanded .item-body{display:flex;}
.item-accordion .chevron{font-size:14px;transition:transform .3s;color:#FFD700;margin:0 4px;}
.item-accordion.expanded .item-header .chevron{transform:rotate(180deg);}
.selection-group{background:rgba(0,0,0,.2);border:2px solid transparent;border-radius:8px;padding:10px;transition:.2s;}
.selection-group.error-border{border-color:#E85555;background:rgba(232,85,85,.1);}
.selection-title{font-weight:700;font-size:13px;color:#FFD700;margin-bottom:8px;border-bottom:1px solid rgba(255,255,255,.15);padding-bottom:6px;}
.options-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:6px;}
.option-lbl{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer;background:rgba(255,255,255,.1);padding:6px 10px;border-radius:6px;transition:.2s;}
.option-lbl:hover{background:rgba(255,255,255,.2);}
.option-lbl input{width:16px;height:16px;cursor:pointer;accent-color:#FFD700;}
.qty-control{display:flex;align-items:center;gap:4px;background:rgba(255,255,255,.9);border-radius:6px;padding:2px;}
.qty-control button{background:#eee;border:none;width:32px;height:32px;font-size:18px;cursor:pointer;border-radius:4px;font-weight:bold;color:#333;display:flex;justify-content:center;align-items:center;transition:.15s;}
.qty-control button:hover{background:#ddd;}
.qty-control input{width:40px;height:32px;text-align:center;border:none;font-size:15px;font-weight:700;background:transparent;color:#333;font-family:'Heebo',Arial,sans-serif;}
input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;}
input[type=number]{-moz-appearance:textfield;}
.item-actions-row{display:flex;justify-content:space-between;align-items:center;background:rgba(0,0,0,.15);padding:8px 10px;border-radius:8px;gap:8px;margin-top:4px;}
.add-btn-full{background:#FFD700;color:#333;border:none;border-radius:6px;font-size:14px;cursor:pointer;font-weight:700;padding:8px 16px;flex-grow:1;transition:.2s;font-family:'Heebo',Arial,sans-serif;}
.add-btn-full:hover{background:#FFE84D;transform:scale(1.02);}
.cart-container{margin-top:24px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);padding:16px;border-radius:12px;scroll-margin-top:20px;}
.cart-container h2{font-size:18px;font-weight:700;text-align:center;margin-bottom:12px;}
.cart-item{margin-bottom:8px;background:rgba(255,255,255,.08);padding:10px 12px;border-radius:8px;border:1px solid rgba(255,255,255,.15);}
.cart-item-header{display:flex;justify-content:space-between;align-items:center;gap:8px;}
.cart-item-text{font-size:14px;flex:1;}
.cart-item-text .qty-tag{color:#FFD700;font-weight:700;font-size:15px;}
.cart-item-text .item-total{color:#FFE84D;font-size:13px;}
.cart-qty-ctrl{display:flex;align-items:center;gap:4px;}
.cart-qty-btn{background:rgba(255,255,255,.15);color:white;border:1px solid rgba(255,255,255,.3);width:26px;height:26px;border-radius:5px;font-size:15px;cursor:pointer;font-weight:bold;display:flex;justify-content:center;align-items:center;transition:.15s;}
.cart-qty-btn:hover{background:rgba(255,255,255,.3);}
.cart-qty-num{min-width:26px;text-align:center;font-weight:700;font-size:14px;}
.remove-btn{background:#E85555;color:white;border:none;padding:5px 8px;border-radius:6px;cursor:pointer;font-size:12px;font-weight:700;transition:.2s;flex-shrink:0;}
.remove-btn:hover{background:#c73c3c;}
.summary-container{margin-top:24px;display:flex;flex-direction:column;align-items:center;}
.receipt-paper{background:#fff;color:#222;width:100%;max-width:400px;padding:26px 22px;border-radius:8px;box-shadow:0 8px 32px rgba(0,0,0,.3);font-family:'Courier New',monospace;text-align:center;direction:ltr;}
.receipt-logo{width:90px;margin-bottom:12px;}
.receipt-header{font-size:14px;margin-bottom:16px;border-bottom:1px dashed #999;padding-bottom:12px;line-height:1.7;color:#555;}
.receipt-body{text-align:left;font-size:15px;margin-bottom:16px;white-space:pre;overflow-x:hidden;color:#222;line-height:1.7;}
.receipt-footer{font-size:13px;border-top:1px dashed #999;padding-top:14px;font-weight:bold;line-height:2;color:#333;}
.receipt-time-row{text-align:center;margin:4px 0 16px;border:2px dashed #ccc;border-radius:8px;padding:12px 10px;}
.receipt-time-label{font-size:11px;color:#888;margin-bottom:6px;letter-spacing:2px;text-transform:uppercase;font-family:'Courier New',monospace;}
.receipt-time-value{font-size:34px;font-weight:900;letter-spacing:2px;color:#222;font-family:'Courier New',monospace;display:inline-block;}
.receipt-time-ampm{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;}
textarea#orderSummary{display:none;}
.action-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;justify-content:center;width:100%;max-width:330px;}
.action-btns button{flex:1;min-width:130px;padding:12px;font-size:14px;border:none;border-radius:8px;cursor:pointer;font-weight:700;color:white;transition:.2s;font-family:'Heebo',Arial,sans-serif;}
.copy-btn{background:#3a3a3a;}
.copy-btn:hover{background:#555;}
.telegram-btn{background:#0088cc;}
.telegram-btn:hover{background:#0073aa;}
.floating-actions{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);display:flex;gap:10px;z-index:999;width:max-content;}
.float-btn{padding:12px 20px;border-radius:30px;cursor:pointer;font-weight:700;display:flex;align-items:center;gap:8px;box-shadow:0 6px 20px rgba(0,0,0,.4);font-size:14px;border:none;font-family:'Heebo',Arial,sans-serif;transition:.2s;}
.float-btn:hover{transform:translateY(-2px);}
.float-btn.clear{background:#E85555;color:white;}
.float-btn.clear:hover{background:#c73c3c;}
.float-btn.finish{background:#FFD700;color:#333;position:relative;}
.float-btn.finish:hover{background:#FFE84D;}
.floating-cart-badge{position:absolute;top:-8px;right:-8px;background:#E85555;color:white;border-radius:50%;min-width:22px;height:22px;font-size:12px;display:none;justify-content:center;align-items:center;font-weight:700;border:2px solid white;padding:0 4px;}
#toast{visibility:hidden;min-width:240px;background:rgba(0,0,0,.85);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,.4);opacity:0;transition:opacity .3s,bottom .3s;pointer-events:none;}
#toast.show{visibility:visible;bottom:90px;opacity:1;}
.spinner{display:inline-block;width:18px;height:18px;border:3px solid rgba(255,255,255,.4);border-top-color:white;border-radius:50%;animation:spin .7s linear infinite;}
@keyframes spin{to{transform:rotate(360deg)}}
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:2000;display:none;justify-content:center;align-items:center;padding:16px;}
.modal-overlay.visible{display:flex;}
.modal-box{background:#00B2B2;border:1px solid rgba(255,255,255,.25);border-radius:20px;padding:32px 24px;text-align:center;max-width:340px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,.5);animation:popIn .4s cubic-bezier(.34,1.56,.64,1);}
@keyframes popIn{from{transform:scale(.7);opacity:0}to{transform:scale(1);opacity:1}}
.modal-icon{font-size:56px;margin-bottom:12px;}
.modal-box h3{font-size:20px;font-weight:800;color:#FFD700;margin-bottom:8px;}
.modal-box p{font-size:14px;color:rgba(255,255,255,.85);line-height:1.6;margin-bottom:20px;white-space:pre-line;}
.modal-btn{background:#FFD700;color:#333;border:none;border-radius:30px;padding:10px 28px;font-size:15px;font-weight:700;cursor:pointer;font-family:'Heebo',Arial,sans-serif;transition:.2s;}
.modal-btn:hover{background:#FFE84D;transform:scale(1.04);}
input[type="file"]::file-selector-button{background:#FFD700;color:#333;font-weight:700;border:none;padding:6px 10px;border-radius:5px;cursor:pointer;margin-inline-end:8px;}
input[type="file"]::file-selector-button:hover{background:#FFE84D;}
#lang-popup {position:fixed; inset:0; background:rgba(0,0,0,0.85); z-index:9999; display:none; flex-direction:column; justify-content:center; align-items:center; font-family:'Heebo',Arial,sans-serif; direction:rtl; padding:16px;}
.lang-popup-box {background:#00B2B2; padding:30px 24px; border-radius:20px; text-align:center; max-width:340px; width:100%; box-shadow:0 15px 40px rgba(0,0,0,0.5); border:1px solid rgba(255,255,255,0.2);}
.lang-popup-btn {background:white; color:#00B2B2; border:none; padding:12px 24px; border-radius:25px; cursor:pointer; font-size:18px; font-weight:bold; font-family:'Heebo',Arial,sans-serif; transition:.2s; min-width:120px;}
.lang-popup-btn:hover {transform:scale(1.05); background:#f0fbfb;}
/**/
</style>

<div id="lang-popup">
<div class="lang-popup-box"><section>
</section><section><h2 style="margin-top:0; font-size:22px; margin-bottom:24px; color:#FFD700; font-weight:800;">בחר שפה / Language</h2>
<div style="display:flex; gap:16px; justify-content:center; direction:ltr;">
<button onclick="chb_selectPopupLang('he')" class="lang-popup-btn">עברית</button>
<button onclick="chb_selectPopupLang('en')" class="lang-popup-btn">English</button>
</div>
</section></div>
</div>

<div class="app-wrapper">
<div class="header-top">
<div class="lang-toggle" style="width:120px;">
<button id="btn-he" class="active" onclick="chb_selectPopupLang('he')">HE</button>
<button id="btn-en" onclick="chb_selectPopupLang('en')">EN</button>
</div>
<div class="header-titles">
<h1 id="mainTitle">חב״ד קמבודיה - מטבח כשר</h1>
</div>
<div style="width:120px;"></div>
</div>
<div id="nightNotice" class="night-notice"></div>
<div class="customer-card">
<div class="form-grid">
<input type="text" id="customerName" placeholder="שם לקוח (אנגלית בלבד)..." oninput="enforceEnglishName(this);updateSummary()" class="field-input">
<div class="phone-row">
<input type="text" id="phonePrefix" value="+972" oninput="updateSummary()" class="field-input">
<input type="tel" id="customerPhone" placeholder="מספר טלפון (חובה)..." oninput="updateSummary()" class="field-input">
</div>
<select id="orderType" onchange="toggleOrderFields();updateSummary()" class="field-input">
<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" class="dynamic-container">
<label id="lblTime" class="field-label">שעת הגעה / משלוח מבוקשת:</label>
<input type="time" id="arrivalTime" onchange="updateSummary()" class="field-input">
</div>
<div id="delivery-container" class="dynamic-container">
<input type="text" id="deliveryAddress" placeholder="כתובת למשלוח (חובה)..." oninput="updateSummary()" class="field-input">
<input type="text" id="roomNumber" placeholder="מספר חדר (אופציונלי)..." oninput="updateSummary()" class="field-input">
<input type="tel" id="localPhone" placeholder="טלפון מקומי בקמבודיה (חובה)..." oninput="updateSummary()" class="field-input">
<input type="text" id="mapsLink" placeholder="קישור גוגל מפות (חובה)..." oninput="updateSummary()" class="field-input" style="direction:ltr;text-align:left;">
<label class="field-label" style="margin-top:2px;">
<span id="photoLabel">תמונה של המיקום (ניתן לבחור כמה):</span>
<input type="file" id="locationPhotos" accept="image/*" multiple class="field-input" style="background:rgba(255,255,255,.15);margin-top:6px;color:white;padding:6px;">
</label>
<div class="delivery-fee-note" id="deliveryFeeNote">
          🛵 <span id="deliveryFeeText">דמי משלוח יחושבו בעת המשלוח</span>
</div>
</div>
</div>
</div>
<div id="menu-container"></div>
<div class="cart-container" id="cart-container" style="display:none;">
<h2 id="cartTitle">ההזמנה שלי</h2>
<div id="cart-items"></div>
</div>
<div class="summary-container">
<textarea id="orderSummary" style="display:none;"></textarea>
<div class="receipt-paper" id="receiptVisual" style="display:none;">
<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" class="receipt-logo">
<div class="receipt-header">419 Preah Sisowath Quay, Phnom Penh<br>☎ 085807205  ✉ rabbi@jewishcambodia.com<br><br><b>CHABAD CAMBODIA KOSHER</b></div>
<div id="receiptTimeRow" class="receipt-time-row" style="display:none;">
<div class="receipt-time-label">⏰ ARRIVAL / DELIVERY TIME</div>
<div>
<span id="receiptTimeHM" class="receipt-time-value"></span><span id="receiptTimeAMPM" class="receipt-time-ampm"></span></div>
</div>
<div class="receipt-body" id="receiptBodyText"></div>
<div class="receipt-footer">THANK YOU<br>No Jew Will Be Left Behind<br>חב"ד - עם כל הלב לכל אחד</div>
</div>
<div class="action-btns" id="actionBtns" style="display:none;">
<button class="copy-btn" id="btnCopy" onclick="copyOrderOnly()">העתק רשימה</button>
<button class="telegram-btn" id="btnTelegram" onclick="sendToTelegram()">סיים ושלח ✔️</button>
</div>
</div>
</div>
<div class="floating-actions">
<button class="float-btn clear" onclick="clearOrder()">
<span id="floatClearText">נקה 🗑️</span></button>
<button class="float-btn finish" onclick="scrollToCart()">
<span id="floatFinishText">סיום הזמנה 🛒</span><span class="floating-cart-badge" id="floatingCartBadge">0</span></button>
</div>
<div id="toast"></div>
<div class="modal-overlay" id="successModal">
<div class="modal-box">
<div class="modal-icon">✅</div>
<h3 id="modalTitle">ההזמנה נשלחה!</h3>
<p id="modalBody">ההזמנה שלך נשלחה לחב"ד בהצלחה.
היא גם הועתקה ללוח שלך.
אנא פנה אלינו בווצאפ לאישור.</p>
<button class="modal-btn" onclick="closeModal()" id="modalBtn">סגור</button>
</div>
</div>

<script type="text/javascript">
//
const i18n={
  he:{title:"חב״ד קמבודיה - מטבח כשר",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: ניתן להזמין רק סוג אחד של מנה עיקרית (עם אותה תוספת)!"},
  en:{title:"Chabad Cambodia - Kosher Restaurant",placeholderName:"Customer Name (English only)...",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!"}
};

const 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:"פתיתים"}]};

const 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}
  ]}
];

let cart=[];
let currentLang='he';

function enforceEnglishName(input){input.value=input.value.replace(/[^a-zA-Z0-9\s\.,'\-]/g,'');}
function escapeHTML(s){return(s||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");}
function getLocalOptionText(type,enVal,lang){const l=optionsData[type];if(!l)return enVal;const o=l.find(x=>x.en===enVal);return o?o[lang]:enVal;}
function padDots(l,r,t=32){let s=t-l.length-r.length;if(s<2)s=2;return l+'.'.repeat(s)+r;}
function formatTime12h(t){if(!t)return null;const[h,m]=t.split(':').map(Number);return{hm:(h%12||12)+':'+String(m).padStart(2,'0'),ampm:h>=12?'PM':'AM'};}

function checkNightMode(){
  const h=new Date().getHours();
  const n=document.getElementById('nightNotice');
  if(h>=21){n.textContent=i18n[currentLang].nightNotice;n.classList.add('visible');}
  else{n.classList.remove('visible');}
}

function setLang(lang){
  currentLang=lang;
  localStorage.setItem('chb_lang', lang);
  document.documentElement.lang=lang;
  document.documentElement.dir=lang==='he'?'rtl':'ltr';
  document.getElementById('btn-he').classList.toggle('active',lang==='he');
  document.getElementById('btn-en').classList.toggle('active',lang==='en');
  const t=i18n[lang];
  document.getElementById('mainTitle').innerText=t.title;
  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;
  ['customerName','customerPhone','deliveryAddress','localPhone','mapsLink','arrivalTime'].forEach(id=>document.getElementById(id).classList.remove('error-border'));
  checkNightMode();
  renderMenu();
  updateCartUI();
}

function toggleOrderFields(){
  const 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';
  ['deliveryAddress','localPhone','mapsLink','arrivalTime'].forEach(id=>document.getElementById(id).classList.remove('error-border'));
}

function toggleCategory(id){document.getElementById(id).classList.toggle('expanded');}
function toggleItem(id){document.getElementById('item-'+id).classList.toggle('expanded');}
function changeQty(id,delta){const i=document.getElementById('qty-'+id);i.value=Math.max(1,(parseInt(i.value)||1)+delta);}
function validateQty(id){const i=document.getElementById('qty-'+id);if(isNaN(parseInt(i.value))||parseInt(i.value)<1)i.value=1;}

function renderMenu(){
  const container=document.getElementById('menu-container');
  container.innerHTML='';
  menuData.forEach((cat,catIdx)=>{
    const catTitle=currentLang==='he'?cat.categoryHe:cat.categoryEn;
    let html='<div class="category" id="cat-'+catIdx+'"><div class="category-header" onclick="toggleCategory(\'cat-'+catIdx+'\')"><h2>'+catTitle+'</h2><div class="category-chevron">▼</div></div><div class="category-body">';
    cat.items.forEach(item=>{
      const name=currentLang==='he'?item.he:item.en;
      const desc=item.descHe?(currentLang==='he'?item.descHe:item.descEn):'';
      if(item.selections){
        html+='<div class="item item-accordion" id="item-'+item.id+'">';
        html+='<div class="item-header" onclick="toggleItem(\''+item.id+'\')"><div class="item-details"><span class="item-name">'+name+'</span>'+(desc?'<span class="item-desc">'+desc+'</span>':'')+'</div><div class="item-price-tag">$'+item.price+'</div>';
        html+='<div class="item-actions"><button class="remove-btn-inline" id="btn-remove-'+item.id+'" onclick="event.stopPropagation();removeOneFromMenu(\''+item.id+'\')">−</button><span class="qty-badge" id="badge-'+item.id+'">0</span><div class="chevron">▼</div></div></div>';
        html+='<div class="item-body">';
        item.selections.forEach(sel=>{
          const reqText=currentLang==='he'?'בחר '+sel.labelHe:'Choose '+sel.labelEn;
          const grp='sel_'+item.id+'_'+sel.type;
          html+='<div class="selection-group" id="group_'+grp+'"><div class="selection-title">'+reqText+'</div><div class="options-grid">';
          optionsData[sel.type].forEach(opt=>{
            const optText=currentLang==='he'?opt.he:opt.en;
            html+='<label class="option-lbl"><input type="radio" name="'+grp+'" value="'+opt.en+'" /> '+optText+'</label>';
          });
          html+='</div></div>';
        });
        html+='<div class="item-actions-row"><div class="qty-control"><button onclick="changeQty(\''+item.id+'\',-1)">−</button><input type="number" id="qty-'+item.id+'" value="1" min="1" onchange="validateQty(\''+item.id+'\')" /><button onclick="changeQty(\''+item.id+'\',1)">+</button></div>';
        html+='<button class="add-btn-full" onclick="addToCart(\''+item.id+'\')">'+i18n[currentLang].btnAdd+'</button></div>';
        html+='</div></div>';
      } else {
        html+='<div class="item"><div class="item-details"><span class="item-name">'+name+'</span>'+(desc?'<span class="item-desc">'+desc+'</span>':'')+'</div><div class="item-price-tag">$'+item.price+'</div>';
        html+='<div class="item-actions"><button class="remove-btn-inline" id="btn-remove-'+item.id+'" onclick="removeOneFromMenu(\''+item.id+'\')">−</button><span class="qty-badge" id="badge-'+item.id+'">0</span><button class="add-btn" onclick="addToCart(\''+item.id+'\')">+</button></div></div>';
      }
    });
    html+='</div></div>';
    container.innerHTML+=html;
  });
}

function addToCart(id){
  let item=null;
  for(const cat of menuData){const f=cat.items.find(i=>i.id===id);if(f){item=f;break;}}
  if(!item)return;
  let sideEn='',sideHe='',qty=1;
  let displayName=currentLang==='he'?item.he:item.en;
  if(item.selections){
    const grp='sel_'+item.id+'_side';
    const checked=document.querySelector('input[name="'+grp+'"]:checked');
    if(!checked){alert(i18n[currentLang].mustSelectSideError);document.getElementById('group_'+grp).classList.add('error-border');return;}
    document.getElementById('group_'+grp).classList.remove('error-border');
    sideEn=checked.value;
    sideHe=getLocalOptionText('side',sideEn,'he');
    displayName+=currentLang==='he'?' + '+sideHe:' + '+sideEn;
    qty=parseInt(document.getElementById('qty-'+id).value)||1;
  }
  if(item.isMain&&new Date().getHours()>=21){
    const mains=cart.filter(c=>c.isMain);
    if(mains.length>0){const f=mains[0];if(f.baseEn!==item.en||f.sideEn!==sideEn){alert(i18n[currentLang].nightMainLimit);return;}}
  }
  const existing=cart.find(c=>c.originalId===id&&c.sideEn===sideEn);
  if(existing){existing.qty+=qty;}
  else{cart.push({id:Date.now(),originalId:id,baseEn:item.en,baseHe:item.he,sideEn,sideHe,price:item.price,qty,isMain:!!item.isMain});}
  if(item.selections){
    const grp='sel_'+item.id+'_side';
    const checked=document.querySelector('input[name="'+grp+'"]:checked');
    if(checked)checked.checked=false;
    document.getElementById('qty-'+id).value=1;
  }
  updateCartUI();
  showToast((qty>1?qty+'× ':'')+displayName);
}

function removeFromCart(cartItemId){cart=cart.filter(i=>i.id!==cartItemId);updateCartUI();}
function changeCartQty(cartItemId,delta){
  const item=cart.find(i=>i.id===cartItemId);
  if(!item)return;
  item.qty+=delta;
  if(item.qty<=0)cart=cart.filter(i=>i.id!==cartItemId);
  updateCartUI();
}
function removeOneFromMenu(originalId){
  for(let i=cart.length-1;i>=0;i--){
    if(cart[i].originalId===originalId){if(cart[i].qty>1)cart[i].qty--;else cart.splice(i,1);break;}
  }
  updateCartUI();
}

function updateCartUI(){
  const cartDiv=document.getElementById('cart-container');
  const cartItemsDiv=document.getElementById('cart-items');
  document.querySelectorAll('.qty-badge').forEach(b=>{b.innerText='0';b.style.display='none';});
  document.querySelectorAll('.remove-btn-inline').forEach(b=>{b.style.display='none';});
  const idCounts={};
  cart.forEach(item=>{idCounts[item.originalId]=(idCounts[item.originalId]||0)+item.qty;});
  let total=0;
  for(const[id,count]of Object.entries(idCounts)){
    total+=count;
    const badge=document.getElementById('badge-'+id);
    const rmBtn=document.getElementById('btn-remove-'+id);
    if(badge&&count>0){badge.innerText=count;badge.style.display='flex';if(rmBtn)rmBtn.style.display='flex';}
  }
  const fb=document.getElementById('floatingCartBadge');
  if(total>0){fb.innerText=total;fb.style.display='flex';}else{fb.style.display='none';}
  if(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='';
    cart.forEach(item=>{
      const baseName=currentLang==='he'?item.baseHe:item.baseEn;
      const sideName=item.sideEn?(currentLang==='he'?' + '+item.sideHe:' + '+item.sideEn):'';
      const lineTotal=(item.price*item.qty).toFixed(2);
      cartItemsDiv.innerHTML+='<div class="cart-item"><div class="cart-item-header"><div class="cart-item-text"><span class="qty-tag">'+item.qty+'×</span> '+baseName+sideName+' <span class="item-total">($'+lineTotal+')</span></div><div class="cart-qty-ctrl"><button class="cart-qty-btn" onclick="changeCartQty('+item.id+',-1)">−</button><span class="cart-qty-num">'+item.qty+'</span><button class="cart-qty-btn" onclick="changeCartQty('+item.id+',1)">+</button></div><button class="remove-btn" onclick="removeFromCart('+item.id+')">'+i18n[currentLang].btnRemove+'</button></div></div>';
    });
  }
  updateSummary();
}

function updateSummary(){
  const name=document.getElementById('customerName').value.trim();
  const phone=document.getElementById('customerPhone').value.trim();
  const prefix=document.getElementById('phonePrefix').value.trim();
  const orderType=document.getElementById('orderType').value;
  const arrivalTime=document.getElementById('arrivalTime').value;
  const address=document.getElementById('deliveryAddress').value.trim();
  const room=document.getElementById('roomNumber').value.trim();
  const localPh=document.getElementById('localPhone').value.trim();
  const summaryBox=document.getElementById('orderSummary');
  const receiptBody=document.getElementById('receiptBodyText');
  if(name)document.getElementById('customerName').classList.remove('error-border');
  if(phone)document.getElementById('customerPhone').classList.remove('error-border');
  if(cart.length===0){summaryBox.value='';receiptBody.innerText='';return;}
  const now=new Date();
  const dateStr=now.toLocaleDateString('en-GB');
  const timeStr=now.toLocaleTimeString('en-GB',{hour:'2-digit',minute:'2-digit'});
  let 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';
  const tf=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';
  let total=0;
  const counts={};
  cart.forEach(item=>{
    const key=item.sideEn?item.baseEn+'|'+item.sideEn:item.baseEn;
    if(!counts[key])counts[key]={base:item.baseEn,side:item.sideEn,qty:0,price:item.price};
    counts[key].qty+=item.qty;
    total+=item.price*item.qty;
  });
  for(const info of Object.values(counts)){
    const lineTotal=info.qty*info.price;
    const priceStr='$'+lineTotal.toFixed(2);
    if(info.side){text+=info.qty+'x '+info.base+'\n';text+=padDots('  - '+info.side,priceStr)+'\n';}
    else{text+=padDots(info.qty+'x '+info.base,priceStr)+'\n';}
  }
  text+='--------------------------------\n';
  text+=padDots('SUBTOTAL:','$'+total.toFixed(2))+'\n';
  if(orderType==='Delivery')text+=padDots('DELIVERY FEE:','TBD')+'\n';
  text+='--------------------------------\n';
  summaryBox.value=text;
  receiptBody.innerText=text;
  const timeRow=document.getElementById('receiptTimeRow');
  if(tf&&timeRow){document.getElementById('receiptTimeHM').innerText=tf.hm;document.getElementById('receiptTimeAMPM').innerText=tf.ampm;timeRow.style.display='block';}
  else if(timeRow){timeRow.style.display='none';}
}

function validateForm(){
  const nameIn=document.getElementById('customerName');
  const phoneIn=document.getElementById('customerPhone');
  const typeIn=document.getElementById('orderType');
  const timeIn=document.getElementById('arrivalTime');
  const addrIn=document.getElementById('deliveryAddress');
  const localPhIn=document.getElementById('localPhone');
  const mapsLinkIn=document.getElementById('mapsLink');
  let valid=true;
  
  if(!nameIn.value.trim()){nameIn.classList.add('error-border');valid=false;}
  if(!phoneIn.value.trim()){phoneIn.classList.add('error-border');valid=false;}
  if(!typeIn.value){typeIn.classList.add('error-border');valid=false;}
  else{
    typeIn.classList.remove('error-border');
    if(!timeIn.value){timeIn.classList.add('error-border');valid=false;}
    else timeIn.classList.remove('error-border');
    
    if(typeIn.value==='Delivery'){
      if(!addrIn.value.trim()){addrIn.classList.add('error-border');valid=false;}else addrIn.classList.remove('error-border');
      if(!localPhIn.value.trim()){localPhIn.classList.add('error-border');valid=false;}else localPhIn.classList.remove('error-border');
      if(!mapsLinkIn.value.trim()){mapsLinkIn.classList.add('error-border');valid=false;}else mapsLinkIn.classList.remove('error-border');
    }
  }
  
  if(!valid){alert(i18n[currentLang].formRequiredError);if(!nameIn.value.trim())nameIn.focus();else if(!phoneIn.value.trim())phoneIn.focus();}
  return valid;
}

async function copyText(text){
  try{await navigator.clipboard.writeText(text);}
  catch(e){const ta=document.getElementById('orderSummary');ta.style.display='block';ta.select();document.execCommand('copy');ta.style.display='none';}
}

async function copyOrderOnly(){
  if(!validateForm())return;
  if(cart.length===0)return alert(i18n[currentLang].emptyOrderError);
  await copyText(document.getElementById('orderSummary').value);
  showToast(i18n[currentLang].copySuccess);
}

function clearOrder(silent=false){
  if(cart.length===0&&!document.getElementById('customerName').value)return;
  if(!silent&&!confirm(i18n[currentLang].confirmClear))return;
  cart=[];
  ['customerName','customerPhone','arrivalTime','deliveryAddress','roomNumber','localPhone','mapsLink'].forEach(id=>document.getElementById(id).value='');
  document.getElementById('phonePrefix').value='+972';
  document.getElementById('orderType').value='';
  document.getElementById('locationPhotos').value='';
  ['customerName','customerPhone','orderType','arrivalTime','deliveryAddress','localPhone','mapsLink'].forEach(id=>document.getElementById(id).classList.remove('error-border'));
  toggleOrderFields();
  updateCartUI();
}

function showSuccessModal(){
  const t=i18n[currentLang];
  document.getElementById('modalTitle').innerText=t.modalTitle;
  document.getElementById('modalBody').innerText=t.modalBody;
  document.getElementById('modalBtn').innerText=t.modalBtn;
  document.getElementById('successModal').classList.add('visible');
}
function closeModal(){document.getElementById('successModal').classList.remove('visible');clearOrder(true);}

const BOT_TOKEN='8237765574:AAG8py51ZKCfCUAhUoPmAC8hgZXcWgh-7BM';
const CHAT_ID='-5233191660';

function saveUserDetails() {
  const userProfile = {
    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(userProfile));
}

function loadUserDetails() {
  const saved = localStorage.getItem('chabadCustomerProfile');
  if (saved) {
    try {
      const profile = JSON.parse(saved);
      if(profile.name) document.getElementById('customerName').value = profile.name;
      if(profile.prefix) document.getElementById('phonePrefix').value = profile.prefix;
      if(profile.phone) document.getElementById('customerPhone').value = profile.phone;
      if(profile.address) document.getElementById('deliveryAddress').value = profile.address;
      if(profile.room) document.getElementById('roomNumber').value = profile.room;
      if(profile.localPhone) document.getElementById('localPhone').value = profile.localPhone;
      if(profile.mapsLink) document.getElementById('mapsLink').value = profile.mapsLink;
      updateSummary();
    } catch (e) {
      console.error('Error parsing local storage', e);
    }
  }
}

async function sendToTelegram(){
  if(!validateForm())return;
  if(cart.length===0)return alert(i18n[currentLang].emptyOrderError);
  const btn=document.getElementById('btnTelegram');
  const orig=btn.innerHTML;
  btn.innerHTML='<span class="spinner"></span>';
  btn.disabled=true;
  try{
    const text=document.getElementById('orderSummary').value;
    await copyText(text);
    const safeText=escapeHTML(text);
    const rawPrefix=document.getElementById('phonePrefix').value.trim();
    const rawPhone=document.getElementById('customerPhone').value.trim();
    const waPhone=(rawPrefix+rawPhone).replace(/[^\d]/g,'');
    const custName=document.getElementById('customerName').value.trim();
    
    let finalMapsLink = document.getElementById('mapsLink').value.trim();
    
    const waMsg='Hello '+custName+', we received your order and are working on it!';
    let 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'}]);
    const res=await fetch('https://api.telegram.org/bot'+BOT_TOKEN+'/sendMessage',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({chat_id:CHAT_ID,text:'<pre>'+safeText+'</pre>',parse_mode:'HTML',disable_web_page_preview:true,reply_markup:{inline_keyboard:keyboard}})});
    if(!res.ok){const err=await res.json();throw new Error(err.description||'Send failed');}
    const data=await res.json();
    const msgId=data.result.message_id;
    const photoInput=document.getElementById('locationPhotos');
    if(photoInput&&photoInput.files.length>0){
      for(const file of photoInput.files){const fd=new FormData();fd.append('chat_id',CHAT_ID);fd.append('photo',file);fd.append('reply_to_message_id',msgId);await fetch('https://api.telegram.org/bot'+BOT_TOKEN+'/sendPhoto',{method:'POST',body:fd});}
    }
    
    saveUserDetails();
    showSuccessModal();
    
  }catch(err){alert('שגיאת חיבור: '+err.message);}
  finally{btn.innerHTML=orig;btn.disabled=false;}
}

function showToast(text){
  const toast=document.getElementById('toast');
  toast.textContent=text+' '+i18n[currentLang].addedToast;
  toast.className='show';
  setTimeout(()=>{toast.className='';},3000);
}

function scrollToCart(){
  const c=document.getElementById('cart-container');
  if(cart.length>0)c.scrollIntoView({behavior:'smooth'});
}

function chb_selectPopupLang(lang) {
  localStorage.setItem('chb_lang', lang);
  document.getElementById('lang-popup').style.display = 'none';
  setLang(lang);
}

window.addEventListener('beforeunload',e=>{if(cart.length>0){e.preventDefault();e.returnValue='';}});
setInterval(checkNightMode,60000);

const savedLang = localStorage.getItem('chb_lang');
if (savedLang) {
  setLang(savedLang);
} else {
  setLang('he'); 
  document.getElementById('lang-popup').style.display = 'flex';
}

loadUserDetails();
//
</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>