/* ─── BabySafe Shared Styles ──────────────────────────────────────────────── */
:root {
  --blue: #7EC8E3;
  --blue-dark: #5ab5d4;
  --blue-light: #e8f7fc;
  --pink: #E8A0BF;
  --pink-dark: #d47fa4;
  --pink-light: #fdf0f6;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --text: #2d3748;
  --text-light: #718096;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue-dark);
  background: var(--blue-light);
}
.nav-cta {
  background: var(--pink) !important;
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
}
.nav-cta:hover {
  background: var(--pink-dark) !important;
  color: white !important;
}
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--gray-600);
  font-size: 22px;
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: white;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    gap: 4px;
  }
  .nav-mobile-btn { display: block; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--pink-light) 100%);
  padding: 80px 24px 72px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: white;
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 20px;
}
.hero h1 span { color: var(--blue-dark); }
.hero p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ─── Email Signup ───────────────────────────────────────────────────────── */
.signup-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.signup-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
  background: white;
}
.signup-form input:focus { border-color: var(--blue); }
.btn-primary {
  background: var(--pink);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-1px); }
.btn-secondary {
  background: var(--blue);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
}
.btn-secondary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.signup-note {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 12px;
}

/* ─── Container ─────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 64px 0;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 40px;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ─── Blog Cards ─────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-grid.featured { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}
.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-cat {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pink-dark);
  background: var(--pink-light);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.4;
}
.card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}
.card-date {
  font-size: 12px;
  color: var(--gray-400);
}
.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}
.read-more:hover { color: var(--pink-dark); }

/* ─── Category Pills ─────────────────────────────────────────────────────── */
.categories-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cat-pill {
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid var(--gray-200);
  background: white;
  color: var(--gray-600);
  transition: var(--transition);
}
.cat-pill:hover, .cat-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

/* ─── Affiliate Product Cards ────────────────────────────────────────────── */
.affiliate-box {
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
  border: 2px solid #ffe0b2;
  border-radius: var(--radius);
  padding: 20px;
  margin: 32px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.affiliate-box img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.affiliate-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.affiliate-price {
  font-size: 18px;
  font-weight: 700;
  color: #e65c00;
  margin-bottom: 12px;
}
.btn-amazon {
  background: #FF9900;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
}
.btn-amazon:hover { background: #e68900; color: white; }
@media (max-width: 500px) {
  .affiliate-box { flex-direction: column; }
  .affiliate-box img { width: 100%; height: 160px; }
}

/* ─── Post Content ───────────────────────────────────────────────────────── */
.post-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}
@media (max-width: 900px) {
  .post-container { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}
.post-header { margin-bottom: 36px; }
.post-header h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 16px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.post-meta span { font-size: 14px; color: var(--gray-500); }
.post-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 40px;
}
.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.post-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-light);
}
.post-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 28px 0 12px;
}
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol {
  padding-left: 28px;
  margin-bottom: 18px;
}
.post-content li { margin-bottom: 6px; }
.post-content strong { color: var(--gray-900); }
.post-content blockquote {
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-style: italic;
}

/* Sidebar */
.sidebar-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.sidebar-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}
.related-post {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.related-post:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-post img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.related-post h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
}
.sidebar-signup {
  background: linear-gradient(135deg, var(--blue-light), var(--pink-light));
  border: none;
}
.sidebar-signup h3 { border-bottom-color: rgba(0,0,0,0.1); }
.sidebar-signup input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
}
.sidebar-signup input:focus { border-color: var(--blue); }
.sidebar-signup .btn-primary { width: 100%; justify-content: center; }

/* ─── Products Page ──────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--pink);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.product-body {
  padding: 24px;
}
.product-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.product-body p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.6;
}
.product-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.product-price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-400);
}
.product-buy-btn {
  display: block;
  width: 100%;
  background: var(--blue);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  margin-top: 16px;
}
.product-buy-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ─── Email Capture Strip ────────────────────────────────────────────────── */
.email-strip {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--pink-dark) 100%);
  padding: 64px 24px;
  text-align: center;
  color: white;
}
.email-strip h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
}
.email-strip p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 28px;
}
.email-strip .signup-form input {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.15);
  color: white;
}
.email-strip .signup-form input::placeholder { color: rgba(255,255,255,0.6); }
.email-strip .signup-form input:focus { border-color: white; }
.email-strip .btn-primary { background: white; color: var(--pink-dark); }
.email-strip .btn-primary:hover { background: var(--gray-100); }

/* ─── About Page ─────────────────────────────────────────────────────────── */
.about-hero {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--pink-light) 100%);
  padding: 80px 24px;
  text-align: center;
}
.about-hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.about-hero p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.value-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.value-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.value-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 280px; }
footer h4 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a {
  font-size: 14px;
  color: var(--gray-400);
  transition: var(--transition);
}
footer ul li a:hover { color: var(--blue); }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 13px;
}
.footer-bottom a { color: var(--blue); }

/* ─── Page Banner ────────────────────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--blue-light), var(--pink-light));
  padding: 52px 24px 44px;
  text-align: center;
}
.page-banner h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.page-banner p {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 500px;
  margin: 0 auto;
}

/* ─── Loading / States ───────────────────────────────────────────────────── */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  color: var(--gray-400);
  gap: 16px;
  font-size: 16px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--gray-400);
}
.empty-state h3 { font-size: 20px; color: var(--gray-600); margin-bottom: 8px; }

/* ─── Toast Notifications ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gray-900);
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: 0.3s ease;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #059669; }
.toast.error { background: #dc2626; }

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--blue-dark); }
.breadcrumb a:hover { text-decoration: underline; }

/* ─── Responsive Utilities ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}
