.img-block-item {
  width: 100%;
  height: 200px;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  position: relative;
  border-radius: var(--border-radius-button) var(--border-radius-button) 0px 0px;
}

.img-block-item img {
  height: 200px;
  object-fit: cover;
}

.img-block-item-recommend {
  height: 150px;
}

.img-block-item-new {
  background: #ed2324;
  background-repeat: no-repeat;
  background-size: 32px;
  color: #fff;
  position: absolute;
  right: -25px;
  text-align: center;
  top: 10px;
  transform: rotate(45deg);
  width: 85px;
  z-index: 50;
}

.img-item-gallery-detail {
  width: 100%;
  height: 90px;
  display: inline-block;
  vertical-align: top;
  position: relative;
}

.img-item-gallery-detail:hover {
  cursor: pointer;
}

.img-item {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  position: absolute;
  /* padding: 10px; */
}

.card {
  margin-bottom: 15px;
  /*  max-height: 340px; */
  border-radius: var(--border-radius-button);
  border-style: solid;
  border-width: 2px;
  border-color: #f7f7f7;
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.1);
}
.card-border {
  border-radius: var(--border-radius-button);
}

.card-border:hover {
  margin-bottom: 15px;
  /*min-height: 220px;
    max-height: 340px;*/
  border-style: solid;
  border-width: 2px;
  border-color: var(--theme-color-primary);
}

.card-border a:focus {
  outline: none !important;
}
.card a {
  color: #212529;
  text-decoration: none;
}

.card .card-body {
  min-height: 70px;
  padding: 0px;
}

.card .card-body .card-title {
  font-weight: bold;
  font-size: 14px;
  height: 50px;
  margin: 0 5px 0 5px;
  padding: 5px 0 0 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  line-height: 25px;
  margin: 0 12px 12px 12px;
}

.card .card-body .card-text {
  font-size: 14px;
  margin: 12px;
}

.card .card-body .card-text .card-type {
  font-size: 12px;
  color: #909395;
}

.card .card-body .card-text .price {
  color: #ed2324;
  display: block;
  font-weight: bold;
  font-size: 22px;
}
.card-list {
  margin-bottom: 15px;
  min-height: 340px;
}

.list-gp-item {
  float: none;
  width: 100%;
  margin-bottom: 15px;
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 1rem;
  border: 0;
}
.list-gp-item .card {
  border-radius: var(--border-radius-button);
  min-height: 0px;
  margin-bottom: 0px;
}
.list-gp-item .card .card-body {
  min-height: 0px;
  margin-bottom: 0px;
  padding: 0px;
}

.list-gp-item .img-block-item {
  float: left;
  width: 22.65%;
  max-height: 100%;
  padding: 5px;
  margin-right: 25px;
  position: relative;
  /* height:100px; */
}
.list-gp-item .card .card-body .card-title {
  color: #212529;
  font-weight: bold;
  font-size: 16px;
  padding: 10px 10px 10px 0;
  /* display:table; */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  height: 80px;
}
.list-gp-item .card .card-body .card-text {
  float: left;
  margin-top: 0px;
  display: contents;
}
.list-gp-item .card .card-body .card-text .card-type {
  font-size: 12px;
  color: #909395;
  padding-right: 10px;
}
.list-gp-item .card .card-body .card-text .price {
  margin: -0px 0px -8px 0px;
}
.list-gp-item .card .card-body .card-text .discount {
  /* font-size: 12px; */
  margin-top: 0px;
}
.list-gp-item .card .card-body .card-text .discount-percent,
.list-gp-item .card .card-body .card-text .old-discount-percent {
  /*  font-size: 12px; */
  margin-top: 0px;
  color: #ed2324;
}

.list-gp-item .card .card-body .card-text .card-foot {
  /*padding-bottom: 10px;*/
}
.card-search-friend {
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .list-gp-item a .img-block-item {
    float: left;
    width: 50%;
    max-height: 100%;
    padding: 5px;
    margin-right: 25px;
    position: relative;
    height: 170px;
  }

  .list-gp-item .img-block-item {
    float: none;
    width: 100%;
  }
}
