/* متاجر جيبلي: شاشة المتجر (عامة ومعاينة الباني) بمتغيرات --s-* لكل طابع، ثم تخطيط الباني ولوحة التاجر.
   ألوان الصفحة من app.css (--bg, --ink…)، وألوان المتجر من طابعه الذي اختاره التاجر (متغيرات --s-* تُضبط على العنصر). */
.store-root { background: var(--s-bg); color: var(--s-ink); font-family: var(--s-font); position: relative; min-height: 100%; transition: background .3s, color .3s; }
.store-root button, .store-root input, .store-root textarea { font-family: inherit; }
.s-scr { padding-bottom: 86px; position: relative; isolation: isolate; }
/* الجدارية: طبقة خطوط خلف كل شيء؛ «الرأس فقط» تتلاشى نزولاً */
.s-wall { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-repeat: repeat; }
.s-wall.head { bottom: auto; height: 300px; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.s-ann { background: var(--s-acc); color: var(--s-acc-ink); font-size: 12.5px; text-align: center; padding: 7px 14px; line-height: 1.5; }
.s-cover { height: 96px; background: var(--s-acc); border-radius: 0 0 24px 24px; margin-bottom: -34px; }
.s-cover.w { background-color: color-mix(in srgb, var(--s-acc) 14%, var(--s-bg)); background-repeat: repeat; }
.has-cover .s-logo { box-shadow: 0 0 0 4px var(--s-bg); }
.lg-circle .s-logo { border-radius: 50%; }
.lg-square .s-logo { border-radius: 14px; }
.lg-arch .s-logo { border-radius: 28px 28px 8px 8px; }
.al-c .s-hd { flex-direction: column; text-align: center; }
.al-c .s-hd-t { flex: none; }
.al-c .s-hd .s-chat { position: absolute; inset-inline-end: 16px; top: 14px; }
.al-c .s-meta, .al-c .s-acts { justify-content: center; }
.al-c .s-logo { width: 64px; height: 64px; font-size: 27px; }
.s-hd { position: relative; }
.glass .pc, .glass .s-card, .glass .s-story, .glass .s-welcome { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.s-welcome { margin: 8px 16px 2px; padding: 9px 12px; border-radius: var(--s-radius); background: var(--s-card); border: var(--s-border); font-size: 13px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.s-welcome i { font-style: normal; font-size: 11px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--s-acc) 15%, transparent); color: var(--s-acc); white-space: nowrap; font-weight: 600; }
.s-story { margin: 14px 16px 6px; padding: 13px 14px; border-radius: var(--s-radius); background: var(--s-card); border: var(--s-border); font-size: 13px; line-height: 1.7; }
.s-story b { display: block; font-family: var(--s-display); font-size: 15px; margin-bottom: 3px; }
.s-hd { display: flex; align-items: center; gap: 11px; padding: 14px 16px 4px; }
.s-logo { width: 52px; height: 52px; border-radius: calc(var(--s-radius) * .8); background: var(--s-acc); color: var(--s-acc-ink); display: grid; place-items: center; font-family: var(--s-display); font-size: 23px; font-weight: 700; flex: 0 0 auto; overflow: hidden; }
.s-logo img { width: 100%; height: 100%; object-fit: cover; }
.s-hd-t { min-width: 0; flex: 1; }
.s-name { font-family: var(--s-display); font-size: 20px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.s-tag { font-size: 12px; color: var(--s-ink2); line-height: 1.45; }
.s-chat { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--s-line); background: var(--s-card); display: grid; place-items: center; color: var(--s-ink); flex: 0 0 auto; cursor: pointer; }
.s-chat svg { width: 19px; height: 19px; }
.s-chat .dotn { position: absolute; top: -3px; inset-inline-end: -3px; background: var(--s-acc); color: var(--s-acc-ink); font-style: normal; font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.s-meta { display: flex; align-items: center; gap: 4px 8px; padding: 8px 16px 4px; flex-wrap: wrap; font-size: 12.5px; color: var(--s-ink2); }
.s-mi { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.s-mi svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--s-acc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--s-acc); opacity: .75; flex: none; }
.s-acts { display: flex; gap: 6px; flex-wrap: wrap; padding: 2px 16px 10px; }
.s-acts button { background: var(--s-card); border: 1px solid var(--s-line); border-radius: 999px; padding: 3px 12px; color: var(--s-ink); font-size: 12px; cursor: pointer; font-family: inherit; }
.s-acts button.ask { background: var(--s-acc); color: var(--s-acc-ink, #fff); border-color: transparent; font-weight: 700; }
.s-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 0; }
.s-top .s-lang { margin-inline-start: auto; width: 32px; height: 32px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--s-card); color: var(--s-ink); border: 1px solid var(--s-line); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; flex: none; }
.lang-dot { width: 32px; height: 32px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; flex: none; }
.s-myorders i { font-style: normal; background: rgba(255,255,255,.25); border-radius: 999px; padding: 0 6px; margin-inline-start: 4px; }
.s-top .s-back { margin: 0; }
.s-myorders { background: var(--s-acc); color: var(--s-acc-ink, #fff); border: 0; border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: var(--s-shadow); }
.s-tabs { display: flex; gap: 4px; padding: 6px 12px 10px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; background: var(--s-bg); z-index: 3; }
.s-tabs::-webkit-scrollbar { display: none; }
.s-tabs button { flex: 0 0 auto; border: 0; background: none; padding: 7px 13px; border-radius: 999px; font-size: 13px; color: var(--s-ink2); cursor: pointer; }
.s-tabs button.on { background: var(--s-acc); color: var(--s-acc-ink); font-weight: 600; }
.s-body { padding: 0 14px; }
.s-sec { font-family: var(--s-display); font-size: 15px; font-weight: 700; margin: 12px 2px 8px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pc { background: var(--s-card); border: var(--s-border); border-radius: var(--s-radius); box-shadow: var(--s-shadow); overflow: hidden; position: relative; display: flex; flex-direction: column; cursor: pointer; }
.pc .art-box { aspect-ratio: 1/1; max-width: 100%; overflow: hidden; }
.art-box svg, .art-box img, .art-box video { width: 100%; height: 100%; display: block; object-fit: cover; }
.pc-b { padding: 8px 10px 10px; }
.pc-n { font-size: 13px; font-weight: 600; line-height: 1.35; }
.pc-p { font-size: 13px; color: var(--s-acc); font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.pc-p s { color: var(--s-ink2); font-weight: 400; font-size: 11px; margin-inline-start: 5px; }
.pc-x { font-size: 11px; color: var(--s-ink2); }
.store-root .add { position: absolute; inset-inline-end: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--s-acc); color: var(--s-acc-ink); font-size: 19px; line-height: 1; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.18); cursor: pointer; }
.store-root .add.wide { position: static; width: auto; height: auto; border-radius: 999px; padding: 8px 18px; font-size: 13px; margin-top: 8px; }
.badge { position: absolute; inset-inline-start: 8px; top: 8px; background: #111; color: #fff; font-size: 11px; border-radius: 6px; padding: 1px 7px; }
.badge.v { top: auto; bottom: 8px; }
.pc .badge.v { bottom: auto; top: 34px; }
.plst { display: flex; flex-direction: column; }
.pl { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--s-line); cursor: pointer; }
.pl .art-box { width: 70px; height: 70px; border-radius: calc(var(--s-radius) * .7); overflow: hidden; flex: 0 0 auto; }
.pl .pb { flex: 1; min-width: 0; }
.pl .add { position: static; flex: 0 0 auto; }
.pop { animation: s-pop .6s cubic-bezier(.2,1.4,.4,1); }
.pc-in { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pc-in button { font: inherit; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--s-line); background: var(--s-card); color: var(--s-ink); cursor: pointer; }
.pc-in button:first-child { color: #b3261e; }
.reel .pc-in button { background: rgba(0,0,0,.35); color: #fff; border-color: rgba(255,255,255,.4); }
.store-root .add[data-in] { background: #1e8e5a; color: #fff; font-size: 16px; font-weight: 700; }
.store-root .add.just { animation: s-add .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes s-add { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.cartbar.bump { animation: s-bump .45s cubic-bezier(.2,1.5,.4,1); }
@keyframes s-bump { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-6px) scale(1.04); } 100% { transform: none; } }
@keyframes s-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.reels { display: flex; flex-direction: column; gap: 10px; }
.reel { height: min(72vh, 560px); position: relative; border-radius: var(--s-radius); overflow: hidden; background: #000; scroll-snap-align: start; }
.reel > .art-box, .reel > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel .ov { position: absolute; inset: auto 0 0 0; padding: 70px 14px 16px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; }
.reel .ov b { font-size: 17px; display: block; }
.reel .play { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(0,0,0,.5); color: #fff; font-size: 11px; border-radius: 6px; padding: 2px 8px; }
.cbub { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 13px; margin-bottom: 8px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.cbub.st { background: var(--s-card); border: 1px solid var(--s-line); border-start-start-radius: 4px; }
.cbub.me { background: var(--s-acc); color: var(--s-acc-ink); margin-inline-start: auto; border-start-end-radius: 4px; }
.carousel { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px 10px; padding: 0 14px; scrollbar-width: none; }
.carousel .pc { flex: 0 0 140px; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.slot { border: 1px solid var(--s-line); border-radius: 999px; padding: 5px 11px; font-size: 12px; background: var(--s-card); color: var(--s-ink); cursor: pointer; }
.slot.on { background: var(--s-acc); color: var(--s-acc-ink); border-color: var(--s-acc); }
.cinput { position: sticky; bottom: 10px; margin: 0 10px; display: flex; gap: 6px; background: var(--s-card); border: 1px solid var(--s-line); border-radius: 999px; padding: 4px; z-index: 5; }
.cinput input { flex: 1; border: 0; background: none; padding: 7px 12px; font-size: 13px; min-width: 0; color: var(--s-ink); outline: none; }
.cinput button { border: 0; background: var(--s-acc); color: var(--s-acc-ink); border-radius: 999px; padding: 7px 16px; font-size: 12.5px; cursor: pointer; }
.cartbar { position: sticky; bottom: 10px; margin: 0 10px; width: calc(100% - 20px); background: var(--s-acc); color: var(--s-acc-ink); border-radius: calc(var(--s-radius) * .8 + 4px); padding: 12px 14px; display: flex; align-items: center; gap: 10px; border: 0; z-index: 6; box-shadow: 0 8px 20px rgba(0,0,0,.25); text-align: start; cursor: pointer; font-size: 14px; }
.cartbar.up { bottom: 66px; }
.cartbar b { background: rgba(255,255,255,.22); border-radius: 8px; padding: 0 8px; }
.cartbar span { flex: 1; white-space: nowrap; }
.cartbar .tot { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.s-empty { text-align: center; color: var(--s-ink2); font-size: 13px; padding: 34px 10px; }
.s-card { background: var(--s-card); border: var(--s-border); border-radius: var(--s-radius); padding: 12px 14px; margin-bottom: 8px; font-size: 13px; box-shadow: var(--s-shadow); line-height: 1.6; }
.s-card b { display: block; margin-bottom: 3px; }
.s-ta { width: 100%; min-height: 96px; border: 1px solid var(--s-line); background: var(--s-bg); border-radius: 12px; padding: 10px; font-size: 13px; color: var(--s-ink); resize: vertical; box-sizing: border-box; }
.sbtn { width: 100%; border: 0; border-radius: 12px; padding: 11px; background: var(--s-acc); color: var(--s-acc-ink); font-weight: 600; margin-top: 8px; cursor: pointer; font-size: 14px; }
.sbtn.ghost { background: transparent; border: 1px solid var(--s-line); color: var(--s-ink); }
.sbtn:disabled { opacity: .5; cursor: default; }
.s-hint { font-size: 11.5px; color: var(--s-ink2); margin-top: 6px; }
.s-foot { text-align: end; font-size: 11.5px; color: var(--s-ink2); padding: 22px 16px 8px; }
.s-foot a { color: inherit; }
.s-meta .s-rate { font-weight: 700; color: #B67C00; cursor: pointer; } .s-meta .s-rate small { font-weight: 500; color: var(--s-ink2); }
.s-reviews { margin: 18px 16px 4px; }
.s-reviews h3 { font-size: 16px; margin: 0 0 10px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.s-reviews h3 span { font-size: 13px; color: var(--s-ink2); font-weight: 600; }
.s-rv { background: var(--s-card); border: var(--s-border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.s-rv-h { display: flex; justify-content: space-between; gap: 8px; }
.s-rv p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; }
.s-rv small { display: block; color: var(--s-ink2); font-size: 12px; margin-top: 4px; }
.s-rv-st { color: #C98A00; letter-spacing: 1px; white-space: nowrap; }
.s-rate-box { margin-top: 10px; padding: 10px; border-radius: 12px; background: rgba(201, 138, 0, .08); }
.s-stars { display: flex; gap: 4px; margin: 6px 0 8px; direction: ltr; justify-content: center; }
.s-stars button { font-size: 30px; line-height: 1; background: none; border: 0; color: #cfc6bd; cursor: pointer; padding: 2px 4px; }
.s-stars button.on { color: #F5B82E; }
.s-okline { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, #1e8e5a 10%, var(--s-card)); color: var(--s-ink); font-size: 13px; font-weight: 600; }
.s-rated { margin-top: 8px; font-size: 13.5px; }
.ms-rating { font-weight: 700; padding: 10px 14px !important; margin-bottom: 12px; }
.ms-times { display: grid; gap: 10px; padding: 12px 14px !important; margin-bottom: 12px; }
.ms-trow { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; font-size: 13.5px; }
.ms-trow b { min-width: 110px; }
.ms-time { width: auto !important; min-width: 110px; padding: 6px 8px; }
.ms-num { width: 72px !important; padding: 6px 8px; }
.ms-days { display: flex; gap: 4px 10px; flex-wrap: wrap; font-size: 12.5px; }
.ms-form-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ms-plist-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 18px 0 8px; flex-wrap: wrap; }
.ms-prow .pp { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ms-prow .pa { display: flex; gap: 6px; align-items: center; margin-inline-start: auto; flex: none; }
.ms-prow.on { outline: 2px solid var(--brand); outline-offset: -2px; }
.btn.danger { color: #b3261e; border-color: color-mix(in srgb, #b3261e 35%, var(--line-2)); }
.ms-en { margin: 8px 0 12px; border: 1px dashed var(--line-2); border-radius: 12px; padding: 8px 12px; }
.ms-en summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.ms-en[open] summary { margin-bottom: 8px; }
.field.sug { background: color-mix(in srgb, #F5B82E 14%, var(--surface)); border-color: #e0a91f; }
.ms-sug-h { font-size: 12px; color: #9a6b00; margin: 0 0 6px; font-weight: 600; }
.ms-ask { display: grid; gap: 6px; background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-radius: 14px; padding: 12px 14px; margin: 8px 0 12px; }
.ms-ask span { font-size: 12.5px; color: var(--ink-2); } .ms-ask div { display: flex; gap: 8px; }
.ms-tab-en { margin-top: 4px; font-size: 12.5px; padding: 5px 8px; }
.trv-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.trv-row { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pv-lang { margin-inline-start: auto; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; padding: 0; display: grid; place-items: center; }
.phone-url { display: flex; align-items: center; gap: 6px; }
.ms-mic { font-size: 26px; line-height: 1; }
.ms-rec { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #d93025; margin-inline-end: 8px; animation: ms-blink 1s infinite; }
@keyframes ms-blink { 50% { opacity: .25; } }
.ms-howto { margin-top: 10px; font-size: 12.5px; } .ms-howto summary { cursor: pointer; font-weight: 700; } .ms-howto ul { margin: 6px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.ms-detect .dr2 { display: grid; grid-template-columns: 1fr 2fr; gap: 6px; margin: -2px 0 8px; padding-inline-start: 26px; }
.ms-detect .dr2 .field { font-size: 12.5px; padding: 6px 8px; }
.ms-when { font-size: 13px; font-weight: 700; margin: 6px 0; }
.ms-grp { font-size: 12.5px; margin: 6px 0; background: var(--bg); border-radius: 10px; padding: 6px 10px; display: grid; gap: 2px; }
.ms-rated { font-size: 13px; margin: 6px 0; } .ms-rated span { color: #C98A00; letter-spacing: 1px; }

/* نوافذ المتجر (سلة، منتج، محادثة، طلباتي) بألوان المتجر */
.store-sheet { position: fixed; inset-inline: 0; bottom: 0; margin: 0 auto; max-width: 560px; background: var(--s-bg); color: var(--s-ink); font-family: var(--s-font); border-radius: 22px 22px 0 0; padding: 16px 16px max(18px, env(safe-area-inset-bottom)); z-index: 41; max-height: 90dvh; overflow: auto; transform: translateY(102%); visibility: hidden; transition: transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s .26s; }
.store-sheet.open { transform: none; visibility: visible; transition: transform .26s cubic-bezier(.2,.8,.2,1); }
.store-sheet h4 { margin: 0 0 10px; font-family: var(--s-display); font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.store-sheet .x { border: 0; background: none; font-size: 22px; color: var(--s-ink2); cursor: pointer; line-height: 1; padding: 2px 6px; }
.sline { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; padding: 7px 0; }
.sline .nm { flex: 1; min-width: 0; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--s-line); background: var(--s-card); color: var(--s-ink); line-height: 1; cursor: pointer; font-size: 15px; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--s-line); background: var(--s-card); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; font-size: 13px; cursor: pointer; }
.opt input { accent-color: var(--s-acc); margin-top: 3px; }
.opt small { display: block; color: var(--s-ink2); font-size: 11.5px; }
.opt em { font-style: normal; margin-inline-start: auto; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.slbl { font-size: 12px; font-weight: 700; color: var(--s-ink2); margin: 14px 0 6px; }
.s-in { width: 100%; box-sizing: border-box; border: 1px solid var(--s-line); background: var(--s-card); color: var(--s-ink); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.s-warn { background: var(--s-card); border: 1px solid var(--s-acc); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; margin: 6px 0; }
.s-map { height: 220px; border-radius: 14px; overflow: hidden; border: 1px solid var(--s-line); margin-top: 6px; }
.pd-media { border-radius: var(--s-radius); overflow: hidden; aspect-ratio: 1/1; max-width: 100%; margin-bottom: 10px; background: var(--s-card); }
.pd-media img, .pd-media video, .pd-media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-chatlist { display: flex; flex-direction: column; min-height: 160px; max-height: 50dvh; overflow: auto; padding: 4px 0; }
.s-chatlist .cbub img { max-width: 220px; border-radius: 10px; display: block; cursor: zoom-in; }
.ms-timer { display: inline-block; margin: 6px 0 2px; padding: 2px 10px; border-radius: 999px; background: #FBEFC9; color: #7A5A00; font-size: 12px; font-variant-numeric: tabular-nums; }
.ms-avail { display: flex; gap: 6px; align-items: center; padding: 3px 0; cursor: pointer; }
.so .items .off { text-decoration: line-through; opacity: .6; }
.s-back { display: inline-flex; align-items: center; gap: 6px; margin: 10px 14px 0; padding: 6px 12px; border-radius: 999px; background: var(--s-card); border: var(--s-border); color: inherit; font-size: 13px; font-weight: 600; text-decoration: none; }
.mref { display: block; white-space: normal; padding: 6px 9px; margin: -2px -4px 6px; border-radius: 10px; background: rgba(127,127,127,.12); font-size: 12.5px; font-weight: 600; unicode-bidi: plaintext; }
.s-chatref { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--s-line); border-radius: 12px; font-size: 12.5px; }
.s-chatref span { flex: 1; }
.s-chatref button { border: 0; background: none; color: inherit; font-size: 16px; cursor: pointer; }
.s-chatform { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.s-chatform .s-in { flex: 1; }
.s-chatform button, .s-chatform label { border: 0; background: var(--s-acc); color: var(--s-acc-ink); border-radius: 12px; padding: 10px 14px; cursor: pointer; font-size: 13px; }
.s-chatform label { background: var(--s-card); color: var(--s-ink); border: 1px solid var(--s-line); }
.ord-card { background: var(--s-card); border: var(--s-border); border-radius: var(--s-radius); padding: 12px 14px; margin-bottom: 10px; font-size: 13px; }
.ord-card .st { display: inline-block; font-size: 11.5px; border-radius: 999px; padding: 1px 10px; background: var(--s-acc); color: var(--s-acc-ink); margin-inline-start: 6px; }
.steps-bar { display: flex; gap: 4px; margin: 8px 0; }
.steps-bar i { flex: 1; height: 5px; border-radius: 3px; background: var(--s-line); }
.steps-bar i.on { background: var(--s-acc); }
.steps-bar i.cur { background: linear-gradient(90deg, var(--s-acc) 50%, var(--s-line) 50%); }
.steps-lbl { display: flex; gap: 4px; font-size: 11px; opacity: .55; margin: -4px 0 8px; }
.steps-lbl span { flex: 1; text-align: center; }
.steps-lbl span.on { opacity: 1; font-weight: 600; }
.ord-card .sline { align-items: center; gap: 8px; }
.ord-card .sline.off .nm, .ord-card .sline.off > span:last-child { text-decoration: line-through; opacity: .55; }
.ib { font-size: 11px; border-radius: 999px; padding: 2px 9px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ib.wait { background: #FBEFC9; color: #7A5A00; }
.ib.ok { background: #DDF3E4; color: #1D6B3A; }
.ib.no { background: #FBE1E1; color: #A12A2A; }
.s-bad { color: #B3261E; margin-top: 8px; font-size: 13px; }
.store-closed { max-width: 460px; margin: 60px auto; text-align: center; padding: 0 16px; }

/* ---- صفحة المتجر العامة: عمود واحد بعرض الهاتف، في الوسط على الشاشة العريضة */
body.shop-page { margin: 0; background: var(--bg); }
.shop-wrap { max-width: 560px; margin: 0 auto; min-height: 100dvh; box-shadow: 0 0 40px rgba(0,0,0,.06); }

/* ---- الباني ولوحة التاجر */
.ms-wrap { max-width: 1200px; margin: 0 auto; padding: 14px max(16px, env(safe-area-inset-left)) 60px max(16px, env(safe-area-inset-right)); }
.ms-builder { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 26px; align-items: start; }
.ms-preview { position: sticky; top: 12px; }
.ms-builder.no-pv { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
/* الهاتف: المعاينة ثابتة أعلى الشاشة بحجم أصغر والخيارات تمر تحتها — كل ضغطة يُرى أثرها فوراً (قرار المالك ١٩ أكتوبر) */
@media (max-width: 940px) {
  .ms-builder { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ms-preview { position: sticky; top: env(safe-area-inset-top, 0px); order: -1; z-index: 30; background: var(--bg); padding-block: 6px; border-bottom: 1px solid var(--line); margin-inline: calc(-1 * max(16px, env(safe-area-inset-left))); }
  .ms-preview .phone-frame { width: 380px; max-width: none; transform: scale(.48); transform-origin: top center; margin: 0 auto -386px; }
  .ms-preview .phone-screen { height: 720px; min-height: 0; }
  .ms-preview .ms-cap { display: none; }
}
.ms-preview.flash .phone-frame { animation: msflash .45s ease; }
@keyframes msflash { 40% { box-shadow: 0 0 0 5px var(--brand, #C8102E); } }
@media (prefers-reduced-motion: reduce) { .ms-preview.flash .phone-frame { animation: none; } }
.ms-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ms-look { border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0; overflow: hidden; background: var(--surface); cursor: pointer; }
.ms-look .sw { display: block; height: 78px; position: relative; background-repeat: repeat; }
.ms-look .sw b { position: absolute; inset-inline-start: 8px; bottom: 7px; font-size: 13px; padding: 1px 8px; border-radius: 6px; }
.ms-look[aria-pressed="true"], .ms-wall[aria-pressed="true"] { border-color: var(--brand, #C8102E); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand, #C8102E) 25%, transparent); }
.ms-walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.ms-wall { border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 0 6px; overflow: hidden; background: var(--surface); cursor: pointer; text-align: start; color: var(--ink); display: flex; flex-direction: column; }
.ms-wall .sw { display: block; height: 54px; background-repeat: repeat; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.ms-wall b { font-size: 12.5px; padding-inline: 8px; }
.ms-wall small { font-size: 11px; color: var(--ink-3); padding-inline: 8px; line-height: 1.4; }
.ms-panel .ms-lbl { display: block; margin: 10px 0 6px; }
.ms-panel input[type="range"] { width: 100%; accent-color: var(--brand, #C8102E); }
.ms-steps { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: thin; }
.ms-steps button { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px 6px 14px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.ms-steps button b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: 11px; }
.ms-steps button.done b { background: var(--ok-soft); color: var(--ok); }
.ms-steps button[aria-current="step"] { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.ms-steps button[aria-current="step"] b { background: var(--ink); color: var(--surface); }
.ms-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.ms-panel h2 { font-size: 20px; margin: 0 0 4px; text-wrap: balance; }
.ms-lede { color: var(--ink-2); margin: 0 0 16px; max-width: 62ch; font-size: 14px; }
.ms-sub { font-size: 13px; font-weight: 700; margin: 18px 0 8px; }
.ms-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.ms-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ms-choice { border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 13px; text-align: start; display: flex; flex-direction: column; gap: 5px; cursor: pointer; color: var(--ink); font: inherit; position: relative; }
.ms-choice:hover { border-color: var(--line-2); }
.ms-choice[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.ms-choice svg.ic { width: 30px; height: 30px; color: var(--brand); }
.ms-choice b { font-size: 14px; }
.ms-choice span { font-size: 12px; color: var(--ink-2); }
.ms-choice input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ms-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.ms-field > label, .ms-lbl { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ms-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 540px) { .ms-row2 { grid-template-columns: 1fr; } }
.ms-slug { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius-btn); overflow: hidden; background: var(--surface); direction: ltr; }
.ms-slug span { padding: 10px; color: var(--ink-3); background: var(--bg); border-inline-end: 1px solid var(--line); white-space: nowrap; }
.ms-slug input { border: 0; padding: 10px 12px; flex: 1; min-width: 0; font: inherit; color: var(--ink); background: none; outline: none; text-align: left; }
.ms-ok { color: var(--ok); font-size: 12.5px; } .ms-bad { color: var(--brand); font-size: 12.5px; }
.ms-idea { display: flex; gap: 10px; background: var(--sea-soft); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; margin-top: 16px; }
.ms-idea b { color: var(--sea); white-space: nowrap; }
.ms-swatches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ms-sw { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line-2); cursor: pointer; padding: 0; }
.ms-sw[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.ms-sw-custom { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.ms-sw-custom input { width: 38px; height: 38px; border: 0; padding: 0; background: none; }
.theme-mini { height: 54px; border-radius: 9px; display: flex; gap: 4px; padding: 6px; align-items: flex-end; }
.theme-mini i { flex: 1; border-radius: 4px; display: block; }
.ms-toggle { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 13px; margin-bottom: 10px; background: var(--surface); }
.ms-toggle.on { background: var(--bg); border-color: var(--line-2); }
.ms-toggle > input[type=checkbox] { appearance: none; width: 40px; height: 23px; border-radius: 999px; background: var(--line-2); position: relative; flex: 0 0 auto; margin: 2px 0 0; cursor: pointer; transition: background .15s; }
.ms-toggle > input[type=checkbox]::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.ms-toggle > input[type=checkbox]:checked { background: var(--ok); }
.ms-toggle > input[type=checkbox]:checked::after { inset-inline-start: 20px; }
.ms-toggle .tb { flex: 1; min-width: 0; }
.ms-toggle .tb > label b { display: block; cursor: pointer; }
.ms-toggle .tb p { margin: 2px 0 0; color: var(--ink-2); font-size: 12.5px; }
.ms-toggle .more { margin-top: 12px; }
.ms-plist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ms-prow { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 6px 10px; background: var(--surface); }
.ms-prow .th { width: 42px; height: 42px; border-radius: 9px; overflow: hidden; flex: 0 0 auto; }
.ms-prow .th svg, .ms-prow .th img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ms-prow .pn { flex: 1; min-width: 0; }
.ms-prow .pn b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-prow .pn small { color: var(--ink-3); font-size: 11.5px; }
.ms-x { border: 0; background: none; color: var(--ink-3); font-size: 17px; line-height: 1; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.ms-x:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand); }
.ms-x:disabled { opacity: .3; cursor: default; }
.ms-form { border: 1px dashed var(--line-2); border-radius: 14px; padding: 14px; margin-bottom: 6px; }
.ms-compress { display: flex; gap: 10px; align-items: center; background: var(--ok-soft); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; margin-top: 8px; }
.ms-compress img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.ms-detect { border: 1px solid var(--sea); background: var(--sea-soft); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.ms-detect .dr { display: grid; grid-template-columns: auto minmax(0, 1fr) 100px; gap: 8px; align-items: center; margin-bottom: 6px; }
.ms-scan { position: relative; border-radius: 12px; overflow: hidden; max-height: 200px; margin-bottom: 10px; }
.ms-scan img { width: 100%; display: block; max-height: 200px; object-fit: cover; object-position: top; }
.ms-scan.busy::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--sea); box-shadow: 0 0 16px 5px var(--sea); animation: ms-scan 1.4s ease-in-out infinite; }
@keyframes ms-scan { 0% { top: 0; } 50% { top: calc(100% - 3px); } 100% { top: 0; } }
.ms-tabrow { display: flex; align-items: flex-start; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 7px 8px; background: var(--surface); margin-bottom: 6px; }
.ms-tabrow.drag { opacity: .4; } .ms-tabrow.over { border-color: var(--brand); }
.ms-tabrow .grip { cursor: grab; color: var(--ink-3); padding: 9px 2px; user-select: none; letter-spacing: -3px; }
.ms-tabrow small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.ms-tabrow .ms-mini { display: block; font-size: 12px; color: var(--ink-2); margin: 8px 0 3px; }
.ms-tabadd { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; }
@media (max-width: 560px) { .ms-tabadd { grid-template-columns: 1fr; } }
.ms-wilbox { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 12px; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 12px; cursor: pointer; color: var(--ink); }
.ms-chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ms-map { height: 240px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-top: 8px; }
.ms-flow { display: flex; flex-wrap: wrap; margin: 10px 0 2px; }
.ms-flow div { flex: 1 1 110px; background: var(--surface); border: 1px solid var(--line); padding: 8px 10px; font-size: 12px; }
.ms-flow div b { display: block; font-size: 12.5px; }
.ms-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-plans .pr { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ms-pub { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 14px; }
@media (max-width: 480px) { .ms-pub { grid-template-columns: 1fr; } }
.ms-pub canvas { width: 124px; height: 124px; background: #fff; border-radius: 8px; image-rendering: pixelated; }
.ms-link { direction: ltr; text-align: left; font-weight: 700; font-size: 15px; word-break: break-all; }
.ms-check { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 12.5px; }
.ms-check li.ok::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.ms-check li.no::before { content: "• "; color: var(--brand); font-weight: 700; }
.phone-frame { width: 100%; max-width: 380px; margin: 0 auto; background: #1E1714; border-radius: 42px; padding: 10px; box-shadow: 0 10px 30px rgba(43,29,22,.12); }
.phone-screen { height: min(720px, 80vh); min-height: 540px; border-radius: 33px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.phone-url { display: flex; justify-content: center; padding: 9px 12px 5px; font-size: 11px; direction: ltr; background: var(--s-bg); color: var(--s-ink2); }
.phone-url span { background: var(--s-card); border: 1px solid var(--s-line); border-radius: 999px; padding: 3px 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-screen .store-root { flex: 1; overflow-y: auto; scrollbar-width: none; }
.phone-screen .store-root::-webkit-scrollbar { display: none; }
.ms-cap { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 10px; }
.ms-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ms-top h1 { font-size: 20px; margin: 0; }
.ms-views { display: flex; gap: 4px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; margin-inline-start: auto; max-width: 100%; }
.ms-views button { border: 0; background: none; padding: 7px 13px; border-radius: 9px; white-space: nowrap; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; position: relative; }
.ms-views button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); font-weight: 600; }
.ms-views button i { font-style: normal; background: var(--brand); color: var(--brand-ink); border-radius: 9px; font-size: 10px; padding: 0 5px; margin-inline-start: 4px; }
.ms-banner { border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-size: 13.5px; border: 1px solid var(--line-2); background: var(--surface); }
.ms-banner.warn { background: var(--warn-soft); border-color: var(--warn); }
.ms-banner.ok { background: var(--ok-soft); border-color: var(--ok); }
.ms-banner.bad { background: var(--brand-soft); border-color: var(--brand); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.kpi small { color: var(--ink-2); font-size: 12px; }
.kpi b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.ms-grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 860px) { .ms-grid2 { grid-template-columns: minmax(0, 1fr); } }
.ms-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; margin-bottom: 14px; }
.ms-card h3 { font-size: 15px; margin: 0 0 10px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ms-card h3 small { font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.hbar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 44px; gap: 8px; align-items: center; font-size: 12.5px; margin-bottom: 8px; }
.hbar .tr { height: 9px; border-radius: 5px; background: var(--bg); overflow: hidden; }
.hbar .tr i { display: block; height: 100%; background: var(--sea); border-radius: 5px; }
.hbar.f .tr i { background: var(--brand); }
.hbar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart { width: 100%; height: auto; display: block; }
.so { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface); }
.so.new { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.so-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.so-h b { font-size: 15px; }
.so .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.so .items { font-size: 13px; margin: 8px 0; }
.so .meta { font-size: 12.5px; color: var(--ink-2); display: grid; gap: 2px; }
.thread-row { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; background: var(--surface); cursor: pointer; width: 100%; text-align: start; font: inherit; color: var(--ink); }
.thread-row .t { flex: 1; min-width: 0; }
.thread-row .t small { display: block; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-row i { font-style: normal; background: var(--brand); color: var(--brand-ink); border-radius: 9px; font-size: 11px; padding: 0 7px; }
.ms-chat { display: flex; flex-direction: column; gap: 6px; max-height: 55dvh; overflow: auto; padding: 6px 0; }
.ms-chat .m { max-width: 80%; padding: 8px 12px; border-radius: 14px; font-size: 13px; background: var(--bg); border: 1px solid var(--line); align-self: flex-start; overflow-wrap: anywhere; white-space: pre-line; }
.ms-chat .m.me { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); align-self: flex-end; }
.ms-chat .m small { display: block; opacity: .7; font-size: 10.5px; }
.ms-chat .m img { max-width: 220px; border-radius: 10px; display: block; }
.reel-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.rthumb { flex: 0 0 100px; height: 156px; border-radius: 12px; overflow: hidden; position: relative; background: #000; border: 0; padding: 0; cursor: pointer; }
.rthumb img, .rthumb svg, .rthumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rthumb span { position: absolute; bottom: 6px; inset-inline: 6px; color: #fff; font-size: 11px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.7); text-align: start; }
@media (prefers-reduced-motion: reduce) { .pop, .ms-scan.busy::after, .store-root .add.just, .cartbar.bump { animation: none !important; } .store-sheet { transition: none !important; } }
.map-pin { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--s-acc, var(--brand)); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
@media (max-width: 540px) { .ms-prow { flex-wrap: wrap; } .ms-prow .pn { flex: 1 1 calc(100% - 120px); } .ms-prow .pn b { white-space: normal; } }

/* ---- سوق جيبلي: كل المتاجر حسب ولاية التسليم */
.mk-wrap { max-width: 1100px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-left)) 50px max(16px, env(safe-area-inset-right)); }
.mk-head h1 { font-size: 24px; margin: 6px 0 2px; text-wrap: balance; }
.mk-head > p { margin: 0 0 12px; max-width: 62ch; }
/* «التوصيل إلى:» والمحافظة والولاية وزر الموقع في سطر واحد حتى على الهاتف */
.mk-area { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; margin-bottom: 12px; }
.mk-area b { font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--ink-2); flex: none; }
.mk-area .field { width: auto; min-width: 0; flex: 1 1 0; max-width: 240px; font-size: 13.5px; padding-inline: 8px; text-overflow: ellipsis; }
.mk-area .mk-gps { flex: none; padding-inline: 10px; font-size: 15px; }
.mk-types { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: thin; }
.mk-types button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.mk-types button .ic { width: 18px; height: 18px; color: var(--brand); }
.mk-types button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.mk-types button.on .ic { color: var(--surface); }
.mk-search { font-size: 15px; padding: 12px 14px; }
.mk-note { font-size: 12.5px; color: var(--ink-2); margin: 6px 0 14px; }
.mk-empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: 14px; padding: 26px 16px; text-align: center; color: var(--ink-2); }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mk-store { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.mk-store:hover { border-color: var(--line-2); transform: translateY(-1px); }
.mk-sh { display: flex; gap: 10px; align-items: center; }
.mk-sh b { display: block; font-size: 15px; }
.mk-sh small { display: block; color: var(--ink-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-logo { width: 44px; height: 44px; border-radius: 12px; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 19px; flex: 0 0 auto; overflow: hidden; }
.mk-logo img { width: 100%; height: 100%; object-fit: cover; }
.mk-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mk-thumbs .art-box { aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--bg); max-width: 100%; }
.mk-meta { font-size: 12px; color: var(--ink-2); }
.mk-group { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.mk-ghead { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-bottom: 10px; }
.mk-ghead b { flex: 1; min-width: 0; }
.mk-open { font-size: 12.5px; color: var(--brand); white-space: nowrap; }
.mk-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.mk-p { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; font-size: 13px; }
.mk-p .art-box { aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: var(--bg); max-width: 100%; }
.mk-p b { font-variant-numeric: tabular-nums; color: var(--brand-deep); }
.mk-pn { line-height: 1.35; }
.mk-foot { text-align: end; margin-top: 24px; font-size: 12px; color: var(--ink-2); }
.mk-foot a { color: inherit; }
/* التبويبات والعروض والتقييم في صفحة كل المتاجر */
.mk-gps.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.mk-tabbar { display: flex; gap: 8px; align-items: center; margin: 4px 0 4px; }
.mk-tabs { display: flex; gap: 6px; overflow-x: auto; flex: 1 1 auto; min-width: 0; padding-bottom: 4px; scrollbar-width: none; }
.mk-tabs button { flex: 0 0 auto; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.mk-tabs button small { font-weight: 500; opacity: .7; font-size: 11.5px; }
.mk-tabs button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.mk-type { width: auto; flex: 0 0 auto; max-width: 140px; font-size: 13px; padding: 7px 8px; }
.mk-subbar { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 2px 0 10px; }
.mk-hint { font-size: 12px; color: var(--ink-2); margin: 0; flex: 1 1 auto; min-width: 0; }
.mk-tags { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.mk-tags > span { background: var(--bg); border-radius: 999px; padding: 2px 8px; }
.mk-stars { color: color-mix(in srgb, var(--saffron) 55%, var(--ink)); font-weight: 700; }
.mk-stars small { font-weight: 500; color: var(--ink-2); }
.mk-tags .mk-stars { background: var(--saffron-soft); }
.mk-new { background: var(--brand) !important; color: #fff; font-weight: 700; }
.mk-rv { font-size: 12.5px; color: var(--ink); background: var(--bg); border-radius: 10px; padding: 7px 10px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-rv small { color: var(--ink-2); }
.mk-ghead .mk-stars { font-size: 12.5px; }
.mk-cart { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--brand); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; color: var(--ink); text-decoration: none; }
.mk-cart > span:nth-child(2) { flex: 1; min-width: 0; }
.mk-cart b { display: block; font-size: 14px; } .mk-cart small { color: var(--ink-2); font-size: 12px; }
.mk-cart i { font-style: normal; color: var(--brand); font-weight: 700; font-size: 13px; white-space: nowrap; }
.mk-cart .mk-logo { width: 38px; height: 38px; font-size: 16px; }
.mk-sec { margin: 4px 0 14px; }
.mk-sec h2 { font-size: 16px; margin: 0 0 8px; }
.mk-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.mk-off .art-box { position: relative; }
.mk-pct { position: absolute; top: 6px; inset-inline-start: 6px; background: #b3261e; color: #fff; font-style: normal; font-weight: 700; font-size: 11.5px; border-radius: 8px; padding: 1px 6px; }
.mk-off s { color: var(--ink-3); font-size: 11.5px; }
.mk-groupset { border: 1.5px dashed var(--line-2); border-radius: 18px; padding: 10px; margin-bottom: 14px; }
.mk-gs-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; margin: 0 4px 8px; }
.mk-gs-h small { color: var(--brand); font-weight: 700; }
.mk-from { color: var(--ink-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-form.editing { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }
.pc-d { font-size: 11.5px; color: var(--s-ink2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-desc { font-size: 13px; line-height: 1.7; color: var(--s-ink); margin: 8px 0 4px; white-space: pre-line; }
