/* كله يوصل — تصميم v2 (المرحلة 1): الرئيسية الجديدة.
   بيتخدم من /assets/ (souq_assets) فمش محتاج collectstatic. الألوان من متغيرات souq.css. */

/* شريط التابات تحت على الموبايل = بتاع الـ PWA (pwa/_body.html ⇐ #ky-tabs) — مفيش شريط تاني هنا. */

/* ── الهيدر: المدينة ── */
.v2-city { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: #F7F5FB; color: var(--text);
           border-radius: 999px; padding: 7px 12px; font-size: 14px; font-weight: 600; }
.v2-city:hover { color: var(--p); border-color: var(--p); }
.v2-city svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v2-nav { display: flex; gap: 4px; }
.v2-nav a { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.v2-nav a:hover { background: var(--soft); color: var(--p); }
@media (max-width: 760px) { .v2-nav { display: none; } }

/* ── الرئيسية ── */
.v2 { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.v2-hero-wrap { background: #F3EFF9; }
.v2-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 44px 24px 52px; }
.v2-hero .kick { align-self: flex-start; background: #fff; border: 1px solid var(--line2); color: var(--p); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.v2-hero .kick .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.v2-hero h1 { font-family: var(--head); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.25; color: var(--text); margin: 14px 0 10px; }
.v2-hero p.sub { margin: 0 0 22px; font-size: 17px; line-height: 1.8; color: #4F4860; }
.v2-card { background: #fff; border-radius: 20px; box-shadow: 0 12px 40px rgba(40, 20, 80, .10); padding: 8px; }
.v2-seg { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 4px; background: #F3F0F7; border-radius: 14px; padding: 4px; }
.v2-seg button { border: 0; background: transparent; border-radius: 11px; padding: 11px 6px; font-size: 14px; font-weight: 700; color: #4F4860; }
.v2-seg button[aria-selected="true"] { background: #fff; color: var(--p); box-shadow: 0 2px 8px rgba(23, 15, 43, .08); }
.v2-pane { padding: 16px 10px 10px; display: flex; flex-direction: column; gap: 10px; }
.v2-field { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line2); border-radius: 12px; padding: 0 14px; height: 52px; background: #fff; }
.v2-field:focus-within { border-color: var(--p); }
.v2-field input { flex: 1; border: 0; outline: 0; background: none; font-size: 15px; min-width: 0; height: 100%; }
.v2-field svg { width: 20px; height: 20px; color: var(--p); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.v2-route { display: flex; gap: 12px; }
.v2-route .rail { display: flex; flex-direction: column; align-items: center; padding: 20px 0; }
.v2-route .rail i { display: block; }
.v2-route .rail .a { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--p); }
.v2-route .rail .l { flex: 1; width: 2px; background: #D5CCE4; margin: 4px 0; }
.v2-route .rail .b { width: 12px; height: 12px; background: var(--amber); border: 2px solid var(--amber-ink); }
.v2-route .cols { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.v2-go { height: 54px; border: 0; border-radius: 14px; background: var(--p); color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.v2-go:hover { background: var(--p2); color: #fff; }
.v2-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.v2-map { position: relative; min-height: 440px; border-radius: 28px; overflow: hidden; background: #E8EDF1; }
.v2-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.v2-map .pin { position: absolute; background: #fff; border-radius: 12px; padding: 7px 11px; box-shadow: 0 6px 18px rgba(23, 15, 43, .15); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.v2-map .pin img { width: 24px; height: 24px; }
.v2-map .bike { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: var(--amber-ink); border: 3px solid #fff; box-shadow: 0 6px 16px rgba(23, 15, 43, .3); display: flex; align-items: center; justify-content: center; color: var(--amber); }
.v2-map .bike svg { width: 22px; height: 22px; }
.v2-map .foot { position: absolute; bottom: 16px; right: 16px; left: 16px; background: #fff; border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 24px rgba(23, 15, 43, .14); }
.v2-map .foot b { display: block; font-size: 15px; }
.v2-map .foot span { font-size: 13px; color: var(--muted); }
.v2-map .foot .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--p); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.v2-map .foot .ic svg { width: 22px; height: 22px; }

.v2-sec { padding: 40px 0 8px; display: flex; flex-direction: column; gap: 18px; }
.v2-sec .hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.v2-sec h2 { font-family: var(--head); font-size: 26px; }
.v2-sec .hd a { font-size: 14px; font-weight: 600; }
.v2-sec .hd small { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.v2-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.v2-cat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 6px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-align: center; color: var(--text); transition: border-color .15s, transform .15s; }
.v2-cat:hover { border-color: var(--p); color: var(--text); transform: translateY(-1px); }
.v2-cat .im { width: 58px; height: 58px; border-radius: 16px; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.v2-cat .im img { width: 44px; height: 44px; object-fit: contain; }
.v2-cat .im svg { width: 28px; height: 28px; fill: none; stroke: var(--p); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.v2-cat b { font-size: 13px; font-weight: 600; line-height: 1.4; }
.v2-row { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.v2-row::-webkit-scrollbar { display: none; }
.v2-rest { flex: 0 0 240px; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: #fff; color: var(--text); }
.v2-rest:hover { border-color: var(--p); color: var(--text); }
.v2-rest .cv { height: 116px; position: relative; background-size: cover; background-position: center; }
.v2-rest .lg { position: absolute; bottom: -22px; right: 14px; width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 700; font-size: 20px; }
.v2-rest .lg img { width: 100%; height: 100%; object-fit: cover; }
.v2-rest .st { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #fff; }
.v2-rest .st.on { color: var(--ok); } .v2-rest .st.off { color: var(--amber-text); }
.v2-rest .bd { padding: 30px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.v2-rest .bd b { font-size: 16px; }
.v2-rest .bd span { font-size: 13px; color: var(--muted); }
.v2-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; padding-top: 32px; }
.v2-list { background: var(--amber-ink); color: #fff; border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.v2-list .k { color: var(--amber); font-size: 13px; font-weight: 700; }
.v2-list h2 { font-family: var(--head); font-size: 24px; color: #fff; }
.v2-list label { font-size: 14px; color: #CFC6E0; }
.v2-list textarea { border: 0; border-radius: 14px; padding: 14px; font-size: 15px; resize: vertical; color: var(--text); min-height: 110px; }
.v2-list button { align-self: flex-start; border: 0; background: var(--amber); color: var(--amber-ink); font-weight: 700; padding: 13px 22px; border-radius: 12px; font-size: 15px; }
.v2-side { display: flex; flex-direction: column; gap: 16px; }
.v2-ban { flex: 1; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.v2-ban:hover { color: var(--text); filter: brightness(.98); }
.v2-ban b { font-size: 19px; font-family: var(--head); }
.v2-ban span { font-size: 14px; line-height: 1.7; }
.v2-ban em { margin-top: auto; font-style: normal; font-weight: 700; font-size: 14px; }
.v2-ban.amber { background: #FFF4D6; } .v2-ban.amber span { color: #5A4A1C; } .v2-ban.amber em { color: var(--amber-text); }
.v2-ban.lilac { background: #EDE6F8; } .v2-ban.lilac span { color: #4A3A66; } .v2-ban.lilac em { color: var(--p); }
.v2-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.v2-step { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.v2-step .n { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--p); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.v2-step b { display: block; font-size: 16px; margin-bottom: 4px; }
.v2-step span { font-size: 14px; color: var(--muted); line-height: 1.7; }
.v2-foot { background: var(--amber-ink); color: #CFC6E0; margin-top: 48px; }
.v2-foot .in { max-width: 1200px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; justify-content: space-between; }
.v2-foot b { color: #fff; font-size: 18px; }
.v2-foot nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.v2-foot a { color: #CFC6E0; } .v2-foot a:hover { color: #fff; }

@media (max-width: 760px) {
    .v2 { padding: 0 16px; }
    .v2-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px 16px 26px; }
    .v2-map { min-height: 210px; order: -1; border-radius: 22px; }
    .v2-map .pin, .v2-map .bike { display: none; }
    .v2-sec { padding-top: 28px; }
    .v2-sec h2 { font-size: 21px; }
    .v2-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .v2-cat { padding: 10px 4px; border-radius: 14px; gap: 6px; }
    .v2-cat .im { width: 48px; height: 48px; border-radius: 14px; }
    .v2-cat .im img { width: 36px; height: 36px; }
    .v2-cat b { font-size: 11.5px; }
    .v2-row { margin: 0 -16px; padding: 0 16px 4px; }
    .v2-rest { flex-basis: 220px; }
    .v2-split { grid-template-columns: minmax(0, 1fr); }
    .v2-steps { grid-template-columns: minmax(0, 1fr); }
    .v2-foot { margin-top: 32px; }
}
.k-cleaning { --h: 195; }

/* ══ المرحلة 2: صفحات الطلب (مشوار / توصيلة / تتبّع / إتمام الطلب) ══
   هيدر بسيط (رجوع + العنوان) ⇐ ورقة الفورم جنب «خريطة»؛ على الموبايل الخريطة فوق والورقة طالعة عليها. */
.v2f { background: #fff; }
.v2f-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; height: 64px; padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px));
    display: flex; align-items: center; gap: 14px; background: #fff; border-bottom: 1px solid var(--line); }
.v2f-top b { font-size: 18px; }
.v2f-top .end { margin-inline-start: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.v2f-back { width: 40px; height: 40px; border-radius: 12px; background: #F4F1F8; display: flex; align-items: center; justify-content: center; color: var(--text); flex-shrink: 0; }
.v2f-back:hover { background: var(--soft2); color: var(--p); }
.v2f-back svg, .v2f-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v2f-live { background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.v2f-live i { width: 7px; height: 7px; border-radius: 50%; background: #12A066; }
.v2f-live.off { background: #F1EEF5; color: var(--muted); } .v2f-live.off i { background: #A79FB4; }
.v2f-shell { display: flex; align-items: stretch; min-height: calc(100vh - 64px); }
.v2f-sheet { flex: 0 0 auto; width: 100%; max-width: 480px; padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 18px; background: #fff;
    border-left: 1px solid var(--line); position: relative; z-index: 2; min-width: 0; }
.v2f-sheet h1 { margin: 0; font-family: var(--head); font-size: 26px; line-height: 1.35; text-wrap: balance; }
.v2f-map { flex: 1 1 auto; position: relative; background: #E8EDF1; overflow: hidden; min-height: 520px; }
.v2f-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.v2f-chip { position: absolute; top: 24px; right: 24px; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(23, 15, 43, .14);
    font-size: 13px; display: flex; flex-direction: column; gap: 2px; max-width: calc(100% - 48px); }
.v2f-chip b { font-size: 14px; } .v2f-chip span { color: var(--muted); }
.v2f-dots { display: flex; gap: 6px; } .v2f-dots i { flex: 1; height: 5px; border-radius: 3px; background: #E6E0EF; transition: background .2s; } .v2f-dots i.on { background: var(--p); }
.v2f-count { font-size: 13px; color: var(--muted); margin-top: -10px; }
.v2f-lb { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.v2f-lb small { font-weight: 400; color: var(--muted); font-size: 13px; }
.v2f-in { height: 52px; border: 1.5px solid var(--line2); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 15px; font-weight: 400; color: var(--text); background: #fff; width: 100%; min-width: 0; }
textarea.v2f-in { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.7; }
.v2f-in:focus { outline: 0; border-color: var(--p); box-shadow: 0 0 0 3px rgba(59, 30, 104, .1); }
.v2f-in[type=tel] { direction: ltr; text-align: right; }
.v2f-route { display: flex; gap: 12px; }
.v2f-route .rail { display: flex; flex-direction: column; align-items: center; padding: 34px 0 20px; }
.v2f-route .rail i { display: block; }
.v2f-route .a { width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--p); }
.v2f-route .l { flex: 1; width: 2px; background: #D5CCE4; margin: 4px 0; }
.v2f-route .b { width: 14px; height: 14px; background: #FFB800; border: 2px solid #170F2B; }
.v2f-route .cols { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.v2f-route.soft { background: #F7F5FB; border-radius: 18px; padding: 12px; } .v2f-route.soft .v2f-in { border-color: transparent; }
.v2f-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; border: 0; background: #F4F1F8; color: var(--p); border-radius: 999px;
    padding: 10px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.v2f-pill:hover { background: var(--soft2); } .v2f-pill[disabled] { opacity: .65; cursor: default; }
.v2f-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.v2f-locmsg { font-size: 13px; color: var(--muted); margin-top: -8px; } .v2f-locmsg.ok { color: var(--ok); font-weight: 600; }
.v2f-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.v2f-chips button { border: 1.5px solid var(--line2); background: #fff; border-radius: 12px; padding: 12px 6px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text); }
.v2f-chips button:hover, .v2f-chips button.on { border-color: var(--p); color: var(--p); background: #F3EEFB; }
.v2f-drop { border: 1.5px dashed #D5CCE4; border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.v2f-drop:hover { border-color: var(--p); }
.v2f-drop .ic { width: 44px; height: 44px; border-radius: 12px; background: #F4F1F8; color: var(--p); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.v2f-drop .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v2f-drop span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .v2f-drop b { font-size: 14px; } .v2f-drop small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.v2f-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: #F4F1F8; padding: 4px; border-radius: 14px; }
.v2f-seg label { position: relative; text-align: center; border-radius: 11px; padding: 11px; font-size: 14px; font-weight: 700; color: #4F4860; cursor: pointer; }
.v2f-seg input { position: absolute; opacity: 0; pointer-events: none; }
.v2f-seg label:has(input:checked) { background: #fff; color: var(--p); box-shadow: 0 2px 8px rgba(23, 15, 43, .08); }
.v2f-seg label:has(input:focus-visible) { outline: 2px solid var(--p); outline-offset: 1px; }
.v2f-sub { background: #FAF8FD; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.v2f-sub .v2f-in { background: #fff; }
.v2f-note { font-size: 13px; color: var(--muted); line-height: 1.7; }
.v2f-veh { display: flex; flex-direction: column; gap: 10px; }
.v2f-veh label { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line2); background: #fff; border-radius: 18px; padding: 14px; cursor: pointer; position: relative; }
.v2f-veh input { position: absolute; opacity: 0; pointer-events: none; }
.v2f-veh .im { width: 56px; height: 56px; border-radius: 16px; background: #F4F1F8; display: flex; align-items: center; justify-content: center; color: #4F4860; flex-shrink: 0; }
.v2f-veh .im svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v2f-veh .tx { flex: 1; display: flex; flex-direction: column; gap: 2px; } .v2f-veh .tx b { font-size: 16px; } .v2f-veh .tx small { font-size: 13px; color: #4F4860; }
.v2f-veh .ck { width: 22px; height: 22px; color: var(--p); visibility: hidden; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.v2f-veh label:has(input:checked) { border: 2px solid var(--p); background: #F3EEFB; padding: 13.5px; }
.v2f-veh label:has(input:checked) .im { background: #fff; color: var(--p); } .v2f-veh label:has(input:checked) .ck { visibility: visible; }
.v2f-veh label:has(input:focus-visible) { outline: 2px solid var(--p); outline-offset: 2px; }
.v2f-step-n { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.v2f-step-n .t { display: flex; flex-direction: column; } .v2f-step-n .t b { font-size: 15px; } .v2f-step-n .t small { font-size: 12px; color: var(--muted); }
.v2f-step-n .c { display: flex; align-items: center; gap: 6px; }
.v2f-step-n button { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line2); background: #fff; font-size: 20px; cursor: pointer; color: var(--text); }
.v2f-step-n button.plus { border: 0; background: var(--p); color: #fff; } .v2f-step-n button:disabled { opacity: .4; cursor: default; }
.v2f-step-n output { min-width: 28px; text-align: center; font-size: 18px; font-weight: 700; }
.v2f-check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; } .v2f-check input { width: 20px; height: 20px; accent-color: var(--p); }
.v2f-review { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.7; }
.v2f-review > div { display: flex; gap: 10px; } .v2f-review > div > span { min-width: 0; overflow-wrap: anywhere; }
.v2f-review .a, .v2f-review .b { width: 10px; height: 10px; margin-top: 7px; flex: 0 0 auto; }
.v2f-review .a { border-radius: 50%; border: 3px solid var(--p); } .v2f-review .b { background: #FFB800; }
.v2f-review .m { width: 10px; flex: 0 0 auto; } .v2f-review .mute { color: #4F4860; }
.v2f-price { border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.7; background: #FFF4D6; color: #5A4A1C; }
.v2f-price svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: #8A5A00; stroke-width: 2; stroke-linecap: round; }
.v2f-price.ok { background: #F3EEFB; color: var(--text); } .v2f-price.ok svg { stroke: var(--p); }
.v2f-price b.big { display: block; font-size: 22px; color: var(--p); font-variant-numeric: tabular-nums; }
.v2f-nav { display: flex; gap: 10px; margin-top: 4px; }
.v2f-nav button { height: 54px; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.v2f-nav .back { padding: 0 20px; border: 1.5px solid var(--line2); background: #fff; color: var(--text); }
.v2f-nav .go { flex: 1; border: 0; background: var(--p); color: #fff; } .v2f-nav .go:hover { background: var(--p2); } .v2f-nav .go:disabled { background: #B6A9C9; cursor: default; }
.v2f-err { background: var(--danger-soft); color: var(--danger); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.v2f-sheet .notice, .v2f-sheet .kw-note { margin: 0; }
.wz-step { display: none; flex-direction: column; gap: 16px; } .wz-step.on { display: flex; }
/* «خريطة» تزيين: نقطة + مناديب */
.v2f-me { position: absolute; top: 46%; left: 42%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: var(--p); border: 4px solid #fff; box-shadow: 0 4px 12px rgba(23, 15, 43, .3); }
.v2f-me::before { content: ""; position: absolute; inset: -52px; border-radius: 50%; background: rgba(74, 35, 132, .12); }
.v2f-bike { position: absolute; width: 38px; height: 38px; border-radius: 50%; background: #170F2B; color: #FFB800; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(23, 15, 43, .3); }
.v2f-bike svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 760px) {
    .v2f-top { padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
    .v2f-shell { flex-direction: column; min-height: 0; }
    .v2f-map { min-height: 200px; height: 200px; flex: 0 0 auto; order: -1; }
    .v2f-map.tall { min-height: 300px; height: 300px; }
    .v2f-chip { top: 14px; right: 14px; padding: 8px 12px; }
    .v2f-sheet { max-width: none; border: 0; border-radius: 26px 26px 0 0; margin-top: -26px; box-shadow: 0 -8px 24px rgba(23, 15, 43, .08);
        padding: 22px max(16px, env(safe-area-inset-right, 0px)) 110px max(16px, env(safe-area-inset-left, 0px)); }
    .v2f-sheet h1 { font-size: 23px; }
    .v2f-nav { position: fixed; bottom: 0; right: 0; left: 0; z-index: 30; margin: 0; background: #fff; border-top: 1px solid var(--line);
        padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
    body.ky-tabs-on .v2f-nav { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); padding-bottom: 12px; }
    body.ky-tabs-on.ky-live-on .v2f-nav { bottom: calc(138px + env(safe-area-inset-bottom, 0px)); }
}

/* ── إتمام الطلب (V2Checkout) ── */
.co2 { gap: 18px; }
.co2-top { display: flex; align-items: center; gap: 14px; }
.co2-top b { font-family: var(--head); font-size: 22px; }
.co2-top .end { margin-inline-start: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.co2-top .v2f-back { border: 0; cursor: pointer; }
.co2-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.co2-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.co2-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.co2-h { font-family: var(--head); font-size: 17px; }
.co2-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.co2 #when:has(#whenLater[hidden]) { display: none; }
.co2-pay { display: flex; flex-direction: column; gap: 10px; }
.co2-pay label { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line2); border-radius: 14px; padding: 14px; font-size: 15px; font-weight: 600; cursor: pointer; }
.co2-pay input { width: 20px; height: 20px; accent-color: var(--p); flex-shrink: 0; }
.co2-pay label:has(input:checked) { border: 2px solid var(--p); background: #F3EEFB; padding: 13.5px; }
.co2-pay label:has(input:disabled) { opacity: .5; cursor: default; }
.co2-sum { flex: 1 1 320px; max-width: 400px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px;
    display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.co2-rows { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.co2-rows .total { font-size: 18px; padding-top: 6px; }
.co2 .kz, .co2 .kyz-f { min-height: 52px; }
.co2-mbar { display: none; }
@media (max-width: 760px) {
    .co2-two { grid-template-columns: minmax(0, 1fr); }
    .co2-card { padding: 16px; border-radius: 18px; }
    .co2-sum { position: static; max-width: none; }
    .co2-sum #place { display: none; }
    .co2-mbar { display: flex; position: fixed; bottom: 0; right: 0; left: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); align-items: center; gap: 12px;
        padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
    .co2-mbar .t { display: flex; flex-direction: column; } .co2-mbar small { font-size: 12px; color: var(--muted); } .co2-mbar b { font-size: 19px; font-variant-numeric: tabular-nums; }
    .co2-mbar .btn { flex: 1; }
    body.ky-tabs-on .co2-mbar { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); padding-bottom: 12px; }
    body.ky-tabs-on.ky-live-on .co2-mbar { bottom: calc(138px + env(safe-area-inset-bottom, 0px)); }
    .co2 { padding-bottom: 90px; }
}
@media (max-width: 760px) {
    body:has(.co2:not([hidden])) .kw-wa { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
    body.ky-tabs-on:has(.co2:not([hidden])) .kw-wa { bottom: calc(158px + env(safe-area-inset-bottom, 0px)); }
}

/* ══ المرحلة 3: السوق (V2Market) ══ */
.sq-head .v2-nav { margin-inline-start: auto; }
.sq-head .v2-nav + .hacts { margin-inline-start: 0; }
.v2m-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.v2m-head .t { display: flex; flex-direction: column; gap: 6px; }
.v2m-head h1 { margin: 0; font-family: var(--head); font-size: 34px; line-height: 1.3; }
.v2m-head .st { font-size: 14px; color: #4F4860; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.v2m-head .st .dot { width: 8px; height: 8px; border-radius: 50%; background: #12A066; }
.v2m-head .st.closed .dot, .v2m-head .closed .dot { background: var(--amber-text, #A86A00); }
.v2m-head .st b { font-weight: 400; }
.v2m-list { display: inline-flex; align-items: center; gap: 8px; border: 0; background: #170F2B; color: #fff; border-radius: 12px; padding: 11px 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.v2m-list:hover { background: #2A1F45; }
.v2m-list svg { width: 18px; height: 18px; fill: none; stroke: #FFB800; stroke-width: 2; stroke-linecap: round; }

.v2m .homegrid { display: block; }
.v2m .cats2 .h2, .v2m .catsec .h2, .v2m #restoSec > .secthead .h2 { font-size: 21px; }
.v2m .ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.v2m .ctile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 6px 12px; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text); }
.v2m .ctile:hover { border-color: var(--p); color: var(--text); }
.v2m .ctile.on { border: 1.5px solid #3B1E68; box-shadow: 0 4px 14px rgba(59, 30, 104, .12); font-weight: 700; }
.v2m .ctile .ci, .v2m .ctile.special .ci { width: 52px; height: 52px; border-radius: 14px; border: 0; background: #EEE7F9; transform: none; }
.v2m .ctile .ci .cimg { width: 40px; height: 40px; object-fit: contain; }
.v2m .k-greengrocer .ci, .v2m .pcard.k-greengrocer .im { background: #E6F4EC; }
.v2m .k-supermarket .ci, .v2m .pcard.k-supermarket .im { background: #F1ECE2; }
.v2m .k-butcher .ci, .v2m .pcard.k-butcher .im { background: #FDE9E7; }
.v2m .k-bakery .ci, .v2m .pcard.k-bakery .im { background: #FFF4D6; }
.v2m .k-shop .ci, .v2m .pcard.k-shop .im { background: #FDE7EA; }
.v2m .k-restaurant .ci, .v2m .pcard.k-restaurant .im { background: #FFF1E6; }
.v2m .k-pharmacy .ci, .v2m .pcard.k-pharmacy .im { background: #E5F1FA; }
.v2m .k-laundry .ci, .v2m .pcard.k-laundry .im { background: #E6F4F1; }

.v2m .catsec .secthead .linkbtn, .v2m #restoSec .linkbtn { font-size: 14px; font-weight: 600; color: var(--p); }
.v2m #pSecs .prow, .v2m .catsec .grid { display: grid; grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; overflow: visible; margin: 0; padding: 0; }
.v2m .pcard { border-radius: 18px; padding: 10px; gap: 6px; }
.v2m .pcard .im { aspect-ratio: 1 / 1; border-radius: 14px; margin: 0; }
.v2m .pcard .im.tint { font-size: 40px; }
.v2m .pcard .nm { font-size: 14px; font-weight: 700; line-height: 1.5; min-height: 42px; }
.v2m .pcard .pr .p { font-size: 16px; font-weight: 700; color: #4A2384; }
.v2m .pcard .add { width: 38px; height: 38px; border-radius: 12px; border: 0; background: #4A2384; color: #fff; font-size: 22px; line-height: 1; }
.v2m .pcard .step { display: flex; align-items: center; gap: 2px; background: #F3EEFB; border-radius: 12px; padding: 2px; border: 0; height: auto; }
.v2m .pcard .step button { width: 32px; height: 32px; border: 0; border-radius: 10px; font-size: 18px; }
.v2m .pcard .step button[data-q="1"] { background: #4A2384; color: #fff; }
.v2m .pcard .step button[data-q="-1"] { background: #fff; color: #4A2384; }
.v2m .pcard .step b { min-width: 22px; text-align: center; font-size: 14px; }

.v2m-miss { background: #FFF4D6; border-radius: 20px; padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; color: var(--text); }
.v2m-miss:hover { color: var(--text); filter: brightness(.98); }
.v2m-miss > span { display: flex; flex-direction: column; gap: 4px; }
.v2m-miss b { font-size: 17px; } .v2m-miss > span > span { font-size: 14px; color: #5A4A1C; }
.v2m-miss em { font-style: normal; background: #170F2B; color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 12px; font-size: 14px; }

/* شريط السلة العايم: تحت على الشمال في الديسكتوب، وفوق شريط التابات في الموبايل */
.cartbar { justify-content: flex-end; padding: 0 24px; bottom: 24px; }
.cartbar button { max-width: 340px; height: auto; padding: 14px 18px; border-radius: 16px; background: #4A2384; box-shadow: 0 12px 30px rgba(74, 35, 132, .35); gap: 12px; }
.cartbar .badge { min-width: 28px; height: 28px; border-radius: 8px; background: #FFB800; color: #170F2B; }
.cartbar .t small { display: none; }
.cartbar .sum { font-size: 16px; }

@media (max-width: 760px) {
    .v2m-head h1 { font-size: 26px; }
    .v2m .ctiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .v2m .ctile { padding: 10px 4px; font-size: 11.5px; }
    .v2m .ctile .ci { width: 46px; height: 46px; }
    .v2m .ctile .ci .cimg { width: 34px; height: 34px; }
    .v2m #pSecs .prow, .v2m .catsec .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cartbar { padding: 0 12px; justify-content: center; }
    .cartbar button { max-width: none; }
    .sq-head .v2-city { padding: 6px 10px; font-size: 13px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
    .v2m #pSecs .prow, .v2m .catsec .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ══ المرحلة 3: صفحة المحل (V2Store) ══ */
.v2s { gap: 0 !important; }
.v2s-cover { height: 220px; border-radius: 24px; background: oklch(0.93 0.05 var(--h, 280)); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.v2s-cover:not(.img)::before, .v2s-cover:not(.img)::after { content: ""; position: absolute; border-radius: 50%; background: oklch(0.89 0.07 var(--h, 280)); }
.v2s-cover:not(.img)::before { width: 280px; height: 280px; top: -100px; right: 40px; }
.v2s-cover:not(.img)::after { width: 240px; height: 240px; bottom: -130px; left: 100px; }
.v2s-info { margin-top: -48px; position: relative; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; padding: 0 20px; }
.v2s-info .lg { width: 96px; height: 96px; border-radius: 24px; background: #fff; border: 4px solid #fff; box-shadow: 0 8px 24px rgba(23, 15, 43, .12); display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 700; color: oklch(0.5 0.14 var(--h, 280)); object-fit: cover; flex-shrink: 0; }
.v2s-info .t { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; min-width: 0; }
.v2s-info .crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.v2s-info .crumbs a { color: var(--muted); }
.v2s-info h1 { margin: 0; font-family: var(--head); font-size: 30px; line-height: 1.3; }
.v2s-info .pills { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.v2s-info .pills span { background: #F4F1F8; padding: 5px 10px; border-radius: 999px; }
.v2s-info .pills .ok { background: #E7F5EE; color: #0E6B45; font-weight: 700; }
.v2s-info .pills .no { background: #FFF4D6; color: #7A5200; font-weight: 700; }
.v2s-about { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.v2s-about .desc { margin: 0; color: #4F4860; font-size: 14px; line-height: 1.8; }
.v2s > .notice, .v2s > .from-box, .v2s > .cta-list, .v2s > .rxq { margin-top: 14px; }
.v2s-cats { position: sticky; top: var(--hh, 68px); z-index: 4; background: #fff; border-bottom: 1px solid var(--line); margin: 20px -20px 0; padding: 0 20px; }
.v2s-cats .chips { padding: 12px 0; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.v2s-cats .chips:empty, .v2s-cats .chips[hidden] { display: none; }
.v2s-cats:has(.chips[hidden]) { border-bottom: 0; }
.v2s-cats .chip { flex: 0 0 auto; border: 0; padding: 9px 16px; border-radius: 999px; background: #F4F1F8; color: var(--text); font-size: 14px; font-weight: 600; }
.v2s-cats .chip.on { background: #170F2B; color: #fff; }
.v2s-body { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 20px; }
.v2s-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.v2s .catsec h2 { margin: 0 0 12px; font-size: 21px; font-family: var(--head); scroll-margin-top: 140px; }
.v2s .catsec { scroll-margin-top: 140px; }
/* كارت الصنف: الاسم والوصف والسعر على اليمين، والصورة وزرار «ضيف» على الشمال */
.v2s #storeItems .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v2s #storeItems .pcard { display: grid; grid-template-columns: minmax(0, 1fr) 104px; grid-template-rows: auto 1fr auto; column-gap: 14px; row-gap: 6px; padding: 14px; border-radius: 18px; align-items: start; }
.v2s #storeItems .pcard .im { grid-column: 2; grid-row: 1 / 3; height: 88px; aspect-ratio: auto; border-radius: 14px; margin: 0; background: oklch(0.95 0.035 var(--h, 280)); font-size: 30px; }
.v2s #storeItems .pcard .st, .v2s #storeItems .pcard .pics { display: none; }
.v2s #storeItems .pcard .off { top: 20px; left: 20px; right: auto; }
.v2s #storeItems .pcard .nm { grid-column: 1; grid-row: 1; font-size: 16px; font-weight: 700; min-height: 0; }
.v2s #storeItems .pcard .un { grid-column: 1; grid-row: 2; font-size: 13px; line-height: 1.6; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.v2s #storeItems .pcard .pr { display: contents; }
.v2s #storeItems .pcard .pr .p { grid-column: 1; grid-row: 3; align-self: end; font-size: 16px; font-weight: 700; color: #4A2384; }
.v2s #storeItems .pcard .ctl { grid-column: 2; grid-row: 3; display: block; }
.v2s #storeItems .pcard .upd { grid-column: 1 / -1; }
.v2s #storeItems .pcard .add { width: 100%; height: 38px; border-radius: 12px; border: 1.5px solid #4A2384; background: #fff; color: #4A2384; font-size: 14px; font-weight: 700; }
.v2s #storeItems .pcard .add::after { content: "\00a0ضيف"; }
.v2s #storeItems .pcard .step { width: 100%; height: 38px; border-radius: 12px; background: #4A2384; color: #fff; border: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.v2s #storeItems .pcard .step button { width: 32px; height: 32px; border: 0; background: transparent; color: #fff; font-size: 20px; }
.v2s #storeItems .pcard .step b { font-size: 15px; color: #fff; }
.v2s #storeItems .pcard.asking .ask { grid-column: 1; grid-row: 3; align-self: end; justify-self: start; font-size: 13px; font-weight: 700; color: #0E6B45; background: #E7F5EE; padding: 6px 10px; border-radius: 999px; }
.v2s-miss { border: 1.5px dashed #D5CCE4; border-radius: 18px; padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: var(--text); font-size: 14px; }
.v2s-miss:hover { border-color: var(--p); color: var(--text); }
.v2s-miss span span { color: var(--muted); }
.v2s-miss em { font-style: normal; font-weight: 700; color: #4A2384; }
.v2s-cart.mcart { display: none; }
@media (min-width: 761px) {
    .v2s-cart.mcart { display: flex; flex: 1 1 320px; max-width: 360px; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--hh, 68px) + 76px); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
    .v2s-cart .mh { display: flex; align-items: baseline; justify-content: space-between; } .v2s-cart .mh b { font-size: 18px; } .v2s-cart .mh span { font-size: 12px; color: var(--muted); }
    .v2s-cart .mempty { font-size: 14px; color: var(--muted); line-height: 1.7; padding: 16px 0; text-align: center; }
    .v2s-cart .mlines:empty { display: none; }
    .v2s-cart .mlines .ln { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line3); }
    .v2s-cart .mlines .ln .t { display: flex; flex-direction: column; min-width: 0; } .v2s-cart .mlines .ln .t b { font-size: 14px; } .v2s-cart .mlines .ln .t small { font-size: 12px; color: var(--muted); }
    .v2s-cart .btn { height: 52px; border-radius: 14px; background: #4A2384; }
    .v2s-more { text-align: center; font-size: 13px; font-weight: 600; color: #4A2384; }
    body:has(.v2s) .cartbar { display: none; }
}
@media (max-width: 760px) {
    .v2s-cover { height: 150px; border-radius: 0; margin: -16px -16px 0; }
    .v2s-info { margin-top: -40px; padding: 0 4px; }
    .v2s-info .lg { width: 80px; height: 80px; border-radius: 20px; font-size: 32px; }
    .v2s-info h1 { font-size: 24px; }
    .v2s-about { padding: 12px 4px 0; }
    .v2s-cats { margin: 16px -16px 0; padding: 0 16px; }
    .v2s #storeItems .grid { grid-template-columns: minmax(0, 1fr); }
}

/* ══ المرحلة 4: صفحات بفورم واحد (طلب خاص، مندوب لمحلك، الصيدلية، المكوجي) ══ */
.v2p-body { background: #FAF9FC; }
.v2p { max-width: 680px; margin: 0 auto; padding: 24px 24px 60px; display: flex; flex-direction: column; gap: 18px; }
.v2p-h { display: flex; flex-direction: column; gap: 6px; }
.v2p-h h1 { margin: 0; font-family: var(--head); font-size: 30px; line-height: 1.3; }
.v2p-h p { margin: 0; font-size: 15px; line-height: 1.8; color: #4F4860; }
.v2p-form { display: flex; flex-direction: column; gap: 16px; }
.v2p-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.v2p-cardh { font-size: 16px; font-weight: 700; }
.v2p-sub { font-size: 13px; color: var(--muted); font-weight: 600; }
.v2p-ta { height: auto; min-height: 130px; padding: 12px 14px; line-height: 1.8; resize: vertical; }
.v2p-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.v2p-opts { display: flex; flex-direction: column; gap: 8px; }
.v2p-opts label { position: relative; display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line2); background: #fff; border-radius: 14px; padding: 14px; font-size: 15px; font-weight: 600; cursor: pointer; }
.v2p-opts label[hidden] { display: none; }
.v2p-opts input { width: 20px; height: 20px; accent-color: var(--p); margin: 0; flex-shrink: 0; }
.v2p-opts label:has(input:checked) { border-color: var(--p); background: #F7F3FC; color: var(--p); }
.v2p-loc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2p-loc .v2f-note { flex: 1 1 200px; }
.v2p-more summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.v2p-more .v2f-in { margin-top: 8px; width: 100%; }
.v2p-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.v2p-steps > div { background: #F4F1F8; border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.v2p-steps span { width: 26px; height: 26px; border-radius: 50%; background: var(--p); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.v2p-submit .v2-go[disabled] { opacity: .6; }
.v2p .notice, .v2p .where, .v2p .err { margin: 0; }
@media (max-width: 760px) {
    .v2p { padding: 18px 16px 40px; }
    .v2p-h h1 { font-size: 24px; }
    .v2p-two { grid-template-columns: minmax(0, 1fr); }
    .v2p-steps { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .v2p-steps > div { padding: 10px 12px; }
    .v2p-submit { position: sticky; bottom: 0; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); z-index: 10; }
}

/* ══ اختيار المدينة ══ */
.v2cc-hero { background: #F3EFF9; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.v2cc-hero .k { align-self: flex-start; background: #fff; border: 1px solid var(--line2); color: var(--p); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.v2cc-hero h1 { margin: 0; font-family: var(--head); font-size: 34px; line-height: 1.3; }
.v2cc-hero p { margin: 0; font-size: 16px; line-height: 1.8; color: #4F4860; }
.v2cc-near { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.v2cc-near .v2f-pill { background: #fff; }
.v2cc { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.v2cc-city { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; color: var(--text); transition: border-color .15s, transform .15s; }
.v2cc-city:hover { border-color: var(--p); color: var(--text); transform: translateY(-1px); }
.v2cc-city .ic { width: 52px; height: 52px; border-radius: 16px; background: #EEE7F9; color: var(--p); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.v2cc-city .ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v2cc-city .t { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; } .v2cc-city .t b { font-size: 18px; font-family: var(--head); } .v2cc-city .t span { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.v2cc-city em { font-style: normal; font-weight: 700; color: var(--p); font-size: 18px; }
@media (max-width: 760px) { .v2cc-hero { padding: 20px; } .v2cc-hero h1 { font-size: 26px; } .v2cc { grid-template-columns: minmax(0, 1fr); } }

/* توصيل مجاني على حساب المحل */
.tag.fd { background: #E7F5EE; color: #0E6B45; margin-inline-start: 4px; }
#cFd { color: #0E6B45; }

/* ── أكل بيتي: صفحة المطبخ (كروت أكلات كبيرة بالصور + اختيار اليوم) ── */
.v2s-cover.k-homecook:not(.img) { background: linear-gradient(135deg, #FFD9A0, #E8873A); }
.cook-trust { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cook-trust span { background: #FFF4E5; color: #8A4B08; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.cook-days { margin: 16px 20px 0; padding: 14px 16px; background: #FFF8EE; border: 1px solid #F6DDB8; border-radius: 18px; display: flex; flex-direction: column; gap: 4px; }
.cook-days > b { font-size: 17px; }
.cook-days .fine { font-size: 12.5px; color: var(--muted); }
.cd-row { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.cd-row::-webkit-scrollbar { display: none; }
.cd { flex: 0 0 auto; min-width: 84px; border: 1.5px solid #F0D2A8; background: #fff; border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font: inherit; color: var(--text); }
.cd b { font-size: 15px; }
.cd span { font-size: 12px; color: var(--muted); }
.cd.on { background: var(--p); border-color: var(--p); color: #fff; }
.cd.on span { color: rgba(255, 255, 255, .8); }
.dh { font-size: 22px; margin: 4px 0 12px; }
.dh small { font-size: 14px; color: var(--muted); font-weight: 600; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.dcard { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 22px rgba(60, 30, 10, .06); transition: transform .15s, box-shadow .15s; }
.dcard:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(60, 30, 10, .12); }
.dim { position: relative; aspect-ratio: 4 / 3; background: #FFF1DC; cursor: pointer; overflow: hidden; }
/* الصورة مطلقة جوه الإطار ⇐ كل الكروت نفس الارتفاع مهما كان مقاس الصورة الأصلية (قواعد img العامة كانت بتمطّها) */
.dcard .dim img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.dph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 52px;
       background: linear-gradient(135deg, #FFE7C2, #F7B267); }
.dph b { font-size: 15px; color: #8A4B08; padding: 0 12px; text-align: center; }
.dprice { position: absolute; bottom: 12px; left: 12px; background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 17px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.dprice small { font-size: 12px; }
.dprice .was { margin-inline-start: 6px; font-size: 12px; color: var(--muted); text-decoration: line-through; }
.dleft { position: absolute; top: 12px; right: 12px; background: #B4470A; color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; }
.dbd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dbd h3 { margin: 0; font-size: 18px; line-height: 1.5; }
.dbd p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dctl { margin-top: auto; padding-top: 8px; }
.dadd { width: 100%; height: 48px; border: 0; border-radius: 14px; background: var(--p); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.dadd:hover { filter: brightness(1.08); }
.dstep { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--soft); border-radius: 14px; padding: 5px; }
.dstep button { width: 40px; height: 40px; border: 0; border-radius: 11px; background: #fff; color: var(--p); font-size: 22px; font-weight: 800; cursor: pointer; }
.dstep b { color: var(--p); font-size: 15px; }
.dno { display: block; text-align: center; font-size: 13.5px; font-weight: 700; color: #B4470A; padding: 10px; background: #FFF4E5; border-radius: 12px; }
@media (max-width: 560px) { .dgrid { grid-template-columns: 1fr; } .cook-days { margin: 12px 14px 0; } }
/* شريط الأيام: ظل على الطرف علشان يبان إنه بيتسحب، و«التوصيل من» */
.cd-wrap { position: relative; }
.cd-wrap::after { content: ""; position: absolute; top: 8px; bottom: 2px; left: 0; width: 36px; pointer-events: none;
                  background: linear-gradient(to left, rgba(255, 248, 238, 0), #FFF8EE); }
.cd-del { font-size: 13px; font-weight: 700; color: #8A4B08; margin-top: 4px; }
/* «احجز دلوقتي» + «ضيف أكلة تانية» */
.dctl { display: flex; flex-direction: column; gap: 8px; }
.dmore { width: 100%; height: 40px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--p);
         font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dmore:hover { background: var(--soft); }
