@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800;900&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  /* Neutral rugged canvas */
  --color-bg: #fbfaf8;
  --color-bg-2: #f3f1ec;
  --color-bg-white: #ffffff;
  --color-bg-rgb: 251, 250, 248;
  --color-bg-white-rgb: 255, 255, 255;
  --color-surface: rgba(28,25,23,0.02);
  --color-surface-hover: rgba(234,88,12,0.06);
  --color-text: #1a1614;
  --color-text-secondary: #57534e;
  --color-text-muted: #a8a29e;

  /* Mandated 4-hue palette */
  --color-accent: #96e050;
  --color-accent-2: #1dc2ea;
  --color-accent-3: #c52de7;
  --color-accent-warm: #e29c43;
  --color-accent-soft: #eaf0e4;
  --color-accent-2-soft: #e3eef1;
  --color-accent-3-soft: #eee4f1;
  --color-accent-warm-soft: #f0ebe4;

  --color-star: #e29c43;
  --color-success: #2f9e44;
  --color-badge: #ea580c;
  --color-info: #1dc2ea;

  /* Fine hairlines */
  --color-border: #e6e2db;
  --color-border-light: #f0ede7;

  /* Typography — heading changed off default */
  --font-heading: 'Manrope', 'Helvetica Neue', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Mandated radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(28,22,20,0.05);
  --shadow-md: 0 4px 10px rgba(28,22,20,0.06);
  --shadow-lg: 0 12px 28px rgba(28,22,20,0.09);
  --shadow-xl: 0 22px 44px rgba(28,22,20,0.12);

  --color-footer-bg: #17130f;
  --color-footer-text: #f3f1ec;
  --color-footer-muted: #a8a29e;
  --color-footer-link: #d6d1c8;
  --color-footer-border: rgba(255,255,255,0.08);
  --color-footer-social-bg: rgba(255,255,255,0.06);
  --color-footer-social-border: rgba(255,255,255,0.12);
}

/* Rugged energetic accent bar */
.announcement-bar { background: #17130f; letter-spacing: 0.6px; text-transform: uppercase; }
.announcement-bar strong { color: #ea580c; }

/* ── Hero — centered stack with fine-line rugged texture ─────────────── */
.hero {
  text-align: center;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
}
.hero-content { text-align: center; margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }
.hero-subtitle { max-width: 520px; margin-left: auto; margin-right: auto; }

.hero::before {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 140%; height: 120%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(234,88,12,0.10) 0%, transparent 55%),
    repeating-linear-gradient(90deg, rgba(28,22,20,0.035) 0 1px, transparent 1px 88px);
  pointer-events: none;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  letter-spacing: -1.5px;
}

.hero-badge {
  color: var(--color-badge);
  background: rgba(234,88,12,0.09);
  border: 1px solid rgba(234,88,12,0.35);
  border-radius: var(--radius-sm);
}

/* ── Ghost-outline CTAs ──────────────────────────────────────────────── */
.btn-primary {
  background: transparent;
  color: var(--color-badge);
  border: 1.5px solid var(--color-badge);
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--color-badge);
  color: #fff;
  transform: translateY(-2px);
  filter: none;
  box-shadow: 0 6px 18px rgba(234,88,12,0.28);
}
.btn-outline {
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
}
.btn-outline:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); }

.card-body > .btn.btn-cta,
.btn-cta {
  background: transparent !important;
  color: var(--color-badge) !important;
  border: 1.5px solid var(--color-badge);
  box-shadow: none;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.btn-cta:hover {
  background: var(--color-badge) !important;
  color: #fff !important;
  filter: none;
  box-shadow: 0 4px 14px rgba(234,88,12,0.25);
}

.filter-btn.active, .page-num.active {
  background: var(--color-badge); border-color: var(--color-badge); color: #fff;
}
.filter-btn:hover, .page-btn:hover, .page-num:hover { border-color: var(--color-badge); color: var(--color-badge); }
.nav-link.active { color: var(--color-badge); background: rgba(234,88,12,0.08); }
.card-brand, .product-brand-link { color: var(--color-badge); }

/* ── Section headings — display serif accents ────────────────────────── */
.section-title, .page-title, .newsletter-text h3, .product-title,
.footer-logo, .stat-number, .top-pick-rank {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.5px;
}

/* ── Product cards — muted duotone frames, hairline grid ─────────────── */
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(234,88,12,0.4);
}
.card-body { flex: 1; display: flex; flex-direction: column; }
.card-body .btn-cta { margin-top: auto; }

.card-image-wrapper {
  background: #ede9e3;
  filter: grayscale(0.35) contrast(1.02);
  transition: filter 0.4s ease;
}
.card-image-wrapper::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(234,88,12,0.22) 0%, rgba(28,22,20,0.12) 100%);
  mix-blend-mode: multiply;
  opacity: 0.55;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.product-card:hover .card-image-wrapper { filter: grayscale(0) contrast(1); }
.product-card:hover .card-image-wrapper::after { opacity: 0; }

/* ── Monospace price tags ────────────────────────────────────────────── */
.price-current, .price-original, .price-big, .price-was,
.chart-price-label, .reviews-big-number {
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
}
.price-current, .price-big { color: var(--color-badge); }
.price-save {
  font-family: var(--font-mono);
  background: rgba(47,158,68,0.12);
  color: var(--color-success);
}

/* ── Category cards ──────────────────────────────────────────────────── */
.category-card:hover { border-color: var(--color-accent-2); }
.category-icon { background: var(--color-accent-2-soft); color: var(--color-accent-2); }

/* ── New widgets ─────────────────────────────────────────────────────── */
.price-history-section, .user-reviews-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
}
.price-history-section { border-top: 3px solid var(--color-accent); }
.user-reviews-section { border-top: 3px solid var(--color-accent-3); }
.chart-bar {
  background: linear-gradient(180deg, rgba(234,88,12,0.25) 0%, var(--color-badge) 100%);
}
.chart-bar-current {
  background: linear-gradient(180deg, var(--color-accent) 0%, #2f9e44 100%);
  box-shadow: 0 0 12px rgba(150,224,80,0.35);
}
.review-avatar { background: var(--color-badge); }
.review-bar-fill { background: var(--color-accent-warm); }

.pros-cons-widget {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent-2);
}
.delivery-widget {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent-warm);
}
.delivery-item svg { color: var(--color-accent-warm); }

.social-proof-popup {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-badge);
  border-radius: var(--radius-md);
}
.popup-icon { background: var(--color-accent); }

/* ── Newsletter / stats / FAQ accents ────────────────────────────────── */
.newsletter-form button { background: var(--color-accent-2); }
.newsletter-form button:hover { background: #159fc0; }
.stats-section { background: linear-gradient(135deg, var(--color-badge), var(--color-accent-warm)); }
.faq-item[open] { border-color: var(--color-accent-2); }
.faq-item[open] .faq-question::after { color: var(--color-accent-2); }
.guide-number { background: var(--color-accent-warm); }
.trending-rank { color: var(--color-badge); }

/* ── Decorative animated accent underline on section headers ─────────── */
.section-header .section-title { position: relative; display: inline-block; }
.section-header .section-title::after {
  content: '';
  display: block;
  width: 44px; height: 3px;
  margin: 12px auto 0;
  background: var(--color-badge);
  border-radius: 2px;
  animation: rug-pulse 3s ease-in-out infinite;
}
@keyframes rug-pulse {
  0%, 100% { width: 44px; opacity: 0.85; }
  50% { width: 72px; opacity: 1; }
}