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

:root {
  --color-bg: #f0f2f5;
  --color-surface: #ffffff;
  --color-surface-hover: #fafbfc;
  --color-primary: #1a1a2e;
  --color-accent: #667eea;
  --color-accent-light: #8b5cf6;
  --color-text: #1f2937;
  --color-text-secondary: #6b7280;
  --color-text-muted: #9ca3af;
  --color-border: #e5e7eb;
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-danger: #ef4444;
  --color-danger-light: #fee2e2;
  --color-purple: #8b5cf6;
  --color-purple-light: #ede9fe;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 50%, #1e3a5f 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.site-header h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}

/* Intro */
.intro {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  border: 1px solid var(--color-border);
}

.last-updated {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* Table of Contents */
.toc {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.toc h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.toc ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.toc a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.toc a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.toc a:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}

/* Methodology & Content Sections */
.methodology,
.content-section {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.methodology h2,
.content-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.methodology h3,
.content-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.methodology p,
.content-section p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.methodology ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.methodology li {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.methodology li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  border-radius: 50%;
}

.methodology li strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Noscript Products */
.noscript-products {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.noscript-products h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

/* Author Box */
.author-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.author-box h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.author-box p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.author-credentials {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.copyright {
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
}

.section-header:first-of-type {
  margin-top: 2rem;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.section-icon.raw {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.section-icon.specialty {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.section-icon.bundle {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.section-header h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-top: 0.25rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Product Card */
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.product-card.featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), var(--shadow-lg);
}

/* Card Badges */
.card-badges {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.badge-cheapest {
  background: var(--color-success);
  color: #fff;
}

.badge-best-value {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}

.badge-top-rated {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
}

.badge-most-popular {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}

.badge svg {
  width: 12px;
  height: 12px;
}

/* Card Image */
.card-image-wrap {
  position: relative;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.product-image {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

/* Card Body */
.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-brand {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

/* Rating */
.rating-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.rating-stars svg {
  width: 14px;
  height: 14px;
}

.rating-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #d69e2e;
}

.reviews-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Price Block */
.price-block {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--radius-md);
}

.price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.price-unit {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.servings-info {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  background: var(--color-surface);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* Bundle Note */
.bundle-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-purple);
  font-weight: 500;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-purple-light);
  border-radius: var(--radius-sm);
}

.bundle-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* CTA Button */
.affiliate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  margin-top: auto;
  box-shadow: 0 2px 4px rgba(237, 137, 54, 0.3);
}

.affiliate-btn:hover {
  background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
  box-shadow: 0 4px 12px rgba(237, 137, 54, 0.4);
  transform: translateY(-1px);
}

.affiliate-btn svg {
  width: 16px;
  height: 16px;
}

/* Bundle Section Gradient */
.bundle-section {
  position: relative;
  padding: 2.5rem 0;
  margin: 0 -1.25rem;
}

.bundle-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 30%, #fed7aa 70%, #fecaca 100%);
  opacity: 0.4;
  z-index: 0;
}

.bundle-section .container {
  position: relative;
  z-index: 1;
}

.bundle-section .section-header {
  border-bottom-color: rgba(245, 158, 11, 0.3);
}

.bundle-section .product-card {
  background: linear-gradient(180deg, #fff 0%, #fffbf0 100%);
  border-color: #fcd34d;
}

.bundle-section .card-image-wrap {
  background: linear-gradient(180deg, #fef9c3 0%, #fef3c7 100%);
}

/* Specialty Section */
.specialty-section {
  position: relative;
  padding: 2.5rem 0;
  margin: 0 -1.25rem;
}

.specialty-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 30%, #e0e7ff 70%, #dbeafe 100%);
  opacity: 0.4;
  z-index: 0;
}

.specialty-section .container {
  position: relative;
  z-index: 1;
}

.specialty-section .section-header {
  border-bottom-color: rgba(139, 92, 246, 0.3);
}

.specialty-section .product-card {
  background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
  border-color: #d8b4fe;
}

.specialty-section .card-image-wrap {
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
}

/* FAQ */
.faq-section {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.faq-section h2 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  font-weight: 700;
}

.faq-list dt {
  font-weight: 600;
  color: var(--color-text);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.faq-list dt:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.faq-list dd {
  color: var(--color-text-secondary);
  margin-left: 0;
  padding-bottom: 0.5rem;
  line-height: 1.7;
}

/* Affiliate Disclosure */
.affiliate-disclosure {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.affiliate-disclosure h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-weight: 600;
}

.affiliate-disclosure p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .container {
    padding: 0 1rem;
  }

  .site-header {
    padding: 2.5rem 0 2rem;
  }

  .intro {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .toc,
  .methodology,
  .content-section,
  .noscript-products {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .toc ul {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin: 2rem 0 1rem;
  }

  .bundle-section,
  .specialty-section {
    margin: 0 -1rem;
    padding: 1.5rem 0;
  }

  .author-box {
    padding: 1.25rem;
  }

  .card-body {
    padding: 1rem 1.25rem 1.25rem;
  }

  .card-image-wrap {
    padding: 1.25rem 1.25rem 0;
  }

  .product-image {
    width: 140px;
    height: 140px;
  }

  .price-block {
    padding: 0.6rem;
  }

  .price-current {
    font-size: 1.2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-image,
  .affiliate-btn {
    transition: none;
  }

  .product-card:hover {
    transform: none;
  }

  .product-card:hover .product-image {
    transform: none;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
