/* =====================================================================
   Online shop — app-style design (mobile first, Arabic RTL + English)
   ===================================================================== */
:root {
  --p: #0f9f6e; --p6: #0c8a5f; --pd: #0b7550; --p1: #d3f3e4; --pl: #ebf8f2; --p0: #f4fbf8;
  --ink: #0f1728; --tx: #1d2939; --tx2: #475467; --mu: #667085; --mu2: #98a2b3;
  --bd: #eaecf0; --bd2: #d0d5dd; --bg: #ffffff; --soft: #f5f6f8; --tile: #f4f5f7;
  --red: #e5484d; --redl: #fff0f0; --amb: #c4320a; --ambl: #fff6ed; --blue: #1570ef; --bluel: #eff6ff; --vio: #6938ef; --viol: #f4f3ff;
  --r: 18px; --r2: 14px; --r3: 10px;
  --sh1: 0 1px 2px rgba(16, 24, 40, .05);
  --sh2: 0 4px 16px rgba(16, 24, 40, .08);
  --sh3: 0 12px 32px rgba(16, 24, 40, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav: 64px; --safe: env(safe-area-inset-bottom, 0px);
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 15px/1.5 var(--font); padding-bottom: calc(var(--nav) + var(--safe) + 16px); -webkit-font-smoothing: antialiased; }
body.soft { background: var(--soft); }
body.has-vcart { padding-bottom: calc(var(--nav) + var(--safe) + 84px); }
body.locked { overflow: hidden; }
a { color: var(--p); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; }
[hidden] { display: none !important; }
.ic { width: 22px; height: 22px; flex: none; display: inline-block; vertical-align: middle; }
.ic.sm { width: 16px; height: 16px; }
[dir=rtl] .flip { transform: scaleX(-1); }
:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }

/* ---------------------------------------------------------------- header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); transition: box-shadow .2s; }
.hdr.up { box-shadow: 0 1px 0 var(--bd), 0 6px 18px rgba(16, 24, 40, .06); }
.hdr.hdr-s { top: -58px; }
.hdr-in { max-width: 1200px; margin: 0 auto; padding: 8px 16px 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand act" "search search"; align-items: center; column-gap: 10px; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; min-width: 0; height: 48px; color: var(--ink); }
.logo { width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(145deg, #13b57f, var(--p6)); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 4px 10px rgba(15, 159, 110, .28); }
.logo .ic { width: 22px; height: 22px; }
.brand-tx { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.brand-n { color: var(--ink); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc { display: flex; align-items: center; gap: 3px; color: var(--mu); font-size: 12.5px; min-width: 0; margin-top: 2px; }
.loc .ic { width: 14px; height: 14px; color: var(--p); }
.loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc b { color: var(--tx); font-weight: 600; }
.hdr-act { grid-area: act; display: flex; align-items: center; gap: 6px; }
.ib { position: relative; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 12px; background: var(--soft); color: var(--tx); display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; font-size: 13px; border: 0; transition: background .15s; }
.ib:hover { background: #eceef2; }
.ib.lang { font-size: 13px; letter-spacing: .02em; }
.ib .av { width: 26px; height: 26px; border-radius: 50%; background: var(--p); color: #fff; display: grid; place-items: center; font-size: 13px; }
.acc-n { font-weight: 600; }
.ib.acc, .ib.cart-ib { display: none; }
.cart-ib b { position: absolute; top: -5px; inset-inline-end: -5px; background: var(--red); color: #fff; font-size: 11px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.hdr-links { display: none; }

/* search */
.search { grid-area: search; position: relative; margin-top: 2px; }
.search input { width: 100%; height: 46px; border: 1.5px solid transparent; border-radius: 14px; padding-inline: 44px 40px; background: var(--soft); color: var(--tx); outline: none; font-size: 15px; transition: border-color .15s, background .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: var(--mu2); }
.search input:focus { background: #fff; border-color: var(--p); box-shadow: 0 0 0 4px rgba(15, 159, 110, .12); }
.s-ic { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); color: var(--mu); width: 20px; height: 20px; pointer-events: none; }
.s-clr { position: absolute; top: 50%; inset-inline-end: 8px; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: #e4e7ec; color: var(--tx2); display: grid; place-items: center; }
.s-clr .ic { width: 15px; height: 15px; }
.s-results { position: absolute; top: calc(100% + 8px); inset-inline: 0; background: #fff; border-radius: 16px; box-shadow: var(--sh3); max-height: min(70vh, 520px); overflow: auto; z-index: 60; padding: 6px; border: 1px solid var(--bd); animation: pop .16s var(--ease); }
.s-results a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; color: var(--tx); }
.s-results a:hover, .s-results a:focus { background: var(--soft); }
.s-results img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--bd); flex: none; padding: 3px; }
.sr-n { flex: 1; font-size: 14px; font-weight: 500; line-height: 1.3; } .sr-p { font-weight: 700; color: var(--ink); white-space: nowrap; }
.sr-so { color: var(--red); font-weight: 600; }
.sr-all { color: var(--p) !important; font-weight: 600; border-top: 1px solid var(--bd); border-radius: 0 0 12px 12px !important; margin-top: 4px; }
.sr-all .ic { width: 18px; height: 18px; margin-inline: 14px; }
.sr-empty { padding: 22px; text-align: center; color: var(--mu); display: flex; flex-direction: column; align-items: center; gap: 6px; }
body.searching::after { content: ""; position: fixed; inset: 0; background: rgba(15, 23, 40, .25); z-index: 45; animation: fade .2s; }

/* inner pages: back arrow + title */
.hdr-b .hdr-in { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "back title act"; padding-block: 8px; }
.hdr-b .back { grid-area: back; background: transparent; padding: 0; width: 40px; }
.hdr-b .back:hover { background: var(--soft); }
.hdr-t { grid-area: title; margin: 0; font-size: 17px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-brand-d { display: none; }

/* announcements: one line, changes every few seconds */
.ann { position: relative; height: 40px; overflow: hidden; }
.ann-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px; font-size: 12.5px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.ann-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: center; line-height: 1.35; }
.ann-item.on { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 12px 16px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; margin: 8px 0 12px; background: var(--pl); color: var(--pd); font-weight: 500; font-size: 14px; animation: pop .25s var(--ease); }
.alert .ic { width: 20px; height: 20px; margin-top: 1px; }
.alert.error { background: var(--redl); color: #b42318; } .alert.warn { background: var(--ambl); color: var(--amb); }
.muted { color: var(--mu); } .small { font-size: 13px; } .center { text-align: center; }
.sec { margin: 22px 0; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sec-h h2 { font-size: 19px; margin: 0; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.h-ic { width: 22px; height: 22px; color: var(--p); }
.more { display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 600; color: var(--p); background: var(--pl); padding: 6px 10px 6px 12px; border-radius: 999px; white-space: nowrap; }
[dir=rtl] .more { padding: 6px 12px 6px 10px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 6px 0 12px; }
.page-h h1 { margin: 0; font-size: 22px; font-weight: 700; }
.page-h .cnt { color: var(--mu); font-size: 13px; font-weight: 500; }

/* ---------------------------------------------------------------- home */
.hello { margin: 4px 0 14px; }
.hello h1 { margin: 0; font-size: 22px; font-weight: 700; }
.hello p { margin: 2px 0 0; color: var(--mu); }
.banners { position: relative; margin: 0 -16px; }
.bn-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; scrollbar-width: none; scroll-padding-inline: 16px; }
.bn-track::-webkit-scrollbar { display: none; }
.bn { flex: 0 0 100%; scroll-snap-align: start; border-radius: 22px; overflow: hidden; position: relative; min-height: 168px; color: #fff; display: flex; align-items: stretch; isolation: isolate; }
.bn img.bn-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.bn-img-only { background: var(--tile); }
.bn-tx { padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 6px; max-width: 68%; position: relative; z-index: 1; }
.bn-tx small { font-size: 12px; font-weight: 600; opacity: .9; text-transform: uppercase; letter-spacing: .04em; }
[dir=rtl] .bn-tx small { letter-spacing: 0; }
.bn-tx b { font-size: 21px; line-height: 1.25; font-weight: 700; }
.bn-tx span { font-size: 13.5px; opacity: .92; }
.bn-cta { align-self: flex-start; margin-top: 6px; background: #fff; color: var(--ink); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.bn-art { position: absolute; inset-inline-end: -4px; bottom: -6px; font-size: 44px; line-height: 1; display: grid; grid-template-columns: repeat(2, auto); gap: 0 4px; transform: rotate(-8deg); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .18)); z-index: 0; }
.bn.g1 { background: radial-gradient(120% 140% at 100% 0%, #34d399 0%, transparent 50%), linear-gradient(135deg, #0b7550, #0f9f6e 60%, #16b67f); }
.bn.g2 { background: radial-gradient(120% 140% at 100% 0%, #fdb022 0%, transparent 55%), linear-gradient(135deg, #c4320a, #f04438 55%, #fb6514); }
.bn.g3 { background: radial-gradient(120% 140% at 100% 0%, #7a5af8 0%, transparent 55%), linear-gradient(135deg, #1e3a8a, #1570ef 60%, #2e90fa); }
.bn.g4 { background: linear-gradient(135deg, #3b2a78, #6938ef); }
.bn-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.bn-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--bd2); transition: width .3s var(--ease), background .3s; cursor: pointer; }
.bn-dots i.on { width: 20px; background: var(--p); }

.info { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 4px; border: 1px solid var(--bd); border-radius: 16px; overflow: hidden; }
.info div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 6px; min-width: 0; }
.info div + div { border-inline-start: 1px solid var(--bd); }
.info .ic { width: 20px; height: 20px; color: var(--p); }
.info b { display: block; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info small { display: block; font-size: 11.5px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info span { min-width: 0; line-height: 1.25; }

/* category tiles */
.ctiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
.ct { color: var(--tx); text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.25; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ct .ci { width: 100%; aspect-ratio: 1; border-radius: 20px; display: grid; place-items: center; overflow: hidden; font-size: 26px; font-weight: 700; transition: transform .2s var(--ease); position: relative; }
.ct:active .ci { transform: scale(.94); }
.ct .ci img { width: 78%; height: 78%; object-fit: contain; }
.ct .ci img.cover { width: 100%; height: 100%; object-fit: cover; }
.ct span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.ct small { color: var(--mu); font-weight: 500; font-size: 11.5px; margin-top: -4px; }
.c0 { background: #e7f7ef; color: #0b7550; } .c1 { background: #fff3e6; color: #c4320a; } .c2 { background: #eaf2ff; color: #1849a9; } .c3 { background: #fdeef4; color: #c11574; }
.c4 { background: #f1edff; color: #5925dc; } .c5 { background: #e5f7fa; color: #0e7090; } .c6 { background: #fef6db; color: #a15c07; } .c7 { background: #eef2f6; color: #364152; }
.ct.all .ci { background: var(--soft); color: var(--tx2); }
.ct.all .ic { width: 28px; height: 28px; }

/* offers (round pictures) */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 78px; text-align: center; font-size: 12px; font-weight: 600; color: var(--tx); line-height: 1.25; }
.story .ring { width: 74px; height: 74px; margin: 0 auto 6px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #0f9f6e, #34d399, #fdb022, #f04438, #0f9f6e); }
.story .ring img, .story .ring span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #fff; display: grid; place-items: center; color: var(--red); }
.story .ring .ic { width: 28px; height: 28px; }
.story > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* why us */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.why div { background: var(--soft); border-radius: 16px; padding: 14px; font-weight: 600; font-size: 13.5px; color: var(--tx); display: flex; flex-direction: column; gap: 8px; line-height: 1.35; }
.why .ic { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: #fff; color: var(--p); box-shadow: var(--sh1); }
.story-sec { background: var(--soft); border-radius: 22px; padding: 18px; display: grid; gap: 14px; }
.story-sec h2 { margin: 0 0 6px; }
.story-sec p { margin: 0; }
.story-sec img { border-radius: 16px; width: 100%; max-height: 280px; object-fit: cover; }

/* ---------------------------------------------------------------- product cards */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 4px; margin: 0 -16px; scrollbar-width: none; scroll-padding-inline: 16px; }
.rail::-webkit-scrollbar { display: none; }
.rail .pcard { width: 136px; flex: none; scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
@media (max-width: 359px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pcard { display: flex; flex-direction: column; min-width: 0; position: relative; }
.pimg { position: relative; aspect-ratio: 1; background: var(--tile); border-radius: 16px; cursor: pointer; overflow: hidden; }
.pimg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) var(--tile); background-size: 250% 100%; animation: shimmer 1.3s infinite linear; }
.pimg:has(img.ok)::before { display: none; }
.pimg img { position: relative; width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; opacity: 0; transform: scale(.97); transition: opacity .3s, transform .35s var(--ease); }
.pimg img.ok { opacity: 1; transform: none; }
.pcard:hover .pimg img.ok { transform: scale(1.04); }
.bdgs { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.bdg { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 7px; background: var(--p); color: #fff; width: max-content; line-height: 1.5; }
.bdg.sale { background: var(--red); } .bdg.age { background: #1d2939; }
.sold-tag { position: absolute; inset: auto 8px 8px; background: rgba(16, 24, 40, .78); color: #fff; text-align: center; font-size: 11.5px; font-weight: 700; padding: 4px; border-radius: 9px; z-index: 2; }
.pcard.sold .pimg img { filter: grayscale(1); opacity: .5; }
.pbody { padding: 8px 2px 0; display: flex; flex-direction: column; }
.pprice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.pprice b { font-size: 15px; font-weight: 700; color: var(--ink); }
.pprice.disc b { color: var(--red); }
.pprice s { color: var(--mu2); font-size: 12px; }
.pname { font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--tx); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.plbp { color: var(--mu); font-size: 11.5px; margin-top: 2px; }
.plow { color: var(--amb); font-size: 11.5px; font-weight: 600; margin-top: 2px; }

/* + on the picture, then − 1 + */
.pcard .pact { position: absolute; bottom: 8px; inset-inline-end: 8px; z-index: 3; display: flex; justify-content: flex-end; }
.padd { border: 0; background: #fff; color: var(--p); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(16, 24, 40, .16); transition: transform .15s var(--ease), background .15s, color .15s; }
.padd .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.padd:hover { background: var(--p); color: #fff; }
.padd:active { transform: scale(.88); }
.padd:disabled { background: #e4e7ec; color: var(--mu); box-shadow: none; cursor: default; }
.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--p); color: #fff; border-radius: 999px; height: 36px; box-shadow: 0 4px 12px rgba(15, 159, 110, .35); animation: grow .22s var(--ease); overflow: hidden; }
.stepper button { border: 0; background: transparent; color: #fff; width: 34px; height: 36px; display: grid; place-items: center; flex: none; }
.stepper button:active { background: rgba(0, 0, 0, .12); }
.stepper .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.stepper span { font-weight: 700; font-size: 14px; min-width: 18px; text-align: center; }
.pcard .pact:has(.stepper) { inset-inline-start: 8px; }
.pcard .stepper { width: 100%; max-width: 132px; margin-inline-start: auto; }
.pimg img[src$="no-image.svg"] { padding: 26%; opacity: .35 !important; mix-blend-mode: normal; }
.pact.busy { pointer-events: none; }
.pact.busy .stepper span, .pact.busy .padd .ic { opacity: .45; }
.pcard.in .pimg { box-shadow: inset 0 0 0 2px var(--p); }

/* big add button (sheet, product page) */
.padd.lg { width: 100%; height: 54px; border-radius: 16px; background: var(--p); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 700; font-size: 16px; box-shadow: 0 8px 20px rgba(15, 159, 110, .3); }
.padd.lg:hover { background: var(--p6); }
.padd.lg:disabled { justify-content: center; background: #e4e7ec; color: var(--mu); box-shadow: none; }
.pact[data-v=lg] { display: flex; gap: 10px; align-items: center; }
.pact[data-v=lg] .stepper { height: 54px; border-radius: 16px; flex: 1; max-width: 180px; }
.pact[data-v=lg] .stepper button { width: 54px; height: 54px; }
.pact[data-v=lg] .stepper span { font-size: 18px; }
.pact[data-v=lg] .go-cart { flex: 1; height: 54px; border-radius: 16px; background: var(--ink); }

.fly { position: fixed; top: 0; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--p); box-shadow: 0 0 0 4px rgba(15, 159, 110, .25); z-index: 100; pointer-events: none; }

/* ---------------------------------------------------------------- browse / lists */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 2px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--soft); color: var(--tx); font-weight: 600; font-size: 13.5px; white-space: nowrap; border: 1.5px solid transparent; transition: background .15s, color .15s; }
.chip img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; margin-inline-start: -6px; }
.chip .ic { width: 16px; height: 16px; }
.chip.on { background: var(--ink); color: #fff; }
.chip.tog.on { background: var(--pl); color: var(--pd); border-color: var(--p); }
.catbar { position: sticky; top: 56px; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); margin: -12px -16px 0; padding: 10px 16px; border-bottom: 1px solid var(--bd); }
.catbar .chips { margin: 0 -16px; }
.sortbar { margin: 4px 0 14px; }
.sortbar .chip { height: 32px; font-size: 13px; background: #fff; border-color: var(--bd); }
.sortbar .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager { display: flex; justify-content: center; gap: 8px; margin: 20px 0; }
.pager a, .pager span { padding: 9px 16px; border-radius: 12px; background: var(--soft); font-weight: 600; color: var(--tx); }
.pager span { background: var(--ink); color: #fff; }
.more-btn { display: flex; margin: 24px auto 8px; min-width: 200px; }
.empty { text-align: center; color: var(--mu); padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty .big { width: 88px; height: 88px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--mu2); margin-bottom: 8px; }
.empty .big .ic { width: 40px; height: 40px; }
.empty h2 { margin: 0; font-size: 18px; }
.empty p { margin: 0 0 10px; }

/* all categories page */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }

/* ---------------------------------------------------------------- bottom bar + cart bar */
.bnav { position: fixed; bottom: 0; inset-inline: 0; height: calc(var(--nav) + var(--safe)); padding-bottom: var(--safe); background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); display: flex; border-top: 1px solid var(--bd); z-index: 44; }
.bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--mu); position: relative; }
.bnav a .ic { width: 24px; height: 24px; transition: transform .2s var(--ease); }
.bnav a.on { color: var(--p); }
.bnav a.on .ic { stroke-width: 2.3; }
.bnav a.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--p); }
.bnav a:active .ic { transform: scale(.88); }
.bn-count { position: absolute; top: 7px; inset-inline-start: calc(50% + 5px); background: var(--red); color: #fff; font-size: 10.5px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; box-sizing: content-box; }
.vcart { position: fixed; inset-inline: 12px; bottom: calc(var(--nav) + var(--safe) + 10px); height: 56px; border-radius: 16px; background: var(--p); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 10px; z-index: 43; box-shadow: 0 10px 24px rgba(15, 159, 110, .38); animation: rise .3s var(--ease); max-width: 560px; margin: 0 auto; }
[dir=rtl] .vcart { padding: 0 10px 0 16px; }
.vcart:active { transform: scale(.985); }
.vc-n { min-width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-weight: 700; padding: 0 6px; }
.vc-t { flex: 1; font-weight: 700; font-size: 16px; }
.vc-s { font-size: 16px; font-weight: 700; }
.bump { animation: bump .45s var(--ease); }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav) + var(--safe) + 78px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 14px; z-index: 90; font-size: 14px; font-weight: 600; box-shadow: var(--sh3); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); transition: opacity .2s, transform .25s var(--ease); }
.toast .ic { width: 18px; height: 18px; color: #6ce9a6; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-vcart .toast { bottom: calc(var(--nav) + var(--safe) + 80px); }

/* ---------------------------------------------------------------- sheet / modal */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 40, 0); z-index: 80; display: flex; align-items: flex-end; justify-content: center; transition: background .22s; }
.modal .modal-box { background: #fff; width: 100%; max-width: 520px; border-radius: 24px 24px 0 0; position: relative; max-height: 92vh; overflow: auto; transform: translateY(100%); transition: transform .28s var(--ease); padding-bottom: var(--safe); overscroll-behavior: contain; }
.modal.open, .modal.age-gate { background: rgba(15, 23, 40, .5); }
.modal.open .modal-box, .modal.age-gate .modal-box { transform: none; }
.age-gate .modal-box { animation: rise .3s var(--ease); padding: 24px 20px calc(20px + var(--safe)); text-align: center; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: #d0d5dd; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 2; }
.modal-x { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; border: 0; background: rgba(255, 255, 255, .92); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--sh2); color: var(--tx); }
.modal-x .ic { width: 18px; height: 18px; }
.pm-media { background: var(--tile); aspect-ratio: 4 / 3; max-height: 340px; width: 100%; display: grid; place-items: center; }
.pm-media img { width: 100%; height: 100%; object-fit: contain; padding: 22px; mix-blend-mode: multiply; opacity: 0; transition: opacity .25s; }
.pm-media img.ok { opacity: 1; }
.pm-info { padding: 16px 18px 4px; }
.pm-cat { color: var(--p); font-size: 12.5px; font-weight: 600; }
.pm-info h3 { margin: 4px 0 8px; font-size: 20px; font-weight: 700; }
.pm-info .pprice b { font-size: 22px; }
.pm-info .plbp { font-size: 13px; }
.pm-info p { color: var(--tx2); white-space: pre-line; margin: 12px 0 0; font-size: 14px; }
.pm-link { display: inline-flex; align-items: center; gap: 2px; margin: 12px 0 4px; font-weight: 600; font-size: 14px; }
.pm-foot { position: sticky; bottom: 0; background: #fff; padding: 12px 18px 16px; border-top: 1px solid var(--bd); }
.age-gate .big { width: 72px; height: 72px; border-radius: 50%; background: var(--redl); color: var(--red); display: grid; place-items: center; margin: 0 auto 10px; font-weight: 800; font-size: 22px; }
.age-gate h3 { margin: 0 0 6px; font-size: 20px; }
.age-gate p { color: var(--mu); margin: 0 0 16px; }

/* ---------------------------------------------------------------- forms, cards, buttons */
.card { background: #fff; border-radius: var(--r); padding: 16px; margin-bottom: 12px; border: 1px solid var(--bd); }
body.soft .card { border-color: transparent; box-shadow: var(--sh1); }
.card > h2, .card-h { font-size: 16px; margin: 0 0 12px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card-h .ic, .card > h2 .ic { width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: var(--pl); color: var(--p); }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; color: var(--tx2); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], textarea, select.in {
  width: 100%; border: 1.5px solid var(--bd2); border-radius: 13px; padding: 12px 14px; background: #fff; outline: none; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--mu2); }
input:focus, textarea:focus, select:focus { border-color: var(--p); box-shadow: 0 0 0 4px rgba(15, 159, 110, .12); }
input:disabled { background: var(--soft); color: var(--mu); }
textarea { resize: vertical; min-height: 70px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 13px 20px; background: var(--p); color: #fff; font-weight: 700; font-size: 15px; text-align: center; transition: background .15s, transform .1s, opacity .15s; min-height: 48px; }
.btn:hover { background: var(--p6); }
.btn:active { transform: scale(.98); }
.btn .ic { width: 20px; height: 20px; }
.btn.block { width: 100%; } .btn.light { background: var(--soft); color: var(--tx); } .btn.light:hover { background: #eceef2; }
.btn.red { background: var(--redl); color: #b42318; } .btn.red:hover { background: #ffe1e1; }
.btn.ghost { background: transparent; color: var(--p); }
.btn.dark { background: var(--ink); } .btn.dark:hover { background: #1d2939; }
.btn:disabled, .btn.off { opacity: .45; pointer-events: none; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--tx); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--p); margin: 0; flex: none; }
.field { position: relative; }
.field > .ic { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); color: var(--mu2); width: 20px; height: 20px; pointer-events: none; }
.field input { padding-inline-start: 44px; }
.field input[dir=ltr] { padding-inline: 44px; }
.field .eye { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); border: 0; background: none; color: var(--mu); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
.field .eye.on { color: var(--p); }
.field:focus-within > .ic { color: var(--p); }

/* auth */
.auth { max-width: 420px; margin: 10px auto 20px; }
.auth-top { text-align: center; margin: 8px 0 18px; }
.auth-top .logo { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 12px; }
.auth-top .logo .ic { width: 32px; height: 32px; }
.auth-top h1 { font-size: 24px; margin: 0 0 4px; }
.auth-top p { margin: 0; color: var(--mu); }
.auth .card { padding: 20px; }
.auth .or { text-align: center; margin: 16px 0 0; font-size: 14px; }
.auth .help { text-align: center; color: var(--mu); font-size: 13px; margin: 14px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.auth .help .ic { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- cart */
.clist { padding: 4px 16px; }
.cline { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--bd); transition: opacity .25s, transform .25s; }
.cline:last-child { border-bottom: 0; }
.cline.gone { opacity: 0; transform: translateX(30px); }
.cline > img, .cline .cl-img { width: 68px; height: 68px; object-fit: contain; border-radius: 14px; background: #fff; border: 1px solid var(--bd); flex: none; padding: 5px; }
.cl-b { flex: 1; min-width: 0; }
.cl-n { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--tx); }
.cl-p { color: var(--mu); font-size: 13px; margin-top: 2px; } .cl-p s { color: var(--mu2); }
.cl-w { color: var(--red); font-size: 12px; font-weight: 600; margin-top: 2px; }
.cl-end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.cl-t { font-weight: 700; color: var(--ink); }
.cline .pact .stepper { width: 104px; height: 34px; box-shadow: none; background: var(--pl); color: var(--pd); animation: none; }
.cline .pact .stepper button { color: var(--pd); height: 34px; }
.cline .pact .stepper .ic { width: 16px; height: 16px; }
.sum .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; font-size: 14.5px; }
.sum .row > span:first-child { color: var(--tx2); }
.sum .row.tot { font-size: 18px; font-weight: 700; border-top: 1px dashed var(--bd2); margin-top: 8px; padding-top: 12px; color: var(--ink); }
.sum .row.tot > span:first-child { color: var(--ink); }
.sum .row.disc, .sum .row.disc > span:first-child { color: var(--p); font-weight: 600; }
.sum .row .free { color: var(--p); font-weight: 700; }
.sum .lbp { display: block; font-size: 12px; color: var(--mu); font-weight: 500; text-align: end; }
.promo-note { display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg, var(--pl), #fff); border: 1px dashed #8fdcbc; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; font-size: 13.5px; font-weight: 600; color: var(--pd); }
.promo-note .ic { width: 22px; height: 22px; }
.paybar { position: fixed; inset-inline: 0; bottom: calc(var(--nav) + var(--safe)); z-index: 42; background: #fff; border-top: 1px solid var(--bd); padding: 10px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 -6px 18px rgba(16, 24, 40, .06); }
.paybar .pb-t { line-height: 1.2; }
.paybar .pb-t small { display: block; color: var(--mu); font-size: 12px; }
.paybar .pb-t b { font-size: 19px; color: var(--ink); }
.paybar .btn { flex: 1; min-height: 52px; font-size: 16px; }
body.has-paybar { padding-bottom: calc(var(--nav) + var(--safe) + 96px); }

/* ---------------------------------------------------------------- checkout */
.opt { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--bd); border-radius: 16px; padding: 12px 14px; margin: 0 0 8px; cursor: pointer; transition: border-color .15s, background .15s; color: var(--tx); font-weight: 500; font-size: 14px; position: relative; }
.opt:hover { border-color: var(--bd2); }
.opt input[type=radio] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.opt .o-ic { width: 42px; height: 42px; border-radius: 13px; background: var(--soft); color: var(--tx2); display: grid; place-items: center; flex: none; }
.opt .o-ic .ic { width: 22px; height: 22px; }
.opt .o-tx { flex: 1; min-width: 0; }
.opt .o-tx b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.opt .o-tx small { display: block; color: var(--mu); font-size: 12.5px; line-height: 1.4; }
.opt .o-tx small.warn { color: var(--amb); }
.opt .o-rd { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bd2); flex: none; display: grid; place-items: center; transition: border-color .15s; }
.opt .o-rd::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--p); transform: scale(0); transition: transform .18s var(--ease); }
.opt:has(input:checked), .opt.on { border-color: var(--p); background: var(--p0); }
.opt:has(input:checked) .o-rd, .opt.on .o-rd { border-color: var(--p); }
.opt:has(input:checked) .o-rd::after, .opt.on .o-rd::after { transform: scale(1); }
.opt:has(input:checked) .o-ic, .opt.on .o-ic { background: var(--p); color: #fff; }
.opt img.o-map { width: 64px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.opt.new .o-ic { background: var(--pl); color: var(--p); }
.eta-card { display: flex; align-items: center; gap: 12px; }
.eta-card .ic { width: 42px; height: 42px; padding: 10px; border-radius: 13px; background: var(--pl); color: var(--p); }
.eta-card b { display: block; color: var(--ink); }
.eta-card small { color: var(--mu); }
.change-box { margin: -2px 0 10px; padding: 12px; border-radius: 14px; background: var(--soft); }
.change-box .chk { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; margin: 0; cursor: pointer; color: var(--tx); }
.change-box .chk input { width: 20px; height: 20px; accent-color: var(--p); margin: 0; }
.bills { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bill { flex: 1; min-width: 84px; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1.5px solid var(--bd); border-radius: 13px; padding: 9px 8px; cursor: pointer; background: #fff; margin: 0; transition: border-color .15s, background .15s; }
.bill input { display: none; } .bill b { font-size: 18px; color: var(--ink); } .bill small { color: var(--mu); font-size: 12px; font-weight: 500; }
.bill:has(input:checked) { border-color: var(--p); background: var(--pl); }
.items-d summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--tx); padding: 4px 0 8px; }
.items-d summary::-webkit-details-marker { display: none; }
.items-d summary .ic { transition: transform .2s; }
.items-d[open] summary .ic { transform: rotate(180deg); }
.mini { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.mini img { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--bd); object-fit: contain; padding: 3px; flex: none; }
.mini span { flex: 1; min-width: 0; color: var(--tx); }
.mini em { font-style: normal; color: var(--mu); margin-inline-start: 4px; }
.mini b { font-weight: 600; }
.addr { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--bd); border-radius: 14px; padding: 12px; margin-bottom: 8px; cursor: pointer; }
.addr.on { border-color: var(--p); background: var(--p0); }

/* ---------------------------------------------------------------- orders */
.prof { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.prof .av { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(145deg, #13b57f, var(--p6)); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 700; flex: none; box-shadow: 0 6px 14px rgba(15, 159, 110, .3); }
.prof .pn { flex: 1; min-width: 0; }
.prof h1 { margin: 0; font-size: 20px; }
.prof p { margin: 2px 0 0; color: var(--mu); font-size: 14px; }
.seg { display: flex; background: #eceef2; border-radius: 14px; padding: 4px; margin-bottom: 14px; gap: 4px; }
.seg a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 11px; color: var(--tx2); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s; }
.seg a .ic { width: 18px; height: 18px; }
.seg a.on { background: #fff; color: var(--ink); box-shadow: var(--sh1); }
.order { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 14px; margin-bottom: 10px; color: var(--tx); box-shadow: var(--sh1); transition: transform .12s; }
.order:active { transform: scale(.99); }
.order .o-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--soft); color: var(--tx2); }
.order .o-b { flex: 1; min-width: 0; }
.order .o-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.order .o-h b { color: var(--ink); }
.order .o-s { display: flex; justify-content: space-between; gap: 8px; color: var(--mu); font-size: 13px; margin-top: 4px; }
.order .o-s b { color: var(--ink); font-size: 15px; }
.order > .ic { color: var(--mu2); width: 18px; height: 18px; }
.st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--mu); white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.pending { background: var(--ambl); color: var(--amb); } .st.accepted, .st.preparing, .st.ready { background: var(--bluel); color: var(--blue); }
.st.out_for_delivery { background: var(--viol); color: var(--vio); } .st.delivered { background: var(--pl); color: var(--pd); } .st.cancelled { background: var(--redl); color: #b42318; }
.o-ic.pending { background: var(--ambl); color: var(--amb); } .o-ic.accepted, .o-ic.preparing, .o-ic.ready { background: var(--bluel); color: var(--blue); }
.o-ic.out_for_delivery { background: var(--viol); color: var(--vio); } .o-ic.delivered { background: var(--pl); color: var(--p); } .o-ic.cancelled { background: var(--redl); color: var(--red); }
.acard { background: #fff; border-radius: 18px; padding: 14px; margin-bottom: 10px; box-shadow: var(--sh1); }
.acard .a-h { display: flex; align-items: center; gap: 12px; }
.acard .a-ic { width: 42px; height: 42px; border-radius: 13px; background: var(--pl); color: var(--p); display: grid; place-items: center; flex: none; }
.acard .a-tx { flex: 1; min-width: 0; }
.acard .a-tx b { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.acard .a-tx small { display: block; color: var(--mu); font-size: 13px; line-height: 1.4; }
.acard .main { font-size: 11px; font-weight: 700; color: var(--p); background: var(--pl); padding: 1px 8px; border-radius: 999px; }
.acard form { display: flex; gap: 6px; }
.acard .mini-b { height: 34px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--soft); font-weight: 600; font-size: 13px; color: var(--tx); }
.acard .mini-b.del { color: var(--red); width: 34px; padding: 0; display: grid; place-items: center; }
.acard .mini-b .ic { width: 16px; height: 16px; }
.acard > img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; margin-top: 12px; }
.menu-l { background: #fff; border-radius: 18px; box-shadow: var(--sh1); overflow: hidden; margin-top: 12px; }
.menu-l a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--tx); font-weight: 600; border-bottom: 1px solid var(--bd); }
.menu-l a:last-child { border-bottom: 0; }
.menu-l a > .ic:first-child { color: var(--tx2); }
.menu-l a span { flex: 1; }
.menu-l a > .ic:last-child { color: var(--mu2); width: 18px; height: 18px; }
.menu-l a.out, .menu-l a.out > .ic:first-child { color: var(--red); }

/* order page: status hero + timeline */
.hero-st { border-radius: 22px; padding: 18px; color: #fff; display: flex; align-items: center; gap: 14px; margin-bottom: 12px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--pd), var(--p) 60%, #16b67f); }
.hero-st.pending { background: linear-gradient(135deg, #b93815, #ef6820); }
.hero-st.out_for_delivery { background: linear-gradient(135deg, #3e1c96, #6938ef 60%, #7a5af8); }
.hero-st.cancelled { background: linear-gradient(135deg, #912018, #d92d20); }
.hero-st .h-ic { width: 60px; height: 60px; border-radius: 18px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; color: #fff; }
.hero-st .h-ic .ic { width: 32px; height: 32px; }
.hero-st.live-on .h-ic::after { content: ""; position: absolute; width: 60px; height: 60px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .6); animation: ping 1.8s infinite; }
.hero-st h2 { color: #fff; margin: 0; font-size: 19px; }
.hero-st p { margin: 3px 0 0; opacity: .9; font-size: 13.5px; }
.hero-st .h-no { position: absolute; top: 12px; inset-inline-end: 14px; font-size: 12px; opacity: .8; font-weight: 600; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; top: 30px; bottom: 0; inset-inline-start: 14px; width: 2px; background: var(--bd); }
.tl li:last-child::before { display: none; }
.tl li.done::before { background: var(--p); }
.tl .t-d { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--mu2); display: grid; place-items: center; flex: none; position: relative; z-index: 1; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--bd); }
.tl .t-d .ic { width: 16px; height: 16px; }
.tl li.done .t-d { background: var(--p); color: #fff; box-shadow: none; }
.tl li.now .t-d { box-shadow: 0 0 0 4px rgba(15, 159, 110, .2); animation: glow 1.6s infinite; }
.tl .t-x { flex: 1; padding-top: 4px; display: flex; justify-content: space-between; gap: 10px; }
.tl .t-x b { font-weight: 600; font-size: 14px; color: var(--mu); }
.tl li.done .t-x b { color: var(--ink); }
.tl .t-x small { color: var(--mu); font-size: 12.5px; white-space: nowrap; }
.drv { display: flex; align-items: center; gap: 12px; }
.drv .av { width: 46px; height: 46px; border-radius: 50%; background: var(--viol); color: var(--vio); display: grid; place-items: center; flex: none; }
.drv .d-tx { flex: 1; }
.drv .d-tx small { display: block; color: var(--mu); font-size: 12.5px; }
.drv .call { width: 46px; height: 46px; border-radius: 50%; background: var(--p); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 6px 14px rgba(15, 159, 110, .3); }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--bd); font-size: 14px; }
.kv:last-child { border: 0; }
.kv span { color: var(--mu); flex: none; } .kv b { font-weight: 600; text-align: end; color: var(--tx); }
.acts { display: flex; gap: 8px; margin: 4px 0 16px; }

/* success */
.done-box { text-align: center; padding: 24px 16px 8px; }
.done-ck { width: 108px; height: 108px; margin: 10px auto 16px; position: relative; }
.done-ck svg { width: 108px; height: 108px; }
.done-ck circle { fill: var(--p); transform-origin: center; animation: popin .5s var(--ease) both; }
.done-ck path { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s .35s var(--ease) forwards; }
.done-ck::before, .done-ck::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--p); opacity: 0; animation: ring 1.6s .5s ease-out infinite; }
.done-ck::after { animation-delay: 1.3s; }
.done-box h1 { margin: 0 0 6px; font-size: 22px; }
.done-box p { margin: 0 0 4px; color: var(--mu); }
.done-tot { font-size: 26px; font-weight: 700; color: var(--ink); margin: 12px 0 0; }

/* footer */
.foot { background: var(--soft); margin-top: 28px; border-top: 1px solid var(--bd); }
body.soft .foot { background: #eef0f3; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 22px 16px; display: flex; flex-direction: column; gap: 14px; }
.foot-b { display: flex; gap: 12px; align-items: center; }
.foot-b b { display: block; color: var(--ink); } .foot-b small { color: var(--mu); }
.foot-l { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-l a { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--tx); padding: 8px 12px; border-radius: 12px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--bd); }
.foot-l .ic { width: 18px; height: 18px; color: var(--p); }
.foot-c { color: var(--mu2); font-size: 12px; }
body.inner .foot { display: none; }
body.inner { --nav: 0px; }
body.inner .bnav { display: none; }

/* product page */
.pp { display: grid; gap: 16px; }
.pp-media { background: var(--tile); border-radius: 22px; overflow: hidden; margin: 0 -16px; border-radius: 0; }
.pp-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pp-slides::-webkit-scrollbar { display: none; }
.pp-slides img { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; max-height: 420px; object-fit: contain; padding: 24px; mix-blend-mode: multiply; }
.pp-thumbs { display: flex; gap: 8px; padding: 0 16px 12px; overflow-x: auto; }
.pp-thumbs img { width: 56px; height: 56px; border-radius: 12px; background: #fff; object-fit: contain; padding: 4px; flex: none; cursor: pointer; border: 2px solid transparent; }
.pp-thumbs img.on { border-color: var(--p); }
.pp-cat { display: inline-flex; font-size: 13px; font-weight: 600; background: var(--pl); color: var(--pd); padding: 4px 10px; border-radius: 999px; }
.pp h1 { font-size: 22px; margin: 8px 0 8px; }
.pp .pprice b { font-size: 26px; }
.pp .plbp { font-size: 13.5px; }
.pp-desc { color: var(--tx2); white-space: pre-line; margin: 0; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.pp-tags span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; background: var(--soft); color: var(--tx2); padding: 6px 10px; border-radius: 10px; }
.pp-tags .ic { width: 16px; height: 16px; color: var(--p); }
.pp-tags .warn { background: var(--ambl); color: var(--amb); } .pp-tags .warn .ic { color: var(--amb); }
.pp-buy { position: fixed; inset-inline: 0; bottom: calc(var(--nav) + var(--safe)); z-index: 42; background: #fff; border-top: 1px solid var(--bd); padding: 10px 16px; box-shadow: 0 -6px 18px rgba(16, 24, 40, .06); }
body.has-buy { padding-bottom: calc(var(--nav) + var(--safe) + 90px); }
body.has-buy .vcart { display: none; }
.pp-buy-in { max-width: 560px; margin: 0 auto; }

/* promotion page */
.promo-hero { border-radius: 22px; overflow: hidden; margin-bottom: 16px; background: var(--soft); }
.promo-hero img { width: 100%; max-height: 280px; object-fit: cover; }
.promo-hero .ph-tx { padding: 16px; }
.promo-hero.plain { background: linear-gradient(135deg, #c4320a, #f04438 55%, #fb6514); color: #fff; }
.promo-hero.plain h1, .promo-hero.plain p { color: #fff; }
.promo-hero h1 { margin: 0 0 4px; font-size: 22px; }
.promo-hero p { margin: 0; color: var(--tx2); }
.promo-hero .until { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .22); padding: 4px 10px; border-radius: 999px; }
.promo-hero:not(.plain) .until { background: var(--ambl); color: var(--amb); }
.promo-hero .until .ic { width: 16px; height: 16px; }

/* spinner & animations */
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .7s linear infinite; opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes grow { from { opacity: .4; transform: scaleX(.4); transform-origin: right; } }
@keyframes bump { 40% { transform: scale(1.08); } 70% { transform: scale(.97); } }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes glow { 50% { box-shadow: 0 0 0 7px rgba(15, 159, 110, .08); } }
@keyframes popin { from { transform: scale(0); } 70% { transform: scale(1.08); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------------------------------------------------------------- bigger screens */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ctiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bn { flex-basis: 78%; }
  .why { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail .pcard { width: 156px; }
}
@media (min-width: 900px) {
  body, body.has-vcart, body.has-paybar, body.has-buy { padding-bottom: 0; }
  .bnav { display: none; }
  .hdr.hdr-s { top: 0; }
  .hdr-in { grid-template-columns: max-content minmax(260px, 560px) 1fr max-content; grid-template-areas: "brand search links act"; padding: 12px 24px; column-gap: 20px; }
  .brand { height: 48px; }
  .search { margin: 0; }
  .hdr-links { grid-area: links; display: flex; gap: 4px; justify-content: flex-end; }
  .hdr-links a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 12px; color: var(--tx2); font-weight: 600; font-size: 14px; }
  .hdr-links a .ic { width: 20px; height: 20px; }
  .hdr-links a:hover { background: var(--soft); }
  .hdr-links a.on { color: var(--p); background: var(--pl); }
  .ib.acc, .ib.cart-ib { display: inline-flex; }
  .ib.cart-ib { background: var(--p); color: #fff; padding: 0 14px; }
  .ib.cart-ib:hover { background: var(--p6); }
  .hdr-b .hdr-in { grid-template-columns: auto 40px minmax(0, 1fr) auto auto; grid-template-areas: "brandd back title links act"; }
  .hdr-b .hdr-brand-d { grid-area: brandd; display: flex; margin-inline-end: 12px; }
  .hdr-b .hdr-brand-d b { font-size: 16px; white-space: nowrap; }
  .hdr-t { text-align: start; font-size: 19px; }
  .wrap { padding: 20px 24px; }
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 16px; }
  .ctiles { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 18px 14px; }
  .cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 16px; }
  .rail, .stories, .chips, .banners { margin: 0; padding-inline: 0; }
  .rail { scroll-padding-inline: 0; }
  .rail .pcard { width: 180px; }
  .bn-track { padding: 0; scroll-padding-inline: 0; }
  .bn { flex-basis: calc(50% - 6px); min-height: 200px; }
  .bn-tx b { font-size: 26px; }
  .catbar { top: 72px; margin: -20px -24px 0; padding: 12px 24px; }
  .catbar .chips { margin: 0; }
  .hello h1 { font-size: 26px; }
  .info { max-width: 640px; }
  .vcart { inset-inline: auto 24px; bottom: 24px; width: 380px; }
  .toast { bottom: 96px; }
  body.has-vcart .toast { bottom: 96px; }
  .modal { align-items: center; }
  .modal .modal-box { border-radius: 24px; max-width: 760px; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .25s var(--ease), opacity .2s; display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "media info" "media foot"; }
  .modal.open .modal-box, .modal.age-gate .modal-box { transform: none; opacity: 1; }
  .age-gate .modal-box { display: block; max-width: 420px; }
  .sheet .grab { display: none; }
  .pm-media { grid-area: media; aspect-ratio: auto; max-height: none; height: 100%; min-height: 380px; }
  .pm-info { grid-area: info; padding: 28px 24px 8px; }
  .pm-foot { grid-area: foot; border-top: 0; padding: 12px 24px 24px; align-self: end; }
  /* two columns: list + sticky summary */
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
  .cols > aside { position: sticky; top: 92px; }
  .paybar { position: static; box-shadow: none; border: 0; padding: 12px 0 0; background: transparent; }
  .pp { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .pp-media { margin: 0; border-radius: 24px; position: sticky; top: 92px; }
  .pp-buy { position: static; box-shadow: none; border: 0; padding: 18px 0 0; background: none; }
  .pp-buy-in { margin: 0; max-width: 420px; }
  body.has-buy .vcart { display: flex; }
  body.has-buy .vcart[hidden] { display: none !important; }
  .foot-in { flex-direction: row; align-items: center; justify-content: space-between; padding: 26px 24px; }
  body.inner .foot { display: block; }
  .story-sec { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 28px; }
  .auth { margin-top: 30px; }
}
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.cat-grid .ct span { min-height: 0; }
.done-box h1 { margin-top: 26px; }
@media (max-width: 899px) { body.soft .foot { display: none; } }
/* delivery price by distance */
.opt .o-tx small.o-fee { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-weight: 600; color: var(--p); background: var(--pl); padding: 1px 8px; border-radius: 999px; width: max-content; }
.opt .o-tx small.o-fee.warn { color: #b42318; background: var(--redl); }
.opt .o-tx small.o-fee .ic { width: 14px; height: 14px; }
.fee-hint { font-size: 12.5px; font-weight: 600; color: var(--pd); background: var(--pl); border-radius: 10px; padding: 6px 10px; margin: 2px 0 4px; }
/* wholesale for shop owners (WhatsApp) */
.wh { position: relative; overflow: hidden; border-radius: 24px; margin: 24px 0; padding: 22px 20px; color: #fff; display: grid; gap: 16px; isolation: isolate;
  background: radial-gradient(120% 120% at 100% 0%, rgba(52, 211, 153, .35) 0%, transparent 45%), linear-gradient(145deg, #0f1728 0%, #1d2939 60%, #0b3b2c 100%); }
.wh::after { content: ""; position: absolute; inset-inline-end: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .04); z-index: -1; }
.wh-art span { width: 58px; height: 58px; border-radius: 18px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .14); }
.wh-art .ic { width: 30px; height: 30px; color: #6ce9a6; }
.wh-k { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6ce9a6; margin-bottom: 6px; }
[dir=rtl] .wh-k { letter-spacing: 0; }
.wh h2 { color: #fff; margin: 0 0 8px; font-size: 20px; line-height: 1.35; }
.wh p { margin: 0 0 14px; color: rgba(255, 255, 255, .78); font-size: 14px; }
.wh-pts { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wh-pts li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); padding: 6px 11px; border-radius: 999px; }
.wh-pts .ic { width: 16px; height: 16px; color: #6ce9a6; }
.wh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #25d366; color: #fff; font-weight: 700; font-size: 16px; min-height: 52px; padding: 0 22px; border-radius: 16px; box-shadow: 0 10px 24px rgba(37, 211, 102, .35); transition: transform .12s, background .15s; }
.wh-btn:hover { background: #1fb959; } .wh-btn:active { transform: scale(.98); }
.wh-btn .ic { width: 24px; height: 24px; }
.wh-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 14px; margin: 12px 0; box-shadow: var(--sh1); color: var(--tx); border: 1px solid var(--bd); }
.wh-row .wh-ic { width: 44px; height: 44px; border-radius: 14px; background: #0f1728; color: #6ce9a6; display: grid; place-items: center; flex: none; }
.wh-row .wh-tx { flex: 1; min-width: 0; } .wh-row .wh-tx b { display: block; color: var(--ink); } .wh-row .wh-tx small { color: var(--mu); font-size: 12.5px; }
.wh-row .wh-go { width: 42px; height: 42px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; flex: none; }
.foot-l a.foot-wh { background: #0f1728; color: #fff; border-color: #0f1728; } .foot-l a.foot-wh .ic { color: #6ce9a6; }
.bn.g4 { background: radial-gradient(120% 140% at 100% 0%, rgba(37, 211, 102, .45) 0%, transparent 55%), linear-gradient(135deg, #0f1728, #1d2939 60%, #0b3b2c); }
.lvl-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 700; color: #fff; background: #0f1728; padding: 5px 12px; border-radius: 999px; }
.lvl-pill .ic { width: 16px; height: 16px; color: #6ce9a6; }
.lvl-pill.sm { margin: 0; font-size: 11.5px; padding: 2px 9px; vertical-align: middle; }
@media (min-width: 760px) { .wh { grid-template-columns: auto 1fr; align-items: center; padding: 30px 32px; gap: 24px; } .wh-art span { width: 84px; height: 84px; border-radius: 24px; } .wh-art .ic { width: 42px; height: 42px; } .wh h2 { font-size: 24px; } }
.hero-st .h-car { width: 110px; height: auto; flex: none; margin: -14px -6px -10px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); animation: carbob 1.2s ease-in-out infinite; }
@keyframes carbob { 50% { translate: 0 -2px; } }
.hero-st.out_for_delivery:has(.h-car) { background: linear-gradient(135deg, #b54708, #f28a1f 60%, #ffb347); }
/* quantity picker: 0.25, 1.5, 1.75 … */
.stepper span { cursor: pointer; text-decoration: underline dotted rgba(255,255,255,.7); text-underline-offset: 3px; padding: 4px 2px; }
.cline .pact .stepper span { text-decoration-color: rgba(11,117,80,.5); }
.qpop-bg { position: fixed; inset: 0; z-index: 95; background: rgba(15,23,40,0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.qpop-bg.open { background: rgba(15,23,40,.45); }
.qpop { background: #fff; width: 100%; max-width: 440px; border-radius: 22px 22px 0 0; padding: 16px 16px calc(16px + var(--safe)); transform: translateY(100%); transition: transform .25s var(--ease); }
.qpop-bg.open .qpop { transform: none; }
.qp-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .qp-h b { font-size: 17px; }
.qp-x { border: 0; background: var(--soft); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.qp-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qp-chips button { border: 1.5px solid var(--bd); background: #fff; border-radius: 12px; height: 46px; font-weight: 700; font-size: 16px; color: var(--ink); direction: ltr; }
.qp-chips button.on { border-color: var(--p); background: var(--pl); color: var(--pd); }
.qp-chips button:active { transform: scale(.96); }
.qp-in { display: flex; gap: 8px; margin-top: 12px; direction: ltr; }
.qp-in button { width: 50px; height: 50px; border-radius: 14px; border: 0; background: var(--pl); color: var(--pd); display: grid; place-items: center; flex: none; }
.qp-in input { flex: 1; text-align: center; font-size: 20px; font-weight: 700; height: 50px; }
.qp-hint { display: block; color: var(--mu); font-size: 12px; margin: 8px 2px 0; }
.qp-acts { display: flex; gap: 8px; margin-top: 14px; }
.qp-rm { flex: none; border: 0; background: var(--redl); color: #b42318; border-radius: 14px; height: 50px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.qp-rm .ic { width: 18px; height: 18px; }
.qp-ok { flex: 1; border: 0; background: var(--p); color: #fff; border-radius: 14px; height: 50px; font-weight: 700; font-size: 16px; }
@media (min-width: 700px) { .qpop-bg { align-items: center; } .qpop { border-radius: 22px; } }

/* ---- the order on its way: a bar on every page (Toters style) ---- */
.lord { position: fixed; inset-inline: 12px; bottom: calc(var(--nav) + var(--safe) + 10px); z-index: 45; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  background: #101828; color: #fff; border-radius: 18px; padding: 10px 12px; box-shadow: 0 12px 30px rgba(16, 24, 40, .35); text-decoration: none; animation: rise .35s var(--ease); transition: bottom .25s var(--ease), opacity .3s, transform .3s; }
.lord:active { transform: scale(.985); }
.lord.gone { opacity: 0; transform: translateY(20px); }
body.lord-up .lord { bottom: calc(var(--nav) + var(--safe) + 76px); }
body.inner .lord { bottom: calc(var(--safe) + 12px); } body.inner.lord-up .lord { bottom: calc(var(--safe) + 78px); }
body.has-lord .wrap { padding-bottom: 96px; }
.lo-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--p); display: grid; place-items: center; flex: none; position: relative; }
.lo-ic::after { content: ""; position: absolute; inset: -3px; border-radius: 16px; border: 2px solid var(--p); animation: lopulse 1.8s ease-out infinite; }
@keyframes lopulse { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.25); } }
.lo-ic .ic { width: 26px; height: 26px; color: #fff; }
.lo-ic img { width: 44px; height: auto; }
.lord.st-pending .lo-ic { background: #f79009; } .lord.st-pending .lo-ic::after { border-color: #f79009; }
.lord.st-delivered .lo-ic { background: #12b76a; } .lord.st-delivered .lo-ic::after { display: none; }
.lo-tx { flex: 1; min-width: 0; }
.lo-tx b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-tx small { display: block; font-size: 12.5px; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; }
.lo-bar i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); position: relative; overflow: hidden; }
.lo-bar i.done { background: #34d399; }
.lo-bar i.now::after { content: ""; position: absolute; inset: 0; width: 45%; background: #34d399; border-radius: 2px; animation: trkRun 1.4s ease-in-out infinite; }
[dir=rtl] .lo-bar i.now::after { animation-name: trkRunR; }
@keyframes trkRun { 0% { transform: translateX(-100%); } 100% { transform: translateX(230%); } }
@keyframes trkRunR { 0% { transform: translateX(100%); } 100% { transform: translateX(-230%); } }
.lo-min { flex: none; background: #fff; color: #101828; border-radius: 12px; padding: 4px 10px; text-align: center; line-height: 1.1; }
.lo-min b { display: block; font-size: 20px; } .lo-min small { font-size: 11px; color: #667085; font-weight: 600; }
.lo-go { flex: none; opacity: .6; } .lo-go .ic { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .lord { inset-inline: 24px auto; bottom: 24px; width: 400px; margin: 0; }
  body.lord-up .lord, body.inner .lord, body.inner.lord-up .lord { bottom: 24px; }
}
[dir=ltr] .lo-go .ic { transform: scaleX(-1); }

/* ---- prices hidden by the shop (crisis): the catalogue only ---- */
.poff { background: #fffaeb; border-bottom: 1px solid #fedf89; }
.poff-in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.poff-ic { width: 38px; height: 38px; border-radius: 12px; background: #f79009; color: #fff; display: grid; place-items: center; flex: none; }
.poff-ic .ic { width: 20px; height: 20px; }
.poff-tx { flex: 1; min-width: 0; } .poff-tx b { display: block; color: #93370d; font-size: 14.5px; } .poff-tx small { display: block; color: #b54708; font-size: 12.5px; line-height: 1.4; }
.poff-b { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid #fedf89; color: #93370d; font-weight: 700; font-size: 13px; text-decoration: none; }
.poff-b.wa { background: #25d366; border-color: #25d366; color: #fff; }
.poff-b .ic { width: 18px; height: 18px; }
.pprice.off { color: #b54708; font-size: 12.5px; font-weight: 700; }
.pp-info .pprice.off { font-size: 16px; margin: 6px 0; }
@media (max-width: 559px) {
  .poff-in { flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px; }
  .poff-tx { flex: 1 1 calc(100% - 52px); }
  .poff-b { flex: 1; justify-content: center; height: 36px; }
  .poff-b:not(.wa) { flex: 0 0 52px; }
}
/* prices hidden: the customer orders without amounts (the shop confirms the price) */
body.poff-mode .cl-p, body.poff-mode .cl-t, body.poff-mode .card.sum .row, body.poff-mode .card.sum .fee-hint, body.poff-mode .paybar .pb-t,
body.poff-mode #s-min, body.poff-mode .vcart .vc-s, body.poff-mode .eta-card small, body.poff-mode #pay-usd, body.poff-mode #pay-lbp,
body.poff-mode .bills, body.poff-mode .mini b, body.poff-mode .o-fee, body.poff-mode .fee-hint, body.poff-mode .plbp, body.poff-mode .o-s b, body.poff-mode .done-tot, body.poff-mode .done-tot + .small,
body.poff-mode .pprice:not(.off) { display: none !important; }
body.poff-mode .paybar { justify-content: stretch; } body.poff-mode .paybar .btn { flex: 1; }
.poff-note { display: flex; gap: 10px; align-items: flex-start; background: #fffaeb; color: #93370d; border: 1px solid #fedf89; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.poff-note .ic { width: 20px; height: 20px; flex: none; color: #f79009; }

/* address too far for this order: what to do */
.far-box > div { display: grid; gap: 10px; flex: 1; }
.far-box .far-act { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.far-box .far-act .btn { min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: 11px; }
.far-box .far-act .btn.ghost { background: #fff; border: 1px solid #e4e7ec; color: #15803d; }
/* delivery range by order size (cart) */
.rng { display: grid; gap: 10px; }
.rng h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.rng ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rng li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--soft); font-size: 14px; color: var(--mu, #667085); }
.rng li b { color: var(--tx); font-weight: 700; }
.rng li .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d0d5dd; display: grid; place-items: center; font-size: 11px; color: #fff; }
.rng li.on { background: #ecfdf3; color: #067647; } .rng li.on .dot { background: var(--p); border-color: var(--p); }
.rng li.on b { color: #067647; }
.rng .rng-next { font-size: 13.5px; color: var(--tx); }
.rng .rng-bar { height: 6px; border-radius: 6px; background: #eaecf0; overflow: hidden; }
.rng .rng-bar i { display: block; height: 100%; background: var(--p); border-radius: 6px; transition: width .3s; }
.rng .rng-next.warn { color: #b42318; font-weight: 600; }
/* cart: tap a line → edit sheet */
.cline[data-id] { cursor: pointer; border-radius: 14px; margin-inline: -8px; padding-inline: 8px; position: relative; -webkit-tap-highlight-color: transparent; }
.cline[data-id]:hover { background: #f9fafb; }
.cline[data-id]:active { background: var(--pl); }
.cline[data-id] .cl-p::after { content: ''; }
.cl-edit { display: inline-flex; align-items: center; gap: 4px; color: var(--p); font-size: 12px; font-weight: 600; margin-top: 4px; }
.cl-edit .ic { width: 13px; height: 13px; }
.qpop { position: relative; }
.qp-grab { display: block; width: 40px; height: 4px; border-radius: 4px; background: #d0d5dd; margin: -6px auto 12px; }
.qp-item { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--bd); }
.qp-item img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--bd); border-radius: 14px; padding: 4px; background: #fff; flex: none; }
.qp-item > div { flex: 1; min-width: 0; }
.qp-item b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15.5px; line-height: 1.35; color: var(--ink); }
.qp-item small { display: block; color: var(--p); font-weight: 700; font-size: 14px; margin-top: 3px; direction: ltr; text-align: start; }
.qp-item small span { color: var(--mu); font-weight: 500; }
.qp-lbl { font-size: 13px; color: var(--mu); font-weight: 600; margin-bottom: 8px; }
.qpop.full .qp-in { margin: 0 0 12px; }
.qpop.full .qp-in input { font-size: 24px; height: 56px; border-radius: 16px; }
.qpop.full .qp-in button { width: 56px; height: 56px; border-radius: 16px; }
.qpop.full .qp-chips { grid-template-columns: repeat(6, 1fr); gap: 6px; }
.qpop.full .qp-chips button { height: 40px; font-size: 14px; border-radius: 10px; }
.qp-tot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 14px; color: var(--mu); }
.qp-tot b { font-size: 19px; color: var(--ink); direction: ltr; }
.qp-ok:disabled { opacity: .45; }
.qpop-bg { transition: background .2s, opacity .2s; }
.toast.has-act.show { pointer-events: auto; }
.toast .t-act { border: 0; background: rgba(255,255,255,.16); color: #fff; font-weight: 700; border-radius: 9px; padding: 6px 12px; margin-inline-start: 6px; font-size: 13.5px; }
/* the shop logo instead of the bag icon */
.logo.has-img { background: #fff; box-shadow: 0 2px 8px rgba(16,24,40,.10), inset 0 0 0 1px rgba(16,24,40,.06); padding: 3px; overflow: hidden; }
.logo.has-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; display: block; }
/* product without a photo: the letter tile fills the box (no padding, no grey) */
/* letter tile (CSS only, a few bytes) */
.phl { display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: 1; box-sizing: border-box; font-weight: 700; line-height: 1; user-select: none;
  color: hsl(var(--h, 200) 45% 38%); font-size: 64px;
  background: radial-gradient(circle at 84% 18%, hsl(var(--h, 200) 70% 80% / .4) 0 26%, transparent 26.5%),
              radial-gradient(circle at 12% 91%, hsl(var(--h, 200) 70% 80% / .32) 0 20%, transparent 20.5%),
              linear-gradient(135deg, hsl(var(--h, 200) 70% 95%), hsl(var(--h, 200) 60% 86%)); }
.pimg .phl { position: relative; border-radius: inherit; }
.pimg:has(.phl)::before { display: none; }
.cline .phl.cl-img { font-size: 28px; padding: 0; }
.mini .phl { width: 40px; height: 40px; font-size: 20px; border-radius: 10px; flex: none; }
.pp-slides .phl { font-size: 140px; border-radius: 20px; scroll-snap-align: center; flex: none; }
.pm-media .phl { font-size: 110px; }
.qp-item .phl { width: 64px; height: 64px; font-size: 28px; border-radius: 14px; flex: none; }
#search-results .phl { width: 46px; height: 46px; font-size: 20px; border-radius: 10px; flex: none; }
/* smooth page changes (Chrome / Android, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .16s ease-in both; }
::view-transition-new(root) { animation: vt-in .22s ease-out both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
.bnav { view-transition-name: bnav; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
/* "Add the shop to your home screen" */
.inst { position: fixed; inset-inline: 12px; bottom: calc(var(--nav) + var(--safe) + 12px); z-index: 60; background: #fff; border-radius: 18px; box-shadow: 0 12px 34px rgba(16,24,40,.22); padding: 12px; display: flex; align-items: center; gap: 12px; transform: translateY(140%); transition: transform .35s var(--ease); max-width: 480px; margin-inline: auto; }
.inst.show { transform: none; }
.inst img { width: 48px; height: 48px; border-radius: 12px; flex: none; box-shadow: 0 2px 6px rgba(16,24,40,.12); }
.inst div { flex: 1; min-width: 0; } .inst b { display: block; font-size: 14.5px; color: var(--ink); } .inst small { display: block; font-size: 12.5px; color: var(--mu); line-height: 1.45; }
.inst .go { border: 0; background: var(--p); color: #fff; font-weight: 700; border-radius: 12px; padding: 10px 14px; flex: none; }
.inst .x { border: 0; background: var(--soft); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--mu); }
.inst .x .ic { width: 16px; height: 16px; }
body.has-vcart .inst { bottom: calc(var(--nav) + var(--safe) + 84px); }
/* message in the middle of the screen (quantity more than the stock …) */
.ntc-bg { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: rgba(15,23,40,0); transition: background .2s; }
.ntc-bg.show { background: rgba(15,23,40,.35); }
.ntc { position: relative; overflow: hidden; background: #fff; border-radius: 22px; padding: 22px 22px 20px; max-width: 320px; width: 100%; text-align: center; box-shadow: 0 24px 60px rgba(16,24,40,.3);
  transform: scale(.86); opacity: 0; transition: transform .28s cubic-bezier(.2,1.4,.4,1), opacity .2s; }
.ntc-bg.show .ntc { transform: none; opacity: 1; }
.ntc > .ic { width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: #fff4e5; color: #dc6803; display: block; margin: 0 auto 10px; box-sizing: border-box; }
.ntc b { display: block; font-size: 16px; color: var(--ink); line-height: 1.4; margin-bottom: 4px; }
.ntc p { margin: 0; font-size: 15px; color: var(--tx); line-height: 1.55; font-weight: 600; }
.ntc i { position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: #f79009; transform-origin: left; animation: ntc-t 2.4s linear forwards; }
[dir=rtl] .ntc i { transform-origin: right; }
@keyframes ntc-t { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.qp-max { display: block; color: #b42318; font-size: 13px; font-weight: 700; margin: 6px 2px 0; }
.qp-in input.over { border-color: #f04438; color: #b42318; background: #fef3f2; }
.auth-wm { display: block; width: 240px; max-width: 78%; height: auto; margin: 0 auto 14px; }
/* grey cards while a row is loading */
.pcard.sk .pimg { background: var(--tile); }
.pcard.sk .pimg::before { display: block; }
.pcard.sk .pbody i { display: block; height: 12px; border-radius: 6px; background: #eef0f3; margin-top: 8px; width: 60%; }
.pcard.sk .pbody i + i { width: 85%; }
