/* สีและฟอนต์มาจาก theme.css (สร้างอัตโนมัติจาก shop.config.json) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font), system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18.5px;
  line-height: 1.65;
}
a { color: var(--primary); }
img { max-width: 100%; display: block; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { font-weight: 700; font-size: 18px; color: var(--primary); text-decoration: none; }
.top a.contact { font-size: 14px; }

h1 { font-size: clamp(26px, 7vw, 36px); line-height: 1.3; margin: 12px 0 8px; }
h2 { font-size: 22px; line-height: 1.35; margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 16px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin: 18px 0;
  box-shadow: 0 6px 22px rgba(11, 52, 56, .06);
}
.cover { border-radius: 12px; margin: 0 auto 14px; width: 100%; max-width: 360px; }
.ticks { list-style: none; padding: 0; margin: 12px 0; }
.ticks li { padding-left: 30px; position: relative; margin: 8px 0; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}
.price { font-size: 34px; font-weight: 700; color: var(--primary); }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }

.btn {
  display: block; width: 100%;
  background: var(--button); color: #fff;
  border: 0; border-radius: 999px;
  padding: 15px 20px; margin: 12px 0 6px;
  font: inherit; font-size: 19px; font-weight: 700;
  text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(43, 179, 126, .35);
}
.btn:disabled { opacity: .6; cursor: wait; }
.btn.secondary { background: transparent; color: var(--primary); box-shadow: none; border: 2px solid var(--primary); }

input[type=email] {
  width: 100%; font: inherit; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--text);
}
input[type=email]:focus { outline: 2px solid var(--primary); border-color: transparent; }

.notice { border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 15px; background: var(--soft); }
.notice.error { background: #FDECEF; color: #8A1C3A; }
.spinner {
  width: 34px; height: 34px; margin: 18px auto;
  border: 4px solid var(--line); border-top-color: var(--primary); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
.hidden { display: none !important; }

footer { padding: 26px 0 40px; font-size: 14px; color: var(--muted); text-align: center; }
footer .dot { color: var(--accent); }

/* ---------- หน้าขายแบบ call-out (เฟส 2) ---------- */
h3 { font-size: 19px; margin: 18px 0 6px; }
.hero { padding: 18px 0 4px; }
.hero h1 { color: var(--text); }
.lead { font-size: 19.5px; color: var(--muted); margin: 6px 0 0; }

.pains { list-style: none; counter-reset: pain; padding: 0; margin: 8px 0 0; }
.pains li { counter-increment: pain; position: relative; padding: 0 0 0 40px; margin: 12px 0; }
.pains li::before {
  content: counter(pain); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, white); color: var(--text);
  font-weight: 700; font-size: 15px; display: grid; place-items: center;
}
.ticks li b { color: var(--primary); }

.fit { list-style: none; padding: 0; margin: 8px 0; }
.fit li { position: relative; padding-left: 32px; margin: 10px 0; }
.fit li::before { position: absolute; left: 0; top: 0; font-size: 18px; }
.fit.yes li::before { content: "✅"; }
.fit.no li::before { content: "❌"; }

.buy { border: 2px solid var(--primary); }
.buy .btn { font-size: 20px; }

.faq { border-top: 1px solid var(--line); padding: 4px 0; }
.faq:first-of-type { border-top: 0; }
.faq summary {
  cursor: pointer; font-weight: 700; padding: 10px 28px 10px 0;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; color: var(--primary); font-size: 22px; }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0 0 12px; color: var(--muted); }
