/* =============================================
   TERANG PRINTING — produk.css
   Berisi: gaya khusus halaman Produk (produk.html)
   Pastikan global.css sudah di-link sebelum file ini.
============================================= */


/* ── NAVIGASI FILTER KATEGORI ────────────────────────────────
   Deretan tombol/pill untuk melompat ke kategori produk.
─────────────────────────────────────────────────────────── */

/* Wrapper deretan tombol filter */
.produk-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; /* pindah baris jika layar sempit */
  margin-bottom: 40px;
}

/* Tombol filter kategori berbentuk pill */
.produk-nav a {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  border: 2px solid var(--clr-border);
  background: var(--clr-white);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-gray-dark);
}
/* Hover: berubah jadi kuning */
.produk-nav a:hover {
  background: var(--clr-yellow);
  border-color: var(--clr-yellow);
  color: var(--clr-black);
}


/* ── JUDUL KATEGORI PRODUK ───────────────────────────────────
   Judul besar dengan garis bawah kuning tebal sebagai pemisah
   antar kategori (ATK, Kertas, dll).
─────────────────────────────────────────────────────────── */
.produk-section-title {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--clr-black);
  padding-bottom: 12px;
  border-bottom: 3px solid var(--clr-yellow); /* garis kuning di bawah judul */
  margin-bottom: 24px;
}


/* ── GRID KARTU PRODUK ───────────────────────────────────────
   Grid 4 kolom berisi kartu-kartu produk per kategori.
─────────────────────────────────────────────────────────── */

/* Grid 4 kolom produk */
.produk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px; /* jarak antar kategori */
}

/* Card satu produk */
.produk-card {
  background: var(--clr-white);
  border: 1.5px solid var(--clr-border);
  border-radius: 10px;
  overflow: hidden; /* memotong sudut gambar */
  box-shadow: var(--shadow);
}


/* ── AREA GAMBAR PRODUK ──────────────────────────────────────
   Area gambar di bagian atas card produk.
   Tinggi tetap agar semua card seragam. Gambar otomatis
   di-crop (object-fit: cover) sehingga tidak distorsi.
─────────────────────────────────────────────────────────── */

/* Wrapper gambar — tinggi tetap untuk semua card */
.produk-card-img {
  height: 220px;
  background: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
  font-size: 3rem;
}

/* Gambar produk — diregangkan mengisi penuh container */
.produk-card-img img {
  width: 100%;
  height: 100%;
  object-fit: fill; /* mengisi penuh container, mengikuti ukuran container */
  display: block;
}


/* ── BODY KARTU PRODUK ───────────────────────────────────────
   Area di bawah gambar berisi nama, deskripsi, harga, & tombol.
─────────────────────────────────────────────────────────── */
.produk-card-body { padding: 16px; }
.produk-card-body h3 { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 4px; }
.produk-card-body p  { font-size: var(--fs-xs); color: var(--clr-gray); margin-bottom: 8px; }

/* Label harga berlatar kuning */
.produk-price {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--clr-black);
  background: var(--clr-yellow);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* Tombol "Tanya Stok" — full width di dalam card */
.produk-card-body .btn {
  width: 100%;
  text-align: center;
  padding: 8px;
  font-size: var(--fs-xs);
}


/* ── SECTION "MASIH BANYAK LAGI" ────────────────────────────
   Section yang menampilkan produk/layanan lain yang belum
   tercantum di katalog, beserta CTA untuk menghubungi.
─────────────────────────────────────────────────────────── */

.more-products-section {
  background: var(--clr-gray-light);
}

.more-products-wrapper {
  background: var(--clr-white);
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1.5px solid var(--clr-border);
}

/* Header text */
.more-products-header {
  text-align: center;
  margin-bottom: 40px;
}
.more-products-header .section-label {
  display: block;
}
.more-products-header .section-divider {
  margin-left: auto;
  margin-right: auto;
}
.more-products-desc {
  font-size: var(--fs-base);
  color: var(--clr-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Grid item lainnya — 4 kolom */
.more-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

/* Setiap item */
.more-item {
  background: var(--clr-gray-light);
  border: 1.5px solid var(--clr-border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}
.more-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--clr-yellow);
}

/* Icon emoji */
.more-item-icon {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.more-item:hover .more-item-icon {
  transform: scale(1.15);
}

.more-item h3 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-black);
  margin-bottom: 6px;
}
.more-item p {
  font-size: var(--fs-xs);
  color: var(--clr-gray);
  line-height: 1.5;
}

/* Item terakhir — "Dan Lainnya..." dengan aksen kuning */
.more-item-cta {
  background: var(--clr-yellow);
  border-color: var(--clr-yellow-dark);
}
.more-item-cta:hover {
  border-color: var(--clr-yellow-dark);
  background: var(--clr-yellow-dark);
}
.more-item-cta h3 {
  color: var(--clr-black);
}
.more-item-cta p {
  color: var(--clr-gray-dark);
}

/* CTA bar di bawah grid */
.more-products-cta {
  background: var(--clr-black);
  border-radius: 12px;
  padding: 32px 40px;
  text-align: center;
}
.more-products-cta > p {
  font-size: var(--fs-md);
  color: var(--clr-white);
  margin-bottom: 20px;
}
.more-products-cta > p strong {
  color: var(--clr-yellow);
}
.more-products-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ── RESPONSIVE PRODUK ───────────────────────────────────────
─────────────────────────────────────────────────────────── */

/* Tablet — 3 kolom */
@media (max-width: 1024px) {
  .produk-grid { grid-template-columns: repeat(3, 1fr); }
  .more-products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Ponsel besar — 2 kolom */
@media (max-width: 768px) {
  .produk-grid { grid-template-columns: repeat(2, 1fr); }
  .more-products-grid { grid-template-columns: repeat(2, 1fr); }
  .more-products-wrapper { padding: 32px 24px; }
  .more-products-cta { padding: 24px 20px; }
}

/* Ponsel kecil — 1 kolom */
@media (max-width: 480px) {
  .produk-grid { grid-template-columns: 1fr; }
  .more-products-grid { grid-template-columns: 1fr; }
  .more-products-wrapper { padding: 24px 16px; }
  .more-products-cta-actions { flex-direction: column; align-items: center; }
}

