/*!
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; /* Делаем немного прозрачной */

    }
	
}	








	
/* Стили для Хедера и Футера */
/* ===== СОВРЕМЕННАЯ ШАПКА - ПОЛНОСТЬЮ ПЕРЕПИСАННЫЙ CSS ===== */

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

/* ===== TOP BAR ===== */
.header-top-bar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 6px 0;
    border-bottom: 1px solid #34495e;
}

.header-top-bar .header-container {
    padding: 0 20px;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Top Bar Menu */
.top-bar-menu {
    flex: 1;
}

.mini-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.mini-menu .menu-item {
    margin: 0;
}

.mini-menu .menu-item a {
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.mini-menu .menu-item a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.mini-menu .menu-item:first-child a {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    font-weight: 600;
}

/* Top Bar Actions */
.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Search in Top Bar */
.header-search-top {
    min-width: 160px;
}

.header-search-top form {
    display: flex;
    position: relative;
}

.header-search-top input[type="search"] {
    flex: 1;
    padding: 5px 35px 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.header-search-top input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search-top button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 8px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 10px;
}

/* Phone in Top Bar */
.whatsapp-link-top {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    padding: 5px 10px;
    border: 1px solid #25D366;
    border-radius: 5px;
    background: rgba(37, 211, 102, 0.1);
}

.whatsapp-link-top:hover {
    background: #25D366;
    color: white;
}

/* Wishlist in Top Bar */
.wishlist-contents-top {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid #f39c12;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(243, 156, 18, 0.1);
}

.wishlist-contents-top:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.wishlist-count-top {
    background: #f39c12;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
}

/* ===== MAIN HEADER LINE ===== */
.header-main-line {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #eef2f7;
    padding: 12px 0;
}

.header-main-line .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
}

/* Site Branding - Компактный */
.site-branding-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 150px;
}

.site-logo-mini {
    flex-shrink: 0;
}

.mini-logo {
    height: 40px;
    width: auto;
    border-radius: 3px;
}

.logo-placeholder-mini {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 9px;
}

.site-info-compact {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-title-compact {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #2c3e50;
    letter-spacing: -0.3px;
}

.site-title-compact a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.site-title-compact a:hover {
    color: #3498db;
}

.site-description-compact {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: #7f8c8d;
    line-height: 1.2;
    font-style: italic;
}

/* Main Menu - ГОРИЗОНТАЛЬНО */
.main-menu-inline {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-menu-horizontal {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 0;
    border: 1px solid #dee2e6;
}

.main-menu-horizontal .menu-item {
    position: relative;
    margin: 0;
    border-right: 1px solid #dee2e6;
}

.main-menu-horizontal .menu-item:last-child {
    border-right: none;
}

/* Основной стиль пунктов меню */
.main-menu-horizontal .menu-item > a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    padding: 15px 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    border-radius: 8px;
    margin: 0 2px;
}

/* Стиль при наведении */
.main-menu-horizontal .menu-item > a:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ОСОБЫЙ СТИЛЬ ДЛЯ КАТАЛОГА, БИЗНЕСА, РАЗВЛЕЧЕНИЙ, РЕМОНТА */
.main-menu-horizontal .menu-item.menu-catalog > a,
.main-menu-horizontal .menu-item.menu-business > a,
.main-menu-horizontal .menu-item.menu-entertainment > a,
.main-menu-horizontal .menu-item.menu-repair > a {
    background: linear-gradient(135deg, #ffda63 0%, #f39c12 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

/* Эффект блеска при наведении */
.main-menu-horizontal .menu-item.menu-catalog > a::before,
.main-menu-horizontal .menu-item.menu-business > a::before,
.main-menu-horizontal .menu-item.menu-entertainment > a::before,
.main-menu-horizontal .menu-item.menu-repair > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
}

.main-menu-horizontal .menu-item.menu-catalog > a:hover::before,
.main-menu-horizontal .menu-item.menu-business > a:hover::before,
.main-menu-horizontal .menu-item.menu-entertainment > a:hover::before,
.main-menu-horizontal .menu-item.menu-repair > a:hover::before {
    left: 100%;
}

/* Эффект при наведении для особых пунктов */
.main-menu-horizontal .menu-item.menu-catalog > a:hover,
.main-menu-horizontal .menu-item.menu-business > a:hover,
.main-menu-horizontal .menu-item.menu-entertainment > a:hover,
.main-menu-horizontal .menu-item.menu-repair > a:hover {
    background: linear-gradient(135deg, #ffda63 0%, #f39c12 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* УБИРАЕМ СТРЕЛКИ ИЗ ГЛАВНОГО МЕНЮ */
.main-menu-horizontal .menu-item > a .menu-arrow {
    display: none !important;
}

/* СТИЛЬ ДЛЯ ПОДМЕНЮ */
.main-menu-horizontal .sub-menu {
    position: absolute;
    top: 100%;
    left: 10;
    background: white;
    min-width: 280px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 12px 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 1000;
    border: 1px solid #eef2f7;
    border-top: 3px solid #667eea;
    padding: 0;
    list-style: none;
    max-height: 0;
    overflow: hidden;
}

/* Показываем подменю при наведении */
.main-menu-horizontal .menu-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
    max-height: 500px;
    padding: 10px 0;
}

/* Стиль для пунктов подменю */
.main-menu-horizontal .sub-menu .menu-item {
    border-bottom: 1px solid #f8f9fa;
    margin: 0;
    position: relative;
}

.main-menu-horizontal .sub-menu .menu-item:last-child {
    border-bottom: none;
}

.main-menu-horizontal .sub-menu .menu-item a {
    padding: 12px 25px;
    font-weight: 500;
    font-size: 14px;
    color: #5d6d7e;
    background: transparent !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.main-menu-horizontal .sub-menu .menu-item a:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #667eea !important;
    padding-left: 30px;
    border-left-color: #667eea;
    transform: none;
}

/* Подменю второго уровня */
.main-menu-horizontal .sub-menu .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid #e9ecef;
    margin-left: 15px;
    background: #fafbfc;
}

.main-menu-horizontal .sub-menu .sub-menu .menu-item a {
    font-size: 13px;
    padding: 10px 20px;
    color: #7f8c8d;
}

.main-menu-horizontal .sub-menu .sub-menu .menu-item a:hover {
    color: #667eea;
    background: #f1f3f4 !important;
}

/* Social Links */
.header-social-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.social-link-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f8f9fa;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
    border: 1px solid #e9ecef;
}

.social-link-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link-mini.facebook:hover { background: #1877f2; color: white; }
.social-link-mini.instagram:hover { background: #e4405f; color: white; }
.social-link-mini.twitter:hover { background: #1da1f2; color: white; }
.social-link-mini.youtube:hover { background: #ff0000; color: white; }

/* ===== MOBILE HEADER ACTIONS - ИСПРАВЛЕННЫЕ СТИЛИ ===== */
.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.mobile-whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #2c3e50;
    padding: 6px 10px;
    border: 1px solid #3498db;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(52, 152, 219, 0.1);
}

.mobile-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
    color: #3498db;
    background: rgba(52, 152, 219, 0.2);
}

.whatsapp-icon {
    font-size: 16px;
}

.phone-number {
    white-space: nowrap;
}

/* ===== MOBILE MENU TOGGLE - ИСПРАВЛЕННЫЕ СТИЛИ ===== */
.mobile-menu-toggle {
    display: none;
    flex-shrink: 0;
}

.menu-toggle {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 38px;
    height: 38px;
    justify-content: center;
    align-items: center;
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Mobile Search Bar */
.mobile-search-bar {
    display: none;
    padding: 8px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: white;
    padding: 50px 15px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    border: none;
    font-size: 20px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    transform: scale(1.1);
    background: #c0392b;
}

/* Mobile Menu Content */
.mobile-site-info {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    text-align: center;
}

.site-title-modern {
    font-size: 18px;
    color: #333;
    margin-bottom: 3px;
    font-weight: bold;
}

/* Mobile Menu Grid - КОМПАКТНАЯ СЕТКА 2 КОЛОНКИ */
.mobile-combined-menu {
    margin-bottom: 20px;
}

.mobile-menu-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mobile-menu-grid .menu-item {
    margin: 0;
}

.mobile-menu-grid .menu-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 11px;
    font-weight: 600;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    min-height: 35px;
    line-height: 1.1;
}

.mobile-menu-grid .menu-item a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-1px);
}

.mobile-menu-grid .menu-contact a {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.mobile-menu-grid .menu-contact a:hover {
    background: #1ea952;
}

.mobile-menu-grid .menu-wishlist a {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border-color: #f39c12;
}

.mobile-menu-grid .menu-wishlist a:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

/* Стили для мобильного меню - Недвижимость */
.mobile-menu-grid .menu-realestate-mobile a {
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 100%) !important;
    color: white !important;
    font-weight: 600;
}

.mobile-menu-grid .menu-realestate-mobile a:hover {
    background: linear-gradient(135deg, #4682B4 0%, #36648B 100%) !important;
}

/* Стили для мобильного меню - Добавить объявление */
.mobile-menu-grid .menu-add-listing-mobile a {
    background: linear-gradient(135deg, #ffda63 0%, #f39c12 100%) !important;
    
    color: white !important;
    font-weight: 700;
    position: relative;
    padding-right: 85px !important; /* Увеличить место для подписи */
}

.mobile-menu-grid .menu-add-listing-mobile a:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
}

/* Подпись "Бесплатно" в мобильном меню */
.free-badge-mobile {
    position: absolute;
    down: 6px !important;           /* Поднять вверх */
    right: 10px;
    transform: none !important;    /* Убрать вертикальное центрирование */
    font-size: 10px !important;
    color: #25D366 !important;
    font-weight: 600;
    font-style: italic;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 5px;
    border-radius: 3px;
    line-height: 1;
    z-index: 2;
}

/* Mobile Social Links */
.mobile-social-links {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f8f9fa;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-1px);
}

/* Стили для главного меню в мобильной версии */
.mobile-menu-divider {
    height: 2px;
    background: #eef2f7;
    margin: 20px 0;
    border-radius: 1px;
}

.mobile-main-menu-container {
    margin-bottom: 20px;
}

.mobile-main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-main-menu .menu-item {
    border-bottom: 1px solid #f8f9fa;
}

.mobile-main-menu .menu-item:last-child {
    border-bottom: none;
}

.mobile-main-menu .menu-item a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.mobile-main-menu .menu-item a:hover {
    color: #3498db;
    padding-left: 10px;
}

/* СТИЛИ ДЛЯ МОБИЛЬНОГО АККОРДЕОНА */
.mobile-main-menu .menu-item-has-children > .menu-link {
    position: relative;
    padding-right: 40px;
}

.mobile-main-menu .menu-item-has-children > .menu-link::after {
    content: '▶';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.mobile-main-menu .menu-item-has-children.active > .menu-link::after {
    transform: translateY(-50%) rotate(90deg);
    color: #667eea;
}

.mobile-main-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fafbfc;
    border-left: 3px solid #e9ecef;
    margin-left: 10px;
}

.mobile-main-menu .sub-menu .menu-item a {
    font-size: 14px;
    color: #5d6d7e;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f3f4;
}

.mobile-main-menu .sub-menu .menu-item:last-child a {
    border-bottom: none;
}

.mobile-main-menu .sub-menu .menu-item a:hover {
    background: #f1f3f4;
    color: #667eea;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .main-menu-horizontal .menu-item > a {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .site-title-compact {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none;
    }
    
    .main-menu-inline {
        display: none;
    }
    
    .header-social-compact {
        display: none;
    }
    
    .header-main-line .header-container {
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .site-branding-compact {
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    .site-title-compact {
        font-size: 18px;
    }
    
    .site-description-compact {
        display: none;
    }
    
    /* ВАЖНО: Включаем отображение мобильных действий */
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
    }
    
    /* ВАЖНО: Включаем отображение кнопки меню */
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-search-bar {
        display: block;
    }
    
    .header-search-mobile {
        width: 100%;
    }
    
    .header-search-mobile form {
        display: flex;
        width: 100%;
        position: relative;
    }
    
    .header-search-mobile input[type="search"] {
        flex: 1;
        padding: 8px 40px 8px 12px;
        border: 1px solid #ddd;
        border-radius: 20px;
        font-size: 14px;
    }
    
    .header-search-mobile button {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        padding: 6px 12px;
        background: #3498db;
        color: white;
        border: none;
        border-radius: 15px;
        cursor: pointer;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .mobile-menu-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .mobile-menu-grid .menu-item a {
        font-size: 10px;
        min-height: 32px;
    }
    
    .site-title-compact {
        font-size: 16px;
    }
    
    .mini-logo {
        height: 18px;
    }
    
    .mobile-header-actions {
        gap: 8px;
    }
    
    .mobile-whatsapp-btn {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .phone-number {
        font-size: 11px;
    }
    
    .menu-toggle {
        width: 36px;
        height: 36px;
    }
}

/* Анимация гамбургера - ИСПРАВЛЕННАЯ */
.mobile-menu-overlay.active ~ .header-main-line .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-overlay.active ~ .header-main-line .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-overlay.active ~ .header-main-line .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Убираем конфликтующие стили если есть */
.header-actions-modern .mobile-menu-toggle {
    display: none !important;
}

/* СТРОГИЙ КОНТРОЛЬ РАЗМЕРОВ ЛОГОТИПА */
.site-logo-mini,
.site-branding-compact .mini-logo,
.site-header .custom-logo,
.header-main-line .custom-logo,
.mobile-header .custom-logo {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    max-width: 150px !important;
    object-fit: contain;
}

/* Для всех возможных мест где может быть логотип */
img[src*="logo"],
img[alt*="logo"],
img[class*="logo"],
.custom-logo,
.site-logo,
.header-logo,
.logo-image {
    height: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    object-fit: contain;
}

/* Для мобильных */
@media (max-width: 768px) {
    .site-logo-mini,
    .site-branding-compact .mini-logo,
    .site-header .custom-logo,
    .header-main-line .custom-logo,
    .mobile-header .custom-logo,
    img[src*="logo"],
    img[alt*="logo"],
    img[class*="logo"],
    .custom-logo,
    .site-logo,
    .header-logo,
    .logo-image {
        height: 40px !important;
        max-height: 40px !important;
        width: auto !important;
        max-width: 120px !important;
    }
}

/* Переопределение для Kadence theme если нужно */
.site-branding .site-branding-inner .site-logo-container img {
    height: 40px !important;
    max-height: 40px !important;
}

/* Кнопка Добавить Объявление */
.free-badge {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 10px;
    color: #25D366;
    font-weight: 600;
    font-style: italic;
    white-space: nowrap;
    line-height: 1;
}

/* ===== СТИЛИ ФУТЕРА ===== */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Секция виджетов */
.footer-widgets-section {
    padding: 50px 0 30px;
    border-bottom: 1px solid #4a5f7a;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.footer-widget-column {
    padding: 0 15px;
}

/* Виджеты */
.footer-widget {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    height: 100%;
}

.widget-title {
    color: #3498db;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* Стили для списков товаров */
.viewed-products-list,
.popular-products-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.viewed-product-item,
.popular-product-item {
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.viewed-product-item:hover,
.popular-product-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    border-color: #3498db;
}

.viewed-product-item a,
.popular-product-item a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-image {
    flex-shrink: 0;
}

.product-image img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

.product-price {
    font-size: 13px;
    color: #3498db;
    font-weight: 700;
}

.product-price del {
    color: #bdc3c7;
    margin-right: 5px;
}

.no-products,
.woocommerce-missing {
    text-align: center;
    color: #bdc3c7;
    font-style: italic;
    padding: 20px 0;
}

/* Контакты */
.contacts-widget {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.contact-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.contact-link, .contact-text {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.contact-link:hover {
    color: #3498db;
}

/* Соцсети в футере */
.social-links-widget {
    margin-top: 15px;
}

.social-title {
    font-size: 14px;
    color: #bdc3c7;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link-footer {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-link-footer:hover {
    background: #3498db;
    transform: translateX(5px);
}

/* Меню футера - ВСЕ ПУНКТЫ В ОДНУ СТРОКУ */
.footer-menu-section {
    padding: 30px 0;
    border-bottom: 1px solid #4a5f7a;
}

.footer-menu-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-item {
    margin: 0;
}

.footer-menu-link,
.footer-menu-text {
    color: #bdc3c7;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
}

.footer-menu-link:hover {
    color: #3498db;
    background: rgba(255, 255, 255, 0.1);
}

.footer-menu-text {
    color: #95a5a6;
    cursor: default;
}

/* Копирайт */
.footer-copyright {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.2);
}

.copyright-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-text {
    color: #95a5a6;
    font-size: 14px;
}

.developer-credit {
    color: #7f8c8d;
    font-size: 13px;
    font-style: italic;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-widget-column {
        padding: 0 10px;
    }
    
    .footer-widget {
        padding: 20px;
    }
    
    .footer-menu-list {
        gap: 12px;
        justify-content: center;
    }
    
    .footer-menu-link,
    .footer-menu-text {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .copyright-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .social-link-footer {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .viewed-product-item a,
    .popular-product-item a {
        gap: 10px;
    }
    
    .product-image img {
        width: 40px;
        height: 40px;
    }
    
    .product-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer-menu-list {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .footer-menu-item {
        text-align: center;
    }
    
    .footer-widget {
        padding: 15px;
    }
    
    .social-links {
        flex-direction: column;
    }
    
    .social-link-footer {
        min-width: auto;
    }
}