/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
::selection {
  background: #D52127; /* Цвет фона выделения */
  color: #fff;        /* Цвет текста при выделении */
}
/* Header */
.whb-flex-row.whb-general-header-inner, .whb-flex-row.whb-top-bar-inner {
    padding: 0 20px;
}
.whb-main-header :is(.btn,.button,button,[type="submit"],[type="button"]){
	font-size: 14px;
	text-transform: none;
}
.wd-nav.wd-style-bg>li:is(:hover,.current-menu-item,.wd-active,.active)>a{
	color: #000
}

.wd-nav.wd-style-bg>li>a:before {
    content: '';
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 1 !important;
    border-radius: 0px;
	color: #000;
    background-color: #fff;
    transition: all .25s ease
}

.wd-dropdown-menu.wd-design-full-width:not(.wd-scroll), .wd-dropdown-menu.wd-design-full-width.wd-scroll .wd-dropdown-inner{padding-top: unset !important}
.wd-dropdown{margin-top: 7px !important}
/* end header */

/* отключить попап переключатель языка */
.trp-language-detector-popup,
.trp-language-detector-overlay { display: none !important; }
.trp-language-switcher-container .trp-ls-language-name{font-weight:400 !important}
.wd-dropdown-menu:is(.wd-design-sized,.wd-design-full-width,.wd-design-full-height) .wd-sub-menu>li{margin-bottom:unset !important}

/* footer */

.call-back-zv,.call-back-wa,.call-back-tg{height:50px;margin:0 auto 20px;justify-content:center;}.call-back-hover,.call-back-zv,.call-back-wa,.call-back-tg{background-color:var(--e-global-color-secondary);color: white;}//telegram .call-back-hunter{position:absolute!important;bottom:20px;right:10px!important;z-index:100000;width:70px!important}.call-back-text,.call-back-text1{right:-86px;background:var(--e-global-color-secondary);opacity:0;color:#fff;transition:1s}.call-back-hunter img{filter:brightness(0) invert(1) sepia(100%) hue-rotate(0deg)}
.call-back-zv{
	width:50px;
	border-radius:50%;
	padding:8px;
    margin-bottom: 16px;
	position:relative;
	top:200px;
	transition:1s;
	display:flex;
	align-items:center}
.call-back-text{position:absolute;display:block;width:150px;top:25px;padding:5px 10px;border-radius:2px}
.call-back-wa{
	position:relative;
	width:50px;
	border-radius:50%;
	padding:8px;
    margin-bottom: 16px;
	top:135px;
	z-index:2!important;
	transition:1s;
	display:flex;
	align-items:center}
.call-back-tg{
	position:relative;
	width:50px;
    margin-bottom: 16px;
	border-radius:50%;
	padding:8px;
	top:70px;
	z-index:2!important;
	transition:1s;
	display:flex;
	align-items:center}
.call-back-text1{position:absolute;display:block;width:150px;top:130px;padding:5px 10px;border-radius:2px}
.call-back-hover{width:56px;height:56px;border-radius:50%;padding:16px;margin:0 auto;z-index:1000!important;position:relative;display:flex;justify-content:center;font-size:36px;border: 1px solid #A80107}
.call-back-hunter:hover .call-back-wa,
.call-back-hunter:hover .call-back-tg,
.call-back-hunter:hover .call-back-zv {
  top: 0;
  transition: 1s;
}
.call-back-hunter:hover .call-back-text,.call-back-hunter:hover .call-back-text1{right:113px;opacity:1;transition:1s}.call-back-hunter a:hover{background-color: #A80107;}

.call-back-hover {
  position: relative;
  animation: pulse-ring 2s infinite ease-in-out;
}

/* Пульсирующее кольцо вокруг иконки */
.call-back-hover::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: rgba(213, 33, 39, 0.3); /* красный прозрачный */
  animation: pulse-circle 2s infinite ease-out;
  z-index: -1;
}

/* Анимация иконки */
@keyframes pulse-ring {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Анимация круга */
@keyframes pulse-circle {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.6;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* end footer */

/* Pages */
.page .main-page-wrapper, .page .container, .page .container-fluid{
	padding: unset
}

/* title text */
.entry-title.title {
    padding-left: 130px
}
/* footer */
@media (min-width: 768px) {
.footer-sidebar {
    padding-inline: 130px;
}
}
.copyrights-wrapper {
    border-top: none !important;
}
.copyrights-centered .min-footer::before {
	box-sizing: border-box;
    content: "";
	width: calc(100% - 290px);
    margin-left: 145px;
    height: 1px;
    display: block;
    background: #D52127;
    transform: translateY(-20px);
}
@media (max-width: 768px) {
	.copyrights-centered .min-footer::before {
		width: calc(100% - 80px);
		margin-left: 40px;
	}
}
/* single-product */
.single-product .single-breadcrumbs-wrapper, .single-product .product_title{padding-left: 80px;padding-right: 80px;}
.single-product-page .product-images{display:none}
.single-product-page .product-tabs-wrapper {border: none !important; padding:unset}
.single-product-page .poduct-tabs-inner{padding-inline:unset}
.single-product-page .wd-nav-tabs-wrapper, .single-product-page .tab-title-reviews{display:none}
.woocommerce-breadcrumb .breadcrumb-last{font-weight:400}
.woocommerce-breadcrumb, .woocommerce-breadcrumb a, .yoast-breadcrumb a{color:var(--e-global-color-text) !important; font-weight:400!important}
.woocommerce-breadcrumb a:after{content: "";display: inline-block;width: 6px;height: 12px;margin: 0 8px;background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='12' viewBox='0 0 6 12' fill='none'><path d='M1 1L5 6L1 11' stroke='%2328303F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");background-repeat: no-repeat;background-position: center;background-size: contain;}
.single-product-page .wd-accordion-title.wd-opener-pos-right{display:none}
.single-product-page .wd-accordion.wd-style-default:before{border:unset}
.single-product-page .wd-accordion.wd-style-default .wd-accordion-item{border:unset}
[class*="single-breadcrumbs"] :is(.woocommerce-breadcrumb,.yoast-breadcrumb) .breadcrumb-last{display:unset}
[class*="single-breadcrumbs"] :is(.woocommerce-breadcrumb,.yoast-breadcrumb) .breadcrumb-link-last:after{content:""}
@media (max-width: 1024px) and (min-width: 768px) {
	.single-product .single-breadcrumbs-wrapper, .single-product .product_title{padding-left: 35px;padding-right: 35px}
}
@media (max-width: 768px) {
	.single-product .single-breadcrumbs-wrapper, .single-product .product_title{padding-left: 5px;padding-right: 5px}
	.single-product .main-page-wrapper{background-color: #F8F8F8;}
}
/* end single-product */

.where-install:after {
  content: "";
  display: inline-block;
  position: absolute;
  right: 0;
  top: 0;
  width: 24px;
  height: 24px;
  margin: 0 8px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M21 9L21 3M21 3L15 3M21 3L10 14' stroke='%2328303F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 5H7C4.79086 5 3 6.79086 3 9V17C3 19.2091 4.79086 21 7 21H15C17.2091 21 19 19.2091 19 17V12' stroke='%2328303F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 1;
}

/* Library page */
.thermo-documents {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}
.document-row .doc-num {
  min-width: 30px;
  border-right: 1px solid #DCDEDF;
}
.document-row a {
  flex: 1;
  margin: 0 15px;
  text-decoration: none;
  color: #333;
}
.document-row .doc-size {
  min-width: 70px;
}
.document-row a.doc-download {
  max-width: 32px;
  margin: 0;
  text-align: end;
  border-left: 1px solid #DCDEDF;
}
.document-row .doc-download img {
  width: 18px;
}
.document-row.even {
    background-color: #f8f8f8;
}
/* end library page */

/* =========================================================================
   News (Thermo Plus) — single post, archive shortcode, latest news widget
   ========================================================================= */

:root {
    --tp-news-red: #D52127;
    --tp-news-text: #28303F;
    --tp-news-muted: #6B7280;
    --tp-news-border: #E5E7EB;
    --tp-news-bg-soft: #F8F8F8;
    --tp-news-radius: 12px;
}

/* ---------- Single news ---------- */
.tp-single-news {
    padding: 40px 0 80px;
    background: #fff;
}
.tp-single-news .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.tp-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
}
.tp-news-main { min-width: 0; }

.tp-news-cover img,
.tp-news-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--tp-news-radius);
}

/* Gallery slider */
.tp-news-gallery {
    position: relative;
    margin-bottom: 28px;
}
.tp-news-gallery__viewport {
    position: relative;
    overflow: hidden;
    border-radius: var(--tp-news-radius);
    aspect-ratio: 16 / 10;
    background: var(--tp-news-bg-soft);
}
.tp-news-gallery__track { position: relative; width: 100%; height: 100%; }
.tp-news-gallery__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.tp-news-gallery__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.tp-news-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.tp-news-gallery__nav {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    justify-content: space-between;
}
.tp-news-gallery__btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--tp-news-border);
    background: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--tp-news-text);
    transition: all .2s ease;
    padding: 0;
}
.tp-news-gallery__btn:hover {
    background: var(--tp-news-red);
    color: #fff;
    border-color: var(--tp-news-red);
}

.tp-news-title {
    font-size: 2rem !important;
    line-height: 1.25;
    color: var(--tp-news-text);
    margin: 24px 0 20px;
}
.tp-news-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--tp-news-text);
    margin-bottom: 20px;
}
.tp-news-text p { margin: 0 0 14px; }
.tp-news-text--secondary { color: var(--tp-news-text); }

.tp-news-meta {
    color: var(--tp-news-muted);
    font-size: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 24px;
}
.tp-news-meta__sep { color: var(--tp-news-border); }

/* Sidebar — related news */
.tp-news-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tp-news-sidebar__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tp-news-text);
    margin: 0 0 4px;
}
.tp-news-related-card {
    display: block;
    background: #fff;
    border: 1px solid var(--tp-news-border);
    border-radius: var(--tp-news-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease;
}
.tp-news-related-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    transform: translateY(-2px);
}
.tp-news-related-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--tp-news-bg-soft);
}
.tp-news-related-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.tp-news-related-card__body { padding: 16px; }
.tp-news-related-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--tp-news-text);
    margin: 0 0 8px;
}
.tp-news-related-card__excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: var(--tp-news-muted);
    margin: 0 0 12px;
}
.tp-news-related-card__meta {
    font-size: 12px;
    color: var(--tp-news-muted);
    display: flex;
    gap: 6px;
    align-items: center;
}

/* ---------- Archive (page) ---------- */
.tp-news-archive {
    display: flex;
    flex-direction: column;
    gap: 56px;
}
.tp-news-archive__heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--tp-news-text);
    margin: 0 0 24px;
}

/* Featured (большая карточка) */
.tp-news-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--tp-news-red);
    border-radius: var(--tp-news-radius);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    min-height: 320px;
    transition: transform .25s ease;
}
.tp-news-featured:hover { transform: translateY(-2px); color: #fff; }
.tp-news-featured__image {
    background: #fff;
    overflow: hidden;
}
.tp-news-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tp-news-featured__body {
    position: relative;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.tp-news-featured__icon {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #fff;
    opacity: .9;
}
.tp-news-featured__title {
    font-size: 2rem !important;
    line-height: 1.25;
    color: #fff;
    margin: 0;
}
.tp-news-featured__excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,.92);
    margin: 0;
}
.tp-news-featured__meta {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,.85);
}
.tp-news-featured__meta .tp-news-meta__sep { color: rgba(255,255,255,.5); }

/* Grid of cards */
.tp-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.tp-news-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid var(--tp-news-border);
    border-radius: var(--tp-news-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease;
}
.tp-news-card:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,.07);
    transform: translateY(-2px);
}
.tp-news-card__image {
    flex: 0 0 40%;
    background: var(--tp-news-bg-soft);
    overflow: hidden;
}
.tp-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tp-news-card__body {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}
.tp-news-card__title {
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.35;
    color: var(--tp-news-text);
    margin: 0;
	display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 2;
    overflow: hidden;
}
.tp-news-card__meta {
    font-size: 13px;
    color: var(--tp-news-muted);
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Pagination */
.tp-news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.tp-news-pagination__item .page-numbers,
.tp-news-pagination__item > a,
.tp-news-pagination__item > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--tp-news-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--tp-news-text);
    font-size: 14px;
    background: #fff;
    transition: all .2s ease;
}
.tp-news-pagination__item .page-numbers.current,
.tp-news-pagination__item .current {
    background: var(--tp-news-red);
    border-color: var(--tp-news-red);
    color: #fff;
}
.tp-news-pagination__item a:hover {
    border-color: var(--tp-news-red);
    color: var(--tp-news-red);
}
.tp-news-pagination__item .dots { border: none; background: transparent; }

.tp-news-archive__empty,
.tp-news-sidebar__empty {
    color: var(--tp-news-muted);
    font-size: 15px;
}

/* ---------- Widget (3 latest news on other pages) ---------- */
.tp-news-widget {
    margin: 0;
}
.tp-news-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tp-news-widget__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--tp-news-text);
    margin: 0;
}
.tp-news-widget__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid var(--tp-news-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--tp-news-text);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s ease;
    background: #fff;
}
.tp-news-widget__more:hover {
    border-color: var(--tp-news-red);
    color: var(--tp-news-red);
}

.tp-news-grid--widget .tp-news-card { flex-direction: row; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .tp-news-layout {
        grid-template-columns: 1fr;
    }
    .tp-news-sidebar {
        position: static;
        margin-top: 24px;
    }
    .tp-news-title { font-size: 26px; }
    .tp-news-featured__title { font-size: 22px; }
    .tp-news-archive__heading,
    .tp-news-widget__title { font-size: 24px; }
    .tp-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .tp-single-news { padding: 16px 0 32px; }
    .tp-single-news .container { padding: 0 12px; }

    /* Архив новостей: уменьшаем общие отступы */
    .tp-news-archive { gap: 28px; }
    .tp-news-archive__heading,
    .tp-news-widget__title { font-size: 1.25rem !important; margin: 0 0 14px; }

    /* Featured: одна колонка, компактнее */
    .tp-news-featured { grid-template-columns: 1fr; min-height: 0; }
    .tp-news-featured__image { aspect-ratio: 16 / 10; }
    .tp-news-featured__body { padding: 16px 16px 18px; gap: 10px; }
    .tp-news-featured__title { font-size: 1.25rem !important; }
    .tp-news-featured__excerpt { font-size: 13px; }
    .tp-news-featured__icon { top: 14px; right: 14px; }

    /* Сетка карточек: одна колонка, меньший gap */
    .tp-news-grid,
    .tp-news-grid--widget {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Карточка остаётся row — фото слева, body справа.
       Принудительно показываем body (его «съедал» column-layout). */
    .tp-news-card,
    .tp-news-grid--widget .tp-news-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch;
    }
    .tp-news-card__image {
        flex: 0 0 38% !important;
        width: 38% !important;
        max-width: 38%;
        aspect-ratio: 1 / 1;
    }
    .tp-news-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .tp-news-card__body {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        padding: 12px 14px;
        gap: 8px;
        min-width: 0;
    }
    .tp-news-card__title {
        font-size: 0.875rem !important;
        line-height: 1.3;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    .tp-news-card__meta { font-size: 12px; }

    /* Виджет на главной: на мобиле показываем только первые 3 карточки из 6 */
    .tp-news-grid--widget > .tp-news-card:nth-child(n+4) {
        display: none !important;
    }
    .tp-news-widget__header { margin-bottom: 14px; }
    .tp-news-widget__more { padding: 10px 16px; font-size: 13px; }

    /* Пагинация компактнее */
    .tp-news-pagination { margin-top: 24px; gap: 6px; }
    .tp-news-pagination__item .page-numbers,
    .tp-news-pagination__item > a,
    .tp-news-pagination__item > span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    /* Single news (страница одной новости) */
    .tp-news-title { font-size: 1.5rem !important; margin: 16px 0 14px; }
    .tp-news-text { font-size: 14px; }
    .tp-news-gallery { margin-bottom: 18px; }
    .tp-news-gallery__nav { margin-top: 8px; }
    .tp-news-gallery__btn { width: 36px; height: 36px; }

    .tp-news-sidebar__title { font-size: 18px; }
}
/* end news */
