/*
Theme Name: Faith Through Healing Store
Theme URI: https://faiththroughhealing.com
Description: Child theme of Storefront matching the approved Faith Through Healing design (Fraunces serif, forest/burgundy/gold, cream).
Author: Hermes Agent
Template: storefront
Version: 1.0.0
*/

/* ---------- Design tokens (match approved static design) ---------- */
:root {
  --ink: #2b2622;
  --forest: #1e3a2f;
  --forest-deep: #142a22;
  --burgundy: #6b2d2d;
  --cream: #faf6ee;
  --cream-deep: #f1e9da;
  --gold: #b98a2f;
  --line: #e0d6c4;
  --muted: #6f675c;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); }
a { color: var(--burgundy); }

/* ---------- Storefront container override ---------- */
.site-content .col-full {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.storefront-breadcrumb { margin: 0; padding: 0.8rem 0 0; }

/* ---------- Header ---------- */
.fth-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.fth-header .nav {
  max-width: 1180px; margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.fth-header .brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  color: var(--forest); text-decoration: none; letter-spacing: 0.01em;
}
.fth-header .brand em { font-style: italic; color: var(--burgundy); }
.fth-header .nav-links { display: flex; gap: 1.6rem; align-items: center; }
.fth-header .nav-links a:not(.btn) {
  color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s;
}
.fth-header .nav-links a:not(.btn):hover { color: var(--burgundy); }
.fth-header .cart-count {
  background: var(--gold); color: #fff; border-radius: 10px;
  font-size: 0.72rem; padding: 0.08rem 0.45rem; margin-left: 0.25rem;
}

.btn {
  display: inline-block; padding: 0.65rem 1.4rem;
  background: var(--forest); color: #fff; text-decoration: none;
  border-radius: 4px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--forest); transition: all 0.2s; cursor: pointer;
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: #fff; }
.btn-outline {
  background: transparent; color: var(--forest); border-color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); }
.btn-gold:hover { background: #a67a24; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1180px; margin: 0 auto; padding: 4.5rem 1.5rem 3rem;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
}
.hero-kicker {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--burgundy); font-weight: 600; margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1;
  color: var(--forest-deep); margin-bottom: 1.2rem;
}
.hero h1 em { color: var(--burgundy); font-style: italic; }
.hero p.lede {
  font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; position: relative; }
.hero-book {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.9rem; text-align: center; box-shadow: 0 8px 24px rgba(43,38,34,0.08);
  transition: transform 0.25s;
}
.hero-book:hover { transform: translateY(-4px); }
.hero-book img { max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 4px 14px rgba(43,38,34,0.18); }
.hero-book:first-child { transform: rotate(-2deg); }
.hero-book:last-child { transform: rotate(2deg); margin-top: 1.4rem; }

/* ---------- Sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 4rem 1.5rem; }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.8rem; }
.section-head .kicker {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--burgundy); font-weight: 600; margin-bottom: 0.6rem;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--forest-deep); line-height: 1.15;
}
.section-head p { color: var(--muted); margin-top: 0.8rem; }

/* ---------- Books grid ---------- */
.books-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
}
.book-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.book-card:hover { box-shadow: 0 12px 32px rgba(43,38,34,0.12); transform: translateY(-3px); }
.book-cover {
  padding: 1.4rem; background: var(--cream-deep); display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3 / 3.6;
}
.book-cover img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 4px; box-shadow: 0 6px 20px rgba(43,38,34,0.22);
}
.book-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.book-body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--forest-deep); margin: 0; }
.book-sub { color: var(--muted); font-size: 0.88rem; margin: 0.35rem 0 0.7rem; }
.book-desc { font-size: 0.95rem; color: var(--ink); margin-bottom: 1.2rem; flex: 1; }
.book-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---------- Themes band ---------- */
.themes-band { background: var(--forest-deep); color: #efe9dc; }
.themes-band .section { padding-top: 4rem; padding-bottom: 4rem; }
.themes-band .section-head h2 { color: #f6f1e6; }
.themes-band .section-head p { color: #c9c0ae; }
.themes-band .section-head .kicker { color: var(--gold); }
.themes-intro {
  max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; color: #d6cdbc; font-size: 1.02rem;
}
.themes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem;
}
.theme-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
  display: flex; flex-direction: column;
}
.theme-card:hover { transform: translateY(-4px); border-color: var(--gold); background: rgba(255,255,255,0.09); }
.theme-swatch img { width: 100%; display: block; aspect-ratio: 3/2; object-fit: cover; }
.theme-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.theme-body .tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold); font-weight: 600; margin-bottom: 0.35rem;
}
.theme-body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: #f6f1e6; margin: 0; }
.theme-body p { font-size: 0.88rem; color: #bdb3a0; margin-top: 0.4rem; flex: 1; }
.theme-price {
  margin-top: 0.8rem; display: flex; align-items: center; justify-content: space-between;
  color: #f6f1e6; font-weight: 600;
}
.theme-price .price { font-family: var(--serif); font-size: 1.15rem; color: var(--gold); }
.theme-price .buy { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: #efe9dc; text-decoration: none; }
.theme-card .addtocart {
  background: var(--gold); color: #fff; border: none; border-radius: 4px;
  padding: 0.35rem 0.8rem; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.theme-card .addtocart:hover { background: #a67a24; }
.themes-more { text-align: center; margin-top: 2.5rem; }

/* ---------- About ---------- */
.about { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .section { padding-top: 4rem; padding-bottom: 4rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-img { text-align: center; }
.about-img img { max-width: 320px; width: 100%; border-radius: 10px; box-shadow: 0 14px 40px rgba(43,38,34,0.15); }
.about-text h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--forest-deep); margin-bottom: 1rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; font-size: 1.02rem; }
.about-text a { color: var(--burgundy); font-weight: 600; }

/* ---------- Footer ---------- */
.fth-footer { background: var(--forest-deep); color: #c9c0ae; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 3rem 1.5rem 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
}
.footer-inner h4 { color: #f6f1e6; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 0.8rem; }
.footer-inner a { color: #c9c0ae; text-decoration: none; display: block; margin-bottom: 0.45rem; font-size: 0.95rem; }
.footer-inner a:hover { color: var(--gold); }
.footer-brand { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: #f6f1e6; margin-bottom: 0.5rem; }
.footer-brand em { font-style: italic; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); text-align: center;
  padding: 1.2rem 1.5rem; font-size: 0.85rem; color: #8d8473;
}

/* ---------- WooCommerce styling ---------- */
.woocommerce .woocommerce-breadcrumb { color: var(--muted); }
.woocommerce .woocommerce-breadcrumb a { color: var(--burgundy); }
.woocommerce div.product .product_title { font-size: 2rem; color: var(--forest-deep); }
.woocommerce div.product p.price, .woocommerce div.product span.price {
  color: var(--gold); font-family: var(--serif); font-size: 1.6rem; font-weight: 600;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--serif); color: var(--forest-deep); font-size: 1.05rem;
}
.woocommerce ul.products li.product .price {
  color: var(--gold); font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
}
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit {
  background: var(--forest); color: #fff; border-radius: 4px; font-weight: 600;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce #respond input#submit:hover {
  background: var(--forest-deep); color: #fff;
}
.woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt, .woocommerce #respond input#submit.alt {
  background: var(--gold); color: #fff;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover, .woocommerce #respond input#submit.alt:hover {
  background: #a67a24; color: #fff;
}
.woocommerce ul.products li.product .button {
  margin-top: 0.6rem;
}
.woocommerce span.onsale {
  background: var(--burgundy); color: #fff; border-radius: 3px; min-height: auto;
  line-height: 1.8; padding: 0 0.7rem;
}
.woocommerce-message, .woocommerce-info {
  border-top-color: var(--gold); background: #fff;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--gold); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
  border-radius: 4px; border-color: var(--line);
}
.woocommerce-cart table.cart td.actions .coupon .input-text { border-radius: 4px; border-color: var(--line); }
.woocommerce table.shop_table { border-radius: 6px; }
.woocommerce .order_details, .woocommerce .woocommerce-customer-details { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; }
.woocommerce-MyAccount-navigation ul li a { color: var(--forest); }
.site-footer .widget-area .widget ul li a { color: #c9c0ae; }
.woocommerce-products-header__title.page-title { font-family: var(--serif); color: var(--forest-deep); font-size: 2.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-stack { grid-template-columns: 1fr 1fr; max-width: 480px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .fth-header .nav-links a:not(.btn) { display: none; }
}
