/* =========================================================
   RTL CSS: Hebrew direction overrides loaded after the main stylesheet
   ---------------------------------------------------------
   Purpose: production stylesheet for 3.gofast.co.il.
   Structure: base/theme rules first, then components and page-level blocks.
   Mobile policy: all max-width responsive overrides are collected at the
   bottom of this file so future maintenance does not depend on scattered
   mobile fixes hidden between desktop sections.
   RTL/swipe safety: gallery, Swiper and Fancybox rules are intentionally
   kept with explicit direction/touch-action comments; do not simplify them
   without checking Hebrew RTL desktop and mobile swipes in a browser.
   ========================================================= */

:root {
    --icom-primary: #229ac8;
    --icom-primary-dark: #1f90bb;
    --icom-border: #d9e1e7;
    --icom-radius: 6px;
    --icom-control-height: 42px;
    --hebrew-site-font-family: system-ui, -apple-system, "Segoe UI", Arial, "Noto Sans Hebrew", "Noto Sans", sans-serif;
}


/* ?????: ?????? ????????? ????? ??? ??????, ??????, ????, ???????? ? ???????. */
html[dir="rtl"] body,
body[dir="rtl"],
html[lang^="he"] body,
html[dir="rtl"] button,
body[dir="rtl"] button,
html[lang^="he"] button,
html[dir="rtl"] input,
body[dir="rtl"] input,
html[lang^="he"] input,
html[dir="rtl"] select,
body[dir="rtl"] select,
html[lang^="he"] select,
html[dir="rtl"] textarea,
body[dir="rtl"] textarea,
html[lang^="he"] textarea,
html[dir="rtl"] .btn,
body[dir="rtl"] .btn,
html[lang^="he"] .btn,
html[dir="rtl"] .dropdown-menu,
body[dir="rtl"] .dropdown-menu,
html[lang^="he"] .dropdown-menu,
html[dir="rtl"] #menu,
body[dir="rtl"] #menu,
html[lang^="he"] #menu,
html[dir="rtl"] .site-header,
body[dir="rtl"] .site-header,
html[lang^="he"] .site-header,
html[dir="rtl"] .product-thumb,
body[dir="rtl"] .product-thumb,
html[lang^="he"] .product-thumb,
html[dir="rtl"] #product-info,
body[dir="rtl"] #product-info,
html[lang^="he"] #product-info,
html[dir="rtl"] footer,
body[dir="rtl"] footer,
html[lang^="he"] footer {
    font-family: var(--hebrew-site-font-family) !important;
}

/* Базовое направление RTL для иврита */
html[dir="rtl"] body,
body[dir="rtl"],
html[lang^="he"] body {
    direction: rtl;
    text-align: right;
}

/* Шапка сайта: RTL */
html[dir="rtl"] .site-header__search .form-control,
body[dir="rtl"] .site-header__search .form-control,
html[lang^="he"] .site-header__search .form-control {
    text-align: right;
}

html[dir="rtl"] .site-header__badge,
body[dir="rtl"] .site-header__badge,
html[lang^="he"] .site-header__badge {
    right: auto;
    left: -6px;
}

html[dir="rtl"] #menu.site-menu .navbar-toggler,
body[dir="rtl"] #menu.site-menu .navbar-toggler,
html[lang^="he"] #menu.site-menu .navbar-toggler {
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .site-menu__category,
body[dir="rtl"] .site-menu__category,
html[lang^="he"] .site-menu__category {
    margin-right: 0;
    margin-left: 0;
}

html[dir="rtl"] .site-menu__category-wrap,
body[dir="rtl"] .site-menu__category-wrap,
html[lang^="he"] .site-menu__category-wrap {
    margin-right: 0;
    margin-left: 8px;
}

html[dir="rtl"] .site-menu-category-panel,
body[dir="rtl"] .site-menu-category-panel,
html[lang^="he"] .site-menu-category-panel {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] #menu.site-menu .site-menu__category-wrap,
body[dir="rtl"] #menu.site-menu .site-menu__category-wrap,
html[lang^="he"] #menu.site-menu .site-menu__category-wrap {
    position: relative;
}

html[dir="rtl"] .site-menu-category-panel__item > .site-menu-category-panel__list,
body[dir="rtl"] .site-menu-category-panel__item > .site-menu-category-panel__list,
html[lang^="he"] .site-menu-category-panel__item > .site-menu-category-panel__list {
    right: 100%;
    left: auto;
}

html[dir="rtl"] .site-menu-category-panel__link,
body[dir="rtl"] .site-menu-category-panel__link,
html[lang^="he"] .site-menu-category-panel__link {
    direction: rtl;
    text-align: right;
    flex-direction: row;
}

html[dir="rtl"] .site-menu-category-panel__item.has-children > .site-menu-category-panel__link::after,
body[dir="rtl"] .site-menu-category-panel__item.has-children > .site-menu-category-panel__link::after,
html[lang^="he"] .site-menu-category-panel__item.has-children > .site-menu-category-panel__link::after {
    content: "\f104";
}

html[dir="rtl"] .site-menu-vertical-panel,
body[dir="rtl"] .site-menu-vertical-panel,
html[lang^="he"] .site-menu-vertical-panel {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .site-menu-vertical-panel__item > .site-menu-vertical-panel__list,
body[dir="rtl"] .site-menu-vertical-panel__item > .site-menu-vertical-panel__list,
html[lang^="he"] .site-menu-vertical-panel__item > .site-menu-vertical-panel__list,
html[dir="rtl"] .site-menu-vertical-panel__mega,
body[dir="rtl"] .site-menu-vertical-panel__mega,
html[lang^="he"] .site-menu-vertical-panel__mega {
    right: 100%;
    left: auto;
}

html[dir="rtl"] .site-menu-vertical-panel__link,
body[dir="rtl"] .site-menu-vertical-panel__link,
html[lang^="he"] .site-menu-vertical-panel__link {
    direction: rtl;
    text-align: right;
    flex-direction: row;
}

html[dir="rtl"] .site-menu-vertical-panel__item.has-children > .site-menu-vertical-panel__link::after,
body[dir="rtl"] .site-menu-vertical-panel__item.has-children > .site-menu-vertical-panel__link::after,
html[lang^="he"] .site-menu-vertical-panel__item.has-children > .site-menu-vertical-panel__link::after {
    content: "\f104";
}

html[dir="rtl"] .site-menu-vertical-panel__additional,
body[dir="rtl"] .site-menu-vertical-panel__additional,
html[lang^="he"] .site-menu-vertical-panel__additional {
    border-right: 1px solid #e4ebf1;
    border-left: 0;
}

html[dir="rtl"] .site-menu-vertical-panel__products a,
body[dir="rtl"] .site-menu-vertical-panel__products a,
html[lang^="he"] .site-menu-vertical-panel__products a,
html[dir="rtl"] .site-menu-vertical-panel__quick-links a,
body[dir="rtl"] .site-menu-vertical-panel__quick-links a,
html[lang^="he"] .site-menu-vertical-panel__quick-links a {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .site-menu-horizontal-icon,
body[dir="rtl"] .site-menu-horizontal-icon,
html[lang^="he"] .site-menu-horizontal-icon {
    margin-right: 0;
    margin-left: 7px;
}

html[dir="rtl"] .site-menu-horizontal-additional,
body[dir="rtl"] .site-menu-horizontal-additional,
html[lang^="he"] .site-menu-horizontal-additional {
    border-right: 1px solid #e4ebf1;
    border-left: 0;
}

html[dir="rtl"] .site-menu-horizontal-additional__products .dropdown-item,
body[dir="rtl"] .site-menu-horizontal-additional__products .dropdown-item,
html[lang^="he"] .site-menu-horizontal-additional__products .dropdown-item,
html[dir="rtl"] .site-menu-horizontal-additional__links .dropdown-item,
body[dir="rtl"] .site-menu-horizontal-additional__links .dropdown-item,
html[lang^="he"] .site-menu-horizontal-additional__links .dropdown-item {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] #menu.site-menu .navbar-nav > li > a,
body[dir="rtl"] #menu.site-menu .navbar-nav > li > a,
html[lang^="he"] #menu.site-menu .navbar-nav > li > a,
html[dir="rtl"] .site-menu__category,
body[dir="rtl"] .site-menu__category,
html[lang^="he"] .site-menu__category {
    font-size: 14px;
    font-weight: 700;
}

html[dir="rtl"] .site-topbar .dropdown-menu .dropdown-item,
body[dir="rtl"] .site-topbar .dropdown-menu .dropdown-item,
html[lang^="he"] .site-topbar .dropdown-menu .dropdown-item {
    justify-content: flex-start;
    direction: rtl;
    text-align: right;
    color: #263747 !important;
}

/* Кнопка сравнения на телефоне: RTL */
html[dir="rtl"] #compare-total,
body[dir="rtl"] #compare-total,
html[lang^="he"] #compare-total {
    margin-right: auto;
    margin-left: 0;
}
/* Выпадающие меню в иврите выравниваем вправо */
html[dir="rtl"] .dropdown-menu,
body[dir="rtl"] .dropdown-menu,
html[lang^="he"] .dropdown-menu {
    text-align: right;
}

/* Шапка сайта: логотип справа на больших экранах */
@media (min-width: 768px) {
    html[dir="rtl"] #logo,
    body[dir="rtl"] #logo,
    html[lang^="he"] #logo {
        text-align: right;
    }
}

/* Страница товара: блок информации */
html[dir="rtl"] #product-info .product-summary-panel,
body[dir="rtl"] #product-info .product-summary-panel,
html[lang^="he"] #product-info .product-summary-panel {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] #product-info .product-summary-head,
body[dir="rtl"] #product-info .product-summary-head,
html[lang^="he"] #product-info .product-summary-head {
    direction: rtl;
}

html[dir="rtl"] #product-info .product-action-form > .product-action-buttons,
body[dir="rtl"] #product-info .product-action-form > .product-action-buttons,
html[lang^="he"] #product-info .product-action-form > .product-action-buttons {
    width: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 !important;
    direction: rtl !important;
}

html[dir="rtl"] #product-info .product-action-form > .product-action-buttons .btn,
body[dir="rtl"] #product-info .product-action-form > .product-action-buttons .btn,
html[lang^="he"] #product-info .product-action-form > .product-action-buttons .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 122px !important;
    max-width: none !important;
    height: 40px !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
}

html[dir="rtl"] #product-info .product-meta-list,
body[dir="rtl"] #product-info .product-meta-list,
html[lang^="he"] #product-info .product-meta-list {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] #product-info .product-stock,
body[dir="rtl"] #product-info .product-stock,
html[lang^="he"] #product-info .product-stock {
    justify-content: flex-start;
}

/* =========================================================
   Страница товара для иврита RTL
   Галерея и блок покупки должны выглядеть аккуратно, как в русской версии.
   Внешний порядок колонок остаётся RTL: информация слева, галерея справа.
   Внутри галереи делаем зеркальную схему: миниатюры справа, большая картинка слева.
   ========================================================= */
html[dir="rtl"] #product-info .product-page-top,
body[dir="rtl"] #product-info .product-page-top,
html[lang^="he"] #product-info .product-page-top {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 0 !important;
    direction: rtl !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: #fff;
    border: 1px solid var(--icom-border, #dee2e6);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(35, 44, 58, 0.05);
    overflow: hidden;
}

/* Колонки Bootstrap соединяем в один общий блок без внутренних зазоров. */
html[dir="rtl"] #product-info .product-page-top > .product-gallery-column,
html[dir="rtl"] #product-info .product-page-top > .product-summary-column,
body[dir="rtl"] #product-info .product-page-top > .product-gallery-column,
body[dir="rtl"] #product-info .product-page-top > .product-summary-column,
html[lang^="he"] #product-info .product-page-top > .product-gallery-column,
html[lang^="he"] #product-info .product-page-top > .product-summary-column {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Галерея находится справа, поэтому разделительную линию ставим со стороны блока информации. */
html[dir="rtl"] #product-info .product-page-top > .product-gallery-column,
body[dir="rtl"] #product-info .product-page-top > .product-gallery-column,
html[lang^="he"] #product-info .product-page-top > .product-gallery-column {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    align-self: flex-start !important;
    border-left: 1px solid var(--icom-border, #dee2e6);
}

/* Блок информации занимает вторую половину общей карточки. */
html[dir="rtl"] #product-info .product-page-top > .product-summary-column,
body[dir="rtl"] #product-info .product-page-top > .product-summary-column,
html[lang^="he"] #product-info .product-page-top > .product-summary-column {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    display: flex !important;
}

/* Внутри галереи для иврита миниатюры стоят справа, большая картинка остаётся по центру слева от них. */
html[dir="rtl"] #product-info .product-gallery,
body[dir="rtl"] #product-info .product-gallery,
html[lang^="he"] #product-info .product-gallery {
    direction: rtl !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 112px !important;
    gap: 24px !important;
    min-height: 560px;
}

html[dir="rtl"] #product-info .product-gallery-column .image,
body[dir="rtl"] #product-info .product-gallery-column .image,
html[lang^="he"] #product-info .product-gallery-column .image {
    height: auto !important;
    padding: 24px;
}

/* Страница товара RTL: галерея не растягивается вниз из-за длинного блока опций. */
html[dir="rtl"] #product-info .product-gallery-column .product-gallery,
body[dir="rtl"] #product-info .product-gallery-column .product-gallery,
html[lang^="he"] #product-info .product-gallery-column .product-gallery {
    align-self: flex-start !important;
    height: auto !important;
}

/* Правая лента миниатюр в RTL должна прижиматься к внешнему правому краю галереи. */
html[dir="rtl"] #product-info .product-gallery-thumbs-panel,
body[dir="rtl"] #product-info .product-gallery-thumbs-panel,
html[lang^="he"] #product-info .product-gallery-thumbs-panel {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 0;
    border-left: 1px solid var(--icom-border, #dee2e6);
}

html[dir="rtl"] #product-info .product-gallery-thumbs,
body[dir="rtl"] #product-info .product-gallery-thumbs,
html[lang^="he"] #product-info .product-gallery-thumbs {
    direction: ltr;
    flex: 1 1 auto;
    max-height: 448px;
    overflow: hidden;
}

html[dir="rtl"] #product-info .product-gallery-thumb,
body[dir="rtl"] #product-info .product-gallery-thumb,
html[lang^="he"] #product-info .product-gallery-thumb {
    width: 100%;
    height: 112px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--icom-border, #dee2e6);
    cursor: pointer;
}

html[dir="rtl"] #product-info .product-gallery-thumb.swiper-slide-thumb-active,
body[dir="rtl"] #product-info .product-gallery-thumb.swiper-slide-thumb-active,
html[lang^="he"] #product-info .product-gallery-thumb.swiper-slide-thumb-active {
    background: #f7f7fb;
    box-shadow: inset 0 0 0 1px #d9e1e7;
}

html[dir="rtl"] #product-info .product-gallery-thumb img,
body[dir="rtl"] #product-info .product-gallery-thumb img,
html[lang^="he"] #product-info .product-gallery-thumb img {
    max-width: 100%;
    max-height: 86px;
    object-fit: contain;
}

/* Кнопки прокрутки миниатюр остаются под лентой. */
html[dir="rtl"] #product-info .product-gallery-thumb-nav,
body[dir="rtl"] #product-info .product-gallery-thumb-nav,
html[lang^="he"] #product-info .product-gallery-thumb-nav {
    flex: 0 0 72px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--icom-border, #dee2e6);
}

html[dir="rtl"] #product-info .product-gallery-nav-button,
body[dir="rtl"] #product-info .product-gallery-nav-button,
html[lang^="he"] #product-info .product-gallery-nav-button {
    height: 72px;
    border: 0;
    border-right: 1px solid var(--icom-border, #dee2e6);
    background: #fff;
    color: #172333;
    font-size: 18px;
}

html[dir="rtl"] #product-info .product-gallery-nav-button:last-child,
body[dir="rtl"] #product-info .product-gallery-nav-button:last-child,
html[lang^="he"] #product-info .product-gallery-nav-button:last-child {
    border-right: 0;
}

/* Центральная картинка должна быть по центру и не обрезаться. */
html[dir="rtl"] #product-info .product-gallery-main,
body[dir="rtl"] #product-info .product-gallery-main,
html[lang^="he"] #product-info .product-gallery-main {
    grid-column: 1;
    grid-row: 1;
    direction: ltr;
    width: 100%;
    min-height: 512px;
    padding: 28px;
    background: #fff;
    border: 0;
    cursor: zoom-in;
    overflow: hidden;
}

html[dir="rtl"] #product-info .product-gallery-main .swiper-wrapper,
body[dir="rtl"] #product-info .product-gallery-main .swiper-wrapper,
html[lang^="he"] #product-info .product-gallery-main .swiper-wrapper {
    align-items: center;
}

html[dir="rtl"] #product-info .product-gallery-main .swiper-slide,
body[dir="rtl"] #product-info .product-gallery-main .swiper-slide,
html[lang^="he"] #product-info .product-gallery-main .swiper-slide {
    min-height: 456px;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[dir="rtl"] #product-info .product-gallery-main-link,
body[dir="rtl"] #product-info .product-gallery-main-link,
html[lang^="he"] #product-info .product-gallery-main-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

html[dir="rtl"] #product-info .product-gallery-main img,
body[dir="rtl"] #product-info .product-gallery-main img,
html[lang^="he"] #product-info .product-gallery-main img {
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Панель информации в RTL остаётся с ивритским направлением текста. */
html[dir="rtl"] #product-info .product-summary-panel,
body[dir="rtl"] #product-info .product-summary-panel,
html[lang^="he"] #product-info .product-summary-panel {
    width: 100%;
    min-height: 560px;
    direction: rtl;
    text-align: right;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* На телефонах галерея и информация идут друг под другом. */

/* Верхняя панель: меняем местами левую и правую стороны */
/* Поиск в шапке: поле справа, кнопка слева */
html[dir="rtl"] header form.input-group[action*="common/search"],
body[dir="rtl"] header form.input-group[action*="common/search"],
html[lang^="he"] header form.input-group[action*="common/search"],
html[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"],
body[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"],
html[lang^="he"] .site-fixed-menu form.input-group[action*="common/search"] {
    direction: rtl !important;
    flex-direction: row !important;
}

/* Поле поиска в RTL */
html[dir="rtl"] header form.input-group[action*="common/search"] input,
html[dir="rtl"] header form.input-group[action*="common/search"] .form-control,
body[dir="rtl"] header form.input-group[action*="common/search"] input,
body[dir="rtl"] header form.input-group[action*="common/search"] .form-control,
html[lang^="he"] header form.input-group[action*="common/search"] input,
html[lang^="he"] header form.input-group[action*="common/search"] .form-control,
html[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] input,
html[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] .form-control,
body[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] input,
body[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] .form-control,
html[lang^="he"] .site-fixed-menu form.input-group[action*="common/search"] input,
html[lang^="he"] .site-fixed-menu form.input-group[action*="common/search"] .form-control {
    order: 1 !important;
    direction: rtl !important;
    text-align: right !important;
    border-left: 0 !important;
    border-radius: 0 var(--icom-radius) var(--icom-radius) 0 !important;
    padding-right: 1rem !important;
    padding-left: 104px !important;
}

/* Кнопка поиска в RTL */
html[dir="rtl"] header form.input-group[action*="common/search"] button,
html[dir="rtl"] header form.input-group[action*="common/search"] .btn,
body[dir="rtl"] header form.input-group[action*="common/search"] button,
body[dir="rtl"] header form.input-group[action*="common/search"] .btn,
html[lang^="he"] header form.input-group[action*="common/search"] button,
html[lang^="he"] header form.input-group[action*="common/search"] .btn,
html[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] button,
html[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] .btn,
body[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] button,
body[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] .btn,
html[lang^="he"] .site-fixed-menu form.input-group[action*="common/search"] button,
html[lang^="he"] .site-fixed-menu form.input-group[action*="common/search"] .btn {
    order: 2 !important;
    right: auto !important;
    left: 4px !important;
    border-radius: 5px !important;
    box-shadow: none !important;
}

html[dir="rtl"] header form.input-group[action*="common/search"] button:hover,
html[dir="rtl"] header form.input-group[action*="common/search"] .btn:hover,
html[dir="rtl"] header form.input-group[action*="common/search"] button:focus,
html[dir="rtl"] header form.input-group[action*="common/search"] .btn:focus,
body[dir="rtl"] header form.input-group[action*="common/search"] button:hover,
body[dir="rtl"] header form.input-group[action*="common/search"] .btn:hover,
body[dir="rtl"] header form.input-group[action*="common/search"] button:focus,
body[dir="rtl"] header form.input-group[action*="common/search"] .btn:focus,
html[lang^="he"] header form.input-group[action*="common/search"] button:hover,
html[lang^="he"] header form.input-group[action*="common/search"] .btn:hover,
html[lang^="he"] header form.input-group[action*="common/search"] button:focus,
html[lang^="he"] header form.input-group[action*="common/search"] .btn:focus,
html[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] button:hover,
html[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] .btn:hover,
html[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] button:focus,
html[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] .btn:focus,
body[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] button:hover,
body[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] .btn:hover,
body[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] button:focus,
body[dir="rtl"] .site-fixed-menu form.input-group[action*="common/search"] .btn:focus,
html[lang^="he"] .site-fixed-menu form.input-group[action*="common/search"] button:hover,
html[lang^="he"] .site-fixed-menu form.input-group[action*="common/search"] .btn:hover,
html[lang^="he"] .site-fixed-menu form.input-group[action*="common/search"] button:focus,
html[lang^="he"] .site-fixed-menu form.input-group[action*="common/search"] .btn:focus {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

/* Главное меню: направление и выравнивание справа */
html[dir="rtl"] #category,
body[dir="rtl"] #category,
html[lang^="he"] #category {
    float: right;
    text-align: right;
}

html[dir="rtl"] #menu,
html[dir="rtl"] #menu .navbar-nav,
html[dir="rtl"] #menu .dropdown-menu,
body[dir="rtl"] #menu,
body[dir="rtl"] #menu .navbar-nav,
body[dir="rtl"] #menu .dropdown-menu,
html[lang^="he"] #menu,
html[lang^="he"] #menu .navbar-nav,
html[lang^="he"] #menu .dropdown-menu {
    direction: rtl;
    text-align: right;
}

/* Панель категории: сортировка и лимит в RTL */
html[dir="rtl"] #content .input-group:has(#input-sort),
html[dir="rtl"] #content .input-group:has(#input-limit),
body[dir="rtl"] #content .input-group:has(#input-sort),
body[dir="rtl"] #content .input-group:has(#input-limit),
html[lang^="he"] #content .input-group:has(#input-sort),
html[lang^="he"] #content .input-group:has(#input-limit) {
    direction: rtl !important;
    flex-direction: row !important;
}

/* Подписи "Сортировка" и "Показывать по" в RTL */
html[dir="rtl"] #content .input-group:has(#input-sort) .input-group-text,
html[dir="rtl"] #content .input-group:has(#input-limit) .input-group-text,
body[dir="rtl"] #content .input-group:has(#input-sort) .input-group-text,
body[dir="rtl"] #content .input-group:has(#input-limit) .input-group-text,
html[lang^="he"] #content .input-group:has(#input-sort) .input-group-text,
html[lang^="he"] #content .input-group:has(#input-limit) .input-group-text {
    border-left: 0 !important;
    border-right: 1px solid var(--icom-border) !important;
    border-radius: 0 var(--icom-radius) var(--icom-radius) 0 !important;
}

/* Выпадающие списки сортировки и лимита в RTL */
html[dir="rtl"] #content .input-group:has(#input-sort) select.form-select,
html[dir="rtl"] #content .input-group:has(#input-limit) select.form-select,
body[dir="rtl"] #content .input-group:has(#input-sort) select.form-select,
body[dir="rtl"] #content .input-group:has(#input-limit) select.form-select,
html[lang^="he"] #content .input-group:has(#input-sort) select.form-select,
html[lang^="he"] #content .input-group:has(#input-limit) select.form-select {
    direction: rtl !important;
    text-align: right !important;
    border-left: 1px solid var(--icom-border) !important;
    border-right: 1px solid var(--icom-border) !important;
    border-radius: var(--icom-radius) 0 0 var(--icom-radius) !important;
    background-position: left 0.75rem center !important;
    padding-right: 12px !important;
    padding-left: 2.25rem !important;
}

/* Панель категории на desktop: сохраняем уже настроенное расположение элементов */
@media (min-width: 992px) {
    html[dir="rtl"] #content > .row:has(#button-grid):has(#input-sort),
    body[dir="rtl"] #content > .row:has(#button-grid):has(#input-sort),
    html[lang^="he"] #content > .row:has(#button-grid):has(#input-sort) {
        display: grid !important;
        grid-template-columns: auto auto minmax(260px, auto) auto !important;
        column-gap: 28px !important;
        justify-content: start !important;
        align-items: center !important;
        direction: rtl !important;
    }

    /* Сбрасываем Bootstrap-ширины колонок в панели управления товарами */
    html[dir="rtl"] #content > .row:has(#button-grid):has(#input-sort) > .col-lg-3,
    html[dir="rtl"] #content > .row:has(#button-grid):has(#input-sort) > .col-lg-1,
    html[dir="rtl"] #content > .row:has(#button-grid):has(#input-sort) > .col-lg-4,
    body[dir="rtl"] #content > .row:has(#button-grid):has(#input-sort) > .col-lg-3,
    body[dir="rtl"] #content > .row:has(#button-grid):has(#input-sort) > .col-lg-1,
    body[dir="rtl"] #content > .row:has(#button-grid):has(#input-sort) > .col-lg-4,
    html[lang^="he"] #content > .row:has(#button-grid):has(#input-sort) > .col-lg-3,
    html[lang^="he"] #content > .row:has(#button-grid):has(#input-sort) > .col-lg-1,
    html[lang^="he"] #content > .row:has(#button-grid):has(#input-sort) > .col-lg-4 {
        width: auto !important;
        max-width: none !important;
        flex: initial !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Убираем стандартный offset Bootstrap, который ломает RTL-выравнивание */
    html[dir="rtl"] #content > .row:has(#button-grid):has(#input-sort) > .col-lg-4.offset-lg-1,
    body[dir="rtl"] #content > .row:has(#button-grid):has(#input-sort) > .col-lg-4.offset-lg-1,
    html[lang^="he"] #content > .row:has(#button-grid):has(#input-sort) > .col-lg-4.offset-lg-1 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Статус наличия в карточке товара: точка и текст справа налево */
html[dir="rtl"] .product-thumb .product-thumb-stock,
body[dir="rtl"] .product-thumb .product-thumb-stock,
html[lang^="he"] .product-thumb .product-thumb-stock {
    justify-content: flex-start;
    direction: rtl;
}

/* Код товара и бренд в карточке товара: сохраняем аккуратное RTL-выравнивание */
html[dir="rtl"] .product-thumb .product-thumb-meta,
body[dir="rtl"] .product-thumb .product-thumb-meta,
html[lang^="he"] .product-thumb .product-thumb-meta {
    direction: rtl;
    justify-content: flex-start;
    text-align: right;
}

/* Цена в карточке товара: для иврита цена остаётся слева */
html[dir="rtl"] .product-thumb .price,
body[dir="rtl"] .product-thumb .price,
html[lang^="he"] .product-thumb .price {
    text-align: left;
}

/* Хлебные крошки: переворачиваем направление стрелок */
html[dir="rtl"] .breadcrumb,
body[dir="rtl"] .breadcrumb,
html[lang^="he"] .breadcrumb {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .breadcrumb > li.breadcrumb-item:after,
body[dir="rtl"] .breadcrumb > li.breadcrumb-item:after,
html[lang^="he"] .breadcrumb > li.breadcrumb-item:after {
    right: auto;
    left: -5px;
    border-right: none;
    border-left: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
    transform: rotate(45deg);
}

/* Карточки товаров: общий текст справа */
html[dir="rtl"] .product-thumb,
body[dir="rtl"] .product-thumb,
html[lang^="he"] .product-thumb {
    text-align: right;
    --product-thumb-title-lines: 2;
    --product-thumb-title-line-height: 1.22;
}

html[dir="rtl"] .product-thumb .description h4,
body[dir="rtl"] .product-thumb .description h4,
html[lang^="he"] .product-thumb .description h4 {
    min-height: calc(var(--product-thumb-title-lines) * 1em * var(--product-thumb-title-line-height));
    margin-bottom: 8px;
    line-height: var(--product-thumb-title-line-height);
}

html[dir="rtl"] .product-thumb .description h4 a,
body[dir="rtl"] .product-thumb .description h4 a,
html[lang^="he"] .product-thumb .description h4 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--product-thumb-title-lines);
    line-clamp: var(--product-thumb-title-lines);
    overflow-wrap: anywhere;
}

/* Нижняя панель карточки товара RTL:
   визуально слева должна быть кнопка "Купить",
   по центру блок количества,
   справа кнопка быстрого просмотра.
   Важно: при direction: rtl первая колонка CSS Grid находится справа. */
html[dir="rtl"] .product-thumb .product-thumb-buy-row,
body[dir="rtl"] .product-thumb .product-thumb-buy-row,
html[lang^="he"] .product-thumb .product-thumb-buy-row {
    grid-template-columns: 46px 78px minmax(0, 1fr);
}

/* Узкие карточки RTL: главная страница с 4 товарами в ряд */

/* Очень узкие карточки RTL: если текст покупки скрывается, остаётся иконка корзины */

/* Кнопка покупки в RTL должна стоять визуально слева */
html[dir="rtl"] .product-thumb .product-thumb-cart,
body[dir="rtl"] .product-thumb .product-thumb-cart,
html[lang^="he"] .product-thumb .product-thumb-cart {
    order: 3;
}

/* Блок количества в RTL стоит по центру */
html[dir="rtl"] .product-thumb .product-thumb-quantity,
body[dir="rtl"] .product-thumb .product-thumb-quantity,
html[lang^="he"] .product-thumb .product-thumb-quantity {
    order: 2;
}

/* Быстрый просмотр в RTL должен стоять визуально справа */
html[dir="rtl"] .product-thumb .product-thumb-quickview,
body[dir="rtl"] .product-thumb .product-thumb-quickview,
html[lang^="he"] .product-thumb .product-thumb-quickview {
    order: 1;
}

/* RTL-счётчик товара:
   число справа, кнопки + и - слева.
   Это не меняем: пользователь просил оставить такой порядок для иврита. */
html[dir="rtl"] .product-thumb .product-thumb-quantity,
body[dir="rtl"] .product-thumb .product-thumb-quantity,
html[lang^="he"] .product-thumb .product-thumb-quantity {
    grid-template-columns: 48px 30px;
    min-width: 78px;
    width: 78px;
    direction: rtl;
}

/* Поле количества в иврите: справа */
html[dir="rtl"] .product-thumb .product-thumb-qty-input,
body[dir="rtl"] .product-thumb .product-thumb-qty-input,
html[lang^="he"] .product-thumb .product-thumb-qty-input {
    grid-column: 1;
    grid-row: 1 / 3;
    border-right: 0;
    border-left: 1px solid #dfe5ec;
    text-align: center;
}

/* Кнопка плюс в иврите: сверху слева */
html[dir="rtl"] .product-thumb .product-thumb-qty-plus,
body[dir="rtl"] .product-thumb .product-thumb-qty-plus,
html[lang^="he"] .product-thumb .product-thumb-qty-plus {
    grid-column: 2;
    grid-row: 1;
}

/* Кнопка минус в иврите: снизу слева */
html[dir="rtl"] .product-thumb .product-thumb-qty-minus,
body[dir="rtl"] .product-thumb .product-thumb-qty-minus,
html[lang^="he"] .product-thumb .product-thumb-qty-minus {
    grid-column: 2;
    grid-row: 2;
}

/* Формы: подписи и поля по правому краю */
html[dir="rtl"] label,
html[dir="rtl"] .form-label,
html[dir="rtl"] .col-form-label,
body[dir="rtl"] label,
body[dir="rtl"] .form-label,
body[dir="rtl"] .col-form-label,
html[lang^="he"] label,
html[lang^="he"] .form-label,
html[lang^="he"] .col-form-label {
    text-align: right;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
body[dir="rtl"] input,
body[dir="rtl"] textarea,
body[dir="rtl"] select,
html[lang^="he"] input,
html[lang^="he"] textarea,
html[lang^="he"] select {
    text-align: right;
}

/* Подвал сайта: направление RTL */
html[dir="rtl"] footer,
body[dir="rtl"] footer,
html[lang^="he"] footer {
    direction: rtl;
    text-align: right;
}

/* Страница товара: кнопки понравившихся и сравнения */
html[dir="rtl"] #product-info form:not(.product-action-form) > .btn-group,
body[dir="rtl"] #product-info form:not(.product-action-form) > .btn-group,
html[lang^="he"] #product-info form:not(.product-action-form) > .btn-group {
    width: auto !important;
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    margin: 0 0 14px 0 !important;
    direction: rtl !important;
}

/* Размеры кнопок понравившихся и сравнения на странице товара */
html[dir="rtl"] #product-info form:not(.product-action-form) > .btn-group .btn,
body[dir="rtl"] #product-info form:not(.product-action-form) > .btn-group .btn,
html[lang^="he"] #product-info form:not(.product-action-form) > .btn-group .btn {
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 42px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Скругление правой кнопки группы на странице товара */
html[dir="rtl"] #product-info form:not(.product-action-form) > .btn-group .btn:first-child,
body[dir="rtl"] #product-info form:not(.product-action-form) > .btn-group .btn:first-child,
html[lang^="he"] #product-info form:not(.product-action-form) > .btn-group .btn:first-child {
    border-radius: 0 6px 6px 0 !important;
}

/* Скругление левой кнопки группы на странице товара */
html[dir="rtl"] #product-info form:not(.product-action-form) > .btn-group .btn:last-child,
body[dir="rtl"] #product-info form:not(.product-action-form) > .btn-group .btn:last-child,
html[lang^="he"] #product-info form:not(.product-action-form) > .btn-group .btn:last-child {
    border-radius: 6px 0 0 6px !important;
}

/* Страница товара: строка количества */
html[dir="rtl"] #product-info #form-product .input-group,
body[dir="rtl"] #product-info #form-product .input-group,
html[lang^="he"] #product-info #form-product .input-group {
    direction: rtl !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}

/* Страница товара: кнопка покупки */
html[dir="rtl"] #product-info #button-cart,
body[dir="rtl"] #product-info #button-cart,
html[lang^="he"] #product-info #button-cart {
    height: 42px !important;
    margin: 0 !important;
    border-radius: 6px 0 0 6px !important;
}

/* Страница товара: поле количества */
html[dir="rtl"] #product-info #input-quantity,
body[dir="rtl"] #product-info #input-quantity,
html[lang^="he"] #product-info #input-quantity {
    height: 42px !important;
    width: auto !important;
    text-align: center !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Страница товара: подпись количества */
html[dir="rtl"] #product-info label[for="input-quantity"],
body[dir="rtl"] #product-info label[for="input-quantity"],
html[lang^="he"] #product-info label[for="input-quantity"] {
    height: 42px !important;
    margin: 0 !important;
    border-radius: 0 6px 6px 0 !important;
}

/* Страница товара: скругления блока количества */
html[dir="rtl"] #product-info #form-product .input-group > .input-group-text,
body[dir="rtl"] #product-info #form-product .input-group > .input-group-text,
html[lang^="he"] #product-info #form-product .input-group > .input-group-text {
    border-radius: 0 6px 6px 0 !important;
    border-left: 0 !important;
    border-right: 1px solid var(--icom-border) !important;
}

html[dir="rtl"] #product-info #form-product #input-quantity,
body[dir="rtl"] #product-info #form-product #input-quantity,
html[lang^="he"] #product-info #form-product #input-quantity {
    border-radius: 0 !important;
}

html[dir="rtl"] #product-info #form-product #button-cart,
body[dir="rtl"] #product-info #form-product #button-cart,
html[lang^="he"] #product-info #form-product #button-cart {
    border-radius: 6px 0 0 6px !important;
}

html[dir="rtl"] #product-info #form-product #button-cart,
body[dir="rtl"] #product-info #form-product #button-cart,
html[lang^="he"] #product-info #form-product #button-cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 0 18px !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

html[dir="rtl"] .product-quickview-modal .product-quickview-cart,
body[dir="rtl"] .product-quickview-modal .product-quickview-cart,
html[lang^="he"] .product-quickview-modal .product-quickview-cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 0 18px !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    direction: ltr !important;
}

html[dir="rtl"] #product-info #form-product #button-cart i,
body[dir="rtl"] #product-info #form-product #button-cart i,
html[lang^="he"] #product-info #form-product #button-cart i,
html[dir="rtl"] .product-quickview-modal .product-quickview-cart i,
body[dir="rtl"] .product-quickview-modal .product-quickview-cart i,
html[lang^="he"] .product-quickview-modal .product-quickview-cart i {
    flex: 0 0 auto !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

/* Страница товара: опции */
html[dir="rtl"] #product-info #form-product .form-check,
body[dir="rtl"] #product-info #form-product .form-check,
html[lang^="he"] #product-info #form-product .form-check {
    direction: rtl !important;
    text-align: right !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 8px !important;
}

/* Страница товара: чекбоксы и радиокнопки опций */
html[dir="rtl"] #product-info #form-product .form-check-input,
body[dir="rtl"] #product-info #form-product .form-check-input,
html[lang^="he"] #product-info #form-product .form-check-input {
    float: none !important;
    margin: 0 !important;
    position: static !important;
    flex: 0 0 auto !important;
}

/* Страница товара: текст опций */
html[dir="rtl"] #product-info #form-product .form-check-label,
body[dir="rtl"] #product-info #form-product .form-check-label,
html[lang^="he"] #product-info #form-product .form-check-label {
    margin: 0 !important;
    text-align: right !important;
}

/* Верхнее меню: правая/левая сторона в RTL */
html[dir="rtl"] #top .text-end,
body[dir="rtl"] #top .text-end,
html[lang^="he"] #top .text-end {
    text-align: left !important;
}

html[dir="rtl"] #top .row,
body[dir="rtl"] #top .row,
html[lang^="he"] #top .row {
    direction: rtl;
}

/* =========================================================
   Мобильная панель сортировки и лимита товаров для иврита RTL
   Повторяем мобильную логику, но сохраняем направление справа налево.
   ========================================================= */

/* Страница товара: финальные правки блока информации RTL */
html[dir="rtl"] #product-info .product-summary-panel,
body[dir="rtl"] #product-info .product-summary-panel,
html[lang^="he"] #product-info .product-summary-panel {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] #product-info .product-summary-head,
body[dir="rtl"] #product-info .product-summary-head,
html[lang^="he"] #product-info .product-summary-head {
    direction: rtl;
}

html[dir="rtl"] #product-info .product-action-form > .product-action-buttons,
body[dir="rtl"] #product-info .product-action-form > .product-action-buttons,
html[lang^="he"] #product-info .product-action-form > .product-action-buttons {
    width: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 !important;
    direction: rtl !important;
}

html[dir="rtl"] #product-info .product-action-form > .product-action-buttons .btn,
body[dir="rtl"] #product-info .product-action-form > .product-action-buttons .btn,
html[lang^="he"] #product-info .product-action-form > .product-action-buttons .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 122px !important;
    max-width: none !important;
    height: 40px !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
}

html[dir="rtl"] #product-info .product-meta-list,
body[dir="rtl"] #product-info .product-meta-list,
html[lang^="he"] #product-info .product-meta-list {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] #product-info .product-stock,
body[dir="rtl"] #product-info .product-stock,
html[lang^="he"] #product-info .product-stock {
    justify-content: flex-start;
}

/* =========================================================
   Страница товара RTL: финальная правка галереи и покупки
   Этот блок стоит в конце файла, чтобы перекрывать старые RTL-правила выше.
   На иврите галерея зеркалит русскую версию: миниатюры справа, большая картинка слева.
   Сам CSS Grid держим в LTR, потому что в RTL нумерация grid-колонок разворачивается.
   Строка покупки остаётся компактной: кнопка отдельно, счётчик отдельно с зазором 20px.
   ========================================================= */

html[dir="rtl"] #product-info .product-gallery,
body[dir="rtl"] #product-info .product-gallery,
html[lang^="he"] #product-info .product-gallery {
    direction: ltr !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 112px !important;
    gap: 24px !important;
}

html[dir="rtl"] #product-info .product-gallery-thumbs-panel,
body[dir="rtl"] #product-info .product-gallery-thumbs-panel,
html[lang^="he"] #product-info .product-gallery-thumbs-panel {
    grid-column: 2 !important;
    grid-row: 1 !important;
    border-right: 0 !important;
    border-left: 1px solid var(--icom-border, #dee2e6) !important;
}

html[dir="rtl"] #product-info .product-gallery-main,
body[dir="rtl"] #product-info .product-gallery-main,
html[lang^="he"] #product-info .product-gallery-main {
    grid-column: 1 !important;
    grid-row: 1 !important;
    direction: ltr !important;
}

html[dir="rtl"] #product-info .product-gallery-thumbs,
body[dir="rtl"] #product-info .product-gallery-thumbs,
html[lang^="he"] #product-info .product-gallery-thumbs {
    direction: ltr !important;
}

/* Строка покупки на странице товара: кнопка слева, счётчик справа, между ними 20px. */
html[dir="rtl"] #product-info #form-product .product-quantity-group,
body[dir="rtl"] #product-info #form-product .product-quantity-group,
html[lang^="he"] #product-info #form-product .product-quantity-group {
    direction: ltr !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Лишнюю подпись "Количество" в самой строке скрываем, чтобы ряд не растягивался. */
html[dir="rtl"] #product-info #form-product .product-quantity-group > .input-group-text,
body[dir="rtl"] #product-info #form-product .product-quantity-group > .input-group-text,
html[lang^="he"] #product-info #form-product .product-quantity-group > .input-group-text {
    display: none !important;
}

/* Кнопка покупки отделена от счётчика и сохраняет ивритское направление текста. */
html[dir="rtl"] #product-info #form-product #button-cart,
body[dir="rtl"] #product-info #form-product #button-cart,
html[lang^="he"] #product-info #form-product #button-cart {
    order: 1 !important;
    flex: 0 0 190px !important;
    width: 190px !important;
    min-width: 190px !important;
    height: 42px !important;
    margin: 0 20px 0 0 !important;
    border-radius: 6px !important;
    direction: rtl !important;
}

/* Минус стоит ближе к кнопке покупки. */
html[dir="rtl"] #product-info #form-product .quantity-minus,
body[dir="rtl"] #product-info #form-product .quantity-minus,
html[lang^="he"] #product-info #form-product .quantity-minus {
    order: 2 !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 42px !important;
    border-radius: 6px 0 0 6px !important;
}

/* Поле количества остаётся по центру между минусом и плюсом. */
html[dir="rtl"] #product-info #form-product #input-quantity,
body[dir="rtl"] #product-info #form-product #input-quantity,
html[lang^="he"] #product-info #form-product #input-quantity {
    order: 3 !important;
    flex: 0 0 70px !important;
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    height: 42px !important;
    text-align: center !important;
    border-radius: 0 !important;
}

/* Плюс стоит справа в блоке счётчика. */
html[dir="rtl"] #product-info #form-product .quantity-plus,
body[dir="rtl"] #product-info #form-product .quantity-plus,
html[lang^="he"] #product-info #form-product .quantity-plus {
    order: 4 !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 42px !important;
    border-radius: 0 6px 6px 0 !important;
}

/* Страница товара RTL: цифра количества всегда видимая и жирная */
html[dir="rtl"] #product-info #form-product #input-quantity,
body[dir="rtl"] #product-info #form-product #input-quantity,
html[lang^="he"] #product-info #form-product #input-quantity {
    display: block !important;
    color: #0b1320 !important;
    background: #fff !important;
    opacity: 1 !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 42px !important;
    -webkit-text-fill-color: #0b1320 !important;
}

/* Страница товара RTL: в иврите цена прижата к левому краю */
html[dir="rtl"] #product-info .product-price-list,
body[dir="rtl"] #product-info .product-price-list,
html[lang^="he"] #product-info .product-price-list {
    width: 100% !important;
    text-align: left !important;
    direction: rtl !important;
}

html[dir="rtl"] #product-info .product-price-list li,
body[dir="rtl"] #product-info .product-price-list li,
html[lang^="he"] #product-info .product-price-list li,
html[dir="rtl"] #product-info .product-price-list h2,
body[dir="rtl"] #product-info .product-price-list h2,
html[lang^="he"] #product-info .product-price-list h2,
html[dir="rtl"] #product-info #product-price,
body[dir="rtl"] #product-info #product-price,
html[lang^="he"] #product-info #product-price {
    text-align: left !important;
}

/* Страница товара RTL desktop: бренд и строка наличия/кода как в русской версии, но зеркально. */
@media (min-width: 576px) {
    html[dir="rtl"] #product-info .product-summary-head,
    body[dir="rtl"] #product-info .product-summary-head,
    html[lang^="he"] #product-info .product-summary-head {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 16px !important;
        direction: rtl !important;
    }

    html[dir="rtl"] #product-info .product-manufacturer-box,
    body[dir="rtl"] #product-info .product-manufacturer-box,
    html[lang^="he"] #product-info .product-manufacturer-box {
        flex: 0 0 auto !important;
        margin: 0 !important;
        text-align: left !important;
        line-height: 1.25 !important;
    }

    html[dir="rtl"] #product-info .product-manufacturer-box a,
    body[dir="rtl"] #product-info .product-manufacturer-box a,
    html[lang^="he"] #product-info .product-manufacturer-box a {
        display: block !important;
        color: #172333 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
    }

    html[dir="rtl"] #product-info .product-manufacturer-box span,
    body[dir="rtl"] #product-info .product-manufacturer-box span,
    html[lang^="he"] #product-info .product-manufacturer-box span {
        display: block !important;
        margin-top: 4px !important;
        color: #a7b0c4 !important;
        font-size: 12px !important;
        font-weight: 400 !important;
    }

    html[dir="rtl"] #product-info .product-meta-list,
    body[dir="rtl"] #product-info .product-meta-list,
    html[lang^="he"] #product-info .product-meta-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        justify-content: start !important;
        direction: rtl !important;
        width: 100% !important;
        margin: 0 0 18px !important;
        padding: 0 !important;
        gap: 8px 18px !important;
        text-align: right !important;
    }

    html[dir="rtl"] #product-info .product-meta-list li,
    body[dir="rtl"] #product-info .product-meta-list li,
    html[lang^="he"] #product-info .product-meta-list li {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    html[dir="rtl"] #product-info .product-meta-list li > span:first-child:not(.product-stock-dot),
    body[dir="rtl"] #product-info .product-meta-list li > span:first-child:not(.product-stock-dot),
    html[lang^="he"] #product-info .product-meta-list li > span:first-child:not(.product-stock-dot) {
        display: inline !important;
        margin: 0 !important;
        color: #9aa4ba !important;
        font-size: 13px !important;
    }

    html[dir="rtl"] #product-info .product-stock,
    body[dir="rtl"] #product-info .product-stock,
    html[lang^="he"] #product-info .product-stock {
        font-weight: 700 !important;
    }
}


html[dir="rtl"] .main-slider-shell,
body[dir="rtl"] .main-slider-shell,
html[lang^="he"] .main-slider-shell {
  direction: rtl;
}

html[dir="rtl"] .main-slider-item,
body[dir="rtl"] .main-slider-item,
html[lang^="he"] .main-slider-item {
  text-align: right;
}

html[dir="rtl"] .main-slider-prev,
body[dir="rtl"] .main-slider-prev,
html[lang^="he"] .main-slider-prev {
  left: auto;
  right: 0;
}

html[dir="rtl"] .main-slider-next,
body[dir="rtl"] .main-slider-next,
html[lang^="he"] .main-slider-next {
  right: auto;
  left: 0;
}

html[dir="rtl"] .main-slider-prev .fa-chevron-left,
body[dir="rtl"] .main-slider-prev .fa-chevron-left,
html[lang^="he"] .main-slider-prev .fa-chevron-left,
html[dir="rtl"] .main-slider-next .fa-chevron-right,
body[dir="rtl"] .main-slider-next .fa-chevron-right,
html[lang^="he"] .main-slider-next .fa-chevron-right {
  transform: scaleX(-1);
}

html[dir="rtl"] .main-slider-pagination,
body[dir="rtl"] .main-slider-pagination,
html[lang^="he"] .main-slider-pagination {
  direction: ltr;
}


@media (min-width: 768px) {
    html[dir="rtl"] #product-info #form-product .product-quantity-group,
    body[dir="rtl"] #product-info #form-product .product-quantity-group,
    html[lang^="he"] #product-info #form-product .product-quantity-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-end !important;
        width: fit-content !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: auto !important;
        direction: ltr !important;
    }

    html[dir="rtl"] #product-info #form-product .quantity-minus,
    body[dir="rtl"] #product-info #form-product .quantity-minus,
    html[lang^="he"] #product-info #form-product .quantity-minus {
        order: 1 !important;
        margin: 0 !important;
    }

    html[dir="rtl"] #product-info #form-product #input-quantity,
    body[dir="rtl"] #product-info #form-product #input-quantity,
    html[lang^="he"] #product-info #form-product #input-quantity {
        order: 2 !important;
        margin: 0 !important;
    }

    html[dir="rtl"] #product-info #form-product .quantity-plus,
    body[dir="rtl"] #product-info #form-product .quantity-plus,
    html[lang^="he"] #product-info #form-product .quantity-plus {
        order: 3 !important;
        margin: 0 !important;
    }

    html[dir="rtl"] #product-info #form-product #button-cart,
    body[dir="rtl"] #product-info #form-product #button-cart,
    html[lang^="he"] #product-info #form-product #button-cart {
        order: 4 !important;
        margin: 0 0 0 20px !important;
        direction: rtl !important;
    }
}


html[dir="rtl"] #product-info #product-price,
body[dir="rtl"] #product-info #product-price,
html[lang^="he"] #product-info #product-price,
html[dir="rtl"] .product-quickview-modal .product-quickview-price .price-new,
body[dir="rtl"] .product-quickview-modal .product-quickview-price .price-new,
html[lang^="he"] .product-quickview-modal .product-quickview-price .price-new {
  display: inline-block !important;
  direction: ltr !important;
  unicode-bidi: isolate-override !important;
  text-align: left !important;
}

html[dir="rtl"] .product-thumb .price,
body[dir="rtl"] .product-thumb .price,
html[lang^="he"] .product-thumb .price,
html[dir="rtl"] .product-thumb .price-new,
body[dir="rtl"] .product-thumb .price-new,
html[lang^="he"] .product-thumb .price-new,
html[dir="rtl"] .product-thumb .price-old,
body[dir="rtl"] .product-thumb .price-old,
html[lang^="he"] .product-thumb .price-old {
  direction: ltr !important;
  unicode-bidi: isolate-override !important;
  text-align: left !important;
}

@media (min-width: 768px) {
  /* Header mini cart RTL desktop: drawer opens from the left side */
  html[dir="rtl"] #cart.site-header__cart .header-cart__drawer,
  body[dir="rtl"] #cart.site-header__cart .header-cart__drawer,
  html[lang^="he"] #cart.site-header__cart .header-cart__drawer {
    right: auto;
    left: 0;
    direction: rtl;
    text-align: right;
    transform: translateX(-100%);
    box-shadow: 24px 0 50px rgba(0, 0, 0, 0.18);
  }

  html[dir="rtl"] #cart.site-header__cart.is-open .header-cart__drawer,
  body[dir="rtl"] #cart.site-header__cart.is-open .header-cart__drawer,
  html[lang^="he"] #cart.site-header__cart.is-open .header-cart__drawer,
  html[dir="rtl"] body.header-cart-open #cart.site-header__cart .header-cart__drawer,
  body[dir="rtl"].header-cart-open #cart.site-header__cart .header-cart__drawer,
  html[lang^="he"] body.header-cart-open #cart.site-header__cart .header-cart__drawer {
    transform: translateX(0);
  }

  /* Header mini cart RTL desktop: close button and header actions */
  html[dir="rtl"] #cart.site-header__cart .header-cart__close,
  body[dir="rtl"] #cart.site-header__cart .header-cart__close,
  html[lang^="he"] #cart.site-header__cart .header-cart__close {
    right: 40px;
    left: auto;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__head,
  body[dir="rtl"] #cart.site-header__cart .header-cart__head,
  html[lang^="he"] #cart.site-header__cart .header-cart__head,
  html[dir="rtl"] #cart.site-header__cart .header-cart__clear,
  body[dir="rtl"] #cart.site-header__cart .header-cart__clear,
  html[lang^="he"] #cart.site-header__cart .header-cart__clear {
    direction: rtl;
  }

  /* Header mini cart RTL desktop: product card layout */
  html[dir="rtl"] #cart.site-header__cart .header-cart__item,
  body[dir="rtl"] #cart.site-header__cart .header-cart__item,
  html[lang^="he"] #cart.site-header__cart .header-cart__item {
    direction: rtl;
    grid-template-columns: 90px minmax(0, 1fr) 26px;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__image,
  body[dir="rtl"] #cart.site-header__cart .header-cart__image,
  html[lang^="he"] #cart.site-header__cart .header-cart__image {
    grid-column: 1;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__info,
  body[dir="rtl"] #cart.site-header__cart .header-cart__info,
  html[lang^="he"] #cart.site-header__cart .header-cart__info {
    grid-column: 2;
    text-align: right;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__action,
  body[dir="rtl"] #cart.site-header__cart .header-cart__action,
  html[lang^="he"] #cart.site-header__cart .header-cart__action {
    grid-column: 3;
    justify-self: start;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__model,
  body[dir="rtl"] #cart.site-header__cart .header-cart__model,
  html[lang^="he"] #cart.site-header__cart .header-cart__model,
  html[dir="rtl"] #cart.site-header__cart .header-cart__name,
  body[dir="rtl"] #cart.site-header__cart .header-cart__name,
  html[lang^="he"] #cart.site-header__cart .header-cart__name,
  html[dir="rtl"] #cart.site-header__cart .header-cart__meta,
  body[dir="rtl"] #cart.site-header__cart .header-cart__meta,
  html[lang^="he"] #cart.site-header__cart .header-cart__meta {
    direction: rtl;
    text-align: right;
  }

  /* Header mini cart RTL desktop: product action menu */
  html[dir="rtl"] #cart.site-header__cart .header-cart__action-menu,
  body[dir="rtl"] #cart.site-header__cart .header-cart__action-menu,
  html[lang^="he"] #cart.site-header__cart .header-cart__action-menu {
    right: auto;
    left: 0;
    direction: rtl;
    text-align: right;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__action-link,
  body[dir="rtl"] #cart.site-header__cart .header-cart__action-link,
  html[lang^="he"] #cart.site-header__cart .header-cart__action-link {
    direction: rtl;
    text-align: right;
  }

  /* Header mini cart RTL desktop: quantity and prices */
  html[dir="rtl"] #cart.site-header__cart .header-cart__buy-row,
  body[dir="rtl"] #cart.site-header__cart .header-cart__buy-row,
  html[lang^="he"] #cart.site-header__cart .header-cart__buy-row {
    direction: rtl;
    grid-column: 1 / 4;
    grid-template-columns: minmax(190px, 250px) minmax(100px, 1fr);
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__qty,
  body[dir="rtl"] #cart.site-header__cart .header-cart__qty,
  html[lang^="he"] #cart.site-header__cart .header-cart__qty {
    direction: rtl;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__qty-input,
  body[dir="rtl"] #cart.site-header__cart .header-cart__qty-input,
  html[lang^="he"] #cart.site-header__cart .header-cart__qty-input {
    direction: ltr;
    text-align: center;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__qty-btn i,
  body[dir="rtl"] #cart.site-header__cart .header-cart__qty-btn i,
  html[lang^="he"] #cart.site-header__cart .header-cart__qty-btn i {
    transform: scaleX(-1);
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__price,
  body[dir="rtl"] #cart.site-header__cart .header-cart__price,
  html[lang^="he"] #cart.site-header__cart .header-cart__price {
    direction: rtl;
    text-align: left;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__price strong,
  body[dir="rtl"] #cart.site-header__cart .header-cart__price strong,
  html[lang^="he"] #cart.site-header__cart .header-cart__price strong,
  html[dir="rtl"] #cart.site-header__cart .header-cart__summary strong,
  body[dir="rtl"] #cart.site-header__cart .header-cart__summary strong,
  html[lang^="he"] #cart.site-header__cart .header-cart__summary strong {
    direction: ltr;
    unicode-bidi: isolate-override;
    text-align: left;
  }

  /* Header mini cart RTL desktop: totals and footer links */
  html[dir="rtl"] #cart.site-header__cart .header-cart__summary,
  body[dir="rtl"] #cart.site-header__cart .header-cart__summary,
  html[lang^="he"] #cart.site-header__cart .header-cart__summary {
    direction: rtl;
    text-align: right;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__summary-row,
  body[dir="rtl"] #cart.site-header__cart .header-cart__summary-row,
  html[lang^="he"] #cart.site-header__cart .header-cart__summary-row {
    direction: rtl;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__cart-link,
  body[dir="rtl"] #cart.site-header__cart .header-cart__cart-link,
  html[lang^="he"] #cart.site-header__cart .header-cart__cart-link,
  html[dir="rtl"] #cart.site-header__cart .header-cart__empty,
  body[dir="rtl"] #cart.site-header__cart .header-cart__empty,
  html[lang^="he"] #cart.site-header__cart .header-cart__empty {
    direction: rtl;
    text-align: center;
  }

  /* Checkout cart RTL desktop: mirror quantity arrows */
  html[dir="rtl"] #checkout-cart .cart-theme-qty,
  body[dir="rtl"] #checkout-cart .cart-theme-qty,
  html[lang^="he"] #checkout-cart .cart-theme-qty,
  html[dir="rtl"] #checkout-simple-builder .cart-theme-qty,
  body[dir="rtl"] #checkout-simple-builder .cart-theme-qty,
  html[lang^="he"] #checkout-simple-builder .cart-theme-qty {
    direction: rtl;
  }

  html[dir="rtl"] #checkout-cart .cart-theme-qty-input,
  body[dir="rtl"] #checkout-cart .cart-theme-qty-input,
  html[lang^="he"] #checkout-cart .cart-theme-qty-input,
  html[dir="rtl"] #checkout-simple-builder .cart-theme-qty-input,
  body[dir="rtl"] #checkout-simple-builder .cart-theme-qty-input,
  html[lang^="he"] #checkout-simple-builder .cart-theme-qty-input {
    direction: ltr;
    text-align: center;
  }

  html[dir="rtl"] #checkout-cart .cart-theme-qty-btn i,
  body[dir="rtl"] #checkout-cart .cart-theme-qty-btn i,
  html[lang^="he"] #checkout-cart .cart-theme-qty-btn i,
  html[dir="rtl"] #checkout-simple-builder .cart-theme-qty-btn i,
  body[dir="rtl"] #checkout-simple-builder .cart-theme-qty-btn i,
  html[lang^="he"] #checkout-simple-builder .cart-theme-qty-btn i {
    transform: scaleX(-1);
  }
}


html[dir="rtl"] .product-thumb .price,
body[dir="rtl"] .product-thumb .price,
html[lang^="he"] .product-thumb .price,
html[dir="rtl"] .product-thumb .price-new,
body[dir="rtl"] .product-thumb .price-new,
html[lang^="he"] .product-thumb .price-new,
html[dir="rtl"] .product-thumb .price-old,
body[dir="rtl"] .product-thumb .price-old,
html[lang^="he"] .product-thumb .price-old {
  direction: ltr !important;
  unicode-bidi: isolate-override !important;
  text-align: left !important;
}

html[dir="rtl"] .product-quickview-modal .product-quickview-quantity,
body[dir="rtl"] .product-quickview-modal .product-quickview-quantity,
html[lang^="he"] .product-quickview-modal .product-quickview-quantity {
  direction: rtl;
}

html[dir="rtl"] .product-quickview-modal .product-quickview-qty-input,
body[dir="rtl"] .product-quickview-modal .product-quickview-qty-input,
html[lang^="he"] .product-quickview-modal .product-quickview-qty-input {
  padding-right: 0 !important;
  padding-left: 0 !important;
  direction: ltr;
  text-align: center !important;
  text-align-last: center;
  line-height: 50px;
}

html[dir="rtl"] #product-info #product-price,
body[dir="rtl"] #product-info #product-price,
html[lang^="he"] #product-info #product-price,
html[dir="rtl"] .product-quickview-modal .product-quickview-price .price-new,
body[dir="rtl"] .product-quickview-modal .product-quickview-price .price-new,
html[lang^="he"] .product-quickview-modal .product-quickview-price .price-new {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

/* Страница товара RTL: краткие характеристики в верхнем информационном блоке товара. */
html[dir="rtl"] #product-info .product-summary-specs,
body[dir="rtl"] #product-info .product-summary-specs,
html[lang^="he"] #product-info .product-summary-specs {
  margin-top: 34px !important;
  padding-top: 22px !important;
  border-top: 1px solid var(--icom-border, #dee2e6) !important;
  direction: rtl !important;
  text-align: right !important;
}

html[dir="rtl"] #product-info .product-summary-specs h3,
body[dir="rtl"] #product-info .product-summary-specs h3,
html[lang^="he"] #product-info .product-summary-specs h3,
html[dir="rtl"] #product-info .product-short-description h3,
body[dir="rtl"] #product-info .product-short-description h3,
html[lang^="he"] #product-info .product-short-description h3 {
  margin: 0 0 18px !important;
  color: #172333 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: right !important;
}

html[dir="rtl"] #product-info .product-summary-specs-grid,
body[dir="rtl"] #product-info .product-summary-specs-grid,
html[lang^="he"] #product-info .product-summary-specs-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px 34px !important;
  direction: rtl !important;
  text-align: right !important;
}

html[dir="rtl"] #product-info .product-summary-spec,
body[dir="rtl"] #product-info .product-summary-spec,
html[lang^="he"] #product-info .product-summary-spec {
  min-width: 0 !important;
  text-align: right !important;
}

html[dir="rtl"] #product-info .product-summary-spec span,
body[dir="rtl"] #product-info .product-summary-spec span,
html[lang^="he"] #product-info .product-summary-spec span {
  display: block !important;
  margin-bottom: 7px !important;
  color: #a7b0c4 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

html[dir="rtl"] #product-info .product-summary-spec strong,
body[dir="rtl"] #product-info .product-summary-spec strong,
html[lang^="he"] #product-info .product-summary-spec strong {
  display: block !important;
  color: #172333 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

html[dir="rtl"] #product-info .product-all-specs-link,
body[dir="rtl"] #product-info .product-all-specs-link,
html[lang^="he"] #product-info .product-all-specs-link {
  display: inline-block !important;
  margin-top: 18px !important;
  color: #0d6efd !important;
  font-size: 13px !important;
  text-decoration: none !important;
}

html[dir="rtl"] #product-info .product-short-description,
body[dir="rtl"] #product-info .product-short-description,
html[lang^="he"] #product-info .product-short-description {
  margin-top: 34px !important;
  padding-top: 22px !important;
  border-top: 1px solid var(--icom-border, #dee2e6) !important;
  color: #172333 !important;
  direction: rtl !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  text-align: right !important;
}

html[dir="rtl"] #product-info .product-short-description p:last-child,
body[dir="rtl"] #product-info .product-short-description p:last-child,
html[lang^="he"] #product-info .product-short-description p:last-child {
  margin-bottom: 0 !important;
}

/* Страница товара RTL: раскрывающееся полное описание зеркалит русский блок и не меняет свайпы. */
html[dir="rtl"] #product-info .product-description-accordion,
body[dir="rtl"] #product-info .product-description-accordion,
html[lang^="he"] #product-info .product-description-accordion {
  margin: 44px 0 30px !important;
  background: #fff !important;
  border: 1px solid #edf1f6 !important;
  border-radius: 8px !important;
  direction: rtl !important;
  overflow: hidden !important;
  text-align: right !important;
}

html[dir="rtl"] #product-info .product-description-accordion-toggle,
body[dir="rtl"] #product-info .product-description-accordion-toggle,
html[lang^="he"] #product-info .product-description-accordion-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  width: 100% !important;
  min-height: 94px !important;
  padding: 0 40px !important;
  color: #172333 !important;
  background: #fff !important;
  border: 0 !important;
  direction: rtl !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: right !important;
  cursor: pointer !important;
}

html[dir="rtl"] #product-info .product-description-accordion-arrow,
body[dir="rtl"] #product-info .product-description-accordion-arrow,
html[lang^="he"] #product-info .product-description-accordion-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 28px !important;
  height: 28px !important;
  color: #2f4357 !important;
  font-size: 20px !important;
  transition: transform 0.24s ease !important;
}

html[dir="rtl"] #product-info .product-description-accordion.is-active .product-description-accordion-arrow,
body[dir="rtl"] #product-info .product-description-accordion.is-active .product-description-accordion-arrow,
html[lang^="he"] #product-info .product-description-accordion.is-active .product-description-accordion-arrow {
  transform: rotate(180deg) !important;
}

html[dir="rtl"] #product-info .product-description-accordion-collapse,
body[dir="rtl"] #product-info .product-description-accordion-collapse,
html[lang^="he"] #product-info .product-description-accordion-collapse {
  overflow: hidden !important;
  transition: max-height 0.28s ease !important;
}

html[dir="rtl"] #product-info .product-description-accordion-body,
body[dir="rtl"] #product-info .product-description-accordion-body,
html[lang^="he"] #product-info .product-description-accordion-body {
  padding: 0 40px 36px !important;
  color: #172333 !important;
  direction: rtl !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.75 !important;
  text-align: right !important;
}

html[dir="rtl"] #product-info .product-description-accordion-body p,
body[dir="rtl"] #product-info .product-description-accordion-body p,
html[lang^="he"] #product-info .product-description-accordion-body p {
  margin: 0 0 20px !important;
}

html[dir="rtl"] #product-info .product-description-accordion-body p:last-child,
body[dir="rtl"] #product-info .product-description-accordion-body p:last-child,
html[lang^="he"] #product-info .product-description-accordion-body p:last-child {
  margin-bottom: 0 !important;
}

/* Страница товара RTL: характеристики центрируются и получают точки между названием и значением. */
html[dir="rtl"] #product-info .product-full-specification,
body[dir="rtl"] #product-info .product-full-specification,
html[lang^="he"] #product-info .product-full-specification {
  width: 50%;
  margin: 30px auto 40px;
  padding: 0;
  direction: rtl;
  text-align: right;
  scroll-margin-top: 24px;
}

html[dir="rtl"] #product-info .product-full-specification h2,
body[dir="rtl"] #product-info .product-full-specification h2,
html[lang^="he"] #product-info .product-full-specification h2 {
  margin: 0 0 24px;
  color: #172333;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
}

html[dir="rtl"] #product-info .product-full-specification h3,
body[dir="rtl"] #product-info .product-full-specification h3,
html[lang^="he"] #product-info .product-full-specification h3 {
  margin: 0 0 16px;
  color: #172333;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

html[dir="rtl"] #product-info .product-full-specification-list,
body[dir="rtl"] #product-info .product-full-specification-list,
html[lang^="he"] #product-info .product-full-specification-list {
  margin: 0;
}

/* Страница товара RTL: полный список характеристик зеркалит русский вариант, название слева, значение справа. */
html[dir="rtl"] #product-info .product-full-specification-row,
body[dir="rtl"] #product-info .product-full-specification-row,
html[lang^="he"] #product-info .product-full-specification-row {
  display: grid !important;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  position: relative !important;
  margin-bottom: 12px !important;
  direction: ltr !important;
}

html[dir="rtl"] #product-info .product-full-specification-row::before,
body[dir="rtl"] #product-info .product-full-specification-row::before,
html[lang^="he"] #product-info .product-full-specification-row::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background-image: radial-gradient(circle, #d7dbe9 1px, transparent 1.2px);
  background-position: right center;
  background-repeat: repeat-x;
  background-size: 6px 1px;
  pointer-events: none;
}

html[dir="rtl"] #product-info .product-full-specification-row dt,
body[dir="rtl"] #product-info .product-full-specification-row dt,
html[lang^="he"] #product-info .product-full-specification-row dt {
  order: 1 !important;
  grid-column: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  justify-self: start !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding-right: 8px !important;
  padding-left: 0 !important;
  color: #a7b0c4 !important;
  background: #f7f7fb !important;
  direction: rtl !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

html[dir="rtl"] #product-info .product-full-specification-row dd,
body[dir="rtl"] #product-info .product-full-specification-row dd,
html[lang^="he"] #product-info .product-full-specification-row dd {
  order: 2 !important;
  grid-column: 2 !important;
  position: relative !important;
  z-index: 1 !important;
  justify-self: end !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding-right: 0 !important;
  padding-left: 8px !important;
  color: #172333 !important;
  background: #f7f7fb !important;
  direction: rtl !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: right !important;
}


/* Страница товара RTL: нижние секции всегда идут под общей карточкой товара на всю ширину. */
html[dir="rtl"] #product-info .product-page-top + .product-below-section,
body[dir="rtl"] #product-info .product-page-top + .product-below-section,
html[lang^="he"] #product-info .product-page-top + .product-below-section,
html[dir="rtl"] #product-info .product-below-section,
body[dir="rtl"] #product-info .product-below-section,
html[lang^="he"] #product-info .product-below-section {
  position: relative !important;
  clear: both !important;
  float: none !important;
  display: block !important;
  flex: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* ?????: ????????? ? CTA ???????? ???????? ????????? ?? ?? ?????????, ??? ?????? ??????? ? ?????? ?????????. */
html[dir="rtl"] .main-slider-title,
body[dir="rtl"] .main-slider-title,
html[lang^="he"] .main-slider-title,
html[dir="rtl"] .main-slider-kicker,
body[dir="rtl"] .main-slider-kicker,
html[lang^="he"] .main-slider-kicker,
html[dir="rtl"] .main-slider-button,
body[dir="rtl"] .main-slider-button,
html[lang^="he"] .main-slider-button,
html[dir="rtl"] #product-info .product-summary-specs h3,
body[dir="rtl"] #product-info .product-summary-specs h3,
html[lang^="he"] #product-info .product-summary-specs h3,
html[dir="rtl"] #product-info .product-short-description h3,
body[dir="rtl"] #product-info .product-short-description h3,
html[lang^="he"] #product-info .product-short-description h3,
html[dir="rtl"] #product-info .product-description-accordion-toggle,
body[dir="rtl"] #product-info .product-description-accordion-toggle,
html[lang^="he"] #product-info .product-description-accordion-toggle,
html[dir="rtl"] #product-info .product-full-specification h2,
body[dir="rtl"] #product-info .product-full-specification h2,
html[lang^="he"] #product-info .product-full-specification h2,
html[dir="rtl"] #product-info .product-full-specification h3,
body[dir="rtl"] #product-info .product-full-specification h3,
html[lang^="he"] #product-info .product-full-specification h3 {
  font-family: var(--hebrew-site-font-family) !important;
  font-weight: 700 !important;
}


@supports (overflow: clip) {

}

@media (min-width: 768px) {
  html[dir="rtl"] .product-quickview-modal .product-quickview,
  body[dir="rtl"] .product-quickview-modal .product-quickview,
  html[lang^="he"] .product-quickview-modal .product-quickview {
    direction: ltr;
  }

  html[dir="rtl"] .product-quickview-modal .product-quickview-info,
  body[dir="rtl"] .product-quickview-modal .product-quickview-info,
  html[lang^="he"] .product-quickview-modal .product-quickview-info {
    grid-column: 1;
    grid-row: 1;
    direction: rtl;
    text-align: right;
  }

  html[dir="rtl"] .product-quickview-modal .product-quickview-gallery,
  body[dir="rtl"] .product-quickview-modal .product-quickview-gallery,
  html[lang^="he"] .product-quickview-modal .product-quickview-gallery {
    grid-column: 2;
    grid-row: 1;
    padding: 24px;
    border-inline-start: 1px solid #e8edf4;
    border-inline-end: 0;
  }

  html[dir="rtl"] .product-quickview-modal .product-quickview-product-gallery,
  body[dir="rtl"] .product-quickview-modal .product-quickview-product-gallery,
  html[lang^="he"] .product-quickview-modal .product-quickview-product-gallery {
    direction: ltr;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 24px;
    min-height: 560px;
  }

  html[dir="rtl"] .product-quickview-modal .product-gallery-thumbs-panel,
  body[dir="rtl"] .product-quickview-modal .product-gallery-thumbs-panel,
  html[lang^="he"] .product-quickview-modal .product-gallery-thumbs-panel {
    grid-column: 2;
    grid-row: 1;
    order: 0;
    border-inline-end: 0;
    border-inline-start: 1px solid #e8edf4;
  }

  html[dir="rtl"] .product-quickview-modal .product-gallery-thumbs,
  body[dir="rtl"] .product-quickview-modal .product-gallery-thumbs,
  html[lang^="he"] .product-quickview-modal .product-gallery-thumbs {
    direction: ltr;
    max-height: 448px;
  }

  html[dir="rtl"] .product-quickview-modal .product-gallery-thumb,
  body[dir="rtl"] .product-quickview-modal .product-gallery-thumb,
  html[lang^="he"] .product-quickview-modal .product-gallery-thumb {
    height: 112px;
    padding: 12px;
  }

  html[dir="rtl"] .product-quickview-modal .product-gallery-main,
  body[dir="rtl"] .product-quickview-modal .product-gallery-main,
  html[lang^="he"] .product-quickview-modal .product-gallery-main {
    grid-column: 1;
    grid-row: 1;
    direction: ltr;
    min-height: 512px;
    padding: 28px;
  }

  html[dir="rtl"] .product-quickview-modal .product-gallery-main .swiper-slide,
  body[dir="rtl"] .product-quickview-modal .product-gallery-main .swiper-slide,
  html[lang^="he"] .product-quickview-modal .product-gallery-main .swiper-slide {
    min-height: 456px;
  }

  html[dir="rtl"] .product-quickview-modal .product-gallery-main img,
  body[dir="rtl"] .product-quickview-modal .product-gallery-main img,
  html[lang^="he"] .product-quickview-modal .product-gallery-main img {
    max-height: 460px;
  }

  html[dir="rtl"] .product-quickview-modal .product-quickview-price,
  body[dir="rtl"] .product-quickview-modal .product-quickview-price,
  html[lang^="he"] .product-quickview-modal .product-quickview-price {
    text-align: left;
  }

  html[dir="rtl"] .product-quickview-modal .product-quickview-buy,
  body[dir="rtl"] .product-quickview-modal .product-quickview-buy,
  html[lang^="he"] .product-quickview-modal .product-quickview-buy {
    direction: ltr;
    justify-content: flex-end;
    width: max-content;
    max-width: 100%;
    margin-right: 0;
    margin-left: auto;
  }

  html[dir="rtl"] .product-quickview-modal .product-quickview-cart,
  body[dir="rtl"] .product-quickview-modal .product-quickview-cart,
  html[lang^="he"] .product-quickview-modal .product-quickview-cart {
    order: 2;
  }

  html[dir="rtl"] .product-quickview-modal .product-quickview-quantity,
  body[dir="rtl"] .product-quickview-modal .product-quickview-quantity,
  html[lang^="he"] .product-quickview-modal .product-quickview-quantity {
    order: 1;
  }

  html[dir="rtl"] .product-quickview-modal .product-quickview-open,
  body[dir="rtl"] .product-quickview-modal .product-quickview-open,
  html[lang^="he"] .product-quickview-modal .product-quickview-open {
    display: flex;
    width: max-content;
    margin-right: auto;
    margin-left: 0;
  }
}


html[dir="rtl"] #product-info #product-price,
body[dir="rtl"] #product-info #product-price,
html[lang^="he"] #product-info #product-price,
html[dir="rtl"] .product-quickview-modal .product-quickview-price .price-new,
body[dir="rtl"] .product-quickview-modal .product-quickview-price .price-new,
html[lang^="he"] .product-quickview-modal .product-quickview-price .price-new {
  display: inline-block !important;
  direction: ltr !important;
  unicode-bidi: isolate-override !important;
  text-align: left !important;
}

html[dir="rtl"] .product-thumb .price,
body[dir="rtl"] .product-thumb .price,
html[lang^="he"] .product-thumb .price,
html[dir="rtl"] .product-thumb .price-new,
body[dir="rtl"] .product-thumb .price-new,
html[lang^="he"] .product-thumb .price-new,
html[dir="rtl"] .product-thumb .price-old,
body[dir="rtl"] .product-thumb .price-old,
html[lang^="he"] .product-thumb .price-old {
  direction: ltr !important;
  unicode-bidi: isolate-override !important;
  text-align: left !important;
}


html[dir="rtl"] #checkout-simple-builder .simple-checkout-agree,
body[dir="rtl"] #checkout-simple-builder .simple-checkout-agree,
html[lang^="he"] #checkout-simple-builder .simple-checkout-agree {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
    text-align: right;
}

html[dir="rtl"] #checkout-simple-builder .simple-checkout-agree .form-check-input,
body[dir="rtl"] #checkout-simple-builder .simple-checkout-agree .form-check-input,
html[lang^="he"] #checkout-simple-builder .simple-checkout-agree .form-check-input {
    float: none;
    flex: 0 0 auto;
    margin: 0;
}

html[dir="rtl"] #checkout-simple-builder .simple-checkout-agree .form-check-label,
body[dir="rtl"] #checkout-simple-builder .simple-checkout-agree .form-check-label,
html[lang^="he"] #checkout-simple-builder .simple-checkout-agree .form-check-label {
    margin: 0;
}

/* Checkout confirmation: keep Hebrew order details readable while the quantity widget keeps LTR arrow order. */
html[dir="rtl"] #checkout-confirm .checkout-confirm,
body[dir="rtl"] #checkout-confirm .checkout-confirm,
html[lang^="he"] #checkout-confirm .checkout-confirm {
    direction: rtl;
}

html[dir="rtl"] #checkout-confirm .checkout-confirm-product__body,
body[dir="rtl"] #checkout-confirm .checkout-confirm-product__body,
html[lang^="he"] #checkout-confirm .checkout-confirm-product__body,
html[dir="rtl"] #checkout-confirm .checkout-confirm-title,
body[dir="rtl"] #checkout-confirm .checkout-confirm-title,
html[lang^="he"] #checkout-confirm .checkout-confirm-title {
    text-align: right;
}

html[dir="rtl"] #checkout-confirm .checkout-confirm-product__qty,
body[dir="rtl"] #checkout-confirm .checkout-confirm-product__qty,
html[lang^="he"] #checkout-confirm .checkout-confirm-product__qty {
    direction: ltr;
}

/* Live search close button: mirror the desktop close control for Hebrew RTL. */
html[dir="rtl"] .site-live-search__close,
body[dir="rtl"] .site-live-search__close,
html[lang^="he"] .site-live-search__close {
    right: auto;
    left: 14px;
}

/* =========================================================
   Mobile and small viewport overrides
   ---------------------------------------------------------
   This section is intentionally last. Every rule below is guarded by
   max-width media queries and may override earlier component/page rules.
   Keep phone-specific quickview, cart, category drawer, header and RTL
   corrections here so desktop styling remains readable above.
   ========================================================= */

@media (max-width: 767px) {
  html[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"],
  body[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"],
  html[lang^="he"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] {
    position: relative !important;
    display: block !important;
    direction: rtl !important;
    overflow: hidden !important;
  }

  html[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] input,
  html[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .form-control,
  body[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] input,
  body[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .form-control,
  html[lang^="he"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] input,
  html[lang^="he"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .form-control {
    width: 100% !important;
    padding-right: 14px !important;
    padding-left: 52px !important;
    border-radius: 6px !important;
    text-align: right !important;
  }

  html[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] button,
  html[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .btn,
  body[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] button,
  body[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .btn,
  html[lang^="he"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] button,
  html[lang^="he"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .btn {
    position: absolute !important;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    background: transparent !important;
  }
}

@media (max-width: 767px) {
  /* Mobile RTL topbar: standard OpenCart links are hidden by main mobile CSS, so only phone and language are aligned here. */
  html[dir="rtl"] #top.site-topbar .site-topbar__inner,
  body[dir="rtl"] #top.site-topbar .site-topbar__inner,
  html[lang^="he"] #top.site-topbar .site-topbar__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: center !important;
    width: 100% !important;
    gap: 12px !important;
    direction: ltr !important;
  }

  html[dir="rtl"] #top.site-topbar .site-topbar__tools,
  body[dir="rtl"] #top.site-topbar .site-topbar__tools,
  html[lang^="he"] #top.site-topbar .site-topbar__tools {
    grid-column: 1 !important;
    justify-self: start !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    direction: rtl !important;
  }

  html[dir="rtl"] #top.site-topbar .site-topbar__links,
  body[dir="rtl"] #top.site-topbar .site-topbar__links,
  html[lang^="he"] #top.site-topbar .site-topbar__links {
    grid-column: 2 !important;
    justify-self: end !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    direction: rtl !important;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] #top.site-topbar .site-topbar__inner,
  body[dir="rtl"] #top.site-topbar .site-topbar__inner,
  html[lang^="he"] #top.site-topbar .site-topbar__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
    direction: ltr !important;
  }

  html[dir="rtl"] #top.site-topbar .site-topbar__tools,
  body[dir="rtl"] #top.site-topbar .site-topbar__tools,
  html[lang^="he"] #top.site-topbar .site-topbar__tools {
    grid-column: 1 !important;
    justify-self: start !important;
    margin: 0 !important;
    justify-content: flex-start !important;
    direction: rtl !important;
  }

  html[dir="rtl"] #top.site-topbar .site-topbar__links,
  body[dir="rtl"] #top.site-topbar .site-topbar__links,
  html[lang^="he"] #top.site-topbar .site-topbar__links {
    grid-column: 2 !important;
    justify-self: end !important;
    margin: 0 !important;
    justify-content: flex-end !important;
    direction: rtl !important;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] .site-topbar__inner,
  body[dir="rtl"] .site-topbar__inner,
  html[lang^="he"] .site-topbar__inner {
    direction: rtl;
    flex-direction: row;
    justify-content: space-between;
  }

  html[dir="rtl"] .site-topbar__links,
  body[dir="rtl"] .site-topbar__links,
  html[lang^="he"] .site-topbar__links {
    order: 1;
    margin-inline-end: 0;
  }

  html[dir="rtl"] .site-topbar__tools,
  body[dir="rtl"] .site-topbar__tools,
  html[lang^="he"] .site-topbar__tools {
    order: 2;
    margin-inline-start: 0;
    margin-inline-end: auto;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] #top.site-topbar .site-topbar__inner,
  body[dir="rtl"] #top.site-topbar .site-topbar__inner,
  html[lang^="he"] #top.site-topbar .site-topbar__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
    direction: ltr !important;
  }

  html[dir="rtl"] #top.site-topbar .site-topbar__tools,
  body[dir="rtl"] #top.site-topbar .site-topbar__tools,
  html[lang^="he"] #top.site-topbar .site-topbar__tools {
    grid-column: 1 !important;
    justify-self: start !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    justify-content: flex-start !important;
    direction: rtl !important;
  }

  html[dir="rtl"] #top.site-topbar .site-topbar__links,
  body[dir="rtl"] #top.site-topbar .site-topbar__links,
  html[lang^="he"] #top.site-topbar .site-topbar__links {
    grid-column: 2 !important;
    justify-self: end !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    justify-content: flex-end !important;
    direction: rtl !important;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] #top.site-topbar #form-language,
  body[dir="rtl"] #top.site-topbar #form-language,
  html[lang^="he"] #top.site-topbar #form-language,
  html[dir="rtl"] #top.site-topbar #form-language .dropdown,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown,
  html[lang^="he"] #top.site-topbar #form-language .dropdown {
    position: relative !important;
  }

  html[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle,
  html[lang^="he"] #top.site-topbar #form-language .dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    height: 24px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    vertical-align: top !important;
  }

  html[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle img,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle img,
  html[lang^="he"] #top.site-topbar #form-language .dropdown-toggle img {
    display: block !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    margin: 0 !important;
    vertical-align: middle !important;
  }

  html[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle span,
  html[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle i,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle span,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle i,
  html[lang^="he"] #top.site-topbar #form-language .dropdown-toggle span,
  html[lang^="he"] #top.site-topbar #form-language .dropdown-toggle i {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  html[dir="rtl"] #top.site-topbar #form-language .dropdown-menu,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown-menu,
  html[lang^="he"] #top.site-topbar #form-language .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
    inset: auto auto auto 0 !important;
    transform: none !important;
    min-width: 112px !important;
    max-width: calc(100vw - 28px) !important;
    text-align: right !important;
    z-index: 5050 !important;
  }

  html[dir="rtl"] #top.site-topbar #form-language .dropdown-menu .dropdown-item,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown-menu .dropdown-item,
  html[lang^="he"] #top.site-topbar #form-language .dropdown-menu .dropdown-item {
    justify-content: flex-start !important;
    direction: rtl !important;
    text-align: right !important;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] #top.site-topbar #form-language,
  body[dir="rtl"] #top.site-topbar #form-language,
  html[lang^="he"] #top.site-topbar #form-language,
  html[dir="rtl"] #top.site-topbar #form-language .dropdown,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown,
  html[lang^="he"] #top.site-topbar #form-language .dropdown {
    position: relative !important;
  }

  html[dir="rtl"] #top.site-topbar #form-language .dropdown-menu,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown-menu,
  html[lang^="he"] #top.site-topbar #form-language .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
    inset: auto auto auto 0 !important;
    transform: none !important;
    min-width: 112px !important;
    max-width: calc(100vw - 28px) !important;
    text-align: right !important;
    z-index: 5050 !important;
  }

  html[dir="rtl"] #top.site-topbar #form-language .dropdown-menu .dropdown-item,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown-menu .dropdown-item,
  html[lang^="he"] #top.site-topbar #form-language .dropdown-menu .dropdown-item {
    justify-content: flex-start !important;
    direction: rtl !important;
    text-align: right !important;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] .mobile-category-row__arrow,
  body[dir="rtl"] .mobile-category-row__arrow,
  html[lang^="he"] .mobile-category-row__arrow,
  html[dir="rtl"] .mobile-category-subhead i,
  body[dir="rtl"] .mobile-category-subhead i,
  html[lang^="he"] .mobile-category-subhead i {
    transform: scaleX(-1);
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] .mobile-category-row--show-all,
  body[dir="rtl"] .mobile-category-row--show-all,
  html[lang^="he"] .mobile-category-row--show-all {
    font-family: var(--hebrew-site-font-family) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
}

/* =========================================================
   Стили для мобильных устройств и адаптивных экранов
   Собраны внизу файла, чтобы не смешивать мобильные правки с базовыми стилями.
========================================================= */
/* Мобильные карточки RTL: резиновая нижняя панель для одного и двух товаров в ряд. */
@media (max-width: 575.98px) {
    html[dir="rtl"] .product-thumb .product-thumb-buy-row,
    body[dir="rtl"] .product-thumb .product-thumb-buy-row,
    html[lang^="he"] .product-thumb .product-thumb-buy-row {
        display: grid !important;
        grid-template-columns: minmax(34px, 1fr) minmax(70px, 1.15fr) minmax(34px, 1fr) !important;
        gap: 4px !important;
        padding: 12px 6px 14px !important;
        align-items: center !important;
        justify-content: stretch !important;
    }

    html[dir="rtl"] .product-thumb .product-thumb-quickview,
    body[dir="rtl"] .product-thumb .product-thumb-quickview,
    html[lang^="he"] .product-thumb .product-thumb-quickview,
    html[dir="rtl"] .product-thumb .product-thumb-cart,
    body[dir="rtl"] .product-thumb .product-thumb-cart,
    html[lang^="he"] .product-thumb .product-thumb-cart {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 42px !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    html[dir="rtl"] .product-thumb .product-thumb-quantity,
    body[dir="rtl"] .product-thumb .product-thumb-quantity,
    html[lang^="he"] .product-thumb .product-thumb-quantity {
        width: 100% !important;
        min-width: 70px !important;
        max-width: none !important;
        height: 42px !important;
        grid-template-columns: minmax(40px, 1fr) 30px !important;
    }

    html[dir="rtl"] .product-thumb .product-thumb-qty-input,
    body[dir="rtl"] .product-thumb .product-thumb-qty-input,
    html[lang^="he"] .product-thumb .product-thumb-qty-input {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
    }
}

/* Мобильные карточки RTL: расширение сетки, когда внутри карточки достаточно места. */
@media (max-width: 575.98px) {
    @container (min-width: 260px) {
        html[dir="rtl"] .product-thumb .product-thumb-buy-row,
        body[dir="rtl"] .product-thumb .product-thumb-buy-row,
        html[lang^="he"] .product-thumb .product-thumb-buy-row {
            grid-template-columns: minmax(72px, 1fr) minmax(96px, 1.15fr) minmax(72px, 1fr) !important;
            gap: 8px !important;
            padding: 16px 18px 18px !important;
        }

        html[dir="rtl"] .product-thumb .product-thumb-quickview,
        body[dir="rtl"] .product-thumb .product-thumb-quickview,
        html[lang^="he"] .product-thumb .product-thumb-quickview,
        html[dir="rtl"] .product-thumb .product-thumb-cart,
        body[dir="rtl"] .product-thumb .product-thumb-cart,
        html[lang^="he"] .product-thumb .product-thumb-cart,
        html[dir="rtl"] .product-thumb .product-thumb-quantity,
        body[dir="rtl"] .product-thumb .product-thumb-quantity,
        html[lang^="he"] .product-thumb .product-thumb-quantity {
            height: 46px !important;
        }

        html[dir="rtl"] .product-thumb .product-thumb-quantity,
        body[dir="rtl"] .product-thumb .product-thumb-quantity,
        html[lang^="he"] .product-thumb .product-thumb-quantity {
            min-width: 96px !important;
            grid-template-columns: minmax(56px, 1fr) 34px !important;
        }

        html[dir="rtl"] .product-thumb .product-thumb-quantity button,
        body[dir="rtl"] .product-thumb .product-thumb-quantity button,
        html[lang^="he"] .product-thumb .product-thumb-quantity button {
            width: 34px !important;
            min-width: 34px !important;
            max-width: 34px !important;
        }
    }
}

/* Мобильный RTL: шапка не должна создавать горизонтальный сдвиг страницы. */
@media (max-width: 575.98px) {
    html[dir="rtl"],
    body[dir="rtl"],
    html[lang^="he"],
    html[lang^="he"] body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    html[dir="rtl"] #container,
    body[dir="rtl"] #container,
    html[lang^="he"] #container {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    html[dir="rtl"] #top.site-topbar .container,
    html[dir="rtl"] .site-header .container,
    body[dir="rtl"] #top.site-topbar .container,
    body[dir="rtl"] .site-header .container,
    html[lang^="he"] #top.site-topbar .container,
    html[lang^="he"] .site-header .container {
        width: 100%;
        max-width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    html[dir="rtl"] .site-topbar__inner,
    body[dir="rtl"] .site-topbar__inner,
    html[lang^="he"] .site-topbar__inner {
        align-items: stretch;
        text-align: right;
    }

    html[dir="rtl"] .site-topbar__links,
    html[dir="rtl"] .site-topbar__tools,
    body[dir="rtl"] .site-topbar__links,
    body[dir="rtl"] .site-topbar__tools,
    html[lang^="he"] .site-topbar__links,
    html[lang^="he"] .site-topbar__tools {
        width: 100%;
        justify-content: space-between;
    }

    /* На телефоне текст языка в RTL показываем, иначе остаётся почти незаметный флаг. */
    html[dir="rtl"] #form-language .d-none.d-md-inline,
    body[dir="rtl"] #form-language .d-none.d-md-inline,
    html[lang^="he"] #form-language .d-none.d-md-inline {
        display: inline !important;
    }

    html[dir="rtl"] #form-language .dropdown > a,
    body[dir="rtl"] #form-language .dropdown > a,
    html[lang^="he"] #form-language .dropdown > a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }

    html[dir="rtl"] #form-language .dropdown-menu,
    body[dir="rtl"] #form-language .dropdown-menu,
    html[lang^="he"] #form-language .dropdown-menu {
        right: 0 !important;
        left: auto !important;
        max-width: calc(100vw - 28px);
        transform: none !important;
    }

    html[dir="rtl"] .site-header__inner,
    body[dir="rtl"] .site-header__inner,
    html[lang^="he"] .site-header__inner {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    html[dir="rtl"] .site-header__actions,
    body[dir="rtl"] .site-header__actions,
    html[lang^="he"] .site-header__actions,
    html[dir="rtl"] .site-header__search,
    body[dir="rtl"] .site-header__search,
    html[lang^="he"] .site-header__search,
    html[dir="rtl"] #menu.site-menu,
    body[dir="rtl"] #menu.site-menu,
    html[lang^="he"] #menu.site-menu {
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    html[dir="rtl"] #product-info .product-page-top,
    body[dir="rtl"] #product-info .product-page-top,
    html[lang^="he"] #product-info .product-page-top {
        display: block !important;
    }

    html[dir="rtl"] #product-info .product-page-top > .product-gallery-column,
    html[dir="rtl"] #product-info .product-page-top > .product-summary-column,
    body[dir="rtl"] #product-info .product-page-top > .product-gallery-column,
    body[dir="rtl"] #product-info .product-page-top > .product-summary-column,
    html[lang^="he"] #product-info .product-page-top > .product-gallery-column,
    html[lang^="he"] #product-info .product-page-top > .product-summary-column {
        max-width: 100% !important;
        border-left: 0 !important;
    }

    html[dir="rtl"] #product-info .product-page-top > .product-summary-column,
    body[dir="rtl"] #product-info .product-page-top > .product-summary-column,
    html[lang^="he"] #product-info .product-page-top > .product-summary-column {
        border-top: 1px solid var(--icom-border, #dee2e6);
    }

    html[dir="rtl"] #product-info .product-summary-panel,
    body[dir="rtl"] #product-info .product-summary-panel,
    html[lang^="he"] #product-info .product-summary-panel {
        min-height: 0;
    }

    html[dir="rtl"] #product-info .product-gallery,
    body[dir="rtl"] #product-info .product-gallery,
    html[lang^="he"] #product-info .product-gallery {
        display: flex !important;
        flex-direction: column-reverse;
        min-height: 0;
        gap: 12px !important;
    }

    html[dir="rtl"] #product-info .product-gallery-thumbs-panel,
    body[dir="rtl"] #product-info .product-gallery-thumbs-panel,
    html[lang^="he"] #product-info .product-gallery-thumbs-panel {
        border-right: 0;
        border-top: 1px solid var(--icom-border, #dee2e6);
    }

    html[dir="rtl"] #product-info .product-gallery-thumbs,
    body[dir="rtl"] #product-info .product-gallery-thumbs,
    html[lang^="he"] #product-info .product-gallery-thumbs {
        width: 100%;
        max-height: none;
        overflow: hidden;
    }

    html[dir="rtl"] #product-info .product-gallery-thumb,
    body[dir="rtl"] #product-info .product-gallery-thumb,
    html[lang^="he"] #product-info .product-gallery-thumb {
        width: 96px;
        height: 82px;
        flex: 0 0 96px;
        border-bottom: 0;
        border-right: 1px solid var(--icom-border, #dee2e6);
    }

    html[dir="rtl"] #product-info .product-gallery-thumb-nav,
    body[dir="rtl"] #product-info .product-gallery-thumb-nav,
    html[lang^="he"] #product-info .product-gallery-thumb-nav {
        display: none;
    }

    html[dir="rtl"] #product-info .product-gallery-main,
    body[dir="rtl"] #product-info .product-gallery-main,
    html[lang^="he"] #product-info .product-gallery-main {
        min-height: 320px;
        padding: 18px;
    }

    html[dir="rtl"] #product-info .product-gallery-main .swiper-slide,
    body[dir="rtl"] #product-info .product-gallery-main .swiper-slide,
    html[lang^="he"] #product-info .product-gallery-main .swiper-slide {
        min-height: 284px;
    }

    html[dir="rtl"] #product-info .product-gallery-main img,
    body[dir="rtl"] #product-info .product-gallery-main img,
    html[lang^="he"] #product-info .product-gallery-main img {
        max-height: 300px;
    }
}

@media (max-width: 991.98px) {
    html[dir="rtl"] header form.input-group[action*="common/search"] input,
    html[dir="rtl"] header form.input-group[action*="common/search"] .form-control,
    body[dir="rtl"] header form.input-group[action*="common/search"] input,
    body[dir="rtl"] header form.input-group[action*="common/search"] .form-control,
    html[lang^="he"] header form.input-group[action*="common/search"] input,
    html[lang^="he"] header form.input-group[action*="common/search"] .form-control {
        padding-left: 74px !important;
    }
}

@media (max-width: 1399px) {
    html[dir="rtl"] .product-thumb .product-thumb-buy-row,
    body[dir="rtl"] .product-thumb .product-thumb-buy-row,
    html[lang^="he"] .product-thumb .product-thumb-buy-row {
        grid-template-columns: 40px 78px minmax(0, 1fr);
    }
}

@media (max-width: 1199px) {
    html[dir="rtl"] .product-thumb .product-thumb-buy-row,
    body[dir="rtl"] .product-thumb .product-thumb-buy-row,
    html[lang^="he"] .product-thumb .product-thumb-buy-row {
        grid-template-columns: 46px 78px minmax(0, 1fr);
    }
}

@media (max-width: 575px) {
    html[dir="rtl"] #content > .row:has(#button-grid):has(#input-sort),
    body[dir="rtl"] #content > .row:has(#button-grid):has(#input-sort),
    html[lang^="he"] #content > .row:has(#button-grid):has(#input-sort) {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        direction: rtl !important;
    }

    html[dir="rtl"] #content .input-group:has(#input-sort),
    html[dir="rtl"] #content .input-group:has(#input-limit),
    body[dir="rtl"] #content .input-group:has(#input-sort),
    body[dir="rtl"] #content .input-group:has(#input-limit),
    html[lang^="he"] #content .input-group:has(#input-sort),
    html[lang^="he"] #content .input-group:has(#input-limit) {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(120px, auto) minmax(0, 1fr) !important;
        direction: rtl !important;
    }
}

@media (max-width: 575.98px) {
    html[dir="rtl"] #product-info .product-action-form > .product-action-buttons,
    body[dir="rtl"] #product-info .product-action-form > .product-action-buttons,
    html[lang^="he"] #product-info .product-action-form > .product-action-buttons {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html[dir="rtl"] #product-info .product-action-form > .product-action-buttons .btn,
    body[dir="rtl"] #product-info .product-action-form > .product-action-buttons .btn,
    html[lang^="he"] #product-info .product-action-form > .product-action-buttons .btn {
        width: 100% !important;
    }

    html[dir="rtl"] #product-info #form-product #button-cart,
    body[dir="rtl"] #product-info #form-product #button-cart,
    html[lang^="he"] #product-info #form-product #button-cart {
        flex: 1 0 100% !important;
        width: 100% !important;
        margin-top: 10px !important;
        border-radius: 6px !important;
    }
}

@media (max-width: 991.98px) {
    /* На планшетах и телефонах галерея остаётся вертикальной, чтобы не сжимать фотографии. */
    html[dir="rtl"] #product-info .product-gallery,
    body[dir="rtl"] #product-info .product-gallery,
    html[lang^="he"] #product-info .product-gallery {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 0 !important;
    }

    html[dir="rtl"] #product-info .product-gallery-thumbs-panel,
    body[dir="rtl"] #product-info .product-gallery-thumbs-panel,
    html[lang^="he"] #product-info .product-gallery-thumbs-panel {
        border-left: 0 !important;
        border-top: 1px solid var(--icom-border, #dee2e6) !important;
    }
}

@media (max-width: 575.98px) {
    /* На телефоне кнопка покупки остаётся в один ряд со счётчиком. */
    html[dir="rtl"] #product-info #form-product .product-quantity-group,
    body[dir="rtl"] #product-info #form-product .product-quantity-group,
    html[lang^="he"] #product-info #form-product .product-quantity-group {
        width: 100% !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }

    html[dir="rtl"] #product-info #form-product #button-cart,
    body[dir="rtl"] #product-info #form-product #button-cart,
    html[lang^="he"] #product-info #form-product #button-cart {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 118px !important;
        margin: 0 10px 0 0 !important;
    }

    /* Счётчик на телефоне сужаем, чтобы вся строка помещалась без переноса. */
    html[dir="rtl"] #product-info #form-product .quantity-minus,
    body[dir="rtl"] #product-info #form-product .quantity-minus,
    html[lang^="he"] #product-info #form-product .quantity-minus,
    html[dir="rtl"] #product-info #form-product .quantity-plus,
    body[dir="rtl"] #product-info #form-product .quantity-plus,
    html[lang^="he"] #product-info #form-product .quantity-plus {
        flex: 0 0 42px !important;
        width: 42px !important;
        min-width: 42px !important;
    }

    html[dir="rtl"] #product-info #form-product #input-quantity,
    body[dir="rtl"] #product-info #form-product #input-quantity,
    html[lang^="he"] #product-info #form-product #input-quantity {
        flex: 0 0 56px !important;
        width: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
    }
}

@media (max-width: 575.98px) {
    /* На телефоне в иврите поле количества остаётся компактным, но цифра не теряется. */
    html[dir="rtl"] #product-info #form-product #input-quantity,
    body[dir="rtl"] #product-info #form-product #input-quantity,
    html[lang^="he"] #product-info #form-product #input-quantity {
        flex: 0 0 56px !important;
        width: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
        height: 42px !important;
        padding: 0 !important;
        font-weight: 700 !important;
        line-height: 42px !important;
    }
}

@media (max-width: 575.98px) {
    /* Страница товара RTL mobile: меняем местами счётчик и кнопку покупки. */
    html[dir="rtl"] #product-info #form-product .quantity-minus,
    body[dir="rtl"] #product-info #form-product .quantity-minus,
    html[lang^="he"] #product-info #form-product .quantity-minus {
        order: 1 !important;
    }

    html[dir="rtl"] #product-info #form-product #input-quantity,
    body[dir="rtl"] #product-info #form-product #input-quantity,
    html[lang^="he"] #product-info #form-product #input-quantity {
        order: 2 !important;
    }

    html[dir="rtl"] #product-info #form-product .quantity-plus,
    body[dir="rtl"] #product-info #form-product .quantity-plus,
    html[lang^="he"] #product-info #form-product .quantity-plus {
        order: 3 !important;
    }

    html[dir="rtl"] #product-info #form-product #button-cart,
    body[dir="rtl"] #product-info #form-product #button-cart,
    html[lang^="he"] #product-info #form-product #button-cart {
        order: 4 !important;
        margin: 0 0 0 10px !important;
    }
}

@media (max-width: 575.98px) {
    /* Страница товара RTL mobile: производитель остаётся справа, но выглядит как аккуратный блок. */
    html[dir="rtl"] #product-info .product-summary-head,
    body[dir="rtl"] #product-info .product-summary-head,
    html[lang^="he"] #product-info .product-summary-head {
        display: block !important;
        direction: rtl !important;
        text-align: right !important;
    }

    html[dir="rtl"] #product-info .product-manufacturer-box,
    body[dir="rtl"] #product-info .product-manufacturer-box,
    html[lang^="he"] #product-info .product-manufacturer-box {
        width: 100% !important;
        margin: 12px 0 0 !important;
        text-align: right !important;
        line-height: 1.25 !important;
    }

    html[dir="rtl"] #product-info .product-manufacturer-box a,
    body[dir="rtl"] #product-info .product-manufacturer-box a,
    html[lang^="he"] #product-info .product-manufacturer-box a {
        display: block !important;
        font-weight: 700 !important;
    }

    html[dir="rtl"] #product-info .product-manufacturer-box span,
    body[dir="rtl"] #product-info .product-manufacturer-box span,
    html[lang^="he"] #product-info .product-manufacturer-box span {
        display: block !important;
        margin-top: 4px !important;
        color: #a7b0c4 !important;
        font-size: 12px !important;
    }

    /* Страница товара RTL mobile: наличие и код товара остаются справа и не превращаются в узкую колонку. */
    html[dir="rtl"] #product-info .product-meta-list,
    body[dir="rtl"] #product-info .product-meta-list,
    html[lang^="he"] #product-info .product-meta-list {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        direction: rtl !important;
        width: 100% !important;
        margin: 0 0 18px !important;
        gap: 8px 16px !important;
        text-align: right !important;
    }

    html[dir="rtl"] #product-info .product-meta-list li,
    body[dir="rtl"] #product-info .product-meta-list li,
    html[lang^="he"] #product-info .product-meta-list li {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        width: auto !important;
        min-width: 0 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    html[dir="rtl"] #product-info .product-meta-list li > span:first-child:not(.product-stock-dot),
    body[dir="rtl"] #product-info .product-meta-list li > span:first-child:not(.product-stock-dot),
    html[lang^="he"] #product-info .product-meta-list li > span:first-child:not(.product-stock-dot) {
        display: inline !important;
        margin: 0 !important;
        color: #9aa4ba !important;
        font-size: 13px !important;
    }

    html[dir="rtl"] #product-info .product-stock,
    body[dir="rtl"] #product-info .product-stock,
    html[lang^="he"] #product-info .product-stock {
        font-weight: 700 !important;
    }
}

@media (max-width: 575.98px) {
    /* Страница товара RTL mobile: финальная полировка бренда, наличия и кода товара. */
    html[dir="rtl"] #product-info .product-manufacturer-box,
    body[dir="rtl"] #product-info .product-manufacturer-box,
    html[lang^="he"] #product-info .product-manufacturer-box {
        display: block !important;
        width: 100% !important;
        margin: 10px 0 0 !important;
        padding: 0 !important;
        text-align: right !important;
    }

    /* Название бренда выглядит как обычный чёрный текст, как в русской версии. */
    html[dir="rtl"] #product-info .product-manufacturer-box a,
    body[dir="rtl"] #product-info .product-manufacturer-box a,
    html[lang^="he"] #product-info .product-manufacturer-box a {
        display: block !important;
        color: #172333 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        text-decoration: none !important;
    }

    html[dir="rtl"] #product-info .product-manufacturer-box a:hover,
    body[dir="rtl"] #product-info .product-manufacturer-box a:hover,
    html[lang^="he"] #product-info .product-manufacturer-box a:hover {
        color: #172333 !important;
        text-decoration: none !important;
    }

    html[dir="rtl"] #product-info .product-manufacturer-box span,
    body[dir="rtl"] #product-info .product-manufacturer-box span,
    html[lang^="he"] #product-info .product-manufacturer-box span {
        display: block !important;
        margin-top: 4px !important;
        color: #a7b0c4 !important;
        font-size: 12px !important;
        font-weight: 400 !important;
        line-height: 1.25 !important;
    }

    /* Наличие и код товара прижимаем к правому краю, зеркально русской мобильной версии. */
    html[dir="rtl"] #product-info .product-meta-list,
    body[dir="rtl"] #product-info .product-meta-list,
    html[lang^="he"] #product-info .product-meta-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        justify-content: start !important;
        direction: rtl !important;
        width: 100% !important;
        margin: 0 0 18px !important;
        padding: 0 !important;
        gap: 8px 16px !important;
        text-align: right !important;
    }

    html[dir="rtl"] #product-info .product-meta-list li,
    body[dir="rtl"] #product-info .product-meta-list li,
    html[lang^="he"] #product-info .product-meta-list li {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: flex-start !important;
        direction: rtl !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 6px !important;
        white-space: nowrap !important;
    }

    html[dir="rtl"] #product-info .product-stock,
    body[dir="rtl"] #product-info .product-stock,
    html[lang^="he"] #product-info .product-stock {
        font-weight: 700 !important;
    }
}

@media (max-width: 767.98px) {
  html[dir="rtl"] .main-slider-item,
  body[dir="rtl"] .main-slider-item,
  html[lang^="he"] .main-slider-item {
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  html[dir="rtl"] #product-info .product-full-specification-row,
  body[dir="rtl"] #product-info .product-full-specification-row,
  html[lang^="he"] #product-info .product-full-specification-row {
    position: relative !important;
  }

  html[dir="rtl"] #product-info .product-full-specification-row::before,
  body[dir="rtl"] #product-info .product-full-specification-row::before,
  html[lang^="he"] #product-info .product-full-specification-row::before {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    left: 0 !important;
    top: 50% !important;
    display: block !important;
    height: 1px !important;
    background-image: radial-gradient(circle, #d7dbe9 1px, transparent 1.2px) !important;
    background-position: right center !important;
    background-repeat: repeat-x !important;
    background-size: 6px 1px !important;
    pointer-events: none !important;
  }

  html[dir="rtl"] #product-info .product-full-specification-row dt,
  body[dir="rtl"] #product-info .product-full-specification-row dt,
  html[lang^="he"] #product-info .product-full-specification-row dt,
  html[dir="rtl"] #product-info .product-full-specification-row dd,
  body[dir="rtl"] #product-info .product-full-specification-row dd,
  html[lang^="he"] #product-info .product-full-specification-row dd {
    position: relative !important;
    z-index: 1 !important;
    background: #f7f7fb !important;
  }
}

@media (max-width: 767.98px) {
  html[dir="rtl"] #product-info .product-full-specification-row,
  body[dir="rtl"] #product-info .product-full-specification-row,
  html[lang^="he"] #product-info .product-full-specification-row {
    position: relative !important;
  }

  html[dir="rtl"] #product-info .product-full-specification-row::before,
  body[dir="rtl"] #product-info .product-full-specification-row::before,
  html[lang^="he"] #product-info .product-full-specification-row::before {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    left: 0 !important;
    top: 50% !important;
    display: block !important;
    height: 1px !important;
    background-image: radial-gradient(circle, #d7dbe9 1px, transparent 1.2px) !important;
    background-position: right center !important;
    background-repeat: repeat-x !important;
    background-size: 6px 1px !important;
    pointer-events: none !important;
  }

  html[dir="rtl"] #product-info .product-full-specification-row dt,
  body[dir="rtl"] #product-info .product-full-specification-row dt,
  html[lang^="he"] #product-info .product-full-specification-row dt,
  html[dir="rtl"] #product-info .product-full-specification-row dd,
  body[dir="rtl"] #product-info .product-full-specification-row dd,
  html[lang^="he"] #product-info .product-full-specification-row dd {
    position: relative !important;
    z-index: 1 !important;
    background: #f7f7fb !important;
  }
}

@media (max-width: 991.98px) {
  html[dir="rtl"] #product-info .product-summary-specs-grid,
  body[dir="rtl"] #product-info .product-summary-specs-grid,
  html[lang^="he"] #product-info .product-summary-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[dir="rtl"] #product-info .product-full-specification,
  body[dir="rtl"] #product-info .product-full-specification,
  html[lang^="he"] #product-info .product-full-specification,
  html[dir="rtl"] #product-info .product-review-block,
  body[dir="rtl"] #product-info .product-review-block,
  html[lang^="he"] #product-info .product-review-block {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 575.98px) {
  html[dir="rtl"] #product-info .product-summary-specs-grid,
  body[dir="rtl"] #product-info .product-summary-specs-grid,
  html[lang^="he"] #product-info .product-summary-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 18px !important;
  }

  /* Страница товара RTL: компактный мобильный блок кратких характеристик без изменения свайпов. */
  html[dir="rtl"] #product-info .product-summary-specs,
  body[dir="rtl"] #product-info .product-summary-specs,
  html[lang^="he"] #product-info .product-summary-specs {
    margin-top: 22px !important;
    padding: 18px 0 16px !important;
    border-top: 1px solid #dfe5ee !important;
    border-bottom: 0 !important;
    direction: rtl !important;
    text-align: right !important;
  }

  html[dir="rtl"] #product-info .product-summary-specs h3,
  body[dir="rtl"] #product-info .product-summary-specs h3,
  html[lang^="he"] #product-info .product-summary-specs h3 {
    margin-bottom: 16px !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    text-align: right !important;
  }

  html[dir="rtl"] #product-info .product-summary-spec,
  body[dir="rtl"] #product-info .product-summary-spec,
  html[lang^="he"] #product-info .product-summary-spec {
    min-width: 0 !important;
    text-align: right !important;
  }

  html[dir="rtl"] #product-info .product-summary-spec span,
  body[dir="rtl"] #product-info .product-summary-spec span,
  html[lang^="he"] #product-info .product-summary-spec span {
    margin-bottom: 5px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  html[dir="rtl"] #product-info .product-summary-spec strong,
  body[dir="rtl"] #product-info .product-summary-spec strong,
  html[lang^="he"] #product-info .product-summary-spec strong {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
  }

  html[dir="rtl"] #product-info .product-all-specs-link,
  body[dir="rtl"] #product-info .product-all-specs-link,
  html[lang^="he"] #product-info .product-all-specs-link {
    margin-top: 16px !important;
    font-size: 13px !important;
  }

  html[dir="rtl"] #product-info .product-description-accordion,
  body[dir="rtl"] #product-info .product-description-accordion,
  html[lang^="he"] #product-info .product-description-accordion {
    margin: 28px 0 24px;
  }

  html[dir="rtl"] #product-info .product-description-accordion-toggle,
  body[dir="rtl"] #product-info .product-description-accordion-toggle,
  html[lang^="he"] #product-info .product-description-accordion-toggle {
    min-height: 76px;
    padding: 0 20px;
    font-size: 18px;
  }

  html[dir="rtl"] #product-info .product-description-accordion-body,
  body[dir="rtl"] #product-info .product-description-accordion-body,
  html[lang^="he"] #product-info .product-description-accordion-body {
    padding: 0 20px 26px;
    font-size: 13px;
    line-height: 1.65;
  }

  html[dir="rtl"] #product-info .product-full-specification-row,
  body[dir="rtl"] #product-info .product-full-specification-row,
  html[lang^="he"] #product-info .product-full-specification-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  html[dir="rtl"] #product-info .product-full-specification-row::before,
  body[dir="rtl"] #product-info .product-full-specification-row::before,
  html[lang^="he"] #product-info .product-full-specification-row::before {
    display: none;
  }

  html[dir="rtl"] #product-info .product-full-specification-row dt,
  body[dir="rtl"] #product-info .product-full-specification-row dt,
  html[lang^="he"] #product-info .product-full-specification-row dt,
  html[dir="rtl"] #product-info .product-full-specification-row dd,
  body[dir="rtl"] #product-info .product-full-specification-row dd,
  html[lang^="he"] #product-info .product-full-specification-row dd {
    order: initial;
    grid-column: auto;
    justify-self: stretch;
    padding-right: 0;
    padding-left: 0;
    direction: rtl;
    text-align: right;
    white-space: normal;
  }
}

/* Мобильный RTL: стабильность вертикального свайпа без изменения раскладки компонентов. */

@media (max-width: 767.98px) {
  html[dir="rtl"],
  body[dir="rtl"],
  html[lang^="he"],
  html[lang^="he"] body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
  }

  html[dir="rtl"] #container,
  body[dir="rtl"] #container,
  html[lang^="he"] #container,
  html[dir="rtl"] main,
  body[dir="rtl"] main,
  html[lang^="he"] main,
  html[dir="rtl"] #content,
  body[dir="rtl"] #content,
  html[lang^="he"] #content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    touch-action: pan-y pinch-zoom;
  }

  html[dir="rtl"] .site-header,
  body[dir="rtl"] .site-header,
  html[lang^="he"] .site-header,
  html[dir="rtl"] .site-header__inner,
  body[dir="rtl"] .site-header__inner,
  html[lang^="he"] .site-header__inner,
  html[dir="rtl"] .site-header__actions,
  body[dir="rtl"] .site-header__actions,
  html[lang^="he"] .site-header__actions,
  html[dir="rtl"] .site-header__search,
  body[dir="rtl"] .site-header__search,
  html[lang^="he"] .site-header__search {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 767.98px) {
    html[dir="rtl"],
    body[dir="rtl"],
    html[lang^="he"],
    html[lang^="he"] body,
    html[dir="rtl"] #container,
    body[dir="rtl"] #container,
    html[lang^="he"] #container,
    html[dir="rtl"] main,
    body[dir="rtl"] main,
    html[lang^="he"] main,
    html[dir="rtl"] #content,
    body[dir="rtl"] #content,
    html[lang^="he"] #content {
      overflow-x: clip !important;
    }
  }

@media (max-width: 767.98px) {
  html[dir="rtl"] .product-quickview-modal .product-quickview-top,
  body[dir="rtl"] .product-quickview-modal .product-quickview-top,
  html[lang^="he"] .product-quickview-modal .product-quickview-top {
    direction: rtl;
  }

  html[dir="rtl"] .product-quickview-modal .product-quickview-brand,
  body[dir="rtl"] .product-quickview-modal .product-quickview-brand,
  html[lang^="he"] .product-quickview-modal .product-quickview-brand,
  html[dir="rtl"] .product-quickview-modal .product-quickview-stock-row,
  body[dir="rtl"] .product-quickview-modal .product-quickview-stock-row,
  html[lang^="he"] .product-quickview-modal .product-quickview-stock-row,
  html[dir="rtl"] .product-quickview-modal h2,
  body[dir="rtl"] .product-quickview-modal h2,
  html[lang^="he"] .product-quickview-modal h2 {
    direction: rtl;
    text-align: right;
  }

  html[dir="rtl"] .product-quickview-modal .product-quickview-price,
  body[dir="rtl"] .product-quickview-modal .product-quickview-price,
  html[lang^="he"] .product-quickview-modal .product-quickview-price {
    direction: rtl;
    text-align: left;
  }

  html[dir="rtl"] .product-quickview-modal .product-quickview-buy,
  body[dir="rtl"] .product-quickview-modal .product-quickview-buy,
  html[lang^="he"] .product-quickview-modal .product-quickview-buy {
    direction: rtl;
  }

  html[dir="rtl"] .product-quickview-modal .product-quickview-cart,
  body[dir="rtl"] .product-quickview-modal .product-quickview-cart,
  html[lang^="he"] .product-quickview-modal .product-quickview-cart,
  html[dir="rtl"] .product-quickview-modal .product-quickview-quantity,
  body[dir="rtl"] .product-quickview-modal .product-quickview-quantity,
  html[lang^="he"] .product-quickview-modal .product-quickview-quantity {
    direction: rtl;
  }

  html[dir="rtl"] .product-quickview-modal .product-quickview-qty-input,
  body[dir="rtl"] .product-quickview-modal .product-quickview-qty-input,
  html[lang^="he"] .product-quickview-modal .product-quickview-qty-input {
    padding-right: 0 !important;
    padding-left: 0 !important;
    direction: ltr;
    text-align: center !important;
    text-align-last: center;
  }
}

@media (max-width: 767.98px) {
  html[dir="rtl"] #product-info .product-full-specification-row,
  body[dir="rtl"] #product-info .product-full-specification-row,
  html[lang^="he"] #product-info .product-full-specification-row {
    position: relative !important;
  }

  html[dir="rtl"] #product-info .product-full-specification-row::before,
  body[dir="rtl"] #product-info .product-full-specification-row::before,
  html[lang^="he"] #product-info .product-full-specification-row::before {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    left: 0 !important;
    top: 50% !important;
    display: block !important;
    height: 1px !important;
    background-image: radial-gradient(circle, #d7dbe9 1px, transparent 1.2px) !important;
    background-position: right center !important;
    background-repeat: repeat-x !important;
    background-size: 6px 1px !important;
    pointer-events: none !important;
  }

  html[dir="rtl"] #product-info .product-full-specification-row dt,
  body[dir="rtl"] #product-info .product-full-specification-row dt,
  html[lang^="he"] #product-info .product-full-specification-row dt,
  html[dir="rtl"] #product-info .product-full-specification-row dd,
  body[dir="rtl"] #product-info .product-full-specification-row dd,
  html[lang^="he"] #product-info .product-full-specification-row dd {
    position: relative !important;
    z-index: 1 !important;
    background: #f7f7fb !important;
  }
}

@media (max-width: 767.98px) {
  /* Header mini cart RTL mobile: mirror the compact drawer */
  html[dir="rtl"] #cart.site-header__cart .header-cart__drawer,
  body[dir="rtl"] #cart.site-header__cart .header-cart__drawer,
  html[lang^="he"] #cart.site-header__cart .header-cart__drawer {
    right: auto;
    left: 0;
    direction: rtl;
    text-align: right;
    transform: translateX(-100%);
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.18);
  }

  html[dir="rtl"] #cart.site-header__cart.is-open .header-cart__drawer,
  body[dir="rtl"] #cart.site-header__cart.is-open .header-cart__drawer,
  html[lang^="he"] #cart.site-header__cart.is-open .header-cart__drawer,
  html[dir="rtl"] body.header-cart-open #cart.site-header__cart .header-cart__drawer,
  body[dir="rtl"].header-cart-open #cart.site-header__cart .header-cart__drawer,
  html[lang^="he"] body.header-cart-open #cart.site-header__cart .header-cart__drawer {
    transform: translateX(0);
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__close,
  body[dir="rtl"] #cart.site-header__cart .header-cart__close,
  html[lang^="he"] #cart.site-header__cart .header-cart__close {
    right: 20px;
    left: auto;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__head,
  body[dir="rtl"] #cart.site-header__cart .header-cart__head,
  html[lang^="he"] #cart.site-header__cart .header-cart__head,
  html[dir="rtl"] #cart.site-header__cart .header-cart__clear,
  body[dir="rtl"] #cart.site-header__cart .header-cart__clear,
  html[lang^="he"] #cart.site-header__cart .header-cart__clear {
    direction: rtl;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__item,
  body[dir="rtl"] #cart.site-header__cart .header-cart__item,
  html[lang^="he"] #cart.site-header__cart .header-cart__item {
    direction: rtl;
    grid-template-columns: 78px minmax(0, 1fr) 24px;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__image,
  body[dir="rtl"] #cart.site-header__cart .header-cart__image,
  html[lang^="he"] #cart.site-header__cart .header-cart__image {
    grid-column: 1;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__info,
  body[dir="rtl"] #cart.site-header__cart .header-cart__info,
  html[lang^="he"] #cart.site-header__cart .header-cart__info {
    grid-column: 2;
    text-align: right;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__action,
  body[dir="rtl"] #cart.site-header__cart .header-cart__action,
  html[lang^="he"] #cart.site-header__cart .header-cart__action {
    grid-column: 3;
    justify-self: start;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__model,
  body[dir="rtl"] #cart.site-header__cart .header-cart__model,
  html[lang^="he"] #cart.site-header__cart .header-cart__model,
  html[dir="rtl"] #cart.site-header__cart .header-cart__name,
  body[dir="rtl"] #cart.site-header__cart .header-cart__name,
  html[lang^="he"] #cart.site-header__cart .header-cart__name,
  html[dir="rtl"] #cart.site-header__cart .header-cart__meta,
  body[dir="rtl"] #cart.site-header__cart .header-cart__meta,
  html[lang^="he"] #cart.site-header__cart .header-cart__meta,
  html[dir="rtl"] #cart.site-header__cart .header-cart__summary,
  body[dir="rtl"] #cart.site-header__cart .header-cart__summary,
  html[lang^="he"] #cart.site-header__cart .header-cart__summary {
    direction: rtl;
    text-align: right;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__action-menu,
  body[dir="rtl"] #cart.site-header__cart .header-cart__action-menu,
  html[lang^="he"] #cart.site-header__cart .header-cart__action-menu {
    right: auto;
    left: 0;
    direction: rtl;
    text-align: right;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__action-link,
  body[dir="rtl"] #cart.site-header__cart .header-cart__action-link,
  html[lang^="he"] #cart.site-header__cart .header-cart__action-link {
    direction: rtl;
    text-align: right;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__buy-row,
  body[dir="rtl"] #cart.site-header__cart .header-cart__buy-row,
  html[lang^="he"] #cart.site-header__cart .header-cart__buy-row,
  html[dir="rtl"] #cart.site-header__cart .header-cart__qty,
  body[dir="rtl"] #cart.site-header__cart .header-cart__qty,
  html[lang^="he"] #cart.site-header__cart .header-cart__qty {
    direction: rtl;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__qty-input,
  body[dir="rtl"] #cart.site-header__cart .header-cart__qty-input,
  html[lang^="he"] #cart.site-header__cart .header-cart__qty-input {
    direction: ltr;
    text-align: center;
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__qty-btn i,
  body[dir="rtl"] #cart.site-header__cart .header-cart__qty-btn i,
  html[lang^="he"] #cart.site-header__cart .header-cart__qty-btn i {
    transform: scaleX(-1);
  }

  html[dir="rtl"] #checkout-cart .cart-theme-qty-btn i,
  body[dir="rtl"] #checkout-cart .cart-theme-qty-btn i,
  html[lang^="he"] #checkout-cart .cart-theme-qty-btn i,
  html[dir="rtl"] #checkout-simple-builder .cart-theme-qty-btn i,
  body[dir="rtl"] #checkout-simple-builder .cart-theme-qty-btn i,
  html[lang^="he"] #checkout-simple-builder .cart-theme-qty-btn i {
    transform: scaleX(-1);
  }

  html[dir="rtl"] #cart.site-header__cart .header-cart__price strong,
  body[dir="rtl"] #cart.site-header__cart .header-cart__price strong,
  html[lang^="he"] #cart.site-header__cart .header-cart__price strong,
  html[dir="rtl"] #cart.site-header__cart .header-cart__summary strong,
  body[dir="rtl"] #cart.site-header__cart .header-cart__summary strong,
  html[lang^="he"] #cart.site-header__cart .header-cart__summary strong {
    direction: ltr;
    unicode-bidi: isolate-override;
    text-align: left;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"],
  body[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"],
  html[lang^="he"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] {
    position: relative !important;
    display: block !important;
    direction: rtl !important;
    overflow: hidden !important;
  }

  html[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] input,
  html[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .form-control,
  body[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] input,
  body[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .form-control,
  html[lang^="he"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] input,
  html[lang^="he"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .form-control {
    width: 100% !important;
    padding-right: 14px !important;
    padding-left: 52px !important;
    border-radius: 6px !important;
    text-align: right !important;
  }

  html[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] button,
  html[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .btn,
  body[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] button,
  body[dir="rtl"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .btn,
  html[lang^="he"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] button,
  html[lang^="he"] .mobile-search-panel .site-live-search form.input-group[action*="common/search"] .btn {
    position: absolute !important;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    background: transparent !important;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] #top.site-topbar .site-topbar__inner,
  body[dir="rtl"] #top.site-topbar .site-topbar__inner,
  html[lang^="he"] #top.site-topbar .site-topbar__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
    direction: ltr !important;
  }

  html[dir="rtl"] #top.site-topbar .site-topbar__tools,
  body[dir="rtl"] #top.site-topbar .site-topbar__tools,
  html[lang^="he"] #top.site-topbar .site-topbar__tools {
    grid-column: 1 !important;
    justify-self: start !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    justify-content: flex-start !important;
    direction: rtl !important;
  }

  html[dir="rtl"] #top.site-topbar .site-topbar__links,
  body[dir="rtl"] #top.site-topbar .site-topbar__links,
  html[lang^="he"] #top.site-topbar .site-topbar__links {
    grid-column: 2 !important;
    justify-self: end !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    justify-content: flex-end !important;
    direction: rtl !important;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] #top.site-topbar #form-language,
  body[dir="rtl"] #top.site-topbar #form-language,
  html[lang^="he"] #top.site-topbar #form-language,
  html[dir="rtl"] #top.site-topbar #form-language .dropdown,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown,
  html[lang^="he"] #top.site-topbar #form-language .dropdown {
    position: relative !important;
  }

  html[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle,
  html[lang^="he"] #top.site-topbar #form-language .dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    height: 24px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    vertical-align: top !important;
  }

  html[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle img,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle img,
  html[lang^="he"] #top.site-topbar #form-language .dropdown-toggle img {
    display: block !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    margin: 0 !important;
    vertical-align: middle !important;
  }

  html[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle span,
  html[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle i,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle span,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown-toggle i,
  html[lang^="he"] #top.site-topbar #form-language .dropdown-toggle span,
  html[lang^="he"] #top.site-topbar #form-language .dropdown-toggle i {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  html[dir="rtl"] #top.site-topbar #form-language .dropdown-menu,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown-menu,
  html[lang^="he"] #top.site-topbar #form-language .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
    inset: auto auto auto 0 !important;
    transform: none !important;
    min-width: 112px !important;
    max-width: calc(100vw - 28px) !important;
    text-align: right !important;
    z-index: 5050 !important;
  }

  html[dir="rtl"] #top.site-topbar #form-language .dropdown-menu .dropdown-item,
  body[dir="rtl"] #top.site-topbar #form-language .dropdown-menu .dropdown-item,
  html[lang^="he"] #top.site-topbar #form-language .dropdown-menu .dropdown-item {
    justify-content: flex-start !important;
    direction: rtl !important;
    text-align: right !important;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] #top.site-topbar .site-topbar__inner,
  body[dir="rtl"] #top.site-topbar .site-topbar__inner,
  html[lang^="he"] #top.site-topbar .site-topbar__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: 24px !important;
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    min-height: 24px !important;
    width: 100% !important;
    direction: ltr !important;
  }

  html[dir="rtl"] #top.site-topbar .site-topbar__tools,
  body[dir="rtl"] #top.site-topbar .site-topbar__tools,
  html[lang^="he"] #top.site-topbar .site-topbar__tools {
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: start !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-width: 0 !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl !important;
  }

  html[dir="rtl"] #top.site-topbar .site-topbar__links,
  body[dir="rtl"] #top.site-topbar .site-topbar__links,
  html[lang^="he"] #top.site-topbar .site-topbar__links {
    display: flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    min-width: 0 !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl !important;
  }

  html[dir="rtl"] #top.site-topbar .site-topbar__phone,
  body[dir="rtl"] #top.site-topbar .site-topbar__phone,
  html[lang^="he"] #top.site-topbar .site-topbar__phone {
    display: inline-flex !important;
    align-items: center !important;
    height: 24px !important;
    line-height: 1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
}

/* Mobile product cards: keep title and action rows aligned. */
@media (max-width: 767.98px) {
    html[dir="rtl"] .product-thumb,
    body[dir="rtl"] .product-thumb,
    html[lang^="he"] .product-thumb {
        --product-thumb-title-lines: 2;
    }

    @container (max-width: 239px) {
        html[dir="rtl"] .product-thumb,
        body[dir="rtl"] .product-thumb,
        html[lang^="he"] .product-thumb {
            --product-thumb-title-lines: 1;
        }

        html[dir="rtl"] .product-thumb .product-thumb-meta,
        body[dir="rtl"] .product-thumb .product-thumb-meta,
        html[lang^="he"] .product-thumb .product-thumb-meta {
            min-height: 36px;
            align-content: flex-start;
        }
    }

    @container (min-width: 240px) {
        html[dir="rtl"] .product-thumb,
        body[dir="rtl"] .product-thumb,
        html[lang^="he"] .product-thumb {
            --product-thumb-title-lines: 3;
        }
    }
}

/* Mobile header logo: keep mobile overrides at the end of the CSS file. */
@media (max-width: 575.98px) {
    html[dir="rtl"] #logo.site-header__logo,
    body[dir="rtl"] #logo.site-header__logo,
    html[lang^="he"] #logo.site-header__logo {
        width: 100%;
        display: flex;
        justify-content: center;
        text-align: center;
    }

    html[dir="rtl"] #logo.site-header__logo a,
    body[dir="rtl"] #logo.site-header__logo a,
    html[lang^="he"] #logo.site-header__logo a {
        width: min(96vw, 350px);
        max-width: 100%;
        display: flex;
        justify-content: center;
    }

    html[dir="rtl"] #logo.site-header__logo img,
    body[dir="rtl"] #logo.site-header__logo img,
    html[lang^="he"] #logo.site-header__logo img {
        width: min(96vw, 350px) !important;
        max-width: 100% !important;
        max-height: 96px !important;
        height: auto !important;
    }
}

/* Mobile RTL zoom: allow browser panning after pinch-zoom without changing slider swipes. */
@media (max-width: 767.98px) {
    html[dir="rtl"],
    body[dir="rtl"],
    html[lang^="he"],
    html[lang^="he"] body,
    html[dir="rtl"] #container,
    body[dir="rtl"] #container,
    html[lang^="he"] #container,
    html[dir="rtl"] main,
    body[dir="rtl"] main,
    html[lang^="he"] main,
    html[dir="rtl"] #content,
    body[dir="rtl"] #content,
    html[lang^="he"] #content {
        overscroll-behavior-x: auto;
        touch-action: pan-x pan-y pinch-zoom;
    }
}

@media (max-width: 767.98px) {
    html[dir="rtl"] .mobile-search-panel .site-live-search__close,
    body[dir="rtl"] .mobile-search-panel .site-live-search__close,
    html[lang^="he"] .mobile-search-panel .site-live-search__close {
        right: auto !important;
        left: 10px !important;
    }
}
