/* ═══════════════════════════════════════════════════════════════
   PRODUK MOCAF — Styles khusus halaman produk
   ═══════════════════════════════════════════════════════════════ */

/* ── Product Hero ─────────────────────────────────────────────── */
.product-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgb(200 16 46 / 7%), transparent 28rem),
    linear-gradient(135deg, #fff 0%, #fffafa 50%, #fff7f0 100%);
  border-bottom: 1px solid var(--color-border);
}

.product-hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--color-primary));
  content: "";
}

.product-hero__inner {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.product-hero__content {
  display: grid;
  gap: 1.35rem;
}

.product-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag--cert {
  color: var(--color-success);
  background: #ecfdf3;
  border-color: #a7e0c3;
}

.product-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.08;
}

.product-hero h1 em {
  display: block;
  color: var(--color-primary);
  font-style: normal;
  font-size: 0.55em;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-top: 0.15em;
}

.product-hero__highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.highlight-item {
  min-width: 0;
  padding-right: 0.6rem;
}

.highlight-item + .highlight-item {
  padding-left: 0.75rem;
  border-left: 1px solid var(--color-border);
}

.highlight-item strong {
  display: block;
  color: var(--color-text);
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  line-height: 1.3;
}

.highlight-item span {
  display: block;
  margin-top: 0.15rem;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

/* ── Product Showcase (visual placeholder) ───────────────────── */
.product-hero__visual {
  display: flex;
  justify-content: center;
}

.product-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 400px);
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 40% 45%, rgb(200 16 46 / 6%) 0%, transparent 55%),
    radial-gradient(circle at 70% 60%, rgb(184 134 45 / 8%) 0%, transparent 45%),
    linear-gradient(145deg, #fef7f8, #fff5ee, #fefcf5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow:
    var(--shadow-md),
    0 0 0 6px rgb(200 16 46 / 4%);
  overflow: hidden;
}

.product-showcase::before {
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(
      rgb(200 16 46 / 2%) 0% 25%,
      transparent 0% 50%
    ) 0 0 / 40px 40px;
  content: "";
  opacity: 0.5;
}

.product-showcase::after {
  position: absolute;
  bottom: -3rem;
  right: -3rem;
  width: 12rem;
  height: 12rem;
  background: var(--color-primary-soft);
  border: 2rem solid rgb(200 16 46 / 4%);
  border-radius: 50%;
  content: "";
}

.product-showcase__badge {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  color: var(--color-surface);
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: 50%;
  box-shadow: 0 12px 30px rgb(143 13 34 / 25%);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.3;
}

.product-showcase__badge strong {
  display: block;
  color: inherit;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-showcase__info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.25rem;
  text-align: center;
}

.product-showcase__weight {
  color: var(--color-text);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.product-showcase__type {
  margin-top: 0.25rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Comparison Table ─────────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.comparison-table thead th {
  background: var(--color-surface-dark);
  color: var(--color-surface);
  font-weight: 720;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.comparison-table thead th.highlight-col {
  background: var(--color-primary-dark);
}

.comparison-table tbody td {
  background: var(--color-surface);
  color: var(--color-text-secondary);
}

.comparison-table tbody td.highlight-col {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-weight: 650;
}

.comparison-table tbody tr:hover td {
  background: var(--color-surface-muted);
}

.comparison-table tbody tr:hover td.highlight-col {
  background: #ffe4e8;
}

/* ── Packaging Cards ──────────────────────────────────────────── */
.packaging-card .card__body {
  text-align: center;
}

.packaging-card ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 0;
  list-style: none;
  text-align: left;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.packaging-card ul li::before {
  content: "✓ ";
  color: var(--color-success);
  font-weight: 700;
}

.package-weight {
  color: var(--color-primary-dark);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-block: 0.5rem;
}

.package-weight small {
  font-size: 0.4em;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.packaging-card--featured {
  border-color: var(--color-primary);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.packaging-card--featured .tag {
  color: var(--color-surface);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ── Card Grid Three (for packaging) ─────────────────────────── */
.card-grid--three {
  display: grid;
  gap: 1rem;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (min-width: 480px) {
  .card-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .product-hero__inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: clamp(2rem, 5vw, 5rem);
  }

  .card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .product-showcase {
    width: 100%;
  }

  .product-showcase__badge {
    width: 140px;
    height: 140px;
    font-size: 0.9rem;
  }

  .product-showcase__badge strong {
    font-size: 1.3rem;
  }
}

@media (max-width: 374px) {
  .product-hero__highlights {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .highlight-item + .highlight-item {
    padding-left: 0;
    padding-top: 0.75rem;
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
}
