/* CSS для страницы архива продуктов */

.s2_service_feed_section {
  padding: 60px 0;
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 -15px;
}

.products-grid .product-item {
  padding: 0;
  margin-bottom: 0;
  min-width: 0;
}

.s2_service_feed_item {
  background-color: #fff;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.s2_service_feed_item:hover {
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.eight-feature-box {
  padding: 25px;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.wrap-products-logo {
  margin-bottom: 20px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.products-logo img {
  max-height: 100px;
  width: auto;
  margin: 0 auto;
  display: block;
}

.feature-text8 {
  flex-grow: 1;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
}

.feature-text8 h3 {
  font-size: var(--font-size-xl);
  margin-bottom: 15px;
}

.feature-text8 p {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: #666;
  flex-grow: 1;
}

.ei-feature-more {
  margin-top: 15px;
}

.ei-feature-more a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all 0.3s ease;
}

.ei-feature-more a:hover {
  color: #fff;
  padding-left: 5px;
}

/* Элемент для настройки Isotope masonry */
.grid-sizer {
  width: 33.333%;
}

/* Стили для режима fitRows */
.filtr-container-area.grid {
  margin: 0 -15px;
  width: calc(100% + 30px);
}

.grid-item {
  display: flex;
  margin-bottom: 30px;
  float: left;
  /* Важно для правильной работы Isotope */
}

/* Fix для равной высоты карточек */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

@media (max-width: 1199px) {
  .grid-sizer {
    width: 33.333%;
  }
}

@media (max-width: 991px) {
  .grid-sizer {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .grid-sizer {
    width: 100%;
  }

  .s2_service_feed_section {
    padding: 40px 0;
  }
}

/* Дополнительные фиксы для корректного отображения сетки */
.product-item {
  backface-visibility: hidden;
  /* Предотвращает мерцание при анимации */
  will-change: transform;
  /* Оптимизирует производительность анимации */
}

.post-type-archive-products #s2_service_feed .s2_service_feed_item {
  width: 100%;
  padding: 0;
  height: auto;
  box-shadow: none;
  border-radius: 0;
}

.post-type-archive-products .feature-eight-section .eight-feature-box .wrap-products-logo {
  display: flex;
  width: auto;
}

.post-type-archive-products .products-logo img {
  max-height: inherit;
}

.post-type-archive-products .products-grid .product-item {
  margin-bottom: 0px;
}

.post-type-archive-products .feature-eight-section.product-section {
  padding-top: 90px;
}


.post-type-archive-products .saas_two_section_title h2 {
  font-size: var(--font-size-h3);
  font-weight: 700;
  line-height: 1.2;
  color: #061b2e;
  margin-bottom: 20px;
}

.post-type-archive-products .saas_two_section_title h2 span {
  color: #5DA88F;
}

.post-type-archive-products .service_text_box h3,
.post-type-archive-products .service_text_box h3 a {
  font-size: var(--font-size-h5);
  font-weight: 600;
  line-height: 1.4;
  color: #061b2e;
}

.post-type-archive-products .feature-text8 h3 {
  font-size: var(--font-size-h4);
  font-weight: 600;
  line-height: 1.4;
  color: #061b2e;
}

@media screen and (max-width: 991px) {

  .post-type-archive-products .saas_two_section_title h2 {
    font-size: var(--font-size-title-medium);
  }

  .post-type-archive-products .service_text_box h3,
  .post-type-archive-products .service_text_box h3 a {
    font-size: var(--font-size-service-title);
  }

  .post-type-archive-products .feature-text8 h3 {
    font-size: var(--font-size-h5);
  }
}

@media screen and (max-width: 480px) {

  .post-type-archive-products .saas_two_section_title h2 {
    font-size: var(--font-size-title-small);
  }

  .post-type-archive-products .service_text_box h3,
  .post-type-archive-products .service_text_box h3 a {
    font-size: var(--font-size-lg);
  }

  .post-type-archive-products .feature-text8 h3 {
    font-size: var(--font-size-service-title);
  }
}