/* --- КАТАЛОГ ТОВАРОВ --- */

h2 {
   margin-top: -20px;
}

.catalog {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 30px;
}

.catalog-2cols {
   display: grid;
   grid-template-columns: repeat(2, minmax(300px, 450px));    /* колонки не будут бесконечно расти */
   gap: 50px;
   justify-content: center;  /* если колонки стали Уже контейнера, их нужно выровнять по центру или слева */
}

.catalog-3cols {
   display: grid;
   grid-template-columns: repeat(3, minmax(300px, 400px));    /* колонки не будут бесконечно расти */
   gap: 40px;
   justify-content: center;  /* если колонки стали Уже контейнера, их нужно выровнять по центру или слева */
   margin: 50px;
}

.catalog-section-description {
   margin-bottom: 20px;
   color: var(--text-light);
   font-size: 1rem;
   line-height: 1.6;
}

.item-desc-short .category_desc-short {
   margin-bottom: 20px;
   color: var(--item-desc-short);
   font-size: 1.0rem;
}
.category_desc-short {
   font-size: 1.3rem;
   text-align: center;
   padding: 25px 50px;
}
p {
   font-size: 1.5rem;
   font-weight: 600;
}
.item-card {
   background: var(--bg-card);
   border: 1px solid var(--border);
   border-radius: 20px;
   overflow: hidden;
   transition: all 0.3s ease;
   position: relative;
}

.item-card:hover {
   transform: scale(1.05);
   /* color: var(--clr-white); */
   box-shadow: 5px -7px 15px rgba(255,255,255,0.3);
}

.item-img-badge {
   position: absolute;
   top: 15px; left: 15px;
   background: var(--primary);
   color: white;
   padding: 5px 12px;
   border-radius: 50px;
   font-size: 0.8rem;
   font-weight: 700;
   z-index: 5;
}

.item-img-box {
   height: 200px;
   background: #fff; /* Белый фон для фото оборудования */
   display: flex;
   align-items: center;
   justify-content: center;
}

.img-placeholder { color: #ccc; font-weight: 900; }

.item-info {
   padding: 25px; 
   /* color: var(--clr-text-regular);  */
}

.item-info h3 { 
   margin-bottom: 15px;
   font-size: 1.3rem;
   color: var(--clr-item-name);
}
/* ---------- */
.item-specs {
   margin-bottom: 15px;
   font-size: 0.9rem;
   font-weight: lighter;
   color:var(--item-specs);
   opacity: 0.8;
   padding-left: 15px;
}
.item-specs p { 
   font-size: 1rem;
   font-weight: normal;
}

.item-specs li { 
   list-style: disc;
   color: var(--item-specs);
   font-weight: normal;
   font-size: 1rem;
}
/* ---------- */


.item-price { 
   font-size: 1.4rem;
   font-weight: bold;
   color: var(--clr-price); 
}


.item-footer {
   display: flex;
   justify-content: space-between;
   align-items: center;
   border-top: 1px solid var(--border);
   padding-top: 20px;
}





/* ФОТОГРАФИИ В КАТАЛОГЕ - В КАРТОЧКАХ */
.item-img {
   max-width: 100%;    /* Чтобы картинка не была шире контейнера */
   max-height: 100%;   /* Чтобы картинка не была выше контейнера */
   object-fit: contain; /* Картинка масштабируется без искажений, вписываясь в блок */
   display: block;
}
.item-img-box img {
    max-width: 90%;
    transition: transform 0.4s ease;
}

.item-card:hover img {
   transform: scale(1.05) translateY(3px); /* Картинка слегка "оживает" при наведении */
   filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5)); /* Тень для фото без фона */
 }

 
.copyright {
   font-size: 12px; 
   color: rgba(255,255,255,0.6);
   /* background: var(--clr-footer); */
   text-align: center; 
   padding: 25px; 
   border-top: 3px solid rgba(255,255,255,0.3);
}