/* =========================================================
   SHOPBIO – style.css
   Ubah warna di :root (atau lewat CONFIG.colors di script.js)
   ========================================================= */
:root {
  --color-primary: #7a4a2b;      /* cokelat utama (tombol) */
  --color-primary-dark: #5a3520;
  --color-bg: #f6efe4;           /* cream background */
  --color-surface: #ffffff;      /* kartu */
  --color-text: #2e2118;
  --color-muted: #7d6a5c;
  --color-border: #eadfce;
  --radius: 18px;
  --shadow: 0 10px 30px -14px rgba(90, 53, 32, 0.35);
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.page { max-width: 560px; margin: 0 auto; padding: 40px 18px 24px; }

/* ---------- Header ---------- */
.profile { text-align: center; margin-bottom: 28px; }
.profile__logo {
  width: 112px; height: 112px; margin: 0 auto 16px;
  border-radius: 50%; object-fit: cover;
  border: 4px solid var(--color-surface); box-shadow: var(--shadow);
}
.profile__name { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; }
.profile__desc { color: var(--color-muted); margin: 6px auto 0; max-width: 380px; }
.profile__location {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: .85rem; color: var(--color-primary);
  background: var(--color-surface); padding: 6px 14px; border-radius: 999px;
}
.profile__location:empty { display: none; }

/* ---------- Main buttons ---------- */
.links { display: grid; gap: 12px; margin-bottom: 40px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 20px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--color-border); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(90,53,32,.45); }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--primary { background: var(--color-primary); color: #fff; border-color: transparent; }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--small { min-height: 44px; padding: 10px 16px; font-size: .9rem; width: 100%; }

/* ---------- Sections ---------- */
.section { margin-bottom: 40px; }
.section__title { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 16px; text-align: center; }

/* ---------- Products ---------- */
.products { display: grid; gap: 16px; grid-template-columns: 1fr; }
.product {
  background: var(--color-surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.product__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-border); }
.product__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product__name { font-weight: 700; font-size: 1.05rem; }
.product__price { color: var(--color-primary); font-weight: 700; }
.product__desc { color: var(--color-muted); font-size: .9rem; flex: 1; margin-bottom: 8px; }

/* ---------- Info ---------- */
.info-grid { display: grid; gap: 14px; }
.card { background: var(--color-surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card__title { font-size: 1rem; margin-bottom: 10px; }
.muted { color: var(--color-muted); font-size: .92rem; }
.text-link { display: inline-block; margin-top: 10px; color: var(--color-primary); font-weight: 600; font-size: .9rem; text-decoration: none; }
.hours { list-style: none; font-size: .92rem; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--color-border); }
.hours li:last-child { border-bottom: 0; }
.checklist { list-style: none; display: grid; gap: 8px; font-size: .92rem; color: var(--color-muted); }
.checklist li::before { content: "✓"; color: var(--color-primary); font-weight: 700; margin-right: 8px; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; gap: 14px; }
.testi { background: var(--color-surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.testi__stars { color: #d9a441; letter-spacing: 2px; margin-bottom: 6px; }
.testi__text { font-style: italic; color: var(--color-text); }
.testi__name { margin-top: 10px; font-size: .85rem; color: var(--color-muted); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 24px 0 8px; border-top: 1px solid var(--color-border); }
.footer__thanks { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 4px; }
.footer__copy { font-size: .8rem; color: var(--color-muted); }

/* ---------- Animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .page { max-width: 880px; padding-top: 64px; }
  .links { max-width: 520px; margin-left: auto; margin-right: auto; grid-template-columns: 1fr 1fr; }
  .links .btn--primary { grid-column: 1 / -1; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: 1 / -1; }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}
