/* ==============================
   Produk Grid & Card
============================== */
.produk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.produk-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.produk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.produk-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 12px;
}

.produk-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.produk-card .btn-detail {
  display: inline-block;
  padding: 10px 18px;
  background: #0d6efd;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.produk-card .btn-detail:hover {
  background: #0b5ed7;
}

/* ==============================
   Kategori Section (Title + Logo)
============================== */
.kategori {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.kategori h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  color: #222;
}

.kategori img {
  height: 34px;
  flex-shrink: 0; /* biar nggak ketekan */
}

/* ==============================
   Controls (Tabs + Search)
============================== */
.produk-controls {
  display: flex;
  justify-content: space-between; /* tabs kiri, search kanan */
  align-items: center;
  margin: 20px 0 40px;
  flex-wrap: wrap;
  gap: 14px;
}

.produk-controls .tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Search Bar */
#search-input {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  width: 240px;
  max-width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

#search-input:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

/* ==============================
   Responsive
============================== */
@media (max-width: 992px) {
  .kategori h1 {
    font-size: 28px;
  }

  .kategori img {
    height: 28px;
  }
}

@media (max-width: 768px) {
  .kategori {
    flex-direction: row; /* tetap sejajar */
    justify-content: space-between;
  }

  .kategori h1 {
    font-size: 22px;
  }

  .kategori img {
    height: 24px;
  }

  .produk-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  #search-input {
    width: 100%; /* full width di HP */
  }
}
