/* ============================================
   BABYMADE.UK — Main Stylesheet
   Mobile-First | Warm Baby/Mum Theme
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: #FDFAF7;
  color: #2C2420;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === DESIGN TOKENS === */
:root {
  --bg:          #FDFAF7;
  --bg-alt:      #F5EDE3;
  --bg-card:     #FFFFFF;
  --primary:     #C4956A;
  --primary-dk:  #A67A52;
  --primary-lt:  #F5E6D5;
  --sage:        #8BAF8B;
  --sage-lt:     #E3EFE3;
  --blush:       #EAC5C5;
  --blush-lt:    #FDF0F0;
  --gold:        #D4AF72;
  --text:        #2C2420;
  --text-muted:  #7A6E6A;
  --text-light:  #ADA5A2;
  --border:      #EDE0D4;
  --border-lt:   #F5EDE3;
  --white:       #FFFFFF;
  --shadow-sm:   0 1px 6px rgba(44,36,32,.06);
  --shadow:      0 4px 20px rgba(44,36,32,.08);
  --shadow-lg:   0 12px 48px rgba(44,36,32,.12);
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --ease:        cubic-bezier(.4,0,.2,1);
  --t:           .3s;
}

/* === TYPOGRAPHY === */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--text);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.65rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--text-muted); line-height: 1.75; }
a  { color: var(--primary); text-decoration: none; transition: color var(--t) var(--ease); }
a:hover { color: var(--primary-dk); }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--text); }
em { font-style: italic; }

/* === LAYOUT === */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 72px 0; }
.section-sm { padding: 44px 0; }

/* === GRID SYSTEM === */
.grid-2,.grid-3,.grid-4,.grid-products { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-products { grid-template-columns: 1fr; gap: 16px; max-width: 720px; margin: 0 auto; }
@media(min-width:600px){
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-products { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media(min-width:900px){
  .grid-3 { grid-template-columns: repeat(3,1fr); }
  .grid-4 { grid-template-columns: repeat(4,1fr); gap: 24px; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 50px;
  font-family: 'DM Sans', sans-serif; font-size: .94rem; font-weight: 600;
  cursor: pointer; transition: all var(--t) var(--ease);
  border: none; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover {
  background: var(--primary-dk); color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,149,106,.35);
}
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sage { background: var(--sage); color: var(--white); }
.btn-sage:hover { background: #749E74; color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: .84rem; }

/* === BADGES === */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.badge-gold   { background: var(--primary-lt); color: var(--primary-dk); }
.badge-sage   { background: var(--sage-lt); color: #4D8A4D; }
.badge-blush  { background: var(--blush-lt); color: #B07070; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,250,247,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1200px; margin: 0 auto;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.logo-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem; font-weight: 700; letter-spacing: -.5px;
  color: var(--text); line-height: 1;
}
.logo-wordmark span { color: var(--primary); }

/* Desktop Nav */
.nav-desktop { display: none; align-items: center; gap: 4px; }
.nav-desktop a {
  font-size: .9rem; font-weight: 500; color: var(--text);
  padding: 6px 14px; border-radius: 50px;
  display: flex; align-items: center; gap: 5px;
  transition: all var(--t) var(--ease);
}
.nav-desktop a:hover { background: var(--primary-lt); color: var(--primary-dk); }
.nav-desktop a.active { color: var(--primary); }
.nav-desktop .nav-cta {
  background: var(--primary); color: var(--white) !important;
  padding: 8px 20px; margin-left: 8px;
}
.nav-desktop .nav-cta:hover {
  background: var(--primary-dk); color: var(--white) !important;
  box-shadow: 0 4px 14px rgba(196,149,106,.35);
}
@media(min-width:900px){ .nav-desktop { display: flex; } }

/* More dropdown */
.nav-more { position: relative; }
.nav-more-btn {
  display: flex; align-items: center; gap: 4px;
  font-size: .9rem; font-weight: 500; color: var(--text);
  padding: 6px 14px; border-radius: 50px; background: none; border: none; cursor: pointer;
  font-family: inherit;
  transition: all var(--t) var(--ease);
}
.nav-more-btn:hover { background: var(--primary-lt); color: var(--primary-dk); }
.nav-dropdown {
  position: absolute; top: 100%; right: 0;
  background: var(--white); border-radius: 12px; min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12); padding: 12px 8px 8px;
  display: none; flex-direction: column; gap: 2px; z-index: 200;
}
.nav-more:hover .nav-dropdown,
.nav-more:focus-within .nav-dropdown { display: flex; }
.nav-dropdown a {
  font-size: .88rem; font-weight: 500; color: var(--text);
  padding: 8px 14px; border-radius: 8px;
  transition: background var(--t) var(--ease);
}
.nav-dropdown a:hover { background: var(--primary-lt); color: var(--primary-dk); }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; cursor: pointer;
  background: none; border: none; padding: 8px; border-radius: 8px;
  transition: background var(--t);
}
.hamburger:hover { background: var(--primary-lt); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .35s var(--ease); transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media(min-width:900px){ .hamburger { display: none; } }

/* Mobile Drawer */
.nav-overlay {
  position: fixed; inset: 0; background: rgba(44,36,32,.55);
  z-index: 199; opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.nav-overlay.open { opacity: 1; pointer-events: all; }
.nav-drawer {
  position: fixed; top: 0; right: -310px; width: 290px; height: 100dvh;
  background: var(--bg); z-index: 200;
  padding: 0; display: flex; flex-direction: column;
  transition: right .38s var(--ease);
  box-shadow: -12px 0 48px rgba(44,36,32,.16);
  overflow-y: auto;
}
.nav-drawer.open { right: 0; }
.drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-alt); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.1rem;
  transition: all var(--t);
}
.drawer-close:hover { background: var(--blush-lt); color: var(--text); }
.drawer-nav { flex: 1; padding: 12px 0; }
.drawer-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; font-size: .97rem; font-weight: 500;
  color: var(--text); border-left: 3px solid transparent;
  transition: all var(--t) var(--ease);
}
.drawer-nav a:hover {
  background: var(--primary-lt); color: var(--primary-dk);
  border-left-color: var(--primary); padding-left: 28px;
}
.drawer-nav .drawer-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.drawer-divider { height: 1px; background: var(--border); margin: 8px 24px; }
.drawer-footer { padding: 20px 24px 32px; }
.drawer-footer .btn { width: 100%; justify-content: center; }

/* Affiliate disclosure banner */
.disclosure-bar {
  background: var(--primary-lt); border-bottom: 1px solid var(--border);
  text-align: center; padding: 7px 20px;
  font-size: .72rem; color: var(--text-muted);
}
.disclosure-bar a { color: var(--primary); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(140deg, #FDF5EE 0%, #F8EAD9 45%, #F0DFD0 100%);
  padding: 72px 0 88px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -8%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,149,106,.12) 0%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -25%; left: -5%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,175,139,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 48px; align-items: center; position: relative; z-index: 1;
}
@media(min-width:900px){
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(196,149,106,.14); color: var(--primary-dk);
  padding: 5px 14px; border-radius: 50px;
  font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title { margin-bottom: 18px; }
.hero-title em { font-style: italic; color: var(--primary); }
.hero-subtitle { font-size: 1.05rem; max-width: 500px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust {
  display: flex; gap: 24px; margin-top: 40px;
  padding-top: 32px; border-top: 1px solid rgba(196,149,106,.2);
}
.trust-item { display: flex; flex-direction: column; }
.trust-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--text);
}
.trust-lbl { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

/* Hero Visual */
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-blob {
  width: 300px; height: 370px;
  border-radius: 62% 38% 55% 45% / 48% 52% 45% 55%;
  overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--blush) 0%, var(--primary-lt) 100%);
  box-shadow: var(--shadow-lg);
}
.hero-blob img { width: 100%; height: 100%; object-fit: cover; }
.hero-blob-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; opacity: .6;
}
.hero-float-1, .hero-float-2 {
  position: absolute; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px 14px; white-space: nowrap;
}
.hero-float-1 { top: 10px; left: -20px; }
.hero-float-2 { bottom: 16px; right: -12px; }
.float-icon { font-size: 1.2rem; }
.float-text { font-size: .72rem; font-weight: 600; color: var(--text); }
.float-sub  { font-size: .65rem; color: var(--text-muted); }
@media(min-width:900px){
  .hero-blob { width: 400px; height: 480px; }
  .hero-float-1 { left: -30px; }
  .hero-float-2 { right: -24px; }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.sec-header { text-align: center; margin-bottom: 48px; }
.sec-eyebrow {
  display: inline-block; color: var(--primary); font-size: .76rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px;
}
.sec-title { margin-bottom: 12px; }
.sec-sub { font-size: .97rem; max-width: 460px; margin: 0 auto; }

/* ============================================
   CATEGORIES
   ============================================ */
.categories-section { background: var(--white); }

/* ── Category Carousel ─────────────────────── */
.cat-carousel-outer { position: relative; padding: 0 28px; }
.cat-carousel-viewport { overflow: hidden; width: 100%; }
.cat-carousel-track {
  display: flex; gap: 20px;
  transition: transform .55s cubic-bezier(.25,.1,.25,1);
  will-change: transform;
}
.cat-carousel-track .cat-card { flex-shrink: 0; }

.cat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; padding: 28px 16px; border-radius: var(--radius-lg);
  position: relative; overflow: hidden; cursor: pointer;
  min-height: 220px; text-decoration: none;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.60));
  z-index: 1; border-radius: var(--radius-lg);
  transition: background var(--t) var(--ease);
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cat-card:hover::before { background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.70)); }
.cat-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  border-radius: var(--radius-lg);
  transition: transform .55s var(--ease);
}
.cat-card:hover .cat-bg { transform: scale(1.06); }
.cat-icon {
  position: relative; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 12px;
  background: rgba(255,255,255,.22); backdrop-filter: blur(4px);
}
.cat-icon svg { stroke: #fff !important; }
.cat-card h3 { position: relative; z-index: 2; font-size: .95rem; margin-bottom: 4px; color: #fff; }
.cat-card p  { position: relative; z-index: 2; font-size: .75rem; color: rgba(255,255,255,.82); margin: 0; }

/* ============================================
   BLOG INDEX — PILLAR CARDS
   ============================================ */
.blog-index-pillar {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  background: var(--white);
}
.blog-index-pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.bip-img {
  height: 160px; background-size: cover; background-position: center;
  flex-shrink: 0;
}
.bip-body {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px 20px;
}
.bip-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-lt); display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.bip-icon svg { width: 18px; height: 18px; stroke: var(--primary); }
.bip-body h3 { font-size: .95rem; margin-bottom: 5px; color: var(--heading); }
.bip-body p  { font-size: .8rem; color: var(--text-light); margin-bottom: 10px; line-height: 1.5; }
.bip-link { font-size: .8rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.blog-index-pillar:hover .bip-link { gap: 7px; }

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-section { background: var(--bg); }
.blog-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  border: 1px solid var(--border-lt);
  transition: all var(--t) var(--ease);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card-img {
  height: 196px; overflow: hidden; position: relative;
  background: var(--bg-alt); flex-shrink: 0;
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease);
}
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; opacity: .5;
}
.blog-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: var(--white);
  padding: 3px 11px; border-radius: 50px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  display: flex; gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.meta-item { font-size: .73rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.blog-card h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 10px; }
.blog-card h3 a { color: var(--text); transition: color var(--t); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p   { font-size: .85rem; flex: 1; margin-bottom: 18px; }
.blog-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border-lt);
}
.read-more {
  font-size: .83rem; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--t);
}
.read-more:hover { gap: 8px; color: var(--primary-dk); }

/* ============================================
   PRODUCT CARDS (Affiliate)
   ============================================ */
.products-section { background: var(--bg-alt); }

/* ── Home Picks Carousel ───────────────────── */
.picks-outer { position: relative; padding: 0 28px; }
.picks-viewport { overflow: hidden; width: 100%; }
.picks-track {
  display: flex; gap: 20px;
  transition: transform .55s cubic-bezier(.25,.1,.25,1);
  will-change: transform;
}
.picks-track .product-card { flex-shrink: 0; } /* width set by JS */
.picks-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: var(--white); border: 1.5px solid var(--border);
  border-radius: 50%; width: 38px; height: 38px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t) var(--ease); color: var(--text);
  box-shadow: var(--shadow-sm);
}
.picks-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.picks-prev, .cat-prev { left: 0; }
.picks-next, .cat-next { right: 0; }
.picks-dots { display: flex; justify-content: center; gap: 7px; margin-top: 20px; }
.picks-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.picks-dot.active { background: var(--primary); transform: scale(1.25); }
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  border: 1px solid var(--border-lt);
  transition: all var(--t) var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-img {
  aspect-ratio: 1 / 1; width: 100%; overflow: hidden; position: relative;
  background: var(--white); flex-shrink: 0;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease);
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; opacity: .45;
}
.product-badge-wrap {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
}
.product-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-stars {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 8px; font-size: .82rem;
}
.stars-icons { color: #F5A623; letter-spacing: 1px; }
.stars-count { color: var(--text-light); font-size: .73rem; }
.product-card h3 { font-size: .82rem; font-weight: 500; line-height: 1.4; margin-bottom: 6px; }
.product-card p  { font-size: .78rem; flex: 1; margin-bottom: 10px; }
.product-price-row {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px;
}
.price-now {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700; color: var(--text);
}
.price-was { font-size: .78rem; color: var(--text-light); text-decoration: line-through; }
.price-save { font-size: .72rem; font-weight: 700; color: #D4543E; background: #FDE8E5; padding: 2px 7px; border-radius: 50px; }

/* Affiliate CTA Button */
@keyframes amz-fade {
  0%, 100% { opacity: 1; }
  50%       { opacity: .6; }
}
.product-body .amz-btn { margin-top: auto; }
.amz-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 20px;
  background: var(--primary); color: var(--white) !important;
  border-radius: 50px; font-weight: 600; font-size: .88rem;
  text-decoration: none; transition: all var(--t) var(--ease);
  border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
  animation: amz-fade 2.2s ease-in-out infinite;
}
.amz-btn:hover {
  background: var(--primary-dk); color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,149,106,.4);
  animation: none;
}
.amz-btn svg { flex-shrink: 0; }

/* ── Product Image Carousel ─────────────── */
.carousel {
  position: relative; width: 100%; height: 100%;
  overflow: hidden;
}
.carousel-track {
  display: flex; height: 100%;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel-slide {
  min-width: 100%; height: 100%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); font-size: 4rem;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; }
.carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.55); border: none; cursor: pointer;
  padding: 0; transition: all .25s; flex-shrink: 0;
}
.carousel-dot.active {
  background: var(--white); width: 20px; border-radius: 4px;
}
.carousel-prev, .carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.82); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; z-index: 2; opacity: 0;
  transition: opacity .25s, background .25s;
  backdrop-filter: blur(4px);
}
.carousel-prev { left: 7px; }
.carousel-next { right: 7px; }
.carousel:hover .carousel-prev,
.carousel:hover .carousel-next { opacity: 1; }
.carousel-prev:hover, .carousel-next:hover { background: var(--white); }

/* Inline product card (inside article content) */
.inline-product {
  background: linear-gradient(135deg, var(--primary-lt), var(--bg-alt));
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  margin: 28px 0; display: flex; gap: 18px; align-items: flex-start;
}
.inline-product-img {
  width: 90px; height: 90px; border-radius: var(--radius);
  overflow: hidden; flex-shrink: 0; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; border: 1px solid var(--border);
}
.inline-product-img img { width: 100%; height: 100%; object-fit: cover; }
.inline-product-info h4 { font-size: .97rem; margin-bottom: 5px; }
.inline-product-info p  { font-size: .8rem; margin-bottom: 10px; }
.inline-price { font-weight: 700; color: var(--primary); font-size: .97rem; margin-bottom: 10px; display: block; }
@media(max-width:480px){
  .inline-product { flex-direction: column; }
  .inline-product-img { width: 100%; height: 140px; border-radius: var(--radius); }
}

/* ============================================
   WHY BABYMADE
   ============================================ */
.why-section { background: var(--white); }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media(min-width:640px){ .why-grid { grid-template-columns: repeat(4,1fr); } }
.why-item { text-align: center; padding: 28px 16px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--border-lt); }
.why-icon { font-size: 2.2rem; margin-bottom: 12px; }
.why-item h4 { font-size: .92rem; margin-bottom: 6px; }
.why-item p  { font-size: .78rem; }

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  padding: 72px 0; text-align: center; position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 480px; height: 480px; border-radius: 50%;
  background: rgba(255,255,255,.06); pointer-events: none;
}
.newsletter-section h2 { color: var(--white); margin-bottom: 10px; }
.newsletter-section p  { color: rgba(255,255,255,.82); max-width: 440px; margin: 0 auto 32px; }
.newsletter-form {
  display: flex; gap: 10px; max-width: 420px;
  margin: 0 auto; flex-wrap: wrap; justify-content: center;
}
.newsletter-form input {
  flex: 1; min-width: 200px; padding: 14px 20px;
  border-radius: 50px; border: none;
  font-family: 'DM Sans', sans-serif; font-size: .94rem;
  outline: none; color: var(--text);
}
.newsletter-form input:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,.35);
}
.newsletter-form input::placeholder { color: var(--text-light); }
.newsletter-submit {
  background: var(--white); color: var(--primary-dk);
  padding: 14px 26px; border-radius: 50px;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: .9rem;
  border: none; cursor: pointer; transition: all var(--t) var(--ease);
}
.newsletter-submit:hover {
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.newsletter-note { font-size: .7rem; color: rgba(255,255,255,.6); margin-top: 10px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #1E1A18; color: rgba(255,255,255,.65);
  padding: 68px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 56px;
}
@media(min-width:640px){ .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .logo-wordmark { color: var(--white); font-size: 1.4rem; }
.footer-brand .logo-wordmark span { color: var(--blush); }
.footer-brand p { font-size: .82rem; margin-top: 12px; line-height: 1.75; max-width: 240px; color: rgba(255,255,255,.5); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: rgba(255,255,255,.6);
  transition: all var(--t);
}
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-col h5 {
  color: var(--white); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif; font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col--cont { padding-top: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .82rem; color: rgba(255,255,255,.52); transition: color var(--t); }
.footer-col a:hover { color: var(--blush); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px; display: flex; flex-wrap: wrap;
  gap: 12px; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: .73rem; color: rgba(255,255,255,.32); }
.footer-bottom a { color: rgba(255,255,255,.45); font-size: .73rem; }
.footer-bottom a:hover { color: var(--blush); }
.footer-legal {
  font-size: .67rem; color: rgba(255,255,255,.28); text-align: center;
  margin-top: 16px; line-height: 1.7;
}

/* ============================================
   BLOG / ARTICLE PAGE
   ============================================ */
.article-hero {
  background: linear-gradient(140deg, #FDF5EE, #F5E8D8);
  padding: 40px 0 48px;
}
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: .75rem; color: var(--text-muted); margin-bottom: 18px;
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs .sep { color: var(--text-light); }
.article-title { max-width: 720px; margin-bottom: 16px; }
.article-meta-row {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}
.article-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--text-muted);
}
.author-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-lt); display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}

/* Article layout */
.article-wrap {
  display: grid; grid-template-columns: 1fr;
  gap: 40px; padding: 48px 0 72px;
}
@media(min-width:900px){
  .article-wrap { grid-template-columns: 1fr 320px; }
}
.article-body { max-width: 740px; }
.article-body h2 { font-size: 1.55rem; margin: 36px 0 14px; }
.article-body h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.article-body p  { font-size: .97rem; line-height: 1.85; margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 20px; }
.article-body li { font-size: .95rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 6px; }
.article-body a  { color: var(--primary); font-weight: 500; }
.article-body a:hover { text-decoration: underline; }
.article-body img { border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow); }

/* Table of Contents */
.toc {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 20px 24px; margin: 0 0 32px;
  border-left: 3px solid var(--primary);
}
.toc-title {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--primary-dk); margin-bottom: 12px; font-weight: 700;
  font-family: 'DM Sans', sans-serif;
}
.toc ol { padding-left: 18px; }
.toc li { margin-bottom: 6px; }
.toc a { font-size: .84rem; color: var(--text-muted); font-weight: 400; }
.toc a:hover { color: var(--primary); }

/* Highlight box */
.highlight-box {
  background: var(--primary-lt); border-radius: var(--radius);
  padding: 20px 24px; margin: 24px 0;
  border-left: 3px solid var(--primary);
}
.highlight-box p { color: var(--text); font-size: .92rem; margin: 0; }

/* Article sidebar */
.article-sidebar { position: relative; }
.sidebar-sticky { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 22px; }
.sidebar-widget {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-lt);
}
.widget-title {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--primary); margin-bottom: 16px; font-weight: 700;
  font-family: 'DM Sans', sans-serif;
}
.sidebar-product { display: flex; flex-direction: column; gap: 12px; }
.sidebar-prod-img {
  height: 140px; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.sidebar-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-prod-name { font-size: .9rem; line-height: 1.3; margin-bottom: 4px; }
.sidebar-prod-price { font-weight: 700; color: var(--primary); font-size: .95rem; margin-bottom: 10px; display: block; }

/* Related posts */
.related-posts {
  margin-top: 56px; padding-top: 44px; border-top: 1.5px solid var(--border-lt);
}
.related-posts h2 { margin-bottom: 24px; }
.related-mini { display: flex; gap: 14px; text-decoration: none; margin-bottom: 16px; }
.related-mini-img {
  width: 72px; height: 72px; border-radius: var(--radius); flex-shrink: 0;
  overflow: hidden; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.related-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.related-mini-info { flex: 1; }
.related-mini-tag { font-size: .67rem; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 3px; }
.related-mini-title { font-family: 'Playfair Display', serif; font-size: .92rem; color: var(--text); line-height: 1.3; }
.related-mini:hover .related-mini-title { color: var(--primary); }

/* ============================================
   CATEGORY HERO
   ============================================ */
.category-hero {
  position: relative; height: 420px; overflow: hidden;
}
@media(max-width:600px){ .category-hero { height: 280px; } }
.category-hero-img {
  position: absolute; inset: 0;
}
.category-hero-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.category-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.18) 0%, rgba(0,0,0,.55) 100%);
  display: flex; align-items: flex-end;
  padding-bottom: 48px;
}
.category-hero-overlay .container { color: var(--white); }
.category-hero-overlay .breadcrumbs { color: rgba(255,255,255,.75); margin-bottom: 14px; }
.category-hero-overlay .breadcrumbs a { color: rgba(255,255,255,.75); }
.category-hero-overlay .breadcrumbs a:hover { color: var(--white); }
.category-hero-overlay h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white); margin-bottom: 10px;
}
.category-hero-overlay p {
  font-size: 1rem; color: rgba(255,255,255,.85);
  max-width: 540px; margin: 0;
}

/* ============================================
   INNER PAGES (About, Contact, Privacy, Terms)
   ============================================ */
.page-hero {
  background: linear-gradient(140deg, #FDF5EE, #F5E8D8);
  padding: 64px 0; text-align: center;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p   { max-width: 440px; margin: 0 auto; font-size: .97rem; }
.page-body {
  max-width: 700px; margin: 0 auto; padding: 60px 20px 80px;
}
.page-body h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.page-body h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.page-body p  { margin-bottom: 16px; font-size: .95rem; line-height: 1.85; }
.page-body ul, .page-body ol { padding-left: 22px; margin-bottom: 18px; }
.page-body li { margin-bottom: 8px; font-size: .93rem; color: var(--text-muted); line-height: 1.7; }
.contact-card {
  background: var(--primary-lt); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; margin: 32px 0;
  border: 1px solid var(--border);
}
.contact-card .contact-icon { font-size: 2.5rem; margin-bottom: 12px; }
.contact-card h3 { margin-bottom: 8px; }
.contact-email {
  font-size: 1.1rem; font-weight: 600; color: var(--primary);
  font-family: 'Playfair Display', serif;
}
.contact-email:hover { color: var(--primary-dk); text-decoration: underline; }

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-sm { gap: 8px; }
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Lucide Icons ───────────────────────── */
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon svg { width: 1em; height: 1em; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm svg { width: .9em; height: .9em; }
.icon-lg svg { width: 1.4em; height: 1.4em; }
.cat-icon .icon svg { width: 1.8rem; height: 1.8rem; }
.why-icon .icon svg { width: 2rem; height: 2rem; }
.drawer-icon .icon svg { width: 1.1rem; height: 1.1rem; }

/* Scroll fade-in */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Skeleton loader */
.skeleton { background: linear-gradient(90deg, var(--border-lt) 25%, var(--bg-alt) 50%, var(--border-lt) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ============================================
   RESPONSIVE HELPERS
   ============================================ */
@media(max-width:599px){
  .section { padding: 52px 0; }
  .hero { padding: 52px 0 68px; }
  .hero-trust { gap: 16px; }
  .newsletter-section { padding: 52px 0; }
}
@media(min-width:900px){
  .hero { padding: 88px 0 108px; }
}
