/* Final bilingual storefront components, scoped to the staging theme. */
html body[data-salhof-theme] .products-filter :is(label,.input-group-addon){background:transparent!important;border:0!important;border-radius:0!important;font-weight:600!important;padding-inline:6px!important}
html body[data-salhof-theme] .products-filter .input-group{background:transparent!important;border:0!important}
html body[data-salhof-theme] .grid-row-bottom-1:has(.module-products-253){background:#fcf8f0!important;padding-block:30px!important}
html body[data-salhof-theme] .module-products-253 :is(h2,h3,a,span,p,button){font-family:Cairo,Arial,sans-serif!important}
html body[data-salhof-theme] .module-products-253 .nav-tabs{border:0!important;margin-bottom:20px!important}
html body[data-salhof-theme] .module-products-253 .nav-tabs a{background:transparent!important;color:#315b41!important;border:0!important;font:600 23px/1.7 Cairo,Arial,sans-serif!important;padding:0!important;text-transform:none!important}
html body[data-salhof-theme] .module-products-253 .product-thumb{background:#fff!important;border:0!important;border-radius:15px!important;overflow:hidden!important;padding:12px!important}
html body[data-salhof-theme] .module-products-253 .name a{color:#315b41!important;font:600 14px/1.7 Cairo,Arial,sans-serif!important;white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body[data-salhof-theme] .module-products-253 .price{font:600 15px/1.7 Cairo,Arial,sans-serif!important;color:#315b41!important}
html body[data-salhof-theme] .module-products-253 .btn-cart{background:#00643c!important;color:white!important;border:0!important;border-radius:24px!important;padding:9px 17px!important;min-height:38px!important;font:600 13px/1.5 Cairo,Arial,sans-serif!important}
html body[data-salhof-theme] .module-products-253 .btn-cart .btn-text{color:white!important;font:inherit!important}
/* Invoice preserves the native amounts and IDs used by checkout. */
html body[data-salhof-theme] #sj-checkout-modal .sf-invoice{padding:20px!important;border:1px solid #e9e0d0!important;border-radius:16px!important;background:#fcf8f0!important;margin:16px 0!important}
html body[data-salhof-theme] #sj-checkout-modal .sf-invoice h2{font:600 20px/1.6 Cairo,Arial,sans-serif!important;margin:0 0 15px!important}
.sf-invoice-columns,.sf-invoice-item{display:grid;grid-template-columns:minmax(0,1fr) 50px 105px;gap:12px;align-items:center;text-align:start}
.sf-invoice-columns{font:600 12px/1.7 Cairo,Arial,sans-serif;color:#687b66;padding-bottom:9px;border-bottom:1px solid #e4dccd}
.sf-invoice-columns>:last-child,.sf-invoice-item>:last-child{text-align:end}
.sf-invoice-item{padding:13px 0;border-bottom:1px solid #e4dccd;font:500 13px/1.8 Cairo,Arial,sans-serif}
.sf-invoice-product{display:flex;align-items:center;gap:10px;min-width:0}
.sf-invoice-product img{width:42px;height:42px;object-fit:contain;flex:0 0 42px;border-radius:7px;background:white}
.sf-invoice-product span{font-weight:600;overflow-wrap:anywhere}
.sf-invoice-qty{text-align:center;font-weight:600}
.sf-invoice-totals{margin:12px 0 0;padding:0;font:500 13px/1.8 Cairo,Arial,sans-serif}
.sf-invoice-totals>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:6px 0}
.sf-invoice-totals :is(dt,dd){padding:0;margin:0;background:transparent;border:0;line-height:1.8;font-size:13px;text-align:start;font-weight:500}
.sf-invoice-totals dd{font-weight:600;text-align:end;white-space:nowrap}
html body[data-salhof-theme] #sj-checkout-modal .sf-invoice-grand{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:14px;margin-top:12px;border-top:1px solid #cbd6c6}
html body[data-salhof-theme] #sj-checkout-modal .sf-invoice-grand p{font:600 14px/1.7 Cairo,Arial,sans-serif!important;margin:0!important}
html body[data-salhof-theme] #sj-checkout-modal .sf-invoice-grand #sj-total{font:700 22px/1.6 Cairo,Arial,sans-serif!important;white-space:nowrap}
html body[data-salhof-theme] #sj-checkout-modal .sf-invoice [data-sj-progress]{font:500 12px/1.8 Cairo,Arial,sans-serif!important;margin:12px 0 0!important;color:#5e775d}
html body[data-salhof-theme] #sj-checkout-modal #sj-sandbox-note{font:400 12px/1.9 Cairo,Arial,sans-serif!important;margin-top:14px!important;color:#5a715c}
html body[data-salhof-theme] #sj-checkout-modal [hidden]{display:none!important}
html body[data-salhof-theme] #sj-checkout-modal .sj-phone-fields{display:block!important;grid-column:1/-1!important}
html body[data-salhof-theme] #sj-checkout-modal .sf-phone-row{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;padding:5px;background:#eff5ec;border-radius:11px;min-width:0}
html body[data-salhof-theme] #sj-checkout-modal .sf-phone-control{display:flex;align-items:center;gap:0;direction:ltr;min-width:0;background:#fcf8f0;border:1px solid #ede2ce;border-radius:9px;flex-wrap:wrap}
html body[data-salhof-theme] #sj-checkout-modal .sf-phone-control .sj-code-control{flex:0 0 78px;width:78px!important;border-right:1px solid #e4dac8}
html body[data-salhof-theme] #sj-checkout-modal .sf-phone-control #sj-phone-country{height:38px!important;border:0!important;background:transparent!important;padding:4px!important;border-radius:0!important;max-width:78px!important}
html body[data-salhof-theme] #sj-checkout-modal .sf-phone-control #sj-phone{flex:1;min-width:0;width:100px!important;border:0!important;background:transparent!important;box-shadow:none!important}
html body[data-salhof-theme] #sj-checkout-modal .sf-phone-control .sj-field-error{flex:0 0 100%;padding:4px 9px}
html body[data-salhof-theme] #sj-checkout-modal[dir=rtl] input,html[dir=rtl] body[data-salhof-theme] #sj-checkout-modal input:not([type=radio]):not([type=checkbox]),html[dir=rtl] body[data-salhof-theme] #sj-checkout-modal textarea{direction:rtl!important;text-align:right!important}
html[dir=ltr] body[data-salhof-theme] #sj-checkout-modal input,html[dir=ltr] body[data-salhof-theme] #sj-checkout-modal textarea{direction:ltr!important;text-align:left!important}
/* Payment waiting/retry presentation keeps the original ownership and CSRF branches. */
.sf-payment-page{width:100%;max-width:680px;margin:40px auto 65px;padding:0 22px;color:#315b41;font:500 15px/1.9 Cairo,Arial,sans-serif;text-align:start;direction:inherit}
.sf-payment-card{padding:30px;background:#fcf8f0;border:1px solid #e9e1d3;border-radius:22px}
html body[data-salhof-theme] .sf-payment-card h1{font:500 13px/1.6 Cairo,Arial,sans-serif!important;color:#71866c!important;margin:0 0 10px!important;text-align:start!important}
html body[data-salhof-theme] .sf-payment-card h2{font:600 28px/1.6 Cairo,Arial,sans-serif!important;margin:0 0 20px!important;text-align:start!important}
.sf-payment-card p{font:500 14px/1.9 Cairo,Arial,sans-serif;margin:12px 0}
.sf-payment-meta{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:14px 0;border-block:1px solid #e4dccd;margin-bottom:20px}
.sf-payment-meta p{margin:0}.sf-payment-meta strong{display:block;font-size:19px;font-weight:700}
.sf-payment-card .sf-payment-button{display:inline-flex;justify-content:center;align-items:center;min-height:42px;border-radius:24px!important;padding:9px 22px!important;background:#00643c!important;color:#fff!important;border:1px solid #00643c!important;font:600 14px/1.6 Cairo,Arial,sans-serif!important;text-decoration:none}
.sf-payment-card .sf-payment-secondary{background:#fff!important;color:#315b41!important;border-color:#c9d6c4!important}
.sf-payment-card form{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 20px}.sf-payment-card [role=alert]{background:#fff0e8;border-radius:10px;padding:10px 13px;color:#87502f}
.sf-payment-links{display:flex;gap:18px;flex-wrap:wrap;font-size:13px}.sf-payment-links a{color:#315b41}
.sf-mobile-nav{display:none}
@media(max-width:800px){
 html body[data-salhof-theme]{background:#fff}
 html body[data-salhof-theme] .sf-header-main{padding-block:10px!important}
 html body[data-salhof-theme] .sf-header .sf-icon{width:32px;height:34px;padding:5px!important;border-radius:18px!important}
 html body[data-salhof-theme] .sf-header .sf-icon svg{width:20px;height:20px}
 html body[data-salhof-theme] .sf-header nav a{font-size:13px!important;font-weight:600!important}
 html body[data-salhof-theme] .sf-category-chips{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important;margin:18px 0!important}
 html body[data-salhof-theme] .sf-category-all>a{font-size:13px!important;padding:6px 13px!important;min-height:34px!important;font-weight:600!important}
 html body[data-salhof-theme] .sf-category-audience{justify-content:flex-end;gap:6px}
 html body[data-salhof-theme] .sf-category-audience>a{font-size:12px!important;padding:6px 12px!important;min-width:0!important;min-height:32px!important;font-weight:600!important}
 html body[data-salhof-theme] .sf-category-types{grid-column:1/-1;display:flex!important;justify-content:flex-start!important;flex-wrap:nowrap!important;overflow-x:auto!important;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:thin;gap:7px!important;padding-bottom:6px}
 html body[data-salhof-theme] .sf-category-types>a{flex:0 0 auto;min-height:31px!important;font-size:12px!important;font-weight:600!important;white-space:nowrap!important;padding:5px 13px!important;scroll-snap-align:start}
 html body[data-salhof-theme] .salhof-catalog-filters{padding:13px!important;border-radius:15px!important}
 html body[data-salhof-theme] .salhof-catalog-filters :is(a,label,select){font-size:13px!important;font-weight:600!important}
 html body[data-salhof-theme] #product-product .product-info{gap:13px!important}
 html body[data-salhof-theme] #product-product .product-left>.product-image{margin:0!important}
 html body[data-salhof-theme] #product-product .product-price-group{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:10px!important;margin:0 0 12px!important;padding:0!important;border:0!important}
 html body[data-salhof-theme] #product-product .product-price-group .spd-stock{margin:5px 0 0!important;padding:4px 9px!important;font:600 11px/1.6 Cairo,Arial,sans-serif!important;min-height:0!important;white-space:nowrap}
 html body[data-salhof-theme] #product-product .product-price-group :is(.product-price,.product-price-new){font:700 26px/1.5 Cairo,Arial,sans-serif!important}
 html body[data-salhof-theme] #product-product .product-tax{font-size:12px!important;text-align:start!important}
 html body[data-salhof-theme] #product-product .sf-under-image-reviews{margin-top:16px!important}
 html body[data-salhof-theme] #product-product :is(.sf-toy-facts dt,.sf-toy-facts dd,.sf-toy-description-inline p,.sf-toy-description-inline li){font-size:14px!important;line-height:1.9!important;color:#244b35!important}
 html body[data-salhof-theme] #product-product .spd-specifications>h2,html body[data-salhof-theme] #product-product .sf-reviews h2{font-weight:600!important;font-size:18px!important}
 html body[data-salhof-theme] #product-product .button-group-page .btn-text{font-size:14px!important;font-weight:600!important}
 html body[data-salhof-theme] #product-product .sj-wrap-choice :is(p,strong,label){font-size:13px!important;color:#315b41!important;font-weight:500!important}
 html body[data-salhof-theme] #product-product .button-group-page :is(.btn-cart)::before{font-size:16px!important}
 html body[data-salhof-theme] #sj-checkout-modal{width:calc(100% - 20px)!important;border-radius:20px!important;max-height:calc(100dvh - 20px)!important}
 html body[data-salhof-theme] #sj-checkout-modal .sj-field-label{font-size:12.5px!important;font-weight:600!important;line-height:1.5!important;color:#244b35!important}
 html body[data-salhof-theme] #sj-checkout-modal .sj-fields>label,html body[data-salhof-theme] #sj-checkout-modal .sf-phone-row{grid-template-columns:94px minmax(0,1fr)!important;padding:4px!important;border-radius:10px!important;min-height:46px!important}
 html body[data-salhof-theme] #sj-checkout-modal .sj-fields input:not([type=checkbox]):not([type=radio]),html body[data-salhof-theme] #sj-checkout-modal .sj-fields textarea{font-size:16px!important;font-weight:500!important;color:#244b35!important;height:40px!important;min-height:40px!important;border-radius:8px!important;padding:6px 9px!important}
 html body[data-salhof-theme] #sj-checkout-modal .sf-phone-control #sj-phone{height:38px!important;min-height:38px!important}
 html body[data-salhof-theme] #sj-checkout-modal .sj-fields>label:has(textarea){grid-template-columns:94px minmax(0,1fr)!important}
 html body[data-salhof-theme] #sj-checkout-modal .sj-fields textarea{height:80px!important;min-height:80px!important}
 html body[data-salhof-theme] #sj-checkout-modal .sj-button{font-weight:600!important;font-size:14px!important}
 html body[data-salhof-theme] #sj-checkout-modal .sf-invoice{padding:15px!important;margin-top:12px!important;border-radius:14px!important}
 .sf-invoice-columns,.sf-invoice-item{grid-template-columns:minmax(0,1fr) 28px 86px;gap:8px}
 .sf-invoice-product{gap:7px}.sf-invoice-product img{width:32px;height:32px;flex-basis:32px}.sf-invoice-product span{font-size:13px;line-height:1.7}.sf-invoice-item{font-size:12px}
 .sf-invoice-totals :is(dt,dd){font-size:13px}.sf-invoice-totals>div{gap:10px;padding:5px 0}
 html body[data-salhof-theme] #sj-checkout-modal .sf-invoice-grand #sj-total{font-size:20px!important}
 html body[data-salhof-theme] #sj-checkout-modal #sjw-title{font-size:22px!important;font-weight:600!important}
 .sf-mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;inset-inline:0;z-index:1100;background:#fcf8f0;border-top:1px solid #e4dccd;padding:8px 8px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -3px 18px #183c2e0a;font-family:Cairo,Arial,sans-serif}
 .sf-mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;color:#315b41;text-decoration:none;font-size:10px;font-weight:600;line-height:1.5;min-height:44px}
 .sf-mobile-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
 body[data-salhof-theme]{padding-bottom:calc(70px + env(safe-area-inset-bottom))!important}
 body[data-salhof-theme].sfc-visible{padding-bottom:var(--sfc-height,150px)!important}
 html body[data-salhof-theme] #salhof-floating-cart{bottom:calc(72px + env(safe-area-inset-bottom))!important;width:calc(100% - 24px)!important;border-radius:14px!important}
 html body[data-salhof-theme] #salhof-floating-cart .sfc-inner{padding:10px 13px!important;display:block!important}
 html body[data-salhof-theme] #salhof-floating-cart :is(.sfc-items,.sfc-progress,.sfc-status,.sfc-clear,.sfc-view){display:none!important}
 html body[data-salhof-theme] #salhof-floating-cart .sfc-summary{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:12px!important;width:100%!important}
 html body[data-salhof-theme] #salhof-floating-cart .sfc-total{display:block!important;width:auto!important;text-align:start}
 html body[data-salhof-theme] #salhof-floating-cart .sfc-total>span{font-size:11px!important;display:block!important}
 html body[data-salhof-theme] #salhof-floating-cart .sfc-total strong{font-size:16px!important;font-weight:700!important}
 html body[data-salhof-theme] #salhof-floating-cart .sfc-actions{margin:0!important;width:auto!important;display:block!important}
 html body[data-salhof-theme] #salhof-floating-cart .sfc-checkout{min-height:36px!important;font-size:13px!important;padding:7px 18px!important;font-weight:600!important}
 body[data-salhof-theme]:has(.sf-payment-page) #salhof-floating-cart{display:none!important}
 .sf-payment-page{margin:24px auto 35px;padding:0 16px}.sf-payment-card{padding:22px 20px;border-radius:18px}.sf-payment-card h2{font-size:25px!important}.sf-payment-meta{gap:12px}.sf-payment-meta strong{font-size:18px}.sf-payment-card .sf-payment-button{width:100%;font-size:14px!important}.sf-payment-card form{gap:9px}
}
@media(max-width:360px){html body[data-salhof-theme] #sj-checkout-modal .sf-phone-row{grid-template-columns:80px minmax(0,1fr)!important}html body[data-salhof-theme] #sj-checkout-modal .sf-phone-control .sj-code-control{flex-basis:68px;width:68px!important}}

/* Native Journal stats must not consume the mobile stock cell. */
@media(max-width:800px){html body[data-salhof-theme] #product .product-price-group>.price-wrapper{grid-column:1!important;grid-row:1!important;min-width:0!important}html body[data-salhof-theme] #product .product-price-group>.product-stats{display:none!important}html body[data-salhof-theme] #product .product-price-group>.spd-stock{grid-column:2!important;grid-row:1!important;align-self:center!important;margin:0!important}}
html body[data-salhof-theme] .module-products-253::before{content:"More to explore";display:block;font-family:Cairo,sans-serif;font-size:23px;font-weight:600;color:#28523e;text-align:center;margin:0 0 24px}
html[lang^="ar"] body[data-salhof-theme] .module-products-253::before{content:"ألعاب ممكن تعجبكم"}
html body[data-salhof-theme] .module-products-253>.nav-tabs{display:none!important}
