@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');

body {
  font-family: "Lexend Deca", sans-serif;
  font-optical-sizing: auto;

}

.toode-header {
    background: #ffffff;
background: -webkit-linear-gradient(0deg,rgba(255, 255, 255, 1) 0%, rgba(239, 239, 239, 1) 100%);
background: -moz-linear-gradient(0deg,rgba(255, 255, 255, 1) 0%, rgba(239, 239, 239, 1) 100%);
background: linear-gradient(0deg,rgba(255, 255, 255, 1) 0%, rgba(239, 239, 239, 1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(
  startColorstr="#FFFFFF",
  endColorstr="#EFEFEF",
  GradientType=0
);
    padding: 30px 30px 0 30px;
    border-radius: 30px;
    margin-top:30px;
    
}
#toode-results {
    
    padding: 30px;
}
.toode-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none
}

.toode-item {
   border: 1px solid #fafafa; 
border-radius: 14px;
overflow: hidden;
background: #fafafa;
display: flex;
flex-direction: column;
    position: relative;
padding: 15px 15px 50px 15px;
    transition: border 0.3s ease;
}
.toode-item:hover {
   border: 1px solid #cecece; 

}


.toode-thumb img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: contain;
/*    mix-blend-mode: multiply;*/
        transition: all 0.3s ease;
}
.toode-item:hover img {
  transform: scale(1.05)
}
.toode-info {
    padding: 14px 14px 16px
}

.toode-title {
    margin: 0 0 8px;
    font-size: 22px!important;
    line-height: 1.3
}

.toode-badges {
  display: flex;
  gap: 7px;
  margin: 10px 0;
}
.badge-item {
text-align: center;
font-size: 12px;
    line-height: 1;
padding: 7px;
background-color: #fff;
border-radius: 5px;
}
.badge-item .icon {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 5px;
  background-size: contain;
  background-repeat: no-repeat;
}
.boiler-icon {
  background-image: url('../images/boiler.svg');
}
.area-icon {
  background-image: url('../images/area.svg');
}
.heat-icon {
  background-image: url('../images/heat.svg');
}
.size-icon {
  background-image: url('../images/size.svg');
}
.power-icon {
  background-image: url('../images/power.svg');
}
.toode-pohipunktid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
gap: 3px 10px;
  margin: 10px 0;
    justify-items: flex-start;
}

.pohipunkt-item {
  display: flex;
align-items: baseline;
  font-size: 13px;
    line-height: 1;
     color: #525252;
}

.pohipunkt-item .icon {
  width: 12px;
  height: 12px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 6px;
  flex-shrink: 0;
}


.check-icon {
  background-image: url('../images/bullet.svg'); 
}
.toode-kirjeldus,
.toode-excerpt {
    font-size: .95rem;
    color: #525252;
    margin: 6px 0 10px
}

.toode-voimsus-wrap {
    margin: 6px 0 10px
}

.toode-voimsus {
    margin: 6px 0 0 0;
    padding-left: 16px
}

.toode-voimsus li {
    margin: 2px 0
}
#resetFilters {
    height:50px
}
.hind {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 10px
}

.hind .soodus {
    font-weight: 800
}

.hind .vana {
    text-decoration: line-through;
    opacity: .6
}

.hind .tava {
    font-weight: 700
}

.toode-link {
    margin-top: 12px
}
.toode-link-wrap {
  display: flex;
  gap: 10px;
  margin-top: 10px;
    position: absolute;
bottom: 15px;
}
.toode-andmed .toode-link-wrap {
  display: flex;
  gap: 10px;
  margin-top: 10px;
    position: relative;
/*bottom: 15px;*/
}

.toode-link .btn2 {
   display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
   background-color: transparent;
    color:#525252;
    border:1px solid #525252;
    text-decoration: none
}

.toode-link .btn2:hover {
  background-color: #fff;
}

.toode-link .btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
   background-color: #E00939;
    color:#fff;
    text-decoration: none
}
.toode-link .btn:hover {

   background-color: #cb002d;

}

.toode-pagination {
    margin-top: 24px
}

.toode-pagination .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none
}

.toode-pagination .current {
    background: #111;
    color: #fff;
    border-color: #111
}

.toode-filters {
    display: flex;
    flex-direction: row;
    gap: 8px;
/*    margin: 10px 0 20px;*/
   justify-content: space-evenly;
border-bottom: 1px solid#dadada;
}

.toode-filters .filter-group {
/*    width: 25%;*/
    display: flex;
    flex-direction: column;
    gap: 6px
}
.toode-filters .filter-group:nth-child(1) {
     max-width: 35%;
}
.toode-filters .filter-group:nth-child(2) {
max-width: 15%;
}
.toode-filters .filter-group:nth-child(3) {
max-width: 15%;
}
.toode-filters .filter-group:nth-child(4) {
max-width: 35%;
}
.toode-filters .range {
    display: flex;
    align-items: center;
    gap: 8px
}

#toode-results.is-loading {
    opacity: .6;
    pointer-events: none
}

.toode-sisu .pohipunkt-item {
    font-size: 1rem
}

.toode-sisu .toode-pohipunktid-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px 10px;
margin: 10px 0;
justify-items: flex-start;
     margin: 20px 0;
}
.toode-sisu {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
    padding: 30px 0;
}

.toode-sisu .toode-kirjeldus{
    margin: 20px 0;
}
.toode-sisu .toode-hinnad{
    margin: 20px 0;
}

.single-toode-header h1{
    font-size: 2.5rem;
    color: #fff;
    max-width: 1300px;
    margin: 0 auto;
    padding: 
}
.toode-vasak {
  flex: 1 1 50%;
  min-width: 300px;
    
}
.toode-andmed {
    padding: 20px;
    background-color: #efefef;
    border-radius: 10px;
}
.single-toode-header{
    padding: 50px 20px;
    background-color: #E00939;
    width: 100%;
}
.toode-parem {
  flex: 1 1 45%;
  min-width: 250px;
}

.toode-image img {
/*height: 70vh;*/
width: 100%;
object-fit: contain;
border-radius: 8px;
margin-top: -150px;
/*mix-blend-mode: multiply;*/
}

.toode-cat-title {
  font-size: 26px;
  margin-top: 50px;
  font-weight: 600;
  color: var(--punane);
}

.toode-cat-line {
  height: 2px;
  width: 100%;
     background-color: #E00939;
  margin: 6px 0 30px;
  border-radius: 2px;
}

.toode-cat-desc {
font-size: 14px;
    color:#656565;
max-width: 50%;
  margin-bottom: 25px;
}
/* Slideri ümbris */
.filter-group {
  margin-bottom: 20px;
}
.filter-group label {
  font-weight: 400;
  display: block;
  margin-bottom: 8px;
}
.filter-group>label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.page-content-product {
    max-width: 1300px;
margin: 0 auto;
}

.toggle-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
    text-align: center;
/*    display: block;*/
}

.toggle-buttons label {
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  background-color: #f5f5f5;
  transition: all 0.2s ease;
/*    width: fit-content;*/
}
.toggle-buttons label:hover {
  background-color: #fff;
border: 1px solid #c4c4c4;
}

.toggle-buttons input[type="radio"] {
  display: none;
}

.toggle-buttons input[type="radio"]:checked + span,
.toggle-buttons label:has(input[type="radio"]:checked) {
  background-color: #E00939;
  color: #fff;
  border-color: #E00939;
}

.toggle-checkbox {
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

.toggle-checkbox input[type="checkbox"] {
  display: none;
}

.toggle-checkbox .checkbox-inner {
display: flex;
flex-direction: column;
align-items: center;
justify-content: start;
gap: 6px;
padding: 12px 10px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 15px;
background-color: #f9f9f9;
transition: background-color 0.2s ease, border-color 0.2s ease;
 width: 130px; 
text-align: center;
}

.wpml-ls-legacy-list-horizontal .wpml-ls-flag {

width: 25px;
}

.checkbox-icon {
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url('../images/boiler.svg'); /* asenda vastava teega */
}

.checkbox-label {
  color: #333;
  font-weight: 500;
  line-height: 1.2;
}

/* Aktiivne (valitud) checkbox muudab tausta */
.toggle-checkbox input[type="checkbox"]:checked + .checkbox-inner {
  background-color: #E00939;
  border-color: #E00939;
}

.toggle-checkbox input[type="checkbox"]:checked + .checkbox-inner .checkbox-label {
  color: #fff;
}

.toggle-checkbox input[type="checkbox"]:checked + .checkbox-inner .checkbox-icon {
  filter: brightness(1.2);
}


/* Range slider */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(to right, #111 var(--val,50%), #ddd var(--val,50%));
  outline: none;
  transition: background 0.3s;
  cursor: pointer;
}

/* Chrome / Safari thumb */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  background: #333;
}

/* Firefox thumb */
input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}
input[type=range]::-moz-range-thumb:hover {
  transform: scale(1.1);
  background: #333;
}

/* Firefox track */
input[type=range]::-moz-range-track {
  height: 6px;
  border-radius: 4px;
  background: #ddd;
}

/* Väärtuse kuvamine slideri kõrval */
#area_max_val {
  font-weight: bold;
  color: #111;
  margin-left: 8px;
}

/* Spinneri stiil */
.loading-spinner {
  display: none;
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #0073aa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 30px auto;
}

#toode-results.is-loading .loading-spinner {
  display: block;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.comments-area a,
.page-content a {
    text-decoration: underline
}

.alignright {
    float: right;
    margin-left: 1rem
}

.alignleft {
    float: left;
    margin-right: 1rem
}

.aligncenter {
    clear: both;
    display: block;
    margin-inline: auto
}

.alignwide {
    margin-inline: -80px
}

.alignfull {
    margin-inline: calc(50% - 50vw);
    max-width: 100vw
}

.alignfull,
.alignfull img {
    width: 100vw
}

.wp-caption {
    margin-block-end: 1.25rem;
    max-width: 100%
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px
}

.wp-caption img {
    display: block;
    margin-inline: auto
}

.wp-caption-text {
    margin: 0
}

.gallery-caption {
    display: block;
    font-size: .8125rem;
    line-height: 1.5;
    margin: 0;
    padding: .75rem
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin: 20px auto
}

.sticky {
    display: block;
    position: relative
}

.bypostauthor {
    font-size: inherit
}

.hide {
    display: none!important
}

.post-password-form {
    margin: 50px auto;
    max-width: 500px
}

.post-password-form p {
    align-items: flex-end;
    display: flex;
    width: 100%
}

.post-password-form [type=submit] {
    margin-inline-start: 3px
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute!important;
    width: 1px;
    word-wrap: normal!important
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto!important;
    clip-path: none;
    color: #333;
    display: block;
    font-size: 1rem;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 12px 24px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000
}

.post .entry-title a {
    text-decoration: none
}

.post .wp-post-image {
    max-height: 500px;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%
}

@media(max-width:991px) {
    .post .wp-post-image {
        max-height: 400px
    }
}

@media(max-width:575px) {
    .post .wp-post-image {
        max-height: 300px
    }
}

#comments .comment-list {
    font-size: .9em;
    list-style: none;
    margin: 0;
    padding: 0
}

#comments .comment,
#comments .pingback {
    position: relative
}

#comments .comment .comment-body,
#comments .pingback .comment-body {
    border-block-end: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    padding-block-end: 30px;
    padding-block-start: 30px;
    padding-inline-end: 0;
    padding-inline-start: 60px
}

#comments .comment .avatar,
#comments .pingback .avatar {
    border-radius: 50%;
    left: 0;
    margin-inline-end: 10px;
    position: absolute
}

body.rtl #comments .comment .avatar,
body.rtl #comments .pingback .avatar,
html[dir=rtl] #comments .comment .avatar,
html[dir=rtl] #comments .pingback .avatar {
    left: auto;
    right: 0
}

#comments .comment-meta {
    display: flex;
    justify-content: space-between;
    margin-block-end: .9rem
}

#comments .comment-metadata,
#comments .reply {
    font-size: 11px;
    line-height: 1
}

#comments .children {
    list-style: none;
    margin: 0;
    padding-inline-start: 30px;
    position: relative
}

#comments .children li:last-child {
    padding-block-end: 0
}

#comments ol.comment-list .children:before {
    content: "↪";
    display: inline-block;
    font-size: 1em;
    font-weight: 400;
    left: 0;
    line-height: 100%;
    position: absolute;
    top: 45px;
    width: auto
}

body.rtl #comments ol.comment-list .children:before,
html[dir=rtl] #comments ol.comment-list .children:before {
    content: "↩";
    left: auto;
    right: 0
}

@media(min-width:768px) {
    #comments .comment-author,
    #comments .comment-metadata {
        line-height: 1
    }
}

@media(max-width:767px) {
    #comments .comment .comment-body {
        padding: 30px 0
    }
    #comments .children {
        padding-inline-start: 20px
    }
    #comments .comment .avatar {
        float: left;
        position: inherit
    }
    body.rtl #comments .comment .avatar,
    html[dir=rtl] #comments .comment .avatar {
        float: right
    }
}

.page-header .entry-title,
.site-footer .footer-inner,
.site-footer:not(.dynamic-footer),
.site-header .header-inner,
.site-header:not(.dynamic-header),
body:not([class*=elementor-page-]) .site-main {
    margin-inline-end: auto;
    margin-inline-start: auto;
    width: 100%
}


@media(min-width:576px) {
    .page-header .entry-title,
    .site-footer .footer-inner,
    .site-footer:not(.dynamic-footer),
    .site-header .header-inner,
    .site-header:not(.dynamic-header),
    body:not([class*=elementor-page-]) .site-main {
        max-width: 500px
    }
    .site-footer.footer-full-width .footer-inner,
    .site-header.header-full-width .header-inner {
        max-width: 100%
    }
}

@media(min-width:768px) {
    .page-header .entry-title,
    .site-footer .footer-inner,
    .site-footer:not(.dynamic-footer),
    .site-header .header-inner,
    .site-header:not(.dynamic-header),
    body:not([class*=elementor-page-]) .site-main {
        max-width: 600px
    }
    .site-footer.footer-full-width,
    .site-header.header-full-width {
        max-width: 100%
    }
}

@media(min-width:992px) {
    .page-header .entry-title,
    .site-footer .footer-inner,
    .site-footer:not(.dynamic-footer),
    .site-header .header-inner,
    .site-header:not(.dynamic-header),
    body:not([class*=elementor-page-]) .site-main {
        max-width: 800px
    }
    .site-footer.footer-full-width,
    .site-header.header-full-width {
        max-width: 100%
    }
}

@media(min-width:1200px) {
    .page-header .entry-title,
    .site-footer .footer-inner,
    .site-footer:not(.dynamic-footer),
    .site-header .header-inner,
    .site-header:not(.dynamic-header),
    body:not([class*=elementor-page-]) .site-main {
        max-width: 1300px
    }
    .site-footer.footer-full-width,
    .site-header.header-full-width {
        max-width: 100%
    }
}

.site-header+.elementor {
    min-height: calc(100vh - 320px)
}


/*MOBILE*/
@media(max-width:575px) {
    .page-header .entry-title,
    .site-footer .footer-inner,
    .site-footer:not(.dynamic-footer),
    .site-header .header-inner,
    .site-header:not(.dynamic-header),
    body:not([class*=elementor-page-]) .site-main {
        padding-inline-end: 10px;
        padding-inline-start: 10px
    }
    
    .toode-filters {
display: grid;
  grid-template-columns: repeat(1, 1fr);
gap: 14px;
margin: 10px 0 20px;
}
    .toode-filters .filter-group {
width: 100%;

}
    #toode-results {
padding: 10px;
}
    .toode-filters .filter-group:nth-child(1),
    .toode-filters .filter-group:nth-child(2),
    .toode-filters .filter-group:nth-child(3),
    .toode-filters .filter-group:nth-child(4){
width: 100%;
max-width: 100%!important;
}
   .filter-group {
margin-bottom: 3px;
} 
    .toggle-checkbox .checkbox-inner {
display: flex;
flex-direction: row;
align-items: center;
justify-content: start;
gap: 6px;
padding: 12px 10px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 15px;
background-color: #f9f9f9;
transition: background-color 0.2s ease, border-color 0.2s ease;
width: 50%;
text-align: center;
}
    .toode-image img {
 
    margin-top: 0px;
}
    .toode-cat-desc {
font-size: 13px;
max-width: 100%;
  margin-bottom: 25px;
}
}