/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* Мобильная адаптация параллакса 2 */
@media (max-width: 767px) {
    .jarallax-container {
        will-change: transform;
        backface-visibility: hidden;
        perspective: 1000px;
        transform-style: preserve-3d;
    }
    
    .jarallax-container > div {
        transform: translateZ(0.1px) scale(0.99);
        filter: blur(0.4px);
    }
}

/* Мобильная адаптация параллакса */
@media (max-width: 767px) {
    .jarallax-container {
        background-attachment: scroll !important;
        transform: none !important;
        will-change: auto !important;
    }
    
    /* Оптимизация анимаций */
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}



/*стиль таблицы цен в категориях товаров*/

.table {

	width: 100%;

	margin-bottom: 20px;



	border-top: 5px solid #fff;

	border-bottom: 3px solid #fff;

	border-collapse: collapse; 

	outline: 5px solid #EDF2F7;

	font-size: 15px;

	
	
   background: url("/wp-content/uploads/sites/24/2020/04/cropped-buy-22025564_1280-2.png") 99% 3% no-repeat;

             

  background-size: auto 10%;



}


.table th {

	font-weight: bold;

	padding: 7px;

	

	border: none;

	text-align: left;

	font-size: 15px;
	color: #2B6CB0;

	border-top: 3px solid #fff;

	border-bottom: 3px solid #EDF2F7;

}

.table thead tr th:first-child {

	border-radius: 8px 0 0 8px;
	

}

.table thead tr th:last-child {

	border-radius: 0 8px 8px 0;

}

.table tbody td {

	text-align: left;

	border: none;

	padding: 10px 15px;

	font-size: 14px;

	vertical-align: top;

}

.table tbody tr:nth-child(even){

	background: #EDF2F7;

}

.table tbody tr td:first-child {

	border-radius: 8px 0 0 0px;

}

.table tbody tr td:last-child {

	border-radius: 0 8px 8px 0;

}
tr:hover td {
  background: #e8edff;
	
	

}




.woocommerce ul.products li.product .price {
  color: #3182CE;
  font-weight: normal;
  font-size: 1.3em;
}

.woocommerce-LoopProduct-link-title {
  color: #3182CE;
  font-weight: normal;
  font-size: 1.3em;
}


/*Стиль для меток на странице товара */

span.product-tag-badge {
    border-radius: 3px;
    background: #f7f7f7;
    padding: 5px 10px;
    box-shadow: 0px 2px 2px 0px #e3e3e3;
    font-size: 11px;
    margin: 5px;
    display: inline-block;
    line-height: initial;
    min-width: 60px;
    text-align: center;
}


/*Стиль для Артикула на странице товара */

span.sku_wrapper {
    border-radius: 3px;
    background: #f7f7f7;
    padding: 5px 10px;
    box-shadow: 0px 2px 2px 0px #e3e3e3;
    font-size: 11px;
    margin: 5px;
    display: inline-block;
    line-height: initial;
    min-width: 60px;
    text-align: center;
}


/*Стиль для Категории на странице товара */

span.posted_in {
    border-radius: 3px;
    background: #f7f7f7;
    padding: 5px 10px;
    box-shadow: 0px 2px 2px 0px #e3e3e3;
    font-size: 11px;
    margin: 5px;
    display: inline-block;
    line-height: initial;
    min-width: 60px;
    text-align: center;
}


/*Стиль для Меток под Категорией на странице товара */

span.tagged_as {
    border-radius: 3px;
    background: #f7f7f7;
    padding: 5px 10px;
    box-shadow: 0px 2px 2px 0px #e3e3e3;
    font-size: 11px;
    margin: 5px;
    display: inline-block;
    line-height: initial;
    min-width: 60px;
    text-align: center;
}

/*Стиль для меток на странице товара */

span.cr_gtin {
    border-radius: 3px;
    background: #f7f7f7;
    padding: 5px 10px;
    box-shadow: 0px 2px 2px 0px #e3e3e3;
    font-size: 11px;
    margin: 0px;
    display: block flow;
    line-height: initial;
    min-width: 60px;
    text-align: center;
}

/*Отключили показ мета в карточке товара GTIN и Бренд */
span.cr_gtin {display: none !important;}

span.cr_brand {display: none !important;}


.woocommerce table.shop_attributes th {
    
  width: 550px !important;

}


/*Атрибуты которые парсятся с вики выводятся в 2 колонки в категориях товаров */

.attributes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.attribute-column {
    flex: 1 1 calc(50% - 20px);
}

@media (max-width: 768px) {
    .attribute-column {
        flex: 1 1 100%;
    }
}


/* Выравнивание первого столбца таблицы атрибутов по левому краю */
.woocommerce-product-attributes-item__label {
    text-align: left !important;
}

/* Галерея товаров */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .product-gallery {
        grid-template-columns: 1fr;
    }
}



/* Стили для калькулятора на сртанице цен */






/* Общие стили */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-sidebar {
    flex: 1 1 30%;
}

.filter-description {
    flex: 1 1 70%;
}

#filtered-products {
    width: 100%;
    margin-top: 20px;
}

#filtered-products ul {
    list-style: none;
    padding: 0;
}

#filtered-products li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .filter-sidebar,
    .filter-description {
        flex: 1 1 100%;
    }

    .filter-description {
        margin-top: 20px;
    }
}




.wcfm-category-header {
    margin-bottom: 20px;
    text-align: center;
}

.wcfm-category-image {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 200px; /* Высота фото категории */
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcfm-category-image h2 {
    margin: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон для текста */
    padding: 10px 20px;
    border-radius: 5px;
}

.wcfm-category-image h2 a {
    color: #fff; /* Белый цвет текста */
    text-decoration: none;
    font-size: 1.5em;
}

.wcfm-vendors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки на ПК */
    gap: 20px;
    margin-bottom: 40px;
}

.wcfm-vendor-column {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center; /* Выравнивание по центру */
    display: flex;
    flex-direction: column;
    align-items: center; /* Выравнивание по центру */
}

.wcfm-vendor-info h3 {
    margin: 0 0 10px;
}

.wcfm-vendor-info h3 a {
    text-decoration: none;
    color: #333;
}

.wcfm-vendor-address {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
}

.wcfm-vendor-products {
    display: flex;
    flex-direction: column;
    align-items: center; /* Выравнивание по центру */
    gap: 10px;
    width: 100%;
}

.wcfm-vendor-products h4 {
    margin: 0 0 10px;
    font-size: 1.1em;
    color: #333;
}

.wcfm-vendor-prices {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.wcfm-vendor-prices caption {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.wcfm-vendor-prices th,
.wcfm-vendor-prices td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.wcfm-vendor-prices th {
    background-color: #f9f9f9;
}

.product-attributes {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

.product-attribute {
    margin-bottom: 3px;
}

.wcfm-all-prices-link {
    margin-top: 10px;
}

.wcfm-all-prices-link a {
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
}

.wcfm-all-prices-link a:hover {
    text-decoration: underline;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .wcfm-vendors-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на мобильных */
    }
}

@media (max-width: 480px) {
    .wcfm-vendors-grid {
        grid-template-columns: 1fr; /* 1 колонка на очень маленьких экранах */
    }
}






/* Скрывает текст со ссылками на сайт jedge.me на странице товара во Вкладке Добавить Отзыв */
.jdgm-form__fieldset p:last-child, 
.jdgm-form__fieldset .disclaimer-text {
    display: none !important;
}


/* Стиль для окна поиска на ПК в шапке */
.is-form-style.is-form-style-3 input.is-search-input {
    border: 1px solid #fff; /* светло-серая рамка */
    border-radius: 5px;       /* скругление углов 5px */
    padding: 5px 10px;       /* отступы внутри поля (опционально) */
    background-color: #fff;  /* белый фон (опционально) */
}

/* Увеличение размера названия сайта в мобильной версии */
@media (max-width: 768px) {
    .site-title {
        font-size: 20px !important;
        line-height: 0.9 !important;

    }
}

	    /* Переносим весь верхний хедер вниз  МОБИЛЬНОЕ МЕНЮ НА ТЕЛЕФОНАХ ВНИЗ*/
@media (max-width: 768px) {
    /* Переносим весь верхний хедер вниз */
    .site-top-header-inner-wrap {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        top: auto !important;
        z-index: 9999 !important;
        background: #fff !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
    }

    /* Стили для контейнера поиска */
    .search-toggle-open-container {
        order: 2 !important; /* Помещаем поиск в конец */
        margin-left: 15px !important;
    }

    /* Стили для навигации */
    nav#secondary-navigation {
        order: 1 !important;
        flex-grow: 1 !important;
    }

    /* Адаптация меню */
    #secondary-menu {
        display: flex !important;
        justify-content: space-around !important;
    }

    /* Корректировка отступов */
    body {
        padding-bottom: 70px !important;
    }

    /* Стили для иконки поиска */
    .search-toggle-open {
        padding: 8px !important;
        background: transparent !important;
        border: none !important;
    }

    .search-toggle-open .kadence-svg-iconset {
        width: 24px !important;
        height: 24px !important;
    }
}
	

/* Поднимаем кнопку чата только на мобильных */
	
@media (max-width: 768px) {
    .joinchat__button {
bottom: 79px !important; /* Поднимаем на 100px от низа */
        opacity: 0.6 !important; /* Делаем немного прозрачной */

    }
	
}	
	
