/* Language picker, right-to-left layout for Kurdish (Sorani, Badini) and Arabic,
   the "Text us" pop-up and WhatsApp links. Shop only — the admin panel does not load this file. */

/* ---------- language picker ---------- */
.lang-pick { display: inline-flex; align-items: center; gap: 4px; flex: none; position: relative; }
.lang-globe { font-size: 15px; line-height: 1; }
.lang-pick select {
  appearance: none; -webkit-appearance: none; border: 1px solid #d9d9d9; background: #fff; color: inherit;
  font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; cursor: pointer; max-width: 150px;
}
.lang-pick select:hover, .lang-pick select:focus { border-color: var(--s-acc, #ff6a00); outline: none; }

/* ---------- Arabic script (Sorani, Badini, Arabic): Noto Sans Arabic, hosted with the shop ----------
   One variable font file (weights 100–900) that has every Kurdish letter (ڕ ڵ ێ ۆ ە ڤ). SIL Open Font License. */
@font-face {
  font-family: "Arogar Arabic"; src: url("/fonts/NotoSansArabic.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
/* Latin letters (product names, prices) keep the shop's normal font; Arabic-script letters use the new one */
html[dir="rtl"] body, html[dir="rtl"] body.store, html[dir="rtl"] input, html[dir="rtl"] select, html[dir="rtl"] textarea, html[dir="rtl"] button {
  --s-font: "Arogar Arabic", "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  font-family: "Arogar Arabic", "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
}
html[dir="rtl"] body { line-height: 1.7; }
html[dir="rtl"] body * { letter-spacing: 0 !important; }
/* Arabic script has no capitals and looks heavy at 900, so headings use a strong but clean 700–800 */
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] .shead h2, html[dir="rtl"] .ctile-t b, html[dir="rtl"] .sf-cols h4,
html[dir="rtl"] .perks b, html[dir="rtl"] .sf-brand b { font-weight: 800; }
html[dir="rtl"] .shero-text h1 { font-weight: 800; }
html[dir="rtl"] .announce, html[dir="rtl"] .cat-nav a, html[dir="rtl"] .top-link, html[dir="rtl"] .crumbs, html[dir="rtl"] .kick { font-weight: 600; }
html[dir="rtl"] .announce { font-size: 13px; }
html[dir="rtl"] .cat-nav a { font-size: 14px; }
html[dir="rtl"] .sbtn, html[dir="rtl"] body.store #orderBtn, html[dir="rtl"] .modal .btn { font-weight: 700; font-size: 14.5px; }
html[dir="rtl"] .pquick, html[dir="rtl"] .ptag { font-weight: 700; font-size: 12.5px; }
html[dir="rtl"] .sf-cols > div { font-size: 14.5px; }
/* the 3D mall: same font for its signs and buttons */
html[dir="rtl"] #mallMount, html[dir="rtl"] #mallMount button { font-family: "Arogar Arabic", "Helvetica Neue", Arial, sans-serif; }
html[dir="rtl"] #mallMount .xb b, html[dir="rtl"] #mallMount .hud-chip, html[dir="rtl"] #mallMount .hud-hint,
html[dir="rtl"] #mallMount .hud-btn, html[dir="rtl"] #mallMount .hud-down, html[dir="rtl"] #mallMount .shop-exit { direction: rtl; unicode-bidi: isolate; }
html[dir="rtl"] .shero-text h1 { line-height: 1.25; }
html[dir="rtl"] .cat-head h1, html[dir="rtl"] body.store .info h1 { line-height: 1.35; }
/* product names and descriptions stay in the language they were written in */
html[dir="rtl"] .ptitle, html[dir="rtl"] .title, html[dir="rtl"] .info h1 { unicode-bidi: plaintext; }
html[dir="rtl"] .logo, html[dir="rtl"] #siteName { direction: ltr; }
/* prices keep "$29.00" order inside right-to-left text */
html[dir="rtl"] #total, html[dir="rtl"] #priceNow, html[dir="rtl"] .pprice, html[dir="rtl"] .price,
html[dir="rtl"] .bb-price, html[dir="rtl"] .pc-price { direction: ltr; unicode-bidi: isolate; display: inline-block; }
html[dir="rtl"] .shero-text h1 { font-size: clamp(34px, 4.4vw, 64px); }

/* ---------- right-to-left fixes ---------- */
html[dir="rtl"] .rail-arrows { margin-left: 0; margin-right: auto; flex-direction: row-reverse; }
html[dir="rtl"] .ptag { left: auto; right: 10px; }
html[dir="rtl"] body.store footer, html[dir="rtl"] .sf-cols button { text-align: right; }
html[dir="rtl"] .modal-x { right: auto; left: 14px; }
html[dir="rtl"] .tl li::before { left: auto; right: 13px; }
html[dir="rtl"] .card .new-badge { left: auto; right: 10px; }
html[dir="rtl"] .cat-card .new-badge { right: auto; left: 10px; }
html[dir="rtl"] .actions .btn { margin-left: 0; margin-right: 6px; }
html[dir="rtl"] .slider .arrow.prev { left: auto; right: 14px; }
html[dir="rtl"] .slider .arrow.next { right: auto; left: 14px; }
html[dir="rtl"] .dots { left: auto; right: 48px; }
html[dir="rtl"] .tier { border-right: 0; border-left: 1px solid #ffdcc2; }
html[dir="rtl"] .tier:last-child { border-left: 0; }
html[dir="rtl"] .qty-box input, html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="number"] { text-align: right; }
/* the 3D mall keeps its own left/right geometry; only its text follows the language */
html[dir="rtl"] #mallMount .hud-hint, html[dir="rtl"] #mallMount .hud-dir { direction: rtl; }

/* ---------- footer: five columns now (with Contact us) ---------- */
.sf-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; }
@media (max-width: 900px) { .sf-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- WhatsApp ---------- */
.wa-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.sf-cols .wa-link { color: #128c4a; }
.sf-cols .wa-link:hover { color: #0b6b37; }
.wa-link svg, .tu-wa svg { width: 18px; height: 18px; flex: none; }
.foot-simple { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-simple .wa-link { color: #128c4a; }

/* ---------- floating "Text us" button ---------- */
.textus-fab {
  position: fixed; bottom: 18px; right: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 8px;
  background: var(--s-acc, #ff6a00); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px;
  font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 28px rgba(255,106,0,.38);
  transition: transform .15s ease, box-shadow .15s ease;
}
.textus-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255,106,0,.45); }
.textus-fab span { font-size: 18px; line-height: 1; }
html[dir="rtl"] .textus-fab { right: auto; left: 18px; }
body.mall3d .textus-fab { bottom: 80px; }

/* ---------- "Text us" pop-up ---------- */
.modal.textus { width: min(500px, 100%); }
.tu-ico { width: 52px; height: 52px; border-radius: 50%; background: #fff1e6; display: grid; place-items: center; font-size: 24px; margin-bottom: 10px; }
.modal.textus h2 { margin: 0 0 6px; }
.tu-lead { margin: 0 0 16px; color: #444; line-height: 1.6; font-size: 15px; }
.modal.textus textarea { min-height: 92px; }
.tu-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.tu-sp { flex: 1; }
.tu-drop {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border: 2px dashed #ffc49a; background: #fff8f2; color: #c24e00; border-radius: 12px; padding: 14px; font: inherit; font-weight: 700; font-size: 14px;
  transition: background .15s, border-color .15s;
}
.tu-drop:hover { background: #fff1e6; border-color: #ff6a00; }
.tu-drop span { font-size: 20px; line-height: 1; }
.tu-prev { display: flex; align-items: center; gap: 12px; border: 1px solid #f0e2d6; border-radius: 12px; padding: 8px; }
.tu-prev[hidden], .tu-drop[hidden] { display: none; }
.tu-prev img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; background: #f4f4f4; }
.tu-rm { margin-inline-start: auto; border: 1px solid #e6e6e6; background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: #b42318; }
.tu-rm:hover { border-color: #b42318; }
.tu-wa { display: inline-flex; align-items: center; gap: 6px; color: #128c4a; font-weight: 700; font-size: 14px; }
.tu-wa:hover { color: #0b6b37; }
@media (max-width: 560px) {
  .textus-fab { padding: 11px 14px; bottom: 14px; right: 14px; }
  html[dir="rtl"] .textus-fab { left: 14px; }
}
