/* Baby Brand — homepage */

/* Hero */
.hero { position: relative; width: 100%; aspect-ratio: 5 / 2; max-height: 640px; min-height: 320px; overflow: hidden; background: #CFE8F5; }
.hero-track { display: flex; height: 100%; width: 300%; transition: transform .7s cubic-bezier(.25,.8,.25,1); }
.slide { width: 33.3334%; height: 100%; position: relative; background: #CFE8F5; }
/* layers: the photo across the whole slide, then a dark wash on the left so the button reads on any photo */
.slide:not(.hb-slide) > picture, .promo > picture { display: contents; } /* <picture> only picks the file (AVIF or JPEG); the img is laid out as before */
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.12) 35%, rgba(0,0,0,0) 60%); }
.pill-out { border: 2px solid #fff; color: #fff; border-radius: 999px; padding: 11px 24px; font-size: 15px; font-weight: 700; background: transparent; transition: background .25s, color .25s; }
.pill-out:hover { background: #fff; color: var(--ink); }
.hero-pill { position: absolute; left: 96px; top: 50%; transform: translateY(-50%); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; align-items: center; gap: 2px; }
.hero-dots button { border: 0; background: none; padding: 10px 9px; display: flex; }
.hero-dots span { display: block; height: 7px; width: 7px; border-radius: 999px; background: rgba(255,255,255,.8); transition: width .3s; }
.hero-dots [aria-current="true"] span { width: 24px; background: #0F1F5C; }

/* Categories */
.cats { max-width: var(--page-w); margin: 0 auto; padding: 20px var(--page-pad) 0; }
.cat-band { background: #F4F5F7; color: #0F172A; height: 76px; display: flex; align-items: center; justify-content: center; gap: 22px; }
.orn { display: flex; align-items: center; gap: 8px; }
.cat-line { width: 90px; height: 1px; background: #0F172A; }
.dia { width: 6px; height: 6px; background: #0F172A; transform: rotate(45deg); }
.cat-title { margin: 0; color: #0F172A; font-family: var(--font-head); font-style: normal; font-weight: 600; font-size: 24px; letter-spacing: .3em; line-height: 1; padding-left: .3em; }
.cat-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.cat { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: #E5E7EB; }
.cat .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cat:hover .ph { transform: scale(1.07); }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.80) 0%, rgba(0,0,0,.42) 28%, rgba(0,0,0,0) 56%); }
.cat-txt { position: absolute; left: 28px; right: 24px; bottom: 30px; color: #fff; z-index: 1; }
.cat-name { font-family: var(--font-head); font-style: normal; font-weight: 600; font-size: 28px; line-height: 1.15; }
.cat-cta { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-family: var(--font-head); font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: .16em; }
.cta-arr { display: inline-flex; transition: transform .25s; }
.cat:hover .cta-arr { transform: translateX(5px); }

/* Promo banners */
.promo-wrap { max-width: var(--page-w); margin: 0 auto; padding: 56px var(--page-pad) 0; }
.promo { position: relative; height: 220px; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 0 50px; }
.promo > img, .promo > picture > img { position: absolute; right: 0; top: 0; width: 55%; height: 100%; object-fit: cover; object-position: center 30%; }
.promo-shade { position: absolute; inset: 0; }
.promo-txt { position: relative; }
.promo-h { margin: 0; color: #fff; font-size: 30px; letter-spacing: .06em; line-height: 1.15; }
.promo-txt p { margin: 8px 0 20px; font-size: 15px; }
.btn-w { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .14em; border-radius: 4px; }
.btn-w:hover { background: #E2E8F0; color: var(--ink); }
.btn-w [data-arrow] { display: inline-flex; transition: transform .25s; }
.btn-w:hover [data-arrow] { transform: translateX(4px); }

/* New arrivals */
.arrivals { max-width: var(--page-w); margin: 0 auto; padding: 48px var(--page-pad) 0; }
.sec-head { text-align: center; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .28em; color: var(--muted); }
.h-sec { margin: 0 0 20px; font-size: 34px; line-height: 1.15; }
.seg { position: relative; display: inline-flex; padding: 6px; background: #EFEFEA; border: 1px solid #E4E4DD; border-radius: 999px; }
.seg-pill { position: absolute; top: 6px; left: 0; height: 46px; border-radius: 999px; background: var(--navy); box-shadow: 0 6px 16px rgba(11,31,75,.30); transition: transform .32s var(--ease-out), width .32s var(--ease-out); }
.seg button { position: relative; z-index: 1; height: 46px; padding: 0; border: 0; background: transparent; border-radius: 999px; font-family: var(--font-head); font-style: normal; font-weight: 600; font-size: 15px; color: #5B5B57; transition: color .25s ease; }
.seg button[data-filter="all"] { width: 64px; }
.seg button[data-filter="shirts"] { width: 88px; }
.seg button[data-filter="pants"] { width: 86px; }
.seg button[data-filter="outerwear"] { width: 120px; }
.seg button[aria-selected="true"] { color: #fff; }
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; margin-top: 28px; transition: opacity .14s ease, transform .14s ease; }
.prod-grid.fading { opacity: 0; transform: translateY(10px); }

/* Reviews marquee */
/* Section: 64px top and bottom on desktop (32px on phones), 24px between the heading and the cards. */
.reviews { padding: 64px 0; }
.reviews .h-sec { margin-bottom: 24px !important; }
.rev-stars { margin-bottom: 10px; font-size: 16px; letter-spacing: 1px; color: #FBBF24; line-height: 1; }
.rev-stars span { color: #E5E7EB; }
.rev-av { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: #EEF0F8; color: #0B1F4B; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.mq-track { display: flex; width: max-content; padding: 4px 0; animation: marquee 45s linear infinite; will-change: transform; }
.marquee:hover .mq-track { animation-play-state: paused; }
/* Cards: white, a light border, soft shadow, 12px corners; review text 14px, at most 5 lines (4 on phones) so every
   card is the same compact height; stars, then the customer's initials, name and a Verified Buyer badge. */
.rev-card { position: relative; flex: 0 0 auto; width: 360px; margin: 0 20px 0 0; padding: 24px; background: #fff; border: 1px solid #F1F5F9; border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.06); display: flex; flex-direction: column; justify-content: space-between; }
.rev-text { margin: 0; padding-right: 8px; font-size: 14px; line-height: 1.625; color: #1F2937; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rev-card figcaption { display: flex; align-items: center; gap: 8px; margin-top: 16px; min-width: 0; }
.rev-card figcaption b { font-size: 14px; font-weight: 700; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rev-card figcaption i { display: none; }
.rev-card figcaption span:not(.rev-av) { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: #ECFDF5; color: #047857; font-size: 11px; font-weight: 700; }
.rev-card figcaption span:not(.rev-av)::before { content: '✓'; font-size: 11px; }
.rev-card > svg { position: absolute; right: 18px; top: 18px; width: 22px; height: 22px; }
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* Responsive */
@media (max-width: 1024px) {
  .cat-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cat-track::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 40%; scroll-snap-align: start; }
  .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .h-sec { font-size: 26px; }
  .promo { height: auto; padding: 32px 24px; }
  .promo-h { font-size: 24px; }
}
@media (max-width: 640px) {
  .hero { aspect-ratio: 4 / 3; min-height: 0; }
  .hero-pill { left: 20px; }
  .hero-arrow { display: none; }
  .cat-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; overflow: visible; }
  .cat-name { font-size: 19px; }
  .cat-txt { left: 16px; bottom: 18px; }
  .cat-band { height: 48px; }
  .cat-title { font-size: 14px; letter-spacing: .22em; }
  .cat-line { width: 24px; }
  .h-sec { font-size: 24px; }
  .promo-h { font-size: 20px; }
  .promo { padding: 22px 18px; }
  .rev-card { width: 290px; padding: 20px; margin-right: 12px; }
  .reviews { padding: 32px 0; }
  .rev-text { -webkit-line-clamp: 4; }
  .seg { zoom: .76; }
}
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ---------- Homepage from Admin → Homepage (home.js) ---------- */
.hb-ann { padding: 10px var(--page-pad); text-align: center; font-size: 14px; font-weight: 600; color: #fff; }
.hb-ann a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* Builder slides: the picture fills the slide, a dark wash for the text, text on the left / centre / right. */
.hb-slide { background: #1F2937; }
.hb-slide::before, .hb-slide::after { display: none; }
.hb-slide picture, .hb-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-shade { position: absolute; inset: 0; background: #000; }
.hb-copy { position: absolute; top: 50%; transform: translateY(-50%); left: 96px; right: 96px; max-width: 560px; color: #fff; }
.hb-center .hb-copy { left: 50%; right: auto; transform: translate(-50%, -50%); text-align: center; width: min(560px, 80%); }
.hb-right .hb-copy { left: auto; right: 96px; text-align: right; }
.hb-dark .hb-copy { color: var(--ink); }
.hb-dark .hb-btn { border-color: var(--ink); color: var(--ink); }
.hb-title { margin: 0; font-size: 44px; line-height: 1.1; letter-spacing: .01em; }
.hb-sub { margin: 10px 0 0; font-size: 17px; opacity: .92; }
.hb-btn { display: inline-block; margin-top: 22px; }
.hb-promo.hb-center { align-items: center; text-align: center; }
.hb-promo.hb-right { align-items: flex-end; text-align: right; }
.hb-promo.hb-right > img { right: auto; left: 0; }
.hb-all { display: flex; justify-content: center; margin-top: 28px; }
.hb-all-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 26px; border: 1.5px solid var(--navy); border-radius: 999px; color: var(--navy); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.hb-all-btn:hover { background: var(--navy); color: #fff; }
.hb-split { max-width: var(--page-w); margin: 0 auto; padding: 48px var(--page-pad) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hb-split .cat { aspect-ratio: 16 / 10; }
.hb-trust { max-width: var(--page-w); margin: 0 auto; padding: 48px var(--page-pad) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.hb-trust-i { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid #E8E6E0; border-radius: 12px; background: #fff; }
.hb-trust-ic { font-size: 26px; line-height: 1; }
.hb-trust-i b { display: block; font-size: 15px; }
.hb-trust-i span { font-size: 13px; color: var(--muted); }
.hb-count { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 40px; border-radius: 8px; color: #fff; }
.hb-count-h { margin: 0; font-size: 26px; }
.hb-count p { margin: 6px 0 0; opacity: .9; }
.hb-clock { display: flex; gap: 10px; }
.hb-clock div { min-width: 62px; padding: 8px 6px; border-radius: 8px; background: rgba(255,255,255,.14); text-align: center; }
.hb-clock b { display: block; font-size: 26px; line-height: 1.1; }
.hb-clock span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.hb-text { max-width: 820px; margin: 0 auto; padding: 56px var(--page-pad) 0; }
.hb-text p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--body-2); white-space: pre-line; }
.hb-center { text-align: center; }
.hb-right { text-align: right; }
.hb-signup { max-width: var(--page-w); margin: 56px auto 0; padding: 36px 40px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hb-signup .h-sec { margin: 0; font-size: 26px; text-align: left; }
.hb-signup p { margin: 6px 0 0; color: var(--body-2); }
.hb-signup-f { display: flex; gap: 8px; flex: 1; max-width: 440px; min-width: 260px; }
.hb-signup-f .fld { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 16px; background: #fff; }
.hb-signup-f .buy { height: 48px; padding: 0 22px; }
.hb-signup-ok { width: 100%; margin: 0; font-weight: 600; color: var(--save-ink); }
@media (max-width: 768px) {
  .hb-dsk { display: none !important; }
  .hb-copy { left: 22px; right: 22px; }
  .hb-right .hb-copy { right: 22px; }
  .hb-title { font-size: 26px; }
  .hb-sub { font-size: 14px; }
  .hb-btn { margin-top: 14px; padding: 9px 18px; font-size: 13px; }
  .hb-split { grid-template-columns: 1fr; gap: 14px; padding-top: 32px; }
  .hb-count { padding: 22px 18px; }
  .hb-clock div { min-width: 54px; }
  .hb-signup { margin-top: 40px; padding: 24px 18px; border-radius: 0; }
}
@media (min-width: 769px) { .hb-mob { display: none !important; } }

/* ---------- Section settings from the builder (home.js wrapCls) ---------- */
.hb-sec { position: relative; }
.hb-sec.hb-nowhere { display: none; }
/* Space above / below replaces the section's own spacing. */
.hb-sec[class*="hb-pt-"] > * { padding-top: 0 !important; margin-top: 0 !important; }
.hb-sec[class*="hb-pb-"] > * { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.hb-pt-none { padding-top: 0; } .hb-pt-s { padding-top: 16px; } .hb-pt-m { padding-top: 32px; } .hb-pt-l { padding-top: 56px; } .hb-pt-xl { padding-top: 88px; }
.hb-pb-none { padding-bottom: 0; } .hb-pb-s { padding-bottom: 16px; } .hb-pb-m { padding-bottom: 32px; } .hb-pb-l { padding-bottom: 56px; } .hb-pb-xl { padding-bottom: 88px; }
/* Height of slideshows, banners and tiles. */
.hb-sz-s .hero { aspect-ratio: auto; height: 300px; min-height: 0; } .hb-sz-m .hero { aspect-ratio: auto; height: 440px; } .hb-sz-l .hero { aspect-ratio: auto; height: 580px; max-height: none; } .hb-sz-full .hero { aspect-ratio: auto; height: calc(100svh - 76px); max-height: none; }
.hb-sz-s .promo { height: 160px; } .hb-sz-m .promo { height: 260px; } .hb-sz-l .promo { height: 360px; } .hb-sz-full .promo { height: calc(100svh - 120px); }
.hb-sz-s .hb-split .cat { aspect-ratio: 21 / 9; } .hb-sz-l .hb-split .cat { aspect-ratio: 4 / 3; } .hb-sz-full .hb-split .cat { aspect-ratio: auto; height: calc(100svh - 120px); }
.hb-sz-s .cat-track .cat { aspect-ratio: 1 / 1; } .hb-sz-l .cat-track .cat { aspect-ratio: 2 / 3; }
.hb-sz-s .hb-code { min-height: 160px; } .hb-sz-m .hb-code { min-height: 320px; } .hb-sz-l .hb-code { min-height: 480px; } .hb-sz-full .hb-code { min-height: calc(100svh - 76px); }
.hb-sz-s .hb-count { padding-top: 14px; padding-bottom: 14px; } .hb-sz-l .hb-count { padding-top: 48px; padding-bottom: 48px; }
/* Backgrounds; text turns white on dark ones. */
.hb-bg-light { background: #F4F5F7; }
.hb-bg-dark { color: #fff; }
.hb-bg-dark .h-sec, .hb-bg-dark .hb-text p, .hb-bg-dark .hb-trust-i span, .hb-bg-dark .hb-signup p, .hb-bg-dark .cat-title { color: #fff; }
.hb-bg-dark .cat-band { background: rgba(255,255,255,.08); }
.hb-bg-dark .cat-line, .hb-bg-dark .dia { background: #fff; }
.hb-bg-dark .seg { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
.hb-bg-dark .seg button { color: rgba(255,255,255,.85); }
.hb-bg-dark .hb-trust-i { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.hb-bg-dark .hb-all-btn { border-color: #fff; color: #fff; }
.hb-bg-light .reviews, .hb-bg-dark .reviews, .hb-bg-custom .reviews { background: transparent; }
/* Text alignment. */
.hb-al-left .sec-head, .hb-al-left .hb-text, .hb-al-left .promo-txt, .hb-al-left .hb-code { text-align: left; }
.hb-al-center .sec-head, .hb-al-center .hb-text, .hb-al-center .promo-txt, .hb-al-center .hb-code, .hb-al-center .hb-signup > div { text-align: center; }
.hb-al-right .sec-head, .hb-al-right .hb-text, .hb-al-right .promo-txt, .hb-al-right .hb-code, .hb-al-right .hb-signup > div { text-align: right; }
.hb-al-center .promo { align-items: center; } .hb-al-right .promo { align-items: flex-end; } .hb-al-left .promo { align-items: flex-start; }
.hb-al-left .sec-head .seg { margin-right: auto; } .hb-al-left .sec-head > div { justify-content: flex-start !important; }
.hb-al-right .sec-head > div { justify-content: flex-end !important; }
.hb-al-center .hb-copy { left: 50%; right: auto; transform: translate(-50%, -50%); text-align: center; width: min(560px, 80%); }
.hb-al-right .hb-copy { left: auto; right: 96px; text-align: right; }
.hb-al-left .hb-copy { left: 96px; right: 96px; transform: translateY(-50%); text-align: left; }
.hb-code { max-width: var(--page-w); margin: 0 auto; }
@media (max-width: 768px) {
  .hb-pt-l { padding-top: 40px; } .hb-pt-xl { padding-top: 56px; } .hb-pb-l { padding-bottom: 40px; } .hb-pb-xl { padding-bottom: 56px; }
  .hb-sz-s .hero { height: 220px; } .hb-sz-m .hero { height: 320px; } .hb-sz-l .hero { height: 440px; }
  .hb-al-right .hb-copy, .hb-al-left .hb-copy { left: 22px; right: 22px; }
}

