/* ──────────────────────────────────────────────────────────────
   bloomcache — beauty affiliate landing page
   Design system: cream + blush + deep rose, serif display + sans body
   ────────────────────────────────────────────────────────────── */

:root {
  --cream:        #FFFAF5;
  --cream-deep:   #FBEFE5;
  --blush:        #FCE2EC;
  --blush-soft:   #FDF1F5;
  --rose:         #8B2455;
  --rose-deep:    #6B1A3F;
  --rose-light:   #C66E92;
  --espresso:     #2C1A14;
  --taupe:        #8A7268;
  --line:         #EFE3D6;
  --shadow-card:  0 6px 28px rgba(44, 26, 20, 0.06);
  --shadow-card-h:0 14px 44px rgba(44, 26, 20, 0.12);
  --radius-card:  18px;
  --radius-btn:   999px;
  --max-w:        1180px;
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Top nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 245, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--rose);
}
.brand-mark span { color: var(--rose-light); font-style: italic; }
.nav-links { display: none; gap: 28px; font-size: 14px; color: var(--taupe); }
.nav-links a:hover { color: var(--rose); }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-cta {
  display: none;
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  background: var(--rose);
  color: var(--cream);
  font-size: 13px; font-weight: 600;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--rose-deep); }
@media (min-width: 640px) { .nav-cta { display: inline-block; } }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 64px;
  background:
    radial-gradient(900px 360px at 80% 10%, var(--blush) 0%, transparent 65%),
    radial-gradient(800px 320px at 10% 90%, var(--cream-deep) 0%, transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero-grid {
  display: grid; gap: 56px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 120px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
}

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--espresso);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--rose);
  font-weight: 400;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--taupe);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 30px;
  border-radius: var(--radius-btn);
  background: var(--rose);
  color: var(--cream);
  font-size: 15px; font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(139, 36, 85, 0.25);
}
.btn-primary:hover { background: var(--rose-deep); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(139, 36, 85, 0.3); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 26px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--line);
  color: var(--espresso);
  font-size: 15px; font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--blush) 0%, var(--cream-deep) 100%);
  box-shadow: var(--shadow-card-h);
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4) 0%, transparent 50%);
}
.hero-visual-emoji {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: clamp(120px, 16vw, 220px);
  filter: drop-shadow(0 8px 24px rgba(139, 36, 85, 0.15));
}

/* ── Trust strip ────────────────────────────────────────────── */
.trust {
  border-block: 1px solid var(--line);
  padding: 24px 0;
  background: var(--blush-soft);
}
.trust-inner {
  display: flex; gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px; letter-spacing: 0.05em;
  color: var(--taupe);
  font-weight: 500;
}
.trust-inner span { display: inline-flex; align-items: center; gap: 8px; }
.trust-inner span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--rose-light);
}

/* ── Section base ───────────────────────────────────────────── */
section { padding: 80px 0; }
@media (min-width: 900px) { section { padding: 112px 0; } }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-head h2 em { font-style: italic; color: var(--rose); }
.section-head p { color: var(--taupe); font-size: 17px; }

/* ── Category filter ────────────────────────────────────────── */
.category-bar {
  display: flex; gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.category-pill {
  padding: 9px 18px;
  border-radius: var(--radius-btn);
  font-size: 13px; font-weight: 500;
  color: var(--taupe);
  background: transparent;
  border: 1.5px solid var(--line);
  transition: all 0.15s ease;
}
.category-pill:hover { color: var(--rose); border-color: var(--rose-light); }
.category-pill.active {
  background: var(--rose);
  color: var(--cream);
  border-color: var(--rose);
}

/* ── Product grid ───────────────────────────────────────────── */
.products-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.product-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-h);
  border-color: var(--blush);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--cream-deep) 0%, var(--blush-soft) 100%);
  overflow: hidden;
}
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-image-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 64px;
  opacity: 0.5;
}
.product-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--espresso);
  color: var(--cream);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 11px;
  border-radius: var(--radius-btn);
}
.product-badge.viral { background: var(--rose); }

.product-body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.product-category {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-light);
}
.product-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px; line-height: 1.25;
  letter-spacing: -0.01em;
}
.product-hook {
  font-size: 14px;
  color: var(--rose-deep);
  font-style: italic;
  line-height: 1.45;
}
.product-desc {
  font-size: 14px;
  color: var(--taupe);
  line-height: 1.55;
}
.product-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--taupe);
}
.product-stars { color: var(--rose); font-weight: 500; }
.product-price { font-weight: 500; color: var(--espresso); }

.product-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 22px 22px;
  padding: 14px;
  border-radius: var(--radius-btn);
  background: var(--rose);
  color: var(--cream);
  font-size: 14px; font-weight: 600;
  transition: background 0.15s ease, transform 0.1s ease;
}
.product-cta:hover { background: var(--rose-deep); }
.product-cta:active { transform: scale(0.98); }
.product-cta::after { content: " →"; transition: transform 0.15s ease; }
.product-cta:hover::after { transform: translateX(4px); }

/* ── Why bloomcache ─────────────────────────────────────────── */
.why { background: var(--blush-soft); }
.why-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.why-card { text-align: center; padding: 16px; }
.why-icon {
  font-size: 36px; margin-bottom: 16px;
  display: inline-block;
  width: 72px; height: 72px;
  background: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-card);
}
.why-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 10px;
}
.why-card p { color: var(--taupe); font-size: 15px; max-width: 320px; margin: 0 auto; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  padding: 64px 0 32px;
  background: var(--espresso);
  color: var(--cream-deep);
  font-size: 14px;
}
footer .container { display: grid; gap: 32px; }
@media (min-width: 800px) { footer .container { grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; } }
.footer-brand {
  font-family: var(--font-display);
  font-size: 28px; color: var(--cream);
  margin-bottom: 12px;
}
.footer-brand em { color: var(--rose-light); font-style: italic; }
.footer-disclosure { color: rgba(255, 250, 245, 0.6); line-height: 1.6; max-width: 480px; }
.footer-social { display: flex; gap: 18px; margin-top: 16px; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 250, 245, 0.08);
  border-radius: var(--radius-btn);
  color: var(--cream);
  font-size: 13px; font-weight: 500;
  transition: background 0.15s ease;
}
.footer-social a:hover { background: rgba(255, 250, 245, 0.16); }
.footer-meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 250, 245, 0.08);
  font-size: 12px;
  color: rgba(255, 250, 245, 0.45);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
