/*!
Theme Name: Tecnowood-termiq Child
Template: tecnowood
Description: Description
Version: 1.0.0
*/

 .footer .first-vw35 .company_list:first-of-type li:nth-last-child(2), .mobile-accordion-section .company_list:first-of-type li:nth-last-child(2),  .mobile-accordion-section .company_list:first-of-type li:nth-last-child(1){
	display: none;
}

 .footer .first-vw35 .company_list:first-of-type li:nth-last-child(1){
border-bottom: 1px solid #727272;
  margin-bottom: 12px;
	 width: fit-content;
}

 .footer .first-vw35 .company_list:first-of-type li:nth-last-child(1):hover{
border-bottom: 1px solid #EA7D1A;
}


a:focus {
    outline: none;
}

.banner_img {
    height: 640px;
}


.wpml-ls-legacy-dropdown-click {
    width: max-content !important;
}

.wpml-ls-legacy-dropdown-click a {
    color: #fff;
    border: none;
    background-color: transparent;
    padding: 0;
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    leading-trim: NONE;
    line-height: 125%;
    letter-spacing: -3%;
    text-transform: uppercase;
}

.wpml-ls-legacy-dropdown-click a:focus {
    background: transparent;
    color: #fff;
}

.wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu {
    border-top: none;
    background: #EA7D1AF2;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.wpml-ls-legacy-dropdown-click .wpml-ls-item {
    padding: 5px 2px;
}

.wpml-ls-legacy-dropdown-click .wpml-ls-current-language:hover>a,
.wpml-ls-legacy-dropdown-click a:hover,
.isopen .wpml-ls-current-language>a,
.isopen .wpml-ls-legacy-dropdown-click a {
    color: var(--yellow);
    background: transparent;
}

.isopen .wpml-ls-current-language a.wpml-ls-item-toggle::after {
    transform: rotate(180deg);
    top: 25%;
}

.lang-switch-wrapper ul.js-wpml-ls-sub-menu {
    opacity: 0;
}

.lang-switch-wrapper .isopen ul.js-wpml-ls-sub-menu {
    visibility: visible !important;
    opacity: 1;
}

.wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle::after {
    content: "";
    position: absolute;
    right: 10px;
    transform: translateY(-50%);
    width: 14px;
    height: 8px;
    background-color: currentColor;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'><path d='M14 6.6879L7 3.0598e-07L-2.92337e-07 6.6879L1.2425 7.875L7 2.3742L12.7575 7.875L14 6.6879Z'/></svg>") center / contain no-repeat;
    transform: rotate(90deg);
    top: 25%;
}

.header,
.fixed-phone-widget {
    --orange: #EA7D1AF7;
    --orange-dark: #D66D0E;
    --yellow: #FFF716;
    --white: #fff;
    --text-dark: #2A2A2A;
}

.header * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.header {
    position: relative;
    width: 100%;
    height: 86px;
    font-size: 14px;
    backdrop-filter: blur(18px);
    max-width: 100vw;
}

.header-bg {
    position: absolute;
    inset: 0;
    background: var(--orange);
    backdrop-filter: blur(18px);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%);
    z-index: 1;
}

.header-inner {
    position: relative;
    z-index: 10;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    max-width: 100vw;
    width: 100%;
    z-index: 10;

    display: grid;
    grid-template-columns: 3fr 7fr 3fr 7fr;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
    justify-content: right;
    font-family: Oswald;
}

.header-center {
    gap: 30px;
}

.header-right {
    gap: 40px;
}

.logo {
    justify-content: left;
    display: grid;
}

.logo img {
    height: 50px;
    display: block;
    width: 100%;
}

.main-menu {
    display: flex;
    gap: 28px;
    width: 100%;
}

.menu-item,
li.menu-item a,
.menu-item span {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-family: Oswald;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    line-height: 125%;
    letter-spacing: -3%;
    position: relative;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.menu-item.menu-products-trigger {
    flex-grow: 0;
    margin-right: auto;
}

li.menu-item:nth-child(1) {
    padding-top: 7px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--white);
}

.header-inner li.menu-item:nth-child(1):hover {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--yellow);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.arrow-icon {
    width: 14px;
    height: auto;
    transition: transform 0.3s;
    fill: #fff;
}

.main-menu .menu-item .arrow-icon {
    transform: rotate(90deg);
}

.main-phone {
    font-family: Oswald;
    font-weight: 500;
    font-size: 24px;
    line-height: 125%;
    letter-spacing: -3%;
    text-transform: uppercase;
}

.phone-row:hover a {
    color: var(--yellow);
}

.phone-row a {
    white-space: nowrap;
}

.menu-item.active .menu-link,
.menu-item:hover .menu-link,
.menu-item:hover {
    color: var(--yellow);
}

.menu-item.active .arrow-icon,
.menu-item:hover .arrow-icon {
    transform: rotate(180deg);
    fill: var(--yellow);
}

.dropdown-wrapper {
    z-index: 5;
    backdrop-filter: blur(18px);
    box-shadow: 0px 4px 12px 0px #00000021;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--orange);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% calc(100% - 80px), calc(100% - 80px) 100%, 0 100%);
}

.dropdown-wrapper.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 3fr 7fr 4fr 6fr;
    padding: 0 40px;
    color: var(--white);
    width: 100%;
}

.col-intro p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    padding: 20px 20px 20px 0;
}

.col-intro,
.col-types,
.col-categories {
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.type-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    cursor: pointer;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.type-item:last-child {
    border: none;
}

.type-item span {
    margin-right: auto;
    font-family: Oswald;
    font-weight: 400;
    font-style: Regular;
    font-size: 24px;
    line-height: 125%;
    letter-spacing: -3%;
}

.type-item .arrow-icon {
    margin-left: auto;
    width: 14px;
    transform: rotate(90deg);
    transition: 0.3s;
}

.type-item:hover,
.type-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--yellow);
}

.type-item:hover .arrow-icon,
.type-item.active .arrow-icon {
    fill: var(--yellow)
}

.white-icon-sm svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
    stroke: var(--white);
}

.type-item:hover .white-icon-sm svg,
.type-item.active .white-icon-sm svg {
    fill: var(--yellow);
    stroke: var(--yellow);
}

/* Col 3: Categories */
.cat-list {
    display: none;
}

.cat-list.active {
    display: flex;
    flex-direction: column;
}

.cat-item:first-child {
    padding-top: 20px;
}

.col-goods {
    padding-bottom: 20px;
    scrollbar-color: #fff #EA7D1A;
}

.col-goods .goods-list,
#list-products .cat-item .mobile-sublist,
.cat-list.active {
    max-height: 70vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #fff transparent;
    scrollbar-width: thin;
}


#list-products .cat-item .mobile-sublist {
    overscroll-behavior: auto;
}

.cat-item,
.goods-list li {
    font-family: Inter;
    font-weight: 400;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: -2%;
}

.cat-item {
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    line-height: 1.4;
    display: flex;
    gap: 0px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.cat-item:last-child {
    border: none;
}

.cat-item .marker {
    width: 0px;
    height: 2px;
    background: var(--yellow);
    opacity: 0;
    transition: 0.3s;
}

.cat-item:hover,
.cat-item.active {
    font-weight: 700;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.cat-item:hover .marker,
.cat-item.active .marker {
    opacity: 1;
    width: 30px;
    flex-shrink: 0;
}

/* Col 4: Goods */
.goods-list {
    display: none;
}

.goods-list.active {
    display: block;
}

.goods-list ul {
    list-style: none;
    padding-left: 0;
}

.goods-list li {
    position: relative;
    padding-left: 20px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.goods-list li:hover::before {
    background: var(--yellow);
}

.goods-list li:hover a {
    color: var(--yellow);
}

.goods-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
    flex-shrink: 0;
}

/* ---------------- HEADER RIGHT ELEMENTS ---------------- */

/* Search Btn placeholder */
.search-btn {
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.search-btn::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: var(--white);
    bottom: -2px;
    right: -4px;
    transform: rotate(45deg);
}


/* Phones */
.phone-wrapper {
    position: relative;
    color: var(--white);
    cursor: pointer;
    min-width: 235px;
}

.phone-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    font-family: Oswald;
    font-weight: 500;
    font-style: Medium;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 125%;
    letter-spacing: -3%;
    text-transform: uppercase;
}

/* ===== MOBILE / BASE ===== */
.phone-dropdown {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease;
}

/* открытие по классу (мобильные) */
.phone-wrapper.active .phone-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== DESKTOP ONLY ===== */
@media (hover: hover) and (pointer: fine) {
    .phone-wrapper:hover .phone-dropdown {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}


.phone-wrapper.active .main-phone {
    color: var(--yellow);
}

.arrow-icon {
    transition: transform .2s ease, fill .2s ease;
}

.phone-wrapper.active .arrow-icon {
    transform: rotate(180deg);
    fill: var(--yellow);
}

@media (hover: hover) and (pointer: fine) {
    .phone-wrapper:hover .arrow-icon {
        transform: rotate(180deg);
        fill: var(--yellow);
    }
}

.phone-dropdown {
    position: absolute;
    top: 100%;
    padding: 0 10px 10px;
    background: var(--orange);
    z-index: 1200;
    min-width: 235px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 35px), calc(100% - 35px) 100%, 0 100%);
}

.phone-row:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 10px;
}

.phone-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.phone-row a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    font-family: Oswald;
    font-weight: 500;
    font-style: Medium;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 125%;
    letter-spacing: -3%;
    text-transform: uppercase;
}

.circle-phone {
    width: 28px;
    height: 28px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-wrapper.active .circle-phone {
    background-color: var(--yellow);
}

.circle-phone .white-icon-phone {
    width: 14px;
    height: 14px;
    fill: var(--orange);
}


.white-icon-phone {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    fill: var(--white);
}

.phone-row:hover .white-icon-phone {
    fill: var(--yellow);
}

.socials-row {
    display: flex;
    display: none;
    gap: 15px;
    padding-top: 10px;
}

.white-icon-social {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: block;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social img:hover {
    filter: drop-shadow(0 0 7px #EA7D1A);
}

.white-icon-social:first-child svg {
    margin-right: 2px;
}

.white-icon-social:hover {
    filter: drop-shadow(0 0 7px var(--white));
}

/* Call Button */
.call-btn {
    background: var(--white);
    color: var(--orange);
    border: none;
    border-radius: 2px;
    padding: 10px 12px;
    font-family: Oswald;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -3%;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0% 100%);
    display: flex;
    align-items: center;
    position: relative;
    transition: 0.3s;
}

.call-btn:hover {
    background-color: var(--yellow);
}


/* Burger */
.burger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--white);
    fill: var(--white);
    transition: all 0.3s ease;
}

.burger-btn span,
.burger-btn svg {
    transition: all 0.3s ease;
}

.burger-btn:hover span,
.burger-btn:hover svg {
    color: var(--yellow);
    fill: var(--yellow)
}

.burger-lines span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

.burger-lines span:nth-child(2) {
    width: 70%;
    margin-left: auto;
    /* Вирівнювання по правому краю */
}

.burger-text {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: 0%;
    margin-top: 2px;
    opacity: .6;
}

.hide830 {
    display: none;
}

.mobile-arrow,
.mobile-sublist {
    display: none;
}

/* ===== FIXED PHONE WIDGET ===== */

.fixed-phone-widget {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: Oswald, sans-serif;
}

.fixed-phone-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.fixed-phone-btn .white-icon-phone {
    width: 18px;
    height: 18px;
    fill: var(--white);
    transition: fill 0.3s ease;
}

.fixed-phone-btn::before,
.fixed-phone-btn::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    border-radius: 50%;
    border: 1px solid var(--orange);
    animation: ripple 2s linear infinite;
    z-index: -1;
}

.fixed-phone-btn::after {
    animation-delay: 1s;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

/* ===== HOVER / ACTIVE STATES ===== 
.fixed-phone-widget:hover .fixed-phone-btn,
.fixed-phone-widget.active .fixed-phone-btn {
    background-color: var(--yellow);
}

.fixed-phone-widget:hover .fixed-phone-btn::before,
.fixed-phone-widget:hover .fixed-phone-btn::after,
.fixed-phone-widget.active .fixed-phone-btn::before,
.fixed-phone-widget.active .fixed-phone-btn::after {
    border-color: var(--yellow); 
}*/

/* ===== DROPDOWN (POPUP) ===== */
.fixed-phone-dropdown {
    position: absolute;
    bottom: 75%;
    right: 0;
    background: var(--orange);
    padding: 15px 10px 15px;
    min-width: 240px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 100% 100%, 0 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;
}

.fixed-phone-dropdown .phone-row:first-child {
    border-top: none;
}

.fixed-phone-widget.active .fixed-phone-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    backdrop-filter: blur(18px);
}

.fixed-phone-dropdown .white-icon-phone {
    fill: var(--white);
    flex-shrink: 0;
}

@media (max-width: 1550px) {

    .menu-item:nth-child(3),
    .menu-item:nth-child(4) {
        display: none;
    }

    .header-right {
        gap: 30px;
    }

    .menu-item:first-child {
        flex-grow: 1;
    }

    .dropdown-grid {
        grid-template-columns: 3fr 5fr 6fr 6fr;
        padding: 0 40px;
    }

    .header-inner {
        grid-template-columns: 3fr 6fr 3fr 8fr;
    }
}

@media (max-width: 1200px) {
    .header-inner {
        padding: 0 20px;
    }

    .header-right {
        gap: 25px;
    }

    .header-center {
        gap: 20px;
    }

    .menu-item:nth-child(2),
    .col-intro {
        display: none;
    }

    .menu-item span {
        justify-content: center;
    }

    .dropdown-grid {
        grid-template-columns: 1fr 2fr 2fr;
        padding: 0 40px 0 0;
    }

    .header-inner {
        grid-template-columns: 1fr 1.5fr 2.2fr 5fr;
    }
}

@media (max-width: 840px) {
    .phone-trigger .main-phone {
        display: none;
    }

    .hide830 {
        display: flex;
    }

    .header-inner {
        grid-template-columns: 1fr 1fr 2fr 3fr;
        gap: 15px;
    }

    .phone-wrapper {
        min-width: auto;
    }
}

@media (max-width: 740px) {
    .header {
        height: 68px;
    }

    .menu-item span {
        justify-content: right;
    }

    .logo img {
        height: 40px;
    }

    .header-bg {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    }

    .dropdown-wrapper {
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 20px, 100% calc(100% - 55px), calc(100% - 20px) 100%, 0 100%);
    }

    .type-item {
        gap: 15px;
    }

    .type-item span {
        font-size: 20px;
    }

    .col-goods {
        display: none;
    }

    .dropdown-grid {
        grid-template-columns: 1fr 2fr;
        padding: 0;
    }

    .col-categories {
        border: none;
    }

    .cat-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
        align-items: baseline;
        justify-content: space-between;
        font-size: 16px;
        font-weight: 700;
        color: var(--white);
        grid-template-columns: 10fr 1fr;
        display: grid;
    }

    .cat-item .marker {
        display: none;
    }

    .mobile-arrow {
        display: block;
        width: 10px;
        transform: rotate(90deg);
        opacity: 0;
        width: 14px;
        flex-shrink: 0;
    }


    .cat-item.active .mobile-arrow {
        transform: rotate(180deg);
        opacity: 1;
    }

    /* 5. Мобильный подсписок (Аккордеон) */
    .mobile-sublist {
        width: 100%;
        flex-basis: 100%;
        padding-top: 15px;
        font-weight: 400;
        font-size: 13px;
        opacity: 0.9;
        display: none;
    }

    .cat-item.active .mobile-sublist {
        display: block;
    }

    .mobile-sublist ul {
        list-style: none;
        padding: 0;
    }

    .mobile-sublist li {
        margin-bottom: 14px;
        position: relative;
        padding-left: 25px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: Inter;
        font-weight: 400;
        font-size: 16px;
        line-height: 125%;
        letter-spacing: -3%;
    }

    .mobile-sublist li::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--white);
        flex-shrink: 0;
    }
}

@media (max-width: 680px) {
    .header-inner {
        padding: 0 15px;
        gap: 10px;
        grid-template-columns: 1.5fr auto 1fr 1fr;
    }

    .menu-item,
    .menu-item span {
        font-size: 15px;
    }

    .burger-text {
        font-size: 14px;
    }

    .header-right {
        gap: 5px;
    }

    .header-center .search {
        display: none;
    }

    .call-btn {
        display: none;
    }

    .phone-dropdown {
        left: -164px;
    }
}

@media (max-width: 450px) {
    .fixed-phone-widget {
        display: block;
    }

    .header {
        height: 58px;
    }

    .type-item {
        border-bottom: 0;
        gap: 8px;
    }

    .type-item span {
        font-size: 16px;
    }

    .header-inner {
        gap: 12px;
    }

    .white-icon-sm svg {
        width: 26px;
        height: 26px;
    }

    .header-right {
        gap: 0;
        margin-left: -5px;
    }

    .header-inner {
        padding: 0 9px 0 15px;
        grid-template-columns: 2fr auto auto auto;
    }

    .header-right .phone-wrapper {
        display: none;
    }

    .cat-item {
        padding: 15px;
    }


    .dropdown-grid {
        display: flex;
        flex-direction: column;
    }

    .col-types {
        display: flex;
        width: 100%;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }

    .type-item:first-child {
        border-right: 1px solid rgba(255, 255, 255, 0.4);
    }

    .type-item {
        width: 50%;
        padding: 15px 10px;
    }

    .mobile-arrow {
        opacity: 1;
        display: block;
    }

    .mobile-sublist li {
        padding-left: 0px;
    }

    .cat-item .mobile-arrow {
        margin-left: auto;
    }

    .type-item.active .arrow-icon {
        transform: rotate(180deg);
    }
}