/*
Theme Name:   RustBeat
Theme URI:    https://rustbeat.com
Description:  A clean, professional WordPress theme for RustBeat — your #1 rust removal guides and reviews blog.
Author:       RustBeat
Author URI:   https://rustbeat.com
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:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  rustbeat
Tags:         blog, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, right-sidebar, theme-options, threaded-comments, translation-ready
*/

/* ============================================================
   TABLE OF CONTENTS
   1.  CSS Variables & Reset
   2.  Typography
   3.  Layout & Container
   4.  Header & Navigation
   5.  Hero Section
   6.  Category Cards
   7.  Blog / Archive
   8.  Single Post
   9.  Reviews Page
   10. Sidebar
   11. Footer
   12. Widgets
   13. Comments
   14. Forms & Inputs
   15. Pagination
   16. Breadcrumbs
   17. 404 & Search
   18. Utility Classes
   19. Responsive
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES & RESET
   ============================================================ */
:root {
  --rb-primary:        #B85A1A;
  --rb-primary-dark:   #993C1D;
  --rb-primary-light:  #FEF0E7;
  --rb-primary-mid:    #F0A060;
  --rb-dark:           #2C2C2A;
  --rb-dark-mid:       #444441;
  --rb-gray:           #888780;
  --rb-gray-light:     #D3D1C7;
  --rb-gray-bg:        #F7F6F2;
  --rb-border:         #E5E3DC;
  --rb-white:          #ffffff;
  --rb-text:           #2C2C2A;
  --rb-text-muted:     #5F5E5A;
  --rb-font-head:      'Syne', Georgia, serif;
  --rb-font-body:      'DM Sans', Arial, sans-serif;
  --rb-radius:         8px;
  --rb-radius-lg:      12px;
  --rb-radius-xl:      18px;
  --rb-shadow:         0 2px 12px rgba(44,44,42,0.08);
  --rb-shadow-hover:   0 6px 24px rgba(44,44,42,0.14);
  --rb-transition:     0.18s ease;
  --rb-container:      1100px;
  --rb-sidebar-width:  300px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--rb-font-body);
  font-size: 16px;
  color: var(--rb-text);
  background: var(--rb-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: var(--rb-primary); text-decoration: none; transition: color var(--rb-transition); }
a:hover { color: var(--rb-primary-dark); }
button { cursor: pointer; font-family: var(--rb-font-body); }

/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rb-font-head);
  color: var(--rb-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 17px; }
h6 { font-size: 15px; }

p { margin-bottom: 1.2em; color: var(--rb-text-muted); }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; color: var(--rb-dark); }
em, i { font-style: italic; }

blockquote {
  border-left: 4px solid var(--rb-primary);
  background: var(--rb-primary-light);
  padding: 20px 24px;
  border-radius: 0 var(--rb-radius) var(--rb-radius) 0;
  margin: 28px 0;
}
blockquote p { font-style: italic; color: var(--rb-primary-dark); font-size: 17px; margin: 0; }

pre {
  background: var(--rb-dark);
  color: #f1efe8;
  padding: 20px;
  border-radius: var(--rb-radius);
  overflow-x: auto;
  font-size: 14px;
  margin: 24px 0;
}
code {
  background: var(--rb-gray-bg);
  color: var(--rb-primary-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
pre code { background: none; color: inherit; padding: 0; }

hr {
  border: none;
  border-top: 1px solid var(--rb-border);
  margin: 40px 0;
}

/* ============================================================
   3. LAYOUT & CONTAINER
   ============================================================ */
.rb-container {
  max-width: var(--rb-container);
  margin: 0 auto;
  padding: 0 24px;
}

.rb-content-wrap {
  display: grid;
  grid-template-columns: 1fr var(--rb-sidebar-width);
  gap: 48px;
  padding: 56px 0;
  align-items: start;
}

.rb-content-wrap.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}

.rb-full-width {
  grid-template-columns: 1fr;
}

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

/* ============================================================
   4. HEADER & NAVIGATION
   ============================================================ */
#site-header {
  background: var(--rb-white);
  border-bottom: 1px solid var(--rb-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--rb-transition);
}
#site-header.scrolled { box-shadow: var(--rb-shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.site-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rb-dark);
}
.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--rb-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-logo .logo-icon svg { width: 20px; height: 20px; }
.site-logo .logo-text { font-family: var(--rb-font-head); font-size: 22px; font-weight: 700; letter-spacing: -0.5px; line-height: 1; }
.site-logo .logo-text span { color: var(--rb-primary); }
.site-logo img.custom-logo { max-height: 44px; width: auto; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav ul li { position: relative; }
.main-nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rb-text-muted);
  border-radius: var(--rb-radius);
  transition: all var(--rb-transition);
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current-menu-ancestor > a {
  color: var(--rb-primary);
  background: var(--rb-primary-light);
}

/* Dropdown */
.main-nav ul li ul {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--rb-white);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--rb-shadow-hover);
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
.main-nav ul li:hover > ul { display: flex; }
.main-nav ul li ul li a {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: var(--rb-radius);
  white-space: nowrap;
}

/* Nav CTA */
.nav-cta a,
.main-nav .menu-item-cta > a {
  background: var(--rb-primary) !important;
  color: var(--rb-white) !important;
  padding: 8px 18px !important;
  border-radius: var(--rb-radius) !important;
  font-weight: 500 !important;
  transition: background var(--rb-transition) !important;
}
.nav-cta a:hover,
.main-nav .menu-item-cta > a:hover {
  background: var(--rb-primary-dark) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  padding: 8px 10px;
  color: var(--rb-dark);
  font-size: 20px;
  line-height: 1;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,44,42,0.5);
  z-index: 999;
}
.mobile-nav.open { display: block; }
.mobile-nav-inner {
  position: absolute;
  top: 0; right: 0;
  width: 280px;
  height: 100%;
  background: var(--rb-white);
  padding: 24px;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rb-border);
}
.mobile-nav-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--rb-gray);
  line-height: 1;
}
.mobile-nav ul { flex-direction: column; gap: 4px; display: flex; }
.mobile-nav ul li a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--rb-text);
  border-radius: var(--rb-radius);
  transition: all var(--rb-transition);
}
.mobile-nav ul li a:hover { background: var(--rb-primary-light); color: var(--rb-primary); }
.mobile-nav ul li ul { padding-left: 16px; margin-top: 4px; }

/* ============================================================
   5. HERO SECTION
   ============================================================ */
.rb-hero {
  background: var(--rb-white);
  padding: 72px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--rb-border);
}
.rb-hero-badge {
  display: inline-block;
  background: var(--rb-primary-light);
  color: var(--rb-primary-dark);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.rb-hero h1 {
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.rb-hero h1 em { font-style: normal; color: var(--rb-primary); }
.rb-hero p {
  font-size: 18px;
  color: var(--rb-text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.rb-hero-search {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto 48px;
}
.rb-hero-search input {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  font-size: 15px;
  font-family: var(--rb-font-body);
  color: var(--rb-text);
  background: var(--rb-white);
  outline: none;
  transition: border-color var(--rb-transition);
}
.rb-hero-search input:focus { border-color: var(--rb-primary); box-shadow: 0 0 0 3px rgba(184,90,26,0.1); }
.rb-hero-search button {
  background: var(--rb-primary);
  color: var(--rb-white);
  border: none;
  padding: 13px 24px;
  border-radius: var(--rb-radius);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--rb-transition);
  white-space: nowrap;
}
.rb-hero-search button:hover { background: var(--rb-primary-dark); }

/* Hero stats */
.rb-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.rb-hero-stat { text-align: center; }
.rb-hero-stat .stat-num { font-family: var(--rb-font-head); font-size: 28px; font-weight: 700; color: var(--rb-primary); display: block; }
.rb-hero-stat .stat-label { font-size: 13px; color: var(--rb-gray); margin-top: 2px; }

/* ============================================================
   6. CATEGORY CARDS
   ============================================================ */
.rb-categories { padding: 64px 0; }
.rb-section-header { margin-bottom: 32px; }
.rb-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--rb-gray);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.rb-section-title { font-size: 28px; font-weight: 700; color: var(--rb-dark); margin-bottom: 4px; }
.rb-section-sub { font-size: 15px; color: var(--rb-text-muted); margin: 0; }

.rb-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.rb-cat-card {
  background: var(--rb-white);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  padding: 24px 18px 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--rb-transition);
  text-decoration: none;
  display: block;
}
.rb-cat-card:hover {
  border-color: var(--rb-primary);
  transform: translateY(-3px);
  box-shadow: var(--rb-shadow-hover);
  color: inherit;
}
.rb-cat-card:hover .rb-cat-arrow { opacity: 1; transform: translateX(3px); }
.rb-cat-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
}
.rb-cat-icon { font-size: 28px; margin-bottom: 14px; display: block; }
.rb-cat-name { font-family: var(--rb-font-head); font-size: 15px; font-weight: 700; color: var(--rb-dark); margin-bottom: 6px; }
.rb-cat-desc { font-size: 12px; color: var(--rb-text-muted); line-height: 1.5; margin: 0; }
.rb-cat-count { font-size: 11px; color: var(--rb-gray); margin-top: 14px; display: block; }
.rb-cat-arrow {
  position: absolute;
  top: 18px; right: 16px;
  font-size: 16px;
  color: var(--rb-primary);
  opacity: 0;
  transition: all var(--rb-transition);
}

/* ============================================================
   7. BLOG / ARCHIVE
   ============================================================ */
.rb-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.rb-posts-grid.list-view { grid-template-columns: 1fr; }

.rb-post-card {
  background: var(--rb-white);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  overflow: hidden;
  transition: all var(--rb-transition);
  display: flex;
  flex-direction: column;
}
.rb-post-card:hover {
  border-color: var(--rb-primary);
  transform: translateY(-3px);
  box-shadow: var(--rb-shadow-hover);
}

/* List view card */
.rb-posts-grid.list-view .rb-post-card {
  flex-direction: row;
}
.rb-posts-grid.list-view .rb-post-thumb {
  width: 240px;
  flex-shrink: 0;
}
.rb-posts-grid.list-view .rb-post-thumb img {
  height: 100%;
  object-fit: cover;
}

.rb-post-thumb { overflow: hidden; position: relative; }
.rb-post-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.rb-post-card:hover .rb-post-thumb img { transform: scale(1.04); }
.rb-post-thumb-placeholder {
  width: 100%;
  height: 200px;
  background: var(--rb-gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.rb-post-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.rb-post-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.rb-post-tag.auto { background: var(--rb-primary-light); color: var(--rb-primary-dark); }
.rb-post-tag.tools { background: #E1F5EE; color: #0F6E56; }
.rb-post-tag.kitchen { background: #EAF3DE; color: #3B6D11; }
.rb-post-tag.marine { background: #E6F1FB; color: #185FA5; }
.rb-post-tag.home { background: #FAEEDA; color: #854F0B; }

.rb-post-title {
  font-family: var(--rb-font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--rb-dark);
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color var(--rb-transition);
}
.rb-post-title a { color: inherit; }
.rb-post-title a:hover { color: var(--rb-primary); }

.rb-post-excerpt { font-size: 13px; color: var(--rb-text-muted); line-height: 1.65; margin: 0 0 16px; flex: 1; }

.rb-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--rb-gray);
  margin-top: auto;
  flex-wrap: wrap;
}
.rb-post-meta .sep { opacity: 0.4; }
.rb-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--rb-primary);
  font-size: 13px;
  font-weight: 500;
  margin-top: 12px;
  transition: gap var(--rb-transition);
}
.rb-read-more:hover { gap: 8px; color: var(--rb-primary-dark); }

/* Featured post */
.rb-featured-post {
  background: var(--rb-white);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 40px;
  transition: box-shadow var(--rb-transition);
}
.rb-featured-post:hover { box-shadow: var(--rb-shadow-hover); }
.rb-featured-post .rb-post-thumb img { height: 340px; }
.rb-featured-post .rb-post-body { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.rb-featured-post .rb-post-title { font-size: 24px; margin-bottom: 14px; }
.rb-featured-post .rb-post-excerpt { font-size: 15px; }
.rb-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rb-primary);
  color: var(--rb-white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

/* Archive header */
.rb-archive-header {
  padding: 48px 0 0;
  margin-bottom: 0;
}
.rb-archive-header .rb-archive-title {
  font-size: 36px;
  margin-bottom: 8px;
}
.rb-archive-header .rb-archive-desc {
  font-size: 15px;
  color: var(--rb-text-muted);
  max-width: 680px;
  margin-bottom: 0;
}

/* Blog toolbar */
.rb-blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rb-border);
  flex-wrap: wrap;
  gap: 12px;
}
.rb-post-count { font-size: 14px; color: var(--rb-gray); }
.rb-view-toggle { display: flex; gap: 4px; }
.rb-view-btn {
  background: none;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  padding: 7px 10px;
  color: var(--rb-gray);
  font-size: 15px;
  transition: all var(--rb-transition);
}
.rb-view-btn.active, .rb-view-btn:hover {
  background: var(--rb-primary);
  border-color: var(--rb-primary);
  color: var(--rb-white);
}

/* ============================================================
   8. SINGLE POST
   ============================================================ */
.rb-post-header { padding: 48px 0 36px; border-bottom: 1px solid var(--rb-border); }
.rb-post-header .rb-post-tag { margin-bottom: 14px; }
.rb-post-header h1 {
  font-size: 40px;
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
  max-width: 860px;
}
.rb-post-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--rb-gray);
}
.rb-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rb-border);
}
.rb-author-name { color: var(--rb-dark); font-weight: 500; }

.rb-post-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--rb-radius-lg);
  margin: 32px 0;
}

.rb-post-content {
  font-size: 17px;
  line-height: 1.82;
  color: var(--rb-text-muted);
}
.rb-post-content h2 {
  font-size: 26px;
  margin: 40px 0 14px;
  color: var(--rb-dark);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rb-border);
}
.rb-post-content h3 { font-size: 21px; margin: 32px 0 12px; color: var(--rb-dark); }
.rb-post-content h4 { font-size: 18px; margin: 24px 0 10px; }
.rb-post-content p { margin-bottom: 1.4em; }
.rb-post-content ul, .rb-post-content ol { margin: 16px 0 20px 24px; }
.rb-post-content ul { list-style: disc; }
.rb-post-content ol { list-style: decimal; }
.rb-post-content li { margin-bottom: 6px; color: var(--rb-text-muted); }
.rb-post-content a { color: var(--rb-primary); border-bottom: 1px solid transparent; transition: border-color var(--rb-transition); }
.rb-post-content a:hover { border-bottom-color: var(--rb-primary); }
.rb-post-content img { border-radius: var(--rb-radius); margin: 24px 0; width: 100%; }

/* Product recommendation box */
.rb-product-box {
  background: var(--rb-gray-bg);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  padding: 24px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
}
.rb-product-box img { border-radius: var(--rb-radius); width: 120px; height: 120px; object-fit: cover; }
.rb-product-name { font-family: var(--rb-font-head); font-size: 18px; font-weight: 700; color: var(--rb-dark); margin-bottom: 6px; }
.rb-product-rating { color: var(--rb-primary); font-size: 15px; margin-bottom: 8px; }
.rb-product-desc { font-size: 14px; color: var(--rb-text-muted); margin-bottom: 14px; }
.rb-product-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rb-primary);
  color: var(--rb-white);
  padding: 10px 20px;
  border-radius: var(--rb-radius);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--rb-transition);
}
.rb-product-btn:hover { background: var(--rb-primary-dark); color: var(--rb-white); }

/* Affiliate disclosure */
.rb-disclosure {
  background: var(--rb-primary-light);
  border-left: 4px solid var(--rb-primary);
  border-radius: 0 var(--rb-radius) var(--rb-radius) 0;
  padding: 14px 18px;
  margin: 32px 0;
  font-size: 13px;
  color: var(--rb-primary-dark);
  line-height: 1.6;
}

/* Post tags */
.rb-post-tags { margin: 32px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rb-post-tags-label { font-size: 13px; font-weight: 600; color: var(--rb-dark); }
.rb-tag-pill {
  display: inline-block;
  background: var(--rb-gray-bg);
  color: var(--rb-text-muted);
  border: 1px solid var(--rb-border);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  transition: all var(--rb-transition);
}
.rb-tag-pill:hover { background: var(--rb-primary-light); border-color: var(--rb-primary); color: var(--rb-primary-dark); }

/* Author box */
.rb-author-box {
  background: var(--rb-gray-bg);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  margin: 48px 0 32px;
  align-items: flex-start;
}
.rb-author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rb-author-box-name { font-family: var(--rb-font-head); font-size: 17px; font-weight: 700; color: var(--rb-dark); margin-bottom: 4px; }
.rb-author-box-role { font-size: 12px; color: var(--rb-primary); font-weight: 500; margin-bottom: 10px; }
.rb-author-box-bio { font-size: 14px; color: var(--rb-text-muted); line-height: 1.65; margin: 0; }

/* Related posts */
.rb-related-posts { margin: 48px 0; }
.rb-related-posts h3 { font-size: 22px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--rb-border); }
.rb-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ============================================================
   9. REVIEWS PAGE
   ============================================================ */
.rb-reviews-header {
  background: linear-gradient(135deg, var(--rb-dark) 0%, #3d3d3a 100%);
  padding: 60px 0;
  text-align: center;
  margin-bottom: 0;
}
.rb-reviews-header h1 { color: var(--rb-white); font-size: 38px; margin-bottom: 12px; }
.rb-reviews-header p { color: var(--rb-gray-light); font-size: 16px; max-width: 560px; margin: 0 auto; }

.rb-reviews-filter {
  background: var(--rb-gray-bg);
  border-bottom: 1px solid var(--rb-border);
  padding: 16px 0;
  position: sticky;
  top: 64px;
  z-index: 90;
}
.rb-filter-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rb-filter-label { font-size: 13px; font-weight: 600; color: var(--rb-dark); margin-right: 4px; }
.rb-filter-btn {
  background: var(--rb-white);
  border: 1px solid var(--rb-border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rb-text-muted);
  cursor: pointer;
  transition: all var(--rb-transition);
}
.rb-filter-btn:hover,
.rb-filter-btn.active {
  background: var(--rb-primary);
  border-color: var(--rb-primary);
  color: var(--rb-white);
}

.rb-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 48px 0;
}

.rb-review-card {
  background: var(--rb-white);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  overflow: hidden;
  transition: all var(--rb-transition);
  display: flex;
  flex-direction: column;
}
.rb-review-card:hover { transform: translateY(-3px); box-shadow: var(--rb-shadow-hover); border-color: var(--rb-primary); }

.rb-review-img { position: relative; }
.rb-review-img img { width: 100%; height: 200px; object-fit: cover; }
.rb-review-score {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--rb-primary);
  color: var(--rb-white);
  font-family: var(--rb-font-head);
  font-size: 18px;
  font-weight: 700;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rb-review-badge {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}
.rb-badge-best { background: var(--rb-primary); color: var(--rb-white); }
.rb-badge-budget { background: var(--rb-dark); color: var(--rb-white); }
.rb-badge-eco { background: #1D9E75; color: var(--rb-white); }

.rb-review-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.rb-review-cat { font-size: 11px; font-weight: 600; color: var(--rb-gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.rb-review-name { font-family: var(--rb-font-head); font-size: 17px; font-weight: 700; color: var(--rb-dark); margin-bottom: 8px; line-height: 1.3; }
.rb-review-stars { color: var(--rb-primary); font-size: 14px; margin-bottom: 10px; }
.rb-review-excerpt { font-size: 13px; color: var(--rb-text-muted); line-height: 1.65; margin: 0 0 16px; flex: 1; }

.rb-review-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0 18px;
  font-size: 12px;
}
.rb-pros h5, .rb-cons h5 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.rb-pros h5 { color: #1D9E75; }
.rb-cons h5 { color: #D85A30; }
.rb-pros ul, .rb-cons ul { list-style: none; }
.rb-pros ul li, .rb-cons ul li { color: var(--rb-text-muted); margin-bottom: 3px; padding-left: 14px; position: relative; font-size: 12px; }
.rb-pros ul li::before { content: '+'; position: absolute; left: 0; color: #1D9E75; font-weight: 700; }
.rb-cons ul li::before { content: '−'; position: absolute; left: 0; color: #D85A30; font-weight: 700; }

.rb-review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--rb-border);
  margin-top: auto;
}
.rb-review-price { font-family: var(--rb-font-head); font-size: 18px; font-weight: 700; color: var(--rb-dark); }
.rb-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rb-primary);
  color: var(--rb-white);
  padding: 9px 18px;
  border-radius: var(--rb-radius);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--rb-transition);
  border: none;
}
.rb-buy-btn:hover { background: var(--rb-primary-dark); color: var(--rb-white); }

/* ============================================================
   10. SIDEBAR
   ============================================================ */
.rb-sidebar { position: sticky; top: 80px; }

.rb-widget {
  background: var(--rb-white);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  padding: 22px;
  margin-bottom: 24px;
}
.rb-widget-title {
  font-family: var(--rb-font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--rb-dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--rb-primary);
  margin-bottom: 16px;
}

/* Search widget */
.rb-search-form { display: flex; gap: 6px; }
.rb-search-form input {
  flex: 1;
  padding: 9px 13px;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  font-size: 13px;
  font-family: var(--rb-font-body);
  color: var(--rb-text);
  background: var(--rb-gray-bg);
  outline: none;
}
.rb-search-form input:focus { border-color: var(--rb-primary); background: var(--rb-white); }
.rb-search-form button {
  background: var(--rb-primary);
  color: var(--rb-white);
  border: none;
  padding: 9px 14px;
  border-radius: var(--rb-radius);
  font-size: 14px;
  transition: background var(--rb-transition);
}
.rb-search-form button:hover { background: var(--rb-primary-dark); }

/* Recent posts widget */
.rb-recent-posts { list-style: none; }
.rb-recent-posts li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rb-border);
}
.rb-recent-posts li:last-child { border-bottom: none; padding-bottom: 0; }
.rb-recent-posts li img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--rb-radius); flex-shrink: 0; }
.rb-recent-posts li .rp-info { flex: 1; }
.rb-recent-posts li .rp-title { font-size: 13px; font-weight: 600; color: var(--rb-dark); line-height: 1.4; margin-bottom: 4px; }
.rb-recent-posts li .rp-title a { color: inherit; }
.rb-recent-posts li .rp-title a:hover { color: var(--rb-primary); }
.rb-recent-posts li .rp-date { font-size: 11px; color: var(--rb-gray); }

/* Category list widget */
.rb-cat-list { list-style: none; }
.rb-cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--rb-border);
}
.rb-cat-list li:last-child { border-bottom: none; }
.rb-cat-list li a { font-size: 14px; color: var(--rb-text-muted); font-weight: 500; transition: color var(--rb-transition); }
.rb-cat-list li a:hover { color: var(--rb-primary); }
.rb-cat-list li .count {
  background: var(--rb-gray-bg);
  color: var(--rb-gray);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Top products widget */
.rb-top-products { list-style: none; }
.rb-top-products li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rb-border);
}
.rb-top-products li:last-child { border-bottom: none; }
.rb-product-rank {
  width: 24px;
  height: 24px;
  background: var(--rb-primary);
  color: var(--rb-white);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rb-top-products li .prod-name { font-size: 13px; font-weight: 600; color: var(--rb-dark); line-height: 1.3; flex: 1; }
.rb-top-products li .prod-name a { color: inherit; }
.rb-top-products li .prod-name a:hover { color: var(--rb-primary); }
.rb-top-products li .prod-rating { font-size: 12px; color: var(--rb-primary); }

/* Newsletter widget */
.rb-newsletter-widget { text-align: center; }
.rb-newsletter-widget .rb-widget-title { border-bottom: none; }
.rb-newsletter-widget p { font-size: 13px; color: var(--rb-text-muted); margin-bottom: 14px; }
.rb-newsletter-widget input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  font-size: 13px;
  font-family: var(--rb-font-body);
  margin-bottom: 8px;
  outline: none;
}
.rb-newsletter-widget input[type="email"]:focus { border-color: var(--rb-primary); }
.rb-newsletter-widget button {
  width: 100%;
  background: var(--rb-primary);
  color: var(--rb-white);
  border: none;
  padding: 10px;
  border-radius: var(--rb-radius);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--rb-transition);
}
.rb-newsletter-widget button:hover { background: var(--rb-primary-dark); }

/* ============================================================
   11. FOOTER
   ============================================================ */
#site-footer {
  background: var(--rb-dark);
  color: var(--rb-gray-light);
  margin-top: auto;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 48px;
  border-bottom: 1px solid #3a3a38;
}

.footer-brand .footer-logo {
  font-family: var(--rb-font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--rb-white);
  margin-bottom: 14px;
  display: block;
}
.footer-brand .footer-logo span { color: var(--rb-primary); }
.footer-brand p { font-size: 14px; color: #888780; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px;
  background: #3a3a38;
  border-radius: var(--rb-radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--rb-gray-light);
  font-size: 15px;
  transition: all var(--rb-transition);
}
.footer-social a:hover { background: var(--rb-primary); color: var(--rb-white); }

.footer-col h4 {
  font-family: var(--rb-font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--rb-white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: #888780; transition: color var(--rb-transition); }
.footer-col ul li a:hover { color: var(--rb-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: #666663; margin: 0; }
.footer-bottom a { color: var(--rb-primary); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: #666663; transition: color var(--rb-transition); }
.footer-bottom-links a:hover { color: var(--rb-primary); }

/* ============================================================
   12. WORDPRESS WIDGETS (standard)
   ============================================================ */
.widget { margin-bottom: 24px; }
.widget select { width: 100%; padding: 8px; border: 1px solid var(--rb-border); border-radius: var(--rb-radius); font-family: var(--rb-font-body); }
.widget_calendar table { width: 100%; font-size: 13px; text-align: center; }
.widget_calendar th { background: var(--rb-primary); color: var(--rb-white); padding: 6px; }
.widget_calendar td { padding: 4px; }
.widget_calendar td a { color: var(--rb-primary); font-weight: 600; }
.widget_tag_cloud a {
  display: inline-block;
  background: var(--rb-gray-bg);
  border: 1px solid var(--rb-border);
  color: var(--rb-text-muted);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px !important;
  margin: 3px;
  transition: all var(--rb-transition);
}
.widget_tag_cloud a:hover { background: var(--rb-primary-light); border-color: var(--rb-primary); color: var(--rb-primary-dark); }

/* ============================================================
   13. COMMENTS
   ============================================================ */
#comments { margin-top: 48px; }
#comments .comments-title { font-size: 24px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--rb-border); }

.comment-list { list-style: none; }
.comment-list .comment { margin-bottom: 28px; }
.comment-body {
  background: var(--rb-gray-bg);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  padding: 20px;
}
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-author img { width: 44px; height: 44px; border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: var(--rb-dark); font-size: 14px; display: block; }
.comment-metadata { font-size: 12px; color: var(--rb-gray); }
.comment-metadata a { color: inherit; }
.comment-content p { font-size: 14px; color: var(--rb-text-muted); margin: 0; }
.reply a {
  font-size: 12px;
  font-weight: 600;
  color: var(--rb-primary);
  display: inline-block;
  margin-top: 10px;
}
.children { list-style: none; padding-left: 32px; margin-top: 16px; }

#respond { margin-top: 40px; }
#respond .comment-reply-title { font-size: 22px; margin-bottom: 20px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  font-family: var(--rb-font-body);
  font-size: 14px;
  color: var(--rb-text);
  background: var(--rb-white);
  outline: none;
  transition: border-color var(--rb-transition);
  margin-bottom: 16px;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--rb-primary);
  box-shadow: 0 0 0 3px rgba(184,90,26,0.1);
}
.comment-form label { font-size: 13px; font-weight: 600; color: var(--rb-dark); display: block; margin-bottom: 6px; }
.comment-form input[type="submit"] {
  background: var(--rb-primary);
  color: var(--rb-white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--rb-radius);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--rb-font-body);
  cursor: pointer;
  transition: background var(--rb-transition);
}
.comment-form input[type="submit"]:hover { background: var(--rb-primary-dark); }

/* ============================================================
   14. FORMS & INPUTS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea,
select {
  font-family: var(--rb-font-body);
  font-size: 14px;
  color: var(--rb-text);
  background: var(--rb-white);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--rb-transition);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--rb-primary);
  box-shadow: 0 0 0 3px rgba(184,90,26,0.1);
}

.rb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rb-primary);
  color: var(--rb-white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--rb-radius);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--rb-font-body);
  cursor: pointer;
  transition: background var(--rb-transition);
  text-decoration: none;
}
.rb-btn:hover { background: var(--rb-primary-dark); color: var(--rb-white); }
.rb-btn-outline {
  background: transparent;
  border: 2px solid var(--rb-primary);
  color: var(--rb-primary);
}
.rb-btn-outline:hover { background: var(--rb-primary); color: var(--rb-white); }
.rb-btn-dark { background: var(--rb-dark); }
.rb-btn-dark:hover { background: var(--rb-dark-mid); }

/* ============================================================
   15. PAGINATION
   ============================================================ */
.rb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 0;
}
.rb-pagination a,
.rb-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--rb-text-muted);
  transition: all var(--rb-transition);
}
.rb-pagination a:hover { background: var(--rb-primary-light); border-color: var(--rb-primary); color: var(--rb-primary); }
.rb-pagination .current { background: var(--rb-primary); border-color: var(--rb-primary); color: var(--rb-white); }
.rb-pagination .dots { border: none; cursor: default; }

/* ============================================================
   16. BREADCRUMBS
   ============================================================ */
.rb-breadcrumbs {
  padding: 12px 0;
  border-bottom: 1px solid var(--rb-border);
  background: var(--rb-gray-bg);
}
.rb-breadcrumbs nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--rb-gray);
}
.rb-breadcrumbs a { color: var(--rb-primary); }
.rb-breadcrumbs .sep { color: var(--rb-gray-light); }
.rb-breadcrumbs .current { color: var(--rb-dark); font-weight: 500; }

/* ============================================================
   17. 404 & SEARCH RESULTS
   ============================================================ */
.rb-404 {
  text-align: center;
  padding: 100px 0;
}
.rb-404 .error-num {
  font-family: var(--rb-font-head);
  font-size: 120px;
  font-weight: 700;
  color: var(--rb-primary);
  line-height: 1;
  margin-bottom: 16px;
}
.rb-404 h2 { font-size: 28px; margin-bottom: 12px; }
.rb-404 p { font-size: 16px; color: var(--rb-text-muted); margin-bottom: 32px; }

.rb-search-header { padding: 48px 0 0; margin-bottom: 0; }
.rb-search-header h1 { font-size: 32px; margin-bottom: 6px; }
.rb-search-header p { font-size: 15px; color: var(--rb-text-muted); }
.rb-search-header span { color: var(--rb-primary); font-weight: 600; }

/* ============================================================
   18. UTILITY CLASSES
   ============================================================ */
.rb-divider { border: none; border-top: 1px solid var(--rb-border); margin: 48px 0; }
.rb-text-center { text-align: center; }
.rb-mb-0 { margin-bottom: 0; }
.rb-mt-40 { margin-top: 40px; }
.rb-pt-40 { padding-top: 40px; }
.rb-pb-40 { padding-bottom: 40px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 8px; background: var(--rb-primary); color: var(--rb-white); padding: 8px 16px; border-radius: var(--rb-radius); font-size: 14px; z-index: 9999; transition: top 0.2s; }
.skip-link:focus { top: 8px; }

/* Reading progress bar */
#rb-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--rb-primary); width: 0%; z-index: 9999; transition: width 0.1s linear; }

/* Back to top */
#rb-back-top {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--rb-primary);
  color: var(--rb-white);
  border: none;
  width: 44px; height: 44px;
  border-radius: var(--rb-radius);
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 888;
  transition: background var(--rb-transition);
  box-shadow: var(--rb-shadow);
}
#rb-back-top:hover { background: var(--rb-primary-dark); }
#rb-back-top.visible { display: flex; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14px; }
thead th { background: var(--rb-dark); color: var(--rb-white); padding: 13px 16px; text-align: left; font-weight: 500; font-size: 13px; letter-spacing: 0.3px; }
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--rb-border); color: var(--rb-text-muted); vertical-align: middle; }
tbody tr:nth-child(even) td { background: var(--rb-gray-bg); }
tbody tr:hover td { background: var(--rb-primary-light); }
table .check { color: #1D9E75; font-weight: 700; }
table .cross { color: #D85A30; font-weight: 700; }

/* ============================================================
   19. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .rb-content-wrap { grid-template-columns: 1fr; gap: 32px; }
  .rb-sidebar { position: static; }
  .footer-widgets { grid-template-columns: 1fr 1fr; gap: 32px; }
  .rb-related-grid { grid-template-columns: repeat(2,1fr); }
  .rb-featured-post { grid-template-columns: 1fr; }
  .rb-featured-post .rb-post-thumb img { height: 240px; }
}

@media (max-width: 768px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .rb-hero h1 { font-size: 32px; letter-spacing: -0.5px; }
  .rb-hero p { font-size: 16px; }
  .rb-hero-stats { gap: 24px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .rb-cat-grid { grid-template-columns: repeat(2,1fr); }
  .rb-posts-grid { grid-template-columns: 1fr; }
  .rb-reviews-grid { grid-template-columns: 1fr; }
  .rb-post-header h1 { font-size: 26px; }
  .rb-author-box { flex-direction: column; }
  .rb-related-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .rb-reviews-header h1 { font-size: 26px; }
  .rb-product-box { grid-template-columns: 1fr; }
  .rb-hero-search { flex-direction: column; }
  .rb-posts-grid.list-view .rb-post-card { flex-direction: column; }
  .rb-posts-grid.list-view .rb-post-thumb { width: 100%; }
}

@media (max-width: 480px) {
  .rb-container { padding: 0 16px; }
  h1 { font-size: 26px; }
  .rb-hero { padding: 48px 0 40px; }
  .rb-cat-grid { grid-template-columns: 1fr; }
  .rb-review-pros-cons { grid-template-columns: 1fr; }
  #rb-back-top { bottom: 16px; right: 16px; }
}
