.product-card-link:hover {
  text-decoration: none;
}
.product-card {
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  /* box-shadow: 0 5px 20px rgba(17, 0, 80, 0.08); */
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #ccc;
  position: relative;
}
.product-card:hover {
  /* transform: translateY(-8px); */
  /* box-shadow: 0 20px 40px rgba(17, 0, 80, 0.18); */
  border-color: rgba(17, 0, 80, 0.2);
}
.product-img {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.product-img img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #110050 0%, #2d1b69 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  display: inline-block;
  z-index: 2;
}
.product-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-title {
  font-size: 1rem;
  font-weight: 500;
  /* margin: 0 0 8px; */
  margin-bottom: 0.4rem;
  /* line-height: 1.4; */
  color: #110050;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: center;

}

.product-title:hover {
  color: #0d6efd;
}
.product-desc {
  color: #4a5568;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: center;

}
.product-spec {
  font-size: 0.85rem;
  color: #2d3748;
  margin-bottom: 0.4rem;
  display: flex;
  gap: 5px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  text-align: center;
}
.product-spec:last-of-type{
  margin-bottom:0;

}
.product-spec a {
  color: #2575ff;
}
.product-spec a:hover {
  text-decoration: underline;
}
.product-spec i {
  color: #110050;
  width: 18px;
}
.product-spec p {
  margin-bottom: 0.25rem;
}
.product-btn-one {
  background-color: #e95107;
  color: #fff;
  padding: 5px 8px;
  font-size: 0.7rem;
  border-radius: 5px;
  border: none;
  position: absolute;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  right: 5px;
  bottom: 5px;
  z-index: 999;
  cursor: pointer;
}

.product-btn-one:hover {
  background-color: rgba(233, 81, 7, 0.7) !important;
  /* transform: translateX(0); */
}

.product-stock{
  position: absolute;
  background-color: #110050;
  left: 5px;
  top: 5px;
  border-radius: 50px;
  font-size: 12px;
  padding: 3px 8px;
  color: #fff;
}

.btn-one:before {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  width: 101%;
  height: 100%;
  background-color: #e95107;
  z-index: -1;
  transition: transform 0.4s ease-out;
  transform: translateX(-100%);
}



.btn-two {
  background-color: #e95107;
  color: #fff;
  padding: 8px 15px;
  font-size: 0.8rem;

  border-radius: 50px;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
}

.btn-two:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: #110050;
  z-index: -1;
  transition: transform 0.4s ease-out;
  transform: translateX(100%);
}

.btn-two:hover:before {
  transform: translateX(0);
}

.btn-two:hover {
  cursor: pointer;
  color: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .product-title {
    font-size: 0.9rem;
  }
  .product-desc {
    font-size: 0.75rem;
  }
}
