/*
Theme Name: HomeHaven
Theme URI: https://homehaven.com
Author: HomeHaven Team
Author URI: https://homehaven.com
Description: Professional affiliate marketing theme inspired by The Spruce. Clean magazine-style layout with hero section, article grid, buying guides, product reviews, FAQ, comparison tables, and full sidebar. Perfect for home decor and product review websites.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homehaven
Tags: blog, news, magazine, affiliate, one-column, two-columns, right-sidebar, custom-logo, featured-images, full-width-template, rtl-language-support
*/

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
  --green:       #2D6A4F;
  --green-mid:   #40916C;
  --green-light: #52B788;
  --green-pale:  #D8F3DC;
  --cream:       #FAFAF8;
  --white:       #FFFFFF;
  --border:      #E8E8E4;
  --dark:        #1A1A18;
  --mid:         #4A4A46;
  --muted:       #8A8A84;
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;
  --max:         1240px;
  --radius:      3px;
  --ease:        .22s cubic-bezier(.4,0,.2,1);
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--dark); background: var(--cream); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* =====================================================
   UTILITY
   ===================================================== */
.hh-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.hh-section-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--dark);
}
.hh-section-head h2 {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  white-space: nowrap; color: var(--dark);
}
.hh-section-head .hh-see-all {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--green);
  margin-left: auto; white-space: nowrap;
  transition: opacity var(--ease);
}
.hh-section-head .hh-see-all:hover { opacity: .65; }

.hh-tax {
  display: inline-block; background: var(--green); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 2px;
}

/* =====================================================
   TOP BAR
   ===================================================== */
.hh-topbar {
  background: var(--dark); color: #aaa;
  font-size: 11px; letter-spacing: .4px; padding: 7px 0;
}
.hh-topbar-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.hh-topbar a { color: #aaa; transition: color var(--ease); }
.hh-topbar a:hover { color: #fff; }
.hh-topbar-links { display: flex; gap: 18px; }
.hh-topbar-social { display: flex; gap: 14px; }

/* =====================================================
   HEADER
   ===================================================== */
.hh-header {
  background: var(--white);
  border-bottom: 3px solid var(--dark);
  position: sticky; top: 0; z-index: 900;
  transition: box-shadow var(--ease);
}
.hh-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.hh-header-row {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}

/* Logo */
.hh-logo {
  font-family: var(--serif); font-size: 32px; font-weight: 700;
  color: var(--dark); letter-spacing: -1px; line-height: 1;
  transition: color var(--ease);
}
.hh-logo:hover { color: var(--green); }
.hh-logo span { color: var(--green); }
.hh-logo img { max-height: 60px; width: auto; }

/* Search */
.hh-search { display: flex; flex: 0 1 240px; }
.hh-search input {
  border: 1.5px solid var(--border); border-right: none;
  border-radius: 2px 0 0 2px; padding: 9px 14px;
  font-size: 13px; font-family: var(--sans);
  outline: none; width: 100%; background: var(--cream);
  transition: border-color var(--ease);
}
.hh-search input:focus { border-color: var(--green); }
.hh-search button {
  background: var(--green); color: #fff;
  border: none; border-radius: 0 2px 2px 0;
  padding: 9px 14px; font-size: 15px;
  transition: background var(--ease);
}
.hh-search button:hover { background: var(--green-mid); }

/* Subscribe CTA */
.hh-btn-sub {
  display: inline-block; background: var(--green);
  color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 10px 20px; border-radius: 2px;
  white-space: nowrap; transition: background var(--ease);
}
.hh-btn-sub:hover { background: var(--green-mid); color: #fff; }

/* =====================================================
   NAVIGATION
   ===================================================== */
.hh-nav { background: var(--white); border-bottom: 1px solid var(--border); }
.hh-nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.hh-nav-inner::-webkit-scrollbar { display: none; }

/* WordPress nav_menu output */
.hh-nav-inner #hh-main-menu { display: flex; }
.hh-nav-inner #hh-main-menu li { position: relative; }
.hh-nav-inner #hh-main-menu > li > a {
  display: block; padding: 13px 16px;
  font-size: 12px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--mid);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.hh-nav-inner #hh-main-menu > li > a:hover,
.hh-nav-inner #hh-main-menu > li.current-menu-item > a,
.hh-nav-inner #hh-main-menu > li.current-menu-ancestor > a {
  color: var(--green); border-bottom-color: var(--green);
}
/* Dropdown */
.hh-nav-inner #hh-main-menu .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-top: 2px solid var(--green); min-width: 210px;
  box-shadow: 0 8px 28px rgba(0,0,0,.1); z-index: 999; padding: 8px 0;
}
.hh-nav-inner #hh-main-menu li:hover > .sub-menu { display: block; }
.hh-nav-inner #hh-main-menu .sub-menu li a {
  display: block; padding: 9px 18px; font-size: 13px;
  color: var(--mid); transition: color var(--ease), background var(--ease);
}
.hh-nav-inner #hh-main-menu .sub-menu li a:hover {
  color: var(--green); background: var(--green-pale);
}

/* Mobile toggle */
.hh-nav-toggle {
  display: none; border: 1.5px solid var(--border);
  padding: 7px 12px; border-radius: 2px;
  font-size: 20px; margin-left: auto;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hh-hero { background: var(--white); padding: 24px 0 0; }
.hh-hero-grid {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 360px; gap: 16px;
}

/* Main post */
.hh-hero-main { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 460px; }
.hh-hero-main .hh-thumb {
  width: 100%; height: 460px; object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.hh-hero-main:hover .hh-thumb { transform: scale(1.025); }
.hh-hero-main .hh-no-img {
  width: 100%; height: 460px; background: linear-gradient(135deg,#C8DFC8,#4A8A5E);
  display: flex; align-items: center; justify-content: center; font-size: 80px;
}
.hh-hero-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent 0%, rgba(10,20,10,.88) 100%);
  padding: 72px 28px 28px; color: #fff;
}
.hh-hero-cap .hh-tax { margin-bottom: 12px; }
.hh-hero-cap h2 {
  font-family: var(--serif); font-size: 34px; font-weight: 700;
  line-height: 1.2; margin-bottom: 10px;
}
.hh-hero-cap h2 a { color: #fff; }
.hh-hero-cap h2 a:hover { color: var(--green-pale); }
.hh-hero-cap .hh-byline { font-size: 12px; opacity: .75; }

/* Side posts */
.hh-hero-side { display: flex; flex-direction: column; gap: 16px; }
.hh-hero-side-post {
  flex: 1; position: relative; overflow: hidden;
  border-radius: var(--radius); min-height: 220px;
}
.hh-hero-side-post .hh-thumb { width: 100%; height: 222px; object-fit: cover; transition: transform .4s; }
.hh-hero-side-post:hover .hh-thumb { transform: scale(1.04); }
.hh-hero-side-post .hh-no-img { width: 100%; height: 222px; display: flex; align-items: center; justify-content: center; font-size: 50px; }
.hh-side-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,20,10,.82));
  padding: 44px 16px 16px; color: #fff;
}
.hh-side-cap .hh-tax { margin-bottom: 8px; font-size: 9px; }
.hh-side-cap h3 { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.28; }
.hh-side-cap h3 a { color: #fff; }
.hh-side-cap h3 a:hover { color: var(--green-pale); }

/* =====================================================
   TRENDING BAR
   ===================================================== */
.hh-trending {
  background: var(--green-pale);
  border-top: 1px solid #C8E6D0; border-bottom: 1px solid #C8E6D0;
}
.hh-trending-inner {
  max-width: var(--max); margin: 0 auto; padding: 11px 24px;
  display: flex; align-items: center; gap: 10px;
  overflow-x: auto; scrollbar-width: none;
}
.hh-trending-inner::-webkit-scrollbar { display: none; }
.hh-trending-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green);
  white-space: nowrap; padding-right: 10px;
  border-right: 2px solid var(--green); margin-right: 4px; flex-shrink: 0;
}
.hh-trending-inner .hh-tag {
  font-size: 12px; font-weight: 500; color: var(--mid);
  white-space: nowrap; padding: 5px 13px;
  border: 1px solid #B0D8BC; border-radius: 20px;
  background: #fff; flex-shrink: 0;
  transition: all var(--ease);
}
.hh-trending-inner .hh-tag:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* =====================================================
   MAIN LAYOUT — Content + Sidebar
   ===================================================== */
.hh-main-layout {
  max-width: var(--max); margin: 48px auto;
  padding: 0 24px;
  display: grid; grid-template-columns: 1fr 316px; gap: 52px;
  align-items: start;
}

/* =====================================================
   ARTICLE CARDS GRID
   ===================================================== */
.hh-cards-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px 22px; margin-bottom: 44px;
}
.hh-card { display: flex; flex-direction: column; }
.hh-card-img { overflow: hidden; border-radius: var(--radius); margin-bottom: 13px; }
.hh-card-img img { width: 100%; height: 200px; object-fit: cover; transition: transform .38s; }
.hh-card:hover .hh-card-img img { transform: scale(1.04); }
.hh-card-img .hh-no-img { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.hh-card .hh-tax-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green); margin-bottom: 6px;
}
.hh-card h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  line-height: 1.34; margin-bottom: 8px; color: var(--dark);
  transition: color var(--ease);
}
.hh-card:hover h3 { color: var(--green); }
.hh-card .hh-excerpt { font-size: 13.5px; color: var(--mid); line-height: 1.65; margin-bottom: 8px; }
.hh-card .hh-meta { font-size: 11px; color: var(--muted); }

/* =====================================================
   LIST POSTS
   ===================================================== */
.hh-list-posts { margin-bottom: 44px; }
.hh-list-item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.hh-list-item:first-child { border-top: 1px solid var(--border); }
.hh-list-item:hover { opacity: .82; }
.hh-list-thumb { border-radius: var(--radius); overflow: hidden; }
.hh-list-thumb img { width: 120px; height: 88px; object-fit: cover; }
.hh-list-thumb .hh-no-img { width: 120px; height: 88px; display: flex; align-items: center; justify-content: center; font-size: 28px; border-radius: var(--radius); }
.hh-list-body .hh-tax-lbl { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 5px; }
.hh-list-body h4 { font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.34; margin-bottom: 5px; }
.hh-list-body h4 a { color: var(--dark); transition: color var(--ease); }
.hh-list-body h4 a:hover { color: var(--green); }
.hh-list-body p { font-size: 13px; color: var(--mid); line-height: 1.55; }

/* =====================================================
   CATEGORY FEATURE BLOCK
   ===================================================== */
.hh-cat-feature {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 44px;
}
.hh-cat-feature-img { overflow: hidden; }
.hh-cat-feature-img img { width: 100%; height: 300px; object-fit: cover; transition: transform .45s; }
.hh-cat-feature:hover .hh-cat-feature-img img { transform: scale(1.03); }
.hh-cat-feature-img .hh-no-img { width: 100%; height: 300px; display: flex; align-items: center; justify-content: center; font-size: 60px; }
.hh-cat-feature-body {
  padding: 36px 32px; background: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
}
.hh-cat-feature-body .hh-tax-lbl { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.hh-cat-feature-body h3 { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.28; margin-bottom: 12px; }
.hh-cat-feature-body h3 a { color: var(--dark); transition: color var(--ease); }
.hh-cat-feature-body h3 a:hover { color: var(--green); }
.hh-cat-feature-body p { font-size: 14px; color: var(--mid); line-height: 1.7; margin-bottom: 20px; }
.hh-btn-read {
  display: inline-block; background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 10px 22px; border-radius: 2px;
  align-self: flex-start; transition: background var(--ease);
}
.hh-btn-read:hover { background: var(--green-mid); color: #fff; }

/* =====================================================
   SIDEBAR WIDGETS
   ===================================================== */
.hh-sidebar { }
.hh-widget {
  margin-bottom: 30px; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; background: var(--white);
}
.hh-widget-head {
  background: var(--dark); color: #fff; padding: 12px 18px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
}
.hh-widget-body { padding: 16px 18px; }

/* Newsletter widget */
.hh-widget-nl .hh-widget-head { background: var(--green); }
.hh-widget-nl .hh-widget-body { padding: 20px 18px; text-align: center; }
.hh-widget-nl p { font-size: 13px; color: var(--mid); line-height: 1.65; margin-bottom: 14px; }
.hh-widget-nl input {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--border);
  border-radius: 2px; font-size: 13px; font-family: var(--sans);
  margin-bottom: 10px; outline: none; transition: border-color var(--ease);
}
.hh-widget-nl input:focus { border-color: var(--green); }
.hh-widget-nl .hh-nl-btn {
  width: 100%; padding: 11px; background: var(--green); color: #fff;
  border: none; border-radius: 2px; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; font-family: var(--sans);
  transition: background var(--ease);
}
.hh-widget-nl .hh-nl-btn:hover { background: var(--green-mid); }

/* Sidebar post items */
.hh-sp-item {
  display: flex; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid #F0F0EE; transition: opacity var(--ease);
}
.hh-sp-item:last-child { border-bottom: none; }
.hh-sp-item:hover { opacity: .75; }
.hh-sp-thumb { width: 68px; height: 54px; border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.hh-sp-thumb img { width: 68px; height: 54px; object-fit: cover; }
.hh-sp-thumb .hh-no-img { width: 68px; height: 54px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.hh-sp-info .hh-tax-lbl { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); margin-bottom: 3px; }
.hh-sp-info h5 { font-family: var(--serif); font-size: 13px; font-weight: 700; line-height: 1.34; }
.hh-sp-info h5 a { color: var(--dark); transition: color var(--ease); }
.hh-sp-info h5 a:hover { color: var(--green); }

/* Ad slot */
.hh-ad-slot {
  height: 260px; border: 1px dashed #ccc; border-radius: 2px;
  margin-bottom: 30px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: #bbb; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  background: var(--cream);
}

/* =====================================================
   TOPICS HUB
   ===================================================== */
.hh-topics {
  background: var(--white); border-top: 2px solid var(--dark);
  border-bottom: 1px solid var(--border); padding: 52px 0;
}
.hh-topics-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hh-topics-inner > h2 {
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  text-align: center; margin-bottom: 40px;
}
.hh-topics-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.hh-topic { text-align: center; }
.hh-topic a { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--dark); transition: color var(--ease); }
.hh-topic a:hover { color: var(--green); }
.hh-topic-icon {
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
  margin: 0 auto; transition: transform .28s cubic-bezier(.4,0,.2,1), box-shadow .28s;
}
.hh-topic:hover .hh-topic-icon { transform: translateY(-5px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.hh-topic-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* =====================================================
   WHAT TO BUY — Affiliate Products
   ===================================================== */
.hh-affiliate {
  background: var(--cream); border-top: 1px solid var(--border); padding: 52px 0;
}
.hh-affiliate-intro { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.hh-affiliate-intro h2 { font-family: var(--serif); font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.hh-affiliate-intro p { font-size: 15px; color: var(--mid); line-height: 1.7; }
.hh-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hh-product-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
}
.hh-product-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.12); transform: translateY(-3px); }
.hh-product-card-img {
  overflow: hidden; background: #F5F5F3;
  height: 200px; display: flex; align-items: center; justify-content: center;
}
.hh-product-card-img img { width: 100%; height: 200px; object-fit: cover; transition: transform .38s; }
.hh-product-card:hover .hh-product-card-img img { transform: scale(1.06); }
.hh-product-card-img .hh-no-img { font-size: 56px; }
.hh-product-card-body { padding: 18px; }
.hh-product-card-body .hh-prod-cat { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.hh-product-card-body h4 { font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.hh-product-card-body p { font-size: 13px; color: var(--mid); line-height: 1.6; margin-bottom: 14px; }
.hh-stars { color: #F4A429; font-size: 13px; margin-bottom: 12px; }
.hh-stars span { font-size: 11px; color: var(--muted); margin-left: 4px; }
.hh-btn-price {
  display: block; text-align: center; background: var(--green); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  padding: 11px 16px; border-radius: 2px; transition: background var(--ease);
}
.hh-btn-price:hover { background: var(--green-mid); color: #fff; }
.hh-btn-price::after { content: ' →'; }

/* =====================================================
   SINGLE POST
   ===================================================== */
.hh-single-wrap { max-width: 820px; margin: 40px auto; padding: 0 24px 60px; }
.hh-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.hh-breadcrumb a { color: var(--green); }
.hh-article-tax { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); border-bottom: 2px solid var(--green); padding-bottom: 2px; margin-bottom: 16px; }
.hh-article-title { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1.18; margin-bottom: 16px; color: var(--dark); }
.hh-article-deck { font-size: 18px; color: var(--mid); line-height: 1.65; margin-bottom: 22px; font-weight: 300; }
.hh-article-meta { font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 13px 0; margin-bottom: 28px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hh-article-meta .hh-author { font-weight: 600; color: var(--dark); }

/* Fact box */
.hh-fact-box { background: var(--green-pale); border-left: 4px solid var(--green); border-radius: 0 4px 4px 0; padding: 20px 24px; margin-bottom: 32px; }
.hh-fact-box h3 { font-family: var(--serif); font-size: 17px; font-weight: 700; margin-bottom: 12px; color: var(--green); }
.hh-fact-box ul { padding-left: 18px; }
.hh-fact-box ul li { font-size: 14px; color: var(--mid); margin-bottom: 6px; list-style: disc; line-height: 1.55; }

/* Featured image */
.hh-featured-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.hh-featured-img img { width: 100%; max-height: 520px; object-fit: cover; }

/* Entry content */
.hh-entry-content { font-size: 16.5px; line-height: 1.82; color: var(--mid); }
.hh-entry-content h2 { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--dark); margin: 44px 0 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.hh-entry-content h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--dark); margin: 32px 0 12px; }
.hh-entry-content p { margin-bottom: 20px; }
.hh-entry-content a { color: var(--green); text-decoration: underline; }
.hh-entry-content ul, .hh-entry-content ol { margin: 0 0 20px 20px; }
.hh-entry-content li { margin-bottom: 8px; }
.hh-entry-content blockquote { border-left: 4px solid var(--green); padding: 18px 24px; background: var(--cream); margin: 28px 0; font-style: italic; font-size: 18px; color: var(--mid); border-radius: 0 4px 4px 0; }
.hh-entry-content img { border-radius: var(--radius); margin: 24px 0; }
.hh-entry-content table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14px; }
.hh-entry-content table th { background: var(--dark); color: #fff; padding: 12px 16px; text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.hh-entry-content table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--mid); }
.hh-entry-content table tr:hover td { background: var(--cream); }

/* Product block */
.hh-product-block { border: 1px solid var(--border); border-radius: 4px; margin-bottom: 36px; background: var(--white); overflow: hidden; }
.hh-pb-header { background: var(--cream); padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }
.hh-pb-rank { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.hh-pb-rank.gold { background: #C8960A; }
.hh-pb-badge { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.hh-pb-name { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--dark); }
.hh-pb-body { display: grid; grid-template-columns: 240px 1fr; }
.hh-pb-img { background: #F4F4F2; display: flex; align-items: center; justify-content: center; font-size: 60px; min-height: 220px; }
.hh-pb-img img { width: 240px; height: 220px; object-fit: cover; }
.hh-pb-content { padding: 22px 24px; }
.hh-pb-content p { font-size: 14.5px; color: var(--mid); line-height: 1.72; margin-bottom: 14px; }
.hh-pb-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #FAFAF8; flex-wrap: wrap; }
.hh-pb-price { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--dark); }
.hh-btn-affiliate { display: inline-block; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; padding: 12px 24px; border-radius: 2px; transition: background var(--ease); }
.hh-btn-affiliate:hover { background: var(--green-mid); color: #fff; }
.hh-btn-affiliate::after { content: ' ↗'; }

/* FAQ */
.hh-faq-item { border: 1px solid var(--border); border-radius: 3px; margin-bottom: 10px; overflow: hidden; background: var(--white); }
.hh-faq-q { width: 100%; text-align: left; padding: 17px 20px; font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--dark); background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.hh-faq-q:hover { color: var(--green); }
.hh-faq-q::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--green); }
.hh-faq-item.open .hh-faq-q::after { content: '−'; }
.hh-faq-a { display: none; padding: 0 20px 18px; font-size: 14.5px; color: var(--mid); line-height: 1.75; border-top: 1px solid var(--border); padding-top: 16px; }
.hh-faq-item.open .hh-faq-a { display: block; }

/* Comparison table */
.hh-table-wrap { overflow-x: auto; }
.hh-comparison-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); }
.hh-comparison-table thead { background: var(--dark); color: #fff; }
.hh-comparison-table thead th { padding: 13px 16px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.hh-comparison-table tbody tr { border-bottom: 1px solid var(--border); }
.hh-comparison-table tbody tr:hover { background: var(--cream); }
.hh-comparison-table tbody tr.winner { background: var(--green-pale); }
.hh-comparison-table td { padding: 13px 16px; color: var(--mid); vertical-align: middle; }
.hh-comparison-table td:first-child { font-weight: 600; color: var(--dark); }
.hh-ct-btn { background: var(--green); color: #fff; font-size: 11px; font-weight: 700; padding: 7px 14px; border-radius: 2px; white-space: nowrap; transition: background var(--ease); }
.hh-ct-btn:hover { background: var(--green-mid); color: #fff; }

/* Buying guide grid */
.hh-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hh-guide-item { background: var(--white); border: 1px solid var(--border); border-radius: 3px; padding: 20px; }
.hh-guide-icon { font-size: 28px; margin-bottom: 10px; }
.hh-guide-item h4 { font-family: var(--serif); font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.hh-guide-item p { font-size: 13.5px; color: var(--mid); line-height: 1.65; }

/* =====================================================
   ARCHIVE / CATEGORY HEADER
   ===================================================== */
.hh-archive-header { background: var(--dark); color: #fff; padding: 40px 0; margin-bottom: 0; }
.hh-archive-header-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hh-archive-header .hh-arch-tax { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--green-pale); margin-bottom: 8px; display: block; }
.hh-archive-header h1 { font-family: var(--serif); font-size: 36px; font-weight: 700; }
.hh-archive-header p { font-size: 15px; color: #aaa; margin-top: 8px; }

/* =====================================================
   PAGINATION
   ===================================================== */
.hh-pagination { display: flex; justify-content: center; gap: 6px; padding: 32px 0; flex-wrap: wrap; }
.hh-pagination a, .hh-pagination span { padding: 9px 15px; border: 1px solid var(--border); border-radius: 2px; font-size: 13px; font-weight: 600; color: var(--mid); transition: all var(--ease); }
.hh-pagination a:hover, .hh-pagination .current { background: var(--green); color: #fff; border-color: var(--green); }

/* =====================================================
   FOOTER
   ===================================================== */
.hh-footer { background: var(--dark); color: #aaa; padding: 60px 0 0; }
.hh-footer-grid { max-width: var(--max); margin: 0 auto; padding: 0 24px 44px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.hh-footer-brand .hh-f-logo { font-family: var(--serif); font-size: 26px; font-weight: 700; color: #fff; display: block; margin-bottom: 14px; }
.hh-footer-brand .hh-f-logo span { color: var(--green-light); }
.hh-footer-brand .hh-f-logo img { max-height: 50px; width: auto; filter: brightness(0) invert(1); }
.hh-footer-brand p { font-size: 13px; line-height: 1.8; color: #777; max-width: 280px; margin-bottom: 20px; }
.hh-footer-social { display: flex; gap: 10px; }
.hh-footer-social a { width: 34px; height: 34px; border: 1px solid #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #777; font-size: 12px; font-weight: 700; transition: all var(--ease); }
.hh-footer-social a:hover { border-color: var(--green-light); color: #fff; background: var(--green); }
.hh-footer-col h5 { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #fff; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid #2a2a28; }
.hh-footer-col a { display: block; font-size: 13px; color: #777; margin-bottom: 10px; transition: color var(--ease); }
.hh-footer-col a:hover { color: #fff; }
.hh-footer-bottom { background: #0E0E0C; padding: 20px 0; }
.hh-footer-bottom-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.hh-footer-bottom p, .hh-footer-bottom a { font-size: 12px; color: #555; }
.hh-footer-bottom a:hover { color: #aaa; }
.hh-footer-bottom-links { display: flex; gap: 20px; }

/* =====================================================
   BG PLACEHOLDER COLORS
   ===================================================== */
.hh-bg1 { background: linear-gradient(135deg,#D4E8D4,#88B894); }
.hh-bg2 { background: linear-gradient(135deg,#E8D8D0,#B89080); }
.hh-bg3 { background: linear-gradient(135deg,#D4DCE8,#8090B0); }
.hh-bg4 { background: linear-gradient(135deg,#E8E4D4,#B0A080); }
.hh-bg5 { background: linear-gradient(135deg,#DCE8D4,#90A888); }
.hh-bg6 { background: linear-gradient(135deg,#E8D4DC,#B08090); }
.hh-bg7 { background: linear-gradient(135deg,#D4E4E8,#80A0B0); }
.hh-bg8 { background: linear-gradient(135deg,#E4D4E8,#9080A8); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1080px) {
  .hh-hero-grid { grid-template-columns: 1fr 300px; }
  .hh-products-grid { grid-template-columns: repeat(2,1fr); }
  .hh-topics-grid { grid-template-columns: repeat(4,1fr); }
  .hh-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hh-hero-grid { grid-template-columns: 1fr; }
  .hh-hero-side { flex-direction: row; }
  .hh-main-layout { grid-template-columns: 1fr; }
  .hh-cards-grid { grid-template-columns: 1fr; }
  .hh-cat-feature { grid-template-columns: 1fr; }
  .hh-topics-grid { grid-template-columns: repeat(3,1fr); }
  .hh-nav-toggle { display: block; }
  .hh-nav-inner #hh-main-menu { display: none; flex-direction: column; width: 100%; }
  .hh-nav-inner #hh-main-menu.open { display: flex; }
  .hh-pb-body { grid-template-columns: 1fr; }
  .hh-guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hh-hero-side { flex-direction: column; }
  .hh-products-grid { grid-template-columns: 1fr; }
  .hh-topics-grid { grid-template-columns: repeat(2,1fr); }
  .hh-footer-grid { grid-template-columns: 1fr; }
  .hh-article-title { font-size: 28px; }
  .hh-header-row { flex-wrap: wrap; gap: 12px; }
}
