/* Bonpri — shared stylesheet */
/* BRAND: Bonpri — to rename the whole site, find/replace "Bonpri" across all files */

:root {
  --accent: #e63946;
  --accent-dark: #c1121f;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6c757d;
  --border: #dee2e6;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.13);
  --radius: 10px;
  --max-w: 1100px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-dark); }

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

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wordmark {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark:hover { text-decoration: none; color: var(--accent-dark); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  list-style: none;
  align-items: center;
}

.site-nav a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; border-bottom-color: var(--accent); }

.lang-switch {
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background 0.15s;
}
.lang-switch:hover { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }

/* ─── Main ────────────────────────────────────────────── */
main { flex: 1; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1rem 3rem;
  text-align: center;
}

.hero-brand {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.hero-tagline {
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero-desc {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: var(--text);
}

/* ─── Section titles ──────────────────────────────────── */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* ─── Deal cards grid ─────────────────────────────────── */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .deals-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
}

@media (min-width: 900px) {
  .deals-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

.deal-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.deal-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.deal-card-thumb {
  background: #f0f0f0;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.deal-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.deal-card-body {
  padding: 0.75rem 0.85rem 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.deal-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.deal-prices {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.deal-price-new {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

.deal-price-old {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.deal-card-footer {
  margin-top: auto;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  width: 100%;
  text-align: center;
}
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ─── Coming soon note ────────────────────────────────── */
.coming-soon {
  text-align: center;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.coming-soon strong { color: var(--accent); }

/* ─── Hero stat line ──────────────────────────────────── */
.hero-stat {
  display: inline-block;
  background: #fff5f5;
  border: 1px solid #fcd5d8;
  border-radius: 20px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.25rem;
}

/* ─── Category chips bar ──────────────────────────────── */
.category-chips-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-chips-bar::-webkit-scrollbar { display: none; }

.category-chips {
  display: flex;
  gap: 0.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  flex-wrap: wrap;
}

.chip {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ─── Deal card (new layout — no image thumb) ─────────── */
.deal-card-header {
  padding: 0.6rem 0.75rem 0;
  display: flex;
  justify-content: flex-start;
}

/* Brand label */
.deal-brand {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

/* Title: clamp to 2 lines */
.deal-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ─── Newsletter section ──────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border-top: 1px solid var(--border);
  padding: 3rem 1rem;
  text-align: center;
}

.newsletter-inner {
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-heading {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.newsletter-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.nl-input {
  flex: 1 1 220px;
  max-width: 300px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
}
.nl-input:focus { border-color: var(--accent); }

.nl-btn {
  flex-shrink: 0;
  width: auto;
  padding: 0.65rem 1.4rem;
}
.nl-btn:disabled { opacity: 0.65; cursor: default; transform: none; }

.nl-msg {
  display: none;
  width: 100%;
  color: #2d8a4e;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ─── Content pages (about, legal…) ──────────────────── */
.page-hero {
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1rem 2rem;
}
.page-hero h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 800; color: var(--text); }
.page-hero .subtitle { color: var(--text-muted); font-size: 1rem; margin-top: 0.4rem; }

.prose {
  max-width: 780px;
  margin: 0 auto;
}
.prose h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.6rem; color: var(--text); }
.prose h3 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.4rem; color: var(--text); }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); }
.prose .highlight-box {
  background: #fff5f5;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.prose .highlight-box p { margin-bottom: 0; }

.last-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ─── Contact page ────────────────────────────────────── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 540px;
}
.contact-email-line {
  margin: 1.25rem 0;
  font-size: 1.05rem;
}
.contact-email-line a { font-weight: 700; }

/* ─── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: #ccc;
  padding: 2.5rem 1rem 1.5rem;
  margin-top: auto;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #333;
  align-items: flex-start;
}

.footer-brand .wordmark { color: var(--accent); font-size: 1.3rem; }
.footer-brand p { margin-top: 0.4rem; color: #999; max-width: 260px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.footer-links a { color: #bbb; transition: color 0.15s; }
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-lang a {
  display: inline-block;
  border: 1px solid #444;
  border-radius: 20px;
  padding: 0.25rem 0.8rem;
  color: #bbb;
  transition: background 0.15s, color 0.15s;
}
.footer-lang a:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: #777;
}
.footer-affiliate-note { font-size: 0.8rem; color: #888; font-style: italic; }

/* ─── Cookie banner ───────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  color: #eee;
  padding: 1rem 1.25rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
#cookie-banner p { font-size: 0.88rem; flex: 1 1 280px; margin: 0; }
#cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-btn {
  padding: 0.45rem 1rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: opacity 0.15s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn-accept { background: var(--accent); color: #fff; }
.cookie-btn-decline { background: #333; color: #eee; }

/* ─── Language picker (root index) ───────────────────── */
.lang-picker {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}
.lang-picker-brand { font-size: clamp(3rem, 10vw, 5rem); font-weight: 900; color: var(--accent); margin-bottom: 0.5rem; letter-spacing: -1px; }
.lang-picker-sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2.5rem; }
.lang-picker-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.lang-btn:hover { background: var(--accent); color: #fff; text-decoration: none; transform: translateY(-2px); }
.lang-btn .flag { font-size: 1.4rem; }

/* ─── Responsive ──────────────────────────────────────── */
@media (min-width: 640px) {
  .header-inner { flex-wrap: nowrap; }
}

@media (max-width: 520px) {
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #cookie-banner { flex-direction: column; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}
