@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;500;600;700;800&family=Rubik:wght@400;500;600;700;800&display=swap');

:root {
  --color-accent: #ad45e2;
  --color-accent-2: #df5005;
  --color-accent-3: #1fec16;
  --color-accent-warm: #e7b82c;
  --color-accent-soft: #ece4f0;
  --color-accent-2-soft: #f2e8e2;
  --color-accent-3-soft: #e4f1e3;
  --color-accent-warm-soft: #f1ede4;

  --color-bg: #fbf4ea;
  --color-bg-2: #f4e8d6;
  --color-bg-white: #fffaf3;
  --color-bg-rgb: 251, 244, 234;
  --color-bg-white-rgb: 255, 250, 243;
  --color-surface: rgba(194, 65, 12, 0.04);
  --color-surface-hover: rgba(194, 65, 12, 0.08);

  --color-text: #3a1f0c;
  --color-text-secondary: #6b4423;
  --color-text-muted: #a98b6a;

  --color-border: #e8d4b8;
  --color-border-light: #f0e2cb;

  --color-footer-bg: #2a1408;
  --color-footer-text: #f4e8d6;
  --color-footer-muted: #b89878;
  --color-footer-link: #e0c9a6;
  --color-footer-border: rgba(255, 235, 200, 0.12);
  --color-footer-social-bg: rgba(255, 235, 200, 0.08);
  --color-footer-social-border: rgba(255, 235, 200, 0.15);

  --font-heading: 'Bitter', 'Georgia', serif;
  --font-body: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;

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

  --shadow-xs: 0 1px 2px rgba(122, 60, 20, 0.06);
  --shadow-sm: 0 2px 6px rgba(122, 60, 20, 0.08);
  --shadow-md: 0 4px 14px rgba(122, 60, 20, 0.1);
  --shadow-lg: 0 12px 28px rgba(122, 60, 20, 0.14);
  --shadow-xl: 0 24px 48px rgba(122, 60, 20, 0.18);
}

/* ── Sun-washed page background with terrazzo noise ────────────────────── */
body {
  background:
    radial-gradient(ellipse 1200px 600px at 80% -10%, rgba(231, 184, 44, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 900px 500px at -10% 10%, rgba(223, 80, 5, 0.12) 0%, transparent 55%),
    var(--color-bg);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(194, 65, 12, 0.08) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 32%, rgba(231, 184, 44, 0.1) 0 3px, transparent 4px),
    radial-gradient(circle at 42% 68%, rgba(31, 236, 22, 0.05) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 88% 82%, rgba(173, 69, 226, 0.06) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 88%, rgba(194, 65, 12, 0.07) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 62% 12%, rgba(231, 184, 44, 0.09) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 6% 52%, rgba(223, 80, 5, 0.06) 0 2px, transparent 3px);
  background-size: 240px 240px, 320px 320px, 200px 200px, 280px 280px, 260px 260px, 220px 220px, 300px 300px;
}

.site-header, .hero, main, .site-footer { position: relative; z-index: 1; }

/* ── Announcement Bar ───────────────────────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, #2a1408 0%, #5c2c15 50%, #2a1408 100%);
}

/* ── Hero — Mediterranean sun-washed warmth ─────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(231, 184, 44, 0.3) 0%, transparent 55%),
    linear-gradient(180deg, #fff5e1 0%, #f9e8cf 60%, var(--color-bg) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 120%;
  height: 120%;
  background:
    radial-gradient(circle at 75% 30%, rgba(223, 80, 5, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 20% 60%, rgba(231, 184, 44, 0.2) 0%, transparent 45%);
  pointer-events: none;
  filter: blur(2px);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero,
.hero--split .hero-content {
  text-align: center;
}

.hero-actions,
.hero--split .hero-actions {
  justify-content: center;
}

.hero-subtitle {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badge {
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.12), rgba(231, 184, 44, 0.2));
  color: #c2410c;
  border: 1px solid rgba(194, 65, 12, 0.25);
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.1);
}

.hero-title {
  color: var(--color-text);
  text-shadow: 0 2px 0 rgba(255, 245, 225, 0.6);
}

/* ── Buttons — warm terracotta ──────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #c2410c 0%, #df5005 60%, #e7b82c 130%);
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.35);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 8px 22px rgba(194, 65, 12, 0.45);
  filter: brightness(1.04) saturate(1.05);
}

.btn-cta {
  background: linear-gradient(135deg, #c2410c 0%, #df5005 100%);
  box-shadow: 0 3px 10px rgba(194, 65, 12, 0.3);
}

.btn-cta:hover {
  box-shadow: 0 6px 16px rgba(194, 65, 12, 0.4);
  filter: brightness(1.05);
}

.btn-outline {
  border-color: #c2410c;
  color: #c2410c;
  background: rgba(255, 250, 243, 0.7);
}

.btn-outline:hover {
  background: rgba(194, 65, 12, 0.08);
  border-color: #c2410c;
}

/* ── Section titles ─────────────────────────────────────────────────────── */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c2410c, #e7b82c, transparent);
  border-radius: 3px;
}

/* ── Product Cards — warm with terrazzo flecks on hover ─────────────────── */
.product-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 22%, rgba(194, 65, 12, 0.06) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 38%, rgba(231, 184, 44, 0.08) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 48% 78%, rgba(31, 236, 22, 0.05) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 88%, rgba(173, 69, 226, 0.05) 0 1.5px, transparent 2.5px);
  background-size: 80px 80px;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 0;
}

.product-card:hover {
  border-color: #c2410c;
  box-shadow: 0 16px 36px rgba(194, 65, 12, 0.18);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card > * { position: relative; z-index: 1; }

.card-brand { color: #c2410c; }
.card-badge { background: linear-gradient(135deg, #df5005, #c2410c); }

/* ── Categories ─────────────────────────────────────────────────────────── */
.category-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
}

.category-card:hover {
  border-color: var(--color-accent-2);
  box-shadow: 0 12px 28px rgba(223, 80, 5, 0.15);
}

.category-icon {
  background: linear-gradient(135deg, rgba(223, 80, 5, 0.12), rgba(231, 184, 44, 0.18));
  color: var(--color-accent-2);
}

/* ── Newsletter — sun-washed terracotta band ────────────────────────────── */
.newsletter-section {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(223, 80, 5, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, #f9e8cf 0%, #f2dcb8 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.newsletter-form button {
  background: linear-gradient(135deg, #df5005, #c2410c);
}

.newsletter-form button:hover {
  background: linear-gradient(135deg, #c2410c, #9a3309);
}

/* ── FAQ section ────────────────────────────────────────────────────────── */
.faq-section {
  background: linear-gradient(180deg, var(--color-accent-2-soft) 0%, #f5e3cf 100%);
}

.faq-item[open] { border-color: var(--color-accent-2); }
.faq-item[open] .faq-question::after { color: var(--color-accent-2); }

/* ── Guide ──────────────────────────────────────────────────────────────── */
.guide-card:hover { border-color: var(--color-accent-warm); }

.guide-number {
  background: linear-gradient(135deg, #e7b82c, #d4a017);
  box-shadow: 0 4px 10px rgba(231, 184, 44, 0.4);
}

/* ── Testimonials ───────────────────────────────────────────────────────── */
.testimonials-section {
  background: linear-gradient(180deg, var(--color-accent-3-soft) 0%, #d8ecd6 100%);
}

.testimonial-avatar {
  background: rgba(31, 236, 22, 0.15);
  color: #15803d;
}

/* ── Stats ──────────────────────────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, #c2410c 0%, #df5005 50%, #e7b82c 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 32%, rgba(255, 255, 255, 0.1) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 68%, rgba(255, 255, 255, 0.08) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 48% 18%, rgba(255, 255, 255, 0.06) 0 1px, transparent 2px);
  background-size: 120px 120px;
  pointer-events: none;
}

/* ── Top Picks ──────────────────────────────────────────────────────────── */
.top-picks-section {
  background: linear-gradient(180deg, var(--color-accent-warm-soft) 0%, #ede0c6 100%);
}

.top-pick-rank {
  background: linear-gradient(135deg, #c2410c, #e7b82c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-pick-item:hover { border-color: var(--color-accent-warm); }

/* ── Brand Showcase ─────────────────────────────────────────────────────── */
.brand-initial {
  background: linear-gradient(135deg, #c2410c, #e7b82c);
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
}

/* ── New widgets — Mediterranean styling ────────────────────────────────── */
.price-history-section,
.user-reviews-section {
  background: linear-gradient(180deg, var(--color-bg-white) 0%, #fdf4e3 100%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.chart-bar {
  background: linear-gradient(180deg, rgba(231, 184, 44, 0.4) 0%, #df5005 100%);
}

.chart-bar-current {
  background: linear-gradient(180deg, #1fec16 0%, #15803d 100%);
  box-shadow: 0 0 14px rgba(31, 236, 22, 0.4);
}

.chart-note {
  background: rgba(31, 236, 22, 0.12);
  color: #15803d;
}

.reviews-big-number { color: #c2410c; }

.review-avatar {
  background: linear-gradient(135deg, #df5005, #c2410c);
}

.review-card {
  background: #fdf4e3;
  border-color: var(--color-border-light);
}

.pros-cons-widget,
.delivery-widget {
  background: linear-gradient(135deg, #fdf4e3 0%, #f7e8d1 100%);
  border-color: var(--color-border);
}

.delivery-item svg { color: var(--color-accent-2); }

.social-proof-popup {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 32px rgba(122, 60, 20, 0.2);
}

.popup-icon {
  background: linear-gradient(135deg, #15803d, #1fec16);
}

/* ── Trending ───────────────────────────────────────────────────────────── */
.trending-rank { color: #c2410c; }
.trending-item { background: #fdf4e3; }

/* ── Price save chip ────────────────────────────────────────────────────── */
.price-save {
  background: rgba(31, 236, 22, 0.18);
  color: #15803d;
}

/* ── Sun pulse animation on hero badge ──────────────────────────────────── */
@keyframes sun-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(194, 65, 12, 0.1); }
  50% { box-shadow: 0 4px 18px rgba(231, 184, 44, 0.35); }
}

.hero-badge {
  animation: sun-pulse 3.5s ease-in-out infinite;
}

@media (max-width: 768px) {
  body::before { opacity: 0.3; }
  .hero::before { display: none; }
}