/* DoTextOK / Protostar / JoomShopping */

/* ФОН КАТАЛОГА */

body:has(.jshop_list_product) {
    background: #FFFFFF !important;
}
body:has(.jshop_list_product) .body {
    background: transparent !important;
}
body .jshop_list_product {
    background: transparent !important;
    padding: 12px 4px 22px;
}
html[lang="ru-ru"] .jshop_list_product {
    background: linear-gradient(
        110deg,
        rgba(20, 126, 194, .16),
        rgba(212, 26, 108, .16)
    ) !important;
    border-radius: 10px;
}

/* КАРТОЧКИ КАТАЛОГА */

body .jshop_list_product .block_product {
    box-sizing: border-box !important;
    padding: 10px !important;
    margin-bottom: 14px !important;
}
body .jshop_list_product .product:not(.one_in_row) {
    position: relative !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #FFFFFF !important;
    border: 0 !important;
    border-radius: 9px !important;
    box-shadow: 0 2px 12px rgba(68, 66, 60, .09) !important;
    transition: transform .18s ease, box-shadow .18s ease;
}
body .jshop_list_product .product:not(.one_in_row):hover,
body .jshop_list_product .product:not(.one_in_row):focus-within {
    transform: translateY(-2px);
    box-shadow: 0 6px 19px rgba(68, 66, 60, .16) !important;
}
body .jshop_list_product .product:not(.one_in_row):focus-within {
    outline: 2px solid #147EC2;
    outline-offset: 3px;
}

/* Названия */

body .jshop_list_product .product:not(.one_in_row) > h2.product_title {
    position: static !important;
    display: block !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 87px !important;
    margin: 0 !important;
    padding: 13px 14px 10px !important;
    text-align: left !important;
    background: #FFFFFF !important;
    border: 0 !important;
}
body .jshop_list_product .product:not(.one_in_row) > h2.product_title > a {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    font-family: "Golos Text", Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.22 !important;
    color: #44423C !important;
    text-align: left !important;
    text-decoration: none !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none !important;
}
body .jshop_list_product .product:not(.one_in_row) .dt-title-ru {
    display: block !important;
    order: 1;
    margin: 0 0 4px !important;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.22 !important;
    color: #44423C !important;
}
body .jshop_list_product .product:not(.one_in_row) .dt-title-en {
    display: block !important;
    order: 2;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: #72838D !important;
    overflow-wrap: anywhere !important;
}
body .jshop_list_product .product:not(.one_in_row) h2.product_title.hidden {
    display: none !important;
}
body .jshop_list_product .product:not(.one_in_row) > h2.product_title > a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 7;
    cursor: pointer;
}

/* Изображения без обрезки */

body .jshop_list_product .product:not(.one_in_row) > .image,
body .jshop_list_product .product:not(.one_in_row) > .image > .image_block {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: #FFFFFF !important;
}
body .jshop_list_product .product:not(.one_in_row) .image_block > a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
body .jshop_list_product .product:not(.one_in_row) .image_block img.jshop_img {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 0 !important;
}

/* Дополнительные элементы скрыты только внутри сетки */

body .jshop_list_product .product:not(.one_in_row) > .mainblock,
body .jshop_list_product .product:not(.one_in_row) > .buttons,
body .jshop_list_product .product:not(.one_in_row) > .review_mark,
body .jshop_list_product .product:not(.one_in_row) .jshop_price_block,
body .jshop_list_product .product:not(.one_in_row) .jshop_price,
body .jshop_list_product .product:not(.one_in_row) .description,
body .jshop_list_product .product:not(.one_in_row) .button_buy,
body .jshop_list_product .product:not(.one_in_row) .button_detail {
    display: none !important;
}

/* СТРАНИЦА ТОВАРА: КНОПКА ПОКУПКИ */

body .productfull form[name="product"] input[type="submit"],
body .productfull form[name="product"] button[type="submit"],
body .productfull input[type="submit"][value="В корзину"],
body .productfull input[type="submit"][value="Купить"] {
    font-family: "Golos Text", Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    min-height: 46px !important;
    min-width: 145px !important;
    padding: 10px 16px !important;
    box-sizing: border-box;
    border-radius: 6px !important;
    background: #147EC2 !important;
    background-image: none !important;
    border: 1px solid #147EC2 !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
    box-shadow: none !important;
    cursor: pointer;
}
body .productfull form[name="product"] input[type="submit"]:hover,
body .productfull form[name="product"] button[type="submit"]:hover,
body .productfull input[type="submit"][value="В корзину"]:hover,
body .productfull input[type="submit"][value="Купить"]:hover {
    background: #126BA4 !important;
    border-color: #126BA4 !important;
    color: #FFFFFF !important;
}

/* ФАЙЛЫ И ИНСТРУКЦИИ */

body #list_product_demofiles {
    width: 100%;
    max-width: 355px;
    margin: 26px 0 24px !important;
    padding: 0 !important;
    box-sizing: border-box;
}
body #list_product_demofiles .list_product_demo {
    margin: 0 !important;
    padding: 0 !important;
}
body #list_product_demofiles .list_product_demo div:has(> span.descr):has(> span.download) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 145px !important;
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 8px !important;
    min-height: 44px;
    margin: 0 0 12px !important;
    padding: 0 !important;
}
body #list_product_demofiles span.descr {
    display: block !important;
    min-width: 0;
    margin: 0 !important;
    font-family: "Golos Text", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    color: #44423C !important;
    overflow-wrap: anywhere;
}
body #list_product_demofiles span.download {
    display: block !important;
    width: 145px;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}
body #list_product_demofiles span.download a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 145px;
    max-width: 100%;
    min-height: 44px;
    padding: 8px 12px !important;
    box-sizing: border-box;
    border-radius: 6px !important;
    background: #F7F6F2 !important;
    background-image: none !important;
    border: 2px solid #147EC2 !important;
    color: #147EC2 !important;
    font-family: "Golos Text", Arial, sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer;
}
body #list_product_demofiles span.download a:hover,
body #list_product_demofiles span.download a:focus {
    background: #147EC2 !important;
    border-color: #147EC2 !important;
    color: #FFFFFF !important;
}

/* ШАПКА И ГЛАВНОЕ МЕНЮ */

.header,
.navigation {
    background: #FFFFFF !important;
}
.navigation .nav > li > a {
    color: #000000 !important;
    text-shadow: none !important;
}
.header .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}
.header .header-inner::before,
.header .header-inner::after {
    display: none;
}
.header .brand {
    float: none !important;
    min-width: 0;
    max-width: 100%;
    margin: 0;
}
.header .brand img {
    display: block;
    max-width: 100%;
    height: auto;
}
.header .dt-header-tools {
    float: none !important;
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 100%;
    margin: 0 0 0 auto;
}
.dt-header-tools,
.dt-header-tools * {
    box-sizing: border-box;
}

/* Языки */

.dt-header-tools .dt-header-languages {
    order: 2;
}
.dt-header-tools .dt-header-languages .mod-languages,
.dt-header-tools .dt-header-languages ul {
    margin: 0 !important;
    padding: 0 !important;
}
.dt-header-tools .dt-header-languages ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.dt-header-tools .dt-header-languages li {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}
.dt-header-tools .dt-header-languages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 8px;
}
.dt-header-tools .dt-header-languages img {
    display: block;
    width: 28px !important;
    height: 19px !important;
    max-width: none;
    object-fit: fill;
}

/* Кабинет и корзина */

.dt-header-tools .dt-header-panel {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    max-width: 100%;
}
.dt-header-tools .dt-header-account {
    min-width: 0;
}
.dt-header-tools .dt-header-cart {
    flex-shrink: 0;
    padding-left: 12px;
    border-left: 1px solid #E3E3E3;
}
.dt-header-tools .dt-account-login {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.dt-header-tools .dt-account-login li,
.dt-header-tools .dt-account-links li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.dt-header-tools .dt-account-login a,
.dt-header-tools .dt-account-toggle,
.dt-header-tools .dt-cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 8px;
    font-family: "Golos Text", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    background: transparent;
}
.dt-header-tools .dt-account-login a,
.dt-header-tools .dt-account-toggle {
    color: #147EC2;
}
.dt-header-tools .dt-cart-link {
    color: #D41A6C;
    white-space: nowrap;
}
.dt-header-tools .dt-account-login a:hover,
.dt-header-tools .dt-cart-link:hover {
    text-decoration: underline;
}
.dt-header-tools .dt-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    min-height: 21px;
    padding: 2px 6px;
    border-radius: 20px;
    color: #FFFFFF;
    background: #D41A6C;
    font-size: 12px;
    line-height: 1;
}
.dt-header-tools #jshop_module_cart {
    width: auto;
    margin: 0;
    padding: 0;
}
.dt-header-tools #jshop_summ_product[hidden] {
    display: none !important;
}

/* Меню после авторизации */

.dt-header-tools .dt-account-dropdown {
    position: relative;
}
.dt-header-tools .dt-account-toggle {
    cursor: pointer;
    list-style: none;
}
.dt-header-tools .dt-account-toggle::-webkit-details-marker {
    display: none;
}
.dt-header-tools .dt-account-toggle::after {
    content: "▾";
    margin-left: 2px;
}
.dt-header-tools .dt-account-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 6px !important;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    width: 240px;
    max-width: calc(100vw - 40px);
    border: 1px solid #E3E3E3;
    border-radius: 6px;
    background: #FFFFFF;
    box-shadow: 0 6px 20px rgba(68, 66, 60, .12);
}
.dt-header-tools .dt-account-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px;
    color: #44423C;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.dt-header-tools .dt-account-links a:hover {
    background: #F7F6F2;
}

/* МОБИЛЬНАЯ ШАПКА */

@media (max-width: 767px) {
    .header {
        margin-bottom: 6px;
    }
    .header .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 96px;
        align-items: center;
        gap: 4px 10px;
    }
    .header .brand {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-width: 280px;
        padding: 0;
        margin: 0;
    }
    .header .brand img {
        width: 100%;
        height: auto;
    }
    .header .dt-header-tools {
        display: contents;
    }
    .header .dt-header-tools .dt-header-languages {
        grid-column: 2;
        grid-row: 1;
        order: initial;
        width: 96px;
    }
    .dt-header-tools .dt-header-languages ul {
        justify-content: flex-end;
        gap: 0;
    }
    .dt-header-tools .dt-header-languages a {
        width: 48px;
        min-height: 48px;
        padding: 8px;
    }
    .header .dt-header-tools .dt-header-panel {
        grid-column: 1 / -1;
        grid-row: 2;
        order: initial;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
        margin: 0;
    }
    .dt-header-tools .dt-header-account {
        flex: 1 1 auto;
        min-width: 0;
    }
    .dt-header-tools .dt-header-cart {
        padding-left: 6px;
    }
    .dt-header-tools .dt-account-login a,
    .dt-header-tools .dt-account-toggle,
    .dt-header-tools .dt-cart-link {
        min-height: 48px;
        padding: 8px 4px;
        gap: 6px;
        font-size: 14px;
    }
    .dt-header-tools .dt-account-login a {
        overflow-wrap: anywhere;
    }
    .dt-header-tools .dt-account-links {
        left: 0;
        right: auto;
    }
    .navigation {
        padding: 0;
        margin-bottom: 12px;
    }
    .navigation > .navbar {
        min-height: 48px;
        margin: 0;
    }
    .navigation .navbar .btn-navbar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        box-sizing: border-box;
        min-width: 48px;
        min-height: 48px;
        padding: 10px;
        margin: 0;
    }
    .navigation .navbar .btn-navbar .icon-bar {
        margin: 0;
    }
}

/* АДАПТАЦИЯ КАРТОЧЕК И ИНСТРУКЦИЙ */

@media (max-width: 768px) {
    body .jshop_list_product .block_product {
        padding: 8px !important;
        margin-bottom: 10px !important;
    }
    body .jshop_list_product .product:not(.one_in_row) > h2.product_title {
        min-height: 0 !important;
        padding: 12px 12px 9px !important;
    }
    body .jshop_list_product .product:not(.one_in_row) .dt-title-ru,
    body .jshop_list_product .product:not(.one_in_row) > h2.product_title > a {
        font-size: 17px !important;
    }
    body .jshop_list_product .product:not(.one_in_row) .dt-title-en {
        font-size: 12px !important;
    }
}
@media (max-width: 480px) {
    body .jshop_list_product {
        padding: 9px 2px 18px;
    }
    body .jshop_list_product .block_product {
        padding: 7px 4px !important;
        margin-bottom: 7px !important;
    }
    body .jshop_list_product .product:not(.one_in_row) {
        border-radius: 8px !important;
    }
    body #list_product_demofiles {
        max-width: 100%;
    }
    body #list_product_demofiles .list_product_demo div:has(> span.descr):has(> span.download) {
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 7px !important;
        margin-bottom: 16px !important;
    }
}

/* СЕТКА ДВУХ КАТАЛОГОВ В РУССКОЙ ВЕРСИИ САЙТА */
/* /category/view/1 и /category/view/4 */
/* Компьютер: 4 колонки. Телефон: 1 колонка. */

html[lang="ru-ru"] body .jshop_list_product:has(
    > form:is(
        [action="/category/view/1"],
        [action="/category/view/4"]
    )
) {
    --dt-catalog-columns: 4;
    padding: 20px;
}

html[lang="ru-ru"] body .jshop_list_product:has(
    > form:is(
        [action="/category/view/1"],
        [action="/category/view/4"]
    )
) > .list_product {
    display: grid !important;
    grid-template-columns: repeat(
        var(--dt-catalog-columns),
        minmax(0, 1fr)
    );
    gap: 20px;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    align-items: start;
}

/* Отменяем старую группировку по три */

html[lang="ru-ru"] body .jshop_list_product:has(
    > form:is(
        [action="/category/view/1"],
        [action="/category/view/4"]
    )
) > .list_product > .list_product_row {
    display: contents !important;
}

/* Служебные элементы старой сетки */

html[lang="ru-ru"] body .jshop_list_product:has(
    > form:is(
        [action="/category/view/1"],
        [action="/category/view/4"]
    )
) :is(.list_product, .list_product_row)::before,
html[lang="ru-ru"] body .jshop_list_product:has(
    > form:is(
        [action="/category/view/1"],
        [action="/category/view/4"]
    )
) :is(.list_product, .list_product_row)::after {
    display: none !important;
}

/* Равные горизонтальные и вертикальные промежутки */

html[lang="ru-ru"] body .jshop_list_product:has(
    > form:is(
        [action="/category/view/1"],
        [action="/category/view/4"]
    )
) .list_product_row > .block_product {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 767px) {
    html[lang="ru-ru"] body .jshop_list_product:has(
        > form:is(
            [action="/category/view/1"],
            [action="/category/view/4"]
        )
    ) {
        --dt-catalog-columns: 1;
        padding: 12px;
    }
}

/* Уменьшение движения по настройкам устройства */

@media (prefers-reduced-motion: reduce) {
    body .jshop_list_product .product:not(.one_in_row) {
        transition: none !important;
        transform: none !important;
    }
}