:root {
  /* Colors */
  --primary: #2d5a27;
  --primary-dark: #1a3d1a;
  --primary-light: #3d7a35;
  --primary-lighter: #7cb87c;
  --primary-bg: #e8f5e8;
  --accent: #ff6b35;
  --accent-bg: #fff4f0;
  --amazon: #ff9900;
  --amazon-dark: #e68a00;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --star: #ffa41c;

  /* Neutrals */
  --text: #1a2e1a;
  --text-light: #5a6c5a;
  --text-muted: #8fa88f;
  --heading: #0f1f0f;
  --border: #e5ebe5;
  --bg: #fff;
  --bg-light: #f8faf8;
  --bg-dark: #1a2e1a;
  --bg-darker: #152415;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --fw-light: 300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 60px;

  /* Layout */
  --container: 1400px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 50px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(26, 46, 26, 0.05);
  --shadow-md: 0 4px 12px rgba(26, 46, 26, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 46, 26, 0.12);
  --shadow-xl: 0 20px 50px rgba(26, 46, 26, 0.15);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  margin: 0;
}

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: var(--space-2xl) 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--fw-semibold);
  color: var(--heading);
  line-height: 1.3;
  margin: 0 0 var(--space-md);
}
h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.5px;
}
h2 {
  font-size: clamp(26px, 4vw, 36px);
}
h3 {
  font-size: clamp(20px, 3vw, 26px);
}
h4 {
  font-size: clamp(18px, 2.5vw, 22px);
}
p {
  margin: 0 0 var(--space-md);
}
p:last-child {
  margin-bottom: 0;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover {
  color: var(--primary-dark);
}

/* ============================================
   SEO CONTENT - Long-form Content Styling
   Overrides inline styles from TinyMCE
   ============================================ */

.seo-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

/* Force override inline styles */
.seo-content * {
  font-family: var(--font) !important;
  box-sizing: border-box;
}

/* Headings */
.seo-content h1,
.seo-content h2,
.seo-content h3,
.seo-content h4,
.seo-content h5,
.seo-content h6 {
  color: var(--heading) !important;
  font-weight: var(--fw-semibold) !important;
  line-height: 1.4 !important;
}

.seo-content h1 {
  font-size: 32px !important;
}
.seo-content h2 {
  font-size: 26px !important;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px !important;
}
.seo-content h3 {
  font-size: 22px !important;
}
.seo-content h4 {
  font-size: 18px !important;
}
.seo-content h5 {
  font-size: 16px !important;
}
.seo-content h6 {
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* First heading - no top margin */
.seo-content > h1:first-child,
.seo-content > h2:first-child,
.seo-content > h3:first-child {
  margin-top: 0 !important;
}

/* Paragraphs */
.seo-content p {
  font-size: 17px !important;
  line-height: 1.8 !important;
  color: var(--text) !important;
  margin-top: 0 !important;
  margin-bottom: 1.5em !important;
}

.seo-content p:last-child {
  margin-bottom: 0 !important;
}

/* Links */
.seo-content a {
  color: var(--primary) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1px !important;
  transition: color var(--duration), text-decoration-color var(--duration);
}

.seo-content a:hover {
  color: var(--primary-dark) !important;
  text-decoration-color: var(--primary-dark) !important;
}

/* Strong & Bold */
.seo-content strong,
.seo-content b {
  font-weight: var(--fw-semibold) !important;
  color: var(--heading) !important;
}

/* Italic & Emphasis */
.seo-content em,
.seo-content i:not(.fas):not(.far):not(.fab) {
  font-style: italic !important;
}

/* Unordered Lists */
.seo-content ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 1.5em 0 !important;
}

.seo-content ul li {
  position: relative;
  padding-left: 19px !important;
  margin-bottom: 12px !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: var(--text) !important;
}

.seo-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.seo-content ul li:last-child {
  margin-bottom: 0 !important;
}

/* Nested UL */
.seo-content ul ul {
  margin: 12px 0 0 0 !important;
}

.seo-content ul ul li::before {
  background: transparent;
  border: 2px solid var(--primary);
  width: 6px;
  height: 6px;
}

/* Ordered Lists */
.seo-content ol {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 1.5em 0 !important;
  counter-reset: ol-counter;
}

.seo-content ol li {
  position: relative;
  padding-left: 36px !important;
  margin-bottom: 12px !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: var(--text-light) !important;
  counter-increment: ol-counter;
}

.seo-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seo-content ol li:last-child {
  margin-bottom: 0 !important;
}

/* Tables */
.seo-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 2em 0 !important;
  font-size: 15px !important;
}

.seo-content table th,
.seo-content table td {
  padding: 14px 16px !important;
  text-align: left !important;
}

.seo-content table th {
  background: var(--bg-light) !important;
  font-weight: var(--fw-semibold) !important;
  color: var(--heading) !important;
  white-space: nowrap;
}

.seo-content table tr:hover td {
  background: var(--bg-light);
}

.seo-content table td {
  color: var(--text-light) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}
.btn-amazon {
  background: var(--amazon);
  color: #111;
  border-color: var(--amazon);
}
.btn-amazon:hover {
  background: var(--amazon-dark);
  border-color: var(--amazon-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}
.btn-pill {
  border-radius: var(--radius-full);
}

/* Cards */
.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-lighter);
}
.card-body {
  padding: var(--space-lg);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
}
.badge-primary {
  background: var(--primary-bg);
  color: var(--primary);
}
.badge-amazon {
  background: #fff4e6;
  color: var(--amazon-dark);
}
.badge-success {
  background: #d1fae5;
  color: #059669;
}

/* Rating */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rating i {
  color: var(--star);
  font-size: 14px;
}
.rating-text {
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--text-light);
  margin-left: 6px;
}

/* Forms */
.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-bg);
}
.form-input::placeholder {
  color: var(--text-muted);
}

/* Utilities */
.text-center {
  text-align: center;
}
.text-primary {
  color: var(--primary);
}
.text-muted {
  color: var(--text-muted);
}
.text-sm {
  font-size: 14px;
}
.text-xs {
  font-size: 12px;
}
.fw-light {
  font-weight: var(--fw-light);
}
.fw-medium {
  font-weight: var(--fw-medium);
}
.fw-semibold {
  font-weight: var(--fw-semibold);
}
.fw-bold {
  font-weight: var(--fw-bold);
}
.d-flex {
  display: flex;
}
.d-none {
  display: none;
}
.align-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.gap-sm {
  gap: var(--space-sm);
}
.gap-md {
  gap: var(--space-md);
}
.gap-lg {
  gap: var(--space-lg);
}
.mt-md {
  margin-top: var(--space-md);
}
.mt-lg {
  margin-top: var(--space-lg);
}
.mb-md {
  margin-bottom: var(--space-md);
}
.mb-lg {
  margin-bottom: var(--space-lg);
}
.bg-light {
  background: var(--bg-light);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}

/* Section Header */
.section-header {
  margin-bottom: var(--space-xl);
}
.section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
}
.section-subtitle {
  font-size: 16px;
  font-weight: var(--fw-light);
  color: var(--text-light);
  max-width: 600px;
}
.section-header.text-center .section-subtitle {
  margin: 0 auto;
}

/* ============================================
   SHARED COMPONENTS (used across multiple pages)
   ============================================ */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-light);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb .separator {
  color: var(--text-muted);
  font-size: 10px;
}
.breadcrumb .current {
  color: var(--text);
  font-weight: var(--fw-medium);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Product Card */
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all var(--duration) var(--ease);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-lighter);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--accent), #e55a2d);
  color: #fff;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  z-index: 2;
}
.product-image {
  display: block;
  background: var(--bg-light);
  padding: 20px;
}
.product-image img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  transition: transform var(--duration);
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-content {
  padding: 16px;
}
.product-category,
.product-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-category {
  color: var(--text-muted);
}
.product-brand {
  color: var(--primary);
  font-weight: var(--fw-medium);
}
.product-title {
  text-decoration: none;
}
.product-title h3 {
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--heading);
  line-height: 1.4;
  margin: 8px 0 10px;
  display: -webkit-box;
  overflow: hidden;
  min-height: 40px;
}
.product-title:hover h3 {
  color: var(--primary);
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.product-rating .stars {
  display: flex;
  gap: 2px;
}
.product-rating .stars i {
  font-size: 12px;
  color: var(--star);
}
.product-rating .rating-text {
  font-size: 12px;
  color: var(--text-light);
}
.product-price {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--heading);
  margin-bottom: 12px;
}
.product-actions {
  display: flex;
  gap: 8px;
}
.product-actions .btn {
  flex: 1;
  font-size: 12px;
  padding: 10px;
}

/* Content Block (for SEO/review content) */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}
.content-block h2 {
  font-size: 24px;
  margin: 30px 0 16px;
}
.content-block h3 {
  font-size: 20px;
  margin: 24px 0 12px;
}
.content-block p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}
.content-block a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg);
  border-radius: var(--radius-lg);
}
.no-results i {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}
.no-results p {
  font-size: 16px;
  color: var(--text-light);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.animate-fadeInUp {
  animation: fadeInUp 0.5s var(--ease) forwards;
}
.animate-spin {
  animation: spin 1s linear infinite;
}

/* Shared Responsive */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: var(--space-xl) 0;
  }
  .hide-mobile {
    display: none !important;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .seo-content {
    font-size: 16px;
  }

  .seo-content h1 {
    font-size: 26px !important;
  }
  .seo-content h2 {
    font-size: 22px !important;
  }
  .seo-content h3 {
    font-size: 19px !important;
  }
  .seo-content h4 {
    font-size: 17px !important;
  }

  .seo-content p,
  .seo-content ul li,
  .seo-content ol li {
    font-size: 16px !important;
  }

  .seo-content blockquote {
    padding: 18px 20px !important;
    font-size: 16px !important;
  }

  .seo-content table {
    font-size: 14px !important;
  }

  .seo-content table th,
  .seo-content table td {
    padding: 10px 12px !important;
  }
}
@media (max-width: 480px) {
  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}
