body#category #subcategories,
body#category .category-subcategories {
  display: none;
}

.uaucs-subcategories {
  margin: 28px 0 20px;
  padding: 34px 0 30px;
  border-bottom: 1px solid #eee;
}

.uaucs-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 34px;
}

.uaucs-item {
  display: flex;
  min-width: 0;
  color: #2b2b2b;
  text-align: center;
  text-decoration: none;
  flex-direction: column;
  align-items: center;
}

.uaucs-item:hover,
.uaucs-item:focus {
  color: #111;
  text-decoration: none;
}

.uaucs-media {
  display: flex;
  width: 100%;
  height: 104px;
  margin: 0 0 18px;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.uaucs-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 104px;
  object-fit: contain;
}

.uaucs-placeholder {
  color: #777;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

.uaucs-name {
  display: block;
  max-width: 100%;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 1399px) {
  .uaucs-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .uaucs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 28px;
  }
}

@media (max-width: 767px) {
  .uaucs-subcategories {
    margin-top: 18px;
    padding: 22px 0 24px;
  }

  .uaucs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .uaucs-media {
    height: 92px;
    margin-bottom: 14px;
  }

  .uaucs-media img {
    max-height: 92px;
  }

  .uaucs-placeholder {
    font-size: 15px;
  }

  .uaucs-name {
    font-size: 14px;
  }
}
