/*
Theme Name: Porto Child for Gefeststroy
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/

#whatsapp {
    position: fixed;
    right: 0px;
    bottom: 150px;
}

#whatsapp i {
    color: #fff;
	margin-right: 10px;
}


.whatsapp a {
    text-decoration: none;
    color: #eee;
}

.whatsapp a:hover {
    color: #fff;
    text-decoration: none;
}


#whatsapp .support-trigger-text-wrapper {
    background-color: #25d366;
    padding: .6em 1em;
    border-radius: 7px 7px 0 0;
    font-size: 15px;
    font-family: Arial,Helvetica,sans-serif;
    box-shadow: 0 0 3px rgba(0,0,0,.2);
    overflow: hidden;
    border-top: 2px solid #19b353;
}

#whatsapp * {
    margin: 0px;
    padding: 0px;
}

#whatsapp > * {
    box-sizing: border-box !important;
    transition: .3s ease opacity;
}

#whatsapp .support-trigger-text-inner {
    display: table;
    white-space: nowrap;
}

#whatsapp .support-trigger-text-inner > i.support-icon {
    padding-left: 0;
    text-align: center;
    padding: 0 0 .3em 0;
}


#whatsapp i.support-icon + span, #whatsapp i.support-icon + span + span {
    padding-left: 7px;
}

#whatsapp .support-trigger-text-inner > span {
    color: #fff;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased!important;
    -moz-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    vertical-align: middle;
    display: table-cell !important;
}

#whatsapp.support-trigger-transition {
    transition: .2s linear all;
}

#whatsapp {
    display: block;
    cursor: pointer;
    z-index: 2147483646;
    margin: 0px;
    padding: 0px;
    line-height: 1em;
    -ms-text-size-adjust: auto;
    -webkit-text-size-adjust: auto;
    transform: translateY(0%) rotateZ(-90deg) translateX(100%);
    transform-origin: right bottom;
}




.archive-img-wrap.vel_crop {
    height: 20em !important;
}

.woocommerce ul.products li.product a img {
    width: auto;
    height: 19em;
    display: block;
    margin: 0 1em;
    -webkit-box-shadow: none;
    box-shadow: none;
    -o-object-fit: contain;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}











.woocommerce-tabs .wc-tab {
    display: block !important; /* Используем !important, чтобы переопределить любое поведение по умолчанию */
    visibility: visible !important;
    opacity: 1 !important;
	/*border-bottom: 1px solid #eaeaea;*/
    padding-bottom: 0px;
}




.woocommerce-tabs .wc-tabs li {
    list-style-type: none;
    display: inline-block;
    margin-top: 0px;
    margin-right: 30px;
    margin-bottom: 0px;
    margin-left: 0px;
}

.woocommerce-tabs .wc-tabs li a {
    text-decoration: none;
    color: #333; /* Цвет текста вкладки, можете изменить на свой */
    font-weight: bold;
    padding-bottom: 11px;
    border-bottom: 3px solid transparent; /* Линия изначально прозрачна */
    transition: border-color 0.3s ease;
}

.woocommerce-tabs .wc-tabs li.active a,
.woocommerce-tabs .wc-tabs li a:hover {
    border-color: #002855; /* Цветная линия при активной вкладке или наведении */
}





.woocommerce-tabs .wc-tabs {
    position: sticky;
    top: 0; /* Отступ от верхней части экрана */
    background-color: #fff; /* Цвет фона, чтобы вкладки были видны */
    z-index: 1000; /* Увеличим z-index, чтобы вкладки были поверх других элементов */
    padding: 12px 0; /* Добавляем отступ, чтобы вкладки выглядели лучше */
    border-bottom: 1px solid #eaeaea; /* Линия под вкладками */
}


@media (max-width: 768px) {
    .woocommerce-tabs .wc-tabs {
        display: none; /* Скрыть вкладки на мобильных */
    }
}










.collapsible-content {
    max-height: 300px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.collapsible-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px; /* Высота градиента */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.collapsible-content.expanded {
    max-height: none;
}

.collapsible-content.expanded::after {
    display: none;
}

.expand-btn {
    display: inline-block;
    margin-top: 0px;
    background-color: #fff;
    color: #bdbbbb;
    padding: 8px 40px;
    border: none;
    cursor: pointer;
    border-radius: 25px;
    font-size: 18px;
    transition: background-color 0.3s ease;
	box-shadow: 0 15px 20px rgb(202, 199, 199, 0.5);
}

.expand-btn:hover {
    background-color: #002855; /* Цвет кнопки при наведении */
	color: #fff;
}







/* Основной стиль для категорий товаров в каталоге */
.categories-with-thumbnails {
    list-style: none;
    padding: 0;
}

.categories-with-thumbnails .category-item {
    position: relative;
    
}

/* Миниатюры категорий */
.categories-with-thumbnails img {
    max-width: 35px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Стили для ссылок */
.categories-with-thumbnails a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    font-size: 15px; /* Размер шрифта */
    font-weight: 500; /* Утолщение шрифта */
    padding-right: 20px; /* Убраны отступы для стрелок */
}

.categories-with-thumbnails a:hover {
    color: #002855;
}

/* Стили для подкатегорий */
.categories-with-thumbnails ul {
    list-style: none;
    padding: 0 20px;
    margin: 0;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
    position: absolute;
    left: 100%;
    top: 50%; /* Центрирование по вертикали */
    transform: translateY(-50%); /* Смещение вверх на 50% от собственного размера */
}

/* Для мобильной версии оставляем старое выравнивание */
@media (max-width: 768px) {
    .categories-with-thumbnails ul {
        top: -9px; /* Возвращаем старое положение */
        transform: none; /* Убираем смещение */
    }
}



/* Для десктопа */
@media screen and (min-width: 769px) {
    /* Подкатегории показываются при наведении на родительскую категорию */
    .categories-with-thumbnails .category-item:hover > ul {
        display: block; /* Подкатегории показываются при наведении */
    }
}

/* Для мобильных устройств */
@media screen and (max-width: 768px) {
    /* Убираем миниатюры на мобильных устройствах */
    .categories-with-thumbnails img {
        display: none;
    }

    /* Подкатегории должны располагаться ниже, а не справа */
    .categories-with-thumbnails ul {
        display: block; /* Подкатегории видны по умолчанию */
        margin-left: 0;  /* Убираем отступ */
        position: static; /* Отменяем абсолютное позиционирование */
    }
}

/* При наведении на подкатегорию, выделяем родительскую категорию */
.categories-with-thumbnails .category-item:hover > a,
.categories-with-thumbnails .category-item.active > a {
    color: #002855; /* Устанавливаем цвет для активной категории */
    font-weight: bold; /* Можно сделать шрифт жирным, если нужно */
}


/* Убираем пробел между категориями и подкатегориями */
.categories-with-thumbnails .category-item > ul {
    margin-left: 0; /* Убираем отступ */
}







/* Стиль категорий и подкатегорий в каталоге */

.product-categories-wrapper {
    margin-bottom: 20px;
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-categories .category-item {
    margin: 0 15px 15px 0;
    text-align: center;
    flex: 0 0 calc(20% - 15px); /* Пять элементов в ряд */
	border: 1px;
	border-style: solid;
	border-color: #dbdfe3;
	padding-top: 20px;
}

.product-categories .category-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.product-categories .category-item h3 {
    font-size: 16px;
    margin-top: 10px;
    color: #333;
	margin-left: 10px;
    margin-right: 10px;
}



/* Для мобильных устройств */
@media (max-width: 768px) {
    .product-categories .category-item {
        flex: 0 0 calc(50% - 10px); /* Два элемента в ряд */
        margin: 0 5px 10px; /* Уменьшаем отступы */
    }

    .product-categories {
        justify-content: center; /* Центрируем содержимое */
    }
}












/* Стили для оптовой цены */
.wholesale-price {
    font-size: 1.2em; /* Увеличиваем шрифт */
    color: #333; /* Цвет текста  */
    font-weight: bold; /* Жирный шрифт */
}


/* Расстояние между строками, если есть несколько цен */
.wholesale-price + .retail-price {
    margin-top: 5px;
    display: block;
}


/* Стили для розничной цены */
.retail-price {
    font-size: 1.2em; /* Увеличиваем шрифт */
    color: #333; /* Цвет текста  */
    font-weight: bold; /* Жирный шрифт */
}








/* Стиль баннера куки */
@media (min-width: 768px) {
  .cc-window.cc-floating {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    max-width: 100% !important;
    width: 600px;
    gap: 1em;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }

  .cc-message {
    flex: 1 1 auto;
    margin-right: 1em;
  }

  .cc-compliance {
    flex-shrink: 0;
  }
}

