/* ТОВАРЫ КАТЕГОРИИ — архив термина product_category */

.category-products {
  padding: 60px 0;
}

.category-products__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.category-products__item {
  display: flex;
}

.category-products__card {
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: var(--cards);
  border: 0.25px solid #D6DEE8;
}

.category-products__media {
  display: block;
}

.category-products__media img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.category-products__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 20px;
  padding: 20px 10px;
}

.category-products__text {
  padding-bottom: 10px;
  position: relative;
}

.category-products__text::after {
  position: absolute;
  width: 100%;
  max-width: 262px;
  height: 1px;
  background-color: var(--button);
  content: '';
  bottom: 0;
  left: 0;
}

.category-products__more {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  color: var(--button);
  justify-content: space-between;
}

.category-products__more:hover {
  opacity: 0.7;
}

/* ============================================
   МОБАЙЛ ≤ 768px
   ============================================ */

@media (max-width: 768px) {

  .category-products {
    padding: 30px 0;
  }

  .category-products__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-products__body {
    padding: 10px;
  }

  .category-products__text::after {
    max-width: 100%;
  }
}
