.j-categories {
    width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.j-categories__title {
    font-size: 30px;
    color: #4e4e4e;
    text-align: center;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-top: 8px;
    padding-bottom: 5px;
    text-transform: uppercase;
    border-bottom: 2px rgba(239, 139, 46, 0.6) solid;
}
.j-categories__item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 10px;
    background: #ffffff;
    box-shadow: 0 0px 6px rgba(0,0,0,0.3);
    border: 2px #fff solid;
}

.j-categories__item:hover {
    box-shadow: 0 0px 10px rgb(132, 132, 132);
}


@media (min-width: 701px) {
.j-categories__item {
    margin-top: 10px;
    margin-bottom: 10px;
    width: -webkit-calc(25% - 7.5px);
    width: 19%;
    min-height: 200px;
    height:100%;
    border-radius: 5px;
    margin-right: 15px;
}
  .j-categories__item:nth-child(4n + 1) {
    margin-right: 15px;
  }
  .j-categories__item:nth-child(4n + 2) {
    margin-right: 15px;
  }
  .j-categories__item:nth-child(4n + 3) {
    margin-right: 15px;
  }
  .j-categories__item:nth-child(-n + 4) {
    margin-right: 15px;
  }
}
@media (max-width: 700px) {
.j-categories__item {
    width: 48%;
    font-size: 14px;
    margin-top: 10px;
    margin: 5px auto;
    border-radius: 5px;
    box-shadow: 0px 0px 6px 1px rgb(216, 216, 216);
}
  .j-categories__item:first-child {

  }
}




@media (max-width: 500px) {
.j-categories__item {
    width: 48%;
    font-size: 13px;
    margin-top: 10px;
    margin: 5px auto;
    border-radius: 5px;
    box-shadow: 0px 0px 6px 1px rgb(216, 216, 216);
}
  .j-categories__item:first-child {

  }
}


.j-categories__img {
  width: 100%;
  height: 200px;
  position: relative;
}

@media (max-width: 700px) {
  .j-categories__img {
    height: 120px;
  }
}

.j-categories__img img {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  position: absolute;
}
.j-categories__name {
  display: block;
  margin-top: 10px;
  color: #8c8c8c;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .j-categories__name {
    font-size: 12px;
  }
}

