/* ==========================================================================
   NeonateCare — Playful homepage
   ALL rules scoped under #nc-home so nothing leaks into the rest of the store.
   Keyframes prefixed nc- to avoid collisions with theme/Elementor/WooCommerce.
   ========================================================================== */

#nc-home {
  /* Palette */
  --cream: #FFF7EF;
  --cream-2: #FFEFE2;
  --ink: #33291F;
  --ink-soft: #7B7167;
  --coral: #FF7A5C;
  --coral-dark: #F0603F;
  --sage: #6FC49B;
  --sage-dark: #46A379;
  --honey: #FFC247;
  --honey-dark: #F4A81F;
  --sky: #63C4E6;
  --sky-dark: #38A9CE;
  --pink: #FF9FBB;
  --pink-dark: #F76D95;
  --lilac: #B79CE8;

  --accent: var(--coral);
  --accent-dark: var(--coral-dark);

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --radius: 22px;
  --radius-lg: 34px;
  --radius-pill: 999px;
  --shadow-sm: 0 6px 18px rgba(51, 41, 31, 0.07);
  --shadow: 0 18px 44px rgba(51, 41, 31, 0.12);
  --shadow-lg: 0 34px 80px rgba(51, 41, 31, 0.18);

  --maxw: 1240px;
  --gutter: 40px;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);

  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#nc-home *, #nc-home *::before, #nc-home *::after { box-sizing: border-box; }

/* --------------------------------------------------------------------------
   DEFENSIVE RESET
   The parent theme loads Bootstrap + ~20 stylesheets using generic class
   names (.container, .btn, .section, .hero, .row). These resets neutralise
   inherited styles so the homepage renders predictably.
   -------------------------------------------------------------------------- */

/* The theme ships a lazy-load script that sets inline opacity:0 on every
   img[loading="lazy"] and only restores it on the load event. If that event
   is missed or the image errors, the image stays invisible forever.
   Force visibility; !important is required to beat the inline style. */
#nc-home img {
  max-width: 100%;
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto;
}

#nc-home a { color: inherit; text-decoration: none; box-shadow: none; }
#nc-home a:hover, #nc-home a:focus { text-decoration: none; }

/* Neutralise Bootstrap/theme float & clear behaviour */
#nc-home .container::before, #nc-home .container::after,
#nc-home .section::before, #nc-home .section::after { content: none; display: none; }

/* Reset theme heading/paragraph spacing and colour */
#nc-home h1, #nc-home h2, #nc-home h3, #nc-home h4 {
  margin: 0; padding: 0; text-transform: none; color: inherit;
}
#nc-home p { margin: 0; padding: 0; }
#nc-home ul, #nc-home ol { margin: 0; padding: 0; list-style: none; }
#nc-home li { margin: 0; padding: 0; list-style: none; }
#nc-home figure, #nc-home blockquote { margin: 0; padding: 0; border: 0; background: none; quotes: none; }
#nc-home blockquote::before, #nc-home blockquote::after { content: none; }

/* Reset theme/Bootstrap button and form styling */
#nc-home button { font-family: inherit; text-transform: none; letter-spacing: normal; }
#nc-home input { font-family: inherit; box-shadow: none; }

/* Ensure full-width sections are not constrained by theme wrappers */
#nc-home { width: 100%; max-width: 100%; }

#nc-home .container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

#nc-home h1, #nc-home h2, #nc-home h3, #nc-home h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
#nc-home p { margin: 0; }
#nc-home em { font-style: italic; }

/* Buttons */
#nc-home .btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 800; font-size: 15.4px; cursor: pointer; border: none; line-height: 1.2;
  transition: transform .3s var(--bounce), box-shadow .3s ease, background .25s ease, color .25s ease;
}
#nc-home .btn-lg { padding: 18px 38px; font-size: 16.3px; }
#nc-home .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 0 var(--coral-dark); }
#nc-home .btn-primary:hover { transform: translateY(-4px); box-shadow: 0 14px 0 var(--coral-dark); color: #fff; }
#nc-home .btn-primary:active { transform: translateY(3px); box-shadow: 0 5px 0 var(--coral-dark); }
#nc-home .btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 0 rgba(0,0,0,.12); }
#nc-home .btn-light:hover { transform: translateY(-4px); box-shadow: 0 14px 0 rgba(0,0,0,.12); }
#nc-home .btn-text { background: transparent; color: var(--ink); padding-left: 6px; padding-right: 6px; }
#nc-home .btn-text:hover { color: var(--accent-dark); transform: translateY(-2px); }
#nc-home .play-dot { color: var(--accent); font-size: 12.5px; }

/* ---------- Hero ---------- */
#nc-home .hero { position: relative; padding: 44px 0 36px; overflow: hidden; }
#nc-home .hero::before { content: ""; position: absolute; width: 520px; height: 520px; background: radial-gradient(circle, rgba(99,196,230,.28), transparent 70%); top: -160px; right: -140px; border-radius: 50%; z-index: 0; }
#nc-home .hero::after { content: ""; position: absolute; width: 440px; height: 440px; background: radial-gradient(circle, rgba(255,159,187,.3), transparent 70%); bottom: -180px; left: -120px; border-radius: 50%; z-index: 0; }
#nc-home .hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
#nc-home .eyebrow { display: inline-block; background: #fff; color: var(--sage-dark); font-weight: 800; font-size: 12.8px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 18px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); margin-bottom: 24px; transform: rotate(-2deg); }
#nc-home .hero-copy h1 { font-size: clamp(46.4px, 6.2vw, 86.4px); font-weight: 400; margin-bottom: 24px; }
#nc-home .hero-copy h1 em { color: var(--accent); position: relative; }
#nc-home .hero-copy h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px; background: var(--honey); opacity: .55; border-radius: 8px; z-index: -1; transform: rotate(-1deg); }
#nc-home .lede { font-size: 18.6px; color: var(--ink-soft); max-width: 500px; margin-bottom: 28px; }
#nc-home .hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

#nc-home .hero-visual { position: relative; }
#nc-home .hero-frame { border-radius: 58% 42% 55% 45% / 55% 48% 52% 45%; overflow: hidden; box-shadow: var(--shadow-lg); border: 8px solid #fff; animation: nc-morph 12s ease-in-out infinite; }
@keyframes nc-morph {
  0%,100% { border-radius: 58% 42% 55% 45% / 55% 48% 52% 45%; }
  50% { border-radius: 45% 55% 42% 58% / 48% 55% 45% 52%; }
}
#nc-home .hero-frame img { width: 100%; height: 500px; object-fit: cover; }

#nc-home .floating-badge { position: absolute; background: #fff; border-radius: 20px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; animation: nc-float 5s ease-in-out infinite; z-index: 3; }
#nc-home .floating-badge strong { display: block; font-family: var(--font-body); font-size: 14.4px; font-weight: 800; }
#nc-home .floating-badge small { color: var(--ink-soft); font-size: 12.2px; }
#nc-home .fb-emoji { font-size: 24px; animation: nc-wiggle 3s ease-in-out infinite; }
#nc-home .fb-1 { top: 50px; left: -34px; animation-delay: 0s; }
#nc-home .fb-2 { bottom: 70px; right: -30px; animation-delay: 1.6s; }
@keyframes nc-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes nc-wiggle { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

/* ---------- Stats ---------- */
#nc-home .stats { padding: 44px 0 40px; }
#nc-home .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
#nc-home .stat { text-align: center; background: #fff; border-radius: var(--radius-lg); padding: 32px 18px; box-shadow: var(--shadow-sm); transition: transform .3s var(--bounce), box-shadow .3s ease; }
#nc-home .stat:hover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: var(--shadow); }
#nc-home .stat strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: clamp(38.4px, 4.6vw, 57.6px); line-height: 1; }
#nc-home .stat:nth-child(1) strong { color: var(--coral); }
#nc-home .stat:nth-child(2) strong { color: var(--honey-dark); }
#nc-home .stat:nth-child(3) strong { color: var(--sky-dark); }
#nc-home .stat:nth-child(4) strong { color: var(--sage-dark); }
#nc-home .stat span { font-size: 14.7px; color: var(--ink-soft); font-weight: 700; }

/* ---------- Statement ---------- */
#nc-home .statement { padding: 4px 0 52px; text-align: center; }
#nc-home .statement p { font-family: var(--font-head); font-weight: 400; font-size: clamp(27.2px, 3.8vw, 48px); line-height: 1.26; max-width: 980px; margin: 0 auto; }
#nc-home .statement em { color: var(--accent); }

/* ---------- Sections ---------- */
#nc-home .section { padding: 68px 0; position: relative; }
#nc-home .section-soft { background: linear-gradient(180deg, var(--cream-2), var(--cream)); border-radius: 60px 60px 0 0; }
#nc-home .section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
#nc-home .kicker { display: inline-block; background: rgba(255,122,92,.14); color: var(--accent-dark); font-weight: 800; font-size: 12.8px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 16px; }
#nc-home .kicker.light { background: rgba(255,255,255,.22); color: #fff; }
#nc-home .section-head h2 { font-size: clamp(35.2px, 4.6vw, 57.6px); font-weight: 400; margin-bottom: 14px; }
#nc-home .section-head p { color: var(--ink-soft); font-size: 16.8px; }

/* ---------- Categories ---------- */
#nc-home .cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 22px; }
#nc-home .cat-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 5px solid #fff; transition: transform .35s var(--bounce), box-shadow .35s ease; }
#nc-home .cat-card:nth-child(1) { background: var(--pink); }
#nc-home .cat-card:nth-child(2) { background: var(--sky); }
#nc-home .cat-card:nth-child(3) { background: var(--honey); }
#nc-home .cat-card:nth-child(4) { background: var(--sage); }
#nc-home .cat-card:nth-child(5) { background: var(--lilac); }
#nc-home .cat-card.cat-tall { grid-row: span 2; }
#nc-home .cat-card:hover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: var(--shadow); }
#nc-home .cat-card:nth-child(even):hover { transform: translateY(-8px) rotate(1.5deg); }
#nc-home .cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--bounce); }
#nc-home .cat-card:hover img { transform: scale(1.08); }
#nc-home .cat-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; background: linear-gradient(180deg, transparent 42%, rgba(51,41,31,.72)); color: #fff; }
#nc-home .cat-overlay h3 { font-size: 24.8px; font-weight: 500; color: #fff; }
#nc-home .cat-overlay span { font-size: 14.4px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: .3s var(--bounce); }
#nc-home .cat-card:hover .cat-overlay span { opacity: 1; transform: translateY(0); }

/* ---------- Full-bleed band ---------- */
#nc-home .fullbleed { position: relative; padding: 104px 0; background-image: linear-gradient(rgba(51,41,31,.42), rgba(51,41,31,.52)), url("https://neonatecare.com/wp-content/uploads/2025/06/mother-baby-daughter-having-fun-2048x1366.jpg"); background-size: cover; background-position: center; color: #fff; text-align: center; }
#nc-home .fullbleed-inner { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
#nc-home .fullbleed h2 { font-size: clamp(35.2px, 5vw, 64px); font-weight: 400; margin-bottom: 18px; color: #fff; }
#nc-home .fullbleed p { font-size: 18.2px; opacity: .95; margin-bottom: 30px; }

/* ---------- Products ---------- */
#nc-home .product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
#nc-home .product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--bounce), box-shadow .3s ease; display: flex; flex-direction: column; }
#nc-home .product-card:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: var(--shadow); }
#nc-home .pc-media { position: relative; aspect-ratio: 1; overflow: hidden; }
#nc-home .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
#nc-home .product-card:hover .pc-media img { transform: scale(1.08); }
#nc-home .pc-badge { position: absolute; top: 14px; left: 14px; background: var(--pink-dark); color: #fff; font-size: 12.2px; font-weight: 800; padding: 6px 12px; border-radius: var(--radius-pill); transform: rotate(-6deg); box-shadow: var(--shadow-sm); }
#nc-home .pc-wish { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; cursor: pointer; display: grid; place-items: center; font-size: 16px; transition: transform .25s var(--bounce), color .2s ease; }
#nc-home .pc-wish:hover { transform: scale(1.2) rotate(8deg); color: var(--pink-dark); }
#nc-home .pc-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
#nc-home .pc-cat { font-size: 11.5px; color: var(--sage-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
#nc-home .pc-name { font-family: var(--font-body); font-weight: 700; font-size: 15.7px; line-height: 1.3; }
#nc-home .pc-name a { color: inherit; }
#nc-home .pc-rating { font-size: 12.8px; color: var(--honey-dark); }
#nc-home .pc-rating small { color: var(--ink-soft); margin-left: 4px; }
#nc-home .pc-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; font-family: var(--font-head); font-weight: 600; font-size: 20.2px; color: var(--coral-dark); }
#nc-home .pc-price .now { font-family: var(--font-head); font-weight: 600; font-size: 20.2px; color: var(--coral-dark); }
#nc-home .pc-price del { color: var(--ink-soft); font-weight: 400; font-size: 13.8px; opacity: .8; }
#nc-home .pc-price ins { text-decoration: none; }
#nc-home .pc-price .was { color: var(--ink-soft); text-decoration: line-through; font-size: 13.8px; font-family: var(--font-body); font-weight: 400; }
#nc-home .pc-add { margin-top: 10px; display: block; text-align: center; background: var(--ink); color: #fff; border: none; border-radius: var(--radius-pill); padding: 12px; font-weight: 800; font-size: 14.1px; cursor: pointer; transition: background .25s ease, transform .25s var(--bounce); }
#nc-home .pc-add:hover { background: var(--accent); color: #fff; transform: translateY(-2px) scale(1.02); }
#nc-home .pc-add.added { background: var(--sage-dark); }

/* ---------- Videos ----------
   Featured video on the left; three full-image thumbnail banners stacked on
   the right. Every tile shows its poster image edge-to-edge with the play
   button and title overlaid on a bottom gradient scrim. The right column is a
   3-row grid whose total height tracks the featured tile so the two columns
   stay flush. Rewritten 2026-10-01 to fit the uploaded wide (3:1) artwork. */
#nc-home .videos-section { background: linear-gradient(180deg, var(--cream), #EAF7FB); border-radius: 60px 60px 0 0; }
#nc-home .video-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items: stretch; }

/* Shared tile styling for featured + thumbnails */
#nc-home .video-feature,
#nc-home .video-thumb {
  position: relative; display: block; width: 100%;
  border: none; padding: 0; margin: 0; cursor: pointer;
  overflow: hidden; background: #e9e2da;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--bounce), box-shadow .3s ease;
}
#nc-home .video-feature { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 16 / 10; }
#nc-home .video-feature:hover,
#nc-home .video-thumb:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

#nc-home .video-feature img,
#nc-home .video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
#nc-home .video-feature:hover img,
#nc-home .video-thumb:hover img { transform: scale(1.05); }

/* Play button */
#nc-home .video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .3s var(--bounce); animation: nc-pulse 2.4s ease-in-out infinite; z-index: 2; }
#nc-home .video-play.sm { width: 48px; height: 48px; animation: none; top: 50%; left: 26px; transform: translate(0,-50%); }
@keyframes nc-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,122,92,.5); } 70% { box-shadow: 0 0 0 18px rgba(255,122,92,0); } }
#nc-home .video-feature:hover .video-play { transform: translate(-50%,-50%) scale(1.12); }
#nc-home .video-thumb:hover .video-play.sm { transform: translate(0,-50%) scale(1.12); }

/* "Featured" tag */
#nc-home .video-tag { position: absolute; top: 16px; left: 16px; background: var(--coral); color: #fff; font-size: 12.2px; font-weight: 800; padding: 6px 13px; border-radius: var(--radius-pill); transform: rotate(-3deg); z-index: 2; }

/* Overlaid captions / titles — both sit on a bottom gradient scrim */
#nc-home .video-caption,
#nc-home .vt-title {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(51,41,31,.82));
}
#nc-home .video-caption { padding: 46px 22px 20px; font-family: var(--font-head); font-weight: 400; font-size: 20.5px; }
#nc-home .vt-title { display: block; padding: 34px 16px 13px 72px; font-weight: 700; font-size: 15px; line-height: 1.25; }

/* Right-hand column: three equal-height banners filling the featured height */
#nc-home .video-list { display: grid; grid-template-rows: repeat(3, 1fr); gap: 18px; }
#nc-home .video-thumb { border-radius: var(--radius); height: 100%; min-height: 0; }

/* ---------- Split ---------- */
#nc-home .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px var(--gutter); }
#nc-home .split-media { border-radius: 42% 58% 45% 55% / 55% 45% 55% 45%; overflow: hidden; box-shadow: var(--shadow-lg); border: 8px solid #fff; }
#nc-home .split-media img { width: 100%; height: 540px; object-fit: cover; }
#nc-home .split-copy h2 { font-size: clamp(32px, 4vw, 51.2px); font-weight: 400; margin: 14px 0 26px; }
#nc-home .promise-list { list-style: none; margin: 0 0 32px; padding: 0; }
#nc-home .promise-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 2px dotted rgba(51,41,31,.14); font-size: 16.5px; font-weight: 500; }
#nc-home .promise-list li span { font-size: 22.4px; }

/* ---------- Testimonials ---------- */
#nc-home .testimonials .testi-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding: 8px 4px 22px; overflow: visible; scroll-snap-type: none; }
#nc-home .testi-card { min-width: 0; background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); transition: transform .3s var(--bounce); margin: 0; }
#nc-home .testi-card:hover { transform: translateY(-6px) rotate(-1deg); }
#nc-home .testi-card:nth-child(1) { border-top: 6px solid var(--pink); }
#nc-home .testi-card:nth-child(2) { border-top: 6px solid var(--sky); }
#nc-home .testi-card:nth-child(3) { border-top: 6px solid var(--honey); }
#nc-home .testi-card:nth-child(4) { border-top: 6px solid var(--sage); }
#nc-home .stars { color: var(--honey-dark); letter-spacing: 2px; margin-bottom: 16px; font-size: 16.8px; }
#nc-home .testi-card blockquote { font-family: var(--font-head); font-weight: 400; font-size: 19.5px; line-height: 1.46; color: var(--ink); margin: 0 0 22px; }
#nc-home .testi-card figcaption { display: flex; align-items: center; gap: 12px; font-weight: 800; }
#nc-home .avatar { width: 44px; height: 44px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; }
#nc-home .testi-card:nth-child(1) .avatar { background: var(--pink-dark); }
#nc-home .testi-card:nth-child(2) .avatar { background: var(--sky-dark); }
#nc-home .testi-card:nth-child(3) .avatar { background: var(--honey-dark); }
#nc-home .testi-card:nth-child(4) .avatar { background: var(--sage-dark); }
#nc-home .testi-nav { display: none; }
#nc-home .testi-nav button { width: 52px; height: 52px; border-radius: 50%; border: none; background: #fff; box-shadow: var(--shadow-sm); font-size: 22.4px; cursor: pointer; transition: .25s var(--bounce); color: var(--ink); }
#nc-home .testi-nav button:hover { background: var(--accent); color: #fff; transform: translateY(-3px) scale(1.05); }

/* ---------- Instagram ---------- */
#nc-home .instagram { background: linear-gradient(180deg, #FFF1F5, var(--cream)); border-radius: 60px 60px 0 0; }
#nc-home .instagram .btn-ig { margin-top: 22px; background: linear-gradient(45deg, var(--pink-dark), var(--coral), var(--honey)); box-shadow: 0 10px 0 rgba(0,0,0,.1); color: #fff; }
#nc-home .ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
#nc-home .ig-item { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--bounce); }
#nc-home .ig-item:nth-child(even) { transform: rotate(2deg); }
#nc-home .ig-item:nth-child(odd) { transform: rotate(-2deg); }
#nc-home .ig-item:hover { transform: rotate(0) scale(1.05); z-index: 2; }
#nc-home .ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
#nc-home .ig-item:hover img { transform: scale(1.12); }
#nc-home .ig-ov { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(45deg, rgba(247,109,149,.8), rgba(255,122,92,.8)); color: #fff; font-weight: 800; font-size: 22.4px; opacity: 0; transition: opacity .3s ease; }
#nc-home .ig-item:hover .ig-ov { opacity: 1; }

/* ---------- Newsletter ---------- */
#nc-home .newsletter { position: relative; background: linear-gradient(120deg, var(--sky), var(--sage)); color: #fff; padding: 60px 0; overflow: hidden; }
#nc-home .newsletter::before { content: "\1F49B"; position: absolute; font-size: 128px; opacity: .12; top: -10px; right: 40px; transform: rotate(15deg); }
#nc-home .newsletter-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
#nc-home .newsletter h2 { font-size: clamp(30.4px, 3.6vw, 44.8px); font-weight: 400; margin-bottom: 6px; color: #fff; }
#nc-home .newsletter p { opacity: .95; }
#nc-home .news-form { display: flex; gap: 10px; background: #fff; padding: 8px; border-radius: var(--radius-pill); box-shadow: var(--shadow); }
#nc-home .news-form input { border: none; outline: none; padding: 12px 22px; border-radius: var(--radius-pill); font-size: 15.2px; min-width: 280px; font-family: var(--font-body); color: var(--ink); }

/* ---------- Lightbox ---------- */
#nc-home .lightbox { position: fixed; inset: 0; background: rgba(18,15,12,.9); z-index: 100000; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s ease; padding: 20px; }
#nc-home .lightbox.open { opacity: 1; pointer-events: auto; }
#nc-home .lightbox-inner { position: relative; width: min(900px, 100%); }
#nc-home .lightbox-frame { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
#nc-home .lightbox-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#nc-home .lightbox-close { position: absolute; top: -50px; right: 0; background: #fff; border: none; width: 42px; height: 42px; border-radius: 50%; font-size: 17.6px; cursor: pointer; }

/* ---------- Back to top ---------- */
#nc-home .to-top { position: fixed; bottom: 26px; right: 26px; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; border: none; font-size: 20.8px; cursor: pointer; box-shadow: 0 8px 0 var(--coral-dark); opacity: 0; pointer-events: none; transform: translateY(16px); transition: .3s var(--bounce); z-index: 40; }
#nc-home .to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#nc-home .to-top:hover { transform: translateY(-3px); }

/* ---------- Scroll reveal ---------- */
#nc-home .reveal { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .7s ease, transform .7s var(--bounce); }
#nc-home .reveal.in { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  #nc-home .reveal { opacity: 1; transform: none; transition: none; }
  #nc-home .floating-badge, #nc-home .fb-emoji, #nc-home .video-play, #nc-home .hero-frame { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  #nc-home { --gutter: 28px; }
  #nc-home .hero { padding: 32px 0 28px; }
  #nc-home .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  #nc-home .hero-frame img { height: 400px; }
  #nc-home .stats-grid { grid-template-columns: repeat(2, 1fr); }
  #nc-home .cat-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  #nc-home .product-grid { grid-template-columns: repeat(2, 1fr); }
  /* Stack featured over the thumbnail list; thumbnails become their own
     wide banners (no longer height-matched to the featured tile). */
  #nc-home .video-layout { grid-template-columns: 1fr; }
  #nc-home .video-list { grid-template-rows: none; }
  #nc-home .video-thumb { aspect-ratio: 16 / 7; }
  #nc-home .split { grid-template-columns: 1fr; gap: 32px; padding: 52px var(--gutter); }
  #nc-home .split-media img { height: 400px; }
  #nc-home .statement { padding: 4px 0 40px; }
  #nc-home .fullbleed { padding: 76px 0; }
  #nc-home .ig-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  #nc-home .section { padding: 48px 0; }
  #nc-home .section-soft, #nc-home .videos-section, #nc-home .instagram { border-radius: 40px 40px 0 0; }
  #nc-home .stats { padding: 32px 0 28px; }
  #nc-home .statement { padding: 0 0 32px; }
  #nc-home .section-head { margin: 0 auto 28px; }
  #nc-home .newsletter { padding: 44px 0; }
  #nc-home .cat-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  #nc-home .cat-card.cat-tall { grid-row: span 1; }
  #nc-home .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  #nc-home .ig-grid { grid-template-columns: repeat(2, 1fr); }
  #nc-home .newsletter-inner { flex-direction: column; align-items: flex-start; }
  #nc-home .news-form { width: 100%; flex-direction: column; border-radius: var(--radius); }
  #nc-home .news-form input { min-width: 0; width: 100%; }
  #nc-home .news-form .btn { width: 100%; justify-content: center; }
  #nc-home .floating-badge { transform: scale(.85); }
  #nc-home .fb-1 { left: 0; } #nc-home .fb-2 { right: 0; }
}

/* ==========================================================================
   DENSE HOMEPAGE SECTIONS
   Promo strip, 12-tile category grid, subcategory pills, deals,
   horizontal product rows, blog cards.
   Note: px units throughout — the parent theme's Bootstrap sets
   html { font-size: 10px }, so rem values cannot be trusted here.
   ========================================================================== */

/* ---------- Row head (title + "view all") ---------- */
#nc-home .row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
#nc-home .row-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 400; }
#nc-home .row-head .kicker { margin-bottom: 8px; }
#nc-home .view-all { font-weight: 800; font-size: 14.5px; color: var(--accent-dark); white-space: nowrap; padding-bottom: 4px; border-bottom: 2px solid transparent; transition: border-color .25s ease, transform .25s var(--bounce); }
#nc-home .view-all:hover { border-color: var(--accent); transform: translateX(3px); color: var(--accent-dark); }

/* ---------- Promo strip ---------- */
#nc-home .promo-strip { padding: 6px 0 30px; }
#nc-home .promo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
#nc-home .promo { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-sm); transition: transform .3s var(--bounce); }
#nc-home .promo:hover { transform: translateY(-4px); }
#nc-home .promo-ic { font-size: 24px; line-height: 1; }
#nc-home .promo strong { display: block; font-size: 14.5px; font-weight: 800; }
#nc-home .promo small { color: var(--ink-soft); font-size: 12.5px; }

/* ---------- 12-tile category grid ---------- */
#nc-home .cat-grid-lg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
#nc-home .cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; background: #fff; border-radius: 20px; padding: 16px 12px 14px; box-shadow: var(--shadow-sm); transition: transform .3s var(--bounce), box-shadow .3s ease; }
#nc-home .cat-tile:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: var(--shadow); }
#nc-home .cat-tile:nth-child(even):hover { transform: translateY(-6px) rotate(1.5deg); }
#nc-home .cat-thumb { display: block; width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--cream-2); }
#nc-home .cat-tile:nth-child(6n+1) .cat-thumb { background: #FFE4EC; }
#nc-home .cat-tile:nth-child(6n+2) .cat-thumb { background: #E1F3FA; }
#nc-home .cat-tile:nth-child(6n+3) .cat-thumb { background: #FFF1D6; }
#nc-home .cat-tile:nth-child(6n+4) .cat-thumb { background: #E3F5EC; }
#nc-home .cat-tile:nth-child(6n+5) .cat-thumb { background: #EFE7FB; }
#nc-home .cat-tile:nth-child(6n+6) .cat-thumb { background: #FFE8DF; }
#nc-home .cat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--bounce); }
#nc-home .cat-tile:hover .cat-thumb img { transform: scale(1.09); }
#nc-home .cat-name { font-weight: 800; font-size: 13.5px; line-height: 1.3; color: var(--ink); }
#nc-home .cat-count { font-size: 11.5px; color: var(--ink-soft); font-weight: 600; }

/* ---------- Popular subcategory pills ---------- */
#nc-home .pill-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
#nc-home .pill-label { font-weight: 800; font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
#nc-home .pill { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 2px solid rgba(51,41,31,.08); border-radius: var(--radius-pill); padding: 8px 15px; font-size: 13.5px; font-weight: 700; color: var(--ink); transition: transform .25s var(--bounce), border-color .25s ease, background .25s ease; }
#nc-home .pill em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--sage); border-radius: var(--radius-pill); padding: 1px 7px; }
#nc-home .pill:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent-dark); }
#nc-home .pill:hover em { background: var(--accent); }

/* ---------- Deals ---------- */
#nc-home .section-deals { background: linear-gradient(180deg, #FFF0E8, var(--cream)); border-radius: 60px 60px 0 0; }
#nc-home .kicker-hot { background: rgba(247,109,149,.16); color: var(--pink-dark); }

/* ---------- Product rows (normal page flow; no nested scrolling) ----------
   These were previously horizontal carousels. Nested overflow and scroll-snap
   captured trackpad/touch gestures and made the page feel stuck. A responsive
   grid keeps every gesture on the main page while still showing all products. */
#nc-home .row-scroll {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  overflow: visible;
  scroll-snap-type: none;
  padding: 6px 4px 18px;
}
#nc-home .row-scroll .product-card {
  min-width: 0;
  width: 100%;
  scroll-snap-align: none;
}
#nc-home .pc-compact .pc-body { padding: 14px 14px 16px; gap: 6px; }
#nc-home .pc-compact .pc-name { font-size: 13.8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#nc-home .pc-compact .pc-price { font-size: 18px; }
#nc-home .pc-compact .pc-price .now { font-size: 18px; }
#nc-home .pc-compact .pc-add { padding: 10px; font-size: 13px; }

/* Clamp long product names in the standard grid too */
#nc-home .product-grid .pc-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Blog / insights ---------- */
#nc-home .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
#nc-home .blog-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--bounce), box-shadow .3s ease; }
#nc-home .blog-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow); }
#nc-home .blog-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
#nc-home .blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
#nc-home .blog-card:hover .blog-media img { transform: scale(1.07); }
#nc-home .blog-body { display: flex; flex-direction: column; gap: 9px; padding: 18px; flex: 1; }
#nc-home .blog-date { font-size: 12px; font-weight: 800; color: var(--sage-dark); text-transform: uppercase; letter-spacing: .06em; }
#nc-home .blog-title { font-family: var(--font-head); font-size: 20px; font-weight: 500; line-height: 1.24; color: var(--ink); }
#nc-home .blog-more { margin-top: auto; font-size: 13.5px; font-weight: 800; color: var(--accent-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  #nc-home .cat-grid-lg { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
  #nc-home .promo-grid { grid-template-columns: repeat(2, 1fr); }
  #nc-home .blog-grid { grid-template-columns: repeat(2, 1fr); }
  #nc-home .row-scroll { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  #nc-home .cat-grid-lg { grid-template-columns: repeat(3, 1fr); gap: 11px; }
  #nc-home .cat-tile { padding: 10px 7px 11px; border-radius: 16px; }
  #nc-home .cat-name { font-size: 12px; }
  #nc-home .cat-count { font-size: 10.5px; }
  #nc-home .promo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  #nc-home .promo { padding: 11px 12px; border-radius: 14px; gap: 9px; }
  #nc-home .promo-ic { font-size: 20px; }
  #nc-home .promo strong { font-size: 13px; }
  #nc-home .promo small { font-size: 11.5px; }
  #nc-home .blog-grid { grid-template-columns: 1fr; }
  #nc-home .row-scroll { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-inline: 0; }
  #nc-home .section-deals { border-radius: 40px 40px 0 0; }
  #nc-home .row-head { margin-bottom: 20px; }
  #nc-home .pill-row { margin-top: 18px; }
}

/* Testimonials follow normal page flow too — no nested swipe region. */
@media (max-width: 980px) {
  #nc-home .testimonials .testi-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  #nc-home .testimonials .testi-track { grid-template-columns: 1fr; gap: 14px; padding-inline: 0; }
}

/* ==========================================================================
   FEATURED CATEGORY ARTWORK
   Uploaded NeonateCare artwork: landscape on desktop, portrait on mobile.
   ========================================================================== */
#nc-home .cat-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}
#nc-home .cat-feature {
  display: grid;
  grid-template-rows: auto auto;
  background: #fff;
  border: 5px solid #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--bounce), box-shadow .3s ease;
}
#nc-home .cat-feature:hover {
  color: var(--ink);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
#nc-home .cat-feature-media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--cream-2);
}
#nc-home .cat-feature-media picture,
#nc-home .cat-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
}
#nc-home .cat-feature-media img {
  object-fit: cover;
  transition: transform .55s ease;
}
#nc-home .cat-feature:hover .cat-feature-media img { transform: scale(1.025); }
#nc-home .cat-feature-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 16px;
  padding: 14px 18px 15px;
}
#nc-home .cat-feature-meta strong {
  grid-column: 1;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
}
#nc-home .cat-feature-meta small {
  grid-column: 1;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}
#nc-home .cat-feature-meta em {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--accent-dark);
  font-size: 13.5px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
#nc-home .cat-grid-secondary { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  #nc-home .cat-feature-grid { gap: 14px; }
  #nc-home .cat-feature-meta strong { font-size: 18px; }
}
@media (max-width: 640px) {
  #nc-home .cat-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 18px; }
  #nc-home .cat-feature { border-width: 3px; border-radius: 18px; }
  #nc-home .cat-feature-media { aspect-ratio: 2 / 3; }
  #nc-home .cat-feature-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 11px 12px; }
  #nc-home .cat-feature-meta strong { font-size: 15px; }
  #nc-home .cat-feature-meta small { font-size: 11px; }
  #nc-home .cat-feature-meta em { font-size: 12px; margin-top: 2px; }
  #nc-home .cat-grid-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
