<style>@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800&display=swap');
.msmm-wrap,.msmm-bar{--olive:#6f8f3f;--olive-d:#3f5a1c;--olive-dd:#2f4515;--ivory:#f7f4ec;--ivory2:#fffdf8;--gold:#c2a24a;--line:#e8e2d2;--ink:#2a2a22;--muted:#7c7a6c}
.msmm-wrap{--olive:#6f8f3f;--olive-d:#3f5a1c;--olive-dd:#2f4515;--ivory:#f7f4ec;--ivory2:#fffdf8;--gold:#c2a24a;--line:#e8e2d2;--ink:#2a2a22;--muted:#7c7a6c;max-width:1120px;margin:0 auto;padding:6px 18px 180px;direction:rtl;font-family:'Tajawal',system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}
.msmm-head{text-align:center;margin:12px auto 34px;max-width:640px}
.msmm-eyebrow{display:inline-block;font-size:13px;font-weight:700;letter-spacing:.14em;color:var(--gold);margin-bottom:10px}
.msmm-head h2{font-size:clamp(26px,4vw,38px);font-weight:800;line-height:1.2;margin:0 0 10px;color:var(--olive-dd);letter-spacing:-.01em}
.msmm-head p{font-size:16px;line-height:1.7;color:var(--muted);margin:0}
.msmm-rule{width:54px;height:3px;border-radius:3px;background:var(--gold);margin:16px auto 0;opacity:.85}
.msmm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.msmm-grid.origin{grid-template-columns:repeat(3,1fr)}
.msmm-card,.msmm-ocard{background:var(--ivory2);border:1px solid var(--line);border-radius:20px;display:flex;flex-direction:column;align-items:center;text-align:center;height:100%;position:relative;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;box-shadow:0 2px 10px rgba(63,90,28,.05)}
.msmm-card{padding:22px 18px 20px}
.msmm-ocard{padding:28px 20px}
.msmm-card:hover,.msmm-ocard:hover{transform:translateY(-5px);box-shadow:0 14px 34px rgba(63,90,28,.14);border-color:var(--olive)}
.msmm-card.is-selected{border-color:var(--olive);background:linear-gradient(180deg,#fbfdf6,#f3f7ea);box-shadow:0 10px 28px rgba(63,90,28,.16)}
.msmm-check{position:absolute;top:14px;left:14px;width:26px;height:26px;border-radius:50%;background:var(--olive);color:#fff;display:none;align-items:center;justify-content:center;font-size:14px;box-shadow:0 2px 6px rgba(47,69,21,.3)}
.msmm-card.is-selected .msmm-check{display:flex}
.msmm-flag{font-size:30px;line-height:1;margin-bottom:6px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.08))}
.msmm-flag.big{font-size:54px;margin-bottom:12px}
.msmm-imgwrap{width:100%;display:flex;justify-content:center;align-items:center;height:144px;margin:2px 0 12px}
.msmm-img{max-width:138px;max-height:144px;width:auto;height:auto;object-fit:contain}
.msmm-country{font-size:20px;font-weight:700;color:var(--olive-dd);margin:2px 0 5px}
.msmm-price{font-size:15px;color:var(--muted);margin-bottom:16px;font-weight:500}
.msmm-pricev{font-weight:800;color:var(--olive-d)}
.msmm-per{color:var(--muted);font-weight:500;font-size:13px;margin-inline-start:3px}
.msmm-riyal .saudi-riyal-symbol{font-size:.9em}
.msmm-step{margin-top:auto;display:inline-flex;align-items:center;background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:4px;box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}
.msmm-step button{width:42px;height:42px;border:0;border-radius:50%;background:var(--ivory);color:var(--olive-d);font-size:22px;font-weight:700;cursor:pointer;line-height:1;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s,transform .1s}
.msmm-step button:hover{background:var(--olive);color:#fff}
.msmm-step button:active{transform:scale(.9)}
.msmm-qty{width:48px;height:42px;border:0;text-align:center;font-size:18px;font-weight:800;background:transparent;color:var(--ink);font-family:inherit}
.msmm-quick{display:flex;gap:10px;justify-content:center;margin-top:18px;width:100%}
.msmm-pack{flex:1;border:1.5px solid var(--olive);background:#fff;color:var(--olive-d);border-radius:12px;padding:12px 8px;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit;transition:background .18s,color .18s,transform .1s;position:relative}
.msmm-pack:hover{background:var(--olive);color:#fff;transform:translateY(-1px)}
.msmm-pack:active{transform:scale(.97)}
.msmm-pack.is-loading{color:transparent;pointer-events:none}
.msmm-pack.is-loading::after{content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;border:2px solid rgba(111,143,63,.35);border-top-color:var(--olive-d);border-radius:50%;animation:msmm-spin .7s linear infinite}
.msmm-cta{text-align:center;margin:36px 0 0}
.msmm-link{display:inline-flex;align-items:center;gap:8px;color:var(--olive-d);font-weight:700;font-size:16px;text-decoration:none;padding:13px 24px;border:1.5px solid var(--line);border-radius:999px;background:#fff;transition:border-color .18s,color .18s,background .18s}
.msmm-link:hover{border-color:var(--gold);color:var(--gold);background:#fffdf6}
.msmm-bar{position:fixed;bottom:0;left:0;right:0;z-index:99990;background:rgba(247,244,236,.97);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid var(--line);box-shadow:0 -8px 30px rgba(47,69,21,.1);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px max(18px,calc((100% - 1120px)/2));direction:rtl;font-family:'Tajawal',sans-serif}
.msmm-summary{display:flex;flex-direction:column;line-height:1.3}
.msmm-count-line{font-size:14px;color:var(--muted);font-weight:600}
.msmm-total-line{font-size:25px;font-weight:800;color:var(--olive-dd)}
.msmm-total-line .msmm-riyal{font-size:.78em;color:var(--olive-d)}
.msmm-ctaw{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.msmm-hint{font-size:12.5px;color:#a9862a;min-height:15px;font-weight:600}
.msmm-add{background:var(--olive-d)!important;color:#fff!important;border:0!important;border-radius:14px;padding:16px 34px;font-size:17px;font-weight:800;cursor:pointer;font-family:inherit;min-height:54px;min-width:234px;display:inline-flex;align-items:center;justify-content:center;gap:10px;position:relative;box-shadow:0 6px 18px rgba(47,69,21,.28);transition:background .18s,transform .12s,box-shadow .18s}
.msmm-add:hover:not(:disabled){background:var(--olive-dd)!important;transform:translateY(-2px);box-shadow:0 10px 24px rgba(47,69,21,.34)}
.msmm-add:active:not(:disabled){transform:translateY(0)}
.msmm-add:disabled{background:#c7c4b5!important;color:#fff!important;cursor:not-allowed;box-shadow:none;opacity:1}
.msmm-add.is-loading{pointer-events:none}
.msmm-add.is-loading .msmm-add-label{visibility:hidden}
.msmm-spinner{display:none;position:absolute;width:22px;height:22px;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:msmm-spin .7s linear infinite}
.msmm-add.is-loading .msmm-spinner{display:block}
@keyframes msmm-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){.msmm-wrap{padding-bottom:156px}.msmm-grid,.msmm-grid.origin{grid-template-columns:repeat(2,1fr);gap:12px}.msmm-card{padding:16px 10px 14px}.msmm-ocard{padding:20px 12px}.msmm-imgwrap{height:106px}.msmm-img{max-height:106px;max-width:96px}.msmm-country{font-size:16px}.msmm-flag{font-size:24px}.msmm-flag.big{font-size:42px}.msmm-step button{width:38px;height:38px}.msmm-qty{width:40px}.msmm-bar{flex-direction:column;align-items:stretch;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom))}.msmm-summary{flex-direction:row;align-items:center;justify-content:space-between}.msmm-ctaw{align-items:stretch}.msmm-add{width:100%;min-width:0}.msmm-hint{text-align:center}}
@media(max-width:380px){.msmm-grid,.msmm-grid.origin{grid-template-columns:1fr}}

@media(max-width:980px){.msmm-grid,.msmm-grid.origin{grid-template-columns:repeat(2,1fr)}}
@media(max-width:420px){.msmm-grid,.msmm-grid.origin{grid-template-columns:1fr}}

/* --- Global font override (Alexandria) + price direction --- */
.msmm-wrap,.msmm-bar,.msmm-wrap *,.msmm-bar *{font-family:"Alexandria",Arial,Helvetica,sans-serif!important}
.msmm-pricev{direction:rtl}

/* --- v2: existing-products, variations, origin sections --- */
.msmm-pname{font-size:17px;font-weight:700;color:var(--olive-dd);margin:4px 0 5px;line-height:1.4;min-height:2.6em;display:flex;align-items:center;justify-content:center;text-align:center}
.msmm-var{width:100%;margin:2px 0 12px;padding:9px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:14px;font-weight:600;cursor:pointer;font-family:inherit}
.msmm-var:focus{outline:none;border-color:var(--olive)}
.msmm-note{margin:14px auto 0;max-width:640px;font-size:13.5px;font-weight:600;color:#9a7b1f;background:#fdf7e3;border:1px solid #f0e3b8;border-radius:12px;padding:10px 16px}
.msmm-osec{margin:34px 0 0}
.msmm-osec-head{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.msmm-oflag{font-size:30px;line-height:1}
.msmm-osec-head h3{font-size:24px;font-weight:800;color:var(--olive-dd);margin:0}
.msmm-badge{margin-inline-start:auto;font-size:12px;font-weight:700;color:#9a7b1f;background:#fdf7e3;border:1px solid #f0e3b8;border-radius:999px;padding:5px 12px}
.msmm-grid.pgrid{grid-template-columns:repeat(4,1fr);gap:16px}
.msmm-pcard{display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--ivory2);border:1px solid var(--line);border-radius:18px;padding:18px 14px;height:100%;text-decoration:none;color:var(--ink);transition:transform .2s,box-shadow .2s,border-color .2s;box-shadow:0 2px 10px rgba(63,90,28,.05)}
.msmm-pcard:hover{transform:translateY(-5px);box-shadow:0 14px 34px rgba(63,90,28,.14);border-color:var(--olive)}
.msmm-pcard .msmm-price{margin-bottom:10px}
.msmm-view{margin-top:auto;font-size:14px;font-weight:700;color:var(--olive)}
.msmm-pcard:hover .msmm-view{color:var(--olive-dd)}
@media(max-width:980px){.msmm-grid.pgrid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.msmm-grid.pgrid{grid-template-columns:repeat(2,1fr)}.msmm-osec-head h3{font-size:20px}.msmm-pname{font-size:15px;min-height:2.4em}}
@media(max-width:420px){.msmm-grid.pgrid{grid-template-columns:repeat(2,1fr)}}

/* --- v2.1: in-card add-to-cart on Shop by Origin --- */
.msmm-pcard-link{display:flex;flex-direction:column;align-items:center;text-decoration:none;color:inherit;width:100%}
.msmm-pcard .msmm-price{margin-bottom:12px}
.msmm-prow{display:flex;gap:8px;align-items:center;width:100%;margin-top:auto}
.msmm-step.small{padding:3px;flex:0 0 auto}
.msmm-step.small button{width:34px;height:34px;font-size:18px}
.msmm-step.small .msmm-qty{width:34px;height:34px;font-size:15px}
.msmm-addbtn{flex:1 1 auto;background:var(--olive-d);color:#fff;border:0;border-radius:12px;padding:11px 10px;font-weight:800;font-size:14px;cursor:pointer;font-family:inherit;position:relative;min-height:44px;transition:background .18s,transform .1s}
.msmm-addbtn:hover{background:var(--olive-dd)}
.msmm-addbtn:active{transform:scale(.98)}
.msmm-addbtn.is-loading{color:transparent;pointer-events:none}
.msmm-addbtn.is-loading::after{content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:msmm-spin .7s linear infinite}
.msmm-addbtn.is-done{background:#2f7d32}
.msmm-addbtn[disabled]{background:#c7c4b5;cursor:not-allowed}
.msmm-feedback{display:block;height:18px;margin-top:9px;font-size:13px;font-weight:700;color:#2f7d32;opacity:0;transition:opacity .2s;text-align:center}
.msmm-feedback.show{opacity:1}
@media(max-width:600px){.msmm-prow{flex-direction:column;gap:8px}.msmm-step.small{align-self:center}.msmm-addbtn{width:100%}}

/* --- v2.2: native WoodMart cards on Shop by Origin --- */
.msmm-origin-native{padding-bottom:60px}
.msmm-osec .msmm-woo ul.products{margin:0}
.msmm-empty{color:var(--muted);font-size:15px;background:#faf8f2;border:1px dashed var(--line);border-radius:12px;padding:18px;text-align:center}

/* --- v2.3: 2:3 portrait image containers — Shop by Origin ONLY (scoped to #msmm-origin) --- */
#msmm-origin .product-image-link{display:block;position:relative;width:100%;aspect-ratio:2/3;overflow:hidden;background:#fff;border-radius:10px}
#msmm-origin .product-image-link img{position:absolute!important;inset:0;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center;margin:auto;padding:8px;box-sizing:border-box}
#msmm-origin .msmm-woo ul.products li.product .product-element-top{margin-bottom:12px}

/* --- v2.4: fixed 2-line title height for aligned price/add-to-cart — Shop by Origin only --- */
#msmm-origin .wd-entities-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis;line-height:1.45em;height:2.9em;min-height:2.9em;margin:0 0 8px}
#msmm-origin .msmm-woo ul.products li.product{display:flex;flex-direction:column}
</style><script>window.MSMM={url:'https://msallati.sa/wp-admin/admin-ajax.php',nonce:'f10566a912',min:1,busy:false,add:function(items,btn){if(this.busy)return;if(!items||!items.length)return;this.busy=true;if(btn)btn.classList.add('is-loading');var fd=new FormData();fd.append('action','msallati_add_box');fd.append('nonce',this.nonce);fd.append('items',JSON.stringify(items));fetch(this.url,{method:'POST',body:fd,credentials:'same-origin'}).then(function(r){return r.json();}).then(function(j){if(j&&j.success){window.location=j.data.cart_url;}else{MSMM.busy=false;if(btn)btn.classList.remove('is-loading');alert((j&&j.data&&j.data.msg)||'تعذّر الإضافة');}}).catch(function(){MSMM.busy=false;if(btn)btn.classList.remove('is-loading');alert('خطأ في الاتصال، حاول مرة أخرى');});},addSingle:function(item,btn,fb){if(btn.classList.contains('is-loading')||btn.classList.contains('is-done'))return;btn.classList.add('is-loading');var fd=new FormData();fd.append('action','msallati_add_single');fd.append('nonce',this.nonce);fd.append('id',item.id);fd.append('vid',item.vid||0);fd.append('qty',item.qty||1);fetch(this.url,{method:'POST',body:fd,credentials:'same-origin'}).then(function(r){return r.json();}).then(function(j){btn.classList.remove('is-loading');if(j&&j.success){btn.classList.add('is-done');if(fb){fb.textContent='أُضيف إلى السلة ✓';fb.classList.add('show');}if(window.jQuery){jQuery(document.body).trigger('wc_fragment_refresh');}setTimeout(function(){btn.classList.remove('is-done');if(fb)fb.classList.remove('show');},2200);}else{alert((j&&j.data&&j.data.msg)||'تعذّر الإضافة');}}).catch(function(){btn.classList.remove('is-loading');alert('خطأ في الاتصال، حاول مرة أخرى');});}};</script>{"id":30289,"date":"2026-10-20T12:35:24","date_gmt":"2026-10-20T12:35:24","guid":{"rendered":"https:\/\/fabulous-olive-hippopotamus.109-75-161-117.cpanel.site\/shop-by-origin\/"},"modified":"2026-10-20T12:35:24","modified_gmt":"2026-10-20T12:35:24","slug":"shop-by-origin","status":"publish","type":"page","link":"https:\/\/msallati.sa\/en\/shop-by-origin\/","title":{"rendered":"\u062a\u0633\u0648\u0651\u0642 \u062d\u0633\u0628 \u0627\u0644\u0645\u0646\u0634\u0623"},"content":{"rendered":"<div class=\"msdf-origin-paused\" style=\"text-align:center;padding:64px 20px;font-size:1.15em;color:#3f5a1c\">The &quot;Shop by Origin&quot; feature is being updated and will be back soon.<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":0,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-30289","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/msallati.sa\/en\/wp-json\/wp\/v2\/pages\/30289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/msallati.sa\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/msallati.sa\/en\/wp-json\/wp\/v2\/types\/page"}],"replies":[{"embeddable":true,"href":"https:\/\/msallati.sa\/en\/wp-json\/wp\/v2\/comments?post=30289"}],"version-history":[{"count":0,"href":"https:\/\/msallati.sa\/en\/wp-json\/wp\/v2\/pages\/30289\/revisions"}],"wp:attachment":[{"href":"https:\/\/msallati.sa\/en\/wp-json\/wp\/v2\/media?parent=30289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}