/* ========================================
   Bonavita Skincare — Consolidated Styles
   ======================================== */

/* ========================================
   CSS Variables
   ======================================== */
:root {
  /* Primary palette */
  --color-slate: #4a5258;
  --color-teal: #354b50;
  --color-taupe: #8b7363;
  --color-terracotta: #b5715a;

  /* Derived colors */
  --color-bg: #ffffff;
  --color-bg-alt: #ebe8e3;
  --color-text: #4a5258;
  --color-text-muted: #6b6a68;
  --color-accent: #b5715a;
  --color-accent-secondary: #8b7363;
  --color-border: #d5d0c8;
  --color-white: #ffffff;
  --color-placeholder: #b8b4ad;
  --color-success: #4a7c59;
  --color-error: #c44536;
  --color-gold: #a08c5b;

  /* Fonts */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --section-padding: 80px 24px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Body variant for centered pages (order-success) */
body.page-centered {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
}

h1 { font-size: 4rem; }
h2 { font-size: 3rem; margin-bottom: 24px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
h4 { font-size: 1.25rem; }

/* ========================================
   Utility Classes
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.placeholder-img {
  background-color: var(--color-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.btn-primary {
  background-color: var(--color-text);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-accent);
}

.btn-primary:disabled {
  background-color: var(--color-border);
  cursor: not-allowed;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

.btn-secondary:hover {
  background-color: var(--color-text);
  color: var(--color-white);
}

/* ========================================
   Header / Navigation
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

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

.nav-centered {
  justify-content: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-logo img {
  height: 24px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-cart {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ========================================
   Page Hero (blog, why-tallow)
   ======================================== */
.page-hero {
  background-color: var(--color-slate);
  color: var(--color-white);
  padding: 80px 24px;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 16px;
  font-size: 3.5rem;
}

.page-hero p {
  font-size: 1.25rem;
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto;
}

/* ========================================
   CTA Section (shared)
   ======================================== */
.cta-section {
  padding: 80px 24px;
  background: var(--color-slate);
  color: var(--color-white);
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-section p {
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background-color: var(--color-terracotta);
}

.cta-section .btn-primary:hover {
  background-color: var(--color-taupe);
}

.cta-section .btn-secondary {
  background-color: var(--color-white);
  color: var(--color-slate);
  border: none;
}

.cta-section .btn-secondary:hover {
  background-color: var(--color-terracotta);
  color: var(--color-white);
}

/* ========================================
   Footer (simple — used on most pages)
   ======================================== */
.footer {
  padding: 48px 24px;
  background-color: var(--color-slate);
  color: var(--color-white);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
  font-size: 0.8125rem;
  opacity: 0.5;
}

/* Footer minimal variant (order-success) */
.footer-minimal {
  background-color: transparent;
  color: var(--color-text-muted);
  padding: 24px;
  border-top: none;
}

.footer-minimal p {
  opacity: 1;
}

/* ========================================
   Footer (full grid — index.html)
   ======================================== */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto 48px;
}

/* When footer has grid content, use expanded padding */
.footer:has(.footer-grid) {
  padding: 64px 24px 32px;
  text-align: left;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  opacity: 0.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  opacity: 0.5;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  opacity: 0.5;
}

/* ========================================
   Homepage — Value Proposition Banner
   ======================================== */
.value-banner {
  background-color: var(--color-slate);
  color: var(--color-white);
  padding: 12px 24px;
  text-align: center;
}

.value-banner p {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ========================================
   Homepage — Waitlist Modal
   ======================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-card {
  background: var(--color-white);
  padding: 48px;
  border-radius: 16px;
  max-width: 440px;
  width: 90%;
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-card h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.modal-card > p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#waitlist-form input {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
}

#waitlist-form input:focus {
  outline: none;
  border-color: var(--color-text);
}

#waitlist-form .btn {
  margin-top: 8px;
}

/* ========================================
   Homepage — Hero Section
   ======================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  background-color: var(--color-bg-alt);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-terracotta);
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero-subtext {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

.hero-image {
  min-height: 500px;
}

/* ========================================
   Homepage — Why Frustrated Section
   ======================================== */
.why-frustrated {
  padding: var(--section-padding);
  background-color: var(--color-white);
}

.why-frustrated .container {
  max-width: 800px;
}

.why-frustrated h2 {
  text-align: center;
  margin-bottom: 32px;
}

.why-frustrated-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text);
}

.why-frustrated-content p {
  margin-bottom: 24px;
}

/* ========================================
   Homepage — Radically Simple Section
   ======================================== */
.radically-simple {
  padding: var(--section-padding);
  background-color: #333;
  color: var(--color-white);
}

.radically-simple .container {
  max-width: 800px;
}

.radically-simple h2 {
  text-align: center;
  margin-bottom: 32px;
  color: var(--color-white);
}

.radically-simple-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-white);
}

.radically-simple-content p {
  margin-bottom: 24px;
}

/* ========================================
   Homepage — Shop by Concern Section
   ======================================== */
.shop-concern {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.concern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.concern-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 16px;
}

.concern-card:hover {
  transform: translateY(-4px);
}

.concern-card .placeholder-img {
  height: 320px;
}

.concern-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px;
  background: linear-gradient(to top, rgba(61, 58, 54, 0.85), transparent);
  color: var(--color-white);
}

.concern-card h3 {
  margin-bottom: 8px;
}

.concern-card p {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ========================================
   Homepage — Products Section
   ======================================== */
.products {
  padding: var(--section-padding);
  background-color: var(--color-bg-alt);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.product-card {
  background-color: var(--color-white);
  transition: box-shadow 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.product-card .placeholder-img {
  height: 360px;
}

.product-card-content {
  padding: 24px;
}

.product-card h3 {
  margin-bottom: 8px;
}

.product-card .product-tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.product-card .product-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.product-card .btn {
  width: 100%;
}

/* ========================================
   Homepage — Testimonials Carousel
   ======================================== */
.testimonials {
  padding: 80px 24px;
  background-color: var(--color-white);
  overflow: hidden;
}

.carousel {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 0 24px;
}

.carousel-image {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.carousel-quote {
  flex: 1;
}

.carousel-quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 20px;
}

.carousel-quote cite {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.carousel-quote cite strong {
  display: block;
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 2px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background-color: var(--color-text);
  color: var(--color-white);
  border-color: var(--color-text);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  padding: 0;
}

.carousel-dot.active {
  background-color: var(--color-text);
}

/* ========================================
   Homepage — Benefits Cards Section
   ======================================== */
.benefits-cards {
  padding: 80px 24px;
  background-color: var(--color-slate);
}

.benefits-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.benefit-card-item {
  background-color: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
}

.benefit-card-header-img {
  height: 200px;
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.benefit-card-body {
  padding: 32px 28px;
}

.benefit-card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

.benefit-card-body p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.benefit-card-body p + p {
  margin-top: 16px;
}

.benefit-card-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.benefit-card-link:hover {
  color: var(--color-taupe);
}

/* ========================================
   Homepage — Who It's For Section
   ======================================== */
.who-section {
  padding: var(--section-padding);
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}

.who-card {
  padding: 48px;
  background-color: var(--color-bg-alt);
  border-radius: 16px;
}

.who-card h3 {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.who-card.for-you h3::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #6b8f71;
  color: white;
  border-radius: 50%;
  font-size: 0.875rem;
}

.who-card.not-for h3::before {
  content: "\2715";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--color-taupe);
  color: white;
  border-radius: 50%;
  font-size: 0.875rem;
}

.who-card ul {
  list-style: none;
}

.who-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.who-card li:last-child {
  border-bottom: none;
}

/* ========================================
   Homepage — Why Tallow Section
   ======================================== */
.why-tallow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.why-tallow-image {
  min-height: 400px;
}

.why-tallow-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  background-color: var(--color-slate);
  color: var(--color-white);
}

.why-tallow-content h2 {
  margin-bottom: 24px;
  color: var(--color-white);
}

.why-tallow-content p {
  margin-bottom: 32px;
  opacity: 0.85;
  max-width: 440px;
}

.why-tallow-content .btn-secondary {
  color: var(--color-white);
  border-color: var(--color-white);
  width: fit-content;
}

.why-tallow-content .btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-text);
}

/* ========================================
   Homepage — Trust Section
   ======================================== */
.trust {
  padding: var(--section-padding);
  background-color: var(--color-bg-alt);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.trust-item {
  padding: 24px;
}

.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background-color: var(--color-placeholder);
  border-radius: 50%;
}

.trust-item h4 {
  margin-bottom: 8px;
}

.trust-item p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ========================================
   Why Tallow Page — Content Sections
   ======================================== */
.content-section {
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.content-section p {
  margin-bottom: 20px;
  color: var(--color-text-muted);
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section.alt {
  background-color: var(--color-bg-alt);
  max-width: 100%;
}

.content-section.alt .inner {
  max-width: 800px;
  margin: 0 auto;
}

/* ========================================
   Why Tallow Page — Fatty Acid Comparison
   ======================================== */
.comparison-section {
  padding: 80px 24px;
  background-color: var(--color-bg-alt);
}

.comparison-section .inner {
  max-width: 900px;
  margin: 0 auto;
}

.comparison-section h2 {
  text-align: center;
  margin-bottom: 48px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.comparison-card {
  background: var(--color-white);
  padding: 32px;
  border-radius: 4px;
}

.comparison-card h3 {
  color: var(--color-teal);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.fatty-acid {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.fatty-acid:last-child {
  border-bottom: none;
}

.fatty-acid-name {
  font-weight: 500;
}

.fatty-acid-percent {
  color: var(--color-terracotta);
  font-weight: 500;
}

/* ========================================
   Why Tallow Page — Benefits Grid
   ======================================== */
.benefits-section {
  padding: 80px 24px;
}

.benefits-section h2 {
  text-align: center;
  margin-bottom: 48px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.benefit-card {
  padding: 32px;
  background: var(--color-bg-alt);
  text-align: center;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--color-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.benefit-card h3 {
  font-size: 1.25rem;
}

.benefit-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* ========================================
   Why Tallow Page — Quote Section
   ======================================== */
.quote-section {
  padding: 80px 24px;
  background: var(--color-teal);
  color: var(--color-white);
  text-align: center;
}

.quote-section blockquote {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 24px;
  line-height: 1.4;
}

.quote-section cite {
  font-size: 0.875rem;
  opacity: 0.7;
  font-style: normal;
}

/* ========================================
   Why Tallow Page — History Section
   ======================================== */
.history-section {
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}

/* ========================================
   Blog Listing Page
   ======================================== */
.blog-section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background-color: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.blog-card-image {
  height: 220px;
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.blog-card-content {
  padding: 28px 24px;
}

.blog-card-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-terracotta);
  margin-bottom: 12px;
}

.blog-card-content h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card-meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.blog-card-excerpt {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-card-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.blog-card-link:hover {
  color: var(--color-taupe);
}

/* ========================================
   Blog Article Page — Hero
   ======================================== */
.article-hero {
  background-color: var(--color-slate);
  color: var(--color-white);
  padding: 80px 24px;
  text-align: center;
}

.article-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.article-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-terracotta);
  margin-bottom: 20px;
}

.article-hero h1 {
  color: var(--color-white);
  margin-bottom: 24px;
  font-size: 3rem;
}

.article-meta {
  font-size: 0.875rem;
  opacity: 0.7;
  display: flex;
  justify-content: center;
  gap: 24px;
}

/* ========================================
   Blog Article Page — Featured Image
   ======================================== */
.article-featured-image {
  max-width: 900px;
  margin: -40px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.article-featured-image .placeholder-img {
  height: 420px;
  background-color: var(--color-bg-alt);
  border-radius: 16px;
}

/* ========================================
   Blog Article Page — Body
   ======================================== */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.article-body p {
  margin-bottom: 24px;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.article-body h2 {
  font-size: 2.25rem;
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--color-text);
}

.article-body h3 {
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--color-text);
}

.article-body strong {
  color: var(--color-text);
}

.article-body blockquote {
  margin: 40px 0;
  padding: 32px 40px;
  background-color: var(--color-bg-alt);
  border-left: 4px solid var(--color-terracotta);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text);
}

.article-body ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 12px;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ========================================
   Blog Article Page — Back Link
   ======================================== */
.back-to-blog {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--color-taupe);
}

/* ========================================
   Blog Article Page — Related Posts
   ======================================== */
.related-posts {
  padding: 80px 24px;
  background-color: var(--color-bg-alt);
}

.related-posts-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 48px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.related-card {
  background-color: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.related-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.related-card-image {
  height: 180px;
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.related-card-content {
  padding: 24px;
}

.related-card-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-terracotta);
  margin-bottom: 8px;
}

.related-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.related-card-content p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ========================================
   Product Pages — Breadcrumb
   ======================================== */
.breadcrumb {
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb span {
  margin: 0 8px;
}

/* ========================================
   Product Pages — Hero / Gallery / Info
   ======================================== */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.product-gallery {
  position: sticky;
  top: 100px;
  align-self: start;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--color-bg-alt);
  border-radius: 16px;
  overflow: hidden;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding-top: 20px;
}

.product-badge {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--color-bg-alt);
  color: var(--color-teal);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  margin-bottom: 16px;
}

.product-badge-premium {
  background: linear-gradient(135deg, var(--color-gold), var(--color-taupe));
  color: var(--color-white);
}

.product-badge-outdoor {
  background-color: #2d4a3e;
  color: var(--color-white);
}

.product-title {
  font-size: 3rem;
  margin-bottom: 8px;
}

.product-tagline {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.product-description {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

/* ========================================
   Product Pages — Features List
   ======================================== */
.product-features {
  list-style: none;
  margin-bottom: 32px;
  padding: 24px;
  background-color: var(--color-bg-alt);
  border-radius: 12px;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.product-features li:last-child {
  border-bottom: none;
}

.feature-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.9375rem;
}

.feature-text strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 2px;
}

.feature-text span {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ========================================
   Product Pages — Add to Cart / Quantity
   ======================================== */
.add-to-cart-section {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.quantity-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--color-text);
  transition: background 0.2s;
}

.quantity-btn:hover {
  background-color: var(--color-bg-alt);
}

.quantity-input {
  width: 50px;
  height: 44px;
  border: none;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
}

.add-to-cart-section .btn-primary {
  flex: 1;
}

/* ========================================
   Product Pages — Trust Badges
   ======================================== */
.trust-badges {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.trust-badge-icon {
  font-size: 1.125rem;
}

/* ========================================
   Product Pages — Details Section
   ======================================== */
.product-details {
  padding: 80px 24px;
  background-color: var(--color-bg-alt);
}

.details-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.detail-card {
  padding: 32px;
  background: var(--color-white);
  border-radius: 12px;
}

.detail-card h3 {
  margin-bottom: 16px;
  color: var(--color-teal);
}

.detail-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.detail-card ul {
  list-style: none;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.detail-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.detail-card li:last-child {
  border-bottom: none;
}

/* ========================================
   Product Pages — Ingredients Section
   ======================================== */
.ingredients-section {
  padding: 80px 24px;
}

.ingredients-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.ingredients-section h2 {
  margin-bottom: 16px;
}

.ingredients-section .subtitle {
  color: var(--color-text-muted);
  margin-bottom: 48px;
}

.ingredients-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}

.ingredient-item {
  padding: 24px;
  background: var(--color-bg-alt);
  border-radius: 12px;
}

.ingredient-item h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.ingredient-item p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ========================================
   Cart Page
   ======================================== */
.cart-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px 120px;
}

.cart-page h1 {
  font-size: 3rem;
  margin-bottom: 40px;
}

.cart-empty {
  text-align: center;
  padding: 80px 24px;
}

.cart-empty p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.cart-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
}

/* Cart Items */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  padding: 24px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  align-items: center;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-white);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.cart-item-details .price {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.cart-item-total {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
}

/* Cart quantity selector overrides */
.cart-item .quantity-selector {
  border-radius: 6px;
  background: var(--color-white);
}

.cart-item .quantity-btn {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.quantity-display {
  width: 40px;
  text-align: center;
  font-size: 0.9375rem;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.remove-btn:hover {
  color: var(--color-error);
}

/* Cart Summary */
.cart-summary {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 32px;
  background: var(--color-bg-alt);
  border-radius: 16px;
}

.cart-summary h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row.total {
  font-weight: 500;
  font-size: 1.125rem;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid var(--color-slate);
}

.summary-row .label {
  color: var(--color-text-muted);
}

.shipping-note {
  font-size: 0.8125rem;
  color: var(--color-success);
  margin-top: 8px;
}

.cart-summary .btn {
  width: 100%;
  padding: 16px 32px;
  font-size: 0.9375rem;
  margin-top: 24px;
}

.cart-summary .btn-secondary {
  margin-top: 12px;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Cart Trust Badges */
.cart-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.cart-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
  background: #fef2f2;
  color: var(--color-error);
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 0.875rem;
}

/* ========================================
   Order Success Page
   ======================================== */
.success-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.success-content {
  max-width: 800px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 2.5rem;
  color: white;
}

.success-content h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--color-success);
}

.success-content p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.success-content .btn {
  margin-top: 24px;
}

.order-details {
  background: var(--color-bg-alt);
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.order-details h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.order-row:last-child {
  border-bottom: none;
}

.order-row .label {
  color: var(--color-text-muted);
}

/* ========================================
   Responsive — Tablet (1024px)
   ======================================== */
@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }

  /* Homepage */
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 60px 40px; text-align: center; align-items: center; }
  .hero-image { min-height: 400px; }
  .concern-grid,
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-tallow { grid-template-columns: 1fr; }
  .why-tallow-content { padding: 60px 40px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .benefits-cards-grid { grid-template-columns: repeat(2, 1fr); }

  /* Product pages */
  .product-hero { grid-template-columns: 1fr; gap: 40px; }
  .product-gallery { position: static; }
  .details-grid { grid-template-columns: 1fr; }

  /* Blog */
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   Responsive — Cart (900px)
   ======================================== */
@media (max-width: 900px) {
  .cart-container { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

/* ========================================
   Responsive — Tablet Small (768px)
   ======================================== */
@media (max-width: 768px) {
  /* Carousel */
  .carousel-slide { flex-direction: column; text-align: center; gap: 32px; }
  .carousel-image { flex: 0 0 140px; width: 140px; height: 140px; }
  .carousel-quote blockquote { font-size: 1.25rem; }

  /* Why Tallow page grids */
  .comparison-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ========================================
   Responsive — Mobile (640px)
   ======================================== */
@media (max-width: 640px) {
  :root { --section-padding: 60px 20px; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .nav-links { display: none; }

  /* Homepage */
  .hero-content { padding: 48px 24px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .concern-grid,
  .product-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; gap: 24px; }
  .who-card { padding: 32px 24px; }
  .why-tallow-content { padding: 48px 24px; }
  .trust-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .benefits-cards-grid { grid-template-columns: 1fr; }

  /* Page hero */
  .page-hero { padding: 60px 24px; }
  .page-hero h1 { font-size: 2.25rem; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }

  /* Blog article */
  .article-hero { padding: 60px 24px; }
  .article-hero h1 { font-size: 2rem; }
  .article-meta { flex-direction: column; gap: 8px; }
  .article-body blockquote { padding: 24px; font-size: 1.125rem; }
  .related-grid { grid-template-columns: 1fr; }
  .article-featured-image .placeholder-img { height: 240px; }

  /* Product pages */
  .product-title { font-size: 2.25rem; }
  .add-to-cart-section { flex-direction: column; }
  .trust-badges { flex-direction: column; gap: 12px; }
  .ingredients-list { grid-template-columns: 1fr; }

  /* Cart */
  .cart-item { grid-template-columns: 80px 1fr; gap: 16px; }
  .cart-item-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
