@font-face { font-family: 'PixelAE'; src: url('https://nanapixels.com/wp-content/uploads/fonts/PixelAE-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
/* Banana Pixels: صفحة الطلب السريع. معزولة عن تنسيقات القالب. v2.1 */

:root {
	--of-banana: #F5D74E;
	--of-ink: #0B0B0B;
	--of-paper: #FFFDF5;
	--of-peel: #FFF4CC;
	--of-line: #E0DBC4;
	--of-tx2: #3D3826;
	--of-tx3: #5C5643;
	--of-green: #3DDC84;
	--of-alert: #FF4A3D;
	--of-radius: 14px;
	--of-foot: 76px;
	--of-img: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html, :where(body.bp-of-body) { height: 100%; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
:where(body.bp-of-body) {
	overflow: hidden;
	overscroll-behavior: none;
	background: var(--of-paper);
	color: var(--of-ink);
	font-family: 'Tajawal', -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
:where(body.bp-of-body) img { max-width: 100%; height: auto; display: block; border: 0; }
:where(body.bp-of-body) button { font-family: inherit; line-height: inherit; -webkit-tap-highlight-color: transparent; }

.of-app {
	height: 100dvh;
	display: flex;
	flex-direction: column;
	padding-top: env(safe-area-inset-top, 0);
}

/* الرأس وشريط الخطوات */
.of-top {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	padding: 8px 16px;
	background: var(--of-banana);
	border-bottom: 3px solid var(--of-ink);
}
.of-top.is-embed { justify-content: center; min-height: 50px; }
.of-logo { font-weight: 900; font-size: 17px; color: var(--of-ink); text-decoration: none; white-space: nowrap; }
.of-prog { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.of-prog li { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--of-tx2); }
.of-prog li::before { content: ''; width: 40px; height: 7px; border-radius: 4px; background: rgba(11,11,11,.22); transition: background .2s; }
.of-prog li.is-done::before { background: var(--of-green); box-shadow: inset 0 0 0 1px rgba(11,11,11,.5); }
.of-prog li.is-cur::before { background: var(--of-ink); }
.of-prog li.is-cur { color: var(--of-ink); }

/* الخطوات */
.of-main { flex: 1 1 auto; position: relative; overflow: hidden; min-height: 0; }
.of-step {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; gap: 14px;
	padding: 16px 16px 24px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	transform: translateX(-16px); opacity: 0; visibility: hidden;
	transition: transform .24s cubic-bezier(.2,.7,.2,1), opacity .2s ease, visibility 0s linear .24s;
}
.of-step.is-on { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.of-step > * { flex: 0 0 auto; }
.of-h { font-size: 22px; font-weight: 900; margin: 0; line-height: 1.3; color: var(--of-ink); }
.of-load { color: var(--of-tx2); font-weight: 700; margin: 0; }

/* التصنيفات */
.of-cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.of-cats::-webkit-scrollbar { display: none; }
.of-chip {
	flex: 0 0 auto;
	min-height: 40px;
	padding: 8px 16px;
	background: #fff;
	color: var(--of-ink);
	border: 2px solid var(--of-ink);
	border-radius: 999px;
	font-weight: 800; font-size: 14px;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.of-chip.is-on { background: var(--of-ink); color: var(--of-banana); }

/* البطاقات */
.of-items {
	display: flex; gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	margin: 0 -16px;
	padding: 6px 16px 12px;
	scrollbar-width: none;
}
.of-items::-webkit-scrollbar { display: none; }
.of-card {
	flex: 0 0 min(44vw, 176px);
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #fff;
	color: var(--of-ink);
	border: 2px solid var(--of-ink);
	border-radius: var(--of-radius);
	padding: 10px;
	text-align: right;
	cursor: pointer;
	box-shadow: 0 3px 0 0 var(--of-ink);
	transition: transform .15s, box-shadow .15s, background .15s;
}
.of-card:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--of-ink); }
.of-card img, .of-card .ph {
	flex: 0 0 auto;
	width: 100%;
	height: var(--of-img);
	object-fit: cover;
	padding: 0;
	border-radius: 10px;
	background: var(--of-peel);
	margin: 0;
}
.of-card .ph { display: grid; place-items: center; font-size: 34px; }
.of-card b {
	flex: 0 0 auto;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px; font-weight: 800; line-height: 1.5;
	height: 3em;
}
.of-card small { display: block; color: var(--of-tx2); font-weight: 700; font-size: 13px; }
.of-card.is-on { background: var(--of-peel); box-shadow: 0 3px 0 0 var(--of-ink), 0 0 0 3px var(--of-banana); }
.of-card.is-on img, .of-card.is-on .ph { background: #fff; }

/* الخيارات */
.of-opts { display: flex; flex-direction: column; gap: 10px; }
.of-opt-t { font-weight: 900; font-size: 15px; margin: 4px 0 0; color: var(--of-ink); }
.of-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.of-pill {
	min-height: 46px;
	padding: 8px 14px;
	background: #fff;
	color: var(--of-ink);
	border: 2px solid var(--of-ink);
	border-radius: 12px;
	font-weight: 800; font-size: 14px;
	cursor: pointer;
	display: inline-flex; align-items: center; gap: 8px;
	transition: background .15s, box-shadow .15s;
}
.of-pill small { font-weight: 700; color: var(--of-tx2); font-size: 12px; }
.of-pill.is-on { background: var(--of-banana); box-shadow: inset 0 -3px 0 0 var(--of-ink); }
.of-pill.is-on small { color: var(--of-ink); }

/* الخطوة 2 */
#ofForm { display: flex; flex-direction: column; gap: 14px; max-width: 460px; margin: 0; }
.of-field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 14px; color: var(--of-ink); }
.of-field input {
	width: 100%;
	height: 54px;
	padding: 0 14px;
	border: 2px solid var(--of-ink);
	border-radius: 12px;
	font: inherit; font-size: 16px;
	background: #fff;
	color: var(--of-ink);
	margin: 0;
	box-shadow: none;
	appearance: none; -webkit-appearance: none;
}
.of-field input::placeholder { color: #8C8670; }
.of-field input:focus { outline: none; box-shadow: 0 0 0 4px rgba(245,215,78,.7); }
.of-field input.is-bad { border-color: var(--of-alert); }
.of-hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.of-note { color: var(--of-tx2); font-size: 13px; font-weight: 700; margin: 0; line-height: 1.7; }

/* الخطوة 3 */
.of-sum { background: #fff; padding: 14px 16px; border: 2px solid var(--of-ink); border-radius: var(--of-radius); box-shadow: 0 3px 0 0 var(--of-ink); }
.of-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; color: var(--of-ink); }
.of-sum-row b { font-size: 16px; }
.of-sum-row + .of-sum-row { border-top: 1px dashed var(--of-line); }
.of-pay { display: flex; flex-direction: column; gap: 12px; }
.of-pay-note { background: var(--of-peel); border: 2px dashed var(--of-ink); border-radius: var(--of-radius); padding: 12px 14px; font-size: 14px; font-weight: 700; line-height: 1.9; color: var(--of-ink); }
.of-pay-btn { display: flex; align-items: center; justify-content: center; min-height: 50px; background: var(--of-green); color: var(--of-ink); font-weight: 900; font-size: 16px; text-decoration: none; border: 2px solid var(--of-ink); border-radius: 12px; box-shadow: 0 3px 0 0 var(--of-ink); }

/* الشريط السفلي */
.of-foot {
	flex: 0 0 auto;
	display: flex; align-items: center; gap: 10px;
	min-height: var(--of-foot);
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0));
	background: #fff;
	border-top: 3px solid var(--of-ink);
}
.of-total { margin-inline-end: auto; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.of-total small { font-size: 12px; font-weight: 700; color: var(--of-tx2); white-space: nowrap; }
.of-total b { font-size: 22px; font-weight: 900; color: var(--of-ink); white-space: nowrap; }
.of-btn {
	min-height: 50px;
	padding: 0 22px;
	font-weight: 900; font-size: 17px;
	border: 2px solid var(--of-ink);
	border-radius: 12px;
	cursor: pointer;
	margin: 0;
	transition: transform .1s, box-shadow .1s, opacity .15s;
}
.of-btn.of-btn-main { background: var(--of-ink); color: var(--of-banana); flex: 0 1 50%; box-shadow: 0 4px 0 0 rgba(11,11,11,.35); }
.of-btn.of-btn-main:active { transform: translateY(2px); box-shadow: none; }
.of-btn.of-btn-main:disabled { opacity: .5; cursor: not-allowed; }
.of-btn.of-btn-ghost { background: #fff; color: var(--of-ink); min-width: 50px; }

/* التنبيه */
.of-toast {
	position: fixed;
	bottom: calc(var(--of-foot) + 12px + env(safe-area-inset-bottom, 0));
	right: 16px; left: 16px;
	background: var(--of-ink);
	color: #fff;
	padding: 12px 16px;
	border-radius: 12px;
	font-weight: 800; font-size: 14px;
	text-align: center;
	z-index: 50;
}

/* شاشات أوسع */
@media (min-width: 760px) {
	:root { --of-img: 130px; }
	.of-app { max-width: 760px; margin: 0 auto; }
	.of-items { flex-wrap: wrap; overflow: visible; margin: 0; padding: 6px 0; }
	.of-card { flex: 0 0 calc(25% - 9px); }
	.of-btn.of-btn-main { flex: 0 0 240px; }
}

@media (prefers-reduced-motion: reduce) {
	.of-step, .of-card, .of-btn, .of-chip, .of-pill { transition: none; }
	html { scroll-behavior: auto; }
}

/* v2.2: إخفاء أشرطة التمرير مع بقاء التمرير */
.of-step { scrollbar-width: none; overflow-x: hidden; }
.of-step::-webkit-scrollbar { display: none; }

/* v2.2: الخطوة 2 بعمودين على الشاشات الواسعة */
.of-two { display: flex; flex-direction: column; gap: 14px; }
.of-side { display: none; }
.of-side-card { background: #fff; border: 2px solid var(--of-ink); border-radius: var(--of-radius); padding: 14px; box-shadow: 0 3px 0 0 var(--of-ink); }
.of-side-top { display: flex; gap: 12px; align-items: center; }
.of-side-top img, .of-side-top .ph { width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; padding: 6px; background: var(--of-peel); border-radius: 10px; display: grid; place-items: center; font-size: 26px; margin: 0; }
.of-side-top b { display: block; font-size: 15px; font-weight: 900; line-height: 1.4; }
.of-side-top small { display: block; color: var(--of-tx2); font-weight: 700; font-size: 13px; }
.of-side-price { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--of-line); font-weight: 800; font-size: 14px; }
.of-side-price b { font-size: 20px; font-weight: 900; }
.of-side-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; color: var(--of-tx2); }
.of-side-list li { display: flex; gap: 8px; align-items: flex-start; }
.of-side-list li::before { content: '\2713'; flex: 0 0 18px; height: 18px; display: grid; place-items: center; background: var(--of-green); color: var(--of-ink); border-radius: 50%; font-size: 11px; font-weight: 900; margin-top: 2px; }
@media (min-width: 760px) {
	.of-two { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; align-items: start; }
	.of-side { display: block; position: sticky; top: 0; }
	#ofForm { max-width: none; }
}

/* شعار الموقع في رأس التدفق */
.of-logo { display: inline-flex; align-items: center; gap: 8px; }
.of-logo img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; display: block; }
.of-logo span { font-family: 'PixelAE', 'Tajawal', sans-serif; font-weight: 400; font-size: 24px; line-height: 1; -webkit-font-smoothing: none; }
.of-logo img { width: 44px; height: 44px; }
