/* MangoMonger 🥭 — Global Styles */
:root {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-hover: #222633;
  --text: #e4e4e7;
  --text-muted: #9ca3af;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --border: #2a2d3a;
  --green: #22c55e;
  --radius: 12px;
  --max-w: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* --- NAV --- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 1.25rem 1.5rem;
}
.nav-brand { font-size: 1.35rem; font-weight: 700; color: var(--text); }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; right: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.5rem; gap: 1rem; z-index: 100; }
  .nav-links.open { display: flex; }
}

/* --- HERO --- */
.hero {
  text-align: center; padding: 5rem 1.5rem 3rem; max-width: 750px; margin: 0 auto;
}
.hero h1 { font-size: 2.75rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 2rem; }

/* --- SECTION --- */
.section { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem; }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: .5rem; }
.section-sub { color: var(--text-muted); margin-bottom: 2rem; }

/* --- PRODUCT GRID --- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem;
}
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.product-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.product-card .price { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-bottom: .75rem; }
.product-card p { color: var(--text-muted); font-size: .9rem; flex: 1; margin-bottom: 1.25rem; }

/* --- BUTTONS --- */
.btn {
  display: inline-block; padding: .75rem 1.5rem; border-radius: 8px; font-weight: 600;
  font-size: .95rem; text-align: center; transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #0f1117; }
.btn-primary:hover { background: var(--accent-hover); color: #0f1117; }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-block { display: block; width: 100%; }

/* --- NEWSLETTER --- */
.newsletter {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 3rem; text-align: center; max-width: 600px; margin: 3rem auto;
}
.newsletter h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.newsletter p { color: var(--text-muted); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: .75rem; max-width: 420px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: .75rem 1rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: .95rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
@media (max-width: 480px) { .newsletter-form { flex-direction: column; } }

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border); padding: 2rem 1.5rem; text-align: center;
  color: var(--text-muted); font-size: .85rem; max-width: var(--max-w); margin: 4rem auto 0;
}
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }

/* --- BLOG --- */
.blog-list { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: border-color .2s; position: relative; cursor: pointer;
}
.blog-item:hover { border-color: var(--accent); }
.blog-item h3 { margin-bottom: .35rem; }
.blog-item h3 a { color: var(--text); text-decoration: none; }
.blog-item h3 a::after { content: ''; position: absolute; inset: 0; }
.blog-item h3 a:hover { color: var(--accent); }
.blog-item .meta { color: var(--text-muted); font-size: .85rem; margin-bottom: .75rem; }
.blog-item p { color: var(--text-muted); font-size: .95rem; }

/* --- ARTICLE --- */
.article { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem; }
.article h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.2; margin-bottom: .75rem; }
.article .meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; }
.article h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; }
.article h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.article p { margin-bottom: 1.25rem; }
.article ul, .article ol { margin: 0 0 1.25rem 1.5rem; }
.article li { margin-bottom: .5rem; }
.article blockquote {
  border-left: 3px solid var(--accent); padding: .75rem 1.25rem; margin: 1.5rem 0;
  color: var(--text-muted); background: var(--bg-card); border-radius: 0 var(--radius) var(--radius) 0;
}
.article .cta-box {
  background: var(--bg-card); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 2rem; text-align: center; margin: 2.5rem 0;
}
.article .cta-box h3 { color: var(--accent); margin-bottom: .5rem; }
.article .cta-box p { color: var(--text-muted); margin-bottom: 1rem; }

/* --- PRODUCT PAGE --- */
.product-hero {
  max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem 2rem; text-align: center;
}
.product-hero h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: .5rem; }
.product-hero .price-tag { font-size: 2rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.product-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; }
.product-details { max-width: 760px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.product-details h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 .75rem; }
.product-details ul { margin: 0 0 1.25rem 1.5rem; }
.product-details li { margin-bottom: .5rem; color: var(--text-muted); }
.alt-link { color: var(--text-muted); font-size: .85rem; margin-top: .75rem; }
