/* سوق دفتر كاش — التصميم الجديد (بنفسجي #3B1E68 + برتقالي #F0A93B). مشترك بين كل صفحات /souq/. */
@font-face { font-family: 'Alexandria'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/alexandria/alexandria-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/alexandria/alexandria-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/alexandria/alexandria-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/alexandria/alexandria-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }

:root {
    --p: #3B1E68; --p2: #4E2A85; --soft: #F1ECF8; --soft2: #EEE8F6;
    --amber: #F0A93B; --amber-ink: #3A2500; --amber-soft: #FFF6E6; --amber-line: #F2D59C; --amber-text: #7A4B00;
    --bg: #F7F5F9; --card: #FFFFFF; --field: #FAF9FC; --text: #1E1828; --muted: #6A6475;
    --line: #E6E1EC; --line2: #D8D1E0; --line3: #EEEAF2; --dash: #C8BFD4; --hero-sub: #DCD3EA;
    --ok: #1E8F5A; --ok-soft: #E6F5EE; --danger: #C62828; --danger-soft: #FDECEC;
    --head: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    --shadow: 0 10px 30px rgba(59, 30, 104, .3);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--p); text-decoration: none; } a:hover { color: var(--p2); }
button, input, textarea, select { font-family: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); margin: 0; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex-shrink: 0; }

/* ألوان أنواع المحلات (hue لـ oklch) */
.k-restaurant { --h: 40; } .k-clothing { --h: 330; } .k-supermarket { --h: 160; } .k-pharmacy { --h: 230; } .k-greengrocer { --h: 125; }
.k-butcher { --h: 20; } .k-bakery { --h: 70; } .k-electronics { --h: 290; } .k-salon { --h: 350; } .k-online { --h: 200; }
.k-shop { --h: 255; } .k-other { --h: 255; }
.tint { background: oklch(0.94 0.04 var(--h, 280)); color: oklch(0.42 0.1 var(--h, 280)); }
.stripe { background: repeating-linear-gradient(135deg, oklch(0.93 0.045 var(--h, 280)) 0 10px, oklch(0.89 0.06 var(--h, 280)) 10px 20px); }
.inkbg { background: oklch(0.52 0.13 var(--h, 280)); }

/* ── الهيدر ── */
.sq-head { position: sticky; top: 0; z-index: 30; background: rgba(247, 245, 249, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.sq-head .in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
img.logo { border-radius: 50%; background: none; object-fit: cover; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: var(--p); color: var(--amber); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 20px; flex-shrink: 0; }
.btitle { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btitle b { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--p); }
.btitle span { font-size: 11px; color: var(--muted); }
.hchip { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 13px; color: var(--muted); max-width: 100%; }
.hchip strong { color: var(--text); font-weight: 600; }
a.hchip { font-weight: 600; color: var(--p); }
.hsearch { flex: 1 1 260px; min-width: 0; order: 3; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; height: 46px; }
.hsearch:focus-within { border-color: var(--p); }
.hsearch .ico { color: var(--muted); }
.hsearch input { border: 0; outline: 0; background: none; flex: 1; font-size: 16px; min-width: 0; height: 100%; }
.hcart { margin-inline-start: auto; border: 0; background: var(--p); color: #fff; border-radius: 14px; height: 46px; padding: 0 16px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.hcart:hover { background: var(--p2); }
.badge { background: var(--amber); color: var(--amber-ink); border-radius: 999px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; padding: 0 7px; }

main.sq { max-width: 1180px; margin: 0 auto; padding: 20px 20px 120px; }
.view { display: flex; flex-direction: column; gap: 28px; }
.backlink { align-self: flex-start; border: 0; background: none; color: var(--p); font-size: 14px; font-weight: 600; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.h1 { font-family: var(--head); font-weight: 700; font-size: clamp(24px, 4vw, 32px); line-height: 1.3; }
.h2 { font-family: var(--head); font-weight: 600; font-size: 22px; }
.sub { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.7; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.notice { background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber-text); border-radius: 16px; padding: 12px 16px; font-size: 14px; font-weight: 600; line-height: 1.7; }

/* أزرار */
.btn { border: 0; background: var(--p); color: #fff; border-radius: 14px; min-height: 52px; padding: 0 18px; font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.btn:hover { background: var(--p2); color: #fff; }
.btn:disabled { background: #B6A9C9; cursor: not-allowed; }
.btn.amber { background: var(--amber); color: var(--amber-ink); } .btn.amber:hover { background: #E89D2A; }
.btn.line { background: none; border: 1px solid var(--p); color: var(--p); } .btn.line:hover { background: var(--soft); }
.btn.sm { min-height: 40px; border-radius: 12px; font-size: 14px; padding: 0 14px; }
.btn.block { width: 100%; }

/* بطاقات المحلات والتايلز */
.cta-list { text-align: right; border: 2px solid var(--p); background: #fff; border-radius: 22px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; width: 100%; }
.cta-list:hover { background: var(--soft); }
.cta-list .t { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.cta-list .t b { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--p); }
.cta-list .t span { font-size: 14px; color: var(--muted); line-height: 1.6; }
.cta-list .go { background: var(--p); color: #fff; border-radius: 12px; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.hero { background: var(--p); color: #fff; border-radius: 28px; padding: clamp(24px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between; }
.hero .k { font-size: 13px; color: var(--amber); font-weight: 600; margin-bottom: 12px; }
.hero h1 { font-weight: 700; font-size: clamp(30px, 5vw, 52px); line-height: 1.2; text-wrap: balance; }
.hero p { margin: 14px 0 0; font-size: 17px; line-height: 1.7; color: var(--hero-sub); text-wrap: pretty; }
.hero .txt { flex: 1 1 360px; max-width: 620px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat { background: rgba(255, 255, 255, .08); border-radius: 16px; padding: 14px 18px; }
.stat .v { font-family: var(--head); font-size: 16px; line-height: 1.6; } .stat .v.big { font-size: 24px; color: var(--amber); line-height: 1.3; }
.stat .l { font-size: 13px; color: var(--hero-sub); }
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.kind { text-align: right; border: 2px solid transparent; border-radius: 20px; padding: 16px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.kind.on { border-color: oklch(0.52 0.13 var(--h)); }
.kind .sw { width: 36px; height: 36px; border-radius: 10px; opacity: .9; display: grid; place-items: center; color: #fff; }
.kind .sw .ico { width: 21px; height: 21px; }
.kind .n { font-family: var(--head); font-weight: 600; font-size: 15px; color: var(--text); } .kind small { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
.secthead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.linkbtn { border: 0; background: none; color: var(--p); font-size: 14px; font-weight: 600; padding: 0; }
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.scard { text-align: right; border: 1px solid var(--line); background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.scard:hover { border-color: var(--p); color: inherit; }
.scard .cv { height: 110px; position: relative; background-size: cover; background-position: center; }
.scard .lg { position: absolute; bottom: -18px; right: 14px; width: 48px; height: 48px; border-radius: 14px; border: 3px solid #fff; background: #fff; object-fit: cover; }
.scard .bd { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.scard .cv + .bd { padding-top: 14px; }
.scard .cv.haslogo + .bd { padding-top: 24px; }
.scard .nm { font-family: var(--head); font-weight: 600; font-size: 17px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); align-items: center; }
.tag { padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.closedtxt { color: var(--danger); font-weight: 600; }
.closedtxt .dot { background: var(--danger); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.tile { border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 8px; text-align: right; border: 0; }
.tile b { font-family: var(--head); font-weight: 700; font-size: 19px; } .tile span { font-size: 15px; line-height: 1.6; } .tile small { font-size: 13px; color: var(--muted); }
.tile.dark { background: var(--p); color: #fff; } .tile.dark span { color: var(--hero-sub); } .tile.dark:hover { background: var(--p2); color: #fff; }
.tile.amber { background: var(--amber); color: var(--amber-ink); } .tile.amber:hover { color: var(--amber-ink); background: #E89D2A; }
.tile.white { background: #fff; border: 1px solid var(--line); color: var(--text); } .tile.white b { color: var(--p); } .tile.white:hover { border-color: var(--p); color: var(--text); }

/* صفحة المحل */
.shead { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.shead .cv { height: 150px; background-size: cover; background-position: center; }
.shead .bd { padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.shead .who { display: flex; gap: 14px; align-items: center; }
.shead .lg { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; }
.shead .info { display: flex; flex-direction: column; gap: 6px; }
.shead .info .tag { align-self: flex-start; font-size: 12px; padding: 3px 10px; }
.shead .addr { font-size: 14px; color: var(--muted); }
.shead .desc { font-size: 13px; color: var(--muted); max-width: 320px; line-height: 1.6; margin: 0; }
.hours { font-size: 13px; color: var(--muted); }
.hours summary { cursor: pointer; font-weight: 600; color: var(--p); list-style: none; } .hours summary::-webkit-details-marker { display: none; }
.hours ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; min-width: 220px; } .hours li { display: flex; justify-content: space-between; gap: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; border: 1px solid var(--line2); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; background: #fff; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--p); border-color: var(--p); color: #fff; }
.chip .sw { width: 9px; height: 9px; border-radius: 3px; }
.chips.sticky { position: sticky; top: 71px; z-index: 5; background: var(--bg); padding: 8px 0; margin: -8px 0; }
.catsec { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 140px; }
.catsec h2 { font-size: 18px; font-weight: 600; }

/* كارت المنتج */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 6px; position: relative; cursor: pointer; text-align: right; min-width: 0; }
.pcard:hover { border-color: var(--line2); }
.pcard:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }
.pcard .im { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 44px; }
.pcard .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .off { position: absolute; top: 16px; right: 16px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; border-radius: 8px; padding: 2px 7px; }
.pcard .pics { position: absolute; top: 16px; left: 16px; background: rgba(30, 24, 40, .6); color: #fff; font-size: 11px; border-radius: 8px; padding: 2px 7px; }
.pcard .st { border: 0; background: none; padding: 0; text-align: right; font-size: 12px; color: var(--p); font-weight: 600; }
.pcard .nm { font-size: 15px; font-weight: 500; line-height: 1.35; min-height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcard .un { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 16px; }
.pcard .pr { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.pcard .pr .p { font-weight: 600; font-size: 16px; line-height: 1.2; }
.pcard .pr .p small { font-weight: 400; font-size: 12px; color: var(--muted); }
.pcard .was { display: block; color: var(--muted); text-decoration: line-through; font-size: 12px; font-weight: 400; }
.pcard.closed { opacity: .55; cursor: default; }
.add { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--p); color: #fff; font-size: 20px; line-height: 1; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.add:hover { background: var(--p2); }
.step { display: inline-flex; align-items: center; background: var(--p); color: #fff; border-radius: 12px; height: 38px; flex-shrink: 0; }
.step button { width: 32px; height: 38px; border: 0; background: none; color: #fff; font-size: 18px; line-height: 1; }
.step b { min-width: 18px; text-align: center; font-weight: 600; }
.step.ghost { background: none; color: var(--text); border: 1px solid var(--line2); height: 36px; }
.step.ghost button { color: var(--text); height: 34px; }
.step.ghost b { min-width: 44px; font-size: 14px; }
.empty { background: #fff; border: 1px dashed var(--line2); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.empty b { font-family: var(--head); font-weight: 600; font-size: 18px; } .empty span { font-size: 15px; color: var(--muted); }

/* البحث */
.hits { display: flex; flex-wrap: wrap; gap: 8px; }
.hit { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 6px 12px 6px 6px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.hit .sq { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 13px; }

/* السلة وإتمام الطلب */
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split > aside { flex: 1 1 300px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 96px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.box > .bt { font-family: var(--head); font-weight: 600; font-size: 16px; }
.grp { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.grp .gh { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line3); }
.grp .gh .sq { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; }
.grp .gh b { flex: 1; font-family: var(--head); font-weight: 600; font-size: 16px; }
.grp .gh span { font-size: 14px; color: var(--muted); }
.ln { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.ln + .ln { border-top: 1px solid var(--line3); }
.ln .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .ln .t b { font-size: 15px; font-weight: 500; } .ln .t small { font-size: 12px; color: var(--muted); }
.ln .lp { min-width: 70px; text-align: left; font-weight: 600; }
.row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.row.sm { font-size: 14px; }
.hr { height: 1px; background: var(--line3); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--head); font-weight: 700; }
.total span:first-child { font-size: 20px; } .total span:last-child { font-size: 18px; }
.varnote { font-size: 13px; line-height: 1.6; background: var(--amber-soft); color: var(--amber-text); border-radius: 12px; padding: 10px 12px; }
.fine { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.field { height: 50px; border: 1px solid var(--line2); border-radius: 14px; padding: 0 14px; font-size: 16px; outline: none; background: var(--field); width: 100%; }
textarea.field { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; }
select.field { appearance: auto; }
.field:focus { border-color: var(--p); background: #fff; }
label.lb { font-size: 14px; font-weight: 600; }
.hello { background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 14px; }
.where { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: var(--soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--p); line-height: 1.6; }
.gps { display: flex; align-items: center; gap: 12px; border: 1px dashed var(--dash); background: var(--field); border-radius: 14px; padding: 12px 14px; }
.gps .gi { width: 44px; height: 44px; border-radius: 12px; background: var(--soft2); color: var(--p); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; }
.gps.ok .gi { background: var(--ok-soft); color: var(--ok); } .gps.bad .gi { background: var(--danger-soft); color: var(--danger); }
.gps.busy .gi { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.1); opacity: .7; } }
.gps .gt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.gps .gt b { font-size: 15px; color: var(--text); font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1px solid var(--line2); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 500; background: #fff; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.opt:has(input:checked) { background: var(--p); border-color: var(--p); color: #fff; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.err { color: var(--danger); font-weight: 600; font-size: 14px; }
.hint { font-size: 12px; color: var(--muted); }

/* قايمة المشتريات */
.lrow { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.lrow .lh { display: flex; align-items: center; gap: 10px; } .lrow .lh b { flex: 1; font-family: var(--head); font-weight: 600; font-size: 16px; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--soft2); color: var(--p); }
.pill.miss { background: #FFF1D6; color: var(--amber-text); }
.mrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line3); cursor: pointer; }
.mrow .mi { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 20px; }
.mrow .mi img { width: 100%; height: 100%; object-fit: cover; }
.mrow .mt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .mrow .mt b { font-size: 15px; font-weight: 500; } .mrow .mt small { font-size: 12px; color: var(--p); font-weight: 600; }
.mrow .mp { font-weight: 600; font-size: 14px; white-space: nowrap; }
.ex { border: 1px solid var(--line2); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 13px; }

/* شريط السلة */
.cartbar { position: fixed; bottom: 16px; left: 0; right: 0; z-index: 40; padding: 0 16px; display: flex; justify-content: center; pointer-events: none; }
.cartbar button { pointer-events: auto; width: 100%; max-width: 560px; border: 0; background: var(--p); color: #fff; border-radius: 18px; height: 60px; padding: 0 20px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.cartbar .badge { min-width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
.cartbar .t { flex: 1; text-align: right; display: flex; flex-direction: column; line-height: 1.3; } .cartbar .t b { font-weight: 600; font-size: 15px; } .cartbar .t small { font-size: 12px; color: var(--hero-sub); }
.cartbar .sum { font-family: var(--head); font-weight: 700; font-size: 17px; }

/* شيت الصنف */
.sheet-bg { position: fixed; inset: 0; background: rgba(20, 10, 35, .45); z-index: 50; }
.sheet { position: fixed; inset: auto 0 0 0; max-height: 92vh; overflow: auto; background: #fff; border-radius: 24px 24px 0 0; z-index: 51; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.sheet::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 99px; background: var(--line2); margin: -6px auto 4px; flex-shrink: 0; }
.sheet .x { position: absolute; left: 14px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg); font-size: 20px; line-height: 1; }
.sheet .big { width: 100%; max-height: 42vh; object-fit: contain; border-radius: 16px; background: var(--bg); display: block; margin-top: 26px; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; } .thumbs:empty { display: none; }
.thumbs button { flex: 0 0 54px; height: 60px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: none; }
.thumbs button.on { border-color: var(--p); } .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sheet h3 { font-size: 20px; font-weight: 700; padding-left: 40px; }
.sheet .shop { font-size: 13px; color: var(--p); font-weight: 600; }
.sheet .ds { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.og { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; } .og > b { font-size: 14px; }
.sheet .act { display: flex; align-items: center; gap: 10px; position: sticky; bottom: -18px; background: #fff; padding: 12px 0 4px; margin-top: 4px; }
.sheet .act .btn { flex: 1; }

@media (max-width: 640px) {
    .sq-head .in { padding: 10px 14px; gap: 8px; }
    .hchip.del { display: none; }
    .hcart .lbl { display: none; }
    main.sq { padding: 16px 14px 110px; }
    .view { gap: 22px; }
    .hero { border-radius: 22px; gap: 20px; }
    .hero p { font-size: 15px; }
    .stats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
    .stat { flex-shrink: 0; padding: 12px 14px; }
    .kinds { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .kind { min-height: 100px; padding: 14px; border-radius: 18px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pcard { padding: 8px; border-radius: 16px; }
    .pcard .nm { font-size: 14px; }
    .pcard .pr .p { font-size: 15px; }
    .add, .step { height: 36px; } .add { width: 36px; } .step button { width: 28px; height: 36px; }
    .chips.sticky { top: 123px; }
    .split > aside { position: static; }
    .tile { padding: 20px; }
    .shead .cv { height: 120px; }
    .shead .bd { padding: 16px; }
}
.hits:empty, .chips:empty, .grid:empty { display: none; }
@media (min-width: 641px) { .notice.m-only { display: none; } }
@media (max-width: 640px) { .scard .cv { height: 96px; } }
