/********************************************************
			Coderplace Custom Styles
********************************************************/
/* Единая сетка — 3 в ряд */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 30px;
    justify-items: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}
#_desktop_cart .icon_menu {
    position: relative;
}
.lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*gap: 8px;*/
}

.lang-label {
    display: inline-block;
}

.flag-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #7cc04b;     /* зелёная рамка */
    background: #fff;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    /*justify-content: center;*/
}

.flag-circle img {
    width: 100%;
    height: 140%;
    border-radius: 50%;            /* флаг тоже скругляем */
    object-fit: cover;
    display: block;
}
/* Якорь для счётчика */
/* иконка становится якорем */
/* якорь — ровно область иконки */
/* столбик как в оригинале */
#_desktop_cart .icon_menu{
    position: relative;
    display: inline-block;
}
#_desktop_cart .cart-products-counthome,
#_desktop_cart .cart-products-counthome-not-empty{
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-40%, -50%);

    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    padding: 0;              /* ← ВАЖНО */

    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;

    z-index: 10;
    pointer-events: none;
}



#_desktop_cart .cart-products-counthome{
    background: #7cc04b;
}

#_desktop_cart .cart-products-counthome-not-empty{
    background: #e53935;
}




/* Унифицированный контейнер логотипа */
.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 240px; /* фиксированная ширина карточки */
    height: 120px; /* одинаковая высота всех */
    /*background: #fff;*/
    /*border: 1px solid #eee;*/
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* hover-эффект */
.brand-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Унификация самих логотипов */
.brand-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain; /* сохраняет пропорции */
    /*filter: grayscale(100%);*/
    opacity: 0.9;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

/* При наведении */
.brand-item:hover img {
    filter: none;
    opacity: 1;
}

/* Адаптив */
@media (max-width: 768px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-item {
        max-width: 180px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .brand-grid {
        grid-template-columns: 1fr;
    }

    .brand-item {
        max-width: 160px;
        height: 90px;
    }
}

.tm-carousel {
    display: none;
    position: relative;
    float: left;
    width: 100%;
    margin: 0;
}

.cp-carousel {
    display: none;
    position: relative;
    float: left;
    width: 100%;
    margin: 0;
}

.owl-carousel .owl-wrapper {
    display: none;
    position: relative;
    -webkit-transform: translate3d(0px, 0px, 0px);
    -ms-transform: translate3d(0px, 0px, 0px);
    -o-transform: translate3d(0px, 0px, 0px);
    -moz-transform: translate3d(0px, 0px, 0px);
    display: flex !important;
    flex-wrap: wrap;
}

.owl-carousel .owl-wrapper:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.owl-carousel .owl-wrapper-outer {
    overflow-x: clip;
    position: relative;
    float: left;
    width: 100%;
    padding: 0;
}

.owl-carousel .owl-wrapper-outer.autoHeight {
    -webkit-transition: height 500ms ease-in-out;
    -moz-transition: height 500ms ease-in-out;
    -ms-transition: height 500ms ease-in-out;
    -o-transition: height 500ms ease-in-out;
    transition: height 500ms ease-in-out;
}

.owl-carousel .owl-item {
    float: left;
    display: flex;
    height: auto;
}

.owl-carousel .owl-item .manu_image a {
    display: inline-block;
}

.owl-carousel .owl-item .manu_image a img {
    max-width: 100%;
}

.owl-carousel .owl-wrapper,
.owl-carousel .owl-item {
    /* fix */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    text-align: center;
}

/* mouse grab icon */
.customNavigation {
    position: absolute;
    z-index: 9;
    width: 100%;
    top: 50%;
    direction: ltr !important;
    right: 0;
    left: auto;
    opacity: 0;
    -khtml-opacity: 0;
    -webkit-opacity: 0;
    -moz-opacity: 0;
}

.products .customNavigation {
    top: 48%;
}

.tmcategorylist .customNavigation, .testimonial-block-part .customNavigation {
    top: 54%;
}

.tmcategorylist:hover .customNavigation {
    opacity: 1;
    -khtml-opacity: 1;
    -webkit-opacity: 1;
    -moz-opacity: 1;
}

.customNavigation a.prev::before {
    content: "\E314";
    font-family: "Material Icons";
    position: absolute;
    font-size: 20px;
    right: 5px;
    top: -1px;
    color: #808080;
}

.customNavigation a.next::before {
    content: "\E315";
    font-family: "Material Icons";
    position: absolute;
    font-size: 20px;
    position: absolute;
    right: 3px;
    top: -1px;
    color: #808080;
}

#tmtestimonialcmsblock .customNavigation {
    top: -24px;
    z-index: 5;
    right: 15px;
}

#index #tmtestimonialcmsblock .customNavigation {
    top: -40px;
    right: 0;
}

.special-products .customNavigation {
    top: 52%;
}

.special-products:hover .customNavigation,
.products:hover .customNavigation,
.testimonial-block-part:hover .customNavigation,
.tmblog-latest:hover .customNavigation,
#tminstagramblock:hover .customNavigation,
.product-accessories:hover .customNavigation,
.productscategory-products:hover .customNavigation {
    opacity: 1;
    -khtml-opacity: 1;
    -webkit-opacity: 1;
    -moz-opacity: 1;
}

.lastest_block .customNavigation {
    top: 44%;
}

.customNavigation i {
    color: #222 !important;
    cursor: pointer;
    font-size: 0;
    font-weight: 500;
    height: 38px;
    line-height: 32px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    text-align: center;
    width: 38px;
    background: transparent;
    border-radius: 0;
    font-style: unset;
    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.11);
}

.customNavigation i.prev {
    background: transparent;
    right: auto;
    background: #fff;
    border-radius: 50%;
    left: -5px;
}

.customNavigation i.next {
    background: transparent;
    right: 0px;
    background: #fff;
    border-radius: 50%;
    right: -5px;
}

.tmcategorylist .customNavigation i.prev,
.testimonial-block-part .customNavigation i.prev,
#tminstagramblock .btn.prev.instagram_prev,
.special-products .customNavigation i.prev {
    left: -20px;
}

.tmcategorylist .customNavigation i.next,
.testimonial-block-part .customNavigation i.next,
#tminstagramblock .btn.next.instagram_next,
.special-products .customNavigation i.next {
    right: -20px;
}

.customNavigation i.prev::before {
    content: '';
    -webkit-mask-image: url(../img/megnor/pro-left.svg);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-image: url(../img/megnor/pro-left.svg);
    mask-position: center;
    mask-repeat: no-repeat;
    background-color: #000;
    mask-size: 14px;
    font-size: 14px;
    width: 38px;
    height: 38px;
    display: block;
    -webkit-mask-size: 14px;
}

#tmtestimonialcmsblock .customNavigation i.prev::before {
    right: 1px;
    font-weight: 500;
}

#tmtestimonialcmsblock .customNavigation i.next::before {
    right: 0;
    font-weight: 500;
}

.customNavigation i.next::before {
    content: '';
    -webkit-mask-image: url(../img/megnor/pro-right.svg);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-image: url(../img/megnor/pro-right.svg);
    mask-position: center;
    mask-repeat: no-repeat;
    background-color: #000;
    mask-size: 14px;
    font-size: 14px;
    width: 38px;
    height: 38px;
    display: block;
    -webkit-mask-size: 14px;
}

.customNavigation i.next:hover::before, .customNavigation i.prev:hover::before {
    color: #fff;
}

#cpleftbanner1 img,
#cpleftbanner2 img {
    max-width: 100%;
}

#cpleftbanner1 li,
#cpleftbanner2 li {
    overflow: hidden;
    position: relative;
    float: left;
    border-radius: 5px;
}

#cpleftbanner1 li a,
#cpleftbanner2 li a {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: top;
}

.footer-container .links.lastest_block .customNavigation i.prev:hover {
    color: #9bbab1 !important;
}

.footer-container .links.lastest_block .customNavigation i.next:hover {
    color: #9bbab1 !important;
}

@media (max-width: 1449px) {
    .tmcategorylist .customNavigation i.prev,
    .testimonial-block-part .customNavigation i.prev,
    #tminstagramblock .btn.prev.instagram_prev,
    .special-products .customNavigation i.prev {
        left: -15px;
    }

    .tmcategorylist .customNavigation i.next,
    .testimonial-block-part .customNavigation i.next,
    #tminstagramblock .btn.next.instagram_next,
    .special-products .customNavigation i.next {
        right: -15px;
    }

    .customNavigation i.next {
        right: 0;
    }

    .customNavigation i.prev {
        left: 0;
    }
}

@media (max-width: 1199px) {
    #tmtestimonialcmsblock .customNavigation {
        top: -36px;
        z-index: 5;
        right: -18px;
    }
}

@media (max-width: 991px) {
    #cpleftbanner1 li img,
    #cpleftbanner2 li a {
        width: auto;
    }

    #tmtestimonialcmsblock .customNavigation {
        top: 0;
        right: 0;
    }
}

@media (max-width: 767px) {
    .customNavigation {
        opacity: 1;
        -khtml-opacity: 1;
        -webkit-opacity: 1;
        -moz-opacity: 1;
    }

    .tmcategorylist .customNavigation i.prev,
    .testimonial-block-part .customNavigation i.prev,
    #tminstagramblock .btn.prev.instagram_prev,
    .special-products .customNavigation i.prev,
    .btn.prev.accessories_prev {
        left: 0;
    }

    .tmcategorylist .customNavigation i.next,
    .testimonial-block-part .customNavigation i.next,
    #tminstagramblock .btn.next.instagram_next,
    .special-products .customNavigation i.next,
    .btn.next.accessories_next {
        right: 0;
    }

    #main .images-container .js-qv-mask .customNavigation {
        top: 45px;
    }

    .quickview .mask.additional_slider .customNavigation i.prev {
        left: -10px !important;
    }

    .quickview .mask.additional_slider .customNavigation i.next {
        right: -10px !important;
    }

    .btn.next.brand_next {
        left: auto;
        right: 0;
        position: absolute;
    }

    .btn.prev.brand_prev {
        left: 0;
        right: auto;
    }

    .customNavigation i.next {
        left: auto;
        right: 0;
    }
}

@media (max-width: 480px) {
}

@media (max-width: 1200px) {

  /* Контейнер кнопки — превращаем в блочный и убираем лишние отступы */
  #products .grid article.product_item .product-bottom .add-to-cart-button,
  .product_list article.product_item .product .product-bottom .add-to-cart-button {
    position: relative !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    padding: 0 !important;
    margin: 12px 0 0 0 !important;

    background: none !important;
    border-radius: 8px !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  /* Убираем "прятание" кнопки через not(:hover) */
  .product-miniature:not(:hover) .add-to-cart-button {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  /* Сама кнопка — делает визуал как на твоём втором скрине */
  .product-bottom .add-to-cart-button .btn,
  .product-bottom .add-to-cart-button button {
    display: block !important;
    width: 100% !important;
    border-radius: 8px !important;
    padding: 14px 0 !important;
    font-size: 15px !important;
  }
}

/* Правим поведение “Каталога” на ширине до 1200px */
@media (max-width: 1199.98px) {
    /* сам контейнер шапки – в ряд */
    .header-top-main.bg_main > .container {
        display: flex;
        align-items: center;
    }

    /* блок с Каталогом: НЕ на всю ширину */
    .header-top-main.bg_main > .container #cp_vertical_menu_top {
        width: 200px !important;          /* подгони под свою ширину */
        display: inline-block !important;
        position: relative !important;
    }

    /* выпадающее меню: как на десктопе – под “Каталогом”, поверх контента */
    .header-top-main.bg_main > .container #cp_vertical_menu_top #_desktop_top_menu {
        position: absolute !important;
        left: 0;
        top: 100%;
        width: 200px !important;          /* совпадает с шириной блока */
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        visibility: visible !important;
        z-index: 20 !important;
    }

    /* поиск – занимает всё оставшееся справа */
    .header-top-main.bg_main > .container #search_block_top {
        flex: 1 1 auto;
        margin-left: 20px !important;     /* если нужен отступ от “Каталога” */
        float: none !important;
    }

    #cp_vertical_menu_top{
        max-width: 60px !important;
    }
}

.footer-after .container {
    text-align: center;
}

#blockcart-modal .cart-content-btn button[data-dismiss="modal"] {
    /*background: #7ED957 !important; !* светло-зелёный *!*/
    /*border-color: #7ED957 !important;*/
    color: #ffffff !important;      /* белый текст */
}

/* правая выезжающая корзина на весь экран по высоте */
/* Фиксация корзины чтобы всегда выезжала с самого верха */
/* Корзина: всегда над шапкой и всеми элементами */
/* Корзина справа: выезжает С ВЕРХА ЭКРАНА (визуально) */
/* Панель корзины — выезжает строго с самого верха окна */
@media (min-width: 1200px) {
    #_desktop_cart .cart_block {
        position: fixed !important;
        /*top: -148px !important; /* поднимаем на высоту шапки */
        right: 0 !important;
        width: 480px; /* можешь изменить под свой дизайн */
        height: calc(100vh - 0px) !important;
        max-height: calc(100vh + 148px) !important;
        overflow-y: hidden;
        z-index: 100000 !important;
    }

    /* Анимация открытия */
    body.menu_shown .cart_block {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }
}

/* Обёртка списков подкатегорий */
#subcategories ul.subcategories-list {
    display: flex;
    flex-wrap: wrap;
    /*justify-content: center;             !* центрируем *!*/
    gap: 15px;                           /* расстояние между блоками */
    padding: 15px 0;
}

/* Элемент подкатегории */
#subcategories ul.subcategories-list li .subcategory-name {
    list-style: none;
    border: 2px solid #59b210;           /* зелёная рамка */
    border-radius: 8px;                  /* скругление углов */
    padding: 10px 18px;
    text-align: center !important;
    min-width: 160px;                    /* чтобы блоки были ровнее */
    transition: 0.25s ease;
}

/* Текст-ссылка внутри */
#subcategories ul.subcategories-list li a {
    font-size: 16px;
    font-weight: 600;
    color: #333;                         /* текст чёрный */
    display: block;
}

/* Ховер */
#subcategories ul.subcategories-list li:hover {
    background: #59b210;                 /* зелёный фон при наведении */
}

#subcategories ul.subcategories-list li:hover a {
    color: #ffffff !important;
}

/* Блок цены в корзине (основной, на странице cart) */
body#cart .product-line-grid .product-price {
    display: flex;
    /*justify-content: flex-end;   !* цена справа *!*/
}

/* current-price имеет ширину по тексту, не занимает всю линию */
body#cart .product-line-grid .product-price .current-price {
    display: inline-block;
}

/* Цена не переносится */
body#cart .product-line-grid .product-price .price {
    white-space: nowrap;
}


/* ↓ Эти правила актуальны, но правим одно — nowrap убираем с родителя */

/* [Оставляем strong — норм] */
.cart-item .product-price strong {
    font-size: 16px;
}

/* [Оставляем фикс крестика — верно] */
.cart-item .product-line-grid-right .delete {
    flex-shrink: 0;
    margin-left: 12px;
}

/* ❗ Убираем nowrap — он мешал */
.cart-item .product-price {
    text-align: right; /* оставить можно */
    /* white-space: nowrap — удаляем */
}

@media (max-width: 1200px) {
    .carousel .caption,
    .carousel .caption .slide-text {
        width: 45%;        /* Ограничиваем ширину текста */
        max-width: 60%;
        left: 10px;        /* Прижимаем к левому краю */
        right: auto;
        white-space: normal; /* Разрешаем переносы строк */
        word-wrap: break-word;
    }

    .carousel .caption .slidertext1,
    .carousel .caption .slidertext2,
    .carousel .caption .slidertext3 {
        font-size: 12px !important;
        line-height: 1.3 !important;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .carousel .caption .slidertext1,
    .carousel .caption .slidertext2,
    .carousel .caption .slidertext3 {
        font-size: 12px !important;
        line-height: 1.3 !important;
        text-align: left;
    }
}

section.brands .products-section-title {
    font-size: 24px !important;    /* Сделать больше */
    color: #7AC943 !important;      /* Зелёный цвет (как на сайте) */
    /*font-weight: 700;               !* Чуть жирнее, чтобы смотрелось лучше *!*/
}

.featured-block-wrapper .products-section-title {
    font-size: 20px !important;
    color: #7AC943 !important;
}

/* Мобильная версия: до 768px делаем кнопки по одной в строке */
@media (max-width: 768px) {
    #subcategories ul.subcategories-list {
        flex-wrap: nowrap;          /* больше не пытаемся уместить несколько в ряд */
        flex-direction: column;     /* столбиком */
        gap: 10px;                  /* расстояние между кнопками */
    }

    #subcategories ul.subcategories-list li {
        width: 100%;
    }

    #subcategories ul.subcategories-list li .subcategory-name {
        min-width: auto;            /* убираем минимальную ширину */
        width: 100%;                /* кнопка на всю ширину */
        box-sizing: border-box;     /* чтобы рамка+паддинги влазили в 100% */
        text-align: center;
    }
}

@media (max-width: 992px) {
    #subcategories ul.subcategories-list li {
        flex: 0 0 calc(50% - 10px); /* две в ряд */
    }

    #subcategories ul.subcategories-list li .subcategory-name {
        min-width: auto;
        width: 100%;
        box-sizing: border-box;
    }
}
/* насильно показываем товары в блоке "Популярні товари" */
.featured-products .products {
    display: block !important;
}

.featured-products .products .featured_grid {
    display: flex !important;
    flex-wrap: wrap;
}

.featured-products .products .product_item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* на всякий случай делаем карточку видимой */
.featured-products .product-miniature {
    display: block !important;
}

.featured-block-wrapper {
    position: relative;
    width: 100%;
    display: inline-block;
    clear: both;
    margin: 30px 0;
    padding: 0;
    vertical-align: top;
}

/* Высота шапки — подгони под свою (обычно ~70–90px) */
:root {
    --header-height: 80px !important;
}

/* Базовое состояние хедера */
.header-top-main.bg_main {
    position: relative !important;
    z-index: 1100 !important;
    width: 100% !important;
    height: var(--header-height) !important;
}

/* Состояние, когда JS добавляет класс fixed */
.header-top-main.bg_main.fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1200 !important;
    height: var(--header-height) !important;   /* высота НЕ меняется */
    width: 100% !important;
    /*background: inherit !important;*/
    transition: box-shadow .2s ease !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08) !important; /* можно убрать */
}

/* Чтобы контент не подпрыгивал */
body.header-fixed-active {
    padding-top: var(--header-height) !important;
}

@media (max-width: 1200px) {
    .language-selector-wrapper{
        z-index: 999999 !important;
    }
}

/* Мобильный sticky-header только через CSS */
@media (max-width: 991px) {
    .header-top-main.bg_main {
        position: sticky !important;
        top: 0 !important;
        left: 0;
        right: 0;
        z-index: 1200 !important;
        height: var(--header-height) !important;
    }

    /* На мобилках паддинг для body не нужен */
    body.header-fixed-active {
        padding-top: 0 !important;
    }
}

/* Десктоп: JS добавляет fixed и body получает отступ */
@media (min-width: 992px) {
    body.header-fixed-active {
        padding-top: var(--header-height) !important;
    }
}

/* Убираем заголовок шага Addresses */
#checkout-addresses-step .step-title,
#checkout-addresses-step h2,
#checkout-addresses-step .checkout-step-title {
    display: none !important;
}
#checkout-addresses-step .card,
#checkout-addresses-step .checkout-step-title,
#checkout-addresses-step .step-title {
    display: none !important;
}
/*!* Убираем "рамку/отступы" только у шага Addresses *!*/
body#checkout #checkout-addresses-step.checkout-step {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/*!* На всякий случай скрываем заголовок шага, чтобы не оставался пустой блок *!*/
body#checkout #checkout-addresses-step .step-title {
    display: none !important;
}
.step-number{
    display: none !important;
}


@media (max-width: 768px) {
    .zoomContainer,
    .ZoomContainer,
    .zoomWindowContainer,
    .zoomLens,
    .zoomWindow {
        display: none !important;
    }

    /* на всякий случай, чтобы не перехватывал клики */
    .zoomWrapper,
    .zoomWrapper img {
        pointer-events: auto !important;
    }
}

/* Мини-спиннер для кнопки */
button.is-loading {
    opacity: 0.85;
    pointer-events: none;
}

button .btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: btnspin 0.7s linear infinite;
}

@keyframes btnspin {
    to { transform: rotate(360deg); }
}

.custom-checkbox label a{
    color: #7AC943 !important;
}
.custom-checkbox label a:hover{
    color: #7AC943 !important;
}
