/* Faith Haven Journal — shop
   Matches the live shop.faithhavenjournal.com palette/type (Fraunces + DM Sans). */

:root {
  --cream: #FAF9F4;
  --cream-alt: #F7F3ED;
  --linen: #E5E2DC;
  --ink: #1E221F;
  --ink-soft: #4A4E49;
  --sage-dark: #6B7C72;
  --terracotta: #B56C51;
  --terracotta-dark: #9c5a41;

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", Arial, sans-serif;

  --content-width: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

.site-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* header */
.shop-header {
  background: var(--cream);
  border-bottom: 1px solid var(--linen);
}
.shop-header .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.shop-logo { font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.shop-nav { display: flex; align-items: center; gap: 26px; }
.shop-nav a { font-size: 0.88rem; color: var(--ink-soft); }
.shop-nav a:hover { color: var(--ink); }
.cart-btn { background: none; border: none; cursor: pointer; color: var(--ink); font-size: 1.3rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 6px; font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; border: 1.5px solid transparent; cursor: pointer; transition: all .15s; }
.btn-terracotta { background: var(--terracotta); color: #fff; }
.btn-terracotta:hover { background: var(--terracotta-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { opacity: .85; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* hero */
.shop-hero { padding: 64px 0; }
.shop-hero .site-container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.shop-eyebrow { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-dark); font-weight: 600; margin-bottom: 12px; }
.shop-hero img { border-radius: 10px; }

@media (max-width: 860px) {
  .shop-hero .site-container { grid-template-columns: 1fr; }
}

section { padding: 56px 0; }
.section-alt { background: var(--cream-alt); }
.section-sage { background: var(--sage-dark); color: #fff; }
.section-sage h2 { color: #fff; }
.text-center { text-align: center; }
.mw-680 { max-width: 680px; margin-left: auto; margin-right: auto; }

/* product */
.product-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-price { font-size: 1.4rem; color: var(--ink); font-weight: 600; margin-bottom: 18px; }
.product-meta { font-size: .85rem; color: var(--sage-dark); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.product-panel ul { padding-left: 1.3em; }
.product-panel li { margin-bottom: .4em; }

@media (max-width: 860px) {
  .product-panel { grid-template-columns: 1fr; }
}

/* trust badges */
.badges { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; padding: 32px 0; }
.badge { text-align: center; font-size: .85rem; color: var(--ink-soft); }
.badge-icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }

/* licensing tiers */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier-card { background: var(--cream); border: 1px solid var(--linen); border-radius: 12px; padding: 28px; }
.tier-card h3 { font-size: 1.15rem; }
.tier-tag { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; margin-bottom: 10px; }

@media (max-width: 860px) { .tier-grid { grid-template-columns: 1fr; } }

/* testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testi-card { background: var(--cream); border: 1px solid var(--linen); border-radius: 12px; padding: 26px; }
.testi-name { font-size: .82rem; color: var(--sage-dark); margin-top: 12px; font-weight: 600; }

@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }

/* faq */
.faq-item { border-bottom: 1px solid var(--linen); padding: 18px 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 6px; }

/* forms */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--linen); border-radius: 6px;
  font-family: var(--font-body); font-size: .95rem; background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--sage-dark); }

/* cart drawer */
#cart-drawer {
  position: fixed; top: 0; right: -420px; width: 380px; max-width: 92vw; height: 100vh;
  background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.15); z-index: 200; transition: right .25s ease;
  display: flex; flex-direction: column; padding: 28px 24px;
}
#cart-drawer.open { right: 0; }
#cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 190; display: none;
}
#cart-overlay.open { display: block; }
.cart-close { align-self: flex-end; background: none; border: none; font-size: 1.4rem; cursor: pointer; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linen); }
.cart-item-remove { background: none; border: none; color: var(--terracotta); cursor: pointer; font-size: .8rem; }
.cart-total { display: flex; justify-content: space-between; font-weight: 600; padding: 18px 0; font-size: 1.1rem; }
.cart-empty { color: var(--ink-soft); font-size: .9rem; padding: 20px 0; }

/* footer */
.shop-footer { background: var(--linen); padding: 44px 0 28px; }
.shop-footer .site-container { text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: .82rem; margin-bottom: 16px; }
.footer-support { font-size: .82rem; color: var(--ink-soft); margin-bottom: 6px; }
.footer-copy { font-size: .76rem; color: var(--sage-dark); margin-top: 14px; }
