/* أسواق عمار: واجهة الزبون (الهاتف أولاً). لتغيير الهوية عدّل :root فقط. */
:root {
    --p: #2E1065;          /* بنفسجي غامق */
    --p2: #4C1D95;         /* بنفسجي */
    --p3: #7C3AED;         /* بنفسجي فاتح للتفاعل */
    --gold: #E0B84C;       /* ذهبي */
    --gold-soft: #FBF3DC;
    --bg: #F6F3FB;
    --card: #FFFFFF;
    --tint: #EFEAF8;
    --text: #1E1033;
    --muted: #6B6380;
    --line: #E6E0F0;
    --danger: #C2410C;
    --wa: #1FA855;
    --radius: 16px;
    --hdr-h: 118px;
    --shadow: 0 1px 2px rgba(46, 16, 101, .06), 0 4px 16px rgba(46, 16, 101, .06);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --foot-h: 38px;        /* ارتفاع الفوتر الثابت */
    --cart-gap: 20px;      /* المسافة بين زر السلة والفوتر (كانت 10)، أي ضعفها */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-padding-top: 170px; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    font-size: 15px; line-height: 1.5;
    padding-bottom: calc(106px + var(--foot-h) + var(--safe-b)); /* مكان زر السلة + الفوتر */
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; font-size: 16px; /* يمنع التكبير التلقائي في iPhone */ }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

/* ---------- الرأس ---------- */
.hdr {
    position: sticky; top: 0; z-index: 30;
    background: var(--p); color: #fff;
    padding: 12px 16px 14px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    transition: padding .2s;
}
.hdr-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; transition: margin .2s, height .2s; height: 40px; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: 1; min-width: 0; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.brand small { display: block; font-size: 10px; letter-spacing: 2.5px; color: var(--gold); direction: ltr; text-align: right; }
.hdr-btn { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.hdr-btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }

.hdr.compact { padding-top: calc(8px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; }
.hdr.compact .hdr-top { height: 0; margin-bottom: 0; }

.search {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border-radius: 14px; height: 46px; padding: 0 14px;
}
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); min-width: 0; height: 100%; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--muted); font-size: 13px; }

/* ---------- شريط الأقسام ---------- */
.chips {
    position: sticky; z-index: 25; top: var(--chips-top, 118px);
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    padding: 10px 16px; background: var(--bg);
    border-bottom: 1px solid var(--line);
    transition: top .2s;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; height: 36px; padding: 0 14px; border-radius: 20px;
    background: var(--card); border: 1px solid var(--line);
    font-size: 14px; font-weight: 600; white-space: nowrap;
    display: flex; align-items: center; gap: 6px;
}
.chip.on { background: var(--p); border-color: var(--p); color: #fff; }
.chip.offer { background: var(--gold-soft); border-color: var(--gold); color: #6B4E0A; }
.chip.offer.on { background: var(--gold); color: var(--p); }

.announce { margin: 12px 16px 0; padding: 10px 14px; border-radius: 12px; background: var(--gold-soft); color: #6B4E0A; font-weight: 600; font-size: 14px; }

/* ---------- المحتوى ---------- */
main { padding: 4px 16px 16px; max-width: 1100px; margin: 0 auto; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 12px; }
.sec-title h2 { margin: 0; font-size: 19px; font-weight: 800; }
.sec-title a, .sec-title button { color: var(--p3); font-weight: 700; font-size: 14px; text-decoration: none; }
.sec-title small { color: var(--muted); font-size: 13px; }

.offer-banner {
    display: flex; align-items: center; gap: 14px; width: 100%; text-align: right;
    margin-top: 16px; padding: 16px 18px; border-radius: var(--radius);
    background: var(--p2); color: #fff; box-shadow: var(--shadow);
}
.offer-banner b { display: block; font-size: 18px; font-weight: 800; color: var(--gold); }
.offer-banner span { font-size: 14px; opacity: .9; }
.offer-banner .ob-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--gold); color: var(--p); display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; }
.offer-banner .ob-go { margin-right: auto; font-size: 22px; color: var(--gold); }

/* شبكة الأقسام */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cat {
    background: var(--card); border-radius: var(--radius); padding: 12px 8px 10px;
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    box-shadow: var(--shadow); border: 1px solid transparent;
}
.cat:active { border-color: var(--p3); }
.cat-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--tint); display: grid; place-items: center; font-size: 30px; overflow: hidden; }
.cat-ico img { width: 100%; height: 100%; object-fit: cover; }
.cat b { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.cat small { font-size: 11.5px; color: var(--muted); }

/* شبكة المنتجات */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* صف يُسحب أفقياً (الأكثر طلباً) */
.grid.row-scroll {
    display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: -16px; padding: 2px 16px 10px;
}
.grid.row-scroll::-webkit-scrollbar { display: none; }
.grid.row-scroll .card { flex: 0 0 150px; scroll-snap-align: start; }
@media (min-width: 560px) { .grid.row-scroll .card { flex-basis: 170px; } }

.card {
    position: relative; background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
/* مربع الصورة ثابت مهما كان شكل الصورة: الصورة "معلّقة" داخله (absolute) فلا تمدّده،
   وتظهر كاملة في المنتصف (contain) بدل أن تُقص. الصورة الطويلة يصير بجانبيها فراغ أبيض. */
.card-img { position: relative; aspect-ratio: 1 / 1; background: #fff; display: block; width: 100%; padding: 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-img img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.card-img .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; background: var(--tint); }
.badge-off {
    position: absolute; top: 8px; right: 8px; background: var(--gold); color: var(--p);
    font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 8px;
}
.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; z-index: 1; }
.badge-qty {
    min-width: 26px; height: 26px; padding: 0 7px;
    border-radius: 13px; background: var(--p); color: #fff; font-size: 13px; font-weight: 700;
    display: grid; place-items: center;
}
.badge-qty.badge-pack { background: var(--gold); color: var(--p); }
.card-body { padding: 8px 10px 10px; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.card-name { font-size: 14px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-brand { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; }
.card-foot .ctl:has(.stepper) { flex: 1 1 100%; }
.card-foot .stepper { width: 100%; justify-content: space-between; }
.price { line-height: 1.2; }
.price b { color: var(--p); font-size: 16px; font-weight: 800; }
.price small { color: var(--muted); font-size: 11.5px; }
.price s { display: block; color: var(--muted); font-size: 12px; }

.add {
    width: 40px; height: 40px; border-radius: 12px; background: var(--p); color: #fff;
    font-size: 24px; font-weight: 600; display: grid; place-items: center; flex: none; line-height: 1;
}
.add:active { background: var(--p3); }

.stepper { display: flex; align-items: center; background: var(--tint); border-radius: 12px; height: 40px; flex: none; }
.stepper button { width: 36px; height: 40px; font-size: 20px; font-weight: 700; color: var(--p); }
.stepper span { min-width: 30px; text-align: center; font-weight: 800; font-size: 14px; }
.stepper.wide { height: 48px; }
.stepper.wide button { width: 48px; height: 48px; font-size: 24px; }
.stepper.wide span { min-width: 70px; font-size: 16px; }

.card.out .card-img::after {
    content: "نفد"; position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(246, 243, 251, .72); color: var(--danger); font-size: 22px; font-weight: 800;
}
.card.out .card-name, .card.out .price b { color: var(--muted); }
.out-label { font-size: 12px; font-weight: 700; color: var(--danger); background: #FFF1EA; border-radius: 8px; padding: 4px 8px; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.loading { display: grid; place-items: center; padding: 40px 0; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--p2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, #EDE8F5 25%, #F6F3FB 50%, #EDE8F5 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); aspect-ratio: .72; }
@keyframes sk { to { background-position: -200% 0; } }
.retry { margin-top: 12px; padding: 10px 20px; border-radius: 12px; background: var(--p); color: #fff; font-weight: 700; }

/* ---------- الفوتر الثابت أسفل الشاشة ---------- */
.site-footer {
    position: fixed; z-index: 35; inset-inline: 0; bottom: 0;
    height: calc(var(--foot-h) + var(--safe-b)); padding: 0 12px var(--safe-b);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--card); border-top: 1px solid var(--line);
    font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap;
}
.site-footer img { width: 26px; height: 24px; object-fit: contain; flex: none; }
.site-footer a {
    display: inline-flex; align-items: center; gap: 5px; margin-inline-start: 4px;
    padding: 3px 10px; border-radius: 14px; background: var(--tint);
    color: var(--p2); text-decoration: none; font-size: 12.5px;
}
.site-footer a svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- شريط السلة ---------- */
.cartbar {
    position: fixed; z-index: 40; inset-inline: 0; bottom: calc(var(--foot-h) + var(--safe-b));
    padding: 10px 16px var(--cart-gap);
    background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.cartbar button {
    width: 100%; max-width: 640px; margin: 0 auto; height: 58px; border-radius: 18px;
    background: var(--p); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 16px;
    box-shadow: 0 8px 24px rgba(46, 16, 101, .35);
}
.cb-count { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 10px; background: rgba(255,255,255,.15); display: grid; place-items: center; font-weight: 800; }
.cb-label { font-weight: 700; font-size: 16px; }
.cb-total { margin-right: auto; font-weight: 800; color: var(--gold); font-size: 16px; }
.cartbar.bump button { animation: bump .3s; }
@keyframes bump { 50% { transform: scale(1.03); } }

/* ---------- النوافذ السفلية ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(20, 8, 45, .5); opacity: 0; transition: opacity .2s; }
.scrim.show { opacity: 1; }
.sheet {
    position: fixed; z-index: 60; inset-inline: 0; bottom: 0; margin: 0 auto; max-width: 640px;
    max-height: 92vh; max-height: 92dvh; background: var(--card);
    border-radius: 22px 22px 0 0; display: flex; flex-direction: column;
    transform: translateY(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.sheet.show { transform: none; }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.x { width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--muted); font-size: 15px; }
.sheet-body { overflow-y: auto; padding: 16px; flex: 1; min-height: 0; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); flex: none; }

/* نافذة المنتج */
.ps-img { position: relative; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin: -4px 0 14px; }
.ps-img img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.ps-img .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 80px; background: var(--tint); }
.ps-img .x { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.9); }
.ps-name { font-size: 20px; font-weight: 800; margin: 0 0 2px; line-height: 1.35; }
.ps-brand { color: var(--muted); font-size: 14px; }
.ps-desc { color: var(--muted); font-size: 14px; margin: 8px 0 0; white-space: pre-line; }
.ps-price { margin: 12px 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ps-price b { font-size: 24px; font-weight: 800; color: var(--p); }
.ps-price s { color: var(--muted); }
.ps-note { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 4px; outline-color: var(--p3); }
.ps-row { display: flex; align-items: center; gap: 12px; }
.ps-row .btn-primary { flex: 1; }
.btn-primary { height: 52px; border-radius: 14px; background: var(--p); color: #fff; font-weight: 800; font-size: 16px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.btn-primary span:last-child { color: var(--gold); }
.btn-primary:disabled { background: var(--line); color: var(--muted); }

/* السلة */
.line { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-img { width: 56px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; flex: none; display: grid; place-items: center; font-size: 26px; }
.line-img img { width: 100%; height: 100%; object-fit: contain; }
.line-info { flex: 1; min-width: 0; }
.line-info b { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; }
.line-info small { color: var(--muted); font-size: 12.5px; display: block; }
.line-info .note { color: var(--p2); }
.line-info .gone { color: var(--danger); font-weight: 700; }
.line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line-end > b { font-size: 14px; font-weight: 800; color: var(--p); }
.line .stepper { height: 34px; }
.line .stepper button { width: 32px; height: 34px; font-size: 18px; }
.line .stepper span { min-width: 44px; font-size: 13px; }

.totals { margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--tint); }
.totals div { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; }
.totals .grand { font-size: 17px; font-weight: 800; color: var(--p); padding-top: 6px; margin-top: 4px; border-top: 1px dashed #D6CCE8; }
.totals .warn { color: var(--danger); font-weight: 700; justify-content: center; }
.clear-cart { color: var(--danger); font-size: 13px; font-weight: 700; margin-top: 8px; }

.order-form { margin-top: 18px; display: grid; gap: 10px; }
.order-form h3 { margin: 0; font-size: 16px; font-weight: 800; }
.order-form h3 small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.order-form input, .order-form textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
    background: #FCFBFE; outline-color: var(--p3); color: var(--text); resize: vertical;
}

.btn-wa {
    width: 100%; height: 54px; border-radius: 16px; background: var(--wa); color: #fff;
    font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
}
.btn-wa svg { width: 24px; height: 24px; fill: #fff; }
.btn-wa:disabled { opacity: .6; }
.btn-ghost { width: 100%; height: 50px; border-radius: 16px; color: var(--p2); font-weight: 700; margin-top: 8px; }

.done { text-align: center; padding: 24px 20px calc(20px + var(--safe-b)); }
.done-icon { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%; background: var(--wa); color: #fff; font-size: 38px; display: grid; place-items: center; }
.done h2 { margin: 0 0 4px; font-size: 21px; font-weight: 800; }
.done p { margin: 4px 0; }
.done .btn-wa { margin-top: 16px; }

/* ---------- تنبيه ---------- */
.toast {
    position: fixed; z-index: 80; left: 50%; bottom: calc(110px + var(--foot-h) + var(--safe-b));
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    background: var(--text); color: #fff; padding: 10px 18px; border-radius: 12px;
    font-size: 14px; font-weight: 600; max-width: calc(100% - 32px); text-align: center;
    transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- سعر الباكيت في البطاقة ---------- */
.pack-line {
    display: block; width: 100%; margin-top: 4px; padding: 3px 8px; border-radius: 8px; text-align: start;
    background: var(--gold-soft); color: #6B4E0A; font-size: 12px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pack-line b { color: var(--p); }

/* ---------- نافذة المنتج في وسط الشاشة ---------- */
.sheet.center {
    inset-inline: auto; left: 50%; top: 50%; bottom: auto; margin: 0;
    width: min(92vw, 380px); max-height: 86vh; max-height: 86dvh;
    border-radius: 22px; box-shadow: 0 24px 60px rgba(20, 8, 45, .35);
    transform: translate(-50%, -50%) scale(.92); opacity: 0;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1), opacity .2s;
}
.sheet.center.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.sheet.center .sheet-body { padding: 14px 14px 10px; }
.sheet.center .sheet-foot { padding: 10px 14px 14px; }
.sheet.center .ps-img { aspect-ratio: auto; height: 170px; margin: 0 0 10px; border-radius: 14px; }
.sheet.center .ps-name { font-size: 17px; }
.sheet.center .ps-price { margin: 8px 0; }
.sheet.center .ps-price b { font-size: 20px; }
.sheet.center .btn-primary { height: 48px; font-size: 15px; }
.sheet.center .stepper.wide { height: 48px; }
.sheet.center .stepper.wide button { width: 42px; height: 48px; }
.sheet.center .stepper.wide span { min-width: 58px; }
.ps-close { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(255, 255, 255, .95); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }

/* اختيار مفرد / باكيت */
.ps-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.ps-opt {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start;
    padding: 9px 11px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
}
.ps-opt span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ps-opt b { font-size: 15.5px; font-weight: 800; color: var(--text); }
.ps-opt s { font-size: 11.5px; color: var(--muted); }
.ps-opt.on { border-color: var(--p2); background: var(--tint); box-shadow: 0 0 0 1px var(--p2) inset; }
.ps-opt.on span, .ps-opt.on b { color: var(--p); }
.ps-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.ps-total b { font-size: 18px; font-weight: 800; color: var(--p); }
.btn-primary.ps-add { justify-content: center; white-space: nowrap; }

/* ---------- النكهات ---------- */
.flavor-line {
    display: block; width: 100%; margin-top: 4px; padding: 3px 8px; border-radius: 8px; text-align: start;
    background: var(--tint); color: var(--p2); font-size: 12px; font-weight: 700;
}
.ps-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 10px 0 6px; }
.ps-flavors { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-fl {
    padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
    font-size: 13.5px; font-weight: 700; color: var(--text);
}
.ps-fl.on { border-color: var(--p2); background: var(--tint); color: var(--p); box-shadow: 0 0 0 1px var(--p2) inset; }
.ps-fl-q { color: var(--p3); font-weight: 800; }
.ps-fl.out { color: var(--muted); text-decoration: line-through; opacity: .7; }
.ps-fl.out small { text-decoration: none; display: inline-block; margin-inline-start: 2px; font-size: 11px; }
.ps-flavors.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(6px); } 50% { transform: translateX(-6px); } 75% { transform: translateX(3px); } }
.btn-primary.wait { background: var(--p2); opacity: .75; }
.line-fl { display: inline-block; font-size: 12px; font-weight: 700; color: var(--p2); background: var(--tint); border-radius: 6px; padding: 0 6px; }

/* اختيارات الزبون داخل نافذة المنتج (قبل الإضافة للسلة) */
.ps-opt-q { font-style: normal; color: var(--p3); font-weight: 800; }
.ps-fl.has:not(.on) { border-color: var(--p3); }
.ps-picks .ps-label { margin-top: 12px; }
.ps-pick {
    display: grid; grid-template-columns: 1fr auto auto 28px; gap: 8px; align-items: center;
    padding: 6px 10px; margin-bottom: 4px; border-radius: 10px; background: var(--tint); font-size: 13px;
}
.ps-pick b { color: var(--p); }
.ps-pick span:nth-child(3) { color: var(--muted); font-size: 12px; }
.ps-pick button { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--muted); font-size: 12px; }

/* أدوات سطر السلة: نكهة، مفرد/كارتون، حذف */
.line-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lt-btn, .lt-fl {
    border: 1px solid var(--line); background: var(--card); border-radius: 8px;
    padding: 3px 8px; font: inherit; font-size: 12px; font-weight: 700; color: var(--p2);
}
.lt-fl { max-width: 130px; }
.lt-del { color: var(--danger); }
