.product-card {
  position: relative;
  display: block;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 15px;
  border-radius: 12px;
  height: 190px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: rgba(0, 0, 0, 0.3) 0px 10px 25px;
  border: 2px solid rgba(65, 150, 218, 0.7);
}

.product-card > div:nth-child(1),
.product-card > div:nth-child(2) {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: background-size 0.3s ease;
}

.product-card > div:nth-child(1) {
  filter: brightness(0.85);
}

.product-card > div:nth-child(2) {
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.product-card > div:nth-child(2) > span {
  line-height: 25px;
  padding: 6px 14px;
  color: #FFF;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  position: absolute;
  right: 12px;
  text-transform: uppercase;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.product-card > div:nth-child(2) > span:nth-child(1) {
  background: linear-gradient(135deg, #43A047, #66BB6A);
  top: 12px;
  text-shadow: 0px 0px 5px rgba(67, 160, 71, 0.7);
}

.product-card > div:nth-child(2) > span:nth-child(2) {
  background: linear-gradient(135deg, #1E88E5, #42A5F5);
  top: 50px;
  text-shadow: 0px 0px 5px rgba(30, 136, 229, 0.7);
}

.product-card > div:nth-child(2) p {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: block;
  line-height: 22px;
  padding: 8px 12px;
  color: #FFF;
  background: rgba(0, 0, 0, 0.7);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  border-radius: 6px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease, text-shadow 0.3s ease;
}

.product-card:hover > div:nth-child(2) {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.product-card:hover > div:nth-child(2) > span {
  transform: scale(1.05);
}

.product-card:hover > div:nth-child(2) p {
  background: rgba(0, 0, 0, 0.9);
  overflow: visible;
  white-space: normal;
  text-shadow: 0px 0px 12px rgba(255, 255, 255, 0.8);
}

@media (max-width: 991.99px) {
  .product-card {
    height: 160px;
  }
}
