:root {
  --bg: #FAF8F5;
  --fg: #1A1A1A;
  --accent: #1B4332;
  --amber: #D97706;
  --amber-light: #FEF3C7;
  --muted: #6B7280;
  --border: #E5E7EB;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.2;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 18px;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber-light);
  color: #92400E;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero-headline {
  font-size: clamp(40px, 5vw, 60px);
  color: var(--fg);
  margin-bottom: 18px;
  font-weight: 700;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 32px;
}
.hero-search { display: flex; flex-direction: column; gap: 12px; }
.search-input-wrap {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px 14px 44px;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}
.search-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.08);
}
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
.search-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  background: transparent;
  color: var(--muted);
}
.hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.tag {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--fg);
  font-family: 'Fraunces', serif;
  font-style: italic;
}

/* Hero visual */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.price-cards-stack { position: relative; width: 300px; height: 240px; }
.price-card {
  position: absolute;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  width: 220px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.card-1 { top: 0; left: 40px; border-color: var(--accent); z-index: 3; }
.card-2 { top: 50px; left: 0; z-index: 2; opacity: 0.85; }
.card-3 { top: 100px; left: 80px; z-index: 1; opacity: 0.7; }
.card-retailer { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.card-product { font-size: 13px; font-weight: 500; color: var(--fg); margin-bottom: 8px; font-family: 'Fraunces', serif; font-style: italic; }
.card-price { font-size: 22px; font-weight: 700; color: var(--accent); }
.card-strike { text-decoration: line-through; color: var(--muted); font-size: 20px; }
.card-badge {
  position: absolute;
  top: -10px; right: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.card-badge.card-best { background: var(--amber); }

/* Search demo */
.search-demo {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
  text-align: center;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}
.demo-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.demo-cat {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.demo-cat:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(27, 67, 50, 0.08);
  transform: translateY(-2px);
}
.cat-icon { margin-bottom: 14px; display: flex; justify-content: center; }
.cat-label { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.cat-count { font-size: 12px; color: var(--muted); }

/* How it works */
.how-it-works {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  border-top: 1px solid var(--border);
}
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 60px;
}
.step { flex: 1; padding: 0 32px; }
.step:first-child { padding-left: 0; }
.step-number { font-family: 'Fraunces', serif; font-size: 42px; font-weight: 700; color: var(--accent); opacity: 0.12; margin-bottom: 10px; font-style: italic; }
.step-title { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.step-body { font-size: 15px; color: var(--muted); line-height: 1.7; }
.step-connector { width: 60px; height: 1px; background: var(--border); margin-top: 24px; flex-shrink: 0; }

/* Comparison bar */
.comparison-bar { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden; }
.comp-header { padding: 16px 24px; border-bottom: 1px solid var(--border); background: var(--bg); display: flex; justify-content: space-between; align-items: center; }
.comp-header span:first-child { font-family: 'Fraunces', serif; font-weight: 600; font-size: 15px; }
.comp-tag { font-size: 12px; color: var(--muted); }
.comp-rows { padding: 0; }
.comp-row {
  display: grid;
  grid-template-columns: 60px 1fr auto 120px auto;
  gap: 12px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.comp-row:last-child { border-bottom: none; }
.comp-best { background: rgba(27, 67, 50, 0.04); }
.comp-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.comp-store { font-size: 14px; font-weight: 500; }
.comp-price { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; color: var(--accent); }
.comp-ship { font-size: 12px; color: var(--muted); }
.comp-badge { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 100px; }

/* Why */
.why-section { background: var(--accent); padding: 80px 24px; }
.why-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why-icon { margin-bottom: 16px; }
.why-card h3 { font-size: 20px; color: #FAF8F5; margin-bottom: 8px; }
.why-card p { font-size: 15px; color: rgba(250,248,245,0.65); line-height: 1.7; }

/* Closing */
.closing { padding: 100px 24px; text-align: center; background: var(--bg); border-top: 1px solid var(--border); }
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.closing p { font-size: 17px; color: var(--muted); margin-bottom: 32px; }
.closing-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.closing-tags span { background: #fff; border: 1.5px solid var(--border); border-radius: 100px; padding: 8px 16px; font-size: 14px; color: var(--muted); }

/* Footer */
footer { background: var(--accent); padding: 40px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: #FAF8F5; font-family: 'Fraunces', serif; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.footer-tagline { color: rgba(250,248,245,0.5); font-size: 14px; font-style: italic; margin-bottom: 12px; }
.footer-copy { color: rgba(250,248,245,0.35); font-size: 12px; }

/* Search results page */
.search-results-header {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 57px;
  z-index: 50;
}
.srh-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.srh-form .search-input-wrap {
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 14px;
}
.srh-form .search-input {
  flex: 1;
}
.search-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.search-btn:hover { background: #143728; }
.srh-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.filter-tag { font-size: 12px; color: var(--muted); }
.clear-filter { font-size: 12px; color: var(--amber); text-decoration: none; font-weight: 500; }
.clear-filter:hover { text-decoration: underline; }

/* Results main */
.results-main {
  min-height: 60vh;
  padding: 40px 24px;
}
.results-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.results-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.no-results { text-align: center; padding: 40px 0; }
.no-results h2 { font-family: 'Fraunces', serif; margin-bottom: 8px; }
.no-results p { color: var(--muted); }

/* Product grid */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(27, 67, 50, 0.08);
}
.product-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--bg);
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}
.product-info {
  padding: 20px 24px 0;
}
.product-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.product-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Offer list */
.offer-list {
  border-top: 1px solid var(--border);
  margin: 0 -24px;
}
.offer-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.offer-row:last-child { border-bottom: none; }
.offer-best {
  background: rgba(27, 67, 50, 0.03);
}
.offer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.best-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-block;
  width: fit-content;
}
.offer-retailer {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.offer-center {
  display: flex;
  align-items: center;
  gap: 12px;
}
.offer-price {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
}
.price-best {
  color: var(--accent);
  font-size: 22px;
}
.offer-shipping {
  font-size: 12px;
  color: var(--muted);
}
.offer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.offer-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
}
.offer-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.offer-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.btn-best {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-best:hover {
  background: #143728;
  border-color: #143728;
  color: #fff;
}

/* Price trend indicators */
.trend-indicator {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
  width: fit-content;
}
.trend-up {
  background: rgba(239, 68, 68, 0.10);
  color: #dc2626;
}
.trend-down {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}
.trend-flat {
  background: rgba(107, 114, 128, 0.10);
  color: var(--muted);
}

/* Sparkline in offer row */
.sparkline {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}
.offer-price-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Price stats row */
.price-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 20px 40px; }
  .hero-visual { display: none; }
  .demo-categories { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { flex-direction: column; gap: 28px; }
  .step-connector { display: none; }
  .step { padding: 0; }
  .comp-row { grid-template-columns: 50px 1fr auto; }
  .comp-ship, .comp-badge { display: none; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .demo-categories { grid-template-columns: 1fr; }
}
