/* Halaman katalog & detail produk - mengikuti tema eBusiness (web1/assets/css/style.css) */
:root {
  --me-primary: #3ec1d5;
  --me-primary-dark: #2ba3b6;
  --me-text: #444;
  --me-muted: #777;
  --me-border: #e6eaee;
  --me-bg: #f6f8fa;
  --me-wa: #25d366;
  --me-wa-dark: #1da851;
}

/* ---------- Judul halaman ---------- */
.produk-hero { position: relative; padding: 130px 0 50px; }
.produk-hero-kecil { padding: 110px 0 25px; }
.produk-hero h1 {
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 10px;
}
.produk-hero p { color: rgba(255, 255, 255, 0.85); font-size: 16px; margin-bottom: 25px; }

.produk-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto 20px;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.produk-search input {
  flex: 1;
  border: 0;
  padding: 14px 24px;
  font-size: 15px;
  outline: none;
  min-width: 0;
}
.produk-search button {
  border: 0;
  background: var(--me-primary);
  color: #fff;
  padding: 0 24px;
  font-size: 18px;
  transition: background 0.3s;
}
.produk-search button:hover { background: var(--me-primary-dark); }
.produk-search input:focus-visible { box-shadow: inset 0 0 0 2px var(--me-primary); }

.produk-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.produk-hero-kecil .produk-breadcrumb { justify-content: flex-start; }
.produk-breadcrumb li + li::before { content: "/"; margin: 0 8px 0 4px; color: rgba(255, 255, 255, 0.5); }
.produk-breadcrumb a { color: #fff; }
.produk-breadcrumb a:hover { color: var(--me-primary); }

/* ---------- Area produk ---------- */
.produk-area { background: var(--me-bg); padding: 50px 0 70px; }

.kategori-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 25px;
  scrollbar-width: thin;
}
.kategori-pill {
  flex: 0 0 auto;
  padding: 8px 18px;
  border: 1px solid var(--me-border);
  border-radius: 30px;
  background: #fff;
  color: var(--me-text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s;
}
.kategori-pill:hover { border-color: var(--me-primary); color: var(--me-primary); }
.kategori-pill.active { background: var(--me-primary); border-color: var(--me-primary); color: #fff; }

.produk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.produk-judul {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  position: relative;
  padding-left: 14px;
}
.produk-judul::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--me-primary);
}
.produk-info { color: var(--me-muted); margin: 0; font-size: 14px; }
.reset-filter { margin-left: 10px; color: var(--me-muted); white-space: nowrap; }
.reset-filter:hover { color: #d9534f; }

.jenis-filter { display: flex; align-items: center; gap: 10px; }
.jenis-filter label { font-weight: 600; color: var(--me-text); margin: 0; }
.jenis-filter select {
  min-width: 240px;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--me-border);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}
.jenis-filter select:focus { outline: 2px solid var(--me-primary); border-color: var(--me-primary); }

/* ---------- Kartu produk ---------- */
.produk-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--me-border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.produk-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08); }

.produk-img {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--me-border);
}
.produk-img img {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: contain;
  transition: transform 0.4s;
}
/* Produk tanpa foto: logo Philips kecil di latar abu-abu */
.produk-img.no-foto { background: var(--me-bg); }
.produk-img.no-foto img { inset: 30%; width: 40%; height: 40%; opacity: 0.85; }
.produk-card:hover .produk-img img { transform: scale(1.05); }

.produk-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.produk-type {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 10px;
  margin-bottom: 8px;
  border-radius: 20px;
  background: rgba(62, 193, 213, 0.12);
  color: var(--me-primary-dark);
  font-size: 12px;
  font-weight: 600;
}
.produk-nama {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.45em * 3);
}
.produk-nama a { color: var(--me-text); }
.produk-nama a:hover { color: var(--me-primary); }
.produk-harga { font-family: 'Raleway', sans-serif; font-size: 18px; font-weight: 700; color: var(--me-primary-dark); margin-bottom: 12px; }
.harga-tanya { font-size: 14px; color: var(--me-muted); font-weight: 600; }

.produk-aksi { display: flex; gap: 8px; margin-top: auto; }
.produk-aksi .btn-produk { flex: 1; padding: 7px 8px; font-size: 13px; }

/* ---------- Tombol ---------- */
.btn-produk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s;
  cursor: pointer;
}
.btn-detail { background: var(--me-primary); border-color: var(--me-primary); color: #fff; }
.btn-detail:hover { background: var(--me-primary-dark); border-color: var(--me-primary-dark); color: #fff; }
.btn-wa { background: var(--me-wa); border-color: var(--me-wa); color: #fff; }
.btn-wa:hover { background: var(--me-wa-dark); border-color: var(--me-wa-dark); color: #fff; }
.btn-outline { background: #fff; border-color: var(--me-border); color: var(--me-text); }
.btn-outline:hover { border-color: var(--me-primary); color: var(--me-primary); }
.btn-produk:focus-visible, .kategori-pill:focus-visible { outline: 3px solid rgba(62, 193, 213, 0.5); outline-offset: 2px; }

/* ---------- Kosong, halaman, CTA ---------- */
.produk-kosong {
  text-align: center;
  background: #fff;
  border: 1px dashed var(--me-border);
  border-radius: 10px;
  padding: 50px 20px;
}
.produk-kosong > i { font-size: 46px; color: var(--me-primary); }
.produk-kosong h3, .produk-kosong h1 { margin: 12px 0 8px; }
.produk-kosong p { color: var(--me-muted); max-width: 480px; margin: 0 auto 20px; }
.produk-kosong .btn-produk { margin: 4px; }

.produk-paging { margin-top: 35px; }
.produk-paging ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.produk-paging a, .produk-paging .titik {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  font-weight: 600;
}
.produk-paging a { background: #fff; border: 1px solid var(--me-border); color: var(--me-text); }
.produk-paging a:hover { border-color: var(--me-primary); color: var(--me-primary); }
.produk-paging .active a { background: var(--me-primary); border-color: var(--me-primary); color: #fff; }
.produk-paging .titik { color: var(--me-muted); }

.produk-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding: 30px 35px;
  border-radius: 12px;
  background: linear-gradient(120deg, #2ba3b6, #3ec1d5);
  color: #fff;
}
.produk-cta h3 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.produk-cta p { margin: 0; color: rgba(255, 255, 255, 0.9); max-width: 620px; }
.cta-aksi { display: flex; flex-wrap: wrap; gap: 10px; }
.produk-cta .btn-outline { background: transparent; border-color: #fff; color: #fff; }
.produk-cta .btn-outline:hover { background: #fff; color: var(--me-primary-dark); }

/* ---------- Detail produk ---------- */
.detail-wrap { background: #fff; border: 1px solid var(--me-border); border-radius: 12px; padding: 25px; margin: 0; }
.detail-img {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--me-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.detail-img img { position: absolute; inset: 25px; width: calc(100% - 50px); height: calc(100% - 50px); object-fit: contain; }
.detail-img.no-foto { background: var(--me-bg); }
.detail-img.no-foto img { inset: 30%; width: 40%; height: 40%; }
.detail-spek a, .detail-datasheet { color: var(--me-primary-dark); }
.detail-spek a:hover, .detail-datasheet:hover { color: var(--me-primary); }
.detail-img .zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--me-primary);
  color: #fff;
  font-size: 18px;
}
.detail-nama { font-size: 30px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.detail-nama small { font-size: 18px; font-weight: 600; color: var(--me-muted); }
.detail-kode { color: var(--me-muted); margin-bottom: 18px; }
.detail-harga {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--me-bg);
}
.detail-harga .label { color: var(--me-muted); font-weight: 600; }
.detail-harga .nilai { font-family: 'Raleway', sans-serif; font-size: 30px; font-weight: 800; color: var(--me-primary-dark); }
.detail-harga .nilai.harga-tanya { font-size: 18px; color: var(--me-text); }
.detail-ajak { margin-bottom: 12px; }
.detail-aksi { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }

.detail-spek { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14px; }
.detail-spek th, .detail-spek td { padding: 10px 12px; border-bottom: 1px solid var(--me-border); vertical-align: top; }
.detail-spek th { width: 38%; color: var(--me-muted); font-weight: 600; }
.detail-datasheet { font-weight: 600; }
.detail-datasheet i { color: #d9534f; margin-right: 4px; }

.detail-deskripsi { background: #fff; border: 1px solid var(--me-border); border-radius: 12px; padding: 25px; margin-top: 25px; }
.detail-deskripsi h2 { font-size: 22px; font-weight: 700; }
.detail-deskripsi p { margin: 0; line-height: 1.8; }
.produk-terkait { margin-top: 45px; }
.produk-terkait .produk-judul { margin-bottom: 20px; }

/* ---------- Responsif ---------- */
@media (max-width: 767px) {
  .produk-hero { padding: 100px 0 35px; }
  .produk-hero-kecil { padding: 85px 0 18px; }
  .produk-hero h1 { font-size: 28px; }
  .produk-hero p { font-size: 14px; }
  .produk-area { padding: 30px 0 50px; }
  .produk-judul { font-size: 21px; }
  .jenis-filter { width: 100%; }
  .jenis-filter select { flex: 1; min-width: 0; }
  .produk-img { padding: 10px; }
  .produk-body { padding: 10px 12px 12px; }
  .produk-harga { font-size: 15px; }
  .produk-aksi { flex-direction: column; }
  .detail-wrap { padding: 15px; }
  .detail-nama { font-size: 22px; }
  .detail-harga .nilai { font-size: 24px; }
  .detail-aksi .btn-produk { flex: 1 1 100%; }
  .produk-cta { padding: 25px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .produk-card, .produk-img img, .btn-produk, .kategori-pill { transition: none; }
  .produk-card:hover, .produk-card:hover .produk-img img { transform: none; }
}

/* ==================== Blog ==================== */
.blog-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}
.blog-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-cover.no-foto { background: var(--me-bg); }
.blog-cover.no-foto img { inset: 30%; width: 40%; height: 40%; object-fit: contain; opacity: 0.6; }
.blog-meta { color: var(--me-muted); font-size: 13px; margin-bottom: 8px; }
.blog-meta i { color: var(--me-primary); margin-right: 4px; }

.blog-utama {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
  border: 1px solid var(--me-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 45px;
}
.blog-utama .blog-cover { aspect-ratio: auto; min-height: 320px; }
.blog-utama:hover .blog-cover img, .blog-card:hover .blog-cover img { transform: scale(1.04); }
.blog-utama-body { padding: 35px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.blog-utama-body h2 { font-size: 28px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.blog-utama-body h2 a, .blog-card h3 a { color: var(--me-text); }
.blog-utama-body h2 a:hover, .blog-card h3 a:hover { color: var(--me-primary); }
.blog-utama-body p:not(.blog-meta) { color: #555; line-height: 1.7; margin-bottom: 20px; }
.blog-judul-lain { margin-bottom: 22px; }

.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--me-border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08); }
.blog-card-body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 20px; }
.blog-card h3 { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.blog-card p:not(.blog-meta) { color: #555; font-size: 14px; line-height: 1.65; margin-bottom: 15px; }
.blog-baca { margin-top: auto; font-weight: 600; color: var(--me-primary-dark); }
.blog-baca:hover { color: var(--me-primary); }

/* Detail artikel */
.blog-hero h1 { max-width: 900px; margin-left: auto; margin-right: auto; font-size: 34px; line-height: 1.3; }
.blog-hero-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.blog-hero-meta i { color: var(--me-primary); margin-right: 4px; }

.blog-artikel { background: #fff; border: 1px solid var(--me-border); border-radius: 12px; padding: 35px 40px; }
.blog-bagian + .blog-bagian { margin-top: 30px; }
.blog-bagian > h2 { font-size: 23px; font-weight: 700; line-height: 1.35; margin-bottom: 15px; }
.blog-gambar { display: block; margin: 18px 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--me-border); }
.blog-gambar img { display: block; width: 100%; height: auto; }
.blog-isi { font-size: 16px; line-height: 1.8; color: #444; overflow-wrap: anywhere; }
.blog-isi p { margin-bottom: 15px; }
.blog-isi ul, .blog-isi ol { padding-left: 22px; margin-bottom: 15px; }
.blog-isi ul { list-style: disc; }
.blog-isi ul ul { list-style: circle; }
.blog-isi ol { list-style: decimal; }
.blog-isi li { margin-bottom: 6px; }
.blog-isi h3, .blog-isi h4, .blog-isi h5 { font-size: 18px; font-weight: 700; margin: 18px 0 8px; }
.blog-isi a { color: var(--me-primary-dark); text-decoration: underline; }
.blog-isi table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
.blog-isi th, .blog-isi td { border: 1px solid var(--me-border); padding: 8px 10px; }

.blog-share { display: flex; align-items: center; gap: 10px; margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--me-border); }
.blog-share span { font-weight: 600; }
.blog-share a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--me-border);
  color: var(--me-text);
  font-size: 16px;
  transition: all 0.3s;
}
.blog-share a:hover { background: var(--me-primary); border-color: var(--me-primary); color: #fff; }

.blog-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.blog-widget { background: #fff; border: 1px solid var(--me-border); border-radius: 12px; padding: 22px; }
.blog-widget h3 { font-size: 18px; font-weight: 700; margin-bottom: 15px; }
.blog-widget-cta { background: linear-gradient(140deg, #2ba3b6, #3ec1d5); border: 0; color: #fff; }
.blog-widget-cta h3 { color: #fff; }
.blog-widget-cta p { color: rgba(255, 255, 255, 0.9); font-size: 14px; }
.blog-widget-cta .btn-produk { width: 100%; margin-top: 8px; }
.blog-widget-cta .btn-outline { background: transparent; border-color: #fff; color: #fff; }
.blog-widget-cta .btn-outline:hover { background: #fff; color: var(--me-primary-dark); }
.blog-mini { list-style: none; padding: 0; margin: 0; }
.blog-mini li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--me-border); }
.blog-mini a { display: flex; gap: 12px; align-items: center; color: var(--me-text); }
.blog-mini a:hover strong { color: var(--me-primary); }
.blog-mini-img { position: relative; flex: 0 0 72px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--me-bg); }
.blog-mini-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-mini-img.no-foto img { inset: 20%; width: 60%; height: 60%; object-fit: contain; opacity: 0.6; }
.blog-mini-teks strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.4; }
.blog-mini-teks small { color: var(--me-muted); }

@media (max-width: 991px) {
  .blog-utama { grid-template-columns: 1fr; }
  .blog-utama .blog-cover { aspect-ratio: 16 / 9; min-height: 0; }
  .blog-sidebar { position: static; }
}
@media (max-width: 767px) {
  .blog-utama-body { padding: 22px; }
  .blog-utama-body h2 { font-size: 22px; }
  .blog-hero h1 { font-size: 24px; }
  .blog-artikel { padding: 22px 18px; }
  .blog-bagian > h2 { font-size: 20px; }
  .blog-isi { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card, .blog-cover img { transition: none; }
  .blog-card:hover, .blog-utama:hover .blog-cover img, .blog-card:hover .blog-cover img { transform: none; }
}
