/* Позиционирование для ховера картинок */
.post_featured a {
    position: relative;
    display: block;
    overflow: hidden;
}
.catalog-card-details .catalog-product-title {
    margin: 8px 0px;
    color: #555555;
    line-height: 140%;
    font-weight: 400;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
	text-transform: capitalize;
}
.catalog-card-details .catalog-brand-label {
    color: #0C0C0C;
    line-height: 100%;
    letter-spacing: 4%;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
	text-transform: uppercase;
}
.catalog-card-info {
    margin-top: 5px;
    padding: 0px 16px;
}
/* Основная картинка */
.primary_image_main {
    display: block;
    transition: opacity 0.5s ease;
}

/* Вторая картинка (скрыта) */
.secondary_image_hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Эффект при наведении */
.post_featured:hover .secondary_image_hover {
    opacity: 1;
}
.post_featured:hover .primary_image_main {
    opacity: 0.7; /* Опционально: немного приглушаем основную */
}

/* Стиль бренда (если хочешь подправить) */
.product_brand_loop {
    font-weight: 600;
    letter-spacing: 0.5px;
}
.woocommerce ul.products li.product .post_data, .woocommerce-page ul.products li.product .post_data { 
    text-align: left!important;
}
.catalog-wrapper {
    flex-direction: column;
}
.row__flex {
    display: flex;
}
/**/
.seo-footer-block {
    background: #000;
    color: #fff;
    padding: 60px 0; /* Паддинги сверху/снизу */
    margin-top: 180px;
    font-family: 'Krona One', sans-serif;

    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.seo-footer-block .seo-main-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0px;
    color: #fff;
    font-family: 'Krona One', sans-serif!important;
}
/* Создаем внутренний ограничитель, чтобы текст не прилипал к краям экрана */
.seo-footer-block .seo-accordion, 
.seo-footer-block .seo-main-title {
    max-width: 1600px; /* Укажите здесь ширину вашего основного контейнера сайта */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px; /* Отступы для мобилок */
    padding-right: 15px;
}

.seo-acc-item {
    border-bottom: 1px solid #f5f5f5;
}

.seo-acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    font-family: 'Manrope', sans-serif;
}

.acc-icon {
    transition: transform 0.3s ease;
}

.seo-acc-item.active .acc-icon {
    transform: rotate(180deg);
}

.seo-acc-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

.seo-acc-item.active .seo-acc-content {
    max-height: 1000px!important;
    padding-bottom: 30px;
}

.seo-links-grid {
    column-count: 4;
    column-gap: 30px;
    margin-bottom: -15px;
}

.seo-link {
    color: #9E9E9E;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    transition: color 0.2s;
    display: block;
    break-inside: avoid;
    margin-bottom: 15px;
}

.seo-link:hover {
    color: #F37021;
}

@media (max-width: 768px) {
    .seo-links-grid {
        column-count: 2; /* На мобилках 2 колонки */
    }
}
.page_content_wrap {
    padding-bottom: 0px!important;
}

/* 1. Состояние по умолчанию */
.catalog-card-action {
    display: none; /* Кнопка скрыта */
}

.catalog-product-price {
    display: block; /* Цена видна */ 
}
.woocommerce-Price-amount { 
    color: #0C0C0C!important;
    font-size: 16px!important;
    font-weight: bold!important;
    font-family: 'Manrope', sans-serif!important;
}

/* 2. Состояние при наведении (Hover) */
.catalog-card-wrapper:hover .catalog-product-price {
    display: none; /* Прячем только цену */
}

.catalog-card-wrapper:hover .catalog-card-action {
    display: block; /* Показываем только кнопку */
}

/* 3. Стилизация кнопки (чтобы она вписывалась в габариты цены) */
.catalog-btn-more { 
    color: #F37021 !important; 
    padding: 8px 0px; 
    font-size: 16px;
    font-family: 'Manrope', sans-serif!important;
    font-weight: bold;
    line-height: 100%;
    text-decoration: none;
    transition: background 0.3s;
}

 
/* --- 1. ЛОГИКА ИЗОБРАЖЕНИЙ --- */

/* Контейнер ссылки, где лежат обе картинки */
.catalog-card-media a {
    position: relative;
    display: block;
    overflow: hidden;
}

/* Вторая картинка (по умолчанию скрыта) */
.secondary_image_hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Чтобы пропорции не плыли */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s!important;
    z-index: 1;
}

/* Первая картинка */
.catalog-img-primary {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s ease!important;
}

/* Эффект при наведении */
.catalog-card-wrapper:hover .catalog-image-link:has(.secondary_image_hover) .catalog-img-primary {
    opacity: 0;
    transform: scale(1.05);
}
.catalog-card-wrapper:hover .secondary_image_hover {
    opacity: 1;
    visibility: visible;
}

/* 3D Контейнер */
.catalog-price-flip-container {
    perspective: 1000px;
    height: 24px; /* Настрой под высоту своей строки */
}

.catalog-price-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Эффект переворота при наведении на всю карточку */
.catalog-card-wrapper:hover .catalog-price-flip-inner {
    transform: rotateX(-90deg);
}

/* Грани куба */
.catalog-flip-front, 
.catalog-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

/* Цена (спереди) */
.catalog-flip-front {
    transform: rotateX(0deg) translateZ(12px); /* 12px = половина высоты */
}

/* Кнопка (снизу) */
.catalog-flip-back {
    transform: rotateX(90deg) translateZ(12px);
}

/* Контейнер медиа должен иметь relative */
.catalog-card-media {
    position: relative;
}

/* Сама кнопка Wishlist */
.catalog-wishlist-btn {
    position: absolute;
    top: 0;      /* Отступ сверху */
    right: 0;    /* Отступ справа */
    z-index: 10;    /* Выше всех картинок */
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Эффект при наведении на само сердце */
.catalog-wishlist-btn:hover {
    transform: scale(1.1);
}

.catalog-wishlist-btn svg path {
    transition: fill 0.3s ease;
}

/* Если хочешь, чтобы при наведении оно становилось оранжевым как кнопка */
.catalog-wishlist-btn:hover svg path {
    fill: #F37021;
}
.reset-filter-btn {
    width: 100%; 
    padding: 10px; 
    cursor: pointer; 
    background: #0C0C0C; 
    color: #F5F5F5; 
    border: none;
    font-size: 14px;  
    font-family: "Manrope", Sans-serif; 
    font-weight: bold;
    text-transform: uppercase;
    
    /* Добавляем для анимации */
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

/* Слой заливки цветом F37021 */
.reset-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0; /* Начальное состояние */
    height: 100%;
    background: #F37021;
    z-index: -1; /* Задний план относительно текста */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект при наведении */
.reset-filter-btn:hover {
    color: #FFFFFF; /* Текст можно оставить светлым или сделать чисто белым */
}

.reset-filter-btn:hover::before {
    width: 100%; /* Заливка слева направо */
}

/**/
/**/
/**/
 
.catalog-filter { 
    padding-left: 1em;
    padding-right: 1em;
}
.price-slider-wrapper h4 { margin-bottom: 45px; margin-top: 0px;
    font-family: "Krona One", Sans-serif;
      font-size: 20px;
}

.range-slider-container {
    position: relative;
    width: 100%;
    height: 30px;
    margin-top: 10px;
}
#min-tooltip {
    transform: translateX(-39%);
}
/* Синяя активная линия МЕЖДУ ползунками */
.slider-track-active {
    position: absolute;
    height: 2px;
    background: #262626;
    top: 7px;
    border-radius: 5px;
    z-index: 2;
}
/* Плавающие лейблы над ползунками */
.price-tooltip {
    position: absolute;
    top: -35px;
    transform: translateX(-59%);
    background: #262626;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
    display: none;
}
/* Маленький треугольник под лейблом */
.price-tooltip::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #262626;
}

.range-slider-container input[type="range"] {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    background: none;
    outline: none;
    margin: 0;
    z-index: 3;
}
input[type="range"]::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    border: 2px solid #262626; 
    z-index: 4;
    position: relative;
}

input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid #262626; 
}

.price-values { display: none; } /* Скрываем старые статичные значения */
/* Стилизация скроллбара для внутренних блоков */
.terms-scroll::-webkit-scrollbar {
    width: 4px;
}
.terms-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.terms-scroll::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 10px;
}

/* Состояние открытого фильтра для иконки */
.filter-group.active .toggle-icon {
    content: "-";
}

/* Убираем стандартные отступы у заголовков в сайдбаре, если есть */
.filter-title {
    user-select: none;
    font-family: "Krona One", Sans-serif;
      font-size: 18px;
}
.filter-content .terms-scroll label {
    font-family: "Manrope", Sans-serif;
}
.usf-sr-paging {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}
.usf-sr-more {
    max-width: 400px;
    margin: 0 auto;
}
.usf-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #262626;
    font-family: "Manrope", Sans-serif;
    font-weight: 400;
}
.usf-progress {
    height: 4px;
    background: #eee;
    margin-bottom: 20px;
    position: relative;
    border-radius: 2px;
}
.usf-progress div {
    height: 100%;
    background: #262626; /* Цвет прогресс-бара */
    transition: width 0.3s ease;
}
.usf-load-more {
    background: #fff;
    border: 1px solid #262626;
    padding: 12px 40px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    color: #262626;
    font-family: "Manrope", Sans-serif;
    font-size: 14px;
    /* Обязательно для позиционирования заливки */
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

/* Слой заливки */
.usf-load-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0; /* В начале ширина 0 */
    height: 100%;
    background: #262626;
    z-index: -1; /* Уходит под текст */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Состояние при ховере */
.usf-load-more:hover {
    color: #fff; /* Текст становится белым */
}

.usf-load-more:hover::before {
    width: 100%; /* Заливка растягивается на всю ширину */
}

/* Базовое состояние (начальное) */
.catalog-filter {
    /* Важно для корректного расчета смещения */
    align-self: flex-start; 
    will-change: transform;
    transition: transform 0.1s ease-out;
}
/* Убираем стрелки в Chrome, Safari, Edge, Opera */
.input-min::-webkit-outer-spin-button,
.input-min::-webkit-inner-spin-button,
.input-max::-webkit-outer-spin-button,
.input-max::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Убираем стрелки в Firefox */
.input-min, .input-max {
    -moz-appearance: textfield;
    border-radius: 0; /* Чтобы соответствовало стилю */
    outline: none;
}
.input-field span {
        display: block;
}

.filter-column {
    flex-shrink: 0;
    width: 24%!important;
    margin-right: 1%!important;
    margin-top: -62px!important;
}
.flex_catalog {
    width: 75%;
    display: flex;
    justify-content: space-between;
    margin-left: 25%;
}

.search-input-container {
    position: relative;
    width: 100%;
}

#catalog-search-input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Увеличили левый padding до 45px */
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    background-color: #fff;
    background-clip: padding-box !important;
}
.search-input-container input[type="text"] {
    /* Убираем все границы */
    border: none !important;
    /* Задаем только нижнюю */
    border-bottom: 1px solid #ddd !important;
    /* Убираем закругления, если они есть, чтобы линия была ровной */
    border-radius: 0 !important;
    /* Важно для инпутов: убрать стандартный фон, если он мешает */
    background-color: transparent; 
    /* Убираем синюю обводку при клике (опционально) */
    outline: none;
}

/* Эффект при клике: меняем цвет только нижней линии */
.search-input-container input[type="text"]:focus {
    border-bottom-color: #262626 !important;
}
 

.search-icon {
    position: absolute;
    left: 15px;      /* Позиция иконки слева */
    top: 50%;
    transform: translateY(-50%);
    line-height: 0;
    pointer-events: none; /* Чтобы клик по иконке попадал в инпут */
}

/* Опционально: цвет иконки при фокусе инпута */
#catalog-search-input:focus + .search-icon svg path {
    fill: #000;
}
/* Chrome, Firefox, Opera, Safari 10.1+ */
.search-input-container input::placeholder {
    color: #555 !important;
    opacity: 1; /* Firefox снижает непрозрачность по умолчанию */
    text-overflow: ellipsis;
    font-weight: 400; 
    font-family: "Manrope", Sans-serif;
    font-size: 14px;
}

/* Microsoft Edge */
.search-input-container input::-ms-input-placeholder {
    color: #555 !important;
    text-overflow: ellipsis;
    font-weight: 400; 
    font-family: "Manrope", Sans-serif;
    font-size: 14px;
}

/* Internet Explorer 10-11 */
.search-input-container input:-ms-input-placeholder {
    color: #555 !important;
    text-overflow: ellipsis;
    font-weight: 400; 
    font-family: "Manrope", Sans-serif;
    font-size: 14px;
}

/* Safari 5.1-10.0 */
.search-input-container input::-webkit-input-placeholder {
    color: #555 !important;
    text-overflow: ellipsis;
    font-weight: 400; 
    font-family: "Manrope", Sans-serif;
    font-size: 14px;
}
.catalog-sorting .select_container select {
    background: #fff!important; 
    padding-top: 8px!important;
    padding-bottom: 8px!important;
    padding-left: 20px!important;
    padding-right: 45px!important;
    font-weight: 400; 
    font-family: "Manrope", Sans-serif;
    font-size: 14px;
    border: none!important;
    border: 1px solid #ddd!important;
}

.slider-track-base {
	position: absolute;
	height: 2px;
	width: 100%;
	background-color: #e0e0e0;
	border-radius: 2px;
	top: 7px; 
	z-index: 1;
}


.catalog-wishlist-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

/**/
/**/
@media (max-width: 991px) {
    .mobile-filter-trigger-wrapper {
        display: block !important;
    }
    
    .catalog-wrapper {
        flex-direction: column !important; /* Контент під фільтром */
    }

    .woocommerce.columns-3 {
        width: 100% !important;
    }

    /* Перетворюємо сайдбар на виїзне меню зліва */
    .catalog-filter {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important; /* Сховано зліва */
        width: 300px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        background: #fff !important;
        z-index: 999999 !important;
        padding: 20px !important;
        overflow-y: auto !important;
        transition: left 0.4s ease !important;
        transform: none !important; /* Відключаємо ваш скрипт руху при скролі на мобілках */
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }

    .catalog-filter.active {
        left: 0 !important;
    }

    .mobile-filter-header {
        display: flex !important;
    }

    /* Оверлей */
    .mobile-filter-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999998;
        display: none;
    }
    
    body.mobile-filters-open {
        overflow: hidden; /* Блокуємо скрол сайту при відкритому фільтрі */
    }
    
    body.mobile-filters-open .mobile-filter-overlay {
        display: block;
    }
    .btn-icon {
        height: 16px!important;
        margin-right: 9px!important;
        margin-top: -3px!important;
    }
    .btn-icon svg{
        height: 16px; 
    }
    .filter-column {
        width: 0% !important;
        margin-right: 0% !important;
    }
    .flex_catalog {
        margin-left: 0px!important;
        width: 100%;
    }
    .catalog-search-wrapper {
        flex: 0 0 100%;
        width: 100%;
    }
    .flex_catalog {
        display: flex;
        flex-wrap: wrap; /* Разрешаем перенос блоков на новые строки */
        gap: 20px 0;    /* Отступ между строками 20px */
    }
    /* Вторая строка: Фильтры и Сортировка по 50% */
    .mobile-filter-trigger-wrapper,
    .catalog-sorting {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Центрируем содержимое селектора и кнопки, если нужно */
    .catalog-sorting {
        display: flex;
        justify-content: flex-end; /* Сортировка прижмется к правому краю */
    }
    
    .mobile-filter-trigger-wrapper {
        display: block !important; /* Убедись, что обертка видна, если нужно */
        margin-bottom: 0px!important;
    }
    .catalog-wrapper .woocommerce ul.products li.product {
        width: 50%!important;
    }

    .catalog-wishlist-link svg {
        width: 20px!important;
        height: 20px!important;
    }
    .catalog-card-details .catalog-brand-label {
        font-size: 12px;
    }
    .catalog-card-details .catalog-product-title {
        font-size: 13px;
		text-align: left;
    }
    .woocommerce-Price-amount {
        font-size: 14px!important;
    }
    .search-input-container input::placeholder {
        font-size: 13px;
    }      
    .open-mobile-filters {
        font-weight: 400;
        font-family: "Manrope", Sans-serif;
        font-size: 13px;
        text-transform: capitalize;
        align-items: center;
        padding: 8px;
        background: #fff;
        color: #242424;
        border: 1px solid #ddd !important;
        color: #555!important;
    }
    .catalog-sorting .select_container select {
        background: #fff !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        padding-left: 20px !important;
        padding-right: 45px !important;
        font-weight: 400;
        font-family: "Manrope", Sans-serif;
        font-size: 13px;
        border: none !important;
        border: 1px solid #ddd !important;
        color: #555!important;
    } 



}