/* Shared store template styles. Colors come from config.js (theme). */
:root {
  --brand: #2f6b5e;
  --brand-dark: #1f4a41;
  --accent: #e8a87c;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --text: #1d2422;
  --muted: #5d6865;
  --line: #e6e1d8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 30, 28, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; scroll-margin-top: 64px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Announcement + header */
.announce {
  background: var(--brand-dark); color: #fff; text-align: center;
  font-size: 0.85rem; font-weight: 600; padding: 8px 16px;
}
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--brand);
  display: grid; place-items: center; color: #fff;
}
.logo-mark svg { width: 18px; height: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 28px; font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn.small { padding: 10px 18px; font-size: 0.9rem; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; grid-template-columns: 1.05fr 1fr; }
.hero .price-line { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 24px; }
.price { font-size: 1.8rem; font-weight: 800; }
.price-note { color: var(--muted); font-size: 0.95rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: var(--muted); font-size: 0.9rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

.media {
  border-radius: 24px; overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow); aspect-ratio: 1 / 1;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in srgb, var(--brand) 6%, transparent) 14px 28px),
    color-mix(in srgb, var(--brand) 8%, var(--surface));
  color: var(--muted); padding: 24px; font-size: 0.9rem;
}
.placeholder svg { display: block; width: 48px; height: 48px; color: var(--brand); margin: 0 auto 8px; opacity: .7; }
.placeholder code { display: block; font-size: 0.8rem; margin-top: 4px; color: var(--brand-dark); }

/* Benefits */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.card .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin: 0; }

/* Problem band */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }

/* Steps */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; left: 28px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--text); font-weight: 800; display: grid; place-items: center; font-size: .9rem;
}

/* Buy section */
.buy .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.gallery-main { margin-bottom: 12px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer;
  aspect-ratio: 1; background: var(--surface);
}
.thumbs button[aria-current="true"] { border-color: var(--brand); }
.thumbs img, .thumbs .placeholder { width: 100%; height: 100%; object-fit: cover; }
.thumbs .placeholder { padding: 4px; font-size: 0; }
.thumbs .placeholder svg { width: 20px; height: 20px; margin: 0; }
.thumbs .placeholder code { display: none; }

.option-group { margin: 20px 0; }
.option-group label.title { display: block; font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options button {
  border: 2px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px;
  padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
}
.options button[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.includes { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.includes h3 { margin-bottom: 8px; }
.includes ul { margin: 0; padding-left: 20px; color: var(--muted); }
.fine { font-size: .85rem; color: var(--muted); margin-top: 12px; text-align: center; }
.notice {
  display: none; margin-top: 12px; padding: 12px 16px; border-radius: 12px;
  background: #fff4e5; border: 1px solid #f5c98b; color: #6b4300; font-size: .9rem;
}
.notice.show { display: block; }

.specs { width: 100%; border-collapse: collapse; margin-top: 8px; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs th { color: var(--muted); font-weight: 600; width: 45%; }

/* FAQ */
.faq { max-width: 760px; margin: 32px auto 0; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Guarantee */
.guarantee {
  background: var(--brand); color: #fff; border-radius: 24px; padding: 48px 32px; text-align: center;
}
.guarantee p { color: color-mix(in srgb, #fff 85%, transparent); max-width: 560px; margin: 0 auto 24px; }
.guarantee .btn { background: #fff; color: var(--brand-dark); }

/* Footer */
footer.site { padding: 40px 0 100px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); margin-top: 32px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.site a { color: var(--muted); }

/* Sticky mobile buy bar */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none;
  background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px;
  box-shadow: 0 -8px 24px rgba(0,0,0,.06);
}
.buybar .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buybar strong { display: block; font-size: .95rem; }
.buybar span { font-size: .85rem; color: var(--muted); }

/* Policies page */
.policy { max-width: 760px; margin: 0 auto; padding: 48px 16px; }
.policy section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.policy h2 { font-size: 1.5rem; }
.policy ul { padding-left: 20px; }
.todo { background: #fff4e5; border-radius: 4px; padding: 0 4px; }

@media (max-width: 860px) {
  .hero .wrap, .split, .buy .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero .media { order: -1; }
  .grid-3 { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .buybar.show { display: block; }
  header.site .btn { display: none; }
}
