
.product-item {
  margin-bottom: 2rem;
  position: relative;
  border: 1px solid var(--gray);
  overflow: hidden;
}
.product-item a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  /*effect*/
  background-image: linear-gradient(white,white), repeating-conic-gradient(from var(--a, 0deg), transparent 0%, var(--main-color1) 50%, transparent 50%, var(--main-color1) 100%);
  background-clip: content-box, border-box;
}
.product-item:hover {
  border-color: transparent;
}
.product-item:hover a {
  border: 1px solid transparent;
  animation: a 2s linear infinite;
}
.pi-img-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  overflow: hidden;
}
.pi-img {
  max-height: 300px;
  transform: scale(1);
  transition: transform .5s ease;
}
.pi-info {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 0;
}
.pi-name {
  height: 2.5em;
  overflow: hidden;
  font-weight: bold;
  text-align: center;
  font-size: 1.4rem;
  color: var(--main-color2);
}
.pi-desc {
  margin-bottom: 0.25rem;
}
.pi-readmore {
  background-color: var(--bg-gray);
  height: 56px;
  text-align: center;
  font-weight: 800;
}
.pi-readmore:after {
  content: '';
  height: 0.5em;
  width: 0.5em;
  border: 2px solid;
  border-bottom: 0;
  border-left: 0;
  transform: translateY(0.1em) rotateZ(45deg);
  margin-left: 0.25rem;
}
.pi-tag {
  position: absolute;
  font-weight: bold;
  top: 0;
  right: 0;
  font-size: 0.8rem;
  padding: 0.25rem 1rem;
}
.tag-hot {
  position: absolute;
  right: 0;
  top: 0;
  background-color: #cd1a1a;
  color: var(--text-indark);
  text-align: center;
  padding: 3px 15px;
}
.btn-toolbar {
  justify-content: center;
}
#pagebtn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0 8px;
  list-style-type: none;
  padding: 0;
}
.btn-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2em;
  height: 2em;
  border: 1px solid var(--gray);
  border-radius: 50%;
  color: #333;
  text-decoration: none;
}
.btn-primary[rel=next], .btn-primary[rel=prev] {
  padding-bottom: 4px;
}
.pdList {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, 1fr);
  margin: 0 1rem;
}
@media (min-width: 768px) {
  .pdList {
    grid-template-columns: repeat(2, 1fr);
      justify-content: space-between;
    }
}
@media (min-width: 992px) {
    .pdList {
      grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1440px) {
    .pdList {
      grid-template-columns: repeat(4, 1fr);
    }
}
/**/
.lockborder::before {
  background-color: #3333;
  content: '';
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform: translateY(0%);
  transition: transform .4s;
}
.lockborder:hover:before {
  transform: translateY(-100%);
}
.lockborder .pi-img {padding: 2rem;}
span.tag-unlock {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  -webkit-mask: url(http://10.12.254.20:8080/template/images/icon_unlock.svg) no-repeat center/contain;
  -webkit-mask-size: contain;
  background-color: var(--main-color1);
  z-index: 1;
}
/* effect */
.product-item {
  transition: border-color 0.5s ease;
}
.pi-readmore {
  transition: background-color 0.5s ease;
}
.pi-name {
  transition: color .3s ease;
}
.pi-img-wrapper img {
  transform: scale(1);
  transition: transform .5s ease;
}
/* .product-item:hover {
  border-color: var(--main-color1);
} */
.product-item:hover .pi-name {
}
.product-item:hover .pi-readmore {
  background-color: var(--main-color1);
  color: var(--text-indark)
}
.product-item:hover .pi-img-wrapper img {}
.product-item:hover .pi-img {
  transform: scale(1.2);
}
#pagebtn > a:hover {
  border-color: var(--main-color2)
}
#pagebtn .active {
  border: 2px solid var(--main-color1);
  pointer-events: none;
}
@property --a {
	syntax: '<angle>';
	initial-value: 0deg;
	inherits: false
}
@keyframes a { to { --a: 1turn } }