/**
 * Suntech Engine — Language Module Styles.
 * Self-hosted fonts (no third-party).
 */

@font-face{
  font-family:"Noto Nastaliq Urdu";
  src:url("../../fonts/noto-nastaliq-urdu.ttf") format("truetype");
  font-weight:400 700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Noto Sans Devanagari";
  src:url("../../fonts/noto-sans-devanagari.woff2") format("woff2");
  font-weight:400 700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Noto Sans Bengali";
  src:url("../../fonts/noto-sans-bengali.woff2") format("woff2");
  font-weight:400 700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Noto Sans Arabic";
  src:url("../../fonts/noto-sans-arabic.woff2") format("woff2");
  font-weight:400 700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Vazirmatn";
  src:url("../../fonts/vazirmatn.woff2") format("woff2");
  font-weight:400 700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Noto Sans SC";
  src:url("../../fonts/noto-sans-sc.woff2") format("woff2");
  font-weight:400 700;
  font-style:normal;
  font-display:swap;
}

/* Language switcher in top row. */
.stm-lang-switcher{position:relative;display:inline-flex;align-items:center}
.stm-lang-switcher__btn{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;min-height:24px;border:1px solid var(--stm-commerce-border,#e2e8f0);border-radius:999px;background:var(--stm-commerce-surface,#fff);color:var(--stm-commerce-heading,#0f172a);font-size:12px;font-weight:600;cursor:pointer;transition:border-color .18s,background-color .18s}
.stm-lang-switcher__btn:hover{border-color:var(--stm-commerce-primary,#ff6a00)}
.stm-lang-switcher__icon{display:inline-flex;line-height:1}.stm-lang-switcher__icon svg{width:13px;height:13px}
.stm-lang-switcher__current{letter-spacing:.5px}
.stm-lang-switcher__arrow{font-size:10px;opacity:.6}
.stm-lang-switcher__menu{position:absolute;top:calc(100% + 8px);right:0;z-index:1000;min-width:180px;max-height:300px;overflow-y:auto;margin:0;padding:4px;list-style:none;border:1px solid var(--stm-commerce-border,#e2e8f0);border-radius:10px;background:var(--stm-commerce-surface,#fff);box-shadow:0 12px 32px rgba(15,23,42,.14)}
.stm-lang-switcher__menu[hidden]{display:none}
.stm-lang-switcher__opt{display:flex;align-items:center;gap:8px;width:100%;padding:7px 10px;border:0;border-radius:6px;background:transparent;color:var(--stm-commerce-heading,#0f172a);font-size:12px;text-align:left;cursor:pointer;min-height:36px;transition:background-color .15s,color .15s}
.stm-lang-switcher__opt:hover,.stm-lang-switcher__opt:focus{background:var(--stm-commerce-primary,#ff6a00);color:#fff}
.stm-lang-switcher__opt:hover .stm-lang-switcher__name,.stm-lang-switcher__opt:focus .stm-lang-switcher__name{color:#fff;opacity:.9}
.stm-lang-switcher__opt.is-active{background:var(--stm-commerce-primary-soft,#fff2e8);color:var(--stm-commerce-primary-deep,#d95600)}
.stm-lang-switcher__native{font-weight:600;font-size:12px}
.stm-lang-switcher__name{margin-left:auto;font-size:10px;opacity:.6}
.stm-lang-switcher__check{color:var(--stm-commerce-success,#16884a);font-weight:700}

/* RTL support — content only, header stays LTR. */
.stm-lang-rtl .site-content,
.stm-lang-rtl .stm-site-main,
.stm-lang-rtl article,
.stm-lang-rtl .entry-content{direction:rtl;text-align:right}
/* Header, hero, sidebar, author, comments never flip direction. */
.stm-lang-rtl .stm-site-header,
.stm-lang-rtl .stm-blog-header-topbar,
.stm-lang-rtl .stm-blog-header-main,
.stm-lang-rtl .stm-blog-header-navigation,
.stm-lang-rtl .stm-sp__lead-card,
.stm-lang-rtl .stm-sp__lead-card.has-media,
.stm-lang-rtl .stm-sp__hero,
.stm-lang-rtl article .entry-header,
.stm-lang-rtl .stm-sp__article-card,
.stm-lang-rtl .stm-sp__body-layout,
.stm-lang-rtl .stm-sidebar--blog,
.stm-lang-rtl .stm-sidebar--single-post,
.stm-lang-rtl .stm-sp__authorbox,
.stm-lang-rtl .stm-sp__author-body,
.stm-lang-rtl #comments,
.stm-lang-rtl .comment-respond,
.stm-lang-rtl .comment-list,
.stm-lang-rtl .comment-form{direction:ltr!important;text-align:left!important}
.stm-lang-rtl .stm-sp__lead-card *,
.stm-lang-rtl .stm-sp__lead-card.has-media *,
.stm-lang-rtl .stm-sp__hero *,
.stm-lang-rtl article .entry-header *,
.stm-lang-rtl .stm-sp__authorbox *{direction:ltr!important;text-align:left!important}
.stm-lang-rtl .stm-lang-switcher__menu{right:auto;left:0}

/* Language-specific fonts. */
/* Compact fonts - no size distortion, balance preserved */
.stm-lang-ur,.stm-lang-ps,.stm-lang-ar{font-family:"Noto Sans Arabic","Noto Nastaliq Urdu",sans-serif}
.stm-lang-fa{font-family:"Vazirmatn","Noto Sans Arabic",sans-serif}
.stm-lang-hi{font-family:"Noto Sans Devanagari",sans-serif}
.stm-lang-bn{font-family:"Noto Sans Bengali",sans-serif}
.stm-lang-zh{font-family:"Noto Sans SC",sans-serif}

/* Keep UI elements LTR where needed (numbers, prices). */
.stm-lang-rtl .price,
.stm-lang-rtl .stm-asc-card__price,
.stm-lang-rtl [data-stm-price]{direction:ltr;unicode-bidi:embed}

/* Touch devices: larger tap targets */
@media (pointer:coarse){
  .stm-lang-switcher__opt{min-height:44px;padding:10px 12px;font-size:13px}
  .stm-lang-switcher__btn{min-height:36px;padding:6px 12px}
}
/* Tablet */
@media (max-width:1024px){
  .stm-lang-switcher__menu{min-width:170px}
}
/* Mobile */
@media (max-width:768px){
  .stm-lang-switcher__menu{position:fixed;top:auto;bottom:0;left:0;right:0;min-width:0;max-height:50vh;border-radius:16px 16px 0 0}
  .stm-lang-switcher__opt{min-height:48px;font-size:14px}
}
