/* 🛍️ Filtered Products Grid (Used when category is clicked) */
#product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding: 16px;
  background: var(--bg-main);
}

/* 📦 Product Card */
.product-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.product-card:hover {
  transform: scale(1.03);
}

/* 🖼️ Product Image */
.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-light);
}

/* 🔤 Product Info */
.product-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  height: 2.4em;
  line-height: 1.2em;
  overflow: hidden;
}

.product-price {
  font-size: 1rem;
  color: var(--price-color);
  font-weight: bold;
}

.product-original-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-offer {
  font-size: 0.75rem;
  color: var(--deal-color);
  background: var(--deal-bg);
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
}

.product-rating {
  font-size: 0.75rem;
  color: var(--star-color);
}

/* 🧱 Responsive Fixes */
@media (max-width: 768px) {
  #product-list {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
    gap: 12px;
  }

  .product-card img {
    height: 140px;
  }
}