/* نيكسال_الويب_16 البندان 23–24: واجهة المتجر (القالب theme1) — مختصرة، المنتجات من أول شاشة، الجوال عمودين وشريط سلة ثابت */
:root{--store-primary:#598A86;--ink:#102725;--muted:#6f817e;--bg:#f5f8f7;--surface:#fff;--line:#dce7e4;--soft:#eef5f3;--shadow:0 18px 50px rgba(20,54,50,.09);--top-h:64px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Tajawal,Inter,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}.hidden{display:none!important}.modal-open{overflow:hidden}.store-shell{width:min(1240px,calc(100% - 32px));margin-inline:auto}
button,input,select,textarea{font:inherit}
.eyebrow{display:block;color:var(--store-primary);font-size:12px;font-weight:900;letter-spacing:.04em}
.store-primary-btn{border:0;border-radius:14px;padding:12px 18px;background:var(--store-primary);color:#fff;font-weight:900;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s}.store-primary-btn:hover{filter:brightness(.96)}.store-primary-btn:disabled{opacity:.45;cursor:not-allowed}
.icon-text-btn,.cart-button,.secondary-btn{border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px 13px;cursor:pointer;font-weight:800;color:#173c38;transition:.18s;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}.icon-text-btn:hover,.secondary-btn:hover{background:var(--soft)}
.store-alert{padding:12px 14px;border-radius:14px;background:#fff4d6;border:1px solid #f6d990;margin-bottom:14px}
/* الهيدر */
.store-topbar{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.topbar-inner{height:var(--top-h);display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand-mini{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-weight:900;font-size:17px;min-width:0}.brand-mini span#topStoreName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brand-mini-logo{width:40px;height:40px;border-radius:12px;object-fit:contain;background:#fff;border:1px solid var(--line);padding:3px;flex:0 0 auto}
.brand-initial{width:40px;height:40px;border-radius:50%;background:var(--store-primary);color:#fff;display:grid;place-items:center;font-weight:900;font-size:18px;flex:0 0 auto}
.top-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.top-ig{width:38px;height:38px;padding:0}.top-ig svg{width:19px;height:19px}
.cart-button{background:var(--store-primary);border-color:var(--store-primary);color:#fff}.cart-button b{display:grid;place-items:center;min-width:24px;height:24px;padding:0 7px;background:#fff;color:var(--store-primary);border-radius:999px;font-size:12px}
.cart-button.bump{animation:nxBump .45s ease}@keyframes nxBump{0%{transform:scale(1)}40%{transform:scale(1.14)}100%{transform:scale(1)}}
/* البانر المختصر */
.store-hero{padding:16px 0 6px}
.hero-banner{position:relative;border-radius:22px;overflow:hidden;background:linear-gradient(120deg,var(--store-primary),color-mix(in srgb,var(--store-primary) 55%,#0d2b28));color:#fff;padding:22px 24px;display:flex;align-items:center;gap:18px;min-height:132px}
.hero-banner.has-cover{background-size:cover;background-position:center}.hero-banner.has-cover::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,.25))}[dir=rtl] .hero-banner.has-cover::before{background:linear-gradient(270deg,rgba(0,0,0,.55),rgba(0,0,0,.25))}
.hero-banner>*{position:relative;z-index:1}
.hero-logo{width:78px;height:78px;border-radius:20px;background:#fff;padding:6px;object-fit:contain;flex:0 0 auto;box-shadow:0 10px 26px rgba(0,0,0,.16)}
.hero-initial{width:78px;height:78px;border-radius:50%;background:rgba(255,255,255,.18);border:2px solid rgba(255,255,255,.5);display:grid;place-items:center;font-size:34px;font-weight:900;flex:0 0 auto}
.hero-text{min-width:0;flex:1}.hero-text h1{margin:0 0 4px;font-size:clamp(22px,3vw,32px);line-height:1.25}.hero-text p{margin:0;opacity:.92;line-height:1.6;font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.store-contact{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.store-contact a{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:999px;background:rgba(255,255,255,.18);color:#fff;text-decoration:none;font-size:12.5px;font-weight:700}.store-contact svg{width:15px;height:15px}
/* شريط التوصيل الواحد */
.delivery-strip{margin-top:10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:16px;padding:9px 12px;font-size:13.5px}
.delivery-strip .ds-item{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:#244d48}.delivery-strip .ds-sep{color:#b9cac6}
.delivery-strip button{margin-inline-start:auto;border:0;background:var(--soft);color:#244d48;border-radius:10px;padding:6px 11px;font-weight:800;cursor:pointer}
/* التصانيف */
.store-tabs{position:sticky;top:var(--top-h);z-index:45;background:rgba(245,248,247,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);margin-top:10px}
.tabs-inner{display:flex;gap:7px;overflow-x:auto;padding:10px 0;scrollbar-width:none}.tabs-inner::-webkit-scrollbar{display:none}
.store-tabs button{white-space:nowrap;border:1px solid var(--line);border-radius:999px;padding:8px 14px;background:#fff;color:#34534f;cursor:pointer;font-weight:800;display:inline-flex;gap:6px;align-items:center}
.store-tabs button i{font-style:normal;font-size:11px;background:var(--soft);color:var(--muted);border-radius:999px;padding:1px 7px}
.store-tabs button.active{background:var(--ink);border-color:var(--ink);color:#fff}.store-tabs button.active i{background:rgba(255,255,255,.2);color:#fff}
/* الأدوات */
.store-main{padding:16px 0 90px}
.store-toolbar{display:flex;gap:10px;align-items:center;margin-bottom:16px}
.search-box{flex:1;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:13px;padding-inline:12px;min-width:0}.search-box span{font-size:20px;color:#78908c}.search-box input{border:0;outline:0;width:100%;padding:11px 0;background:transparent;color:var(--ink);min-width:0}
.sort-select{border:1px solid var(--line);border-radius:13px;background:#fff;padding:10px 12px;color:var(--ink);font-weight:700;max-width:46%}
.result-count{font-size:13px;color:var(--muted);white-space:nowrap}
/* أقسام التوصيات */
.reco-block{margin:0 0 22px}.reco-block h2,.category-heading h2{margin:0;font-size:20px}
.reco-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,190px);gap:12px;overflow-x:auto;padding:10px 2px 6px;scrollbar-width:thin;overscroll-behavior-x:contain}
/* المنتجات */
.category-block{margin:0 0 26px}.category-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 10px}.category-heading small{color:var(--muted);font-size:12.5px;font-weight:700}
.show-all-btn{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 13px;font-weight:800;color:var(--store-primary);cursor:pointer;white-space:nowrap}
.product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.product-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;min-width:0;transition:.2s}.product-card:hover{box-shadow:0 12px 30px rgba(27,61,57,.09)}
.product-image-button{border:0;padding:0;background:none;cursor:pointer;display:block;width:100%}
.product-image-wrap{position:relative;aspect-ratio:1/1;background:#f1f5f4;overflow:hidden}.product-card img{width:100%;height:100%;object-fit:cover;display:block}
.product-status{position:absolute;top:8px;inset-inline-start:8px;background:#fff;color:#173a37;padding:4px 8px;border-radius:999px;font-size:10.5px;font-weight:900;box-shadow:0 4px 12px rgba(0,0,0,.08)}.product-status.sold{background:#fff0f0;color:#a32121}.product-status.option-count{inset-inline-start:auto;inset-inline-end:8px}
.product-body{padding:10px 11px 11px;display:flex;flex-direction:column;gap:8px;flex:1}
.product-body h3{margin:0;font-size:14px;line-height:1.45;font-weight:800;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em;cursor:pointer}
.product-bottom{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:auto}
.price-block{display:grid;line-height:1.2}.price-block small{font-size:10px;color:var(--muted)}.price-block strong{font-size:15px;white-space:nowrap}
.add-btn{border:0;border-radius:11px;padding:8px 12px;background:var(--store-primary);color:#fff;font-weight:900;cursor:pointer;white-space:nowrap}.add-btn:disabled{opacity:.45;cursor:not-allowed}
.qty-stepper{display:inline-flex;align-items:center;border:1px solid var(--store-primary);border-radius:11px;overflow:hidden}.qty-stepper button{border:0;background:color-mix(in srgb,var(--store-primary) 12%,#fff);color:var(--store-primary);width:30px;height:32px;font-size:18px;font-weight:900;cursor:pointer}.qty-stepper b{min-width:26px;text-align:center;font-size:14px}
.empty-products{background:#fff;border:1px dashed var(--line);border-radius:18px;padding:40px;text-align:center;color:var(--muted)}
/* الفوتر */
.store-footer{border-top:1px solid var(--line);background:#fff;padding:22px 0 26px}.footer-grid{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;align-items:flex-start}
.footer-grid strong{font-size:16px}.footer-links{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:8px}.footer-links a,.footer-links button{color:#244d48;text-decoration:none;font-size:13.5px;font-weight:700;background:none;border:0;padding:0;cursor:pointer}
.footer-powered{color:var(--muted);font-size:11.5px;align-self:flex-end}.footer-powered a{color:inherit}
/* واتساب العائم */
.wa-float{position:fixed;bottom:18px;inset-inline-end:18px;z-index:70;width:54px;height:54px;border-radius:50%;background:#25d366;color:#fff;display:grid;place-items:center;box-shadow:0 10px 26px rgba(0,0,0,.2);text-decoration:none;transition:bottom .2s}.wa-float svg{width:28px;height:28px}
body.has-cartbar .wa-float{bottom:86px}
/* شريط السلة الثابت */
.cart-bar{position:fixed;inset-inline:0;bottom:0;z-index:65;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:transparent;pointer-events:none}
.cart-bar-inner{pointer-events:auto;width:min(560px,100%);margin-inline:auto;display:flex;align-items:center;gap:12px;background:var(--ink);color:#fff;border-radius:16px;padding:10px 12px 10px 14px;box-shadow:0 14px 34px rgba(0,0,0,.25);border:0;cursor:pointer;font:inherit;text-align:start}
.cart-bar-inner .cb-count{background:var(--store-primary);border-radius:10px;min-width:32px;height:32px;display:grid;place-items:center;font-weight:900}
.cart-bar-inner .cb-total{flex:1;font-weight:800}.cart-bar-inner .cb-go{background:#fff;color:var(--ink);border-radius:11px;padding:8px 13px;font-weight:900}
/* رسالة صغيرة */
.store-toast{position:fixed;left:50%;transform:translate(-50%,20px);bottom:92px;z-index:120;background:#173c38;color:#fff;padding:10px 16px;border-radius:12px;font-weight:800;font-size:14px;opacity:0;transition:.25s;pointer-events:none;max-width:calc(100% - 32px);text-align:center}.store-toast.show{opacity:1;transform:translate(-50%,0)}
/* السلة والنوافذ */
.store-drawer,.store-modal{position:fixed;inset:0;z-index:100;display:flex}.drawer-backdrop,.modal-backdrop{position:absolute;inset:0;background:rgba(9,30,28,.5);backdrop-filter:blur(3px)}.store-drawer{justify-content:flex-end}
.store-drawer-box{position:relative;z-index:1;height:100%;width:min(440px,100%);background:#fff;padding:20px;overflow:auto;box-shadow:-20px 0 60px rgba(0,0,0,.14)}
.store-drawer-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #e7edec;padding-bottom:12px}.store-drawer-head h2{margin:3px 0 0}.store-drawer-head button,.modal-close{border:0;background:#eff5f4;width:38px;height:38px;border-radius:12px;font-size:24px;cursor:pointer}
.cart-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1f0;padding:12px 0}.cart-row small,.cart-row .cart-size{color:var(--muted)}.cart-row-actions{display:flex;gap:5px;align-items:center}.cart-row-actions button{border:0;border-radius:9px;padding:6px 9px;background:#edf4f3;cursor:pointer}
.cart-empty{text-align:center;padding:40px 12px;color:var(--muted)}.cart-empty span{font-size:34px}.store-summary{display:flex;justify-content:space-between;padding:16px 0;font-size:18px}.checkout-cta{width:100%}
.store-modal{align-items:center;justify-content:center;padding:16px;overflow:auto}.store-modal-box{position:relative;z-index:1;background:#fff;width:min(720px,100%);max-height:92vh;overflow:auto;padding:18px;border-radius:22px;box-shadow:0 24px 80px rgba(0,0,0,.2)}
.modal-close{position:absolute;top:12px;inset-inline-end:12px;z-index:5}
.qv-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px}.qv-info{display:flex;flex-direction:column;gap:10px;min-width:0}
.modal-product-head h3{margin:0 0 4px;font-size:22px;padding-inline-end:40px}.modal-product-head strong{font-size:20px;color:var(--store-primary)}.qv-desc{margin:0;color:var(--muted);line-height:1.7;white-space:pre-line}
.qv-qty{display:flex;align-items:center;gap:10px;font-weight:800}.qv-qty .qty-stepper button{width:38px;height:38px}.qv-qty .qty-stepper b{min-width:34px}
.store-modal-box textarea{width:100%;padding:10px;border:1px solid var(--line);border-radius:11px;min-height:64px}.qv-note label{font-weight:800;display:block;margin-bottom:5px}
.size-option{display:flex;justify-content:space-between;gap:10px;border:1px solid var(--line);padding:10px;border-radius:12px;margin:6px 0;cursor:pointer}.size-option:has(input:checked){border-color:var(--store-primary);background:color-mix(in srgb,var(--store-primary) 7%,#fff)}
.product-gallery-main{width:100%;aspect-ratio:1/1;object-fit:contain;background:#f3f6f5;border-radius:16px;display:block}.product-gallery-thumbs{display:flex;gap:7px;overflow:auto;margin-top:8px}.product-gallery-thumbs button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:2px;flex:0 0 58px;height:58px;overflow:hidden;cursor:pointer}.product-gallery-thumbs button.active{border:2px solid var(--store-primary)}.product-gallery-thumbs img{width:100%;height:100%;object-fit:cover}
.qv-also{grid-column:1/-1}.qv-also h4{margin:6px 0 0}
.info-list{display:grid;gap:8px;margin-top:12px}.info-row{display:flex;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:12px;padding:10px 12px}.info-row small{color:var(--muted)}.info-text{white-space:pre-line;line-height:1.8;color:#2b4744;margin-top:12px}
.checkout-page{min-height:100vh;padding:28px 0;background:linear-gradient(180deg,#f8fbfa,#eff5f3)}.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px;align-items:start}.checkout-card,.checkout-summary-card{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}.checkout-card{padding:24px}.checkout-summary-card{padding:20px;position:sticky;top:20px}.checkout-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:18px}.checkout-head h1{margin:4px 0}.checkout label{display:block;font-weight:800;margin:13px 0 6px}.checkout input,.checkout textarea,.checkout select{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;outline:none}.checkout input:focus,.checkout textarea:focus,.checkout select:focus{border-color:var(--store-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--store-primary) 12%,transparent)}.checkout-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.fulfillment-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choice-card{border:1px solid var(--line);border-radius:15px;padding:13px;cursor:pointer;display:flex;gap:9px;align-items:center}.choice-card:has(input:checked){border-color:var(--store-primary);background:color-mix(in srgb,var(--store-primary) 8%,#fff)}.choice-card input{width:auto}.checkout-zone-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.checkout-zone-card{display:block;margin:0!important;border:1px solid var(--line);border-radius:15px;padding:12px;cursor:pointer}.checkout-zone-card:has(input:checked){border-color:var(--store-primary);background:color-mix(in srgb,var(--store-primary) 8%,#fff)}.checkout-zone-card input{width:auto;margin-inline-end:7px}.checkout-zone-card strong{display:block;margin-top:6px}.checkout-zone-card small{display:block;color:var(--muted);margin-top:3px}.checkout-section-title{margin:22px 0 8px;font-size:15px}.checkout-summary-list{display:grid;gap:10px}.checkout-summary-row{display:flex;justify-content:space-between;gap:16px}.checkout-summary-row.total{border-top:1px solid var(--line);padding-top:12px;font-size:19px}.secondary-btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.success-card{max-width:760px;margin:40px auto;background:#fff;border:1px solid var(--line);border-radius:26px;padding:26px}.success-head{text-align:center}.success-mark{width:64px;height:64px;border-radius:50%;background:#e7f6ef;color:#13734f;display:grid;place-items:center;margin:0 auto 10px;font-size:30px}.success-row{display:flex;justify-content:space-between;border-bottom:1px solid #edf1f0;padding:11px 0;gap:10px}
@media(max-width:1100px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1020px){.checkout-layout{grid-template-columns:1fr}.checkout-summary-card{position:static}}
@media(max-width:860px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.qv-layout{grid-template-columns:1fr}}
@media(max-width:760px){.checkout-zone-grid{grid-template-columns:1fr}}
@media(max-width:600px){:root{--top-h:58px}.store-shell{width:calc(100% - 24px)}.brand-mini{font-size:15px}.brand-mini-logo,.brand-initial{width:34px;height:34px;font-size:15px}.icon-text-btn,.cart-button{padding:8px 10px}.top-ig{width:34px;height:34px}
.store-hero{padding-top:10px}.hero-banner{padding:14px;gap:12px;min-height:0;border-radius:18px}.hero-logo,.hero-initial{width:56px;height:56px;border-radius:14px;font-size:24px}.hero-initial{border-radius:50%}.hero-text h1{font-size:20px}.hero-text p{font-size:13px;-webkit-line-clamp:1}.store-contact{display:none}
.delivery-strip{font-size:12.5px;padding:8px 10px;gap:6px;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;scrollbar-width:none}.delivery-strip::-webkit-scrollbar{display:none}
.product-grid{grid-template-columns:1fr 1fr;gap:10px}.product-body{padding:8px 9px 10px}.product-body h3{font-size:13px}.price-block strong{font-size:14px}.add-btn{padding:7px 10px;font-size:13px}.qty-stepper button{width:28px;height:30px}
.category-heading h2,.reco-block h2{font-size:17px}.reco-row{grid-auto-columns:minmax(140px,44%)}
.store-toolbar{gap:8px;margin-bottom:12px}.search-box{flex:1 1 auto}.sort-select{flex:0 0 auto;max-width:40%;padding:10px 8px;font-size:13px}.result-count{display:none}
.store-drawer-box{padding:16px}.store-modal{padding:0;align-items:flex-end}.store-modal-box{border-radius:20px 20px 0 0;max-height:94vh;padding:14px}.product-gallery-main{aspect-ratio:auto;height:min(38vh,300px)}.qv-layout{gap:12px}.modal-product-head h3{font-size:19px}#confirmAddToCart{position:sticky;bottom:0;box-shadow:0 -8px 16px #fff}
.footer-grid{flex-direction:column}.footer-powered{align-self:auto}
.checkout-row,.fulfillment-choice{grid-template-columns:1fr}.checkout-card{padding:17px}.checkout-head{align-items:stretch;flex-direction:column}.checkout-head .secondary-btn{align-self:flex-start}.wa-float{width:50px;height:50px;bottom:14px;inset-inline-end:14px}body.has-cartbar .wa-float{bottom:80px}}
@media print{.store-topbar,.store-tabs,.wa-float,.cart-bar{display:none!important}}
