/* Detail produk — /products/<slug>/ (dipakai 9 halaman produk + template product-detail)
   Dibangun ulang 23 Okt 2026 dari "Revision Figma/Product Detail New.css" + preview "Product Detail (1).png" (1440x2196).
   Ukuran = angka asli Figma; posisi relatif container (margin 72). y di komentar = koordinat frame Figma.
   HTML ditulis tools/build-products.py — JANGAN edit index.html produk langsung. Cadangan: temp pd-sebelum-23okt/. */

/* Hero (.pl-hero--pd / .pd-hero__*) & Other Products (.pd-other / .pd-card) DIPINDAH ke shared/css/components.css (26 Okt)
   karena dipakai juga oleh halaman detail layanan (Revision Figma Service Detail New). */

/* ============ GALERI + PRODUCT OVERVIEW (y568..914) ============
   kiri 621: 4 thumbnail 104x79 (jarak 10) + 12 + foto 505x346 putih radius 6, titik 4px (aktif #048C4D, lain #DEDEDE)
   kanan 580 di x764 (jarak 47) */
.pd-main { padding-top: 64px; }
.pd-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 580px);
  column-gap: 47px;
  align-items: start;
}
.pd-gallery { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 12px; }
.pd-gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.pd-thumb {
  display: block;
  width: 104px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #FFFFFF;
  overflow: hidden;
  opacity: .5;
  cursor: pointer;
  transition: opacity .2s ease, box-shadow .2s ease;
}
.pd-thumb img { display: block; width: 100%; aspect-ratio: 104 / 79; object-fit: cover; }
.pd-thumb[aria-current="true"] { opacity: 1; box-shadow: 0 4px 16px rgba(3, 111, 74, .14); }
.pd-thumb:hover { opacity: .85; }
.pd-thumb:focus-visible { outline: 2px solid #048C4D; outline-offset: 2px; }
.pd-gallery__main {
  position: relative;
  margin: 0;
  border-radius: 6px;
  background: #FFFFFF;
  overflow: hidden;
}
.pd-gallery__main img { display: block; width: 100%; aspect-ratio: 505 / 346; object-fit: cover; }
/* 4 Nov (laporan user, layar < 1440 / browser di-zoom): kotak utama ikut setinggi kolom 4 thumbnail (grid stretch) sedangkan
   foto lebih pendek (kolom menyempit) -> bidang putih di bawah foto. Kotak kini setinggi fotonya sendiri (tidak ditarik);
   mengisi tinggi kolom dengan cover memotong foto berlatar putih di 1101–1280 (kotak 214x346). */
.pd-gallery { align-items: start; }
.pd-gallery__dots {
  position: absolute;
  left: 50%; bottom: 14px;                            /* Figma y328 dari 346 */
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}
.pd-gallery__dots span { width: 4px; height: 4px; border-radius: 50%; background: #DEDEDE; }
.pd-gallery__dots span.is-on { background: #048C4D; }

main .pd-info .pd-info__eyebrow {                     /* 14/800/20 Primary/600 */
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  letter-spacing: .04em;
  color: #036F4A;
}
main .pd-info .pd-info__title {                       /* Figma 38/800 lh 30 Primary/900 */
  margin-top: 20px;
  font-family: var(--pmi-font);
  font-size: 38px;
  font-weight: 800;
  line-height: 30px;
  letter-spacing: -0.01em;
  color: #003E3B;
}
.pd-info__desc {
  margin-top: 18px;
  font-size: 14px;                                    /* 14/500/24 rata kanan-kiri */
  font-weight: 500;
  line-height: 24px;
  color: #242424;
  text-align: justify;
}
.pd-specs { display: flex; justify-content: space-between; gap: 18px 37px; margin-top: 31px; }
.pd-spec { display: flex; align-items: center; gap: 18px; }
.pd-spec > svg, .pd-treat > svg { flex: none; width: 34px; height: 34px; color: #036F4A; }
.pd-spec dl { position: relative; top: 1px; margin: 0; }   /* tinta Figma 1px lebih rendah (metrik font) */
.pd-spec:nth-child(1) dl { min-width: 128px; }   /* Figma: kotak teks tetap 128 / 115 / 93 (space-between) */
.pd-spec:nth-child(2) dl { min-width: 115px; }
.pd-spec:nth-child(3) dl { min-width: 93px; }                        /* margin bawaan browser 17 -> baris jadi 82 */
.pd-spec dt { font-size: 12px; font-weight: 800; line-height: 24px; color: #242424; }
.pd-spec dd { margin: 0; font-size: 12px; font-weight: 500; line-height: 24px; color: #242424; }
.pd-treat {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 31px;
  padding: 14px 24px;
  border-radius: 8px;
  background: #C8F8D0;
}
.pd-treat p { position: relative; top: 1px; font-size: 12px; font-weight: 500; line-height: 24px; color: #242424; }
.pd-treat strong { display: block; font-weight: 800; color: #036F4A; }


/* ============ KEY FEATURES | COMMON APPLICATIONS (Frame 720: y954, 1248x266) ============
   kartu rgba(250,250,250,.5) + bayangan, radius 8, padding 34; garis 2px rgba(195,195,195,.5) di x624, kolom kanan x668 */
.pd-feat { padding-top: 40px; }
.pd-feat__card {
  display: grid;
  grid-template-columns: minmax(0, 590fr) minmax(0, 590fr);
  padding: 34px;
  border-radius: 8px;
  background: rgba(250, 250, 250, .5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}
.pd-feat__col--apps { padding-left: 42px; border-left: 2px solid rgba(195, 195, 195, .5); }
main .pd-feat .pd-feat__title { font-family: var(--pmi-font); font-size: 14px; font-weight: 800; line-height: 24px; letter-spacing: 0; color: #242424; }
.pd-feat__list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.pd-feat__list li { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; line-height: 20px; color: #242424; }
.pd-feat__list svg { flex: none; width: 20px; height: 20px; color: #036F4A; }
.pd-apps { display: flex; gap: 26px; margin-top: 34px; }   /* Figma baris y92 = judul 58 + 34; item padding 18 -> lingkaran y110 */
.pd-apps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 112px;
  padding: 18px 0;
  font-size: 12px;                                    /* 12/600/18 tengah */
  font-weight: 600;
  line-height: 18px;
  color: #242424;
  text-align: center;
}
.pd-app__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #036F4A;
  color: #FFFFFF;
}
.pd-app__icon svg { width: 24px; height: 24px; }


/* ============ TABLET & HP ============ */
@media (max-width: 1100px) {
  .pd-main__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .pd-gallery { max-width: 640px; }
  .pd-feat__card { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .pd-feat__col--apps { padding: 28px 0 0; border-left: 0; border-top: 2px solid rgba(195, 195, 195, .5); }
  .pd-apps { flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 768px) {
  .pd-main { padding-top: 48px; }
  main .pd-info .pd-info__title { font-size: 30px; line-height: 36px; }
  .pd-info__desc { text-align: left; }
  .pd-specs { flex-wrap: wrap; justify-content: flex-start; }
  .pd-feat__card { padding: 24px; }
  .pd-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  .pd-apps li { width: auto; }
}
@media (max-width: 480px) {
  .pd-gallery { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .pd-gallery__thumbs { order: 2; flex-direction: row; }
  .pd-thumb { flex: 1 1 0; width: auto; }
}

/* patah baris = Figma (balance/pretty bawaan situs memendekkan baris); kata yatim tetap dicegah noOrphans */
.pd-info__desc, .pd-feat__list span, .pd-apps li > span:last-child { text-wrap: wrap; }

/* ===== REVISI KLIEN 29 OKT — no 3: galeri tanpa foto berulang =====
   Satu thumbnail per foto (build-products.py). Produk dengan SATU foto: tanpa kolom thumbnail & titik,
   foto utama memakai seluruh lebar kolom galeri. */
.pd-gallery--tunggal { grid-template-columns: minmax(0, 1fr); }

/* ===== REVISI KLIEN 2 NOV — no 14: grid material Packaging Materials (mockup klien, bukan Figma) =====
   "Untuk section Packaging Materials, tolong dijabarkan dengan images material yang kami jual" -> section di antara
   Overview & Key Features (hanya produk berdata 'bahan', build-products.py). Kepala = gaya Other Products; 10 kartu putih
   (foto 3:2 + nama 16/700 + keterangan 14/500), 5 kolom >=1101, 3 kolom tablet, 2 kolom HP. */
.pd-range { padding-top: 56px; }
main .pd-range .pd-other__title {
  margin-top: 24px; font-family: var(--pmi-font); font-size: 32px; font-weight: 800; line-height: 38px; letter-spacing: -0.01em; color: #003E3B;
}
.pd-range__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.pd-range__item { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #E4E4E4; border-radius: 10px; background: #FFFFFF; box-shadow: 0 4px 16px rgba(0, 0, 0, .05); }
.pd-range__item img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #F3F3F3; }
.pd-range__name { padding: 14px 16px 0; font-size: 16px; font-weight: 700; line-height: 22px; color: #003E3B; }
.pd-range__text { padding: 4px 16px 16px; font-size: 14px; font-weight: 500; line-height: 21px; color: #555555; text-wrap: wrap; }
@media (max-width: 1100px) { .pd-range__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pd-range { padding-top: 40px; }
  main .pd-range .pd-other__title { font-size: 26px; line-height: 32px; }
  .pd-range__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pd-range__name { padding: 10px 12px 0; font-size: 15px; line-height: 20px; }
  .pd-range__text { padding: 4px 12px 12px; }
}
