body,
html {
  background: #fafafa !important;
}

.product-category-page .category-overview {
  min-height: 520px;
}

.product-category-sidebar .side-tit a {
  display: block;
  color: #fff;
}

.product-category-menu > li.current > a,
.product-category-menu > li > a:hover {
  background: #1d5496;
  color: #fff;
}

.product-category-menu .side-count {
  float: right;
  min-width: 28px;
  height: 28px;
  margin: 3px 12px 0 8px;
  border-radius: 14px;
  background: #eef3f9;
  color: #1d5496;
  font-size: 12px;
  line-height: 28px;
  text-align: center;
}

.product-category-menu > li.current > a .side-count,
.product-category-menu > li > a:hover .side-count {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.category-overview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e9ed;
}

.category-kicker {
  display: block;
  margin-bottom: 8px;
  color: #1d5496;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

.category-overview-head h1 {
  margin: 0;
  color: #222;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
}

.category-overview-head p {
  margin: 9px 0 0;
  color: #777;
  font-size: 15px;
  line-height: 1.7;
}

.category-back {
  flex: 0 0 auto;
  padding: 10px 18px;
  border: 1px solid #1d5496;
  border-radius: 3px;
  color: #1d5496;
  font-size: 14px;
  transition: .25s ease;
}

.category-back:hover {
  background: #1d5496;
  color: #fff;
}

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.category-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eceff2;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(27, 52, 78, .06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.category-card:hover {
  border-color: rgba(29, 84, 150, .28);
  box-shadow: 0 12px 28px rgba(27, 52, 78, .14);
  transform: translateY(-5px);
}

.category-card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.category-card-image {
  position: relative;
  overflow: hidden;
  padding-top: 100%;
  background: linear-gradient(145deg, #f6f8fa, #edf1f5);
}

.category-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0px;
  transition: transform .45s ease;
}

.category-card:hover .category-card-image img {
  transform: scale(1.06);
}

.category-card-body {
  padding: 20px;
}

.category-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.category-card-title-row h2 {
  min-width: 0;
  margin: 0;
  color: #252525;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}

.category-arrow {
  flex: 0 0 auto;
  color: #1d5496;
  font-size: 23px;
  line-height: 1;
  transition: transform .25s ease;
}

.category-card:hover .category-arrow {
  transform: translateX(5px);
}

.category-card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: #777;
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-card-meta {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #eff1f3;
  color: #8a929b;
  font-size: 13px;
}

.category-empty {
  padding: 55px 24px;
  border: 1px dashed #ccd4dc;
  background: #fff;
  color: #777;
  text-align: center;
}

.category-empty a {
  color: #1d5496;
}

@media (max-width: 1199px) {
  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .product-category-page .ui.containers {
    padding-right: 15px;
    padding-left: 15px;
  }

  .product-category-page .grid-box {
    display: block;
  }

  .product-category-page .grid-box .sideBar,
  .product-category-page .grid-box .page-rightBar {
    width: 100% !important;
    padding-left: 0;
  }

  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 10px;
  }

  .category-overview-head h1 {
    font-size: 25px;
  }

  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-card-body {
    padding: 14px;
  }

  .category-card-title-row h2 {
    font-size: 16px;
  }

  .category-card-body p {
    display: none;
  }

  .category-card-meta {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .category-card-grid {
    grid-template-columns: 1fr;
  }
}