/* Smart Multilingual 1.0 core styles.
 * Core styles the plugin UI and explicit utility classes only. It never changes
 * a theme's typography, text alignment, widths, grids, sidebars or menus. */
.sml-switcher{position:relative;display:inline-flex;align-items:center;overflow:visible;font:inherit;color:var(--sml-switcher-color);background:var(--sml-switcher-bg);border:1px solid var(--sml-switcher-border);border-radius:var(--sml-switcher-radius);isolation:isolate;z-index:2147483000}
.sml-switcher-toggle{appearance:none;border:0;background:transparent;color:inherit;font:inherit;line-height:1.2;padding:.55em .8em;cursor:pointer}
.sml-switcher-menu{position:absolute;inset-block-start:100%;inset-inline-start:0;display:none;min-width:100%;padding:.35rem;background:var(--sml-switcher-menu-bg);color:var(--sml-switcher-menu-color);border:1px solid var(--sml-switcher-border);border-radius:var(--sml-switcher-radius);box-shadow:0 14px 38px rgba(15,23,42,.16);pointer-events:auto;z-index:2147483001}
.sml-switcher-dropdown:hover .sml-switcher-menu,.sml-switcher-dropdown:focus-within .sml-switcher-menu,.sml-switcher-dropdown.is-open .sml-switcher-menu{display:grid}
.sml-switcher-item{display:block;padding:.55em .75em;border-radius:calc(var(--sml-switcher-radius) * .7);color:inherit;text-decoration:none;white-space:nowrap}
.sml-switcher-item:hover,.sml-switcher-item:focus{color:var(--sml-switcher-hover-color);background:var(--sml-switcher-hover-bg)}
.sml-switcher-item.is-active{font-weight:700}
.sml-switcher-list{gap:.25rem;padding:.25rem}.sml-switcher-list .sml-switcher-item{color:var(--sml-switcher-color)}

/* Explicit author controls. Nothing below is triggered by direction alone. */
.sml-rtl-layout{direction:rtl!important}.sml-ltr-layout{direction:ltr!important}
.sml-rtl-text{text-align:right!important}.sml-ltr-text{text-align:left!important}.sml-center-text{text-align:center!important}
.sml-mirror-layout{flex-direction:row-reverse!important}.sml-keep-layout{flex-direction:inherit}

@media (prefers-reduced-motion:reduce){.sml-switcher *{transition:none!important}}

/* WooCommerce catalogue typography. Persian keeps the requested 19px size;
 * English is slightly smaller so long lens names stay balanced in the grid. */
body.sml-lang-fa h3.woocommerce-loop-product__title{font-size:19px!important;line-height:1.45!important}
body.sml-lang-en h3.woocommerce-loop-product__title{font-size:17px!important;line-height:1.35!important}

/* Astra/WooCommerce may render the archive title as a link inside product-caption
 * instead of the standard h3 class. Keep those variants consistent too. */
body.sml-lang-en .woocommerce ul.products li.product .product-caption :is(h2,h3,.woocommerce-loop-product__title,a){font-size:17px!important;line-height:1.35!important}
body.sml-lang-fa .woocommerce ul.products li.product .product-caption :is(h2,h3,.woocommerce-loop-product__title,a){font-size:19px!important;line-height:1.45!important}

/* English sidebar headings were visually oversized in the active Astra layout. */
body.sml-lang-en #secondary .widget-title,
body.sml-lang-en #secondary .gamma.widget-title{font-size:22px!important;line-height:1.25!important}
body.sml-lang-en #secondary .widget_products .product-content,
body.sml-lang-en #secondary .widget_products .product-content a{font-size:16px!important;line-height:1.35!important}

/* Persian WooCommerce product-search alignment. The theme visually hides the
 * submit text in LTR, but that rule can break in RTL and overlap the placeholder. */
body.sml-lang-fa .widget_product_search .woocommerce-product-search{position:relative}
body.sml-lang-fa .widget_product_search .search-field{direction:rtl!important;text-align:right!important;padding-inline-start:48px!important;padding-inline-end:18px!important}
body.sml-lang-fa .widget_product_search button[type=submit]{text-indent:-9999px!important;overflow:hidden!important;white-space:nowrap!important;min-width:42px}
body.sml-lang-fa .widget_product_search button[type=submit] :is(svg,i){text-indent:0!important}


/* 1.0.8: Persian product search uses a left-side submit icon. Astra positions
 * this control on the right by default, so force the physical left edge here. */
body.sml-lang-fa .widget_product_search .woocommerce-product-search button[type=submit]{
 position:absolute!important;left:12px!important;right:auto!important;inset-inline-start:auto!important;inset-inline-end:auto!important;top:50%!important;transform:translateY(-50%)!important;margin:0!important
}
body.sml-lang-fa .widget_product_search .woocommerce-product-search .search-field{
 padding-left:52px!important;padding-right:18px!important
}

/* Visual fallback for themes that cache their own product-category widget HTML. */
body.sml-lang-en .widget_product_categories li.cat-item a[href*="/product-category/uncategorized/"]{display:none!important}
body.sml-lang-en .widget_product_categories li.cat-item:has(> a[href*="/product-category/uncategorized/"]){display:none!important}
