/*
Theme Name: La Cucina
Theme URI: https://tastytykes.com
Author: La Cucina
Author URI: https://tastytykes.com
Description: A warm, premium recipe blog theme with WooCommerce support for selling cookbooks and affiliate products. Built for food bloggers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lacucina
Tags: food, recipe, blog, woocommerce, e-commerce, custom-colors, custom-logo, featured-images, full-width-template, translation-ready
*/

/* ─── CSS VARIABLES ─── */
:root {
  --cream: #FAF7F2;
  --warm-white: #FDF9F4;
  --parchment: #F0E8D8;
  --terracotta: #C4622D;
  --terracotta-light: #D4783F;
  --terracotta-dark: #9E4A1E;
  --sage: #7A8C6E;
  --sage-light: #9AAD8A;
  --charcoal: #2C2416;
  --bark: #5C4A2A;
  --sand: #BFA882;
  --ink: #1A1510;
  --gold: #C9A84C;
  --gold-light: #E2C06E;
  --muted: #8A7A68;
  --border: #E8DFD0;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(44,36,22,0.08);
  --shadow-lg: 0 20px 50px rgba(44,36,22,0.14);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ─── 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: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terracotta-dark); }
ul, ol { padding-left: 1.5rem; }

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

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--bark); }

/* ─── UTILITY CLASSES ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.section-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--terracotta);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300; margin-bottom: 0.8rem;
}
.section-title em { font-style: italic; color: var(--terracotta); }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 500px; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.8rem 1.8rem; border-radius: 50px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.03em; cursor: pointer; transition: all 0.2s;
  border: none; text-decoration: none;
}
.btn-primary {
  background: var(--terracotta); color: #fff;
  box-shadow: 0 4px 20px rgba(196,98,45,0.3);
}
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  border: 1.5px solid var(--border); color: var(--bark); background: transparent;
}
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn-gold {
  background: var(--gold); color: var(--charcoal); font-weight: 600;
}
.btn-gold:hover { background: var(--gold-light); color: var(--charcoal); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease both; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ─── NAVIGATION ─── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: 1400px; margin: 0 auto; padding: 0 5%;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--charcoal); text-decoration: none;
}
.site-logo span { color: var(--terracotta); }
.site-logo img { height: 45px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 0.5rem; }
.main-nav ul { display: flex; list-style: none; gap: 0.2rem; padding: 0; margin: 0; }
.main-nav ul li a {
  display: block; padding: 0.5rem 0.9rem;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--bark);
  border-radius: 8px; transition: all 0.2s;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a { color: var(--terracotta); background: var(--parchment); }

/* Dropdown */
.main-nav ul li { position: relative; }
.main-nav ul li ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 200px;
  box-shadow: var(--shadow-lg); padding: 0.5rem; flex-direction: column; gap: 0;
}
.main-nav ul li:hover > ul { display: flex; }
.main-nav ul li ul li a { font-size: 0.82rem; text-transform: none; letter-spacing: 0; }

.header-actions { display: flex; align-items: center; gap: 0.8rem; }
.header-search-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.9rem; transition: all 0.2s;
  color: var(--bark);
}
.header-search-btn:hover { background: var(--parchment); border-color: var(--terracotta); }
.cart-icon {
  position: relative; display: flex; align-items: center;
  justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--border);
  color: var(--bark); font-size: 0.9rem; transition: all 0.2s;
}
.cart-icon:hover { background: var(--parchment); border-color: var(--terracotta); color: var(--terracotta); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--terracotta); color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: 0.3s; }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--warm-white); padding: 5rem 5% 2rem;
  flex-direction: column; gap: 0.5rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close {
  position: absolute; top: 1.2rem; right: 5%;
  background: none; border: none; font-size: 1.4rem;
  cursor: pointer; color: var(--charcoal);
}
.mobile-nav ul { list-style: none; padding: 0; }
.mobile-nav ul li a {
  display: block; padding: 0.9rem 0;
  font-family: var(--font-heading); font-size: 1.8rem; font-weight: 300;
  color: var(--charcoal); border-bottom: 1px solid var(--border);
}
.mobile-nav ul li a:hover { color: var(--terracotta); }

/* Search overlay */
.search-overlay {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: rgba(26,21,16,0.7); backdrop-filter: blur(6px);
  align-items: flex-start; justify-content: center; padding: 8rem 5%;
}
.search-overlay.open { display: flex; }
.search-box {
  background: var(--warm-white); border-radius: var(--radius-lg);
  padding: 2rem; width: 100%; max-width: 600px;
  box-shadow: var(--shadow-lg);
}
.search-box form { display: flex; gap: 0.8rem; }
.search-box input {
  flex: 1; padding: 0.85rem 1.2rem; border-radius: 50px;
  border: 1.5px solid var(--border); background: var(--cream);
  font-family: var(--font-body); font-size: 1rem; outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--terracotta); }
.search-close {
  position: absolute; top: 6rem; right: 5%;
  background: var(--warm-white); border: none; border-radius: 50%;
  width: 42px; height: 42px; font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ─── HERO ─── */
.hero {
  min-height: 90vh;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(196,98,45,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 5% 5rem 8%;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--parchment); border: 1px solid var(--sand);
  border-radius: 50px; padding: 0.35rem 1rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--terracotta);
  margin-bottom: 1.8rem; width: fit-content;
}
.hero h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 300; line-height: 1.1; margin-bottom: 1.2rem;
}
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero-sub {
  font-size: 1.05rem; color: var(--muted); max-width: 420px;
  line-height: 1.7; margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2rem; }
.hero-stat { border-left: 2px solid var(--terracotta); padding-left: 1rem; }
.hero-stat-num {
  font-family: var(--font-heading); font-size: 1.8rem;
  font-weight: 600; color: var(--charcoal); line-height: 1;
}
.hero-stat-label { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }
.hero-image {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 5rem 8% 5rem 5%;
}
.hero-image-wrap { position: relative; width: 100%; max-width: 480px; }
.hero-image-wrap img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(44,36,22,0.2);
}
.hero-badge {
  position: absolute; bottom: -16px; left: -16px;
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.2rem;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 0.8rem;
}
.hero-badge-icon { font-size: 1.8rem; }
.hero-badge-text { font-size: 0.78rem; font-weight: 500; color: var(--bark); line-height: 1.4; }
.hero-badge-text strong { display: block; color: var(--charcoal); font-size: 0.9rem; }

/* ─── CATEGORY BAR ─── */
.category-bar { background: var(--charcoal); padding: 0; }
.category-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0; max-width: 1400px; margin: 0 auto;
  overflow-x: auto; scrollbar-width: none;
}
.category-bar-inner::-webkit-scrollbar { display: none; }
.cat-link {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 1.2rem 2rem; color: var(--sand); font-size: 0.78rem;
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transition: all 0.2s;
  border-bottom: 2px solid transparent;
}
.cat-link:hover, .cat-link.active { color: var(--gold); border-bottom-color: var(--gold); }
.cat-link-icon { font-size: 1.3rem; }

/* ─── BLOG / RECIPE GRID ─── */
.posts-section { padding: 5rem 0; background: var(--warm-white); }
.posts-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem;
  max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 5%;
}
.view-all-link {
  font-size: 0.85rem; font-weight: 500; color: var(--terracotta);
  display: flex; align-items: center; gap: 0.4rem; transition: gap 0.2s;
}
.view-all-link:hover { gap: 0.7rem; }

.posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem; max-width: 1200px; margin: 0 auto; padding: 0 5%;
}
.post-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--cream); border: 1px solid var(--border);
  transition: all 0.3s; text-decoration: none; color: inherit;
  display: block;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card.featured { grid-column: span 2; }

.post-thumbnail {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  position: relative; background: var(--parchment);
  display: flex; align-items: center; justify-content: center;
}
.post-card.featured .post-thumbnail { aspect-ratio: 16/9; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-thumbnail img { transform: scale(1.04); }
.post-thumbnail-placeholder {
  font-size: 4rem; opacity: 0.4;
}
.post-cat-pill {
  position: absolute; top: 12px; left: 12px;
  background: rgba(250,247,242,0.92); backdrop-filter: blur(8px);
  border-radius: 50px; padding: 0.28rem 0.75rem;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--terracotta);
}
.post-body { padding: 1.4rem; }
.post-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.75rem; color: var(--muted); margin-bottom: 0.5rem;
}
.post-meta span { display: flex; align-items: center; gap: 0.3rem; }
.post-title {
  font-family: var(--font-heading); font-size: 1.25rem;
  font-weight: 400; color: var(--charcoal); line-height: 1.3;
  margin-bottom: 0.5rem; transition: color 0.2s;
}
.post-card.featured .post-title { font-size: 1.7rem; }
.post-card:hover .post-title { color: var(--terracotta); }
.post-excerpt { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }

/* ─── SINGLE POST / RECIPE ─── */
.single-header { background: var(--warm-white); padding: 4rem 0 0; }
.single-hero { max-width: 800px; margin: 0 auto; padding: 0 5%; text-align: center; }
.single-cat { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terracotta); }
.single-title { font-size: clamp(2rem, 4vw, 3.5rem); margin: 0.8rem 0 1rem; }
.single-meta { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); margin-bottom: 2rem; }
.single-featured-img { max-width: 900px; margin: 0 auto; padding: 0 5% 0; }
.single-featured-img img { width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 520px; object-fit: cover; }

.single-content { max-width: 760px; margin: 0 auto; padding: 3rem 5% 5rem; }
.single-content h2, .single-content h3 { margin: 2rem 0 0.8rem; }
.single-content p { margin-bottom: 1.2rem; line-height: 1.8; }
.single-content ul, .single-content ol { margin-bottom: 1.2rem; }
.single-content li { margin-bottom: 0.4rem; line-height: 1.7; color: var(--bark); }
.single-content img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow); }
.single-content blockquote {
  border-left: 3px solid var(--terracotta);
  padding: 1rem 1.5rem; margin: 1.5rem 0;
  background: var(--parchment); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-heading); font-size: 1.2rem; font-style: italic;
}

/* ─── RECIPE CARD (custom fields) ─── */
.recipe-info-bar {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  background: var(--parchment); border-radius: var(--radius);
  padding: 1.2rem 1.5rem; margin-bottom: 2rem;
}
.recipe-info-item { text-align: center; }
.recipe-info-item .label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.recipe-info-item .value { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--charcoal); }

/* ─── SIDEBAR ─── */
.content-with-sidebar {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 3rem; max-width: 1200px; margin: 0 auto; padding: 4rem 5%;
}
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.widget {
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.widget-title {
  font-family: var(--font-heading); font-size: 1.2rem;
  margin-bottom: 1rem; padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--bark); }
.widget ul li a:hover { color: var(--terracotta); }

/* ─── CATEGORIES SECTION ─── */
.categories-section { padding: 4rem 0; background: var(--cream); }
.categories-section .container { text-align: center; }
.categories-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1rem; margin-top: 2.5rem;
}
.cat-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1rem; text-align: center;
  transition: all 0.25s; background: var(--warm-white);
  text-decoration: none; color: inherit; display: block;
}
.cat-card:hover {
  border-color: var(--terracotta); background: var(--parchment);
  transform: translateY(-2px); color: var(--terracotta);
}
.cat-card-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.cat-card-name { font-size: 0.8rem; font-weight: 500; color: var(--bark); }
.cat-card:hover .cat-card-name { color: var(--terracotta); }

/* ─── WOOCOMMERCE — COOKBOOKS / SHOP ─── */
.shop-section { padding: 5rem 0; background: var(--charcoal); }
.shop-section .section-tag { color: var(--gold); }
.shop-section .section-title { color: var(--cream); }
.shop-section .section-sub { color: var(--sand); }

/* WooCommerce base overrides */
.woocommerce ul.products { 
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem; list-style: none; padding: 0; margin: 2rem 0 0;
}
.woocommerce ul.products li.product {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s; margin: 0;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,168,76,0.4);
}
.woocommerce ul.products li.product img {
  width: 100%; height: 240px; object-fit: cover;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-heading); font-size: 1.15rem;
  color: var(--cream); padding: 1rem 1.2rem 0.4rem;
}
.woocommerce ul.products li.product .price {
  font-family: var(--font-heading); font-size: 1.4rem;
  color: var(--gold); padding: 0 1.2rem 0.8rem;
}
.woocommerce ul.products li.product .button {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--gold); color: var(--charcoal);
  padding: 0.55rem 1.3rem; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600; margin: 0 1.2rem 1.2rem;
  transition: all 0.2s; border: none; cursor: pointer;
}
.woocommerce ul.products li.product .button:hover { background: var(--gold-light); }
.woocommerce ul.products li.product .onsale {
  background: var(--terracotta); color: #fff;
  border-radius: 50px; padding: 0.2rem 0.7rem;
  font-size: 0.7rem; font-weight: 600;
}

/* Single product */
.woocommerce div.product { max-width: 1100px; margin: 0 auto; padding: 4rem 5%; }
.woocommerce div.product .woocommerce-product-gallery__image img { border-radius: var(--radius-lg); }
.woocommerce div.product .product_title { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.woocommerce div.product .price { font-family: var(--font-heading); font-size: 2rem; color: var(--terracotta); }
.woocommerce div.product .single_add_to_cart_button {
  background: var(--terracotta); color: #fff;
  padding: 0.85rem 2.5rem; border-radius: 50px;
  font-size: 0.95rem; font-weight: 500; border: none;
  cursor: pointer; transition: all 0.2s;
}
.woocommerce div.product .single_add_to_cart_button:hover { background: var(--terracotta-dark); }

/* Cart & Checkout */
.woocommerce table.shop_table { border-radius: var(--radius); overflow: hidden; border-collapse: collapse; width: 100%; }
.woocommerce table.shop_table th { background: var(--charcoal); color: var(--cream); padding: 0.9rem 1rem; }
.woocommerce table.shop_table td { padding: 1rem; border-bottom: 1px solid var(--border); }
.woocommerce .wc-proceed-to-checkout .checkout-button {
  background: var(--terracotta); color: #fff;
  padding: 1rem 2.5rem; border-radius: 50px;
  font-size: 1rem; font-weight: 500; display: inline-block;
}
.woocommerce .wc-proceed-to-checkout .checkout-button:hover { background: var(--terracotta-dark); color: #fff; }

/* ─── AFFILIATE PRODUCTS ─── */
.affiliate-section { padding: 5rem 0; background: var(--warm-white); }
.affiliate-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 2.5rem;
}
.affiliate-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--cream); transition: all 0.25s;
}
.affiliate-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.affiliate-card-img {
  width: 100%; aspect-ratio: 1;
  background: var(--parchment); position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; overflow: hidden;
}
.affiliate-card-img img { width: 100%; height: 100%; object-fit: cover; }
.affiliate-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--terracotta); color: #fff;
  border-radius: 50px; padding: 0.2rem 0.6rem;
  font-size: 0.65rem; font-weight: 600;
}
.affiliate-card-body { padding: 1rem; }
.affiliate-brand { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.affiliate-name { font-size: 0.9rem; font-weight: 500; color: var(--charcoal); margin-bottom: 0.5rem; line-height: 1.3; }
.affiliate-rating { font-size: 0.75rem; color: var(--gold); margin-bottom: 0.7rem; }
.affiliate-price-row { display: flex; align-items: center; justify-content: space-between; }
.affiliate-price { font-family: var(--font-heading); font-size: 1.3rem; color: var(--terracotta); font-weight: 600; }
.affiliate-btn {
  background: var(--parchment); color: var(--bark);
  border: 1px solid var(--border); border-radius: 50px;
  padding: 0.4rem 0.9rem; font-size: 0.75rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.affiliate-btn:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.affiliate-note { text-align: center; margin-top: 2rem; font-size: 0.78rem; color: var(--muted); }
.affiliate-note a { color: var(--terracotta); }

/* ─── NEWSLETTER ─── */
.newsletter-section {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  padding: 5rem 0; text-align: center; position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.newsletter-inner { position: relative; z-index: 1; max-width: 540px; margin: 0 auto; padding: 0 5%; }
.newsletter-section .section-title { color: #fff; }
.newsletter-section .section-tag { color: rgba(255,255,255,0.7); }
.newsletter-sub { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.newsletter-form { display: flex; gap: 0.8rem; max-width: 420px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 0.85rem 1.3rem; border-radius: 50px;
  border: none; outline: none; font-family: var(--font-body);
  font-size: 0.9rem; background: rgba(255,255,255,0.15);
  color: #fff; backdrop-filter: blur(10px);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form button {
  background: #fff; color: var(--terracotta);
  padding: 0.85rem 1.8rem; border-radius: 50px;
  border: none; font-weight: 600; cursor: pointer; transition: all 0.2s;
  white-space: nowrap; font-family: var(--font-body);
}
.newsletter-form button:hover { background: var(--cream); transform: scale(1.02); }
.newsletter-perks {
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.2rem; font-size: 0.78rem; color: rgba(255,255,255,0.7);
}
.newsletter-perks span::before { content: '✓ '; }

/* WordPress newsletter widget */
.newsletter-form-wp { display: flex; gap: 0.8rem; max-width: 420px; margin: 0 auto; }
.newsletter-form-wp input[type="email"] {
  flex: 1; padding: 0.85rem 1.3rem; border-radius: 50px;
  border: none; outline: none; font-family: var(--font-body);
  background: rgba(255,255,255,0.15); color: #fff;
}
.newsletter-form-wp input[type="submit"] {
  background: #fff; color: var(--terracotta);
  padding: 0.85rem 1.8rem; border-radius: 50px; border: none;
  font-weight: 600; cursor: pointer; font-family: var(--font-body);
}

/* ─── TESTIMONIALS ─── */
.testimonials-section { padding: 5rem 0; background: var(--cream); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.testimonial-card {
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem;
}
.testi-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 0.8rem; }
.testi-text {
  font-family: var(--font-heading); font-size: 1.05rem; font-style: italic;
  color: var(--charcoal); line-height: 1.6; margin-bottom: 1.2rem;
}
.testi-author { display: flex; align-items: center; gap: 0.8rem; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--parchment); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-name { font-size: 0.85rem; font-weight: 500; color: var(--charcoal); }
.testi-role { font-size: 0.72rem; color: var(--muted); }

/* ─── FOOTER ─── */
.site-footer { background: var(--ink); color: var(--sand); padding: 4rem 0 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .site-logo { color: var(--cream); margin-bottom: 1rem; display: block; font-size: 1.6rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: var(--sand); max-width: 250px; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.5rem; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: all 0.2s; text-decoration: none; color: var(--sand);
}
.social-link:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cream); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.85rem; color: var(--sand); }
.footer-col ul li a:hover { color: var(--terracotta-light); }

/* WordPress footer nav */
.footer-nav ul { list-style: none; padding: 0; }
.footer-nav ul li { margin-bottom: 0.6rem; }
.footer-nav ul li a { font-size: 0.85rem; color: var(--sand); }
.footer-nav ul li a:hover { color: var(--terracotta-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.8rem 5%; margin-top: 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.3);
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--terracotta-light); }

/* ─── PAGINATION ─── */
.pagination { display: flex; justify-content: center; gap: 0.5rem; padding: 3rem 0; }
.pagination .page-numbers {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.88rem; color: var(--bark);
  border: 1px solid var(--border); transition: all 0.2s; text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }

/* ─── BREADCRUMB ─── */
.breadcrumb { padding: 1rem 0; font-size: 0.8rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb .separator { margin: 0 0.4rem; }

/* ─── 404 PAGE ─── */
.error-404 { text-align: center; padding: 8rem 5%; }
.error-404 h1 { font-size: 8rem; color: var(--terracotta); line-height: 1; margin-bottom: 0; }
.error-404 h2 { font-size: 2rem; margin-bottom: 1rem; }

/* ─── COMMENTS ─── */
.comments-section { max-width: 760px; margin: 0 auto; padding: 0 5% 4rem; }
.comments-title { font-size: 1.4rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.comment { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.comment-author { font-weight: 600; font-size: 0.9rem; color: var(--charcoal); margin-bottom: 0.3rem; }
.comment-date { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.7rem; }
.comment-text { font-size: 0.9rem; line-height: 1.7; color: var(--bark); }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 0.85rem 1.1rem; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--warm-white);
  font-family: var(--font-body); font-size: 0.9rem; outline: none;
  margin-bottom: 1rem; transition: border-color 0.2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--terracotta); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-image { display: none; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .post-card.featured { grid-column: span 2; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .affiliate-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 768px) {
  .main-nav ul { display: none; }
  .hamburger { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-column: span 1; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .affiliate-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { gap: 1.2rem; }
  .sidebar { grid-template-columns: 1fr; }
  .category-bar-inner { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .affiliate-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
