/*
Theme Name: Barn Dog
Theme URI: https://barndoghouse.com
Author: Barn Dog
Description: A modern WooCommerce theme for Barn Dog Lifetime Dog Houses
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 9.0
License: GNU General Public License v2 or later
Text Domain: barn-dog
*/

/* ============================================================
   DESIGN TOKENS & VARIABLES
   ============================================================ */
:root {
  --bd-barn-red:     #8B2020;
  --bd-barn-red-dk:  #5C1515;
  --bd-cream:        #F5F0E8;
  --bd-warm-white:   #FDFAF5;
  --bd-charcoal:     #1E1E1E;
  --bd-charcoal-mid: #2E2E2E;
  --bd-steel:        #4A4A4A;
  --bd-tan:          #C4A882;
  --bd-tan-lt:       #E8D9C0;
  --bd-gold:         #C8922A;
  --bd-wood:         #7A5C3A;

  --font-display:    'Playfair Display', Georgia, serif;
  --font-body:       'Source Sans 3', 'Helvetica Neue', sans-serif;
  --font-accent:     'Courier Prime', 'Courier New', monospace;

  --nav-h: 72px;
  --section-pad: clamp(60px, 8vw, 120px);
  --container-max: 1240px;
  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bd-warm-white);
  color: var(--bd-charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bd-barn-red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--bd-barn-red-dk); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bd-charcoal);
}

p { margin-bottom: 1rem; }

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

@media (max-width: 350px) {
  .container { padding: 0 8px; }
  
}

.section-pad { padding: var(--section-pad) 15px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
  margin-top: 0;
  padding-top: 0;
}

#site-header.at-top {
  background: transparent;
}

#site-header.scrolled {
  background: var(--bd-charcoal);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* Inner pages should keep a consistent solid header. */
body:not(.is-front-page) #site-header {
  background: var(--bd-charcoal);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.site-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .site-logo { gap: 8px; }
  .site-logo img { width: 52px; height: 52px; }
  .site-logo .logo-text { font-size: 1.15rem; }
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.88);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav-menu a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bd-barn-red) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: var(--radius) !important;
}

.nav-cart-link:hover { background: var(--bd-barn-red-dk) !important; }

.cart-count {
  background: #fff;
  color: var(--bd-barn-red);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 1.2rem;
}

@media (max-width: 1050px) {
  .nav-toggle { display: block; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bd-charcoal);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    border-bottom: 3px solid var(--bd-barn-red);
  }

  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { display: block; padding: 12px 20px; width: 100%; }

  /* Show header background when mobile menu is open */
  #site-header:has(.nav-menu.open) {
    background: var(--bd-charcoal);
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to bottom, rgba(20,10,10,0.55) 0%, rgba(30,15,15,0.75) 100%),
    url('assets/images/AI-hero-image.png');
  background-size: cover;
  background-position: center;
  /* transform: scale(1.05); */
  /* transition: transform 8s ease; */
}

.hero-logo {
  width: 400px;  /* adjust as needed */
  height: auto;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .hero-logo {
    width: 300px;
  }
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.hero-logo svg {
  width: 100%;
  height: auto;
}

.hero:hover .hero-bg { transform: scale(1.0); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 60px 24px;
  animation: fadeUp 1s ease 0.2s both;
}

.hero-eyebrow {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bd-tan);
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  color: #fff;
  font-weight: 900;
  line-height: 1.0;
  margin-bottom: 20px;
}

.hero-title span { color: var(--bd-barn-red); }

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.78);
  font-style: italic;
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-weight: 400;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--bd-barn-red);
  color: #fff;
  border-color: var(--bd-barn-red);
}
.btn-primary:hover {
  background: var(--bd-barn-red-dk);
  border-color: var(--bd-barn-red-dk);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139,32,32,0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--bd-charcoal);
  color: #fff;
  border-color: var(--bd-charcoal);
}
.btn-dark:hover {
  background: var(--bd-charcoal-mid);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bd-barn-red);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--bd-charcoal);
  margin-bottom: 16px;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--bd-barn-red);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--bd-steel);
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* ============================================================
   ABOUT / MISSION
   ============================================================ */
.mission-section {
  background: var(--bd-cream);
  position: relative;
  overflow: hidden;
}

.mission-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bd-barn-red), var(--bd-gold), var(--bd-barn-red));
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}

@media (max-width: 768px) {
  .mission-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

.mission-grid > * { min-width: 0; }

.mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.7;
  color: var(--bd-charcoal);
  font-style: italic;
  position: relative;
  padding-left: 32px;
  border-left: 4px solid var(--bd-barn-red);
}

.mission-attribution {
  display: block;
  margin-top: 20px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bd-steel);
}

.mission-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border-bottom: 3px solid var(--bd-barn-red);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--bd-barn-red);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bd-steel);
  font-weight: 600;
}

@media (max-width: 480px) {
  .mission-quote {
    padding-left: 20px;
    font-size: clamp(1.05rem, 4.7vw, 1.2rem);
  }

  .mission-stats { gap: 16px; }

  .stat-card { padding: 20px 12px; }

  .stat-number { font-size: clamp(2rem, 10vw, 2.8rem); }

  .stat-label {
    font-size: clamp(0.68rem, 3.2vw, 0.85rem);
    letter-spacing: 0.08em;
  }
}

/* ============================================================
   PRODUCT CARDS (WooCommerce)
   ============================================================ */
.products-section { background: var(--bd-warm-white); }

ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.products li.product {
  min-width: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}

ul.products li.product .woocommerce-loop-product__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

ul.products li.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

ul.products li.product:hover img { transform: scale(1.04); }

.product-img-wrap { overflow: hidden; position: relative; }

.product-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--bd-barn-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 2px;
}

.product-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--bd-charcoal);
  margin-bottom: 8px;
  font-weight: 700;
}

ul.products li.product .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bd-barn-red);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

/* Force WC's inner price spans inline so "$x – $y" stays on one line */
ul.products li.product .price .woocommerce-Price-amount,
ul.products li.product .price ins,
ul.products li.product .price ins .woocommerce-Price-amount,
.product-summary .price .woocommerce-Price-amount,
.product-summary .price ins,
.product-summary .price ins .woocommerce-Price-amount {
  display: inline !important;
}

ul.products li.product .price ins { text-decoration: none; font-weight: 700; }

ul.products li.product .price del {
  color: var(--bd-steel);
  font-size: 1rem;
  font-weight: 400;
  margin-right: 6px;
}

.product-meta {
  font-size: 0.85rem;
  color: var(--bd-steel);
  margin-bottom: 20px;
  flex: 1;
}

ul.products li.product .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  background: var(--bd-charcoal);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--bd-charcoal);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-body);
}

ul.products li.product .button:hover,
ul.products li.product .button.added {
  background: var(--bd-barn-red);
  border-color: var(--bd-barn-red);
}

@media (max-width: 600px) {
  ul.products { gap: 20px; }

  .product-body { padding: 18px; }

  ul.products li.product .woocommerce-loop-product__title {
    font-size: clamp(1.15rem, 5vw, 1.3rem);
  }

  ul.products li.product .price { font-size: clamp(1.25rem, 5.5vw, 1.5rem); }
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.single-product-wrap {
  padding-top: 20px;
  padding-bottom: var(--section-pad);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 48px 0 56px;
}

@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
  /* On mobile: gallery is normal flow, never sticky */
  .bd-gallery { position: static !important; }
}

/* Sticky gallery only on desktop where both columns are side-by-side */
@media (min-width: 769px) {
  .bd-gallery {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
  }
}

/* ── Custom Gallery ──────────────────────────────────────── */
.bd-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* sticky only on desktop where there's room — disabled on mobile */
}

/* Main image wrapper */
.bd-gallery__main {
  position: relative;
  width: 100%;
  /* Consistent 1:1 aspect ratio — scales cleanly on all screens */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bd-cream);
  cursor: zoom-in;
  box-shadow: 0 4px 28px rgba(0,0,0,0.10);
}

.bd-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.bd-gallery__main:hover .bd-gallery__main-img {
  transform: scale(1.03);
}

/* Zoom hint badge (bottom-right) */
.bd-gallery__zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.bd-gallery__main:hover .bd-gallery__zoom-hint,
.bd-gallery__main:focus .bd-gallery__zoom-hint {
  opacity: 1;
}

.bd-gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bd-tan-lt);
}

/* ── Thumbnail carousel ──────────────────────────────────── */
.bd-thumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.bd-thumbs__viewport {
  flex: 1;
  overflow: hidden;
  /* viewport clips the scrolling track */
}

.bd-thumbs__track {
  display: flex;
  gap: 8px;
  transition: transform 0.3s ease;
  /* each thumb = (100% - 3*8px gap) / 4 */
}

/* Arrow buttons */
.bd-thumbs__arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 2px solid var(--bd-tan-lt);
  background: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--bd-charcoal);
  transition: all var(--transition);
}

.bd-thumbs__arrow:hover:not(:disabled) {
  border-color: var(--bd-barn-red);
  color: var(--bd-barn-red);
}

.bd-thumbs__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Individual thumbnail button — NO numbers */
.bd-thumbs__item {
  /* Exactly 1/4 of available viewport width */
  flex: 0 0 calc(25% - 6px);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bd-cream);
  transition: border-color var(--transition), transform var(--transition);
}

.bd-thumbs__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bd-thumbs__item.is-active,
.bd-thumbs__item:hover {
  border-color: var(--bd-barn-red);
}

.bd-thumbs__item.is-active {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139,32,32,0.2);
}

/* ── Product Summary ─────────────────────────────────────── */
.product-summary .product_title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--bd-charcoal);
}

.bd-price-wrap {
  margin-bottom: 20px;
}

.product-summary .price,
.bd-price-wrap .price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--bd-barn-red);
  font-weight: 700;
  /* inline-flex keeps "£x – £y" on one line instead of stacking vertically */
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.product-summary .woocommerce-product-details__short-description {
  font-size: 1.05rem;
  color: var(--bd-steel);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ── Size / Variations selector ─────────────────────────── */
.variations {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
  justify-content: flex-start;
  text-align: left;
}

.variations td,
.variations th {
  padding: 0px 0;
  vertical-align: top;
  text-align: left;
}

/* Size label — matches the dropdown font size */
.variations .label label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;       /* was 0.85rem — now matches dropdown */
  color: var(--bd-charcoal);
  /* white-space: nowrap; */
  padding-right: 16px;
}

.variations select {
  width: 100%;
  padding: 11px 36px 11px 14px;
  border: 2px solid var(--bd-tan-lt);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;        /* same size as label */
  background: #fff;
  color: var(--bd-charcoal);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A4A4A' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--transition);
}

.variations select:focus { border-color: var(--bd-barn-red); outline: none; }

.reset_variations {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--bd-steel);
  text-decoration: underline;
  cursor: pointer;
}

/* Quantity + Add to cart row */
.quantity {
  display: none;
}

.quantity input[type=number] {
  display: none;
}

.single_add_to_cart_button,
button.single_add_to_cart_button {
  width: 100%;
  padding: 13px 24px;
  background: var(--bd-barn-red);
  color: #fff;
  border: 2px solid var(--bd-barn-red);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 12px;
}

.single_add_to_cart_button:hover {
  background: var(--bd-barn-red-dk);
  border-color: var(--bd-barn-red-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,32,32,0.35);
}

/* Buy Now button */
.bd-buy-now-wrap {
  margin-top: 0;
}

.bd-buy-now-btn {
  width: 100%;
  justify-content: center;
  padding: 13px 24px;
  font-size: 1rem;
  background: var(--bd-charcoal);
  color: #fff;
  border-color: var(--bd-charcoal);
}

.bd-buy-now-btn:hover {
  background: var(--bd-charcoal-mid);
  color: #fff;
  border-color: var(--bd-charcoal-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* WC product meta (SKU, category) — hidden on single product page */
.product_meta {
  display: none;
}

/* ── Horizontal Tabs ─────────────────────────────────────── */
.bd-tabs {
  margin-bottom: 72px;
  border: 1px solid var(--bd-tan-lt);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Tab button row */
.bd-tabs__nav {
  display: flex;
  border-bottom: 1px solid var(--bd-tan-lt);
  background: var(--bd-cream);
  overflow-x: auto;
  scrollbar-width: none;
}
.bd-tabs__nav::-webkit-scrollbar { display: none; }

.bd-tabs__btn {
  flex: 1;
  min-width: 120px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bd-steel);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
}

.bd-tabs__btn:hover {
  color: var(--bd-charcoal);
  background: rgba(0,0,0,0.03);
}

.bd-tabs__btn.is-active {
  color: var(--bd-barn-red);
  border-bottom-color: var(--bd-barn-red);
  background: #fff;
}

.bd-tabs__count {
  background: var(--bd-barn-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 7px;
  line-height: 1.5;
}

/* Tab panel */
.bd-tabs__panel {
  display: none;
  padding: 36px 40px;
  background: #fff;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--bd-charcoal);
  animation: tabFadeIn 0.25s ease;
}

.bd-tabs__panel.is-active { display: block; }

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .bd-tabs__panel { padding: 24px 20px; }
}

/* Attributes table inside Additional Info tab */
.bd-attr-table {
  width: 100%;
  border-collapse: collapse;
}

.bd-attr-table th,
.bd-attr-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bd-tan-lt);
  font-size: 0.95rem;
  text-align: left;
  vertical-align: top;
}

.bd-attr-table th {
  width: 35%;
  font-weight: 700;
  color: var(--bd-charcoal);
  background: var(--bd-cream);
}

.bd-attr-table td { color: var(--bd-steel); }

/* ── Lightbox ────────────────────────────────────────────── */
.bd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bd-lightbox[hidden] { display: none; }

.bd-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.92);
  cursor: zoom-out;
}

.bd-lightbox__inner {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 900px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bd-lightbox__img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}

.bd-lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.bd-lightbox__close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

/* ── Warranty badges ─────────────────────────────────────── */
.product-meta-info {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--bd-tan-lt);
  font-size: 0.9rem;
  color: var(--bd-steel);
}

.product-meta-info span { display: block; margin-bottom: 6px; }

/* Warranty badge */
.warranty-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bd-cream);
  border: 1px solid var(--bd-tan-lt);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 20px;
}

.warranty-badge .badge-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.warranty-badge .badge-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bd-charcoal);
}

.warranty-badge .badge-text span {
  font-size: 0.82rem;
  color: var(--bd-steel);
}

/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-header-bar {
  background: var(--bd-charcoal);
  border-bottom: 3px solid var(--bd-barn-red);
  padding: calc(var(--nav-h) + 5px) 0 40px;
}

.shop-header-bar .breadcrumb,
.shop-header-bar .breadcrumb a,
.shop-header-bar .breadcrumb span { color: rgba(255,255,255,0.5); }
.shop-header-bar .breadcrumb a:hover { color: rgba(255,255,255,0.85); }

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 60px 0;
}

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
}

.shop-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  align-self: start;
}

.sidebar-widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bd-charcoal);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bd-barn-red);
}

.widget-price-filter input[type=range] { width: 100%; accent-color: var(--bd-barn-red); }

.widget-category-list { list-style: none; }
.widget-category-list li { margin-bottom: 8px; }
.widget-category-list a {
  font-size: 0.9rem;
  color: var(--bd-steel);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}
.widget-category-list a:hover { color: var(--bd-barn-red); }
.widget-category-list .count {
  background: var(--bd-cream);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.woocommerce-ordering select {
  padding: 8px 14px;
  border: 2px solid var(--bd-tan-lt);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: #fff;
  cursor: pointer;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-wrap { padding-top: calc(var(--nav-h) + 60px); padding-bottom: var(--section-pad); }

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.cart-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bd-steel);
  padding: 0 0 16px;
  border-bottom: 2px solid var(--bd-tan-lt);
  font-weight: 700;
  text-align: left;
}
.cart-table td {
  padding: 20px 0;
  border-bottom: 1px solid var(--bd-tan-lt);
  vertical-align: middle;
}

.cart-table .product-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-table .product-name a { font-weight: 600; color: var(--bd-charcoal); }
.cart-table .product-price, .cart-table .product-subtotal { font-weight: 700; color: var(--bd-barn-red); }

.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-summary {
  background: var(--bd-cream);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--bd-tan-lt);
}

.cart-summary h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bd-barn-red);
}

.cart-summary table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-summary td { padding: 10px 0; border-bottom: 1px solid var(--bd-tan-lt); font-size: 0.95rem; }
.cart-summary td:last-child { text-align: right; font-weight: 700; }
.cart-summary .order-total td { font-size: 1.2rem; color: var(--bd-barn-red); border-bottom: none; }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-wrap { padding-top: calc(var(--nav-h) + 60px); padding-bottom: var(--section-pad); }
.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bd-charcoal);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--bd-tan-lt);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--bd-charcoal);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--bd-barn-red);
  outline: none;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.order-review-box {
  background: var(--bd-cream);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--bd-tan-lt);
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.section-label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bd-barn-red);
}

/* ============================================================
   GALLERY / CAROUSEL
   ============================================================ */
.gallery-section { background: var(--bd-charcoal); color: #fff; }
.gallery-section .section-title { color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  min-height: 200px;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139,32,32,0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: #fff;
  font-size: 2rem;
  opacity: 0;
}

.gallery-item:hover .gallery-overlay { background: rgba(139,32,32,0.5); opacity: 1; }

/* ============================================================
   CUSTOM ORDERS / CTA
   ============================================================ */
.cta-section {
  background: var(--bd-barn-red);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.03) 40px,
    rgba(255,255,255,0.03) 80px
  );
}

.cta-content { position: relative; z-index: 1; }
.cta-section .section-title { color: #fff; }
.cta-section .section-sub { color: rgba(255,255,255,0.85); }
.cta-section .btn-outline { border-color: rgba(255,255,255,0.7); color: #fff; }
.cta-section .btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--bd-cream); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border-top: 3px solid var(--bd-barn-red);
  position: relative;
}

.testimonial-stars {
  color: var(--bd-gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--bd-charcoal);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bd-tan-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--bd-wood);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-location { font-size: 0.82rem; color: var(--bd-steel); }

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
  background: var(--bd-charcoal);
  padding: 48px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

@media (max-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }

.feature-item { padding: 16px; }

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 6px;
}

.feature-desc { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bd-charcoal);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.footer-brand .footer-logo span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-btn:hover {
  background: var(--bd-barn-red);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  text-decoration: none;
}
.footer-col ul a:hover { color: #fff; }

.footer-newsletter input[type=email] {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter input:focus { outline: none; border-color: var(--bd-barn-red); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.82rem; margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   PAGE HERO (Inner Pages)
   ============================================================ */
.page-hero {
  background: var(--bd-charcoal);
  padding: calc(var(--nav-h)) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--bd-barn-red), transparent);
}

.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1rem; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb span { color: rgba(255,255,255,0.35); margin: 0 8px; }

/* ============================================================
   WOOCOMMERCE NOTICES
   ============================================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.woocommerce-message { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #2e7d32; }
.woocommerce-info { background: #e3f2fd; color: #1565c0; border-left: 4px solid #1565c0; }
.woocommerce-error { background: #fce4ec; color: #c62828; border-left: 4px solid #c62828; }

.shop-main .woocommerce-message {
  display: block;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .shop-main .woocommerce-message {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
}

#mailto-note {
  display: block;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#mailto-note[hidden] {
  display: none;
}

@media (max-width: 480px) {
  #mailto-note {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
}

/* ============================================================
   MISSION PAGE
   ============================================================ */
.mission-page-hero {
  background: linear-gradient(135deg, var(--bd-charcoal) 0%, var(--bd-charcoal-mid) 100%);
  padding: calc(var(--nav-h) + 80px) 0 80px;
  position: relative;
  overflow: hidden;
}

.mission-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(139,32,32,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200,146,42,0.1) 0%, transparent 50%);
}

.mission-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
@media (max-width: 768px) { .mission-values { grid-template-columns: 1fr; } }

.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  transition: transform var(--transition);
}
.value-card:hover { transform: translateY(-4px); }
.value-icon { font-size: 2.5rem; margin-bottom: 16px; }
.value-title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 12px; }
.value-desc { font-size: 0.95rem; color: var(--bd-steel); line-height: 1.7; }

/* ============================================================
   ACCOUNT PAGES
   ============================================================ */
.account-wrap {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: var(--section-pad);
}

/* Simple header replacing the full hero on account pages */
.account-page-header {
  padding-bottom: 32px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--bd-tan-lt);
}
.account-page-header .breadcrumb {
  font-size: 0.82rem;
  color: var(--bd-steel);
  margin-bottom: 10px;
}
.account-page-header .breadcrumb a { color: var(--bd-steel); }
.account-page-header .breadcrumb a:hover { color: var(--bd-barn-red); }
.account-page-header h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 4px; }
.account-page-header p { color: var(--bd-steel); margin: 0; }

.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) { .account-layout { grid-template-columns: 1fr; } }

.account-nav {
  background: var(--bd-cream);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  border: 1px solid var(--bd-tan-lt);
}

.account-nav ul { list-style: none; }
.account-nav a {
  display: block;
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bd-charcoal);
  border-bottom: 1px solid var(--bd-tan-lt);
  transition: all var(--transition);
  text-decoration: none;
}
.account-nav a:hover, .account-nav a.active {
  background: var(--bd-barn-red);
  color: #fff;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }

/* ============================================================
   POLICY / INFO PAGES (Warranty, Contact, FAQ, Privacy, Terms,
   Shipping & Returns)
   ============================================================ */

/* Shared wrapper */
.policy-wrap {
  padding: 60px 0 var(--section-pad);
  background: var(--bd-warm-white);
}

/* Constrained prose column */
.policy-container {
  max-width: 900px;
}

/* Lead paragraph */
.policy-intro {
  font-size: 1.1rem;
  color: var(--bd-steel);
  line-height: 1.8;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--bd-tan-lt);
}

/* Section headings */
.policy-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--bd-charcoal);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bd-barn-red);
}

/* Prose content inside policy pages */
.policy-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 40px 0 14px;
  color: var(--bd-charcoal);
}
.policy-prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--bd-charcoal);
}
.policy-prose p  { margin-bottom: 16px; line-height: 1.8; color: var(--bd-charcoal); }
.policy-prose ul { margin: 12px 0 20px 20px; }
.policy-prose ul li { margin-bottom: 8px; line-height: 1.7; color: var(--bd-charcoal); }
.policy-prose a  { color: var(--bd-barn-red); text-decoration: underline; }

/* Contact block inside prose (address/email) */
.policy-contact-block {
  background: var(--bd-cream);
  border: 1px solid var(--bd-tan-lt);
  border-left: 4px solid var(--bd-barn-red);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 8px;
  line-height: 2;
  font-size: 0.95rem;
}
.policy-contact-block a { color: var(--bd-barn-red); }

/* Bottom CTA */
.policy-cta {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--bd-tan-lt);
  text-align: center;
}
.policy-cta p {
  font-size: 1.1rem;
  color: var(--bd-steel);
  margin-bottom: 20px;
}
.policy-note {
  background: var(--bd-cream);
  border: 1px solid var(--bd-tan-lt);
  border-left: 4px solid var(--bd-gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--bd-steel);
  margin: 40px 0;
}
.policy-note strong { color: var(--bd-charcoal); }

/* ── Warranty page ──────────────────────────────────────── */
.warranty-hero-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bd-cream);
  border: 1px solid var(--bd-tan-lt);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 48px;
  border-left: 5px solid var(--bd-barn-red);
}
.warranty-hero-icon { font-size: 3rem; flex-shrink: 0; line-height: 1; }
.warranty-hero-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.warranty-hero-card p  { color: var(--bd-steel); line-height: 1.75; margin: 0; }

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 600px) { .coverage-grid { grid-template-columns: 1fr; } }

.coverage-card {
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--bd-tan-lt);
}
.coverage-card--yes { background: #f0faf0; border-top: 3px solid #2e7d32; }
.coverage-card--no  { background: #fdf5f5; border-top: 3px solid var(--bd-barn-red); }
.coverage-card__icon { font-size: 1.4rem; margin-bottom: 8px; }
.coverage-card h3 { font-size: 1rem; margin-bottom: 8px; }
.coverage-card p  { font-size: 0.9rem; color: var(--bd-steel); margin: 0; line-height: 1.65; }

/* Steps list */
.steps-list { margin-bottom: 40px; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--bd-barn-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step__body p  { font-size: 0.95rem; color: var(--bd-steel); line-height: 1.7; margin: 0; }
.step__body a  { color: var(--bd-barn-red); }

/* ── Contact page ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Form fields inherit from checkout form-group rules */
.bd-contact-form .required { color: var(--bd-barn-red); }

.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }

.contact-info-card {
  background: var(--bd-cream);
  border: 1px solid var(--bd-tan-lt);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-info-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bd-charcoal);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bd-barn-red);
}

.contact-info-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.contact-info-icon { font-size: 1.2rem; flex-shrink: 0; }
.contact-info-list strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bd-steel); margin-bottom: 2px; }
.contact-info-list a { color: var(--bd-barn-red); }

.contact-quick-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.contact-quick-links a { font-size: 0.92rem; color: var(--bd-barn-red); font-weight: 600; }
.contact-quick-links a:hover { text-decoration: underline; }

/* ── FAQ page ───────────────────────────────────────────── */
.faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
  padding: 20px;
  background: var(--bd-cream);
  border-radius: var(--radius);
  border: 1px solid var(--bd-tan-lt);
}
.faq-jump a {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bd-barn-red);
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--bd-tan-lt);
  border-radius: 20px;
  transition: all var(--transition);
}
.faq-jump a:hover {
  background: var(--bd-barn-red);
  color: #fff;
  border-color: var(--bd-barn-red);
}

.faq-section { margin-bottom: 48px; }

.faq-list { border: 1px solid var(--bd-tan-lt); border-radius: var(--radius); overflow: hidden; }

.faq-item { border-bottom: 1px solid var(--bd-tan-lt); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bd-charcoal);
  transition: background var(--transition), color var(--transition);
}
.faq-question:hover { background: var(--bd-cream); }
.faq-question[aria-expanded="true"] { color: var(--bd-barn-red); background: var(--bd-cream); }

.faq-chevron { flex-shrink: 0; color: var(--bd-steel); transition: transform 0.25s ease; }
.faq-question[aria-expanded="true"] .faq-chevron { color: var(--bd-barn-red); }

.faq-answer {
  padding: 0 24px 20px 24px;
  background: var(--bd-cream);
  animation: tabFadeIn 0.2s ease;
}
.faq-answer[hidden] { display: none; }
.faq-answer p { font-size: 0.95rem; color: var(--bd-steel); line-height: 1.75; margin: 0; }

/* ── Shipping & Returns page ────────────────────────────── */
.policy-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .policy-highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .policy-highlights { grid-template-columns: 1fr; } }

.policy-highlight-card {
  background: #fff;
  border: 1px solid var(--bd-tan-lt);
  border-top: 3px solid var(--bd-barn-red);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  font-size: 0.85rem;
}
.policy-highlight-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.policy-highlight-card strong { display: block; font-size: 0.9rem; color: var(--bd-charcoal); margin-bottom: 4px; }
.policy-highlight-card span { color: var(--bd-steel); line-height: 1.5; }

.returns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 32px;
}
@media (max-width: 600px) { .returns-grid { grid-template-columns: 1fr; } }

.returns-card {
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--bd-tan-lt);
}
.returns-card--accepted { background: #f0faf0; border-top: 3px solid #2e7d32; }
.returns-card--declined { background: #fdf5f5; border-top: 3px solid var(--bd-barn-red); }
.returns-card h4 { font-size: 0.95rem; margin-bottom: 14px; color: var(--bd-charcoal); }
.returns-card ul { margin-left: 16px; }
.returns-card ul li { font-size: 0.88rem; color: var(--bd-steel); margin-bottom: 8px; line-height: 1.6; }

/* ── Related products on single product ────────────────── */
.bd-related {
  margin-bottom: 72px;
  padding-top: 16px;
  border-top: 1px solid var(--bd-tan-lt);
}

/* ============================================================
   WOOCOMMERCE REVIEWS
   ============================================================ */

/* Container */
#reviews { padding: 4px 0; }
.woocommerce-Reviews-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--bd-charcoal);
}

/* Review list */
.woocommerce-Reviews .commentlist,
#reviews .commentlist {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.commentlist li.review {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--bd-tan-lt);
}
.commentlist li.review:last-child { border-bottom: none; }

/* Avatar */
.commentlist li.review img.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bd-tan-lt);
}

/* Comment body */
.commentlist li.review .comment-text { flex: 1; min-width: 0; }

/* Star rating */
.star-rating {
  display: inline-block;
  overflow: hidden;
  position: relative;
  height: 1.2em;
  line-height: 1.2;
  font-size: 1rem;
  width: 6em;
  font-family: 'Times New Roman', serif;
  margin-bottom: -4px;
}
.star-rating::before {
  content: '\2605\2605\2605\2605\2605';
  color: var(--bd-tan-lt);
  float: left;
  top: 0; left: 0;
  position: absolute;
  letter-spacing: 2px;
}
.star-rating span {
  overflow: hidden;
  float: left;
  top: 0; left: 0;
  position: absolute;
  padding-top: 1.5em;
}
.star-rating span::before {
  content: '\2605\2605\2605\2605\2605';
  top: 0;
  position: absolute;
  color: var(--bd-gold);
  letter-spacing: 2px;
}

/* Reviewer name & date */
.woocommerce-review__author { font-weight: 700; font-size: 0.95rem; color: var(--bd-charcoal); }
.woocommerce-review__dash   { color: var(--bd-tan); margin: 0 4px; }
.woocommerce-review__published-date { font-size: 0.82rem; color: var(--bd-steel); }

/* Verified owner badge */
.woocommerce-review__verified {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Review text */
.comment-text .description p {
  font-size: 0.95rem;
  color: var(--bd-charcoal);
  line-height: 1.7;
  margin: 10px 0 0;
}

/* No reviews yet */
.woocommerce-noreviews {
  color: var(--bd-steel);
  font-style: italic;
  padding: 8px 0;
}

/* ── Review form ──────────────────────────────────────────── */
#review_form_wrapper {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 2px solid var(--bd-barn-red);
}

#review_form .comment-reply-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--bd-charcoal);
  display: block;
}

/* Star picker in review form
   WC outputs: <a href="#" data-rated="1">1 of 5 stars</a> ... x5
   We hide the text and render a gold star via ::before */
#respond .comment-form-rating label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
  color: var(--bd-charcoal);
}
.stars {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 12px;
  line-height: 1;
}
.stars a {
  display: inline-block;
  width: 1.8rem;
  height: 1.8rem;
  line-height: 1.8rem;
  text-align: center;
  font-size: 0;          /* hide the "1 of 5 stars" text */
  color: transparent;
  text-decoration: none;
  position: relative;
  transition: transform 0.15s ease;
}
.stars a::before {
  content: '\2605'; /* ★ */
  font-size: 1.6rem;
  color: var(--bd-tan-lt);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: color 0.15s ease;
  font-family: 'Times New Roman', serif;
}
/* Highlight hovered star and all stars before it */
.stars a:hover::before,
.stars a:hover ~ a::before { color: var(--bd-tan-lt); }
.stars:hover a::before { color: var(--bd-gold); }
.stars:hover a:hover ~ a::before { color: var(--bd-tan-lt); }

/* Selected state (WC adds .active class) */
.stars.selected a.active::before { color: var(--bd-gold); }
.stars.selected a.active ~ a::before { color: var(--bd-tan-lt); }
.stars.selected a:not(.active)::before { color: var(--bd-gold); }
/* WC also removes later stars when one is selected */
.stars a.active ~ a::before { color: var(--bd-tan-lt) !important; }

/* Form fields */
#respond .comment-form-author,
#respond .comment-form-email,
#respond .comment-form-comment { margin-bottom: 16px; }

#respond label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bd-charcoal);
  margin-bottom: 6px;
}

#respond input[type="text"],
#respond input[type="email"],
#respond textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--bd-tan-lt);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--bd-charcoal);
  transition: border-color var(--transition);
  box-sizing: border-box;
}
#respond input:focus,
#respond textarea:focus { border-color: var(--bd-barn-red); outline: none; }
#respond textarea { min-height: 120px; resize: vertical; }

#respond .form-submit input[type="submit"] {
  padding: 13px 32px;
  background: var(--bd-barn-red);
  color: #fff;
  border: 2px solid var(--bd-barn-red);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
}
#respond .form-submit input[type="submit"]:hover {
  background: var(--bd-barn-red-dk);
  border-color: var(--bd-barn-red-dk);
  transform: translateY(-2px);
}

/* "Starting at: $X" price label */
.bd-starting-at {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--bd-barn-red);
}
.bd-starting-at .woocommerce-Price-amount { display: inline !important; }
/* ============================================================
   ORDER RECEIVED / THANK YOU PAGE
   ============================================================ */

.thankyou-wrap {
  padding-bottom: var(--section-pad);
  background: var(--bd-warm-white);
}

.thankyou-container {
  max-width: 820px;
  padding-top: 40px;
}

/* ── Confirmation card (matches Our Mission hero palette) ── */
.thankyou-confirm-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bd-charcoal) 0%, var(--bd-charcoal-mid) 100%);
  border-radius: var(--radius);
  border-left: 4px solid var(--bd-barn-red);
  padding: 36px 32px;
  margin-bottom: 20px;
}

/* Radial glows — same as mission page hero */
.thankyou-confirm-card__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 60%, rgba(139,32,32,0.22) 0%, transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(200,146,42,0.12) 0%, transparent 50%);
}

.thankyou-confirm-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
}

.thankyou-checkmark {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}
.thankyou-checkmark svg { width: 56px; height: 56px; }

/* Animated SVG checkmark */
.thankyou-checkmark .circle {
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: ty-circle 0.6s ease forwards 0.2s;
}
.thankyou-checkmark .check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: ty-check 0.4s ease forwards 0.85s;
}
@keyframes ty-circle { to { stroke-dashoffset: 0; } }
@keyframes ty-check  { to { stroke-dashoffset: 0; } }

.thankyou-confirm-card__text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #fff;
  margin-bottom: 6px;
}
.thankyou-confirm-card__text p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* ── Email nudge ───────────────────────────────────────────── */
.thankyou-email-nudge {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bd-barn-red);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.thankyou-email-nudge__icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 4px;
}

.thankyou-email-nudge__body { flex: 1; min-width: 180px; }
.thankyou-email-nudge__body h2 { font-size: 1.1rem; color: #fff; margin-bottom: 4px; }
.thankyou-email-nudge__body p  { font-size: 0.88rem; color: rgba(255,255,255,0.85); margin: 0; line-height: 1.55; }

.thankyou-email-form { flex-shrink: 0; }
.thankyou-email-form__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.thankyou-email-form input[type="email"] {
  padding: 10px 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-width: 210px;
  transition: border-color var(--transition);
}
.thankyou-email-form input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
.thankyou-email-form input[type="email"]:focus { border-color: rgba(255,255,255,0.9); outline: none; background: rgba(255,255,255,0.2); }

.thankyou-email-form .btn-primary {
  background: #fff; color: var(--bd-barn-red); border-color: #fff;
  white-space: nowrap; font-size: 0.88rem; padding: 10px 20px;
}
.thankyou-email-form .btn-primary:hover { background: var(--bd-cream); border-color: var(--bd-cream); }
.thankyou-email-form__note { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin: 6px 0 0; }

/* ── Order summary bar ─────────────────────────────────────── */
.thankyou-order-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bd-tan-lt);
  border: 1px solid var(--bd-tan-lt);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
@media (max-width: 600px) { .thankyou-order-bar { grid-template-columns: repeat(2, 1fr); } }

.thankyou-order-bar__item { background: #fff; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.thankyou-order-bar__item .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bd-steel); font-weight: 600; }
.thankyou-order-bar__item strong { font-size: 0.95rem; color: var(--bd-charcoal); }

/* ── Sections ──────────────────────────────────────────────── */
.thankyou-section {
  background: #fff;
  border: 1px solid var(--bd-tan-lt);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.thankyou-section__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--bd-charcoal);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bd-barn-red);
}

/* ── Order items ───────────────────────────────────────────── */
.thankyou-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--bd-tan-lt); }
.thankyou-item:last-of-type { border-bottom: none; }

.thankyou-item__img { width: 60px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--bd-cream); display: flex; align-items: center; justify-content: center; border: 1px solid var(--bd-tan-lt); }
.thankyou-item__img img { width: 100%; height: 100%; object-fit: cover; }
.thankyou-item__info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.thankyou-item__info strong { font-size: 0.95rem; color: var(--bd-charcoal); }
.thankyou-item__meta { font-size: 0.8rem; color: var(--bd-steel); }
.thankyou-item__qty { color: var(--bd-steel); font-size: 0.9rem; white-space: nowrap; }
.thankyou-item__total { font-weight: 700; color: var(--bd-barn-red); white-space: nowrap; min-width: 70px; text-align: right; }

.thankyou-totals { border-top: 2px solid var(--bd-tan-lt); margin-top: 8px; padding-top: 12px; }
.thankyou-totals__row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--bd-steel); padding: 5px 0; }
.thankyou-totals__row--total { font-size: 1.05rem; font-weight: 700; color: var(--bd-charcoal); border-top: 1px solid var(--bd-tan-lt); margin-top: 6px; padding-top: 10px; }
.thankyou-totals__row--total span:last-child { color: var(--bd-barn-red); }

/* ── Shipping address ──────────────────────────────────────── */
.thankyou-address { display: flex; gap: 16px; align-items: flex-start; }
.thankyou-address__icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.thankyou-address address { font-style: normal; font-size: 0.95rem; color: var(--bd-charcoal); line-height: 1.7; }

/* ── Next steps ────────────────────────────────────────────── */
.thankyou-next-steps { display: flex; flex-direction: column; gap: 16px; }
.thankyou-step { display: flex; gap: 16px; align-items: flex-start; }
.thankyou-step__num { flex-shrink: 0; width: 32px; height: 32px; background: var(--bd-barn-red); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.thankyou-step__body { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.thankyou-step__body strong { font-size: 0.95rem; color: var(--bd-charcoal); }
.thankyou-step__body span   { font-size: 0.88rem; color: var(--bd-steel); line-height: 1.6; }

/* ── Bottom navigation ─────────────────────────────────────── */
.thankyou-bottom-nav {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-top: 40px; padding-top: 36px;
  border-top: 1px solid var(--bd-tan-lt);
}
.thankyou-bottom-nav__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 700; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; transition: all var(--transition); border: 2px solid transparent;
}
.thankyou-bottom-nav__btn--primary { background: var(--bd-barn-red); color: #fff; border-color: var(--bd-barn-red); }
.thankyou-bottom-nav__btn--primary:hover { background: var(--bd-barn-red-dk); border-color: var(--bd-barn-red-dk); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139,32,32,0.3); }
.thankyou-bottom-nav__btn--secondary { background: var(--bd-charcoal); color: #fff; border-color: var(--bd-charcoal); }
.thankyou-bottom-nav__btn--secondary:hover { background: var(--bd-charcoal-mid); border-color: var(--bd-charcoal-mid); color: #fff; transform: translateY(-2px); }

/* ── Star ratings (reviews) ────────────────────────────────── */
.star-rating {
  display: inline-block; overflow: hidden; position: relative;
  height: 1.2em; line-height: 1.2; font-size: 1rem; width: 6em;
  font-family: Arial, 'Helvetica Neue', sans-serif; margin-bottom: 8px;
}
.star-rating::before { content: '★★★★★'; color: var(--bd-tan-lt); float: left; top: 0; left: 0; position: absolute; letter-spacing: 2px; }
.star-rating span { overflow: hidden; float: left; top: 0; left: 0; position: absolute; padding-top: 1.5em; }
.star-rating span::before { content: '★★★★★'; top: 0; position: absolute; color: var(--bd-gold); letter-spacing: 2px; }

/* Review form stars */
#respond .comment-form-rating label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 8px; color: var(--bd-charcoal); }
.stars { display: inline-flex; gap: 4px; margin-bottom: 12px; line-height: 1; }
.stars a { display: inline-block; width: 1.8rem; height: 1.8rem; line-height: 1.8rem; text-align: center; font-size: 0; color: transparent; text-decoration: none; position: relative; transition: transform 0.15s ease; }
.stars a::before { content: '★'; font-size: 1.6rem; color: var(--bd-tan-lt); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: color 0.15s ease; font-family: Arial, 'Helvetica Neue', sans-serif; }
.stars:hover a::before { color: var(--bd-gold); }
.stars:hover a:hover ~ a::before { color: var(--bd-tan-lt); }
.stars.selected a.active::before { color: var(--bd-gold); }
.stars.selected a.active ~ a::before { color: var(--bd-tan-lt); }
.stars.selected a:not(.active)::before { color: var(--bd-gold); }
.stars a.active ~ a::before { color: var(--bd-tan-lt) !important; }

@media (max-width: 500px) {
  .thankyou-confirm-card__inner { flex-direction: column; gap: 14px; }
  .thankyou-email-nudge { flex-direction: column; }
  .thankyou-section { padding: 20px; }
}

/* ============================================================
   GIVING / MISSION SECTIONS
   ============================================================ */

/* Front page giving banner */
.giving-section {
  background: var(--bd-charcoal);
  position: relative;
  overflow: hidden;
}
.giving-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 60%, rgba(139,32,32,0.18) 0%, transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(200,146,42,0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Giving card grid */
.giving-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) { .giving-grid { grid-template-columns: 1fr; } }

.giving-grid--large { gap: 32px; }

/* Light cards (front page) */
.giving-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--bd-barn-red);
  border-radius: var(--radius);
  padding: 32px 28px;
}

/* Dark cards (mission page — same charcoal bg so more contrast needed) */
.giving-card--dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 3px solid var(--bd-gold);
  position: relative;
}

.giving-card__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -2px;
}

.giving-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.giving-card h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 14px;
}

.giving-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 0;
}

.giving-card__note {
  color: rgba(255,255,255,0.45) !important;
  font-size: 0.85rem !important;
  font-style: italic;
  margin-top: 14px !important;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px !important;
}

/* Closing quote on mission page */
.giving-closing-quote {
  text-align: center;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.giving-closing-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.8);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Footer note on front page giving section */
.giving-footer-note {
  text-align: center;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-style: italic;
  color: rgba(255,255,255,0.65);
  position: relative;
  z-index: 1;
}

/* ============================================================
   COMING SOON (static site additions)
   ============================================================ */
.is-soon { cursor: not-allowed; opacity: .75; }
.is-soon:hover { transform: none; }
.soon-pill { display:inline-block; padding:4px 12px; border-radius:999px; background:var(--bd-gold); color:#fff; font-size:.75rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.bd-toast { position:fixed; left:50%; bottom:28px; transform:translate(-50%,20px); background:var(--bd-charcoal); color:#fff; padding:14px 22px; border-radius:var(--radius); border-left:4px solid var(--bd-gold); box-shadow:0 10px 30px rgba(0,0,0,.35); z-index:10000; opacity:0; pointer-events:none; transition:opacity .25s, transform .25s; max-width:90vw; font-size:.95rem; }
.bd-toast.show { opacity:1; transform:translate(-50%,0); }

/* Hero text stand-in for the logo image: gold for contrast on the photo */
.hero-title span { color: var(--bd-gold); }
