/* =========================================================
   produk.css - FINAL CONVERSION ORIENTED VERSION
   
   Section Flow:
   - Hero Section (introduction, badges, CTA)
   - Search & Filtering (search bar, category buttons)
   - Product Grid (product card display)
   - Trust Section (why choose us)
   - Final CTA (conversion)
   - Responsive Breakpoints
   ========================================================= */


/* ================= HERO SECTION ================= */

.produk-hero {
  text-align: center;
  padding: 2rem 1rem;
  margin: 1.5rem 0 2rem;
}

.produk-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 0.8rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.hero-subtext {
  margin-bottom: 1rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.2rem;
}

.hero-badges span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.hero-wa-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.hero-wa-btn:hover {
  transform: translateY(-2px);
}


/* ================= SECTION TITLE ================= */

.section-title {
  margin: 2rem 0 1rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-align: center;
}


/* ================= SEARCH ================= */

.search {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 1.5rem;

  padding: 0.85rem 1rem;
  font-size: 0.95rem;

  color: var(--text-dark);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search::placeholder {
  color: var(--text-soft);
}

.search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(78, 52, 46, 0.08);
}


/* ================= CATEGORY FILTER ================= */

.kategori {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.kategori button {
  min-height: 40px;
  padding: 8px 16px;

  font-size: 0.85rem;
  color: var(--text-soft);

  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 999px;

  cursor: pointer;
  transition: all 0.2s ease;
}

.kategori button:hover {
  background: var(--bg-soft);
}

.kategori button.active {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}


/* ================= GRID PRODUK ================= */

.produk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 3rem;
}

.produk-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.produk-card:hover {
  transform: translateY(-4px);
}

.produk-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.produk-card h4 {
  font-size: 1rem;
  margin: 12px 12px 6px;
  line-height: 1.4;
}

.produk-card .harga {
  margin: 0 12px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.produk-card p {
  margin: 8px 12px 14px;
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}


/* ================= TRUST SECTION ================= */

.trust-section {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-bottom: 2rem;
}

.trust-section h2 {
  margin-bottom: 1rem;
}

.trust-list {
  display: grid;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.trust-item {
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
}


/* ================= FINAL CTA ================= */

.final-cta {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-bottom: 3rem;
  border-radius: 20px;
  background: var(--bg-light);
}

.final-cta h2 {
  margin-bottom: 0.8rem;
}

.final-cta p {
  margin-bottom: 1rem;
  color: var(--text-soft);
}


/* ================= RESPONSIVE ================= */

@media (min-width: var(--bp-md)) {
  .produk-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .produk-card img {
    height: 220px;
  }
}

@media (min-width: var(--bp-lg)) {
  .produk-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
