/*
Theme Name: Bound & Found
Theme URI: https://boundandfound.com
Description: WooCommerce child theme for Bound & Found — curated hybrid bookstore with referral engine.
Author: Zakley Inc
Author URI: https://zakley.com
Template: astra
Version: 1.0.0
Text Domain: boundfound
*/

/* ============================================================
   Bound & Found — Brand System
   Warm Ink / Aged Paper / Deep Spine / Burnt Accent
   Fonts: Playfair Display (headings) + Inter (body)
   ============================================================ */

:root {
  --bf-ink: #2C1810;
  --bf-spine: #4A2C2A;
  --bf-leather: #6B3A2A;
  --bf-amber: #C17817;
  --bf-amber-light: #D4943A;
  --bf-parchment: #FAF6F0;
  --bf-linen: #F2EDE4;
  --bf-cream: #FFFDF8;
  --bf-text: #2C1810;
  --bf-text-mid: #5C4A3A;
  --bf-text-light: #8A7A6A;
  --bf-border: #DDD4C8;
}

/* ---- Global ---- */
body {
  background-color: var(--bf-cream);
  color: var(--bf-text);
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.woocommerce-loop-product__title,
.site-title {
  font-family: 'Playfair Display', serif;
  color: var(--bf-ink);
  font-weight: 700;
}

a {
  color: var(--bf-leather);
}
a:hover {
  color: var(--bf-spine);
}

/* ---- Header / Nav ---- */
.main-header-bar {
  background-color: rgba(255, 253, 248, 0.97);
  border-bottom: 1px solid var(--bf-border);
}
.site-title a,
.site-title a:hover {
  color: var(--bf-ink);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
.main-navigation a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bf-text-mid);
}
.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--bf-amber);
}

/* ---- Buttons ---- */
.button,
button,
input[type="submit"],
.wp-block-button__link,
.ast-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background-color: var(--bf-spine);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  padding: 0.7rem 1.8rem;
  transition: background-color 0.2s;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background-color: var(--bf-ink);
  color: #fff;
}

/* Amber accent button */
.btn-amber,
.woocommerce a.button.btn-amber {
  background-color: var(--bf-amber);
}
.btn-amber:hover,
.woocommerce a.button.btn-amber:hover {
  background-color: #A06010;
}

/* ---- Hero Section ---- */
.bf-hero {
  padding: 6rem 2rem 4rem;
  background: var(--bf-ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(193,120,23,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(74,44,42,0.15) 0%, transparent 40%);
  pointer-events: none;
}
.bf-hero * { position: relative; }
.bf-hero .eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bf-amber);
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.bf-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  color: #fff;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}
.bf-hero h1 em {
  font-style: italic;
  color: var(--bf-amber-light);
}
.bf-hero .tagline {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  margin: 0 auto;
}
.bf-hero .about-block {
  margin: 2rem auto 0;
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 560px;
}
.bf-hero .about-block p {
  font-size: 0.82rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.45);
}
.bf-hero .hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.bf-hero .hero-actions .btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
}
.bf-hero .hero-actions .btn-outline-light:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ---- Category Grid ---- */
.bf-categories {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.bf-categories .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bf-border);
  margin-bottom: 2rem;
}
.bf-categories .section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bf-text-light);
  font-weight: 700;
}
.bf-categories .tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bf-amber);
  border: 1px solid rgba(193,120,23,0.3);
  padding: 0.2rem 0.6rem;
  font-weight: 700;
}
.bf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.bf-card {
  border: 1px solid var(--bf-border);
  padding: 2rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bf-card:hover {
  border-color: var(--bf-amber);
  box-shadow: 0 2px 12px rgba(44,24,16,0.06);
}
.bf-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  color: var(--bf-amber);
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.bf-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.bf-card p {
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--bf-text-light);
}

/* ---- CTA bar ---- */
.bf-cta {
  padding: 0 2rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}
.bf-cta-inner {
  padding: 1.5rem 2rem;
  background: var(--bf-linen);
  border: 1px solid var(--bf-border);
  border-left: 3px solid var(--bf-spine);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.bf-cta-inner strong {
  display: block;
  font-family: 'Playfair Display', serif;
  color: var(--bf-ink);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

/* ---- WooCommerce Overrides ---- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Playfair Display', serif;
  color: var(--bf-ink);
  font-weight: 700;
}
.woocommerce ul.products li.product .price {
  color: var(--bf-amber);
  font-weight: 600;
}
.woocommerce .star-rating span::before {
  color: var(--bf-amber);
}
.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--bf-linen);
  color: var(--bf-leather);
}
.woocommerce .woocommerce-message {
  border-top-color: var(--bf-spine);
}
.woocommerce .woocommerce-info {
  border-top-color: var(--bf-leather);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--bf-leather);
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--bf-border);
  background: rgba(255, 253, 248, 0.9);
}
.site-footer .site-info {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bf-text-light);
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .bf-grid { grid-template-columns: 1fr; }
  .bf-cta-inner { flex-direction: column; text-align: center; }
  .bf-hero { padding: 5rem 1.5rem 3rem; }
}
@media (max-width: 480px) {
  .bf-hero h1 { font-size: 2rem; }
  .bf-hero .hero-actions { flex-direction: column; align-items: center; }
  .bf-hero .about-block { padding: 1rem 1.2rem; }
}

/* === eZakley Full-Width Fix === */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
#primary, #main,
.ast-container,
.site-content .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#secondary,
.widget-area,
.sidebar-main {
  display: none !important;
}
.ast-right-sidebar #primary,
.ast-left-sidebar #primary {
  width: 100% !important;
  border: none !important;
}
/* full-width-fix */

/* === eZakley Flex Container Fix === */
.ast-container {
  flex-direction: column !important;
}
.ast-container > * {
  width: 100% !important;
  max-width: 100% !important;
}

/* === eZakley Grid Override Fix === */
.ast-container {
  display: block !important;
  grid-template-columns: unset !important;
}
