﻿/* Russian storefront only. English Unimart template remains the visual baseline. */
html[lang="ru"] { direction:ltr; }
html[lang="ru"] .techsouq-language-dropdown-wrap .sub-menu { left: 0; right: auto; transform: none !important; }
html[lang="ru"] .techsouq-language-dropdown-wrap .sub-menu a { text-align:left; }
html[lang="ru"] .techsouq-language-dropdown-wrap .sub-menu a .menu-item { text-align:left; }
html[lang="ru"] .rbt-banner-title { overflow-wrap:anywhere; }
html[lang="ru"] .rbt-shop-tools-title { white-space:normal; }

/* Russian static/support pages share the storefront components without Arabic direction rules. */
html[lang="ru"] .techsouq-policy-page { padding: 38px 0 80px; direction:ltr; text-align:left; }
html[lang="ru"] .techsouq-policy-page .techsouq-policy-content { max-width: 950px; margin: 0 auto; }
html[lang="ru"] .techsouq-policy-page .techsouq-policy-content h1 { margin-bottom:24px; }
html[lang="ru"] .techsouq-policy-page .techsouq-policy-content h2 { margin:26px 0 12px; font-size:22px; }
html[lang="ru"] .techsouq-policy-page .techsouq-policy-content p,
html[lang="ru"] .techsouq-policy-page .techsouq-policy-content li { line-height:1.8; }
html[lang="ru"] .techsouq-policy-page .techsouq-policy-content ul,
html[lang="ru"] .techsouq-policy-page .techsouq-policy-content ol { padding-left:28px; }
html[lang="ru"] .techsouq-policy-contact { display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center;margin-top:28px;padding:18px;background:#f5f7f5;border-radius:12px; }
html[lang="ru"] .techsouq-service-ru { direction:ltr; text-align:left; }
html[lang="ru"] .techsouq-mobile-language-options { display:flex;flex-wrap:wrap;gap:12px;align-items:center; }
html[lang="ru"] .techsouq-mobile-language-options a { display:inline-flex;align-items:center;gap:6px; }
html[lang="ru"] .techsouq-mobile-language-options a.active {font-weight:700;color:var(--color-primary);}

/* Russian static/support pages share the storefront components without Arabic direction rules. */
html[lang="ru"] .techsouq-policy-page { padding: 38px 0 80px; direction:ltr; text-align:left; }
html[lang="ru"] .techsouq-policy-page .techsouq-policy-content { max-width: 950px; margin: 0 auto; }
html[lang="ru"] .techsouq-policy-page .techsouq-policy-content h1 { margin-bottom:24px; }
html[lang="ru"] .techsouq-policy-page .techsouq-policy-content h2 { margin:26px 0 12px; font-size:22px; }
html[lang="ru"] .techsouq-policy-page .techsouq-policy-content p,
html[lang="ru"] .techsouq-policy-page .techsouq-policy-content li { line-height:1.8; }
html[lang="ru"] .techsouq-policy-page .techsouq-policy-content ul,
html[lang="ru"] .techsouq-policy-page .techsouq-policy-content ol { padding-left:28px; }
html[lang="ru"] .techsouq-policy-contact { display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center;margin-top:28px;padding:18px;background:#f5f7f5;border-radius:12px; }
html[lang="ru"] .techsouq-service-ru { direction:ltr; text-align:left; }
html[lang="ru"] .techsouq-mobile-language-options { display:flex;flex-wrap:wrap;gap:12px;align-items:center; }
html[lang="ru"] .techsouq-mobile-language-options a { display:inline-flex;align-items:center;gap:6px; }
html[lang="ru"] .techsouq-mobile-language-options a.active {font-weight:700;color:var(--color-primary);}

/* Cart sidebar language polish. */
html[lang="ru"] .techsouq-minicart-shell .minicart-item {display:flex;align-items:flex-start;gap:14px;min-width:0;}
html[lang="ru"] .techsouq-minicart-shell .minicart-item .thumbnail {flex:0 0 110px;max-width:110px;}
html[lang="ru"] .techsouq-minicart-shell .minicart-item .product-content {flex:1 1 auto;min-width:0;}
html[lang="ru"] .techsouq-minicart-shell .minicart-item .product-content .title {white-space:normal;overflow-wrap:anywhere;line-height:1.5;text-align:left;}
html[lang="ru"] .techsouq-minicart-shell .techsouq-minicart-actions {display:flex;flex-wrap:wrap;gap:12px;align-items:center;}
html[lang="ru"] .techsouq-minicart-shell .rbt-cart-subttotal {display:flex;justify-content:space-between;gap:12px;}
html[lang="ru"] .techsouq-minicart-shell .rbt-button-group {display:flex;flex-wrap:wrap;gap:12px;justify-content:center;}
@media (max-width:575px) {
 html[lang="ru"] .techsouq-minicart-shell .minicart-item .thumbnail {flex-basis:78px;max-width:78px;}
}

/* Russian / LTR: product images must be visible without cropping */
html[lang="ru"] .rbt-single-product-media img,
html[lang="ru"] .rbt-product-media img,
html[lang="ru"] .product-details-image img,
html[lang="ru"] .product-gallery img {object-fit:contain!important; object-position:center!important;}
html[lang="ru"] .techsouq-header-search .rbt-dropdown-menu .menu-item,
html[lang="ru"] .rbt-dropdown-menu .sub-menu a {text-align:left;}
html[lang="ru"] .rbt-single-product-content .title {overflow-wrap:break-word;word-break:normal;}

/* 2026-10-12: Russian navigation v2. Readable, centered, desktop + sticky.
   Only menu display changes; dynamic categories and all URLs are untouched. */
@media (min-width: 1200px) {
    /* The Unimart wrapper was intrinsic-width, so centering the inner list
       alone could not center the menu in the full green bar. */
    html[lang="ru"] .rbt-header-middle .rbt-header-sec {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    html[lang="ru"] .rbt-header-middle .rbt-header-sec > .rbt-main-navigation {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        margin: 0 !important;
        text-align: center;
    }
    html[lang="ru"] .rbt-header-middle .rbt-mainmenu-nav,
    html[lang="ru"] .rbt-header-common-sticky-activation .rbt-mainmenu-nav {
        width: 100%;
        min-width: 0;
    }
    html[lang="ru"] .rbt-header-middle .rbt-mainmenu-nav > .mainmenu,
    html[lang="ru"] .rbt-header-common-sticky-activation .rbt-mainmenu-nav > .mainmenu {
        display: flex !important;
        align-items: center;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        min-width: 0;
        width: 100% !important;
        margin: 0 !important;
    }
    html[lang="ru"] .rbt-header-middle .rbt-mainmenu-nav > .mainmenu {
        gap: clamp(8px, 1vw, 16px);
    }
    html[lang="ru"] .rbt-header-common-sticky-activation .rbt-mainmenu-nav > .mainmenu {
        gap: clamp(5px, .65vw, 11px);
    }
    html[lang="ru"] .rbt-header-middle .rbt-mainmenu-nav > .mainmenu > li,
    html[lang="ru"] .rbt-header-common-sticky-activation .rbt-mainmenu-nav > .mainmenu > li {
        flex: 0 0 auto;
        margin: 0 !important;
        min-width: 0;
    }
    html[lang="ru"] .rbt-header-middle .rbt-mainmenu-nav > .mainmenu > li > a,
    html[lang="ru"] .rbt-header-common-sticky-activation .rbt-mainmenu-nav > .mainmenu > li > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0 3px !important;
        height: 64px;
        line-height: 1.3 !important;
        font-family: "Segoe UI", Arial, sans-serif;
        font-size: 16px !important;
        font-weight: 600;
        white-space: nowrap !important;
        letter-spacing: 0;
    }
    html[lang="ru"] .rbt-header-common-sticky-activation .rbt-mainmenu-nav > .mainmenu > li > a {
        height: 72px;
        padding: 0 2px !important;
        font-size: 14.5px !important;
    }
    html[lang="ru"] .rbt-header-middle .mainmenu > li > a > i,
    html[lang="ru"] .rbt-header-common-sticky-activation .mainmenu > li > a > i {
        margin: 0 !important;
        font-size: 11px;
    }
    /* Sticky logo takes only the space it needs; navigation owns the rest. */
    html[lang="ru"] .rbt-header-common-sticky-activation .mainbar-row {
        display: flex;
        align-items: center;
        gap: clamp(12px, 1.2vw, 20px);
        min-width: 0;
        width: 100%;
    }
    html[lang="ru"] .rbt-header-common-sticky-activation .mainbar-row > .header-left {
        flex: 0 0 auto;
        min-width: 0;
    }
    html[lang="ru"] .rbt-header-common-sticky-activation .mainbar-row > .rbt-header-content {
        flex: 1 1 auto;
        min-width: 0;
        width: 0;
    }
    html[lang="ru"] .rbt-header-common-sticky-activation .mainbar-row > .rbt-header-content > .header-info {
        width: 100%;
        min-width: 0;
    }
    html[lang="ru"] .rbt-header-common-sticky-activation .rbt-logo-height-sm img {
        max-width: 135px;
        height: auto;
    }
    /* Dropdown subcategories keep full dynamic labels, comfortably readable. */
    html[lang="ru"] .rbt-header-middle .rbt-mainmenu-nav .submenu a,
    html[lang="ru"] .rbt-header-common-sticky-activation .rbt-mainmenu-nav .submenu a {
        white-space: normal;
        font-family: "Segoe UI", Arial, sans-serif;
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Keep full navigation on a single line at intermediate desktop widths. */
@media (min-width: 1200px) and (max-width: 1399px) {
    html[lang="ru"] .rbt-header-middle .rbt-mainmenu-nav > .mainmenu,
    html[lang="ru"] .rbt-header-common-sticky-activation .rbt-mainmenu-nav > .mainmenu {
        gap: 5px;
    }
    html[lang="ru"] .rbt-header-middle .rbt-mainmenu-nav > .mainmenu > li > a {
        font-size: 13.5px !important;
        gap: 4px;
        padding-inline: 1px !important;
    }
    html[lang="ru"] .rbt-header-common-sticky-activation .rbt-mainmenu-nav > .mainmenu > li > a {
        font-size: 12.5px !important;
        gap: 3px;
        padding-inline: 0 !important;
    }
    html[lang="ru"] .rbt-header-common-sticky-activation .rbt-logo-height-sm img { max-width: 108px; }
}
@media (min-width: 1400px) and (max-width: 1599px) {
    html[lang="ru"] .rbt-header-middle .rbt-mainmenu-nav > .mainmenu > li > a { font-size: 15px !important; }
    html[lang="ru"] .rbt-header-common-sticky-activation .rbt-mainmenu-nav > .mainmenu > li > a { font-size: 13.5px !important; }
}
