/* ============================================================
   Produk & Portofolio — bingkai screenshot, kartu produk,
   studi kasus, dan halaman detail produk.
   Dimuat setelah style.css (variabel tema sudah tersedia).
   ============================================================ */

/* ---------- Bingkai jendela aplikasi (dipakai bersama) ---------- */
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: linear-gradient(180deg, #f4f7fc, #e9eef7);
  border-bottom: 1px solid var(--border);
}

.shot-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfd8e6;
  flex: none;
}

.shot-bar span:first-child {
  background: #f7b1b1;
}

.shot-bar span:nth-child(2) {
  background: #f8d99b;
}

.shot-bar span:nth-child(3) {
  background: #b7e3c3;
}

.shot-bar em {
  margin-left: 8px;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #8593ab;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-screen,
.pd-shotbody {
  display: block;
  position: relative;
  background: #eef3fa;
  overflow: hidden;
}

.shot-screen img,
.pd-shotbody img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.shot-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  color: var(--sky);
  font-size: 2.2rem;
  background: linear-gradient(135deg, #eef5ff, #dcebfb);
}

.shot-flag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(10, 29, 63, 0.12);
}

.shot-flag.is-real {
  background: rgba(255, 255, 255, 0.94);
  color: #067a52;
}

.shot-flag.is-illus {
  background: rgba(255, 255, 255, 0.9);
  color: #7c8aa5;
}

/* ---------- Kartu produk (katalog & produk terkait) ---------- */
.pcard-shot {
  position: relative;
  background: #fff;
}

.pcard-shot .shot-screen {
  aspect-ratio: 16 / 10;
  padding: 10px;
  background: linear-gradient(160deg, #f7faff, #e8f1fc);
}

.pcard-shot .shot-screen img {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(10, 29, 63, 0.08);
}

.product-card:hover .pcard-shot .shot-screen img {
  transform: scale(1.03);
}

.pcard-shot .shot-screen img {
  transition: transform 0.5s ease;
}

.pcard-cat {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 11px;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue-500);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.pcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.pcard-actions .btn-detail {
  margin-top: 0;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--navy-700);
  background: transparent;
  color: var(--navy-700);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-demo:hover {
  background: var(--navy-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(10, 29, 63, 0.22);
}

/* Catatan transparansi visual */
.shot-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 820px;
  margin: 22px auto 0;
  padding: 13px 18px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #fafcff;
  color: #6b7c99;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: left;
}

.shot-note i {
  margin-top: 2px;
  color: var(--sky);
  flex: none;
}

/* ---------- Kartu studi kasus ---------- */
.case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.case-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: var(--shadow-md);
}

.case-shot {
  position: relative;
  display: block;
  text-decoration: none;
}

.case-shot .shot-screen {
  aspect-ratio: 16 / 10;
  padding: 10px;
  background: linear-gradient(160deg, #f7faff, #e8f1fc);
}

.case-shot .shot-screen img {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(10, 29, 63, 0.08);
  transition: transform 0.5s ease;
}

.case-card:hover .shot-screen img {
  transform: scale(1.03);
}

.case-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.case-cat {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 4px 11px;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue-500);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.case-body h3 {
  font-size: 1.04rem;
  margin-bottom: 8px;
}

.case-body h3 a {
  color: inherit;
  text-decoration: none;
}

.case-body h3 a:hover {
  color: var(--blue-500);
}

.case-body p {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 14px;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  color: #7c8aa5;
}

.case-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.case-meta i {
  color: var(--sky);
}

.case-body .btn-detail {
  margin-top: auto;
}

/* ---------- Hero & dokumentasi halaman detail ---------- */
.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pd-shotbox {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.pd-shotbody {
  aspect-ratio: 16 / 10;
  padding: 14px;
  background: linear-gradient(160deg, #f7faff, #e8f1fc);
}

.pd-shotbody img {
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.pd-shotbox .shot-flag {
  left: 16px;
  bottom: 16px;
}

.pd-shotitem {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.pd-shotitem img {
  width: 100%;
  height: auto;
  display: block;
}

.pd-shotitem .shot-bar {
  border-radius: 0;
}

.pd-gallery-item {
  position: relative;
}

.pd-gallery-item figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  color: #7c8aa5;
  font-size: 0.68rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

/* ---------- CTA request demo ---------- */
.pd-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 38px 40px;
  border-radius: 22px;
  background: var(--grad-navy);
  box-shadow: var(--shadow-lg);
}

.pd-cta-text h2 {
  color: #fff;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  margin-bottom: 10px;
}

.pd-cta-text p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 560px;
  font-size: 0.94rem;
}

.pd-cta-text .kicker {
  display: block;
  margin-bottom: 8px;
}

.pd-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pd-cta-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.pd-cta-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ---------- Sidebar studi kasus ---------- */
.cs-facts,
.cs-results {
  padding: 26px 26px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cs-facts h3,
.cs-results h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1rem;
}

.cs-facts h3 i,
.cs-results h3 i {
  color: var(--blue-500);
}

.cs-results {
  background: linear-gradient(160deg, #f9fcff, #eef5ff);
  border-style: dashed;
}

.cs-pending {
  color: #6b7c99;
  font-size: 0.86rem;
  line-height: 1.7;
}

.cs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-list li {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.89rem;
  line-height: 1.6;
}

.cs-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cs-label {
  flex: 0 0 92px;
  color: #8593ab;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.cs-value {
  flex: 1;
  color: var(--navy-800);
  font-weight: 600;
}

.pd-link {
  color: var(--blue-500);
  font-weight: 600;
  text-decoration: none;
}

.pd-link:hover {
  text-decoration: underline;
}

/* ---------- Responsif ---------- */
@media (max-width: 991.98px) {
  .pd-cta {
    padding: 32px 28px;
  }
}

@media (max-width: 767.98px) {
  .pcard-actions {
    gap: 8px;
  }

  .pcard-actions .btn-detail,
  .pcard-actions .btn-demo {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.82rem;
    padding: 9px 14px;
  }

  .pd-cta {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .pd-cta-actions {
    width: 100%;
  }

  .pd-cta-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .pcard-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pcard-actions .btn-detail,
  .pcard-actions .btn-demo {
    width: 100%;
  }

  .shot-flag {
    font-size: 0.63rem;
    padding: 4px 9px;
  }

  .cs-facts,
  .cs-results {
    padding: 22px;
  }
}