/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #2d7a3a;
  --green-light: #e8f5eb;
  --green-mid:   #4a9e5c;
  --orange:      #e85c0d;
  --orange-light:#fff3ee;
  --text:        #1a1a1a;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;
  --bg:          #f9fafb;
  --card-bg:     #ffffff;
  --border:      #e5e7eb;
  --radius:      14px;
  --shadow:      0 2px 8px rgba(0,0,0,.07);
  --shadow-hover:0 4px 16px rgba(0,0,0,.12);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* ===== LAYOUT WRAPPER ===== */
.profile-header,
.affiliate-disclosure,
.product-list,
.site-footer {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ===== HEADER PROFIL ===== */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 32px;
  padding-bottom: 20px;
  gap: 6px;
}

.profile-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green);
  margin-bottom: 4px;
  background: var(--green-light);
}

.profile-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.profile-handle {
  font-size: .9rem;
  font-weight: 600;
  color: var(--green);
}

.profile-tagline {
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.profile-cred {
  font-size: .85rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.45;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 18px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.btn-instagram:hover { border-color: var(--green); color: var(--green); }

/* ===== DISCLOSURE ===== */
.affiliate-disclosure {
  font-size: .78rem;
  color: var(--text-light);
  text-align: center;
  padding-bottom: 16px;
  padding-top: 4px;
}

/* ===== PRODUCT LIST ===== */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 32px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, border-color .15s, transform .1s;
  min-height: 44px;
  position: relative;
}
.product-card:hover,
.product-card:focus-visible {
  box-shadow: var(--shadow-hover);
  border-color: var(--green-mid);
  transform: translateY(-1px);
  outline: none;
}
.product-card:active { transform: translateY(0); }

/* Featured cards (top 3) */
.product-card--featured {
  border-color: #c8e6cc;
  background: linear-gradient(135deg, #ffffff 0%, #f0faf2 100%);
}

/* Card image */
.card-image-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card body */
.card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.4;
  text-transform: uppercase;
}
.badge--terlaris {
  background: var(--orange);
  color: #fff;
}
.badge--utama {
  background: var(--green);
  color: #fff;
}

.card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.card-hook {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.card-meta {
  font-size: .75rem;
  color: var(--text-light);
  margin-top: 2px;
}
.price {
  font-weight: 700;
  color: var(--orange);
}

/* CTA */
.card-cta {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}
.cta-btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 8px;
  white-space: nowrap;
  line-height: 1.3;
}
.product-card:hover .cta-btn,
.product-card:focus-visible .cta-btn {
  background: var(--green-mid);
}

/* ===== FOOTER ===== */
.site-footer {
  padding-top: 8px;
  padding-bottom: 100px; /* ruang untuk sticky CTA */
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 10px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}
.footer-link:hover { color: var(--green); }

.footer-copy {
  font-size: .73rem;
  color: var(--text-light);
  padding-top: 4px;
}

/* ===== STICKY CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  transition: opacity .3s, transform .3s;
}

.sticky-cta-btn {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--orange);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: .88rem;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1.3;
}
.sticky-cta-btn:hover { background: #cf4f08; }

/* Desktop: sembunyikan sticky CTA */
@media (min-width: 640px) {
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 32px; }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
