/* Customer website — warm, modern, mobile-first. Works left-to-right and right-to-left (Urdu). */
:root {
  --ink: #1d1813; --muted: #6f665b; --soft: #9a9083; --bg: #fbf7f0; --card: #fff; --line: #ece3d4; --cream: #fff3e2;
  --brand: #c8440d; --brand-2: #f29a1f; --brand-ink: #fff; --deep: #173528; --deep-2: #21493a; --ok: #1d7a45; --warn: #b7791f; --bad: #c0261d;
  --r: 18px; --r-sm: 12px; --shadow: 0 1px 2px rgba(40,25,10,.05), 0 8px 24px rgba(40,25,10,.07); --shadow-lg: 0 20px 50px rgba(30,20,10,.18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --tabbar: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.shop { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
html[dir="rtl"] body.shop { font-family: var(--ur-font); line-height: 1.95; }
html[dir="rtl"] .shop h1, html[dir="rtl"] .shop h2, html[dir="rtl"] .shop h3, html[dir="rtl"] .shop .display { font-family: var(--ur-font) !important; letter-spacing: 0 !important; line-height: 1.7 !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.only-m { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }

/* Buttons */
.btn-solid, .btn-ghost, .btn-light { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .78rem 1.35rem; font-weight: 700; border: 0; cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn-solid { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(200,68,13,.28); }
.btn-solid:hover { background: #b23b0a; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-solid.block, .btn-ghost.block { width: 100%; }
.btn-solid:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; font-size: 1.35rem; cursor: pointer; }
.icon-btn:hover { background: rgba(0,0,0,.05); }
.linkish { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }

/* Notice bar + navigation */
.sh-notice { background: var(--deep); color: #fff; font-size: .88rem; }
.sh-notice .wrap { display: flex; gap: .6rem; align-items: center; justify-content: center; padding-top: .45rem; padding-bottom: .45rem; text-align: center; }
.sh-notice a { font-weight: 700; text-decoration: underline; white-space: nowrap; }
.sh-nav { position: sticky; top: 0; z-index: 50; background: rgba(251,247,240,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; padding-top: env(safe-area-inset-top); }
.sh-nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(40,25,10,.06); }
.nav-row { display: flex; align-items: center; gap: 1rem; height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.12rem; flex: none; }
.logo img { height: 42px; width: auto; max-width: 120px; object-fit: contain; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); display: grid; place-items: center; color: #fff; font-size: 1.15rem; box-shadow: 0 6px 16px rgba(200,68,13,.3); }
.logo-name { white-space: nowrap; }
.links { display: flex; gap: .3rem; margin-inline-start: 1.2rem; }
.links a { padding: .5rem .85rem; border-radius: 999px; font-weight: 600; font-size: .95rem; color: #3a332b; }
.links a:hover { background: rgba(0,0,0,.05); }
.links a.on { background: var(--ink); color: #fff; }
.actions { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .48rem .95rem; border-radius: 999px; font-weight: 700; font-size: .9rem; box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; }
.pill:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill.solid { background: var(--brand); color: #fff; box-shadow: none; }
.pill.solid:hover { background: #b23b0a; }
.pill.acct i { font-size: 1.1rem; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 1.2rem; display: grid; place-items: center; cursor: pointer; }
.cart-n { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--brand-2); color: #1d1813; font-size: .75rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg); }
.cart-btn.bump { animation: bump .4s; } @keyframes bump { 40% { transform: scale(1.18); } }
.nav-shade { display: none; }

/* Hero slider */
.hero { padding: 18px 0 8px; }
.slider { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 0; border-radius: 26px; scrollbar-width: none; direction: ltr; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; min-height: clamp(320px, 42vw, 500px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--deep) center/cover no-repeat; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,8,5,.78) 0%, rgba(10,8,5,.45) 45%, rgba(10,8,5,.05) 100%), linear-gradient(0deg, rgba(10,8,5,.5), transparent 45%); }
.slide-in { position: relative; padding: clamp(24px, 5vw, 64px); max-width: 640px; }
html[dir="rtl"] .slide-in { direction: rtl; margin-inline-start: auto; }
html[dir="rtl"] .slide::before { background: linear-gradient(270deg, rgba(10,8,5,.78) 0%, rgba(10,8,5,.45) 45%, rgba(10,8,5,.05) 100%), linear-gradient(0deg, rgba(10,8,5,.5), transparent 45%); }
.slide .kicker { display: inline-flex; align-items: center; gap: .4rem; background: var(--brand-2); color: #1d1813; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 14px; }
html[dir="rtl"] .slide .kicker { text-transform: none; letter-spacing: 0; }
.slide h1, .slide h2 { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 12px; }
.slide p { font-size: clamp(1rem, 1.6vw, 1.18rem); opacity: .92; margin: 0 0 22px; max-width: 520px; }
.slide .cta { display: flex; gap: .6rem; flex-wrap: wrap; }
.slide.plain { background-image: radial-gradient(circle at 85% 20%, rgba(242,154,31,.55), transparent 45%), radial-gradient(circle at 70% 90%, rgba(200,68,13,.5), transparent 50%); }
.dots { position: absolute; bottom: 18px; inset-inline-end: 24px; display: flex; gap: 7px; z-index: 2; }
.dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255,255,255,.5); padding: 0; cursor: pointer; transition: width .25s, background .25s; }
.dots button.on { width: 26px; background: #fff; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.1rem; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s; }
.slider:hover .arrow { opacity: 1; }
.arrow.prev { left: 16px; } .arrow.next { right: 16px; }

/* Stories */
.stories { display: flex; gap: 16px; overflow-x: auto; padding: 18px 2px 6px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 82px; text-align: center; background: none; border: 0; cursor: pointer; padding: 0; }
.story .ring { display: block; width: 78px; height: 78px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, var(--brand-2), var(--brand), #e64980, var(--brand-2)); margin: 0 auto 6px; transition: transform .15s; }
.story:hover .ring { transform: scale(1.05); }
.story.seen .ring { background: var(--line); }
.story .ring span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); background: var(--deep) center/cover no-repeat; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.4rem; }
.story small { display: block; font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-view { position: fixed; inset: 0; z-index: 200; background: #000; display: none; }
.story-view.open { display: block; }
.sv-frame { position: absolute; inset: 0; margin: auto; max-width: 480px; background: #111 center/cover no-repeat; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.sv-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent 45%, transparent 75%, rgba(0,0,0,.45)); pointer-events: none; }
.sv-bars { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; direction: ltr; }
.sv-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.sv-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.sv-top { position: absolute; top: calc(24px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.sv-top .icon-btn { color: #fff; margin-inline-start: auto; }
.sv-body { position: relative; z-index: 2; padding: 24px 22px calc(34px + env(safe-area-inset-bottom)); }
.sv-body h3 { font-family: var(--display); font-size: 1.9rem; margin-bottom: 8px; }
.sv-body p { margin: 0 0 16px; opacity: .92; }
.sv-tap { position: absolute; top: 80px; bottom: 140px; width: 40%; z-index: 2; cursor: pointer; }
.sv-tap.l { left: 0; } .sv-tap.r { right: 0; }

/* Sections */
.sec { padding: 46px 0 8px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 18px; }
.sec-head h2 { font-family: var(--display); font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.015em; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }
.sec-head .more { font-weight: 700; color: var(--brand); white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; }
.rail-nav { display: flex; gap: 6px; }
.rail-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.rail-nav button:hover { border-color: var(--ink); }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 16px; scrollbar-width: none; direction: ltr; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
html[dir="rtl"] .rail > * { direction: rtl; }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-tile { position: relative; aspect-ratio: 1 / 1.05; border-radius: var(--r); overflow: hidden; background: var(--deep) center/cover no-repeat; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; box-shadow: var(--shadow); transition: transform .18s; }
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,8,5,.8), rgba(10,8,5,.05) 65%); }
.cat-tile b, .cat-tile small { position: relative; }
.cat-tile b { font-size: 1.08rem; } .cat-tile small { opacity: .8; }
.cat-tile.noimg { background-image: linear-gradient(135deg, var(--deep-2), var(--deep)); }

/* Product cards */
.card-p { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.card-p:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(40,25,10,.05), 0 18px 36px rgba(40,25,10,.12); }
.rail .card-p { width: 260px; }
.cp-img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #f3e7d3, #ead9bd); display: grid; place-items: center; overflow: hidden; }
.cp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-p:hover .cp-img img { transform: scale(1.05); }
.ph-letter { font-family: var(--display); font-size: 3rem; color: #c9b08a; }
.tag { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255,255,255,.95); color: var(--ink); font-size: .74rem; font-weight: 800; border-radius: 999px; padding: .22rem .65rem; display: inline-flex; gap: .3rem; align-items: center; }
.tag.hot { background: var(--brand-2); }
.cp-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cp-top { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.cp-name { font-weight: 800; font-size: 1.04rem; line-height: 1.3; }
.cp-desc { margin: 0; color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-buy { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.add { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: space-between; gap: .45rem; border: 0; border-radius: 12px; background: var(--cream); color: var(--ink); padding: .55rem .7rem; font-weight: 700; cursor: pointer; transition: background .15s; font-size: .9rem; }
.add span { color: var(--muted); font-weight: 600; font-size: .82rem; }
.add b { color: var(--brand); }
.add i { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .9rem; flex: none; }
.add:hover { background: #ffe8c8; }
.add:disabled { opacity: .5; cursor: not-allowed; }
.card-p.is-out .cp-img img { filter: grayscale(.8); opacity: .7; }
.av { flex: none; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: .15rem .55rem; white-space: nowrap; }
.av-in { background: #e5f4ea; color: var(--ok); } .av-low { background: #fff1d6; color: #9a5b00; } .av-out { background: #fde7e5; color: var(--bad); }
.grid-p { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

/* Offers */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.rail .offer { width: min(420px, 86vw); }
.offer { position: relative; min-height: 210px; border-radius: 22px; overflow: hidden; color: #fff; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--brand) center/cover no-repeat; box-shadow: var(--shadow); }
.offer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,8,5,.78), rgba(10,8,5,.1) 70%); }
.offer.plain::before { background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.22), transparent 40%); }
.offer > * { position: relative; }
.offer .badge-big { position: absolute; top: 18px; inset-inline-end: 18px; background: #fff; color: var(--brand); font-weight: 900; font-size: 1.15rem; border-radius: 14px; padding: .35rem .75rem; transform: rotate(-4deg); }
.offer h3 { font-family: var(--display); font-size: 1.6rem; margin-bottom: 6px; }
.offer p { margin: 0 0 14px; opacity: .92; }
.offer .until { font-size: .8rem; opacity: .8; margin-bottom: 10px; }

/* Feature strip, info band */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.feature { background: #fff; border-radius: var(--r); padding: 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.feature i { width: 46px; height: 46px; border-radius: 14px; background: var(--cream); color: var(--brand); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.feature b { display: block; } .feature span { color: var(--muted); font-size: .86rem; }
.band { margin-top: 56px; background: var(--deep); color: #fff; border-radius: 28px; padding: clamp(26px, 5vw, 54px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(242,154,31,.35), transparent 65%); inset-inline-end: -120px; top: -160px; }
.band h2 { font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.band p { opacity: .85; margin: 0 0 20px; }
.band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.band li { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.07); border-radius: 14px; padding: 12px 14px; }
.band li i { color: var(--brand-2); font-size: 1.2rem; }

/* Page headers, filters */
.page-head { padding: 34px 0 10px; }
.page-head h1 { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.02em; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; } .crumbs a:hover { color: var(--brand); }
.filters { position: sticky; top: 72px; z-index: 20; background: var(--bg); padding: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.search { display: flex; gap: 8px; align-items: center; }
.search .in { flex: 1; position: relative; }
.search .in i { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 14px; color: var(--soft); }
.search input { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: .8rem 1rem; padding-inline-start: 2.6rem; font-size: 16px; }
.search input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(200,68,13,.12); }
.search select { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: .78rem .9rem; font-size: 15px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .45rem 1rem; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip small { opacity: .6; font-weight: 600; }
.toggle { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty i { font-size: 2.6rem; display: block; margin-bottom: 10px; color: var(--soft); }

/* Product page */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 26px 0; align-items: start; }
.pd-img { border-radius: 26px; overflow: hidden; aspect-ratio: 1 / .85; background: linear-gradient(135deg, #f3e7d3, #ead9bd); display: grid; place-items: center; box-shadow: var(--shadow); }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd h1 { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; margin: 8px 0 10px; }
.pd .price { font-size: 1.7rem; font-weight: 800; color: var(--brand); margin: 6px 0 14px; }
.pd .desc { color: #4b433a; font-size: 1.05rem; margin: 0 0 22px; }
.opts { display: grid; gap: 10px; margin-bottom: 18px; }
.opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 16px; cursor: pointer; background: #fff; }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; }
.opt b { margin-inline-start: auto; }
.opt:has(input:checked) { border-color: var(--brand); background: #fff8f0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 42px; height: 42px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; border-radius: 50%; }
.qty span, .qty input { min-width: 34px; text-align: center; font-weight: 800; border: 0; width: 40px; background: none; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.meta-list { display: grid; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.meta-list div { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.meta-list i { color: var(--brand); }

/* Forms, cards */
.panel { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px); }
.panel h2, .panel h3 { font-size: 1.2rem; margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .78rem .9rem; background: #fff; font-size: 16px; }
html[dir="rtl"] .field input, html[dir="rtl"] .field select, html[dir="rtl"] .field textarea { padding-top: .45rem; padding-bottom: .45rem; line-height: 2; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; background: #f1e9db; border-radius: 14px; padding: 5px; gap: 5px; margin-bottom: 16px; }
.seg label { flex: 1; text-align: center; padding: .65rem; border-radius: 10px; font-weight: 700; cursor: pointer; display: flex; gap: .4rem; align-items: center; justify-content: center; }
.seg input { display: none; }
.seg label:has(input:checked) { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.alert { border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.alert.err { background: #fde7e5; color: var(--bad); } .alert.ok { background: #e5f4ea; color: var(--ok); } .alert.info { background: #fff3e2; color: #8a4b06; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.sum-row.total { font-size: 1.25rem; font-weight: 800; border-top: 1.5px dashed var(--line); margin-top: 6px; padding-top: 12px; }
.sum-row b, .sum-row span:last-child { direction: ltr; unicode-bidi: isolate; }
.layout-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; padding: 10px 0 40px; }
.sticky { position: sticky; top: 92px; }
.line-it { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-it img, .line-it .noimg { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; flex: none; background: #f3e7d3; }
.line-it .nm { flex: 1; min-width: 0; font-weight: 700; line-height: 1.3; }
.line-it .nm small { display: block; color: var(--muted); font-weight: 500; }
.line-it .amt { font-weight: 800; min-width: 70px; text-align: end; direction: ltr; }
.mini-qty { display: inline-flex; align-items: center; gap: 2px; background: var(--cream); border-radius: 999px; }
.mini-qty button { width: 30px; height: 30px; border: 0; background: none; font-weight: 800; font-size: 1rem; cursor: pointer; border-radius: 50%; }
.mini-qty span { min-width: 20px; text-align: center; font-weight: 800; }

/* Order status */
.steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.steps li { text-align: center; font-size: .82rem; font-weight: 700; color: var(--soft); position: relative; padding-top: 44px; }
.steps li::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: #efe6d6; border: 3px solid #fff; box-shadow: 0 0 0 2px #efe6d6; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 20px; left: -50%; width: 100%; height: 3px; background: #efe6d6; }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ok); } .steps li.done::before { background: var(--ok); box-shadow: 0 0 0 2px var(--ok); } .steps li.done::after { background: var(--ok); }
.steps li.now { color: var(--brand); } .steps li.now::before { background: var(--brand); box-shadow: 0 0 0 2px var(--brand), 0 0 0 8px rgba(200,68,13,.15); } .steps li.now::after { background: var(--ok); }
html[dir="rtl"] .steps li::after { left: auto; right: -50%; }
.status-big { font-family: var(--display); font-size: 1.8rem; }

/* Account */
.auth { max-width: 460px; margin: 30px auto 50px; }
.auth .tabs { display: flex; background: #f1e9db; border-radius: 14px; padding: 5px; margin-bottom: 20px; }
.auth .tabs a { flex: 1; text-align: center; padding: .65rem; border-radius: 10px; font-weight: 800; }
.auth .tabs a.on { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.stat span { color: var(--muted); font-size: .86rem; } .stat b { display: block; font-size: 1.45rem; margin-top: 2px; direction: ltr; unicode-bidi: isolate; }
.orders-list a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.orders-list a:hover { background: #fdf9f2; }
.orders-list .oi { width: 46px; height: 46px; border-radius: 14px; background: var(--cream); color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.orders-list .on { flex: 1; min-width: 0; } .orders-list .on b { display: block; } .orders-list .on small { color: var(--muted); }
.st { font-size: .74rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; background: #efe6d6; white-space: nowrap; }
.st-pending { background: #fff1d6; color: #9a5b00; } .st-delivered { background: #e5f4ea; color: var(--ok); } .st-cancelled { background: #fde7e5; color: var(--bad); }
.st-confirmed, .st-preparing, .st-ready, .st-out_for_delivery { background: #e6eefc; color: #2a52be; }

/* Info page */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
table.plain { width: 100%; border-collapse: collapse; }
table.plain th, table.plain td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.plain th { font-size: .8rem; color: var(--muted); }

/* Footer */
.sh-foot { background: #14110d; color: #d9d0c3; margin-top: 70px; padding: 54px 0 calc(24px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; }
.sh-foot h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.sh-foot a { display: block; padding: 4px 0; color: #d9d0c3; }
.sh-foot p a { display: inline; padding: 0; } .sh-foot a:hover { color: #fff; }
.sh-foot p { margin: 0 0 10px; }
.sh-foot .logo { color: #fff; margin-bottom: 12px; display: flex; }
.social { display: flex; gap: 8px; margin-top: 14px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; padding: 0; font-size: 1.05rem; }
.social a:hover { background: var(--brand); }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 18px; font-size: .86rem; }
.foot-base a, .foot-base .lang-switch { display: inline; color: #d9d0c3; }

/* Cart drawer */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-shade { position: absolute; inset: 0; background: rgba(20,14,8,.45); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-shade { opacity: 1; }
.drawer-panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(430px, 100%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); }
html[dir="rtl"] .drawer-panel { transform: translateX(-100%); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: calc(16px + env(safe-area-inset-top)) 20px 12px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.25rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.row-b { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 800; }

/* Toast + tab bar */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); background: var(--ink); color: #fff; border-radius: 999px; padding: .7rem 1.2rem; font-weight: 700; z-index: 150; opacity: 0; pointer-events: none; transition: all .25s; display: flex; gap: .5rem; align-items: center; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--brand-2); text-decoration: underline; pointer-events: auto; }
.tabbar { display: none; }

/* ---------- Tablet & phone ---------- */
@media (max-width: 1080px) {
  .links a { padding: .5rem .6rem; font-size: .9rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .only-m { display: revert !important; }
  .hide-xs { display: none !important; }
  /* backdrop-filter would trap the fixed slide-in menu inside the bar */
  .sh-nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav-row { height: 62px; gap: .4rem; }
  .logo { font-size: 1.02rem; } .logo-mark { width: 36px; height: 36px; }
  .links { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(310px, 86vw); background: #fff; flex-direction: column; margin: 0; padding: calc(80px + env(safe-area-inset-top)) 16px 20px; gap: 4px; z-index: 60; transform: translateX(-105%); transition: transform .25s; box-shadow: var(--shadow-lg); overflow-y: auto; }
  html[dir="rtl"] .links { transform: translateX(105%); }
  body.menu-open .links { transform: none; }
  body.menu-open .sh-nav { z-index: 70; }
  .links a { display: flex; gap: .8rem; align-items: center; font-size: 1.02rem; padding: .8rem .9rem; border-radius: 14px; }
  .links a.on { background: var(--cream); color: var(--brand); }
  .m-auth { display: flex !important; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .m-auth .btn-ghost, .m-auth .btn-solid { justify-content: center; }
  .m-auth .staff-link { color: var(--muted); font-size: .9rem; }
  body.menu-open .nav-shade { display: block; position: fixed; inset: 0; background: rgba(20,14,8,.4); z-index: 55; }
  .cart-btn { width: 42px; height: 42px; }
  .filters { top: 62px; }
  .pd { grid-template-columns: 1fr; gap: 18px; padding-top: 10px; }
  .layout-2 { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .band { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); height: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: .7rem; font-weight: 700; color: var(--muted); background: none; border: 0; position: relative; }
  .tabbar i { font-size: 1.3rem; }
  .tabbar .tab-cart i { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin-top: -26px; box-shadow: 0 8px 18px rgba(200,68,13,.35); border: 4px solid #fff; }
  .tabbar .tab-cart b { position: absolute; top: -18px; inset-inline-start: calc(50% + 10px); background: var(--brand-2); color: var(--ink); border-radius: 999px; font-size: .7rem; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
  body.shop { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
  .sh-foot { margin-top: 50px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 10px; }
  .slides { border-radius: 20px; }
  .slide { min-height: 420px; }
  .slide::before { background: linear-gradient(0deg, rgba(10,8,5,.88) 0%, rgba(10,8,5,.35) 60%, rgba(10,8,5,.1)) !important; }
  .slide-in { padding: 22px 20px 46px; }
  .slide p { font-size: .98rem; margin-bottom: 16px; }
  .arrow { display: none; }
  .dots { inset-inline-end: auto; left: 50%; transform: translateX(-50%); bottom: 16px; }
  .sec { padding-top: 34px; }
  .rail-nav { display: none; }
  .rail .card-p { width: 210px; }
  .card-p.compact .cp-body { padding: 10px 12px 12px; }
  .grid-p { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid-p .cp-body { padding: 10px 10px 12px; }
  .grid-p .cp-name { font-size: .93rem; }
  .grid-p .cp-desc { display: none; }
  .grid-p .cp-top { flex-direction: column; gap: 4px; }
  .grid-p .add { padding: .45rem .5rem; font-size: .82rem; }
  .grid-p .add i { width: 22px; height: 22px; }
  .cat-tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 128px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .cat-tiles::-webkit-scrollbar { display: none; }
  .features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature { flex-direction: column; align-items: flex-start; padding: 14px; gap: 8px; }
  .offers { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps li { font-size: .7rem; padding-top: 40px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .f-brand { grid-column: 1 / -1; }
  .search select { max-width: 130px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
[hidden] { display: none !important; }
.links a.btn-solid, .links a.btn-solid:hover { color: #fff; background: var(--brand); }
/* GPS location picker, live tracking */
.loc-box { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.loc-map { height: 260px; background: #efe8da; }
.loc-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px; }
.loc-bar .btn-solid { padding: .6rem 1rem; }
.track-map { height: 340px; border-radius: 18px; overflow: hidden; background: #efe8da; }
.rider-card { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.rider-card img, .rider-card .ph { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--cream); display: grid; place-items: center; color: var(--brand); font-size: 1.4rem; flex: none; }
.eta-big { font-size: 1.6rem; font-weight: 800; color: var(--ok); line-height: 1.2; }
.avatar { border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.photo-field { display: flex; gap: 1rem; align-items: center; margin-bottom: 14px; }
.photo-field .pf-prev img, .photo-field .pf-prev .avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.photo-field .btn, .photo-field label.btn { display: inline-flex; gap: .4rem; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; padding: .45rem .9rem; font-weight: 700; cursor: pointer; background: #fff; }
.photo-field .form-text { font-size: .8rem; color: var(--muted); }
/* saved location field (account profile) */
.place-field .map-box { height: 220px; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); background: #eef1ee; }
.place-field .d-flex { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; }
.place-field .btn { display: inline-flex; gap: .4rem; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; padding: .4rem .85rem; font-weight: 700; cursor: pointer; background: #fff; font: inherit; font-size: .88rem; }
.place-field .btn-link { border: 0; background: none; color: #b42318; text-decoration: underline; }
.place-field .small { font-size: .82rem; } .place-field .text-muted { color: var(--muted); }
.photo-field .form-check { display: flex; gap: .35rem; align-items: center; font-size: .85rem; }
/* keep map layers below sticky headers and the bottom tab bar */
.loc-map, .track-map, .place-field .map-box { position: relative; isolation: isolate; z-index: 0; }
