/* =====================================
   DESKTOP (основное)
   1200px+
===================================== */

.kadi-product p {
    font-size: 18px !important;
    line-height: 1.4 !important;
}


.kadi-product h3 {
    font-size: 22px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    height: auto !important;
    min-height: 70px !important;
    margin-top: 10px !important;
    margin-bottom: 0px !important;
    text-align: left !important;
    color: #1a1a1a !important;
}

.ars5 {
    margin-bottom: 5px;
    margin-top: 5px;font-size:16px;
}

footer a {
    color: #444;
    text-decoration: none;
    display: block;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Montserrat';
    margin-bottom: 9px;
}
.ars6 {
    font-size: 20px;
    width: 70% !important;
    margin-top: 5%;
    font-weight: 600;
    margin-bottom: 6%;
    font-family: 'Montserrat';
    margin-bottom: 22px;
}

footer {    background: #F9F9F9;
    padding-top: 3%;margin-top:8%!important;}




/* ===== СЕТКА ===== */
.kadi-products-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important; /* 💻 комп */
  gap: 25px !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* ===== КАРТОЧКА ===== */
.kadi-product {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: #fff !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: inherit !important;
}

/* ===== КАРТИНКА ===== */
.kadi-product img {
  width: 100% !important;
  height: 320px !important;          /* одинаковая высота */
  object-fit: cover !important;
  border-radius: 14px 14px 0 0 !important;
  display: block !important;
  margin-bottom:0px!important;
}

/* ===== ВНУТРЕННИЙ КОНТЕНТ ===== */
.kadi-product .ars7 {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  padding: 15px 15px 0px 15px !important;border-radius: 0px 0px 10px 10px !important;


   
                background: #f5f5f5 !important;
            
                border-radius: 0px 0px 10px 10px !important;
}

/* ===== ЗАГОЛОВОК — 2 СТРОКИ ===== */
.kadi-product h3 {
  display: -webkit-box !important;
 
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
    -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        /* Убираем многоточие */
        text-overflow: clip;
        /* вместо ellipsis */
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  min-height: calc(1.3em * 2) !important;
  margin: 0 0 6px 0 !important;
  color: #1a1a1a !important;
}

/* ===== ОПИСАНИЕ — 3 СТРОКИ ===== */
.kadi-product p {
  display: -webkit-box !important;
 
 
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;

  font-size: 16px !important;
  text-align:justify;
  line-height: 1.5 !important;
  min-height: calc(1.5em *6) !important;
  margin:  0px 0 10px 0 !important;
  color: #3c3c3c !important;
}

/* ===== ЦЕНА — ВСЕГДА ВНИЗУ ===== */
.kadi-product .price {
  margin-top: 8px !important;
  height:0px!important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #000 !important;
}



/* =====================================
   TABLET
   до 1023px
===================================== */

@media (max-width: 1023px) {
  .kadi-product p {
         line-height: 1.4 !important;
    }
        .kadi-product h3 {
            font-size: 18px !important;
            min-height: calc(1.3em * 2) !important;            margin-top: 8px !important;
            margin-bottom: 13px !important;
        }
    
         .kadi-products-grid {
grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
             gap: 10px !important;
         }
    
         .kadi-product img {
             height: 220px !important;margin-bottom:0px!important;border-radius:
         }
    
         .kadi-product .ars7 {
             padding: 10px !important;background: #f5f5f5 !important;
                padding: 12px !important;
                border-radius: 0px 0px 10px 10px !important;
         }
    
 

 .related-desc {
     line-height: 1.4;
     height: calc(1.4em * 3)!important;
     /* ← ОДИНАКОВАЯ ВЫСОТА */
     overflow: hidden;

     margin: 6px 0 0;
     color: #666;
     font-size: 14px;
 }

         .kadi-product p {
    display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    text-align:justify!important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        height: calc(1.4em * 6) !important;
        /* 🔥 ЖЁСТКАЯ ВЫСОТА */
        margin-bottom: 6px !important;
         }
    
.kadi-product .price {
    margin-top: 6px !important;
    font-size: 16px !important;height:
    font-weight: 600 !important;
}
    
 

}

/* =====================================
   MOBILE
   до 767px
===================================== */

@media (max-width: 767px) {




    /* Единые стили для всех элементов на странице товара */
        .product-info,
        .product-info * {
        font-family: 'Montserrat', sans-serif !important;
            color: #3b3b3b;
            line-height: 1.7 !important;
        }
    
        /* Дополнительная нормализация для конкретных элементов */
        .product-info h1,
        .product-info h2,
        .product-info h3,
        .product-info h4,
        .product-info h5,
        .product-info h6,
        .product-info p,
        .product-info span,
        .product-info div,
        .product-info a,
        .product-info li,
        .product-info strong,
        .product-info b,
        .product-info em,
        .product-info i {
            font-family: 'Montserrat', sans-serif;
            line-height: 1.5;
        }
    
        /* Убедимся что цена тоже подчиняется */
        .product-info .woocommerce-Price-amount,
        .product-info .woocommerce-Price-currencySymbol {
            font-family: 'Montserrat', sans-serif;
            line-height: 1.6;
        }
    .kadi-product p {
         line-height: 1.6 !important;
    }
        .kadi-product h3 {
            font-size: 16px !important;
            min-height: calc(1.1em * 3) !important;            margin-top: 0px !important;
            margin-bottom: 13px !important;margin-top:7px !important;
        }
    
         .kadi-products-grid {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
             gap: 10px !important;
         }
    
         .kadi-product img {
             height: 220px !important;margin-bottom:0px!important;border-radius:
         }
    
         .kadi-product .ars7 {
             padding: 10px !important;background: #f5f5f5 !important;
                padding: 12px !important;
                border-radius: 0px 0px 10px 10px !important;
         }
                .product-title {
                    font-size: 22px;
                    font-weight: 600;
                    font-family: 'Montserrat';
                    margin-top: 3%;
                    margin-bottom: 3%;
                    line-height: 1.5 !important;
                }
 
         .kadi-product p {
    display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    
        font-size: 14px !important;
        line-height: 1.4 !important;
        height: 155px !important ;
        /* 🔥 ЖЁСТКАЯ ВЫСОТА */
        margin-bottom: 6px !important;
         }
    
.kadi-product .price {
    margin-top: 6px !important;
    font-size: 16px !important; 
    font-weight: 500 !important;
}


.opisanie {line-height:2!important;}
}