/* Unique Product website. Light and calm (paper + ink) with the brand orange as the one accent.
   Phone first: a tab bar at the bottom on phones, full header on wide screens. Works RTL and LTR. */
:root {
  --ink: #0e1116;
  --ink2: #1b2029;
  --paper: #f5f3ee;
  --bg: #faf9f6;
  --card: #fff;
  --soft: #f1efe9;
  --line: #e6e2d9;
  --text: #0e1116;
  --muted: #6b6f78;
  --orange: #ff5a1f;
  --orange2: #e5480f;
  --orange-soft: #fff1ea;
  --green: #17945a;
  --green-soft: #e8f6ee;
  --red: #d33a2c;
  --amber: #b7791f;
  --wa: #25d366;
  --r: 20px;
  --shadow: 0 1px 2px rgba(14, 17, 22, .04), 0 8px 24px rgba(14, 17, 22, .06);
  --shadow-lg: 0 20px 50px rgba(14, 17, 22, .14);
  --ku: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --ku-head: "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --en: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 var(--ku); overflow-x: hidden; }
html { overflow-x: clip; }
html[lang="en"] body { font-family: var(--en); line-height: 1.6; }
body.locked { overflow: hidden; }
h1, h2, h3 { font-family: var(--ku-head); line-height: 1.35; margin: 0; font-weight: 800; }
html[lang="en"] :is(h1, h2, h3) { font-family: var(--en); letter-spacing: -.025em; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
img { max-width: 100%; }
bdi, .ltr { direction: ltr; unicode-bidi: isolate; }
small { font-size: .78em; color: var(--muted); }
.m { font-family: var(--en); font-weight: 800; }
html:not([lang="en"]) .m { font-family: var(--ku); }
.muted { color: var(--muted); }
.ok { color: var(--green); font-weight: 700; }
.center { text-align: center; justify-content: center; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
html[dir="rtl"] svg:has(use[href="#i-arrow"]), html[dir="rtl"] svg:has(use[href="#i-back"]) { transform: scaleX(-1); }
/* Spam trap field: hidden in place (an off-screen offset made right-to-left pages scroll sideways). */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.sample { display: inline-block; padding: 0 8px; border-radius: 999px; background: #fff4d6; color: #8a5a00; font-size: 11px; font-weight: 700; vertical-align: 2px; line-height: 18px; font-family: var(--ku); }
html[lang="en"] .sample { font-family: var(--en); }
:focus-visible { outline: 3px solid rgba(255, 90, 31, .45); outline-offset: 2px; border-radius: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15.5px; line-height: 1.2; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(255, 90, 31, .28); }
.btn.primary:hover { background: var(--orange2); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn.ghost { background: #fff; border-color: var(--line); }
.btn.ghost:hover { border-color: #cfc9bd; }
.btn.wa { background: var(--wa); color: #05290f; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.full { width: 100%; }
.btn.grow { flex: 1; }

/* Header */
.announce { background: var(--ink); color: #f5f3ee; text-align: center; font-size: 13.5px; font-weight: 600; padding: 7px 16px; }
.top { position: sticky; top: 0; z-index: 40; background: rgba(250, 249, 246, .88); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.top-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; height: 70px; }
.brand img { display: block; height: 24px; width: auto; }
.search { position: relative; display: flex; align-items: center; max-width: 560px; width: 100%; justify-self: center; }
.search > svg { position: absolute; inset-inline-start: 16px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.top .search input[type="search"] { width: 100%; height: 46px; padding-inline: 46px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; outline: none; font-size: 15px; }
.search input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 90, 31, .12); }
.search input::-webkit-search-cancel-button { display: none; }
.suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 70vh; overflow: auto; }
.suggest a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.suggest a:hover { background: var(--soft); }
.suggest .s-art { width: 48px; height: 48px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.suggest .s-art :is(svg, img) { max-width: 80%; max-height: 80%; }
.suggest b { display: block; font-size: 14.5px; line-height: 1.3; }
.suggest small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest em { font-style: normal; font-size: 13px; white-space: nowrap; }
.suggest .all { display: block; text-align: center; font-weight: 700; color: var(--orange2); padding: 10px; }
.suggest p { padding: 14px; color: var(--muted); text-align: center; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--line); margin-inline-end: 6px; }
.langs button { border: 0; background: none; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); font-family: var(--ku); }
.langs button[data-lang="en"] { font-family: var(--en); }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: none; }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn.bag { background: var(--ink); color: #fff; }
.count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #fff; font: 800 11px/19px var(--en); text-align: center; }
.cats-bar { border-top: 1px solid var(--line); }
.cats-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 46px; align-items: center; }
.cats-in::-webkit-scrollbar { display: none; }
.cats-in a { flex: none; padding: 6px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: #3b3f47; white-space: nowrap; }
.cats-in a:hover { background: var(--soft); }
.cats-in a.on { background: var(--ink); color: #fff; }
.cats-in a.hl { color: var(--orange2); }

/* Hero */
.hero { padding: 18px 20px 0; }
.hero-in { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; background: var(--ink); color: #f5f3ee; border-radius: 32px; padding: 64px 60px; max-width: 1240px; }
.hero-in::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 85% 30%, rgba(255, 90, 31, .28), transparent 65%), radial-gradient(500px 300px at 10% 110%, rgba(255, 255, 255, .06), transparent 60%); pointer-events: none; }
html[dir="rtl"] .hero-in::before { background: radial-gradient(600px 400px at 15% 30%, rgba(255, 90, 31, .28), transparent 65%), radial-gradient(500px 300px at 90% 110%, rgba(255, 255, 255, .06), transparent 60%); }
.hero-copy { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.eyebrow svg { width: 18px; height: 18px; color: var(--orange); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); }
.hero .lead { margin-top: 16px; font-size: 18px; color: #c9c7c1; max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pay-chips span { padding: 3px 11px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); font: 700 12.5px/20px var(--en); color: #3b3f47; }
html:not([lang="en"]) .pay-chips span:last-child { font-family: var(--ku); }
.pay-chips.dark { margin-top: 26px; }
.pay-chips.dark span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #e6e3dc; }
.pay-chips.center { justify-content: center; margin-top: 12px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-art .glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 31, .45), transparent 70%); filter: blur(10px); }
.hero-device { position: relative; width: 210px; transform: rotate(-8deg); filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55)); transition: transform .4s; }
.hero-art:hover .hero-device { transform: rotate(-4deg) translateY(-6px); }
.hero-device svg { width: 100%; height: auto; }
.float { position: absolute; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.float.f1 { inset-inline-start: 0; bottom: 60px; flex-direction: column; align-items: flex-start; gap: 0; }
.float.f1 small { font-weight: 700; }
.float.f1 b { font-size: 15px; line-height: 1.3; }
.float.f1 em { font-style: normal; color: var(--orange2); font-size: 15px; }
.float.f2 { inset-inline-end: 0; top: 50px; font-weight: 700; font-size: 14px; }
.float.f2 svg { width: 22px; height: 22px; color: var(--green); }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.trust > div { display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.trust svg { width: 26px; height: 26px; flex: none; color: var(--orange); }
.trust b { display: block; font-size: 15px; line-height: 1.35; }
.trust small { display: block; line-height: 1.4; }

/* Sections */
.sec { padding-top: 64px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.kicker { color: var(--orange2); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
html:not([lang="en"]) .kicker { letter-spacing: 0; font-size: 14px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); white-space: nowrap; padding: 8px 4px; }
.more svg { width: 18px; height: 18px; }
.more:hover { color: var(--orange2); }
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 12px 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-art { width: 100%; height: 92px; display: grid; place-items: center; margin-bottom: 10px; }
.cat-art svg { max-height: 92px; max-width: 70%; }
.cat-art svg.tall { height: 92px; width: auto; }
.cat b { font-size: 15px; line-height: 1.35; }
.cat small { line-height: 1.4; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-art { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .92; background: linear-gradient(160deg, #f6f4ef, #ebe8e1); overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-art svg { width: 70%; max-height: 80%; transition: transform .4s; }
.card-art svg.tall { width: auto; height: 76%; }
.card-art svg.wide { width: 78%; }
.card:hover .card-art svg { transform: scale(1.05); }
.card.out .card-art { filter: grayscale(.8); opacity: .7; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--ink); color: #fff; }
.badge.off { background: var(--orange); }
.badge.used { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.badge.sold { background: #e4e1d9; color: #555; }
.wish { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.wish svg { width: 20px; height: 20px; }
.wish.on { color: var(--orange); }
.wish.big { width: 46px; height: 46px; top: 14px; inset-inline-end: 14px; }
.card-info { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.brand-line { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-family: var(--en); }
.card h3 { font-size: 16.5px; line-height: 1.35; margin-top: 2px; font-family: var(--en); letter-spacing: -.01em; }
.card .spec { font-size: 13.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.price { display: flex; flex-direction: column; line-height: 1.25; font-size: 17px; }
.price s { color: var(--muted); font-size: 13px; font-family: var(--en); }
.add { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.add svg { width: 18px; height: 18px; }
.add:hover { background: var(--orange); }
.add:disabled { background: #d9d6ce; color: #777; cursor: not-allowed; }

/* Payment section */
.pay-sec { margin-top: 64px; padding: 64px 0; background: var(--ink); color: #f5f3ee; }
.pay-sec .kicker { color: var(--orange); }
.pay-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pay-card { padding: 26px; border-radius: 22px; background: var(--ink2); border: 1px solid rgba(255, 255, 255, .08); }
.pc-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 90, 31, .15); color: var(--orange); margin-bottom: 16px; }
.pc-ic svg { width: 26px; height: 26px; }
.pay-card h3 { font-size: 21px; font-family: var(--en); }
html:not([lang="en"]) .pay-card:last-child h3 { font-family: var(--ku-head); }
.pay-card p { color: #b8b5ae; margin-top: 6px; }

/* Trade-in banner */
.tb-art { display: flex; align-items: center; justify-content: center; gap: 14px; }
.tb-art svg.art { height: 170px; width: auto; filter: drop-shadow(0 16px 24px rgba(120, 50, 10, .25)); }
.tb-art svg.art:first-child { transform: rotate(-8deg); }
.tb-art svg.art:last-child { transform: rotate(8deg); }
.tb-art > svg:not(.art) { width: 34px; height: 34px; color: var(--orange2); }

/* Delivery */
.delivery { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.areas { list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.areas li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--soft); }
.areas em { font-style: normal; color: var(--muted); font-size: 13.5px; }
.areas b { font-size: 14.5px; }
.del-side { display: grid; gap: 12px; align-content: start; }
.del-side p { display: flex; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; font-size: 14.5px; }
.del-side svg { width: 22px; height: 22px; flex: none; color: var(--orange); margin-top: 2px; }
.del-side .free-note { background: var(--green-soft); border-color: #c9ead7; font-weight: 700; }
.del-side .free-note svg { color: var(--green); }

/* Reviews, FAQ */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reviews figure { margin: 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.stars { display: flex; gap: 2px; color: #f5a524; }
.stars svg { width: 18px; height: 18px; }
.reviews blockquote { margin: 12px 0 14px; font-size: 16.5px; line-height: 1.6; }
.reviews figcaption { font-size: 14px; color: var(--muted); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--en); color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 20px 18px; color: #474b53; }

/* Footer */
.foot { margin-top: 80px; background: var(--ink); color: #c9c7c1; padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-brand img { height: 26px; width: auto; margin-bottom: 14px; }
.foot-brand p { max-width: 320px; }
.foot-brand .pay-chips { margin-top: 16px; }
.foot-brand .pay-chips span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #e6e3dc; }
.foot h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a:hover { color: #fff; }
.foot .contact a, .foot .contact .addr { display: flex; align-items: center; gap: 10px; }
.foot .contact svg { width: 18px; height: 18px; flex: none; color: var(--orange); }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.demo-note { color: #e9c46a; max-width: 640px; }
.by a { text-decoration: underline; text-underline-offset: 3px; }

/* Phone tab bar */
.dock { display: none; }

/* Basket drawer */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(14, 17, 22, .4); backdrop-filter: blur(2px); }
.sheet { position: fixed; z-index: 61; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%); background: var(--bg); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .25s ease; }
html[dir="rtl"] .sheet { transform: translateX(-100%); }
.sheet.open { transform: none !important; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 20px; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); font-size: 24px; line-height: 1; }
.sheet-body { flex: 1; overflow: auto; padding: 18px 22px calc(22px + env(safe-area-inset-bottom)); }
.free-bar { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); margin-bottom: 14px; font-size: 14px; }
.free-bar p { display: flex; align-items: center; gap: 8px; }
.free-bar p svg { width: 18px; height: 18px; color: var(--green); }
.free-bar i { display: block; height: 6px; border-radius: 999px; background: var(--soft); margin-top: 8px; overflow: hidden; position: relative; }
.free-bar i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p); background: linear-gradient(90deg, var(--orange), #ff8a5c); border-radius: inherit; }
.lines { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.lines li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.l-art { position: relative; width: 64px; height: 64px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.l-art :is(svg, img) { max-width: 76%; max-height: 80%; }
.l-art img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.l-name b { display: block; font-size: 14.5px; line-height: 1.3; font-family: var(--en); }
.l-name small { display: block; }
.l-price { font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 18px; border-radius: 50%; }
.qty button:disabled { opacity: .3; }
.qty b { min-width: 22px; text-align: center; font-size: 14px; }
.qty.big button { width: 44px; height: 48px; }
.qty.big b { min-width: 28px; font-size: 16px; }
.tot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; }
.tot.big { font-size: 18px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.tot.disc b { color: var(--green); }
.fine { font-size: 13px; color: var(--muted); margin: 6px 0 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fine svg { width: 16px; height: 16px; flex: none; }
.empty { text-align: center; padding: 48px 16px; display: grid; justify-items: center; gap: 12px; color: var(--muted); }
.empty > svg { width: 52px; height: 52px; color: #c9c4b8; }
.empty h1 { color: var(--ink); font-size: 56px; }

.toast { position: fixed; z-index: 80; inset-inline: 16px; bottom: 24px; margin: 0 auto; max-width: 440px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px 13px 18px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 14.5px; animation: up .25s ease; }
.toast button { flex: none; border: 0; border-radius: 999px; padding: 7px 14px; background: var(--orange); color: #fff; font-weight: 700; font-size: 13.5px; }
@keyframes up { from { transform: translateY(14px); opacity: 0; } }

/* Shop */
.shop { padding-top: 28px; }
.shop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.shop-head h1 { font-size: clamp(26px, 3.4vw, 38px); }
.chips { display: flex; gap: 8px; margin-bottom: 14px; }
.scroll-x { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.scroll-x::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.chip svg { width: 16px; height: 16px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.sel { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 14px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 13.5px; color: var(--muted); }
html[dir="rtl"] .sel { padding: 4px 14px 4px 6px; }
.sel select { border: 0; background: transparent; font-weight: 700; color: var(--ink); padding: 6px 4px; outline: none; max-width: 170px; }
.chip.toggle.on svg { color: #fff; }

/* Product page */
.pd { padding-top: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 600; }
.pd-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.pd-gallery { position: sticky; top: 140px; }
.pd-main { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 28px; background: radial-gradient(circle at 50% 40%, #fff, #ece9e2 70%); border: 1px solid var(--line); overflow: hidden; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-main svg { width: 62%; max-height: 74%; filter: drop-shadow(0 30px 40px rgba(14, 17, 22, .18)); }
.pd-main svg.tall { width: auto; height: 74%; }
.pd-main svg.wide { width: 74%; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { width: 72px; height: 72px; padding: 0; border-radius: 14px; border: 2px solid transparent; background: var(--soft); overflow: hidden; display: grid; place-items: center; }
.thumbs button.on { border-color: var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs svg { max-width: 70%; max-height: 80%; }
.pd-info h1 { font-size: clamp(28px, 3.4vw, 40px); font-family: var(--en); letter-spacing: -.025em; line-height: 1.1; margin-top: 4px; }
.pd-info > .spec { color: var(--muted); font-size: 16px; margin-top: 6px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.tag svg { width: 16px; height: 16px; color: var(--green); }
.tag.new { background: var(--green-soft); border-color: #c9ead7; color: var(--green); }
.tag.used { background: #fff4d6; border-color: #f2dfa6; color: #8a5a00; }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 18px; font-size: 32px; }
.pd-price small { font-size: 15px; }
.pd-price s { color: var(--muted); font-size: 18px; font-family: var(--en); }
.pd-price em { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--orange2); background: var(--orange-soft); padding: 3px 10px; border-radius: 999px; }
.stock { margin-top: 6px; font-weight: 700; color: var(--green); font-size: 14.5px; }
.stock.low { color: var(--amber); }
.stock.no { color: var(--red); }
.buy-row { display: flex; gap: 10px; margin-top: 16px; }
.buy-row .btn { min-height: 52px; }
.pd-box { margin-top: 20px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; font-size: 14.5px; }
.city-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.city-pick svg, .pay-line > svg { width: 20px; height: 20px; color: var(--orange); flex: none; }
.city-pick select { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--bg); font-weight: 700; }
#pd-del { padding-inline-start: 30px; color: var(--muted); }
.pay-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-more { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.pd-more h2 { font-size: 22px; margin-bottom: 12px; }
.desc { font-size: 16.5px; color: #3b3f47; }
.specs { margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.specs div { display: grid; grid-template-columns: 40% 60%; padding: 11px 16px; border-bottom: 1px solid var(--soft); }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }

/* Checkout */
.co-page { padding-top: 28px; }
.co-page > h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 24px; align-items: start; }
.co-main { display: grid; gap: 16px; }
fieldset { margin: 0; border: 1px solid var(--line); background: #fff; border-radius: 22px; padding: 18px 20px 20px; display: grid; gap: 12px; min-width: 0; }
legend { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; padding: 0 6px; }
legend b { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 13px/1 var(--en); }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
label > span, .field > span { color: #3b3f47; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; font-weight: 500; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 90, 31, .12); background: #fff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 13.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.hint svg { width: 16px; height: 16px; color: var(--orange); }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.pay-opt:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(255, 90, 31, .2); }
.po-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.po-ic svg { width: 22px; height: 22px; }
.po-t b { display: block; font-size: 16px; font-family: var(--en); }
html:not([lang="en"]) .pay-opt:last-child .po-t b { font-family: var(--ku); }
.po-t small { display: block; font-size: 13px; line-height: 1.4; }
.pay-opt > svg { width: 22px; height: 22px; color: var(--orange); opacity: 0; }
.pay-opt:has(input:checked) > svg { opacity: 1; }
.demo-pay { font-size: 13px; color: #8a5a00; background: #fff4d6; border-radius: 12px; padding: 8px 12px; }
.co-side { position: sticky; top: 140px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.co-side h2 { font-size: 18px; margin-bottom: 12px; }
.mini { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.mini li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.mini .l-art { width: 56px; height: 56px; overflow: visible; }
.mini .l-art i { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font: 800 11.5px/22px var(--en); font-style: normal; text-align: center; }
.mini b { font-size: 14px; line-height: 1.3; display: block; }
.mini small { display: block; line-height: 1.3; }
.mini li > b { white-space: nowrap; font-size: 13.5px; }
.coupon { display: flex; gap: 8px; margin: 6px 0 8px; }
.coupon input { text-transform: uppercase; font-family: var(--en); }
.coupon-msg { font-size: 13.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.coupon-msg svg { width: 16px; height: 16px; }
.coupon-msg.good { color: var(--green); }
.coupon-msg.bad { color: var(--red); }
.form-err { color: var(--red); font-weight: 600; font-size: 14px; margin: 8px 0; }
.co-side .btn.full { margin-top: 12px; min-height: 54px; font-size: 16px; }

/* Order page */
.order-page { padding-top: 28px; max-width: 1000px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.order-head h1 { font-size: clamp(24px, 3.2vw, 34px); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.pill svg { width: 16px; height: 16px; }
.pill.ok { background: var(--green-soft); border-color: #c9ead7; color: var(--green); }
.pill.warn { background: #fff4d6; border-color: #f2dfa6; color: #8a5a00; }
.pill.bad { background: #fdeceb; border-color: #f5c9c4; color: var(--red); }
.pay-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px; border-radius: 26px; background: #fff; border: 2px solid var(--orange); box-shadow: 0 20px 50px rgba(255, 90, 31, .12); margin-bottom: 22px; }
.pay-box h2 { font-size: 22px; }
.pay-box ol { margin: 10px 0; padding-inline-start: 20px; color: #3b3f47; }
.pb-qr { width: 230px; padding: 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.pb-qr img, .pb-qr .qr { width: 100%; height: auto; display: block; }
.code-line { font-size: 16px; margin: 6px 0; }
.code-line b { font-family: var(--en); font-size: 22px; letter-spacing: .08em; }
.small { font-size: 13.5px; }
.pay-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.pay-switch > span { font-size: 14px; color: var(--muted); }
.demo-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: #fff4d6; }
.demo-ctl p { flex-basis: 100%; font-size: 13px; color: #8a5a00; }
.pb-ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); }
.pb-ic svg { width: 36px; height: 36px; }
.pay-box.cod { grid-template-columns: auto minmax(0, 1fr); border-width: 1px; border-color: var(--line); box-shadow: none; padding: 18px 22px; }
.pay-box.cod > svg { width: 34px; height: 34px; color: var(--green); }
.pay-box.failed { display: block; border-color: var(--red); box-shadow: none; }
.pay-box.failed p { color: #3b3f47; margin-top: 4px; }
.timeline { list-style: none; margin: 0 0 22px; padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.timeline li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 15px; inset-inline-start: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline li.done::before, .timeline li.now::before { background: var(--orange); }
.timeline i { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); border: 3px solid #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.timeline .done i, .timeline .now i { background: var(--orange); color: #fff; box-shadow: none; }
.timeline .now { color: var(--ink); }
.timeline .now i { box-shadow: 0 0 0 6px rgba(255, 90, 31, .18); }
.timeline i svg { width: 16px; height: 16px; }
.order-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.box h2 { font-size: 18px; margin-bottom: 12px; }
.box h2.mt { margin-top: 22px; }
.box p { margin-bottom: 6px; }

.my-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.my-orders a { display: grid; grid-template-columns: 1fr auto auto 20px; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.my-orders a:hover { border-color: #cfc9bd; }
.my-orders span b { display: block; font-family: var(--en); }
.my-orders small { display: block; }
.my-orders svg { width: 18px; height: 18px; color: var(--muted); }

/* Practice payment screen (demo) */
body.bare .top, body.bare .announce, body.bare .foot, body.bare .dock { display: none; }
.sim { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #2b1b4d, #12101f); }
.sim-card { width: min(420px, 100%); background: #fff; border-radius: 26px; padding: 28px; display: grid; gap: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.sim-tag { justify-self: start; padding: 3px 12px; border-radius: 999px; background: #fff4d6; color: #8a5a00; font-size: 12.5px; font-weight: 700; }
.sim h1 { font-family: var(--en); font-size: 30px; }
.sim-amount { font-size: 30px; padding: 6px 0 4px; }

/* Trade-in */
.flow { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.flow li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; font-weight: 600; }
.flow b { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-family: var(--en); flex: none; }
.quote { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); }
.quote h2 { font-size: 22px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: 14px; }
.seg button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--orange); }
.done { text-align: center; justify-items: center; }
.done-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.done-tick svg { width: 32px; height: 32px; }

/* Tablets */
@media (max-width: 1080px) {
  .hero-in { padding: 48px 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .pd-grid { gap: 28px; }
}

/* Phones */
@media (max-width: 860px) {
  html { scroll-padding-top: 150px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.bare { padding-bottom: 0; }
  .wrap { padding-inline: 16px; }
  .top-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "search search"; height: auto; padding-block: 10px; gap: 10px; }
  .brand { grid-area: brand; }
  .brand img { height: 20px; }
  .search { grid-area: search; max-width: none; }
  .search input { height: 44px; }
  .top-actions { grid-area: actions; }
  .hide-sm { display: none !important; }
  .langs { margin-inline-end: 2px; }
  .langs button { padding: 4px 8px; font-size: 12.5px; }
  .icon-btn.bag { display: none; }
  .cats-in { height: 42px; }
  .cats-in a { font-size: 14px; padding: 5px 11px; }

  .hero { padding: 12px 12px 0; }
  .hero-in { grid-template-columns: 1fr; padding: 32px 22px 18px; border-radius: 26px; gap: 6px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 16px; }
  .cta-row .btn { flex: 1; }
  .hero-art { min-height: 300px; }
  .hero-device { width: 140px; }
  .hero-art .glow { width: 220px; height: 220px; }
  .float { padding: 9px 12px; border-radius: 14px; }
  .float.f1 { bottom: 26px; }
  .float.f1 b, .float.f1 em { font-size: 13.5px; }
  .float.f2 { top: 26px; font-size: 12.5px; }

  .trust { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trust > div { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .trust b { font-size: 14px; }
  .sec { padding-top: 44px; }
  .sec-head { margin-bottom: 16px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .cat { padding: 12px 6px; border-radius: 18px; }
  .cat-art, .cat-art svg, .cat-art svg.tall { height: 64px; max-height: 64px; }
  .cat b { font-size: 13.5px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .grid.scroll::-webkit-scrollbar { display: none; }
  .grid.scroll .card { flex: 0 0 62%; scroll-snap-align: start; }
  .card { border-radius: 18px; }
  .card-info { padding: 10px 12px 12px; }
  .card h3 { font-size: 14.5px; }
  .card .spec { font-size: 12.5px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .price { font-size: 15.5px; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px; }
  .add { justify-content: center; height: 38px; }
  .wish { width: 34px; height: 34px; top: 8px; inset-inline-end: 8px; }
  .badge { top: 9px; inset-inline-start: 9px; font-size: 11px; }

  .pay-sec { margin-top: 44px; padding: 44px 0; }
  .pay-cards { grid-template-columns: 1fr; gap: 10px; }
  .pay-card { padding: 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
  .pc-ic { grid-row: span 2; margin: 0; }
  .tb-art svg.art { height: 110px; }
  .delivery { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; gap: 10px; }
  .foot { margin-top: 56px; padding-top: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .foot-brand { grid-column: 1 / -1; }

  .dock { position: fixed; z-index: 45; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .dock a, .dock button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px; border: 0; background: none; border-radius: 14px; font-size: 11px; font-weight: 700; color: var(--muted); min-width: 0; }
  .dock svg { width: 24px; height: 24px; }
  .dock span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dock .on { color: var(--ink); }
  .dock .on svg { color: var(--orange); }
  .dock .count { top: 0; inset-inline-end: calc(50% - 22px); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

  .toolbar { gap: 8px; }
  .sel { flex: 1 1 140px; justify-content: space-between; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-gallery { position: relative; top: 0; }
  .pd-main { border-radius: 22px; }
  .pd-price { font-size: 28px; }
  .pd-more { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .co-grid { grid-template-columns: 1fr; }
  .co-side { position: relative; top: 0; }
  fieldset { padding: 14px 14px 16px; border-radius: 18px; }
  .two { grid-template-columns: 1fr; }
  .pay-box { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 20px 16px; gap: 14px; }
  .pay-box ol { text-align: start; }
  .pb-qr { width: 220px; }
  .pay-switch, .demo-ctl { justify-content: center; }
  .pay-box.cod { text-align: start; justify-items: start; grid-template-columns: auto 1fr; }
  .timeline { padding: 16px 8px; }
  .timeline li { font-size: 12px; }
  .order-grid { grid-template-columns: 1fr; }
  .my-orders a { grid-template-columns: 1fr auto 18px; }
  .my-orders a > span.muted { display: none; }
}
@media (max-width: 380px) {
  .langs button { padding: 4px 6px; }
  .grid.scroll .card { flex-basis: 70%; }
}
html[dir="rtl"] :is(input[type="tel"], .sim input) { direction: ltr; text-align: right; }
.seo-fallback { padding: 28px 20px; color: var(--muted); }
.seo-fallback h1 { color: var(--ink); font-size: 28px; margin-bottom: 8px; }
.seo-fallback ul { padding-inline-start: 20px; }
/* Map (public/map.js) */
.mm { position: relative; overflow: hidden; background: #e8e4dc; border-radius: 16px; touch-action: none; user-select: none; cursor: grab; min-height: 220px; isolation: isolate; }
.mm.dragging { cursor: grabbing; }
.mm-tiles, .mm-marks { position: absolute; inset: 0; }
.mm-tiles img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.mm-mk { position: absolute; left: 0; top: 0; z-index: 2; }
.mm-mk .mm-dot { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; background: var(--ink); font-size: 18px; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.mm-driver .mm-dot, .mm-me .mm-dot { background: var(--orange); }
.mm-dest .mm-dot { background: #1d4ed8; }
.mm-mk b { position: absolute; transform: translate(-50%, 22px); white-space: nowrap; font: 800 11px/1.4 var(--en); color: var(--ink); background: rgba(255, 255, 255, .95); padding: 1px 7px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.mm-zoom { position: absolute; top: 8px; right: 8px; z-index: 3; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.mm-zoom button { width: 36px; height: 34px; border: 0; background: #fff; color: var(--ink); font-size: 18px; font-weight: 700; }
.mm-zoom button + button { border-top: 1px solid #ddd; }
.mm-center { position: absolute; left: 50%; top: 50%; z-index: 4; pointer-events: none; transform: translate(-50%, -100%); font-size: 38px; line-height: 1; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); transition: transform .12s; }
.mm-picker.dragging .mm-center { transform: translate(-50%, -118%); }
.mm-attr { position: absolute; bottom: 0; right: 0; z-index: 3; font-size: 10px; background: rgba(255, 255, 255, .85); color: #333 !important; padding: 1px 6px; border-top-left-radius: 6px; }

/* Checkout: the delivery pin */
.pin-box { display: grid; gap: 8px; }
.pin-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pin-head b { display: block; font-size: 14px; }
.pin-head small { display: block; font-size: 12.5px; line-height: 1.4; }
.pin-head .btn svg { width: 18px; height: 18px; }
.co-map { height: 260px; }
#co-pin-msg.ok { color: var(--green); font-weight: 600; }

/* Order page: where the parcel is going, and the driver */
.track { margin-bottom: 22px; }
.track h2 { display: flex; align-items: center; gap: 8px; }
.track h2 svg { width: 22px; height: 22px; color: var(--orange); }
.o-map { height: 280px; margin-bottom: 8px; }

/* Driver page (/d/<token>): a full-screen app for whoever delivers the parcel */
.drive { max-width: 560px; margin: 0 auto; padding: 0 14px calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.drive-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -14px; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; background: var(--ink); }
.drive-top img { height: 22px; width: auto; }
.drive-top .langs { margin: 0; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); }
.drive-top .langs button { color: #c9c7c1; }
.drive-top .langs button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.drive-head h1 { font-size: 26px; }
.drive-addr { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; font-size: 16px; }
.drive-addr svg { width: 20px; height: 20px; color: var(--orange); flex: none; margin-top: 4px; }
.drive-warn { margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: #fff4d6; color: #8a5a00; font-size: 14px; }
.d-map { height: 300px; }
.drive-go { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.drive-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn.big { min-height: 58px; font-size: 17px; }
.drive-money { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; font-size: 16px; }
.drive-money svg { width: 30px; height: 30px; flex: none; }
.drive-money b { display: block; font-size: 22px; }
.drive-money.cod { background: #fff4d6; color: #6b4600; border: 1px solid #f2dfa6; }
.drive-money.paid { background: var(--green-soft); color: var(--green); border: 1px solid #c9ead7; }
.drive-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.drive-note { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.drive-loc { font-size: 14px; color: var(--muted); text-align: center; }
.drive-loc.on { color: var(--green); font-weight: 700; }
.drive-finish { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.drive-done { text-align: center; padding: 60px 16px; display: grid; justify-items: center; gap: 10px; }
.drive-done > svg { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.drive-done.bad > svg { background: #fdeceb; color: var(--red); }
body.bare { background: var(--bg); }

/* In-page turn-by-turn for drivers (public/nav.js) */
html.nav-open, html.nav-open body { overflow: hidden; height: 100%; overscroll-behavior: none; }
html.nav-open body > :not(.nav) { display: none !important; }
.nav { touch-action: none; overscroll-behavior: contain; }
.drive-go.solo { grid-template-columns: 1fr; }
.nav { position: fixed; inset: 0; z-index: 1000; background: #dfe3e8; }
.nav [hidden] { display: none !important; }
.nav-map { position: absolute !important; inset: 0; width: 100%; height: 100%; } /* mapbox-gl.css sets it relative */
.nav-banner { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); min-height: 76px; }
.nav-arrow { flex: none; width: 52px; height: 52px; display: grid; place-items: center; color: var(--orange); }
.nav-arrow svg { width: 48px; height: 48px; transition: transform .2s; }
.nav-banner b { display: block; font-size: 26px; line-height: 1.1; direction: ltr; unicode-bidi: isolate; }
.nav-text { display: block; font-size: 17px; line-height: 1.35; opacity: .92; }
.nav-text a { color: var(--orange); font-weight: 700; }
.nav-recenter { position: absolute; bottom: calc(108px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 11px 18px;
  border-radius: 999px; border: 0; background: #fff; color: var(--ink); font: inherit; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.nav-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 26px rgba(0, 0, 0, .15); }
.nav-eta { flex: 1; min-width: 0; }
.nav-eta b { display: block; font-size: 20px; color: #0a8a4a; }
.nav-eta small { color: #5d636d; }
.nav-voice { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #e3e6ea; background: #fff; color: var(--ink); display: grid; place-items: center; }
.nav-voice svg { width: 22px; height: 22px; }
.nav-close { padding: 12px 16px; border-radius: 14px; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 700; }
.nav-arrived { position: absolute; left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); padding: 18px; border-radius: 18px;
  background: #fff; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); display: grid; gap: 8px; }
.nav-arrived b { font-size: 22px; color: #0a8a4a; }
.nav-arrived p { margin: 0; color: #474b53; }
.nav-me { width: 38px; height: 38px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 38'%3E%3Ccircle cx='19' cy='19' r='17' fill='%23ff5a1f' stroke='%23fff' stroke-width='3'/%3E%3Cpath d='M19 8 27 28 19 23.5 11 28Z' fill='%23fff'/%3E%3C/svg%3E");
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.nav-dest { width: 30px; height: 40px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Cpath d='M15 1C7 1 1 7 1 15c0 10 14 24 14 24s14-14 14-24C29 7 23 1 15 1Z' fill='%230e1116'/%3E%3Ccircle cx='15' cy='15' r='6' fill='%23fff'/%3E%3C/svg%3E"); }
.nav .mapboxgl-ctrl-bottom-left, .nav .mapboxgl-ctrl-bottom-right { bottom: calc(80px + env(safe-area-inset-bottom)); } /* Mapbox logo stays visible */

/* Checkout pin on the detailed Mapbox map, and the driver's roadside stop */
.co-map.mb { height: 360px; border-radius: 16px; overflow: hidden; }
.co-map.mb .mapboxgl-canvas { cursor: crosshair; }
.co-stop { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #eef8f2; color: #0b5e35; font-size: 15px; }
.co-stop svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.co-stop small { color: #3d6b52; }
.co-stop em { display: block; margin-top: 6px; font-style: normal; font-weight: 600; color: #8a4b00; }
.co-stop.far { background: #fff6e8; color: #6b3b00; }
.co-stop-ok { padding: 12px 14px; border: 2px solid var(--orange); border-radius: 14px; background: var(--orange-soft); font-weight: 600; }
.pick-pin, .nav-house { width: 34px; height: 44px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 44'%3E%3Cpath d='M17 1C8 1 1 8 1 17c0 11 16 26 16 26s16-15 16-26C33 8 26 1 17 1Z' fill='%23ff5a1f' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M17 9 9 16v9h5v-6h6v6h5v-9Z' fill='%23fff'/%3E%3C/svg%3E");
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .3)); cursor: grab; }
.nav-house { width: 28px; height: 36px; cursor: default; }
.pick-stop { width: 30px; height: 30px; border-radius: 50%; background: #0e1116 no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 11 7 6h10l2 5h1a1 1 0 0 1 1 1v5h-2a2 2 0 0 1-4 0H9a2 2 0 0 1-4 0H3v-5a1 1 0 0 1 1-1Zm2.2 0h9.6l-1.2-3H8.4Z' fill='%23fff'/%3E%3C/svg%3E");
  border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
.timeline li small { display: block; margin-top: 2px; font-weight: 500; font-size: 12px; color: var(--muted); }
.stop-line, .drive-stop { display: flex; gap: 8px; align-items: flex-start; }
.stop-line svg, .drive-stop svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--orange); }
.drive-stop { margin: 6px 0 0; padding: 10px 12px; border-radius: 12px; background: #eef8f2; color: #0b5e35; }
