/* ============================================================
   НАВИГАЦИЯ: уменьшенные отступы для русского языка
   ============================================================ */
html[lang="ru"] .primary-navigation .nav > li,
html[lang="ru"] .navbar-primary .nav > li {
    padding: 0 1.1em !important;
}

/* ============================================================
   КОРЗИНА: строка действий (кнопка очистить + сумма)
   ============================================================ */
.cart-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0;
}

@media (max-width: 480px) {
    .cart-actions-row {
        flex-direction: column;
        align-items: stretch;
    }
    #clear-cart-btn {
        width: 100%;
        text-align: center;
    }
}

/* Уменьшаем высоту строк таблицы корзины ~на 20% */
table.cart td,
table.cart th {
    padding: 0.6rem !important;
}
/* Картинка и цена/сумма — по центру ячейки */
table.cart td.product-thumbnail,
table.cart td.product-price,
table.cart td.product-subtotal {
    text-align: center;
}
/* Картинка — по центру по вертикали */
table.cart td.product-thumbnail {
    vertical-align: middle !important;
}
table.cart td.product-thumbnail a {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Маленько больше картинка */
table.cart td.product-thumbnail .cart-product-img {
    width: 74px !important;
    height: 74px !important;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}
/* Колонка Количество — по центру по горизонту */
table.cart td.product-quantity {
    text-align: center;
}
table.cart td.product-quantity .quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Обёртка инпута с кнопками-спинерами */
table.cart td.product-quantity .qty-spin-wrapper {
    position: relative;
    display: inline-block;
}
table.cart td.product-quantity .qty-spin-wrapper input.qty {
    padding-right: 17px !important;
    -webkit-appearance: textfield !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    width: 70px;
    text-align: left;
}
table.cart td.product-quantity .qty-spin-wrapper input.qty::-webkit-inner-spin-button,
table.cart td.product-quantity .qty-spin-wrapper input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0;
}
.qty-spin-btns {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 16px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #d0d0d0;
}
.qty-spin-up,
.qty-spin-down {
    flex: 1;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    color: #555;
}
.qty-spin-up::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 4px solid #555;
    display: block;
}
.qty-spin-down::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid #555;
    display: block;
}
.qty-spin-up {
    border-bottom: 1px solid #d0d0d0;
    border-radius: 0 2px 0 0;
}
.qty-spin-down {
    border-radius: 0 0 2px 0;
}
.qty-spin-up:hover,
.qty-spin-down:hover {
    background: #ddd;
}
.qty-spin-up:hover::before {
    border-bottom-color: #333;
}
.qty-spin-down:hover::before {
    border-top-color: #333;
}

/* Глобально для кнопок: убираем черный browser-outline и заменяем на акцент темы */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.button,
a.button,
.btn {
    -webkit-tap-highlight-color: transparent;
}

button:focus,
button:focus-visible,
button:active,
input[type="button"]:focus,
input[type="button"]:focus-visible,
input[type="button"]:active,
input[type="submit"]:focus,
input[type="submit"]:focus-visible,
input[type="submit"]:active,
input[type="reset"]:focus,
input[type="reset"]:focus-visible,
input[type="reset"]:active,
.button:focus,
.button:focus-visible,
.button:active,
a.button:focus,
a.button:focus-visible,
a.button:active,
.btn:focus,
.btn:focus-visible,
.btn:active {
    outline: none !important;
    border-color: #D6026C !important;
    box-shadow: 0 0 0 0.18rem rgba(214, 2, 108, 0.18) !important;
}

/* Спинеры на странице товара — только на мобайльных */
.product-qty-spin-wrapper {
    display: inline-block;
}
.qty-input-inner {
    position: relative;
    display: inline-block;
}
.product-qty-spin-btns {
    display: none; /* скрыто на десктопе */
}
@media (max-width: 767px) {
    .product-qty-spin-wrapper input#quantity-input {
        padding-right: 17px !important;
        -webkit-appearance: textfield !important;
        -moz-appearance: textfield !important;
        appearance: textfield !important;
    }
    .product-qty-spin-wrapper input#quantity-input::-webkit-inner-spin-button,
    .product-qty-spin-wrapper input#quantity-input::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
        margin: 0;
    }
    .product-qty-spin-btns {
        display: flex;
        position: absolute;
        right: 1px;
        top: 1px;
        bottom: 1px;
        width: 16px;
        flex-direction: column;
        border-left: 1px solid #d0d0d0;
    }
    .product-qty-spin-up,
    .product-qty-spin-down {
        flex: 1;
        background: #f0f0f0;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        line-height: 1;
    }
    .product-qty-spin-up::before {
        content: '';
        width: 0;
        height: 0;
        border-left: 3px solid transparent;
        border-right: 3px solid transparent;
        border-bottom: 4px solid #555;
        display: block;
    }
    .product-qty-spin-down::before {
        content: '';
        width: 0;
        height: 0;
        border-left: 3px solid transparent;
        border-right: 3px solid transparent;
        border-top: 4px solid #555;
        display: block;
    }
    .product-qty-spin-up {
        border-bottom: 1px solid #d0d0d0;
        border-radius: 0 2px 0 0;
    }
    .product-qty-spin-down {
        border-radius: 0 0 2px 0;
    }
    .product-qty-spin-up:hover,
    .product-qty-spin-down:hover {
        background: #ddd;
    }
    .product-qty-spin-up:hover::before {
        border-bottom-color: #333;
    }
    .product-qty-spin-down:hover::before {
        border-top-color: #333;
    }
}
    /* max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    transition:
        max-height 0.7s ease,
        opacity 0.6s ease,
        padding 0.4s ease,
        margin-top 0.4s ease;
} */

.form-row.place-order.show {
    max-height: 300px;
    /* любое достаточное значение */
    opacity: 1;
    padding-top: 0px;
    padding-bottom: 10px;
    margin-top: 0px;
}




.delivery-icon {
    float: left;
    width: 50px;
    height: 50px;
    margin-right: 10px;
    margin-bottom: 5px;
    object-fit: cover;
    float: left !important;
    max-height: none !important;
}

.delivery-wrapper {
    overflow: hidden;/
}

.delivery-text {
    display: block;
    text-align: justify;
    /* выравнивание по ширине */
}



button.checkout-button {
    background-color: #0063d1;
    /* Цвет ссылки */
    color: #fff;
    /* Цвет текста */
    padding: 0.867em;
    margin-bottom: 0.875em;
    font-size: 0.938em;
    font-weight: 500;
    letter-spacing: -0.5px;
    border-radius: 10.4380em;
    text-align: center;
    text-decoration: none;
    border: none;
    display: inline-block;
    /* <-- вместо block */
    cursor: pointer;
}












/* Везде — белый текст */
.shop-control-bar form select.orderby {
    color: #fff;
    background-color: transparent;
}

/* Опции dropdown — чёрные */
.shop-control-bar form select.orderby option {
    color: #000;
    background-color: #fff;
}















/* Обёртка Tom Select */
.tom-select+.ts-wrapper {
    display: inline-block;
    max-width: 100%;
    height: 45px;
    padding: 6px 6px 6px 20px;
    line-height: 1.25;
    color: #464a4c;
    vertical-align: middle;
    /* background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 20px center; */
    background-size: 8px 10px;
    border: 1px solid #ebebeb;
    border-radius: 0.25rem;
    box-sizing: border-box;
    width: 100%;
}

/* Внутренний контрол Tom Select */
.tom-select+.ts-wrapper .ts-control {
    height: 100%;
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 16px;
    box-shadow: none;
    padding-bottom: 10px;
}

/* Фокус */
.tom-select+.ts-wrapper.focus {
    border-color: #5cb3fd;
    outline: none;
}

/* Стрелка */
.tom-select+.ts-wrapper .ts-control::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 10px;
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat center;
    pointer-events: none;
}

/* Текст в селекте */
.tom-select .ts-dropdown-content {
    font-size: 16px;
}



.ts-control {
    border: 1px solid #ccc;
    border-radius: 4px;
    min-height: 40px;
    padding: 6px 10px;
    background-color: #fff;
    font-size: 14px;
}

.ts-dropdown {
    border: 1px solid #ccc;
    border-radius: 4px;
}









.brands-carousel .slick-list {
    padding: 1.313em 0px !important;
    overflow: hidden;
}

.widget-area .widget {
    font-size: 0.975em;
}





.products .product {
    position: relative;
    z-index: 1;
}

.products .product .hover-area {
    opacity: 0;
    z-index: auto;
    transition: all 0.25s ease;
    pointer-events: none;
    position: absolute;
    left: -2px;
    right: -2px;
    top: 99%;
    transform: translate(0, 20px);
}

.products .product:hover {
    z-index: 20;
}

.products .product:hover .hover-area {
    opacity: 1;
    z-index: 1000;
    transform: translate(0, 0);
    pointer-events: auto;
}


.single-product .single-product-meta .brand img {
    max-width: 100px;
}


.single-product .single-product-meta .ribbon {

    max-width: 170px;
}


.ribbon span {
    font-size: 1em;
    /* padding-left: 0.571em; */
    position: relative;
    line-height: 1.9em;
    margin-left: 5px;
}


.delivery-icon.no-size {
    width: auto !important;
    height: auto !important;
}




.vidguk {
    padding-left: 10.875em;
    padding-right: 10.875em;

}







.stars a {
    color: #ccc;
    font-size: 32px;
    text-decoration: none;
    margin-right: 5px;
    cursor: pointer;
    transition: color 0.2s;
}

.stars a.active {
    color: gold;
}




.text-center-cell {
    text-align: center;
}







#toast-container {
    position: fixed !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999999 !important;
    padding-left: 4.6875% !important;
    padding-right: 4.6875% !important;
    text-align: left;
    transition: top 0.2s ease-in-out;
}

#toast-container.toast-top-full-width.toast-position-static {
    top: 175px !important;
    /* по умолчанию */
}

/* Когда открыт модал — показываем тоастр по центру сверху */
body.modal-open #toast-container.toast-top-full-width {
    top: 20px !important;
}

#toast-container.toast-top-full-width.toast-position-sticky {
    top: calc(var(--sticky-header-height, 62px) + 10px) !important;
}

#toast-container>.toast {
    color: #fff !important;
    border-left: 0.618em solid rgba(0, 0, 0, 0.15) !important;
    padding: 1em 1.618em !important;
    border-radius: 4px !important;
    width: 100% !important;
    max-width: none !important;
    box-shadow: none !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    text-align: left !important;
    background-image: none !important;
    position: relative !important;
    opacity: 1 !important;

}

#toast-container>.toast:before {
    display: none !important;
    content: none !important;
}

/* Индивидуальные цвета для типов сообщений */
.toast-success {
    background-color: #3D9CD2 !important;
    /* синий */
}

.toast-error {
    background-color: rgb(204, 0, 0) !important;
    /* красный */
}

.toast-warning {
    background-color: #f57c00 !important;
    /* оранжевый */
}

.toast-info {
    background-color: #1976d2 !important;
    /* синий, но отличающийся от success */
}














/* slider-v12.css */

/* slider-v12.css
   Высота от 170px (<=480) до 440px (десктоп).
   Подходит для background-image (cover). */

@media (max-width: 480px) {
    .site-content .home-v12-slider .slider-1 {
        height: 175px;
    }

    .site-content .home-v12-slider .slider-1 .caption {
        top: 71.3% !important;
        left: 73.4% !important;
    }

}


@media (max-width: 320px) {
    .site-content .home-v12-slider .slider-1 {
        height: 115px;
    }

    .site-content .home-v12-slider .slider-1 .caption {
        top: 67.3% !important;
        left: 60.4% !important;
    }


    .article .entry-header h1.entry-title a,
    article.post .entry-header h1.entry-title a {
        font-size: 14px;
        /* размер шрифта */
    }

    article .entry-header h1.entry-title,
    article.post .entry-header h1.entry-title {
        font-size: 0.563em;

    }
}


@media (max-width: 1200px) {

    .article .entry-header h1.entry-title,
    article.post .entry-header h1.entry-title {
        font-size: 1.163em;

    }

}


@media (max-width: 1025px) {
    .homev12-slider-with-banners .banners-block .banner-bg {
        display: none;
    }

    /* .section-products-carousel-tabs {
        display: none;
    } */

    #articles {
        display: none;
    }

    /* .banners-block column-2 {
    display: none;
  } */
}




@media (max-width: 767px) {
    .single-product .single-product-header {
        padding-bottom: 0px;
        margin-bottom: 0px;
    }
}





.my-toast-container {
    position: fixed !important;
    top: 20px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000000 !important;

    min-width: 300px !important;
    /* Минимальная ширина */
    max-width: 90vw !important;
    /* Максимальная ширина — не больше 90% ширины экрана */
    white-space: normal !important;
    /* Позволяет переносить текст */
    /* padding: 0 !important;     */
    /* Можно убрать лишние паддинги, если нужно */
}

/* Также можно увеличить ширину контента внутри */
.my-toast-container .swal2-toast {
    width: 100% !important;
    /* Чтобы занять всю ширину контейнера */
    white-space: normal !important;
    /* Разрешить перенос текста */
}



.add-to-cart_link {
    display: none !important;
    /* Скрыть по умолчанию */
}

@media (max-width: 1200px) {
    .add-to-cart_link {
        display: block !important;
        /* Показать на мобильных и планшетах */
        margin-bottom: .1em !important;
    }

    .hover-area {
        display: none !important;
    }

    .coupon {
        display: none !important;
    }


}

#cabinet_red {
    display: none;
}

@media (max-width: 1023px) {
    #cabinet_red {
        display: block;
    }
}

@media (max-width: 1590px) {
    .banners-block.column-2 .banner-bg {
        height: 400px !important;
        /* перебиваем inline */
        aspect-ratio: 1 / 1;
        /* делаем квадрат */
    }
}


@media (max-width: 1200px) {
    .banners-block.column-2 .banner-bg {
        height: 400px !important;
        /* перебиваем inline */
        aspect-ratio: 1 / 1;
        /* делаем квадрат */
    }
}

@media (max-width: 1590px) and (min-width: 1201px) {

    .homev6-slider-with-banners .banners-block,
    .homev12-slider-with-banners .banners-block {
        column-count: unset;
        /* убираем мультиколонки */
        column-gap: 0;
        display: flex;
        /* превращаем в flex */
        flex-wrap: wrap;
        /* чтобы переносились */
        gap: 20px;
        /* расстояние между баннерами */
    }

    .homev6-slider-with-banners .banners-block .banner,
    .homev12-slider-with-banners .banners-block .banner {
        flex: 1 1 calc(25% - 20px);
        /* 4 баннера в ряд */
        max-width: calc(25% - 20px);
    }

    .homev6-slider-with-banners .banners-block .banner-bg,
    .homev12-slider-with-banners .banners-block .banner-bg {
        height: 300px !important;
        /* твоя высота */
    }
}

@media (max-width: 1200px) {

    .homev6-slider-with-banners .banners-block,
    .homev12-slider-with-banners .banners-block {
        display: none;
        /* скрываем */
    }
}



@media (min-width: 576px) and (max-width: 1399px) {
    .site-content .home-v12-slider .slider-1 {
        height: 450px;
    }
}

@media (min-width: 576px) and (max-width: 1200px) {
    .site-content .home-v12-slider .slider-1 {
        height: 400px;
    }
}

@media (min-width: 576px) and (max-width: 992px) {
    .site-content .home-v12-slider .slider-1 {
        height: 350px;
    }
}




/* @media (max-width: 1590px) {
    .banners-block.column-2 {
        display: none;
    }
} */




/* @media (max-width: 1399px) {
    .site-content .home-v12-slider .slider-1 {
        height: 450px !important;
    }
}

 */













/* Контейнер Select2 */
.select2-container .select2-selection {
    display: inline-block;
    max-width: 100%;
    height: 40px !important;
    padding: 6px 20px 6px 12px;
    line-height: 1.25;
    color: #464a4c;
    vertical-align: middle;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 0.25rem;
    box-sizing: border-box;
    width: 100%;
    font-size: 16px;
    position: relative;
}

/* Фокус */
.select2-container--default.select2-container--focus .select2-selection {
    border-color: #5cb3fd;
    outline: none;
}

/* Текст в селекте */
.select2-container .select2-selection__rendered {
    font-size: 16px;
    line-height: 32px;
    padding-left: 0;
}

/* Стрелка */
/* Возвращаем стрелку Select2 */
.select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    /* дефолтная стрелка */
    border-style: solid;
    border-width: 5px 4px 0 4px;
}

/* Список опций */
.select2-container .select2-results__option {
    font-size: 16px;
}

/* Dropdown */
.select2-dropdown {
    border: 1px solid #ccc;
    border-radius: 4px;
}



.select2-selection__clear {
    display: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {

    top: 8px;

}



/* Новые цвета */

.stretched-row {
    background-color: #ba5688 !important;
}









/* Основной стиль */
#reset-filters,
#clear-cart-btn {
    background-color: #D6026C;
    /* основной цвет */
    color: #fff;
    border: 1px solid #D6026C;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Hover */
#reset-filters:hover,
#clear-cart-btn:hover {
    background-color: #f794bf;
}

/* Клик с миганием через анимацию */
#reset-filters:active,
#clear-cart-btn:active {
    animation: flashClick 0.5s;
}

@keyframes flashClick {
    0% {
        background-color: #D6026C;
        /* основной цвет */
    }

    50% {
        background-color: #D6026C;
        /* на полсекунды основной */
    }

    100% {
        background-color: #f794bf;
        /* возвращаем hover */
    }
}








/* Основной цвет кнопки поиска */
.navbar-search button.btn-primary {
    background-color: #D6026C;
    border: 1px solid #D6026C;
    color: #fff;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Hover */
.navbar-search button.btn-primary:hover {
    background-color: #eb499a;
}

/* Клик с миганием через анимацию */
.navbar-search button.btn-primary:active {
    animation: flashClickSearch 0.5s;
}

/* Анимация для кнопки поиска */
@keyframes flashClickSearch {
    0% {
        background-color: #ba5688;
    }

    50% {
        background-color: #ba5688;
    }

    100% {
        background-color: #f794bf;
    }
}





/* Со старого сайта */





@media (max-width: 1590px) {
    .banners-block.column-2 .banner-bg {
        height: 420px !important;
        /* перебиваем inline */

    }

    .homev12-slider-with-banners .banners-block .banner-bg {
        height: 230px !important;
    }


}


@media (max-width: 1365px) {

    .homev6-slider-with-banners .banners-block .banner-bg,
    .homev12-slider-with-banners .banners-block .banner-bg {
        height: 230px !important;
        /* твоя высота */
    }


}


@media (max-width: 1200px) {
    .banners-block.column-2 .banner-bg {
        height: 350px !important;
        /* перебиваем inline */

    }
}






@media (max-width: 1590px) and (min-width: 1365px) {

    .homev6-slider-with-banners .banners-block,
    .homev12-slider-with-banners .banners-block {
        column-count: unset;
        /* убираем мультиколонки */
        column-gap: 0;
        display: flex;
        /* превращаем в flex */
        flex-wrap: wrap;
        /* чтобы переносились */
        gap: 26px;
        /* расстояние между баннерами */
    }

    .homev6-slider-with-banners .banners-block .banner,
    .homev12-slider-with-banners .banners-block .banner {
        flex: 1 1 calc(25% - 20px);
        /* 4 баннера в ряд */
        max-width: calc(25% - 20px);
    }

    .homev6-slider-with-banners .banners-block .banner-bg,
    .homev12-slider-with-banners .banners-block .banner-bg {
        height: 230px !important;
        /* твоя высота */
    }
}


@media (max-width: 1365px) and (min-width: 1200px) {

    .homev6-slider-with-banners .banners-block,
    .homev12-slider-with-banners .banners-block {
        column-count: unset;
        /* убираем мультиколонки */
        column-gap: 0;
        display: flex;
        /* превращаем в flex */
        flex-wrap: wrap;
        /* чтобы переносились */
        gap: 26px;
        /* расстояние между баннерами */
    }

    .homev6-slider-with-banners .banners-block .banner,
    .homev12-slider-with-banners .banners-block .banner {
        flex: 1 1 calc(25% - 20px);
        /* 4 баннера в ряд */
        max-width: calc(25% - 20px);
    }

    .homev6-slider-with-banners .banners-block .banner-bg,
    .homev12-slider-with-banners .banners-block .banner-bg {
        height: 190px !important;
        /* твоя высота */
    }
}



@media (max-width: 1200px) {

    .homev6-slider-with-banners .banners-block,
    .homev12-slider-with-banners .banners-block {
        display: none;
        /* скрываем */
    }
}





@media (min-width: 576px) and (max-width: 1399px) {
    .site-content .home-v12-slider .slider-1 {
        height: 450px;
    }
}

@media (min-width: 576px) and (max-width: 1200px) {
    .site-content .home-v12-slider .slider-1 {
        height: 400px;
    }
}

@media (min-width: 576px) and (max-width: 992px) {
    .site-content .home-v12-slider .slider-1 {
        height: 350px;
    }
}



.callback-bt {
    background: #ba5688;
    border: 2px solid #ba5688;
    border-radius: 50%;
    box-shadow: 0 8px 10px rgba(186, 86, 136, .3);
    cursor: pointer;
    height: 58px;
    text-align: center;
    width: 58px;
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 9999;
    transition: .3s;
    -webkit-animation: hoverWave linear 1s infinite;
    animation: hoverWave linear 1s infinite;
    animation-duration: 3s
}

.callback-bt .text-call {
    height: 58px;
    width: 58px;
    border-radius: 50%;
    position: relative;
    overflow: hidden
}

.callback-bt .text-call span {
    text-align: center;
    color: #ba5688;
    opacity: 0;
    font-size: 0;
    position: absolute;
    right: 4px;
    top: 22px;
    line-height: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: opacity .3s linear;
    font-family: 'montserrat', Arial, Helvetica, sans-serif
}

.callback-bt .text-call:hover span {
    opacity: 1;
    font-size: 11px
}

.callback-bt:hover i {
    display: none
}

.callback-bt:hover {
    z-index: 1;
    background: #fff;
    color: transparent;
    transition: .3s
}

.callback-bt i {
    color: #fff;
    font-size: 29px;
    transition: .3s;
    line-height: 56px;
    animation: 12500ms ease 2s normal none 1 running shake;
    animation-iteration-count: infinite;
    -webkit-animation: 12500ms ease 2s normal none 1 running shake;
    -webkit-animation-iteration-count: infinite
}

@-webkit-keyframes hoverWave {
    0% {
        box-shadow: 0 8px 10px rgba(186, 86, 136, .3), 0 0 0 0 rgba(186, 86, 136, .3), 0 0 0 0 rgba(186, 86, 136, .2)
    }

    40% {
        box-shadow: 0 8px 10px rgba(186, 86, 136, .3), 0 0 0 15px rgba(186, 86, 136, 0), 0 0 0 0 rgba(186, 86, 136, .2)
    }

    80% {
        box-shadow: 0 8px 10px rgba(186, 86, 136, .3), 0 0 0 30px rgba(186, 86, 136, 0), 0 0 0 26.7px rgba(186, 86, 136, .067)
    }

    100% {
        box-shadow: 0 8px 10px rgba(186, 86, 136, .3), 0 0 0 30px rgba(186, 86, 136, 0), 0 0 0 40px rgba(186, 86, 136, 0)
    }
}

@keyframes hoverWave {
    0% {
        box-shadow: 0 8px 10px rgba(186, 86, 136, .3), 0 0 0 0 rgba(186, 86, 136, .2), 0 0 0 0 rgba(186, 86, 136, .2)
    }

    40% {
        box-shadow: 0 8px 10px rgba(186, 86, 136, .3), 0 0 0 15px rgba(186, 86, 136, .2), 0 0 0 0 rgba(186, 86, 136, .2)
    }

    80% {
        box-shadow: 0 8px 10px rgba(186, 86, 136, .3), 0 0 0 30px rgba(186, 86, 136, 0), 0 0 0 26.7px rgba(186, 86, 136, .067)
    }

    100% {
        box-shadow: 0 8px 10px rgba(186, 86, 136, .3), 0 0 0 30px rgba(186, 86, 136, 0), 0 0 0 40px rgba(186, 86, 136, 0)
    }
}

@keyframes shake {
    0% {
        transform: rotateZ(0)
    }

    10% {
        transform: rotateZ(-30deg)
    }

    20% {
        transform: rotateZ(15deg)
    }

    30% {
        transform: rotateZ(-10deg)
    }

    40% {
        transform: rotateZ(7.5deg)
    }

    50% {
        transform: rotateZ(-6deg)
    }

    60% {
        transform: rotateZ(5deg)
    }

    70% {
        transform: rotateZ(-4.28571deg)
    }

    80% {
        transform: rotateZ(3.75deg)
    }

    90% {
        transform: rotateZ(-3.33333deg)
    }

    100% {
        transform: rotateZ(0)
    }
}

@-webkit-keyframes shake {
    0% {
        -webkit-transform: rotateZ(0)
    }

    10% {
        -webkit-transform: rotateZ(-30deg)
    }

    20% {
        -webkit-transform: rotateZ(15deg)
    }

    30% {
        -webkit-transform: rotateZ(-10deg)
    }

    40% {
        -webkit-transform: rotateZ(7.5deg)
    }

    50% {
        -webkit-transform: rotateZ(-6deg)
    }

    60% {
        -webkit-transform: rotateZ(5deg)
    }

    70% {
        -webkit-transform: rotateZ(-4.28571deg)
    }

    80% {
        -webkit-transform: rotateZ(3.75deg)
    }

    90% {
        -webkit-transform: rotateZ(-3.33333deg)
    }

    100% {
        -webkit-transform: rotateZ(0)
    }
}









/* ===== home-v2-slider: responsive ===== */

/* ≤1589px — баннеры уходят под слайдер (flex 100%), скрываем */
@media (max-width: 1589px) {
    .slider-with-banners .column-2-banners-block {
        display: none;
    }
}

/* overlay-ссылка: скрыта по умолчанию, появляется когда кнопка пропадает */
.home-v2-slider .slider-1 {
    position: relative;
}
.home-v2-slider .slider-1 .slider-full-link {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* Пропорции оригинала 1016×532 — до 1590px тема задаёт фиксированные высоты,
   перебиваем их через aspect-ratio чтобы изображение не обрезалось */
@media (max-width: 1589px) {
    .site-content .home-v2-slider .slider-1 {
        height: auto !important;
        aspect-ratio: 1016 / 532;
        background-position: center center;
    }
}

/* ≤575px — маленький телефон: скрываем кнопку, показываем overlay-ссылку, возвращаем dots */
@media (max-width: 767px) {
    .site-content .home-v2-slider .slider-1 .caption .button {
        display: none;
    }
    .home-v2-slider .slider-1 .slider-full-link {
        display: block;
    }
    .site-content .home-v2-slider .slick-dots {
        display: flex !important;
        justify-content: center;
        bottom: 6%;
    }
}

/* 576px–767px — dots скрыты темой, возвращаем */
@media (min-width: 576px) and (max-width: 767px) {
    .site-content .home-v2-slider .slick-dots {
        display: flex !important;
        justify-content: center;
        bottom: 8%;
    }
}






/* ===== Категории: заголовок в одну строку на мобильных ===== */
@media (max-width: 1199px) {
    /* Уменьшаем отступ снизу у слайдера */
    .slider-with-banners {
        margin-bottom: 0.8em;
    }
    #categories-carousel-3 .section-title,
    .section-6-1-6-products-tabs .section-title {
        font-size: 1.35em;
    }
    #categories-carousel-3 .readmore-link {
        display: none;
    }
    #categories-carousel-3 {
        margin-top: 0;
        padding-top: 8px;
        padding-bottom: 0;
    }
    #categories-carousel-3 .section-header {
        /* margin-bottom: 8px; */
        padding-bottom: 6px;
        padding-top: 0.75em;
    }
    #categories-carousel-3 .section-title {
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 767px) {
    .banners.banners--main-carousel {
        margin-bottom: 1.063em;
    }
    .section-6-1-6-products-tabs {
        margin-bottom: 2.313em;
    }
    .slider-with-banners {
        margin-bottom: 1.063em;
    }
    #categories-carousel-3 .section-title br {
        display: none;
    }
    #categories-carousel-3 .section-title {
        font-size: 1.25em;
        white-space: nowrap;
    }
    .section-6-1-6-products-tabs .section-title {
        font-size: 1.25em;
    }
    #categories-carousel-3 {
        padding-top: 6px;
    }
    #categories-carousel-3 .section-header {
        /* margin-bottom: 8px; */
        padding-bottom: 5px;
        padding-top: 0.6em;
    }
    /* три таба всегда в одну строку */
    .section-6-1-6-products-tabs ul[role="tablist"] li {
        width: 33.333% !important;
        flex-shrink: 0;
    }
    .section-6-1-6-products-tabs ul[role="tablist"] li a {
        padding-left: 0.3em;
        padding-right: 0.3em;
    }
}

@media (max-width: 767px) {
    .section-6-1-6-products-tabs .row-6-1-6-products {
        display: block;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: visible;
    }

    .section-6-1-6-products-tabs .row-6-1-6-products > .product-1,
    .section-6-1-6-products-tabs .row-6-1-6-products > .products-6,
    .section-6-1-6-products-tabs .row-6-1-6-products > .products-mobile-toggle {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .section-6-1-6-products-tabs .row-6-1-6-products > .product-1 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .section-6-1-6-products-tabs .row-6-1-6-products > .product-1 .woocommerce.columns-1,
    .section-6-1-6-products-tabs .row-6-1-6-products > .product-1 .woocommerce.columns-1 > .products {
        width: 100% !important;
        max-width: 100% !important;
    }

    .section-6-1-6-products-tabs .row-6-1-6-products > .product-1 .woocommerce.columns-1 > .products > .sale-product-with-timer.product {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .section-6-1-6-products-tabs .row-6-1-6-products > .products-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        float: none !important;
    }

    /* Сохраняем штатный вид карточек и только ограничиваем количество в ряду до двух */
    .section-6-1-6-products-tabs .products-6 .woocommerce.columns-3 .products .product {
        width: 50% !important;
    }

    .section-6-1-6-products-tabs .products-6 .product.is-mobile-hidden {
        display: none !important;
    }

    .section-6-1-6-products-tabs .products-mobile-toggle {
        display: block;
        margin: 10px auto 2px;
        text-align: center;
    }

    .section-6-1-6-products-tabs .products-mobile-toggle[hidden] {
        display: none !important;
    }
    
    /* Восстанавливаем нормальные отступы для КНОПКИ (без влияния на родительский блок) */
    .section-6-1-6-products-tabs .button.products-mobile-toggle {
        padding-left: 1.618em !important;
        padding-right: 1.618em !important;
        min-width: 200px; /* минимальная ширина, чтобы текст не зарезался */
    }
}

@media (min-width: 551px) and (max-width: 767px) {
    .section-6-1-6-products-tabs .tab-content,
    .section-6-1-6-products-tabs .tab-pane,
    .section-6-1-6-products-tabs .row-6-1-6-products {
        overflow: visible !important;
    }

    .section-6-1-6-products-tabs .row-6-1-6-products > .product-1 {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .section-6-1-6-products-tabs .row-6-1-6-products > .product-1 .products > .sale-product-with-timer.product {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

@media (min-width: 550px) {
    .section-6-1-6-products-tabs .tab-content #tab-30 .product-1 .woocommerce.columns-1 > .products,
    .section-6-1-6-products-tabs .tab-content #tab-50 .product-1 .woocommerce.columns-1 > .products,
    .section-6-1-6-products-tabs .tab-content #tab-70 .product-1 .woocommerce.columns-1 > .products {
        margin-left: 0 !important;
    }
}

@media (max-width: 767px) {
    .section-products-carousel-tabs--scrollbar-toggle ul:not(.slick-dots)[role="tablist"],
    .section-products-carousel-tabs--scrollbar-toggle .section-header ul:not(.slick-dots)[role="tablist"] {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .section-products-carousel-tabs--scrollbar-toggle ul:not(.slick-dots)[role="tablist"]::-webkit-scrollbar,
    .section-products-carousel-tabs--scrollbar-toggle .section-header ul:not(.slick-dots)[role="tablist"]::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }
}

@media (max-width: 480px) {
    #categories-carousel-3 .section-header {
        /* margin-bottom: 8px; */
        padding-bottom: 4px;
        padding-top: 0.5em;
    }
    .section-6-1-6-products-tabs ul[role="tablist"] li {
        width: 33.333% !important;
        flex-shrink: 0;
    }
    .section-6-1-6-products-tabs ul[role="tablist"] li a {
        padding-left: 0.3em;
        padding-right: 0.3em;
        font-size: 0.85em;
    }
}

/* ===== Баннеры (banners.blade.php): адаптивность ===== */
/* Крупный баннер 860×259 и малые 420×259 — при сужении держат пропорции */
@media (max-width: 1199px) {
    .banners .large-banner .banner-bg {
        height: auto !important;
        aspect-ratio: 860 / 259;
    }
    .banners .small-banner .banner-bg {
        height: auto !important;
        aspect-ratio: 420 / 259;
    }
}

/* ===== Слайдер: отступы от краёв экрана ===== */
/* Тема ставит margin-right: -32px на .slider-with-banners, из-за чего
   правая сторона выходит за viewport. Сбрасываем до стандартного Bootstrap -15px,
   и оставляем padding на колонке */
@media (max-width: 1589px) {
    .slider-with-banners {
        margin-right: -15px !important;
    }
    .slider-with-banners .column-1-slider-block {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Мобильное меню: третий уровень категорий сдвигается вправо
   на такое же расстояние, как второй уровень относительно первого */
.handheld-navigation ul .dropdown-menu .dropdown-menu li a {
    padding-left: 3em;
}

/* ============================================================
   BRANDS-CAROUSEL: компактность на всех экранах < 1400px
   ============================================================ */
@media (max-width: 1399px) {
    .brands-carousel {
        margin-bottom: 0.125em !important; /* ~2px вместо 4.5em */
    }
}

/* ============================================================
   ФУТЕР: оптимизация для компактности на планшетах/мобильных
   ============================================================ */

/* < 1200px: footer-contact СВЕРХУ, footer-widgets СНИЗУ */
@media (max-width: 1199px) {
    .site-footer .footer-widgets-block .row {
        display: flex;
        flex-direction: column;
    }
    
    .site-footer .footer-widgets-block .footer-contact {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1.5em; /* обычный отступ для 2-3 колонок */
        order: 1;
    }
    
    .site-footer .footer-widgets-block .footer-widgets {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        order: 2;
    }
}

/* < 768px: СКРЫВАЕМ блок с платёжками */
@media (max-width: 767px) {

       .footer-contact .footer-logo {
    margin-bottom: 1.2em;
    margin-top: 1.2em;
}


    .site-footer .footer-widgets-block .footer-contact .footer-payment-info {
        display: none !important;
    }
}

/* 768px+: footer-contact внутренние блоки в две колонки (если payment-info виден) */
@media (min-width: 768px) {
    .site-footer .footer-widgets-block .footer-contact .contact-payment-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .site-footer .footer-widgets-block .footer-contact .footer-contact-info,
    .site-footer .footer-widgets-block .footer-contact .footer-payment-info {
        flex: 1 1 calc(50% - 10px);
        min-width: 280px;
    }
}

/* 576px+: footer-widgets в ДВЕ колонки - ВАЖНО перебить тему! */
@media (min-width: 576px) {
    .site-footer .footer-widgets-block .footer-widgets {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0 !important;
    }
    
    .site-footer .footer-widgets-block .footer-widgets .columns {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
        /* НЕ трогаем margin-bottom - оставляем как в теме */
    }
}

/* 576-767px: УСИЛЕННОЕ правило для диапазона, где тема пытается сделать 1 колонку! */
@media (min-width: 576px) and (max-width: 767px) {
    .site-footer .footer-widgets-block .footer-widgets {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
    }
    
    .site-footer .footer-widgets-block .footer-widgets .columns {
        display: block !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        float: none !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
        /* НЕ трогаем margin - оставляем как в теме */
    }
}

/* 900px+: footer-widgets в ТРИ колонки если места достаточно */
@media (min-width: 900px) {
    .site-footer .footer-widgets-block .footer-widgets .columns {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        width: 33.333% !important;
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}

/* < 576px: всё вертикально - одна колонка - МИНИМАЛЬНЫЕ ОТСТУПЫ! */
@media (max-width: 575px) {
    /* Убираем padding-top у before-footer-wrap (было 3.001em в style.css) */
    .site-footer .before-footer-wrap {
        padding-top: 0 !important;
    }
    
    /* Уменьшаем margin-bottom у footer-contact-info (было 40px в style.css) */
    .contact-payment-wrap .footer-contact-info {
        margin-bottom: 0.1875em !important; /* ~3px */
    }
    
    /* Минимальный отступ между footer-contact и footer-widgets */
    .site-footer .footer-widgets-block .footer-contact {
        margin-bottom: 0.125em !important; /* ~2px */
        padding-top: 0.125em !important; /* ~2px вместо 1.667em */
    }
    
    .site-footer .footer-widgets-block .footer-widgets {
        display: block !important;
    }
    
    .site-footer .footer-widgets-block .footer-widgets .columns {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-top: 0.125em !important; /* минимальный отступ сверху ~2px */
        margin-bottom: 0.125em !important; /* минимальный отступ снизу ~2px */
        padding-top: 0.125em !important; /* ~2px вместо 1.667em из style.css */
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
}

/* ============================================================
   ФУТЕР: уменьшение расстояний между БЛОКАМИ для компактности
   ============================================================ */

/* Уменьшаем padding-top у footer-widgets-block (было 3.133em в теме) */
.site-footer .footer-widgets-block {
    padding-top: 1.133em !important;
}

/* < 1200px: еще компактнее на планшетах и мобильных */
@media (max-width: 1199px) {
    .site-footer .footer-widgets-block {
        margin-bottom: 1.5em !important;
        padding-top: 0.8em !important;
    }
}

/* < 768px: минимальные отступы между блоками на мобильных */
@media (max-width: 767px) {
    .site-footer .footer-widgets-block {
        margin-bottom: 1em !important;
        padding-top: 0.5em !important;
    }
}







/* ===================================================================
   TOP BAR: адаптивная видимость (мобильная версия)
   =================================================================== */

/* Отменяем display:none из style.css — top-bar виден на всех размерах */
@media (max-width: 1024px) {
    .top-bar {
        display: block !important;
    }
}

/* На всех размерах удерживаем горизонтальный ряд и нормальный font-size.
   style.css схлопывает nav в колонку при max-width:767px — блокируем это
   до 576px (до момента переключения на кнопки модала) */
@media (min-width: 577px) {
    .top-bar .nav {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        text-align: left !important;
    }
    .top-bar .nav > li {
        padding-bottom: 0 !important;
    }
    /* Восстанавливаем нормальный line-height (style.css режет до 1.4 при ≤767px) */
    .top-bar .nav > li > a {
        line-height: 2.74em !important;
    }
    /* Восстанавливаем разделитель | (style.css показывает его только при ≥768px) */
    .top-bar .nav > .menu-item + .menu-item > a::before {
        content: '|' !important;
        color: #dedede !important;
        display: inline-block !important;
        margin: 0 2.133em !important;
    }
}

/* Адаптируем col-full при малых экранах */
@media (max-width: 1024px) {
    .top-bar .col-full {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center !important;
        padding: 2px 10px;
    }
    .top-bar {
        font-size: 0.875em;
    }
}

/* При 480px и меньше — разрешаем column (очень маленький экран) */
@media (max-width: 480px) {
    .top-bar {
        font-size: 0.82em;
    }
}

/* --- Прогрессивное скрытие элементов top-bar --- */

/* "Наш магазин" исчезает при ≤1519px — убираем и разделитель после него */
@media (max-width: 1519px) {
    #menu-top-bar-left .tb-hide-1520 {
        display: none !important;
    }
    #menu-top-bar-left .tb-hide-1520 + li > a::before {
        content: none !important;
        margin: 0 !important;
    }
}


/* Загрузка */


/* Кнопка ScrollUp — переносим влево */
#scrollUp {
    right: auto !important;
    left: 20px !important;
    bottom: 20px !important;
}

/* ============================================================
   Primary Nav — горизонтальная прокрутка при ширине < 1233px
   (desktop-only виден от 1025px)
============================================================ */
@media (min-width: 1025px) and (max-width: 1232px) {

    /* Обёртка для прокрутки */
    .primary-nav-scroll-wrap {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px; /* место под полосу прокрутки */
    }

    /* Запрещаем перенос строк у UL */
    .primary-nav-scroll-wrap .nav.yamm {
        flex-wrap: nowrap !important;
        white-space: nowrap;
        width: max-content;
        display: block;
    }

    /* Стилизация полосы прокрутки (Webkit) */
    .primary-nav-scroll-wrap::-webkit-scrollbar {
        height: 3px;
    }
    .primary-nav-scroll-wrap::-webkit-scrollbar-track {
        background: #f5f5f5;
        border-radius: 3px;
    }
    .primary-nav-scroll-wrap::-webkit-scrollbar-thumb {
        background: #ba5688;
        border-radius: 3px;
    }
    .primary-nav-scroll-wrap::-webkit-scrollbar-thumb:hover {
        background: #9d3d6e;
    }
}

/* --- прогрессивное уменьшение отступов между пунктами меню --- */
@media (min-width: 1180px) and (max-width: 1232px) {
    .primary-nav-scroll-wrap .nav.yamm > li {
        padding: 0 1.1em;
    }
}
@media (min-width: 1100px) and (max-width: 1179px) {
    .primary-nav-scroll-wrap .nav.yamm > li {
        padding: 0 0.8em;
    }
}

/* ============================================================
   Мобильное меню: строка "Закрыть" + переключатель языка
============================================================ */
.tmhm-close-bar {
    display: flex;
    align-items: center;
    background-color: #f1f1f1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.tmhm-close-bar .tmhm-close {
    flex: 1;
    background: none !important;
    border-bottom: none !important;
    display: block;
    padding: .857em 1.387em;
}
.tmhm-lang-switcher {
    padding: 0 14px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ---- Кастомный слайдер языка ---- */
/* Два label всегда видны. Розовая плашка скользит под ними. */
.lang-switch {
    position: relative;
    display: inline-flex;
    border: 1.5px solid #D6026C;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
/* Скользящая розовая плашка */
.lang-switch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #D6026C;
    border-radius: 2px;
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}
/* OFF (RU активен): плашка едет вправо */
.lang-switch[data-state="off"]::before {
    transform: translateX(100%);
}
/* Метки — равные, поверх плашки */
.lang-switch-handle-on,
.lang-switch-handle-off {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    transition: color 0.2s ease;
}
/* ON (UA): UA белый, RU розовый */
.lang-switch[data-state="on"] .lang-switch-handle-on  { color: #fff; }
.lang-switch[data-state="on"] .lang-switch-handle-off { color: #D6026C; }
/* OFF (RU): RU белый, UA розовый */
.lang-switch[data-state="off"] .lang-switch-handle-on  { color: #D6026C; }
.lang-switch[data-state="off"] .lang-switch-handle-off { color: #fff; }

/* ============================================================
   Мобильное меню: основные ссылки (hmenu-primary-links) — горизонтальный ряд со скроллом
============================================================ */
.hmenu-primary-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0 0 2px 0;
    list-style: none;
    border-bottom: 2px solid #f0e0ea;
}
/* Переопределяем column из style.css */
.handheld-navigation > .handheld-navigation-menu > .hmenu-primary-links {
    flex-direction: row !important;
}
.hmenu-primary-links .menu-item {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 0 !important;
    white-space: nowrap;
}
.hmenu-primary-links .menu-item a {
    display: block;
    padding: 10px 14px;
    color: #444;
    font-size: 0.85em;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.hmenu-primary-links .menu-item a:hover,
.hmenu-primary-links .menu-item a.hmenu-active {
    color: #D6026C;
}

/* Стилизация полосы прокрутки */
.hmenu-primary-links::-webkit-scrollbar {
    height: 3px;
}
.hmenu-primary-links::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}
.hmenu-primary-links::-webkit-scrollbar-thumb {
    background: #D6026C;
    border-radius: 3px;
}

/* Отступ перед меню категорий */
#menu-departments-menu-1.nav {
    margin-top: 8px;
}
/* Социальные иконки в мобильном меню */
.hmenu-social-icons {
    padding: 12px 14px 8px;
    border-top: 1px solid #f0e0ea;
    margin-top: 6px;
}
.hmenu-social-icons .social-icons,
.hmenu-social-icons ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ============================================================
   Мобильное меню: блокировка прокрутки и затемнение хедера
============================================================ */
/* Запрет прокрутки страницы при открытом меню */
body.active-hh-menu {
    overflow: hidden !important;
}
/* Блокируем клики по хедеру (корзина, вишлист и т.д.) */
body.active-hh-menu #masthead {
    pointer-events: none;
}
/* Возвращаем интерактивность только самому меню */
body.active-hh-menu #masthead .handheld-navigation,
body.active-hh-menu #masthead .handheld-navigation-menu {
    pointer-events: auto;
}
/* Тёмный оверлей внутри stacking context #masthead */
body.active-hh-menu #masthead::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 800000;
    pointer-events: none;
}
/* Липкая шапка: при открытом меню поднимаем выше overlay,
   иначе .stuck (z-index:9999) создаёт stacking context ниже overlay */
body.active-hh-menu .techmarket-sticky-wrap.stuck {
    z-index: 850000 !important;
}

@media (min-width: 1025px) and (max-width: 1099px) {
    .primary-nav-scroll-wrap .nav.yamm > li {
        padding: 0 0.55em;
    }
}


/* Загрузка */
/* Email исчезает при ≤1096px */
@media (max-width: 1096px) {
    #menu-top-bar-left .tb-hide-1096 {
        display: none !important;
    }
}

/* WhatsApp исчезает при ≤958px */
@media (max-width: 958px) {
    #menu-top-bar-left .tb-hide-958 {
        display: none !important;
    }
}

/* Instagram исчезает при ≤800px */
@media (max-width: 800px) {
    #menu-top-bar-left .tb-hide-800 {
        display: none !important;
    }
}

/* Viber исчезает при ≤700px */
@media (max-width: 700px) {
    #menu-top-bar-left .tb-hide-700 {
        display: none !important;
    }
}

/* 2-й телефон исчезает при ≤576px */
@media (max-width: 576px) {
    #menu-top-bar-left .tb-hide-576 {
        display: none !important;
    }
}

/* 1-й телефон и Telegram (обычные) исчезают при ≤576px — заменяются кнопками модала.
   Отдельный класс tb-hide-576-phone, чтобы не конфликтовать с tb-hide-576 2-го телефона */
@media (max-width: 576px) {
    #menu-top-bar-left .tb-hide-576-phone {
        display: none !important;
    }
}

/* Telegram кнопка модала: скрыта по умолчанию, видна при ≤700px */
#menu-top-bar-left .tb-show-700-down {
    display: none !important;
}
@media (max-width: 700px) {
    #menu-top-bar-left .tb-show-700-down {
        display: flex !important;
        align-items: center;
    }
}

/* Phone1 кнопка модала: скрыта по умолчанию, видна при ≤576px */
#menu-top-bar-left .tb-show-576-only {
    display: none !important;
}
@media (max-width: 576px) {
    #menu-top-bar-left .tb-show-576-only {
        display: flex !important;
        align-items: center;
    }

    /* Удерживаем горизонтальный ряд, нормальный line-height и разделители */
    .top-bar .nav {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        text-align: left !important;
    }
    .top-bar .nav > li {
        padding-bottom: 0 !important;
    }
    .top-bar .nav > li > a {
        line-height: 2.74em !important;
    }
    .top-bar .nav > .menu-item + .menu-item > a::before {
        content: '|' !important;
        color: #dedede !important;
        display: inline-block !important;
        margin: 0 2.133em !important;
    }

    /* Phone1 modal (tb-show-576-only) в DOM идёт после скрытого Instagram —
       CSS генерирует лишний | перед ним. Сбрасываем: Phone1 modal первый видимый. */
    #menu-top-bar-left .tb-show-576-only > a::before {
        content: none !important;
        margin: 0 !important;
        display: none !important;
    }
    /* | перед Telegram modal (tb-show-700-down) генерируется корректно:
       в DOM он идёт сразу после Phone1 modal (tb-show-576-only), который
       при ≤576px уже виден — CSS adjacent selector работает правильно. */
}

/* Стиль кнопок-триггеров в top-bar — выглядят как обычные ссылки,
   только с треугольником ▾ справа */
.tb-contact-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    font-size: inherit;
    line-height: 2.74em !important;
    text-decoration: none !important;
    color: #444 !important;
    cursor: pointer;
    transition: color 0.2s;
}
.tb-contact-btn::after {
    content: ' ▾';
    font-size: 1.15em;
    line-height: 1;
    margin-left: 3px;
    color: #999;
}
.tb-contact-btn:hover {
    background: none;
    color: #444 !important;
    border-color: transparent;
}
/* Убираем отдельный цвет у телеграм-кнопки — пусть выглядит как все */
.tb-contact-btn--tg {
    color: #444 !important;
    border-color: transparent;
}
.tb-contact-btn--tg:hover {
    background: none;
    color: #444 !important;
}

/* ===================================================================
   CONTACTS MODAL (модал контактов)
   =================================================================== */

/* z-index: выше header (#masthead z-index ~100000) */
#contactsTopBarModal,
#callbackModal {
    z-index: 1050000 !important;
}
.modal-backdrop {
    z-index: 1049999 !important;
}
/* Прячем header под backdrop при открытом модале */
body.modal-open #masthead {
    z-index: 1 !important;
}
body.modal-open .sticky-wrapper {
    z-index: 1 !important;
}

/* Отступы в body модала */
.ctm-modal-body {
    padding: 20px 24px;
}

/* Верхний двухколоночный блок: слева телефоны/email, справа соцсети */
.ctm-top-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    align-items: stretch;
}

/* Левая колонка: телефоны + email (сверху вниз) */
.ctm-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 0;
}
.ctm-contact-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 42px;
    border: 1px solid #e0cdd7;
    border-radius: 4px;
    color: #444 !important;
    text-decoration: none !important;
    font-size: 0.88em;
    transition: border-color 0.2s, color 0.2s;
    box-sizing: border-box;
}
.ctm-contact-link:hover {
    border-color: #ba5688;
    color: #ba5688 !important;
}

/* Правая колонка: соцсети (сверху вниз) */
.ctm-socials {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 0;
}
.ctm-social-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 42px;
    border-radius: 4px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.88em;
    font-weight: 500;
    transition: opacity 0.2s;
    box-sizing: border-box;
}
.ctm-social-btn:hover {
    opacity: 0.85;
    color: #fff !important;
}
.ctm-tg  { background: #2ca5e0; }
.ctm-wa  { background: #25d366; }
.ctm-vb  { background: #7360f2; }
.ctm-ig  { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

/* Адрес */
.ctm-address {
    padding: 8px 0 10px;
    border-top: 1px solid #f0e0ea;
    font-size: 0.92em;
    color: #555;
}

/* Карта */
.ctm-map {
    border-top: 1px solid #f0e0ea;
    padding-top: 12px;
    margin-top: 4px;
}
.ctm-map iframe {
    display: block;
    width: 100%;
    border-radius: 6px;
}

/* На очень маленьких экранах — уменьшаем кнопки соцсетей и контактов,
   но двухколоночный лейаут сохраняем */
@media (max-width: 447px) {
    .ctm-top-row {
        gap: 6px;
    }
    .ctm-social-btn {
        padding: 0 8px;
        font-size: 0.75em;
        gap: 4px;
    }
    .ctm-contact-link {
        padding: 0 8px;
        font-size: 0.75em;
        gap: 4px;
    }
    .ctm-callback-btn {
        font-size: 13px !important;
    }
}
@media (max-width: 380px) {
    .ctm-social-btn {
        font-size: 0.68em;
        padding: 0 6px;
    }
    .ctm-contact-link {
        font-size: 0.68em;
        padding: 0 6px;
    }
}

/* Время работы */
.ctm-workhours {
    border-top: 1px solid #f0e0ea;
    padding-top: 12px;
    margin-top: 4px;
}
.ctm-workhours__title {
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.ctm-workhours__list {
    margin: 0;
    padding: 0;
}
.ctm-workhours__list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.88em;
    padding: 3px 0;
    border-bottom: 1px dotted #f0e0ea;
    color: #555;
}
.ctm-workhours__list li:last-child {
    border-bottom: none;
}
.ctm-workhours__list .hours {
    font-weight: 500;
    color: #333;
    margin-left: auto;
    padding-left: 8px;
    text-align: right;
}

/* Кнопка "Обратный звонок" в левой колонке модала — идентична .ctm-contact-link */
.ctm-callback-btn {
    text-align: left;
    background: none;
    border: 1px solid #e0cdd7;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    white-space: nowrap;
}
.ctm-callback-btn:hover {
    border-color: #ba5688;
    color: #ba5688 !important;
}
.ctm-callback-btn .fa {
    color: #ba5688;
}

/* ===================================================================
   БЕЙДЖИ ОПЕРАТОРА МОБИЛЬНОЙ СВЯЗИ (монохромные)
   ks = Kyivstar ★, vf = Vodafone V, lc = Lifecell L
   =================================================================== */
.op-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    font-size: 0.65em;
    font-weight: 900;
    color: #fff !important;
    flex-shrink: 0;
    line-height: 1;
    font-family: Arial, sans-serif;
    text-decoration: none !important;
    font-style: normal;
    /* выравнивание с текстом: чуть вверх и теснее к номеру */
    position: relative;
    top: -1px;
    margin-right: 3px;
    vertical-align: middle;
    /* монохромный цвет */
    background: #666;
}
/* В верхней панели чуть компактнее */
#menu-top-bar-left .op-badge {
    width: 15px;
    height: 15px;
    min-width: 15px;
    font-size: 0.52em;
    margin-right: 2px;
}
/* Все операторы — один нейтральный серый, символ различает */
.op-ks { background: #666; }
.op-vf { background: #666; }
.op-lc { background: #666; }
/* ★ в Arial слегка рендерится выше центра — компенсируем */
.op-ks { padding-top: 1px; }
/* SVG Viber в top-bar: vertical-align:middle даёт лёгкий сдвиг вниз */
#menu-top-bar-left .tb-hide-700 a svg {
    position: relative;
    top: 1px;
}

/* Уменьшаем высоту top-bar при ≤700px — только line-height, шрифт не трогаем.
   Блок добавлен ПОСЛЕ глобальных правил .tb-contact-btn и @media(min-width:577px),
   чтобы гарантированно перекрыть их при данной ширине. */
@media (max-width: 700px) {
    .top-bar .nav > li > a {
        line-height: 2.1em !important;
    }
    .tb-contact-btn {
        line-height: 2.1em !important;
    }
}


.navbar-toggler{
    font-size: 1.65rem;
}


/* ===== При <= 500px: отменяем колонку из темы, оставляем строки ===== */
@media (max-width: 500px) {
    .shop-control-bar {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }
    .shop-control-bar .woocommerce-products-header__title {
        font-size: 1.1em !important;
        padding: 2px 6px !important;
    }
}

/* ===== Кнопки сортировки ===== */

/* Десктоп (>= 1024px): оригинальный стиль — розовая рамка, прозрачный фон */
button.btn-sort-price,
button.btn-sort-title {
    border: 1px solid #D6026C !important;
    color: #D6026C !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    /* border-radius: 0px; */
    padding: 0.35em 0.85em;
    font-size: 1.0em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
}

button.btn-sort-price {
    min-width: 6.5em;
    text-align: center;
}

button.btn-sort-title {
    min-width: 1.5em;
    text-align: center;
}

button.btn-sort-price.active,
button.btn-sort-title.active,
button.btn-sort-price.active:hover,
button.btn-sort-title.active:hover,
button.btn-sort-price.active:focus,
button.btn-sort-title.active:focus,
button.btn-sort-price.active:active,
button.btn-sort-title.active:active {
    background: #D6026C !important;
    color: #fff !important;
    border: 1px solid #D6026C !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Десктоп (>= 1024px): высота как у input.form-control в shop-control-bar */
@media (min-width: 1024px) {
    button.btn-sort-price,
    button.btn-sort-title {
        padding-top: 0.375rem !important;
        padding-bottom: 0.375rem !important;
        line-height: 1.8em !important;
    }
}

/* Мобильный (< 1024px): белый текст на основном цвете */
@media (max-width: 1023px) {
    button.btn-sort-price,
    button.btn-sort-title,
    button.btn-sort-price:hover,
    button.btn-sort-title:hover,
    button.btn-sort-price:focus,
    button.btn-sort-title:focus,
    button.btn-sort-price:active,
    button.btn-sort-title:active {
        background: #D6026C !important;
        color: #fff !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        padding: 0.35em 0.05em !important;
        font-size: 0.875em !important;
    }

    button.btn-sort-price {
        min-width: auto;
    }

    button.btn-sort-price.active,
    button.btn-sort-title.active,
    button.btn-sort-price.active:hover,
    button.btn-sort-title.active:hover,
    button.btn-sort-price.active:focus,
    button.btn-sort-title.active:focus {
        /* background: #8c0048 !important; */
        color: #fff !important;
        /* border: none !important;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important; */
    }
}

/* ============================================================
   Хлебные крошки (woocommerce-breadcrumb) — управление позицией
   breadcrumb--top    = оригинал (для десктопа, скрыт на мобильном)
   breadcrumb--mobile = копия в правильном месте (только мобильный)
============================================================ */

/* Десктоп: скрываем мобильную копию */
@media (min-width: 1200px) {
    .woocommerce-breadcrumb.breadcrumb--mobile {
        display: none !important;
    }
}

/* Мобильный: скрываем оригинал сверху */
@media (max-width: 1199px) {
    .woocommerce-breadcrumb.breadcrumb--top {
        display: none !important;
    }
}

/* ============================================================
   Хлебные крошки (woocommerce-breadcrumb) — мобильный горизонтальный скрол
   Переопределяем display:none из style.css при max-width:1199px
============================================================ */
@media (max-width: 1199px) {
    .woocommerce-breadcrumb {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        padding: 0 0 2px 0;
        padding-left: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0.4em !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-bottom: 2px solid #f0e0ea;
        align-items: center;
        white-space: nowrap;
        font-size: 0.78em;
        font-weight: 400;
        color: #444;
        line-height: 1;
    }
    .woocommerce-breadcrumb a,
    .woocommerce-breadcrumb span {
        flex: 0 0 auto;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        padding: 5px 10px;
        color: #444;
        font-size: 1em;
        text-decoration: none;
        transition: color 0.2s;
    }
    .woocommerce-breadcrumb a:hover {
        color: #D6026C;
    }
    /* Скасовуємо pill-стиль з style.css для посилань після delimiter */
    .woocommerce-breadcrumb span.delimiter + a {
        background-color: transparent !important;
        padding: 5px 10px !important;
        border-radius: 0 !important;
        margin-bottom: 0 !important;
    }
    .woocommerce-breadcrumb .delimiter {
        flex: 0 0 auto;
        margin: 0 0.1em;
        font-size: 9px;
        padding: 0;
    }
    /* Скролбар як у hmenu-primary-links */
    .woocommerce-breadcrumb::-webkit-scrollbar {
        height: 3px;
    }
    .woocommerce-breadcrumb::-webkit-scrollbar-track {
        background: #f5f5f5;
        border-radius: 3px;
    }
    .woocommerce-breadcrumb::-webkit-scrollbar-thumb {
        background: #D6026C;
        border-radius: 3px;
    }
}

@media (max-width: 1199px) {
    .section-product-categories header {
        margin-bottom: 0.4em;
    }
}

/* ============================================================
   Блок заголовка товара (shop-control-bar) на странице товара — только мобильный
============================================================ */

/* На десктопе (≥1200px) скрываем shop-control-bar на странице товара */
.single-product .shop-control-bar {
    display: none;
}

/* shop-control-bar--title-only: только заголовок (категории/каталог) — только мобильный */
.shop-control-bar--title-only {
    display: none;
}

/* Единая минимальная высота shop-control-bar на мобильном — равна высоте блока с фильтром и сортировкой */
@media (max-width: 1023px) {
    .shop-control-bar {
        min-height: 50px;
        align-content: center;
    }
}

@media (max-width: 1199px) {
    /* Показываем shop-control-bar на странице товара на мобильном */
    .single-product .shop-control-bar {
        display: flex;
    }

    /* Показываем блок заголовка категорий на мобильном */
    .shop-control-bar--title-only {
        display: flex;
    }

    /* Заголовок в bars только с названием — всегда по центру */
    .shop-control-bar--title-only .woocommerce-products-header__title {
        text-align: center !important;
    }

    /* Скрываем оригинальный h1 в section-header на мобильном */
    .section-header--desktop-only {
        display: none !important;
    }

    /* Скрываем оригинальный h1 в .single-product-header на мобильном */
    .product_title--desktop-only {
        display: none !important;
    }

    /* Отступы вокруг крошек на странице товара */
    .single-product .woocommerce-breadcrumb {
        margin-top: 0 !important;
        margin-bottom: 0.5em !important;
    }
}

/* ============================================================
   Сетка категорий на мобильном: CSS Grid, ровные строки
   < 768px  — 2 колонки
   768–1199px — 3 колонки
============================================================ */
@media (max-width: 1199px) {
    .product-loop-categories {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .product-loop-categories .product-category {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 8px !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .product-loop-categories {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ============================================================
   КОРЗИНА: картинка товара и мобильный горизонтальный скролл
   ============================================================ */

/* Десктоп: показываем колонку с картинкой (style.css её скрывает) */
table.cart td.product-thumbnail,
table.cart th.product-thumbnail {
    display: table-cell !important;
}
/* Маленькая квадратная картинка в колонке thumbnail */
table.cart td.product-thumbnail .cart-product-img {
    width: 74px !important;
    height: 74px !important;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

/* Контейнер горизонтального скролла для таблицы корзины */
.cart-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 4px;
}

/* Панель "Очистить / Всего" — скрыта по умолчанию, JS управляет display */
.cart-actions-bar {
    display: none;
    width: 100%;
    margin-top: 4px;
}
.cart-actions-bar table {
    width: 100% !important;
}
.cart-actions-total {
    font-size: 0.95em;
    white-space: nowrap;
}

/* На мобильном (<768px): переключаем shop_table_responsive обратно
   в табличный режим — каждый товар остаётся в одну строку */
@media (max-width: 767px) {
    /* Возвращаем шапку таблицы */
    .cart-table-scroll table.shop_table_responsive thead {
        display: table-header-group !important;
    }
    .cart-table-scroll table.shop_table_responsive thead th {
        display: table-cell !important;
        font-size: 0.78em;
        white-space: nowrap;
        padding: 0.5rem 0.4rem;
    }
    /* th.product-remove скрываем — в tbody нет td.product-remove, иначе сдвиг */
    .cart-table-scroll table.shop_table_responsive thead th.product-remove {
        display: none !important;
    }
    /* Каждая ячейка — нормальная table-cell, не block */
    .cart-table-scroll table.shop_table_responsive tr td {
        display: table-cell !important;
        text-align: left !important;
        clear: none !important;
        white-space: nowrap;
        padding: 0.5rem 0.4rem;
        vertical-align: middle;
        /* style.css убивает border-top на мобильном — восстанавливаем для разделителей строк */
        border-top: 1px solid #eceeef !important;
    }
    /* Колонка Товар — разрешаем перенос и сжатие */
    .cart-table-scroll table.cart td.product-name {
        white-space: normal !important;
        min-width: 80px;
        max-width: 160px;
        font-size: 0.82em;
        line-height: 1.3;
        word-break: break-word;
    }
    /* Убираем data-title псевдоэлементы (они для stacked-режима) */
    .cart-table-scroll table.shop_table_responsive tr td:before {
        display: none !important;
    }
    /* position:absolute из style.css позиционирует .remove вне scroll-контейнера.
       Возвращаем relative (чтобы ::before позиционировался внутри него),
       сбрасываем position:absolute и float из мобильного переопределения */
    .cart-table-scroll table.cart a.remove {
        position: relative !important;
        right: auto !important;
        float: none !important;
        display: inline-block;
        margin-left: 6px;
        vertical-align: middle;
    }
    /* Минимальная ширина чтобы контент помещался, остальное — скролл */
    .cart-table-scroll table.cart {
        min-width: 540px;
    }
    /* Картинка на мобильном — чуть компактнее, всегда квадрат */
    table.cart td.product-thumbnail .cart-product-img {
        width: 48px !important;
        height: 48px !important;
        object-fit: contain !important;
    }
    /* Прогрессивный размер текста в Цена и Сумма — как в Товар */
    .cart-table-scroll table.cart td.product-price,
    .cart-table-scroll table.cart td.product-subtotal {
        font-size: 0.82em;
    }
    /* Убираем полоску снизу у последней ячейки строки (колонка Сумма) */
    .cart-table-scroll table.cart tbody tr td:last-child {
        border-bottom: none !important;
    }
    /* Стилизация полосы прокрутки */
    .cart-table-scroll::-webkit-scrollbar {
        height: 4px;
    }
    .cart-table-scroll::-webkit-scrollbar-track {
        background: #f5f5f5;
        border-radius: 3px;
    }
    .cart-table-scroll::-webkit-scrollbar-thumb {
        background: #D6026C;
        border-radius: 3px;
    }
    .cart-table-scroll::-webkit-scrollbar-thumb:hover {
        background: #9d3d6e;
    }
}





/* Мобильный логотип: сохраняем пропорции и предотвращаем "сплющивание" */
@media (max-width: 1024px) {
    .site-header .handheld-header .site-branding .custom-logo-link {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
    }
    
    .site-header .site-branding{
        margin-bottom: 0.333em;
    }

    .site-header .handheld-header .site-branding .custom-logo-link img {
        width: auto !important;
        height: auto !important;
        max-width: 100%;
        max-height: 35px;
        object-fit: contain;
    }
}

.site-logo-image {
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

.site-header .desktop-only .site-branding {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header .desktop-only .site-branding .custom-logo-link {
    width: 100%;
    display: flex;
    justify-content: center;
}

.site-header .desktop-only .site-branding .site-logo-image--desktop {
    margin: 0 auto;
    max-width: 200px;
    max-height: 35px;
}

.site-header .handheld-header .site-branding {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header .handheld-header .site-branding .custom-logo-link {
    width: 100%;
    display: flex;
    justify-content: center;
}

.site-header .handheld-header .site-branding .site-logo-image--mobile {
    margin: 0 auto;
    max-width: 140px;
    max-height: 48px;
}

.footer-contact .footer-logo {
    display: flex;
    justify-content: center;
}

.footer-contact .footer-logo .custom-logo-link {
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-contact .footer-logo .site-logo-image--footer {
    margin: 0 auto;
    max-width: 200px;
    max-height: 60px;
}


/* Мобильный логотип: сохраняем пропорции и предотвращаем "сплющивание" */




/* ============================================================
   СТАТЬИ: кнопка "Подробнее"
   ============================================================ */
.article-toggle-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 0.5em 1.2em;
    background: #D6026C;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s;
}

.article-toggle-btn:hover {
    background: #9d3d6e;
}

@media (max-width: 575px) {
    .article-toggle-btn {
        font-size: 0.85em;
        padding: 0.45em 1em;
    }
}

/* Убираем стили фокуса/активности для кнопки О нас */
.article-toggle-btn,
.article-toggle-btn:link,
.article-toggle-btn:visited,
.article-toggle-btn:focus,
.article-toggle-btn:active {
    outline: none !important;
    box-shadow: none !important;
    background: #D6026C !important;
    color: #fff !important;
    border: none !important;
}

.article-toggle-btn:hover {
    background: #9d3d6e !important;
    color: #fff !important;
}

/* Выравнивание кнопки вправо */
.entry-content .woocommerce .onas-toggle-btn {
    display: block;
    margin-left: auto;
    margin-right: 0;
    width: fit-content;
}

/* ============================================================
   О НАС: адаптивное отображение текста
   ============================================================ */

/* Десктоп - всегда показываем полный текст */
@media (min-width: 768px) {
    .onas-short-text {
        display: none !important;
    }
    .onas-full-text {
        display: block !important;
    }
    .onas-toggle-btn {
        display: none !important;
    }
}

/* Мобильные - короткий текст по умолчанию */
@media (max-width: 767px) {
    .onas-hidden {
        display: none;
    }
    
    /* Отступы от краев для мобильных - только для блока О нас */
    .entry-content .woocommerce .onas-short-text,
    .entry-content .woocommerce .onas-full-text {
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* ============================================================
   МОБИЛЬНЫЕ ОТСТУПЫ: для страниц Мастер/Опт (< 1200px)
   ============================================================ */
@media (max-width: 1199px) {
    /* Отступы от краев для .entry-content .woocommerce */
    /* НЕ применяется на главной странице (где есть .home класс на body) */
    body:not(.home) .entry-content .woocommerce {
        padding-right: 15px;
        padding-left: 15px;
    }
    
    form.track_order {
        margin-right: 15px;
    margin-left: 15px;
}

.row.contact-info {
    margin-right: 15px !important;
    margin-left: 15px !important;
}
    

.page .hentry.type-page .entry-header {
  
    margin-bottom: 1.438em !important;
   
}


}

/* ============================================================
   О НАС (ABOUT US): блок .text-block на всю ширину
   ============================================================ */

/* Родительские контейнеры на всю ширину */
/*.contact-info .left-col {*/
/*    width: 100% !important;*/
/*    max-width: 100% !important;*/
/*    flex: 0 0 100% !important;*/
/*}*/

/* стало — только на мобильных (до 767px) */
@media (max-width: 767px) {
    .contact-info .left-col { width:100% !important; max-width:100% !important; flex:0 0 100% !important; }
}

.text-block {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 1 1 100% !important;
}

.text-block h2.contact-page-title {
    width: 100% !important;
}

/* Все div внутри .text-block тоже на всю ширину */
.text-block > div {
    width: 100% !important;
    max-width: 100% !important;
    text-align: justify !important;
}

/* Родительские контейнеры для .text-block */
.text-block:parent,
.text-block::before {
    width: 100% !important;
}

/* ============================================================
   О НАС: унификация стилей текста (как в блоке Опт)
   ============================================================ */

/* Все параграфы выравниваем по justify */
.entry-content .woocommerce .onas-short-text p,
.entry-content .woocommerce .onas-full-text p {
    text-align: justify !important;
    margin-bottom: 1em;
}

/* Нормализация жирного текста - умеренная жирность */
.entry-content .woocommerce .onas-short-text b,
.entry-content .woocommerce .onas-full-text b,
.entry-content .woocommerce .onas-short-text strong,
.entry-content .woocommerce .onas-full-text strong,
.entry-content .woocommerce .onas-short-text span[style*="font-weight: bolder"],
.entry-content .woocommerce .onas-full-text span[style*="font-weight: bolder"],
.entry-content .woocommerce .onas-short-text span[style*="font-weight:bolder"],
.entry-content .woocommerce .onas-full-text span[style*="font-weight:bolder"] {
    font-weight: 500 !important; /* Полужирный, не слишком толстый */
}

/* Убираем лишние inline стили размера шрифта */
.entry-content .woocommerce .onas-short-text span[style*="font-size"],
.entry-content .woocommerce .onas-full-text span[style*="font-size"] {
    font-size: inherit !important;
}

/* Единый стиль для всего текста */
.entry-content .woocommerce .onas-short-text,
.entry-content .woocommerce .onas-full-text {
    font-size: 1.2rem;
    line-height: inherit;
    color: #1f1f1f;
}

#content #primary {
   
    padding-right: 3px;
    padding-left: 3px;
}


/* ============================================================
   КАТЕГОРИИ: квадратные изображения с одинаковой высотой
   ============================================================ */

/* Контейнер для изображения - квадратный */
.product-category a {
    display: block;
    position: relative;
}

/* Изображения категорий */
.product-category img {
    width: 100% !important;
    height: 200px !important; /* Desktop большой (>1400px) */
    object-fit: contain !important; /* Сохраняем пропорции */
    background: #ffffff !important; /* Белый фон для пустого пространства */
    display: block;
}

/* Desktop средний (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .product-category img {
        height: 200px !important;
    }
}

/* Tablet большой (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .product-category img {
        height: 180px !important;
    }
}

/* Tablet средний (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .product-category img {
        height: 160px !important;
    }
}

/* Mobile большой (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .product-category img {
        height: 140px !important;
    }
}

/* Mobile маленький (< 576px) */
@media (max-width: 575px) {
    .product-category img {
        height: 120px !important;
    }
}



/* === Overflow-меню ("...") всегда справа, не уходит за экран === */
/* ID-селектор перебивает любые !important на классах из style.css */
#menu-secondary-menu .techmarket-flex-more-menu-item .overflow-items.dropdown-menu {
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    transform: none !important;
    will-change: auto !important;
    min-width: 220px;
    max-width: calc(100vw - 20px);
    position: absolute !important;
}

/* === Мобильная auth-панель (по клику на иконку аккаунта) === */
/* Сам .mobile-auth-panel = полупрозрачный backdrop; закрывается кликом вне inner */
.mobile-auth-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900001;
    background: rgba(0, 0, 0, .5);
}

.mobile-auth-panel.is-open {
    display: block;
}

/* Белая полоска на всю ширину сверху */
.mobile-auth-panel-inner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 900002;
    box-shadow: 0 3px 16px rgba(0, 0, 0, .2);
    padding: 4px 0;
}

/* Flex-строка: ссылки слева, крестик справа */
.mobile-auth-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 4px !important;
}

.mobile-auth-links > .menu-item {
    flex: 1 1 0;
    text-align: center;
}

.mobile-auth-links > .menu-item > a {
    display: block;
    padding: 12px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #333e48;
}

/* Имя пользователя — не кликабельно, приглушено */
.mobile-auth-panel .hmenu-username-item > a {
    pointer-events: none;
    opacity: .5;
    cursor: default;
    font-weight: 600;
}

/* Кнопка Выйти */
.mobile-auth-panel .hmenu-logout-item > a {
    color: #D6026C !important;
}

/* Крестик — фиксированная ширина, справа */
.mobile-auth-links > .hmenu-close-item {
    flex: 0 0 auto;
}

.mobile-auth-links > .hmenu-close-item > a {
    display: block;
    padding: 10px 16px;
    font-size: 20px;
    line-height: 1;
    color: #333e48 !important;
    font-weight: 300;
}




/* ============================================================
   ОФОРМЛЕНИЕ ЗАКАЗА: блок «Бесплатная доставка»
   ============================================================ */
.woocommerce-checkout .woocommerce-info.free-delivery-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25em 0 1.5em;
    padding: 0.9em 1.25em;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #f6cfe0;
    border-left: 4px solid #D6026C;
    border-radius: 6px;
    color: #333e48;
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1.45;
    list-style: none;
}

/* Иконка грузовика фирменным цветом */
.woocommerce-checkout .woocommerce-info.free-delivery-notice::before {
    content: "\f0d1";
    /* fa-truck */
    font-family: FontAwesome;
    color: #D6026C;
    font-size: 1.5em;
    line-height: 1;
    flex: 0 0 auto;
}

/* Отключаем дефолтную стрелку/фон темы для этого блока */
.woocommerce-checkout .woocommerce-info.free-delivery-notice::after {
    content: none !important;
    display: none !important;
}

.woocommerce-checkout .woocommerce-info.free-delivery-notice a {
    color: #D6026C;
    text-decoration: underline;
}

.woocommerce-checkout .woocommerce-info.free-delivery-notice a:hover {
    color: #9d3d6e;
}

@media (max-width: 575px) {
    .woocommerce-checkout .woocommerce-info.free-delivery-notice {
        font-size: 0.9em;
        padding: 0.8em 1em;
        gap: 9px;
    }
}



