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

:root {
  --color-bg: #faf6ef;
  --color-bg-2: #f3ebdc;
  --color-bg-white: #fffaf2;
  --color-bg-rgb: 250, 246, 239;
  --color-bg-white-rgb: 255, 250, 242;
  --color-surface: rgba(67, 20, 7, 0.03);
  --color-surface-hover: rgba(67, 20, 7, 0.06);
  --color-text: #2a1408;
  --color-text-secondary: #5c3b25;
  --color-text-muted: #a88b6f;

  --color-accent: #33e5c6;
  --color-accent-2: #9547e2;
  --color-accent-3: #e54b35;
  --color-accent-warm: #ea661d;
  --color-accent-soft: #e4f0ee;
  --color-accent-2-soft: #eae4f0;
  --color-accent-3-soft: #f0e5e4;
  --color-accent-warm-soft: #f1e8e3;

  --color-star: #ea661d;
  --color-success: #4a7c2e;
  --color-badge: #7f1d1d;
  --color-info: #431407;

  --color-border: #e8dcc4;
  --color-border-light: #f0e6d1;

  --color-footer-bg: #431407;
  --color-footer-text: #f5ebd8;
  --color-footer-muted: #b89d7e;
  --color-footer-link: #e8d8b8;
  --color-footer-border: rgba(245, 235, 216, 0.12);
  --color-footer-social-bg: rgba(245, 235, 216, 0.08);
  --color-footer-social-border: rgba(245, 235, 216, 0.15);

  --font-heading: 'Libre Baskerville', 'Georgia', serif;
  --font-body: 'Cabin', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;

  --shadow-sm: 0 1px 3px rgba(67, 20, 7, 0.08);
  --shadow-md: 0 4px 8px rgba(67, 20, 7, 0.1);
  --shadow-lg: 0 10px 24px rgba(67, 20, 7, 0.12);
  --shadow-xl: 0 18px 36px rgba(67, 20, 7, 0.14);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(127, 29, 29, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 88% 92%, rgba(67, 20, 7, 0.05) 0%, transparent 45%),
    var(--color-bg);
}

.announcement-bar {
  background: #431407;
  color: #f5ebd8;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid #7f1d1d;
}
.announcement-bar strong { color: #ea661d; }

.site-header {
  border-bottom: 2px solid #7f1d1d;
  background: rgba(255, 250, 242, 0.95);
}

.logo-text {
  color: #7f1d1d;
  font-style: italic;
  letter-spacing: 0;
}

.nav-link.active {
  color: #7f1d1d;
  background: rgba(127, 29, 29, 0.08);
}

.hero {
  text-align: center;
  background:
    linear-gradient(180deg, #fffaf2 0%, #f3ebdc 100%);
  border-bottom: 14px solid transparent;
  border-image: repeating-linear-gradient(
    45deg,
    #7f1d1d 0,
    #7f1d1d 16px,
    #431407 16px,
    #431407 32px,
    #faf6ef 32px,
    #faf6ef 48px,
    #431407 48px,
    #431407 64px
  ) 14;
}

.hero, .hero-content { text-align: center; }
.hero-actions { justify-content: center; }
.hero-subtitle { margin-left: auto; margin-right: auto; max-width: 560px; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 29, 29, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 29, 29, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  opacity: 0.6;
}

.hero-badge {
  background: #7f1d1d;
  color: #faf6ef;
  border: 1px solid #431407;
  letter-spacing: 2px;
  border-radius: 2px;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
}

.hero-title {
  color: #431407;
  font-style: italic;
}
.hero-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #7f1d1d;
  margin: 18px auto 0;
}

.section-title {
  color: #431407;
  font-style: italic;
}
.section-title::after {
  content: '✦';
  display: block;
  color: #7f1d1d;
  font-size: 14px;
  margin-top: 6px;
}

.btn-primary {
  background: #7f1d1d;
  color: #faf6ef;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 0 #431407;
  font-family: var(--font-heading);
  font-style: italic;
  letter-spacing: 0.5px;
}
.btn-primary:hover {
  background: #431407;
  box-shadow: 0 2px 0 #2a1408;
  filter: none;
  transform: translateY(1px);
}

.btn-outline {
  background: #fffaf2;
  border: 1.5px solid #431407;
  color: #431407;
  border-radius: var(--radius-sm);
}
.btn-outline:hover {
  background: #431407;
  color: #faf6ef;
  border-color: #431407;
}

.btn-cta {
  background: #7f1d1d;
  color: #faf6ef;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 0 #431407;
  font-family: var(--font-heading);
  font-style: italic;
}
.btn-cta:hover {
  background: #431407;
  filter: none;
  box-shadow: 0 1px 0 #2a1408;
}

.product-card {
  background: #fffaf2;
  border: 1px solid #d8c6a0;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(127, 29, 29, 0.18);
  border-radius: calc(var(--radius-md) - 2px);
  pointer-events: none;
  z-index: 1;
}
.product-card:hover {
  border-color: #7f1d1d;
  box-shadow: 0 12px 28px rgba(67, 20, 7, 0.15);
}
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}
.card-brand { color: #7f1d1d; }
.card-title { color: #431407; font-family: var(--font-heading); font-style: italic; }
.card-title a:hover { color: #7f1d1d; }
.price-current { color: #431407; font-family: var(--font-heading); }

.card-badge {
  background: #7f1d1d;
  color: #faf6ef;
  border-radius: 2px;
  letter-spacing: 0.8px;
  border: 1px solid #431407;
}

.category-card {
  background: #fffaf2;
  border: 1px solid #d8c6a0;
}
.category-card:hover {
  border-color: #9547e2;
  box-shadow: 0 8px 20px rgba(149, 71, 226, 0.12);
}

.filter-btn.active,
.page-num.active {
  background: #7f1d1d;
  color: #faf6ef;
  border-color: #7f1d1d;
}
.filter-btn:hover { border-color: #7f1d1d; color: #7f1d1d; }

.newsletter-section {
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 38px, rgba(67, 20, 7, 0.04) 38px, rgba(67, 20, 7, 0.04) 39px),
    #f3ebdc;
  border-top: 2px solid #7f1d1d;
  border-bottom: 2px solid #7f1d1d;
}
.newsletter-text h3 { color: #431407; font-style: italic; }
.newsletter-form input { background: #fffaf2; border: 1px solid #c9b48c; border-radius: var(--radius-sm); }
.newsletter-form input:focus { border-color: #9547e2; }
.newsletter-form button {
  background: #9547e2;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-style: italic;
}
.newsletter-form button:hover { background: #7a30c4; transform: translateY(-1px); }

.faq-section { background: #f3ebdc; }
.faq-item { background: #fffaf2; border: 1px solid #d8c6a0; }
.faq-item[open] { border-color: #9547e2; }
.faq-question { color: #431407; font-family: var(--font-heading); font-style: italic; }
.faq-item[open] .faq-question::after { color: #9547e2; }

.guide-section { background: #faf6ef; }
.guide-card {
  background: #fffaf2;
  border: 1px solid #d8c6a0;
}
.guide-card:hover { border-color: #ea661d; box-shadow: 0 8px 20px rgba(234, 102, 29, 0.12); }
.guide-number {
  background: #ea661d;
  color: #faf6ef;
  border-radius: 50%;
  font-family: var(--font-heading);
  border: 2px solid #431407;
}
.guide-card-title { color: #431407; font-family: var(--font-heading); font-style: italic; }

.testimonials-section { background: #f0e5e4; }
.testimonial-card { background: #fffaf2; border: 1px solid #d8c6a0; }
.testimonial-text { color: #5c3b25; font-family: var(--font-heading); font-style: italic; }
.testimonial-avatar { background: #e54b35; color: #faf6ef; font-family: var(--font-heading); }

.stats-section {
  background: linear-gradient(135deg, #7f1d1d 0%, #431407 100%);
  border-top: 1px solid #2a1408;
  border-bottom: 1px solid #2a1408;
  position: relative;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 18px,
    rgba(245, 235, 216, 0.04) 18px,
    rgba(245, 235, 216, 0.04) 19px
  );
  pointer-events: none;
}
.stat-number { color: #faf6ef; font-style: italic; }
.stat-label { color: rgba(245, 235, 216, 0.85); }

.top-picks-section { background: #f1e8e3; }
.top-pick-item { background: #fffaf2; border: 1px solid #d8c6a0; }
.top-pick-item:hover { border-color: #ea661d; box-shadow: 0 6px 16px rgba(234, 102, 29, 0.12); }
.top-pick-rank { color: #ea661d; font-style: italic; }
.top-pick-name { color: #431407; font-family: var(--font-heading); font-style: italic; }
.top-pick-tag {
  background: #ea661d;
  color: #faf6ef;
  border-radius: 2px;
  letter-spacing: 0.6px;
}

.trust-item svg { color: #7f1d1d; }
.trust-item strong { color: #431407; font-family: var(--font-heading); font-style: italic; }

.product-title { color: #431407; font-style: italic; }
.product-brand-link { color: #7f1d1d; }
.product-price-block {
  background: #f3ebdc;
  border: 1px solid #d8c6a0;
}
.price-big { color: #431407; font-family: var(--font-heading); }
.price-save {
  background: rgba(74, 124, 46, 0.15);
  color: #4a7c2e;
  border-radius: 2px;
}

.mini-badge { background: #fffaf2; border: 1px solid #d8c6a0; }

.delivery-widget {
  background: #f3ebdc;
  border: 1px solid #d8c6a0;
  border-left: 4px solid #7f1d1d;
}
.delivery-item svg { color: #7f1d1d; }
.delivery-item strong { color: #431407; }

.pros-cons-widget {
  background: #f3ebdc;
  border: 1px solid #d8c6a0;
  border-radius: var(--radius-md);
}
.pros-cons-widget h3 { color: #431407; font-style: italic; }
.pros-heading { color: #4a7c2e; font-family: var(--font-heading); font-style: italic; }
.cons-heading { color: #7f1d1d; font-family: var(--font-heading); font-style: italic; }

.price-history-section {
  background: #fffaf2;
  border: 1px solid #d8c6a0;
  border-top: 3px solid #7f1d1d;
}
.chart-bar {
  background: linear-gradient(180deg, #b8856b 0%, #7f1d1d 100%);
  border-radius: 2px 2px 0 0;
}
.chart-bar-current {
  background: linear-gradient(180deg, #6b9c3e 0%, #4a7c2e 100%);
  box-shadow: 0 0 10px rgba(74, 124, 46, 0.35);
}
.chart-note {
  background: rgba(74, 124, 46, 0.1);
  color: #4a7c2e;
  border-radius: var(--radius-sm);
}

.user-reviews-section {
  background: #fffaf2;
  border: 1px solid #d8c6a0;
  border-top: 3px solid #9547e2;
}
.reviews-big-number { color: #431407; font-style: italic; }
.review-card {
  background: #f3ebdc;
  border: 1px solid #e0d2b0;
  border-radius: var(--radius-md);
}
.review-avatar {
  background: #7f1d1d;
  color: #faf6ef;
  font-family: var(--font-heading);
}
.review-bar-fill { background: #ea661d; }
.verified-badge { background: rgba(74, 124, 46, 0.12); color: #4a7c2e; }

.social-proof-popup {
  background: #fffaf2;
  border: 1px solid #d8c6a0;
  border-left: 4px solid #7f1d1d;
  border-radius: var(--radius-md);
}
.popup-icon { background: #4a7c2e; }
.popup-text strong { color: #431407; }

.brand-showcase-section { background: #f3ebdc; }
.brand-card {
  background: #fffaf2;
  border: 1px solid #d8c6a0;
}
.brand-initial {
  background: linear-gradient(135deg, #7f1d1d 0%, #431407 100%);
  font-family: var(--font-heading);
  font-style: italic;
}
.brand-name { color: #431407; font-style: italic; }

.trending-section { background: #fffaf2; }
.trending-item {
  background: #f3ebdc;
  border: 1px solid #e0d2b0;
}
.trending-rank { color: #7f1d1d; font-style: italic; }
.trending-name { color: #431407; font-family: var(--font-heading); font-style: italic; }
.trending-hot {
  background: rgba(127, 29, 29, 0.1);
  color: #7f1d1d;
  border-radius: 2px;
}

.comparison-table {
  border: 1px solid #d8c6a0;
  background: #fffaf2;
}
.comparison-table th {
  background: #431407;
  color: #f5ebd8;
  font-family: var(--font-heading);
  font-style: italic;
}

.site-footer {
  position: relative;
  border-top: 14px solid transparent;
  border-image: repeating-linear-gradient(
    45deg,
    #7f1d1d 0,
    #7f1d1d 16px,
    #2a1408 16px,
    #2a1408 32px,
    #faf6ef 32px,
    #faf6ef 48px,
    #2a1408 48px,
    #2a1408 64px
  ) 14;
}
.footer-logo { color: #f5ebd8; font-style: italic; }
.social-links a:hover { background: #7f1d1d; border-color: #7f1d1d; }

.cookie-banner {
  background: #fffaf2;
  border-top: 3px solid #7f1d1d;
}
.cookie-banner button {
  background: #7f1d1d;
  border-radius: var(--radius-sm);
}

@keyframes ember-glow {
  0%, 100% { box-shadow: 0 3px 0 #431407, 0 0 0 0 rgba(127, 29, 29, 0); }
  50% { box-shadow: 0 3px 0 #431407, 0 0 18px 2px rgba(234, 102, 29, 0.35); }
}
.hero-actions .btn-primary {
  animation: ember-glow 3.5s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero { border-bottom-width: 8px; }
  .site-footer { border-top-width: 8px; }
  .hero::before { background-size: 32px 32px; }
}