/* === Grid Produk === */
.products {
  padding: 5px 5px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 🔹 6 kolom di desktop */
  gap: 8px;
  justify-items: center;
}

/* === Kartu Produk === */
.product-grid .card {
  background: #fff;
  border-radius: 10px;
  padding: 3px; /* 🔹 sesuai permintaan */
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  cursor: pointer;
}

.product-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* === Gambar Produk === */
.product-grid .card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

/* === Nama Produk === */
.product-grid .card h3 {
  font-size: 14px;
  color: #333;
  margin: 6px 0 2px;
  font-weight: 600;
  line-height: 1.3;
}

/* === Harga === */
.product-grid .card p:nth-of-type(1) {
  color: #6a1b9a;
  font-weight: bold;
  font-size: 13px;
  margin: 0;
}

/* === Kecamatan === */
.product-grid .card p:nth-of-type(2) {
  color: #666;
  font-size: 12px;
  margin: 3px 0 6px;
}

/* === Link Card === */
.card-link {
  text-decoration: none;
  color: inherit;
  width: 100%;
}

/* === Responsif === */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr); /* 🔹 3 kolom di mobile */
    gap: 10px;
  }

  .product-grid .card img {
    height: 120px;
  }

  .product-grid .card h3 {
    font-size: 13px;
  }
}
