@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Core backgrounds — warm dark */
  --color-bg: #100d0b;
  --color-bg-2: #17130f;
  --color-bg-white: #1c1613;
  --color-bg-rgb: 16, 13, 11;
  --color-bg-white-rgb: 28, 22, 19;

  /* Surfaces */
  --color-surface: rgba(255,255,255,0.03);
  --color-surface-hover: rgba(255,255,255,0.06);

  /* Text */
  --color-text: #f3ece5;
  --color-text-secondary: #bcafa4;
  --color-text-muted: #82756b;

  /* Borders */
  --color-border: rgba(255,255,255,0.10);
  --color-border-light: rgba(255,255,255,0.05);

  /* Mandated accent palette (4 distinct hues) */
  --color-accent: #cb22e9;
  --color-accent-2: #ea820d;
  --color-accent-3: #37e551;
  --color-accent-warm: #e2ab44;
  --color-accent-soft: #2c1c2f;
  --color-accent-2-soft: #30261c;
  --color-accent-3-soft: #1d2f20;
  --color-accent-warm-soft: #2e281d;

  /* Utility */
  --color-star: #e2ab44;
  --color-success: #37e551;
  --color-badge: #ea820d;
  --color-info: #cb22e9;

  /* Footer */
  --color-footer-bg: #0a0806;
  --color-footer-text: #f3ece5;
  --color-footer-muted: #82756b;
  --color-footer-link: #bcafa4;
  --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.10);

  /* Typography */
  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Cormorant Garamond', 'Georgia', serif;

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

  /* Shadows — deeper for dark */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.6), 0 4px 10px rgba(0,0,0,0.45);
  --shadow-xl: 0 22px 48px rgba(0,0,0,0.68), 0 8px 16px rgba(0,0,0,0.5);
}

/* Body sizing bump so the serif body stays readable */
body { font-size: 16px; letter-spacing: 0.1px; }
.logo-text { font-weight: 800; letter-spacing: -0.4px; }

/* ── Hero: dark saturated terracotta band over the dark body ─────────────── */
.hero {
  text-align: center;
  background:
    linear-gradient(180deg, #4a1607 0%, #2a0f08 55%, var(--color-bg) 100%);
  border-bottom: 1px solid rgba(154,52,18,0.35);
}
.hero-content { text-align: center; }
.hero--split .hero-content { text-align: center; margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }
.hero--split .hero-actions { justify-content: center; }
.hero-subtitle { max-width: 520px; margin-left: auto; margin-right: auto; color: #e5d2c6; }

.hero::before {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 140%; height: 120%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(203,34,233,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 72% 30%, rgba(234,130,13,0.16) 0%, transparent 55%);
  pointer-events: none;
  animation: heroDrift 16s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(2%, -3%, 0) scale(1.06); }
}

.hero-title { color: #fbf3ee; letter-spacing: -1px; }
.hero-badge {
  color: #fbe9ff;
  background: rgba(203,34,233,0.18);
  border: 1px solid rgba(203,34,233,0.4);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset;
}

/* ── Buttons: high-contrast CTA ──────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #a013c4 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(203,34,233,0.35);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 8px 24px rgba(203,34,233,0.45); }
.btn-outline { border: 1.5px solid var(--color-accent-2); color: #f6c98a; background: transparent; }
.btn-outline:hover { background: var(--color-accent-2-soft); border-color: var(--color-accent-2); }
.btn-cta { background: linear-gradient(135deg, var(--color-accent) 0%, #a013c4 100%); box-shadow: 0 3px 12px rgba(203,34,233,0.3); }
.btn-cta:hover { filter: brightness(1.08); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--color-border); }
.nav-link.active { color: #f0b0fb; background: var(--color-accent-soft); }
.search-input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(203,34,233,0.18); }

/* ── Product cards: tight, tactile grid ──────────────────────────────────── */
.product-grid { gap: 18px; }
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  position: relative;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(203,34,233,0.4);
  box-shadow: 0 16px 36px rgba(0,0,0,0.55), 0 0 22px rgba(203,34,233,0.12);
}
.card-body { flex: 1; display: flex; flex-direction: column; }
.card-body .btn-cta { margin-top: auto; }
.card-brand { color: #ea820d; }
.card-quick-view { background: rgba(74,22,7,0.88); }
.star-empty { color: rgba(255,255,255,0.18); }

/* ── Category cards ──────────────────────────────────────────────────────── */
.category-card:hover { border-color: var(--color-accent-2); box-shadow: 0 12px 28px rgba(0,0,0,0.5); }
.category-icon { background: var(--color-accent-2-soft); color: #f6c98a; }

/* ── Section decorative accent underline ─────────────────────────────────── */
.section-title { position: relative; }
.section-header .section-title::after {
  content: '';
  display: block;
  width: 54px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
}

/* ── Section-themed surfaces (dark tints) ────────────────────────────────── */
.faq-section { background: var(--color-accent-2-soft); }
.faq-item[open] { border-color: var(--color-accent-2); }
.faq-item[open] .faq-question::after { color: var(--color-accent-2); }
.testimonials-section { background: var(--color-accent-3-soft); }
.testimonial-avatar { background: rgba(55,229,81,0.16); color: #7bf39a; }
.top-picks-section { background: var(--color-accent-warm-soft); }
.top-pick-tag { background: rgba(226,171,68,0.18); color: #f0cd88; }
.top-pick-rank, .top-pick-item:hover { border-color: var(--color-accent-warm); }
.guide-card:hover { border-color: var(--color-accent-warm); }
.guide-number { background: var(--color-accent-warm); color: #241a08; }
.stats-section { background: linear-gradient(135deg, #6a1e0a 0%, var(--color-accent) 55%, #a013c4 100%); }

/* ── Newsletter ──────────────────────────────────────────────────────────── */
.newsletter-form button { background: var(--color-accent-2); color: #241505; }
.newsletter-form button:hover { background: #f6982a; }
.newsletter-form input:focus { border-color: var(--color-accent-2); }

/* ── Price / trust widgets ───────────────────────────────────────────────── */
.product-price-block { background: var(--color-bg-2); }
.price-save { background: rgba(55,229,81,0.14); color: #7bf39a; }
.mini-badge { background: var(--color-bg-2); }

/* ── New widgets (dark surfaces) ─────────────────────────────────────────── */
.price-history-section,
.user-reviews-section {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.chart-bar { background: linear-gradient(180deg, rgba(203,34,233,0.35) 0%, var(--color-accent) 100%); opacity: 0.8; }
.chart-bar-current { background: linear-gradient(180deg, rgba(55,229,81,0.5) 0%, var(--color-success) 100%); box-shadow: 0 0 14px rgba(55,229,81,0.35); }
.chart-note { background: rgba(55,229,81,0.10); color: #7bf39a; }
.review-card { background: var(--color-bg-2); border-color: var(--color-border-light); }
.review-avatar { background: var(--color-accent); }
.verified-badge { background: rgba(55,229,81,0.12); color: #7bf39a; }
.review-bar-track { background: rgba(255,255,255,0.06); }

.pros-cons-widget,
.delivery-widget { background: var(--color-bg-2); border: 1px solid var(--color-border); }
.delivery-item svg { color: var(--color-accent); }
.pros-heading, .check-icon { color: var(--color-success); }
.cons-heading, .cross-icon { color: var(--color-badge); }

.social-proof-popup {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
.popup-icon { background: var(--color-success); color: #08210d; }

/* ── Comparison / trending / brand ───────────────────────────────────────── */
.comparison-table th { background: var(--color-bg-2); }
.comparison-table tbody tr:hover { background: var(--color-surface-hover); }
.brand-showcase-section { background: var(--color-bg-2); }
.brand-card { background: var(--color-bg-white); }
.brand-initial { background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2)); }
.trending-section { background: var(--color-bg); }
.trending-item { background: var(--color-bg-2); border-color: var(--color-border-light); }
.trending-rank { color: var(--color-accent); }
.trending-hot { background: rgba(234,130,13,0.14); color: #f6982a; }

/* ── Cookie banner ───────────────────────────────────────────────────────── */
.cookie-banner { background: var(--color-bg-white); border-top: 1px solid var(--color-border); }

/* ── Card layout guards (preserve flex) ──────────────────────────────────── */
.product-card { display: flex; flex-direction: column; }
.card-body { flex: 1; display: flex; flex-direction: column; }
.card-body .btn-cta { margin-top: auto; }

/* ── Mobile: keep hero centered, light on pseudo-elements ────────────────── */
@media (max-width: 768px) {
  .hero::before { animation: none; opacity: 0.7; }
  .hero-content { text-align: center; }
}