.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1500px;
  margin: auto;
  padding: 0px 20px 0px;
}

.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.product-image .hover-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-image:hover .hover-img {
  opacity: 1;
}

.overlay-text {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(
    transparent,
    rgba(0,0,0,0.3),
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.7),
    #000
  );
  color: #fff;
  padding: 10px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-image:hover .overlay-text {
  opacity: 1;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.stars {
  color: #f5a623;
  font-size: 14px;
  margin-bottom: 10px;
}

.description {
  font-size: 14px;
  color: #666;
  flex-grow: 1;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 16px;
  gap: 16px;
}

.price-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price {
  font-size: 18px;
  font-weight: 600;
  color: #111;
}

.details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: linear-gradient(135deg, #111, #333);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.details-btn::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.25s ease;
}

.details-btn:hover {
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}

.details-btn:hover::after {
  transform: translateX(4px);
}

.actions {
  display: flex;
  gap: 8px;
}

.meta-info {
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.meta {
  font-size: 12px;
  color: #555;
  font-weight: 500;
}

.kpi-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 2px;
}

.badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.badge.success {
  background: #e8f7ef;
  color: #1e7f4f;
}

.badge.info {
  background: #eef4ff;
  color: #3558c7;
}