.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 170px; position: relative; z-index: 1; }
.hero { position: relative; text-align: center; padding: 70px 10px 18px; overflow: hidden; }
.hero svg { position: absolute; z-index: 0; width: 38%; max-width: 220px; }
.hero svg.tl { top: -2px; left: -16px; } .hero svg.br { display: none; }
.hero img.logo { position: relative; z-index: 1; width: min(420px, 86%); }
.hero .info { position: relative; z-index: 1; margin-top: 6px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.closed { background: var(--red); color: #fff; text-align: center; padding: 14px; border-radius: 16px; font-family: var(--display); font-size: 20px; margin-bottom: 14px; }
.tabs { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--cream) 95%, transparent); backdrop-filter: blur(6px); display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; margin: 0 -16px 8px; padding-inline: 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; padding: 9px 20px; border-radius: 99px; border: 2px solid var(--orange-m); background: #fff; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--orange-d); }
.tab.on { background: var(--orange); color: #fff; border-color: var(--orange); }
.cat-t { font-size: 26px; color: var(--orange-d); margin: 18px 0 10px; }
.item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin-bottom: 10px; }
.item .t { cursor: pointer; }
.item.has-img { padding: 10px; align-items: stretch; }
.item.has-img .t { display: flex; flex-direction: column; justify-content: center; padding: 4px 6px; }
.item .d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.pic { position: relative; width: 116px; height: 116px; flex-shrink: 0; }
.pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; background: var(--orange-l); cursor: pointer; }
.pic-ctl { position: absolute; bottom: -8px; left: -6px; }
.pic-ctl .addbtn { width: 42px; height: 42px; border-radius: 14px; box-shadow: 0 6px 14px rgba(var(--orange-rgb), .4); }
.pic-ctl .stp { background: #fff; border-radius: 14px; padding: 3px; box-shadow: 0 6px 14px rgba(0,0,0,.18); gap: 2px; }
.pic-ctl .stp button { width: 34px; height: 34px; }
.sec-t { font-size: 24px; color: var(--orange-d); margin: 6px 0 4px; }
.offer.bn { padding: 0; overflow: hidden; aspect-ratio: 2/1; flex-basis: 86%; max-width: 420px; color: #fff; background: var(--ink); }
.offer.bn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-t { position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; background: linear-gradient(to top, rgba(0,0,0,.72), transparent); }
.bn-t b { display: block; font-size: 21px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.bn-t .ob { background: var(--orange); color: var(--on-primary, #fff); }
.pd { position: relative; }
.pd-x { position: absolute; top: 12px; left: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.pd-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px; display: block; }
.pd-p { font-family: var(--display); font-size: 24px; color: var(--orange-d); font-weight: 800; margin: 2px 0 6px; }
.pd-d { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 6px; }
.item .t { flex: 1; min-width: 0; }
.item .n { font-weight: 800; font-size: 18px; }
.item .d { color: var(--muted); font-size: 14px; margin-top: 2px; }
.item .p { font-family: var(--display); color: var(--orange-d); font-size: 20px; font-weight: 800; margin-top: 4px; }
.addbtn { width: 48px; height: 48px; border-radius: 16px; border: 0; background: var(--orange); color: #fff; font-size: 30px; line-height: 1; font-weight: 700; flex-shrink: 0; }
.stp { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.stp button { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--orange-m); background: #fff; color: var(--orange-d); font-size: 22px; font-weight: 800; line-height: 1; }
.stp b { min-width: 26px; text-align: center; font-size: 18px; }
.cartbar { position: fixed; bottom: 84px; left: 14px; right: 14px; max-width: 732px; margin: 0 auto; z-index: 20; }
.cartbar .btn { width: 100%; min-height: 62px; font-size: 20px; justify-content: space-between; box-shadow: 0 10px 28px rgba(var(--orange-rgb, 255, 94, 1), .45); }
.sheet-bg { position: fixed; inset: 0; background: rgba(42, 22, 8, .5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--cream); width: min(640px, 100%); max-height: 94vh; overflow: auto; border-radius: 26px 26px 0 0; padding: 18px 18px 26px; }
.sheet h3 { font-size: 24px; color: var(--orange-d); margin-bottom: 10px; display: flex; align-items: center; }
.sheet h3 button { margin-right: auto; border: 0; background: var(--orange-l); width: 40px; height: 40px; border-radius: 12px; font-size: 22px; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 14px; }
.seg2 button { min-height: 58px; border-radius: 16px; border: 3px solid var(--line); background: #fff; font-family: var(--display); font-size: 19px; font-weight: 800; }
.seg2 button.on { border-color: var(--orange); background: var(--orange-l); color: var(--orange-d); }
.sumr { display: flex; justify-content: space-between; margin: 5px 0; font-weight: 700; color: var(--muted); }
.sumr.big { color: var(--ink); font-family: var(--display); font-size: 26px; font-weight: 800; margin: 10px 0 14px; }
.sumr.big span:last-child { color: var(--orange-d); }
.track { display: flex; justify-content: space-between; margin: 24px 0; position: relative; }
.track::before { content: ''; position: absolute; top: 22px; right: 12%; left: 12%; height: 5px; background: var(--line); }
.stepx { position: relative; z-index: 1; text-align: center; flex: 1; font-weight: 700; color: var(--muted); font-size: 14px; }
.stepx i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 4px solid var(--line); margin: 0 auto 6px; font-style: normal; font-size: 20px; }
.stepx.on { color: var(--orange-d); } .stepx.on i { background: var(--orange); border-color: var(--orange); color: #fff; }
.done-card { text-align: center; padding: 26px 18px; }
.done-card .no { font-family: var(--display); font-size: 64px; color: var(--orange-d); font-weight: 800; line-height: 1.1; }

.offers { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 6px; scroll-snap-type: x mandatory; }
.offer { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; background: linear-gradient(135deg, var(--orange), var(--orange-m)); color: #fff; border-radius: 20px; padding: 14px 16px; position: relative; font-family: var(--display); font-size: 20px; box-shadow: 0 6px 18px rgba(var(--orange-rgb, 42, 75, 255), .28); }
.offer .ot { font-family: inherit; font-size: 15px; opacity: .95; margin-top: 4px; font-weight: 500; }
.offer .ob { display: inline-block; background: #fff; color: var(--orange-d); border-radius: 999px; padding: 2px 10px; font-size: 13px; margin-bottom: 6px; }
.cpn-note { background: var(--orange-l); border: 2px dashed var(--orange); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; font-weight: 700; text-align: center; }
.cpn-row { display: flex; gap: 8px; margin: 6px 0 10px; } .cpn-row .input { flex: 1; }
.cpn { display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; border: 3px dashed var(--orange); border-radius: 14px; padding: 10px 14px; margin: 10px 0; font-weight: 800; }
.cpn b { font-family: var(--display); font-size: 30px; letter-spacing: 3px; color: var(--orange-d); }
.cpn-card { background: var(--orange-l); border-radius: 16px; padding: 12px; margin: 12px 0; font-weight: 800; }
.spin-cta { margin: 14px 0; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { transform: scale(1.03); } }
.wheel-box { position: relative; width: min(320px, 82vw); margin: 4px auto 10px; }
.wheel-svg { width: 100%; height: auto; overflow: visible; display: block; }
.wa-fab { position: fixed; left: 14px; bottom: 156px; z-index: 19; background: #25D366; color: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 800; text-decoration: none; display: flex; gap: 6px; align-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

.ogt { font-weight: 800; color: var(--orange-d); margin: 12px 0 6px; font-family: var(--display); font-size: 19px; } .ogt span { font-size: 13px; color: var(--muted); margin-right: 8px; font-family: inherit; font-weight: 600; }
.optgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 6px; }
.optbtn { min-height: 54px; border-radius: 14px; border: 3px solid var(--line); background: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.optbtn small { font-size: 13px; color: var(--orange-d); font-family: inherit; } .optbtn.on { border-color: var(--orange); background: var(--orange-l); color: var(--orange-d); }
.sheet .btn.lg { margin-top: 12px; } .addbtn { position: relative; } .addbtn .qb { position: absolute; top: -8px; left: -8px; background: var(--ink); color: #fff; border-radius: 99px; min-width: 22px; height: 22px; font-size: 13px; display: grid; place-items: center; padding: 0 5px; }

.bcode { background: #fff; border: 2px solid var(--orange-l); border-radius: 12px; padding: 8px; margin: 10px auto; text-align: center; max-width: 100%; } .bcode svg { width: 100%; max-width: 320px; height: 70px; display: block; margin: 0 auto 4px; }

.loy { text-align: center; } .stamps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.stamps i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); display: grid; place-items: center; font-style: normal; color: #fff; font-weight: 800; background: #fff; } .stamps i.on { background: var(--orange); border-color: var(--orange); }

/* ================= تصميم الموقع الجديد (يتحكم فيه «مصمم الموقع») ================= */
body.r-soft { --rr: 18px; --r: 18px; } body.r-round { --rr: 28px; --r: 28px; } body.r-sharp { --rr: 8px; --r: 8px; }
.wrap.wide { max-width: 1040px; }
.ann { background: var(--orange); color: var(--on-primary, #fff); text-align: center; padding: 9px 14px; font-weight: 800; font-size: 15px; position: relative; z-index: 2; }
.hero .tag { position: relative; z-index: 1; margin-top: 10px; font-family: var(--display); font-size: 20px; color: var(--muted); }
.hero.cover { padding: 0; margin: 0 -16px 8px; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 0 0 var(--rr, 18px) var(--rr, 18px); color: #fff; }
.hero.cover .cv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.18) 60%, rgba(0,0,0,.05)); }
.cv-in { position: relative; z-index: 1; text-align: center; padding: 70px 16px 4px; }
.hero.cover .logo { width: min(230px, 56%); background: rgba(255,255,255,.94); border-radius: var(--rr, 18px); padding: 10px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.hero.cover .tag { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero.cover .info { position: relative; z-index: 1; padding: 10px 12px 16px; }
.sec { margin: 4px 0 6px; }
.bnr { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 0 6px; }
.bnr::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; aspect-ratio: 2 / 1; scroll-snap-align: start; border-radius: var(--rr, 18px); overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--orange), var(--orange-m)); display: flex; align-items: flex-end; font-family: var(--display); box-shadow: 0 8px 22px rgba(var(--orange-rgb), .22); }
.slide.lk { cursor: pointer; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sl-t { position: relative; width: 100%; padding: 36px 18px 16px; }
.slide.has .sl-t { background: linear-gradient(to top, rgba(0,0,0,.72), transparent); }
.slide:not(.has) { align-items: center; } .slide:not(.has) .sl-t { padding: 18px 22px; }
.sl-t b { display: block; font-size: 24px; line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.sl-t .ot { font-family: inherit; font-size: 15px; font-weight: 500; opacity: .95; margin-top: 3px; }
.sl-t .ob { display: inline-block; background: #fff; color: var(--orange-d); border-radius: 999px; padding: 2px 12px; font-size: 13px; margin-bottom: 6px; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 6px 0 2px; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: .25s; } .dots i.on { width: 20px; background: var(--orange); }
@media (min-width: 820px) { .slide { flex-basis: calc(50% - 6px); } }
.fcards { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.fcards::-webkit-scrollbar { display: none; }
.fcard { flex: 0 0 168px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--rr, 18px); padding: 8px; box-shadow: var(--shadow); cursor: pointer; }
.fimg, .gimg { position: relative; border-radius: calc(var(--rr, 18px) - 6px); overflow: hidden; background: var(--orange-l); aspect-ratio: 1 / 1; }
.fimg img, .gimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--orange-l); } .ph img { width: 46%; opacity: .45; object-fit: contain !important; }
.fn { font-weight: 800; font-size: 16px; margin: 8px 4px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 2px 4px 2px; }
.frow .p { font-family: var(--display); color: var(--orange-d); font-size: 18px; font-weight: 800; }
.frow .addbtn { width: 38px; height: 38px; border-radius: 12px; font-size: 24px; }
.pbadge { position: absolute; top: 8px; right: 8px; background: var(--orange); color: var(--on-primary, #fff); font-size: 12px; font-weight: 800; border-radius: 99px; padding: 3px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.2); z-index: 1; font-family: var(--display); }
.item .n .pbadge { position: static; display: inline-block; margin-inline-start: 8px; vertical-align: middle; }
.pbadge.in { position: static; display: inline-block; margin: 10px 0 0; }
.tabs.circ { gap: 14px; } .tabs.circ .tab { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: transparent; padding: 2px 2px; font-size: 15px; color: var(--ink); }
.tabs.circ .av { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; background: var(--orange-l); border: 3px solid var(--orange-m); display: grid; place-items: center; }
.tabs.circ .av img { width: 100%; height: 100%; object-fit: cover; } .tabs.circ .av i { font-style: normal; font-size: 24px; color: var(--orange-d); font-family: var(--display); }
.items.l { display: grid; grid-template-columns: 1fr; gap: 0 14px; } .items.l .item { margin-bottom: 12px; }
.items.g { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 8px; }
@media (min-width: 820px) { .items.l { grid-template-columns: 1fr 1fr; } .items.g { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .items.g { grid-template-columns: repeat(4, 1fr); } }
.gitem { background: var(--card); border: 1px solid var(--line); border-radius: var(--rr, 18px); padding: 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.gitem .gimg { aspect-ratio: 4 / 3; cursor: pointer; } .gb { padding: 8px 4px 4px; display: flex; flex-direction: column; flex: 1; }
.gb .n { font-weight: 800; font-size: 17px; cursor: pointer; } .gb .d { color: var(--muted); font-size: 13px; margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.gb .frow { margin: auto 0 0; padding-top: 6px; } .gitem .stp button { width: 34px; height: 34px; } .gitem .stp { gap: 3px; }
.item, .pic img { border-radius: var(--rr, 18px); } .pic img { border-radius: calc(var(--rr, 18px) - 4px); }
.foot { margin-top: 26px; padding: 22px 20px; text-align: center; }
.flogo { width: 150px; max-width: 60%; margin-bottom: 8px; }
.fabout { color: var(--muted); line-height: 1.8; margin: 0 0 12px; }
.frow2 { display: flex; flex-direction: column; gap: 2px; margin: 8px 0; } .frow2 b { color: var(--orange-d); } .frow2 span, .frow2 a { color: var(--ink); }
.socs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.soc { background: var(--orange-l); color: var(--orange-d); font-weight: 800; padding: 9px 16px; border-radius: 99px; text-decoration: none; }

.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 0 16px; margin: 14px 0 4px; min-height: 50px; }
.search:focus-within { border-color: var(--orange); } .search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; min-height: 46px; color: var(--ink); }

.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.bnav button { flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: 12px; font-weight: 800; color: var(--muted); padding: 4px 0; cursor: pointer; }
.bnav .ic { font-size: 22px; position: relative; line-height: 1.2; filter: grayscale(.15); }
.bnav .bdg { position: absolute; top: -4px; right: -10px; background: var(--red, #D64545); color: #fff; font-style: normal; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--orange); color: var(--on-primary, #fff); display: grid; place-items: center; font-family: var(--display); font-size: 24px; font-weight: 800; flex-shrink: 0; }
.adr { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }

.stars { display: flex; justify-content: center; gap: 6px; margin: 8px 0; } .star { border: 0; background: transparent; font-size: 40px; line-height: 1; color: #C9B8A8; cursor: pointer; padding: 2px; } .star.on { color: #F5A623; }

.ups { margin: 10px 0; padding: 10px 0 2px; } .ups-t { font-weight: 800; color: var(--orange-d); font-size: 18px; margin-bottom: 6px; } .ups-r { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.ups-c { flex: 0 0 132px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; display: flex; flex-direction: column; gap: 4px; text-align: center; font-size: 14px; }
.ups-c img, .ups-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--orange-l); display: grid; place-items: center; font-size: 30px; } .ups-c span { color: var(--orange-d); font-weight: 800; }

/* ===== تصميم التطبيق (نوع الطلب / المنتج / السلة / طلباتي / الحساب) ===== */
body.noscroll { overflow: hidden; }
.gate { min-height: 100vh; display: flex; flex-direction: column; background: var(--orange); }
.gt-top { padding: 48px 20px 28px; text-align: center; } .gt-top img { width: min(260px, 70%); filter: drop-shadow(0 4px 10px rgba(0,0,0,.2)); background: rgba(255,255,255,.95); border-radius: 20px; padding: 10px 18px; }
.gt-card { flex: 1; background: var(--cream); border-radius: 28px 28px 0 0; padding: 26px 18px 30px; text-align: center; max-width: 640px; width: 100%; margin: 0 auto; }
.gt-card h2 { font-size: 26px; color: var(--ink); margin-bottom: 10px; }
.gt-list { display: grid; gap: 12px; margin-top: 18px; }
.gt-opt { display: flex; align-items: center; gap: 14px; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 16px; text-align: right; font: inherit; }
.gt-opt:active { border-color: var(--orange); background: var(--orange-l); }
.gt-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--orange-l); display: grid; place-items: center; font-size: 28px; flex-shrink: 0; }
.gt-t { flex: 1; display: flex; flex-direction: column; gap: 2px; } .gt-t b { font-family: var(--display); font-size: 21px; } .gt-t small { color: var(--muted); font-size: 13px; }
.gt-ar { font-size: 28px; color: var(--orange); }
.ohead { display: flex; align-items: center; gap: 10px; width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 12px; margin: 8px 0 4px; font: inherit; text-align: right; }
.oh-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--orange-l); display: grid; place-items: center; font-size: 20px; }
.oh-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .oh-t b { font-size: 16px; } .oh-t small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oh-e { color: var(--orange); font-size: 20px; }
/* بطاقة المنتج: الصورة يمين والنص يسار */
.item.has-img { flex-direction: row-reverse; } .item.has-img .t { text-align: left; direction: rtl; } 
.item.has-img .t { align-items: flex-start; }
.tab.on { box-shadow: 0 4px 10px rgba(var(--orange-rgb, 255, 94, 1), .35); }
.bnav button.on { color: var(--orange-d); } .bnav button.on .ic { filter: none; }
.bnav { padding-top: 8px; border-radius: 18px 18px 0 0; }
/* صفحة المنتج */
.ppage { position: fixed; inset: 0; z-index: 60; background: var(--cream); display: flex; flex-direction: column; animation: fade .15s; max-width: 760px; margin: 0 auto; }
.pp-body { flex: 1; overflow-y: auto; padding-bottom: 20px; }
.pp-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--orange-l); } .pp-img.ph0 { display: grid; place-items: center; } .pp-img.ph0 img { width: 40%; opacity: .5; }
.pp-in { padding: 14px 16px 0; } .pp-in h2 { font-size: 26px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pp-x, .pp-back { position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); font-size: 28px; line-height: 1; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.pp-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--orange); border-radius: 22px 22px 0 0; }
.pp-foot.col { display: block; }
.pp-q { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.2); border-radius: 14px; padding: 4px; color: #fff; }
.pp-q button { width: 40px; height: 40px; border: 0; border-radius: 11px; background: #fff; color: var(--orange-d); font-size: 22px; font-weight: 800; } .pp-q b { min-width: 30px; text-align: center; font-size: 19px; }
.pp-add { flex: 1; width: 100%; min-height: 50px; border: 0; border-radius: 14px; background: #fff; color: var(--orange-d); font-family: var(--display); font-size: 19px; font-weight: 800; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.pp-add:disabled { opacity: .55; }
.rc { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 8px; font: inherit; text-align: right; }
.rc.on { border-color: var(--orange); background: var(--orange-l); }
.rc-d { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--orange-m); flex-shrink: 0; position: relative; } .rc-d.sq { border-radius: 6px; }
.rc.on .rc-d { border-color: var(--orange); background: var(--orange); box-shadow: inset 0 0 0 4px #fff; } .rc.on .rc-d.sq { box-shadow: none; }
.rc-n { flex: 1; font-weight: 700; } .rc-p { color: var(--orange-d); font-weight: 800; font-size: 14px; }
/* السلة */
.sheet-bg.full { padding: 0; align-items: stretch; } .sheet.full { width: min(760px, 100%); max-height: none; height: 100%; border-radius: 0; padding: 0; display: flex; flex-direction: column; background: var(--cream); }
.sheet.full > div:nth-child(2) { flex: 1; overflow-y: auto; padding: 14px 16px 24px; }
.cart-h { display: flex; align-items: center; justify-content: center; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); position: relative; }
.cart-h .pp-back { position: absolute; top: 8px; right: 12px; box-shadow: none; background: var(--orange-l); } .cart-h h3 { margin: 0; font-size: 21px; color: var(--ink); }
.ci { display: flex; gap: 12px; background: #fff; border-radius: 16px; padding: 10px; margin-bottom: 10px; border: 1px solid var(--line); }
.ci > img, .ci-ph { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--orange-l); } .ci-ph { display: grid; place-items: center; } .ci-ph img { width: 50%; opacity: .5; }
.ci-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .ci-b small { color: var(--muted); font-size: 12.5px; }
.ci-r { display: flex; align-items: center; justify-content: space-between; margin-top: auto; } .ci-p { font-family: var(--display); color: var(--orange-d); font-weight: 800; font-size: 18px; }
.ci-s { display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--orange-m); border-radius: 12px; padding: 2px; } .ci-s button { width: 32px; height: 32px; border: 0; background: var(--orange-l); border-radius: 9px; color: var(--orange-d); font-size: 18px; font-weight: 800; } .ci-s b { min-width: 24px; text-align: center; }
.srv { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 10px 0; } .srv-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .srv-t small { color: var(--muted); font-size: 13px; }
.srv-e { border: 0; background: var(--orange-l); color: var(--orange-d); font-weight: 800; border-radius: 10px; padding: 8px 14px; }
.cpn-row { display: flex; gap: 8px; margin: 8px 0; } .cpn-row .input { flex: 1; }
/* طلباتي والحساب */
.otabs { display: flex; background: var(--orange-l); border-radius: 14px; padding: 4px; margin-bottom: 12px; } .otabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 11px; font-weight: 800; color: var(--orange-d); font: inherit; font-weight: 800; } .otabs button.on { background: var(--orange); color: #fff; }
.oc { padding: 12px 14px; margin-bottom: 10px; } .oc-h, .oc-f { display: flex; justify-content: space-between; align-items: center; }
.empty { text-align: center; padding: 40px 10px; display: grid; gap: 12px; justify-items: center; } .em-ic { font-size: 54px; opacity: .7; }
.mrow { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 8px; font: inherit; text-align: right; color: var(--ink); text-decoration: none; }
.mi { width: 38px; height: 38px; border-radius: 12px; background: var(--orange-l); display: grid; place-items: center; font-size: 19px; } .mt { flex: 1; font-weight: 700; } .ma { color: var(--orange); font-size: 22px; }
.cartbar { bottom: 84px; }
.toast-wrap { bottom: auto; top: 16px; }

/* ===== شكل الرئيسية الجديد (مثل المرجع) ===== */
body.lite { background-image: none; background: #F6F4F2; }
.ohead { border: 0; border-radius: 0; margin: 0; padding: calc(14px + env(safe-area-inset-top)) 16px 14px; background: #fff; flex-direction: row; gap: 12px; position: relative; z-index: 12; }
.ohead .oh-ic { width: 48px; height: 48px; border-radius: 0; background: transparent; font-size: 30px; color: var(--orange); }
.ohead .oh-t b { font-size: 18px; font-weight: 500; } .ohead .oh-t small { font-size: 17px; color: var(--ink); font-weight: 800; }
.ohead .oh-e { color: var(--orange); }
.wrap.wide { max-width: 760px; padding-top: 0; }
.wrap { padding: 0 0 170px; }
.closed { margin: 8px 16px; }
.bn-sec { margin: 16px 0 6px; }
.bn-sec .bnr { gap: 12px; padding: 2px 16px 6px; scroll-padding-inline: 16px; }
.bn-sec .slide { flex: 0 0 84%; aspect-ratio: 1.6 / 1; border-radius: 18px; box-shadow: none; }
.bn-sec .dots { display: none; }
.cpn-note, .loyal, .sec { margin-inline: 0; }
.tabs { margin: 8px 0 0; padding: 12px 16px; background: #fff; border-top: 1px solid #e7e2dd; border-bottom: 1px solid #e7e2dd; gap: 6px; backdrop-filter: none; }
.tab { border: 0; background: transparent; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); padding: 8px 18px; }
.tab.on { background: var(--orange); color: #fff; box-shadow: none; }
.cat-t { height: 0; margin: 0; padding: 0; overflow: hidden; scroll-margin-top: 70px; }
.items.l { padding: 22px 16px 0; gap: 34px; } .items.g { padding: 12px 16px 0; }
.cat-t + .items { margin-top: 0; }
.items.l .item { margin: 0; }
.item.has-img { padding: 18px 16px 14px; align-items: flex-start; min-height: 150px; position: relative; overflow: visible; border: 1px solid #efe6dc; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.item.has-img .pic { width: 128px; height: 128px; margin-top: -32px; align-self: flex-start; }
.item.has-img .pic img { border-radius: 14px; background: transparent; object-fit: contain; }
.item.has-img .t { align-self: stretch; display: flex; flex-direction: column; text-align: right; }
.item .n { color: var(--orange-d); font-size: 20px; } .item .d { font-size: 15px; }
.item .p { margin-top: auto; padding-top: 10px; align-self: flex-start; }
.pr { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--orange-d); direction: ltr; display: inline-flex; flex-wrap: nowrap; align-items: flex-start; gap: 0; }
.pr sup { font-size: 12px; margin-top: 2px; } .pr small { font-size: 12px; align-self: flex-end; margin-bottom: 5px; margin-inline-start: 4px; color: var(--muted); white-space: nowrap; }
.pic-ctl { bottom: -14px; left: auto; right: auto; inset-inline: 0; display: flex; justify-content: center; }
.bnav { background: var(--orange); border: 0; border-radius: 0; box-shadow: none; padding-top: 10px; }
.bnav button { color: rgba(255,255,255,.75); font-size: 15px; } .bnav button.on { color: #fff; }
.bnav .ic { filter: grayscale(1) brightness(3); font-size: 26px; opacity: .85; } .bnav button.on .ic { opacity: 1; }
.cartbar { bottom: 92px; }

/* ===== مطابقة المرجع ===== */
body.lite { background: #F5F4F2; }
.ohead .oh-t b { font-weight: 500; color: #555; font-size: 18px; } .ohead .oh-t small { font-size: 19px; }
.ohead .oh-ic { border: 0; font-size: 34px; color: var(--orange); }
.bn-sec { margin: 22px 0 10px; }
.bn-sec .bnr { scroll-snap-type: x mandatory; padding: 2px 12.5%; gap: 14px; scroll-padding-inline: 12.5%; }
.bn-sec .slide { flex: 0 0 75%; scroll-snap-align: center; border-radius: 22px; aspect-ratio: 1.6 / 1; }
.tabs { margin: 16px 0 0; padding: 14px 8px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.tab { font-weight: 500; font-size: 20px; padding: 8px 20px; }
.items.l { padding: 46px 8% 8px; gap: 62px; }
.items.l .item .addbtn, .items.l .item .stp, .items.l .item .pic-ctl { display: none; }
.item, .item.has-img { border-radius: 14px; border: 1px solid #efe1cf; box-shadow: 0 2px 5px rgba(0,0,0,.06); }
.item.has-img { padding: 16px 16px 14px; min-height: 118px; align-items: stretch; flex-direction: row-reverse; justify-content: space-between; }
.item.has-img .pic { width: 96px; height: 96px; margin-top: -34px; margin-bottom: 0; }
.item.has-img .pic img { object-fit: contain; border-radius: 0; }
.item .n { font-size: 21px; font-weight: 800; color: var(--orange-d); line-height: 1.3; }
.item .d { font-size: 15px; color: #777; margin-top: 6px; -webkit-line-clamp: 2; }
.item .t { text-align: right; }
.item .p { align-self: flex-start; margin-top: auto; padding-top: 12px; }
.pr { font-size: 28px; }
.bnav { background: var(--orange); padding: 10px 4px calc(10px + env(safe-area-inset-bottom)); }
.bnav button { color: #F7DDB5; font-size: 16px; font-weight: 700; } .bnav button.on { color: #fff; }
.bnav .ic { filter: none; opacity: 1; font-size: 28px; color: #F7DDB5; height: 40px; display: grid; place-items: center; }
.bnav .ic { filter: sepia(1) saturate(.6) brightness(1.7); }
.bnav .nlogo { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 2px; display: block; filter: none; }
.bnav button:first-child .ic { filter: none; }
.bn-sec .bnr { padding: 2px calc(min(100vw, 760px) * .125); scroll-padding-inline: calc(min(100vw, 760px) * .125); }
.bn-sec .slide { flex: 0 0 calc(min(100vw, 760px) * .75); }
.item.has-img .pic { width: 118px; height: 118px; margin-top: -40px; margin-inline: -8px; }
