/* Babyzonix reference design */
:root {
    --primary-color: 42 181 216;
    --title-color: 17 34 59;
    --description-color: 101 108 122;
    --button-hover-color: 18 154 191;
    --button-hover-text-color: 255 255 255;
    --footer-text-color: 17 34 59;
    --bg-light: 250 247 240;
    --border-color: 228 232 238;
    --black: 17 34 59;
    --white: 255 255 255;
    --baby-shadow: 0 20px 50px rgb(var(--title-color) / 0.12);
}

body.fronted {
    font-family: 'Poppins', sans-serif;
    background: rgb(var(--white));
    color: rgb(var(--title-color));
}

/* Default frontend text colors — description (gray) for body copy,
   title (dark) for headings, with explicit overrides per component */
body.fronted p,
body.fronted span {
    color: rgb(var(--description-color)) !important;
}

/* Header action spans must match header link/button white color */
.baby-header a span,
.baby-header button span {
    color: rgb(var(--white)) !important;
}

/* Announcement bar text must stay white */
.announcement-bar.baby-announcement p,
.announcement-bar.baby-announcement span {
    color: rgb(var(--white)) !important;
}

/* Product focus quantity label */
.baby-qty > span:first-child {
    color: rgb(var(--title-color)) !important;
}

body.fronted .baby-hero-slide__content p,
body.fronted .baby-hero-slide__content span {
    color: rgb(var(--white)) !important;
}

body.fronted :is(h1, h2, h3, h4, h5, h6) {
    color: rgb(var(--title-color)) !important;
    letter-spacing: 0;
}

body.fronted .baby-hero-slide__content :is(h1, h2, h3, h4, h5, h6) {
    color: rgb(var(--white)) !important;
}

.baby-container {
    width: min(1500px, calc(100% - 100px));
    margin: 0 auto;
}

.baby-section {
    padding: 100px 0;
}

.baby-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 32px;
    border-radius: 10px;
    background: rgb(var(--primary-color));
    color: rgb(var(--white)) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease;
}

.baby-btn:hover {
    transform: translateY(-2px);
    color: rgb(var(--primary-color)) !important;
    background: rgb(var(--white));
    border: 1px solid rgb(var(--primary-color)) !important;
}

.baby-btn--wide {
    width: 100%;
}

.baby-btn--dark {
    background: #102846;
    border-color: #102846;
    box-shadow: none;
}

.baby-btn--dark:hover {
    background: #071a30;
}

body.fronted span.baby-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: rgb(var(--primary-color)) !important;
    font-size: 16px;
    font-weight: 600;
}

.baby-radius-img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease, box-shadow 400ms ease;
}

.baby-tall-img {
    min-height: 560px;
}

.site-header.baby-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 30;
    background: rgba(0, 0, 0, .35) !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    transition: background 300ms ease;
}

.site-header.baby-header.scrolled {
    background: rgba(0, 0, 0, .65) !important;
}

.baby-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.baby-header .main-nav {
    display: flex;
    gap: 0;
    align-items: center;
}

.baby-header .main-nav>li {
    position: relative;
}

.baby-header .main-nav>li:not(:last-child)::after {
    content: '|';
    color: rgba(var(--white));
    font-size: 13px;
    font-weight: 300;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    margin: 0 22px;
    display: inline-block;
    vertical-align: middle;
}

.baby-header a,
.baby-header button {
    color: rgb(var(--white)) !important;
    font-size: 16px;
    font-weight: 700;
}

.h-15 {
    height: 4.25rem;
}

.baby-header .main-nav a:hover,
.baby-header .main-nav .active>a {
    color: rgb(var(--primary-color)) !important;
}

.baby-logo-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
}

.baby-header__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;
}

.baby-header__actions a,
.baby-header__actions button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    background: transparent;
}

.baby-header__actions .count-badge,
.baby-header__actions #cart-count,
.baby-header__actions .wishlist-count {
    position: static !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50%;
    background: rgb(var(--primary-color)) !important;
    color: rgb(var(--white)) !important;
    font-size: 9px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transform: none !important;
    margin-left: 0;
}

.announcement-bar.baby-announcement {
    background: rgb(var(--primary-color)) !important;
    color: rgb(var(--white)) !important;
    margin: 0 !important;
}

.baby-hero {
    min-height: 890px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center right;
    overflow: hidden;
}

.baby-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 18, 31, .52) 0%, rgba(7, 18, 31, .28) 40%, rgba(7, 18, 31, .06) 70%, rgba(7, 18, 31, .02) 100%);
}

.baby-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 84px;
}

.baby-hero h1 {
    max-width: 620px;
    margin: 0 0 28px;
    color: rgb(var(--white)) !important;
    font-size: 67px;
    line-height: 1.12 !important;
    font-weight: 800;
}

.baby-hero p {
    max-width: 650px;
    margin: 0 0 36px;
    color: rgb(var(--white)) !important;
    font-size: 14px;
    line-height: 1.75;
    font-weight: 500;
}

.baby-actions {
    display: flex;
    align-items: center;
    gap: 27px;
}

.baby-play {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: rgb(var(--white)) !important;
    font-weight: 700;
}

.baby-play__icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgb(var(--white));
    color: rgb(var(--primary-color));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 300ms ease, box-shadow 300ms ease;
    flex-shrink: 0;
}

.baby-play__icon i,
.baby-play__icon svg {
    color: rgb(var(--primary-color)) !important;
}

.baby-play__text {
    display: inline;
    color: rgb(var(--white)) !important;
}

.baby-play:hover .baby-play__icon {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.baby-slider {
    position: absolute;
    top: 50%;
    z-index: 3;
    color: rgb(var(--white));
    font-size: 32px;
    background: transparent;
}

.baby-slider--prev {
    left: 48px;
}

.baby-slider--next {
    right: 48px;
}

.baby-split__grid,
.baby-feature-grid,
.baby-why-grid,
.baby-product-focus__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.baby-copy h2,
.baby-feature-copy h2,
.baby-why-copy h2,
.baby-product-copy h2,
.baby-heading h2 {
    font-size: 48px;
    line-height: 1.2 !important;
    font-weight: 700;
    margin: 0 0 24px;
}

.baby-feature-copy {
    text-align: center;
}

.baby-why-copy {
    text-align: center;
}

body.fronted .baby-copy p,
.baby-feature-copy>p,
.baby-why-copy>p,
.baby-product-copy p,
.baby-heading p {
    color: rgb(var(--description-color)) !important;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.baby-service-band {
    padding: 80px 0;
    background: rgb(var(--bg-light));
}

.baby-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.baby-service {
    text-align: center;
    transition: transform 300ms ease;
}

.baby-service:hover {
    transform: translateY(-4px);
}

.baby-service i {
    font-size: 39px;
    color: rgb(var(--title-color));
    margin-bottom: 24px;
    transition: color 300ms ease;
}


.baby-service h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
}

body.fronted .baby-service p {
    color: rgb(var(--description-color)) !important;
    font-size: 16px;
}

.baby-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 32px;
    margin-top: 48px;
    text-align: start;
}

.baby-check {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 18px;
}

.baby-check>i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgb(var(--primary-color));
    color: rgb(var(--white));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-top: 3px;
}

.baby-check h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
}

body.fronted .baby-check p {
    color: rgb(var(--description-color)) !important;
    font-size: 13px;
    line-height: 1.75;
}

.baby-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.baby-info-card {
    min-height: 200px;
    padding: 32px 28px;
    text-align: center;
    border-radius: 20px;
    background: rgb(var(--white));
    box-shadow: 0 20px 50px rgb(var(--title-color) / 0.12);
    transition: transform 350ms ease, box-shadow 350ms ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.baby-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgb(var(--title-color) / 0.14);
}

.baby-info-card i {
    font-size: 42px;
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--title-color));
}

.baby-info-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 13px;
    color: rgb(var(--title-color));
    text-align: center;
    width: 100%;
}

.baby-info-card p {
    color: rgb(var(--description-color)) !important;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
    width: 100%;
    margin: 0;
}

.baby-promo {
    min-height: 760px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.baby-promo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(7, 18, 31, .60) 0%, rgba(7, 18, 31, .40) 40%, rgba(7, 18, 31, .20) 100%);
}

.baby-promo.baby-promo--video {
    overflow: hidden;
}

.baby-promo.baby-promo--video::before {
    z-index: 1;
}

.baby-promo.baby-promo--video .baby-container {
    z-index: 2;
}

.baby-promo__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.baby-promo__video--yt {
    border: none;
    pointer-events: none;
}

.baby-video::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
}

.baby-promo .baby-container {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.baby-promo .baby-eyebrow {
    color: rgb(var(--primary-color)) !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: inline-block;
}

.baby-promo h1.baby-promo-title,
.baby-promo h2 {
    color: rgb(var(--white)) !important;
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    margin: 0 0 18px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.baby-promo .baby-promo-subtitle {
    color: rgba(255, 255, 255, .92) !important;
    font-weight: 500;
    margin-bottom: 32px;
    font-size: 16px;
    letter-spacing: 0.2px;
}

.baby-countdown {
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
}

.baby-countdown span {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    background: rgb(var(--white));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgb(var(--description-color)) !important;
    font-size: 12px;
    text-transform: capitalize;
    font-weight: 500;
    line-height: 1;
}

.baby-countdown strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 6px;
    font-weight: 600;
    color: rgb(var(--black));
}

.baby-gallery {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 24px;
    align-items: start;
}

.baby-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.baby-thumbs img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border: 2px solid rgb(var(--border-color));
    border-radius: 16px;
    padding: 8px;
    cursor: pointer;
    transition: border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
    background: rgb(var(--white));
}

.baby-thumbs img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.baby-thumbs img.active {
    border-color: rgb(var(--primary-color));
    box-shadow: 0 4px 12px rgba(var(--primary-color), 0.12);
}

.baby-product-image {
    min-height: 520px;
    border: 1px solid rgb(var(--border-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgb(var(--bg-light));
    position: relative;
    overflow: hidden;
}

.baby-product-image img {
    width: 100%;
    height: 100%;
    max-height: 440px;
    object-fit: contain;
    transition: transform .4s ease;
}

.baby-product-image:hover img {
    transform: scale(1.02);
}

.baby-product-label {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgb(var(--primary-color));
    color: rgb(var(--white));
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 2;
}

body.fronted span.baby-product-variant-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgb(var(--title-color));
    color: rgb(var(--white)) !important;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 2;
}

.baby-rating {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.pf-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #d1d5db;
    font-size: 14px;
}

.pf-stars .fas.fa-star {
    color: #f5a623;
}

.pf-stars .fas.fa-star-half-alt {
    color: #f5a623;
}

body.fronted .baby-rating span {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: rgb(var(--primary-color)) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

body.fronted .baby-rating span .fa-check-circle {
    font-size: 13px;
    color: rgb(var(--primary-color)) !important;
}

.baby-product-copy h2 {
    font-size: 36px;
    line-height: 1.3 !important;
    margin-bottom: 16px;
}

.baby-product-copy h2 a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.baby-product-copy h2 a:hover {
    color: rgb(var(--primary-color));
}

.baby-price {
    display: block;
    color: rgb(var(--primary-color));
    font-size: 32px;
    margin-bottom: 18px;
    font-weight: 800;
}

.baby-price-from {
    font-size: 16px;
    font-weight: 600;
    color: rgb(var(--description-color));
    margin-right: 4px;
}

.baby-desc {
    color: rgb(var(--description-color));
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.baby-qty {
    display: grid;
    grid-template-columns: auto 130px 1fr;
    align-items: center;
    gap: 18px;
    margin: 24px 0 22px;
    font-size: 13px;
    font-weight: 700;
}

.pf-qty-wrap {
    height: 50px;
    border: 1px solid rgb(var(--border-color));
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    background: rgb(var(--white));
}

.pf-qty-wrap button {
    background: rgb(var(--white));
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: rgb(var(--title-color));
    transition: background .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-qty-wrap button:hover {
    background: #f6f7fb;
}

.pf-qty-wrap b {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7fb;
    font-size: 14px;
    color: rgb(var(--title-color));
}

.baby-qty .wishlist-btn {
    justify-self: end;
    color: rgb(var(--title-color)) !important;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color .2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.baby-qty .wishlist-btn:hover {
    color: rgb(var(--primary-color)) !important;
}

.baby-qty .wishlist-btn.active {
    color: #e11d48 !important;
}

.baby-qty .wishlist-btn i {
    font-size: 16px;
}

.baby-product-notes {
    margin-top: 32px;
    display: grid;
    gap: 14px;
    color: rgb(var(--description-color));
    font-size: 13px;
}

.baby-product-notes i {
    margin-right: 12px;
    color: rgb(var(--title-color));
    width: 18px;
    text-align: center;
}

.pf-variant-form {
    margin-bottom: 18px;
}

.pf-variant-group {
    margin-bottom: 16px;
}

.pf-variant-label {
    font-size: 14px;
    font-weight: 700;
    color: rgb(var(--title-color)) !important;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.pf-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pf-variant-option {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.pf-variant-text {
    display: inline-block;
    padding: 8px 18px;
    border: 2px solid rgb(var(--border-color));
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgb(var(--title-color));
    background: rgb(var(--white));
    transition: all 0.2s ease;
}

.pf-variant-option:hover:not(.pf-variant-disabled) .pf-variant-text {
    border-color: rgb(var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.pf-variant-option.active .pf-variant-text {
    border-color: rgb(var(--primary-color));
    background: rgb(var(--primary-color));
    color: rgb(var(--white));
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.25);
}

.pf-variant-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.pf-variant-disabled .pf-variant-text {
    text-decoration: line-through;
    background: #f3f4f6;
}

.pf-variant-oos {
    display: block;
    font-size: 11px;
    color: #ef4444;
    margin-top: 2px;
    text-align: center;
}

.pf-variant-disabled .pf-variant-oos {
    text-decoration: none;
}

.pf-variant-has-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pf-variant-image-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    border: 2px solid rgb(var(--border-color));
    border-radius: 10px;
    overflow: hidden;
    background: rgb(var(--white));
    transition: all 0.2s ease;
    cursor: pointer;
}

.pf-variant-option:hover:not(.pf-variant-disabled) .pf-variant-image-wrap {
    border-color: rgb(var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.pf-variant-options .pf-variant-option.active .pf-variant-image-wrap {
    border: 2px solid rgb(var(--primary-color)) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.25) !important;
    transform: translateY(-2px);
}

.pf-variant-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pf-variant-image-label {
    font-size: 12px;
    font-weight: 600;
    color: rgb(var(--title-color));
    text-align: center;
}

.pf-variant-option.active .pf-variant-image-label {
    color: rgb(var(--primary-color));
}

.pf-variant-image-disabled {
    opacity: 0.6;
}

.pf-variant-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.pf-variant-image-overlay span {
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    padding: 2px 4px;
}

.pf-selected-variant-name {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgb(var(--primary-color)) !important;
}

body.fronted .pf-selected-variant-name span {
    color: rgb(var(--primary-color)) !important;
}

.baby-video {
    min-height: 920px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.baby-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 31, .12);
}

.baby-video-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 60px 20px;
}

.baby-video--direct {
    flex-direction: column;
    padding-bottom: 0;
}

.baby-video__player {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}

.baby-video h2.baby-video-title {
    color: rgb(var(--white)) !important;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.baby-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgb(var(--white));
    color: rgb(var(--primary-color));
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    text-decoration: none;
}

.baby-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
}

.baby-play-btn i {
    margin-left: 4px;
}

/* Video Modal */
.baby-video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.baby-video-modal.is-open {
    display: flex;
}

.baby-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 31, .85);
    cursor: pointer;
}

.baby-video-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
}

.baby-video-modal-content iframe,
.baby-video-modal-content video {
    width: 100%;
    height: 100%;
    border: none;
}

.baby-video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgb(var(--white));
    border: none;
    color: rgb(var(--title-color));
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background .2s ease;
}

.baby-video-modal-close:hover {
    transform: scale(1.1);
    background: rgb(var(--primary-color));
    color: rgb(var(--white));
}

@media (max-width: 900px) {
    .baby-video {
        min-height: 560px;
    }

    .baby-video h2.baby-video-title {
        font-size: 32px;
    }

    .baby-play-btn {
        width: 64px;
        height: 64px;
        font-size: 20px;
    }

    .baby-video-modal-content {
        border-radius: 8px;
    }
}

@media (max-width: 560px) {
    .baby-video {
        min-height: 420px;
    }

    .baby-video h2.baby-video-title {
        font-size: 26px;
    }

    .baby-play-btn {
        width: 56px;
        height: 56px;
        font-size: 18px;
    }

    .baby-video-modal-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: -40px;
    }
}

.baby-heading {
    text-align: center;
    margin-bottom: 70px;
}

.baby-heading .baby-eyebrow {
    color: rgb(var(--primary-color)) !important;
}

/* Product Swiper & Cards */
.baby-product-swiper {
    padding: 20px;
    margin: 0 -20px;
}

.baby-product-swiper .swiper-button-next,
.baby-product-swiper .swiper-button-prev {
    top: 42%;
}

.baby-product-card {
    background: rgb(var(--white));
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow .35s ease, transform .35s ease;
    border: 1px solid rgb(var(--border-color));
    height: 100%;
}

.baby-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgb(var(--title-color) / 0.10);
}

.baby-product-card__image {
    position: relative;
    padding: 28px 28px 20px;
    overflow: hidden;
}

.baby-product-card__image a {
    display: block;
}

.baby-product-card__image img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    transition: transform .4s ease;
}

.baby-product-card:hover .baby-product-card__image img {
    transform: scale(1.04);
}

.baby-product-card__actions {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: flex;
    flex-direction: row;
    gap: 8px;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
}

.baby-product-card:hover .baby-product-card__actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.baby-product-card__actions button,
.baby-product-card__actions a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgb(var(--white));
    border: 1px solid rgb(var(--border-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--title-color));
    font-size: 14px;
    box-shadow: 0 2px 8px rgb(var(--title-color) / 0.08);
    transition: all .2s ease;
    text-decoration: none;
    cursor: pointer;
}

.baby-product-card__actions button:hover,
.baby-product-card__actions a:hover {
    background: rgb(var(--primary-color));
    border-color: rgb(var(--primary-color));
    color: rgb(var(--white));
}

.baby-product-card__body {
    padding: 0 24px 24px;
    text-align: start;
}

.baby-product-card__body h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: rgb(var(--title-color));
    line-height: 1.4;
}

.baby-product-card__body h3 a {
    color: inherit;
    text-decoration: none;
}

.baby-product-card__body strong {
    display: block;
    color: rgb(var(--primary-color));
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.baby-product-card__body .baby-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    margin-bottom: 14px;
    color: #d1d5db;
}

.baby-product-card__body .baby-stars .fas.fa-star,
.baby-product-card__body .baby-stars .fas.fa-star-half-alt {
    color: #f5a623;
}

.baby-product-card__cart {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    background: rgb(var(--primary-color));
    color: rgb(var(--white));
    border: 1px solid rgb(var(--primary-color));
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all .3s ease;
    cursor: pointer;
}

.baby-product-card:hover .baby-product-card__cart {
    opacity: 1;
    transform: translateY(0);
}

.baby-product-card__cart:hover {
    background: rgb(var(--button-hover-color));
    border-color: rgb(var(--button-hover-color));
}

/* Blog Swiper & Cards */
.baby-blog-swiper {
    padding: 20px;
    margin: 0 -20px;
}

.baby-blog-swiper .swiper-button-next,
.baby-blog-swiper .swiper-button-prev {
    top: 38%;
}

.baby-blog-card {
    height: 100%;
}

.baby-blog-card img {
    width: 100%;
    aspect-ratio: 1.6;
    object-fit: contain;
    border-radius: 20px;
    margin-bottom: 24px;
    transition: transform 400ms ease, box-shadow 400ms ease;
}

.baby-blog-card:hover img {
    transform: scale(1.03);
}

.baby-blog-card p {
    font-size: 13px;
    color: rgb(var(--description-color)) !important;
    margin-bottom: 12px;
}

.baby-blog-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
}

.baby-blog-card h3 a {
    color: rgb(var(--title-color));
    text-decoration: none;
}

.baby-blog-card>a:last-child {
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.baby-arrow-icon {
    vertical-align: middle;
}

.baby-newsletter {
    padding: 80px 0 0;
    position: relative;
    z-index: 2;
}

.baby-newsletter__box {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 60px;
    align-items: center;
    background: rgb(var(--white));
    border-radius: 24px;
    box-shadow: 0 20px 50px rgb(var(--title-color) / 0.12);
    padding: 55px 70px;
    transition: box-shadow 350ms ease, transform 350ms ease;
    margin-bottom: -90px;
}

.baby-newsletter__box:hover {
    box-shadow: 0 22px 55px rgb(var(--title-color) / 0.13);
}

.baby-newsletter__content {
    max-width: 480px;
}

.baby-newsletter h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.3;
}

.baby-newsletter p {
    color: rgb(var(--description-color)) !important;
    font-size: 14px;
    line-height: 1.7;
}

.baby-newsletter form {
    display: flex;
    align-items: center;
    width: 100%;
}

.baby-newsletter__form-inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 54px;
    background: rgb(var(--white));
    border-radius: 40px;
    box-shadow: 0 4px 18px rgb(var(--title-color) / 0.08);
    border: 1px solid rgb(var(--border-color));
    padding: 4px;
    overflow: hidden;
}

.baby-newsletter input {
    flex: 1;
    padding: 0 22px;
    font-size: 14px;
    border: 0;
    background: transparent;
    outline: none;
}

.baby-newsletter input::placeholder {
    color: rgb(var(--description-color));
    opacity: 0.7;
}

.baby-newsletter button {
    width: 110px;
    height: 100%;
    background: rgb(var(--primary-color));
    color: rgb(var(--white));
    font-weight: 600;
    font-size: 14px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: background 300ms ease;
}

.baby-newsletter button:hover {
    background: rgb(var(--button-hover-color));
}

.site-footer.baby-footer {
    background: rgb(var(--bg-light)) !important;
    padding: 170px 0 35px !important;
    color: rgb(var(--title-color)) !important;
    position: relative;
    z-index: 1;
}

.baby-footer__top {
    padding: 0 0 60px;
}

.baby-footer__logo {
    margin-bottom: 55px;
}

.baby-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.baby-footer h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 28px;
}

.baby-footer ul {
    display: grid;
    gap: 20px;
}

.baby-footer a {
    color: rgb(var(--title-color)) !important;
    font-size: 14px;
    transition: color 200ms ease;
}

.baby-footer__bottom {
    border-top: 1px solid rgb(var(--border-color));
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.baby-social {
    display: flex;
    gap: 10px;
}

.baby-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #102846;
    color: rgb(var(--white)) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 250ms ease, background 250ms ease;
    font-size: 14px;
    text-decoration: none;
}

.baby-social a:hover {
    transform: translateY(-3px);
    background: rgb(var(--primary-color));
}

.baby-payments {
    display: flex;
    gap: 6px;
    align-items: center;
}

.baby-payment-icon {
    display: inline-flex;
    width: 38px;
    height: 24px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.baby-payment-icon svg,
.baby-payment-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

@media (max-width: 1180px) {
    .baby-header__inner {
        grid-template-columns: auto auto;
    }

    .baby-header__nav {
        display: none;
    }

    .baby-header__actions {
        gap: 12px;
    }

    .baby-hero h1 {
        font-size: 54px;
    }

    .baby-split__grid,
    .baby-feature-grid,
    .baby-why-grid,
    .baby-product-focus__grid {
        gap: 44px;
    }
}

@media (max-width: 900px) {
    .baby-container {
        width: min(100% - 32px, 680px);
    }

    .baby-section {
        padding: 80px 0;
    }

    .baby-promo {
        min-height: 520px;
    }

    .baby-promo .baby-container {
        padding: 50px 0;
    }

    .baby-promo h1.baby-promo-title,
    .baby-promo h2 {
        font-size: 36px;
    }

    .baby-countdown span {
        width: 64px;
        height: 64px;
        font-size: 10px;
    }

    .baby-countdown strong {
        font-size: 22px;
    }

    .baby-hero {
        min-height: 760px;
        background-position: center;
    }

    .baby-hero h1 {
        font-size: 42px;
    }

    .baby-split__grid,
    .baby-feature-grid,
    .baby-why-grid,
    .baby-product-focus__grid,
    .baby-newsletter__box {
        grid-template-columns: 1fr;
        padding: 42px 28px;
        gap: 28px;
    }

    .baby-service-grid,
    .baby-product-grid,
    .baby-blog-grid,
    .baby-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .baby-check-grid,
    .baby-card-grid {
        grid-template-columns: 1fr;
    }

    .baby-tall-img {
        min-height: 0;
    }

    .baby-product-grid {
        gap: 24px;
    }

    .baby-product-card__image img {
        height: 220px;
    }

    .baby-product-card__cart {
        opacity: 1;
        transform: translateY(0);
    }

    .baby-gallery {
        grid-template-columns: 1fr;
    }

    .baby-thumbs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .baby-product-image {
        min-height: 320px;
        padding: 24px;
    }

    .baby-product-image img {
        max-height: 280px;
    }

    .baby-newsletter__content {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .baby-section {
        padding: 60px 0;
    }

    .baby-header__actions a span:not(.count-badge):not(#cart-count):not(.wishlist-count),
    .baby-header__actions button span {
        display: none;
    }

    .baby-logo-badge {
        width: 44px;
        height: 44px;
    }

    .baby-promo {
        min-height: 420px;
    }

    .baby-promo h1.baby-promo-title,
    .baby-promo h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .baby-promo .baby-promo-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .baby-countdown {
        gap: 8px;
        margin-bottom: 24px;
    }

    .baby-countdown span {
        width: 54px;
        height: 54px;
        border-radius: 6px;
        font-size: 9px;
    }

    .baby-countdown strong {
        font-size: 18px;
        margin-bottom: 3px;
    }

    .baby-promo .baby-btn {
        min-height: 42px;
        padding: 0 22px;
        font-size: 13px;
    }

    .baby-hero {
        min-height: 680px;
    }

    .baby-hero h1 {
        font-size: 34px;
    }

    .baby-actions {
        flex-wrap: wrap;
    }

    .baby-slider {
        display: none;
    }

    /* .baby-service-grid,
    .baby-product-grid,
    .baby-blog-grid,
    .baby-footer__grid {
        grid-template-columns: 1fr;
    } */

    .baby-card-grid {
        gap: 18px;
    }

    .baby-qty {
        grid-template-columns: 1fr;
    }

    .baby-qty a {
        justify-self: start;
    }

    .baby-product-card__image img {
        height: 200px;
    }

    .baby-product-copy h2 {
        font-size: 28px;
    }

    .baby-product-card__actions {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .baby-product-card__cart {
        opacity: 1;
        transform: translateY(0);
    }

    .baby-newsletter__form-inner {
        height: auto;
        flex-direction: column;
        border-radius: 16px;
        padding: 4px;
    }

    .baby-newsletter input {
        min-height: 50px;
        width: 100%;
    }

    .baby-newsletter button {
        width: 100%;
        min-height: 48px;
    }

    .baby-footer__bottom {
        flex-direction: column;
    }
}

.baby-hero--reference-fidelity .baby-hero__content,
.baby-hero--reference-fidelity .baby-slider {
    opacity: 0;
}

/* ===== Baby Hero Slider ===== */
.baby-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.baby-hero-swiper {
    /* override global swiper padding that causes side gaps */
    padding: 0 !important;
    margin: 0 !important;
}

.baby-hero-swiper .swiper-wrapper {
    align-items: stretch;
}

.baby-hero-slide {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.baby-hero-slide__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(7, 18, 31, .52) 0%, rgba(7, 18, 31, .28) 40%, rgba(7, 18, 31, .06) 70%, rgba(7, 18, 31, .02) 100%);
}

.baby-hero-slide__content {
    position: relative;
    z-index: 2;
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding-top: 100px;
    padding-bottom: 100px;
}

.baby-hero-slide__content h1 {
    max-width: 620px;
    margin: 0 0 28px;
    color: rgb(var(--white)) !important;
    font-size: clamp(48px, 5vw, 78px);
    line-height: 1.1 !important;
    font-weight: 800;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.baby-hero-slide__content p {
    max-width: 560px;
    margin: 0 0 36px;
    color: rgb(var(--white)) !important;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 400;
}

/* Hero Slider Arrow - Same as Reference Image */
.baby-hero-arrow {
    width: 80px !important;
    height: 80px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    color: rgb(var(--white)) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

/* Keep Transparent on Hover */
.baby-hero-arrow:hover,
.baby-hero-arrow:focus,
.baby-hero-arrow:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Left Arrow */
.baby-hero-arrow.slick-prev,
.baby-hero-arrow.swiper-button-prev {
    left: 20px !important;
}

/* Right Arrow */
.baby-hero-arrow.slick-next,
.baby-hero-arrow.swiper-button-next {
    right: 20px !important;
}

/* Arrow Icon */
.baby-hero-arrow i,
.baby-hero-arrow svg {
    font-size: 48px !important;
    font-weight: 900 !important;
    color: rgb(var(--white)) !important;
    line-height: 1 !important;
}

/* Remove Default Slick Arrow */
.baby-hero-arrow.slick-prev:before,
.baby-hero-arrow.slick-next:before {
    display: none !important;
}

/* .baby-hero-arrow:hover {
    background: rgba(0, 0, 0, 0.40) !important;
    border-color: rgba(255, 255, 255, 0.50) !important;
} */

.baby-hero-arrow--prev {
    left: 20px !important;
    right: auto !important;
}

.baby-hero-arrow--next {
    right: 20px !important;
    left: auto !important;
}

.baby-hero-arrow::after {
    font-size: 22px !important;
    font-weight: bolder !important;
    color: rgb(var(--white)) !important;
}

/* Pagination dots */
.baby-hero-pagination {
    bottom: 32px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
}

.baby-hero-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    transition: background 0.3s ease, transform 0.3s ease;
    margin: 0 4px !important;
}

.baby-hero-pagination .swiper-pagination-bullet-active {
    background: rgb(var(--primary-color));
    transform: scale(1.15);
}

/* Responsive */
@media (max-width: 1200px) {
    .baby-hero-slide {
        min-height: 700px;
    }

    .baby-hero-slide__content h1 {
        font-size: 56px;
    }
}

@media (max-width: 900px) {
    .baby-hero-slide {
        min-height: 600px;
        background-position: center;
    }

    .baby-hero-slide__content h1 {
        font-size: 44px;
    }

    .baby-hero-arrow--prev {
        left: 16px !important;
    }

    .baby-hero-arrow--next {
        right: 16px !important;
    }
}

@media (max-width: 560px) {
    .baby-hero-slide {
        min-height: 500px;
    }

    .baby-hero-slide__content {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .baby-hero-slide__content h1 {
        font-size: 30px;
    }

    .baby-hero-slide__content p {
        font-size: 13px;
    }

    .baby-hero-arrow {
        display: none !important;
    }
}

/* Scroll to top button */
.baby-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgb(var(--primary-color));
    color: rgb(var(--white));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 300ms ease, transform 300ms ease, visibility 300ms ease;
    z-index: 999;
    border: none;
    font-size: 16px;
}

.baby-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.baby-scroll-top:hover {
    transform: translateY(-3px);
    background: rgb(var(--button-hover-color));
}
/* ==========================================================================
   Accessibility Line-Spacing Overrides
   The accessibility widget sets `body.fronted.a11y-line-spacing-1 * { 
   line-height: 1.2 !important }` with specificity (0,4,2).
   These selectors intentionally exceed that specificity so the theme's
   intended line-heights are preserved.
   ========================================================================== */

/* line-height: 1.75 */
body.fronted.a11y-line-spacing-1 .baby-section .baby-container .baby-check p,
body.fronted.a11y-line-spacing-1 .baby-section .baby-container .baby-desc {
    line-height: 1.75 !important;
}

/* line-height: 1.8 */
body.fronted.a11y-line-spacing-1 .baby-section .baby-container .baby-copy p,
body.fronted.a11y-line-spacing-1 .baby-section .baby-container .baby-feature-copy > p,
body.fronted.a11y-line-spacing-1 .baby-section .baby-container .baby-why-copy > p,
body.fronted.a11y-line-spacing-1 .baby-section .baby-container .baby-product-copy p,
body.fronted.a11y-line-spacing-1 .baby-section .baby-container .baby-heading p {
    line-height: 1.8 !important;
}

/* line-height: 1.7 */
body.fronted.a11y-line-spacing-1 .baby-section .baby-container .baby-info-card p,
body.fronted.a11y-line-spacing-1 .baby-newsletter .baby-container .baby-newsletter__content p,
body.fronted.a11y-line-spacing-1 .baby-service-band .baby-container .baby-service p,
body.fronted.a11y-line-spacing-1 .baby-promo .baby-container .baby-promo-subtitle,
body.fronted.a11y-line-spacing-1 .baby-hero-slider .baby-hero-swiper .baby-hero-slide .baby-hero-slide__content p,
body.fronted.a11y-line-spacing-1 .baby-section .baby-container .baby-blog-card p,
body.fronted.a11y-line-spacing-1 .baby-section .baby-container .baby-product-notes,
body.fronted.a11y-line-spacing-1 .baby-section .baby-container .baby-countdown span {
    line-height: 1.7 !important;
}

/* line-height: 1.0 (countdown numbers) */
body.fronted.a11y-line-spacing-1 .baby-promo .baby-container .baby-countdown strong {
    line-height: 1 !important;
}

/* line-height: 1.4 (card titles) */
body.fronted.a11y-line-spacing-1 .baby-section .baby-container .baby-product-card__body h3,
body.fronted.a11y-line-spacing-1 .baby-section .baby-container .baby-blog-card h3,
body.fronted.a11y-line-spacing-1 .baby-section .baby-container .baby-check h3,
body.fronted.a11y-line-spacing-1 .baby-section .baby-container .baby-info-card h3 {
    line-height: 1.4 !important;
}


/* Babyzonix mobile nav & toggle */
.baby-mobile-toggle {
    display: none;
}

#baby-mobile-menu.baby-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 320px;
    background: #ffffff;
    z-index: 12;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
}

[dir="rtl"] #baby-mobile-menu.baby-mobile-menu {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

#baby-mobile-menu.baby-mobile-menu.show {
    transform: translateX(0);
}

.baby-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 12px;
    flex-shrink: 0;
}

.baby-mobile-menu__header span {
    font-size: 18px;
    font-weight: 700;
    color: rgb(var(--black));
}

.baby-mobile-menu__header button {
    background: transparent;
    border: none;
    font-size: 20px;
    color: rgb(var(--black));
    cursor: pointer;
    padding: 4px;
}

.baby-mobile-menu__list {
    list-style: none;
    padding: 0 24px;
    margin: 0;
}

.baby-mobile-menu__list li {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.baby-mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    color: rgb(var(--black));
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.baby-mobile-menu__link:hover {
    color: rgb(var(--primary-color));
}

.baby-mobile-menu__sublist {
    list-style: none;
    padding: 0 0 10px 16px;
    margin: 0;
    display: none;
}

.baby-mobile-menu__sublist.show {
    display: block;
}

.baby-mobile-menu__sublink {
    display: block;
    padding: 8px 0;
    color: rgb(var(--description-color));
    font-size: 14px;
    text-decoration: none;
}

.baby-mobile-menu__sublink:hover {
    color: rgb(var(--primary-color));
}

@media (max-width: 1180px) {
    .baby-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: rgb(var(--white)) !important;
        font-size: 20px;
        cursor: pointer;
        padding: 4px;
    }

    .baby-header__inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .baby-header__nav {
        display: none;
    }

    .baby-logo-badge {
        order: -1;
    }
}


/* Fix: mobile menu text color (override baby-header white text) */
#baby-mobile-menu.baby-mobile-menu a,
#baby-mobile-menu.baby-mobile-menu button {
    color: rgb(var(--black)) !important;
}

#baby-mobile-menu.baby-mobile-menu .baby-mobile-menu__link:hover,
#baby-mobile-menu.baby-mobile-menu .baby-mobile-menu__sublink:hover,
#baby-mobile-menu.baby-mobile-menu .baby-mobile-menu__header button:hover {
    color: rgb(var(--primary-color)) !important;
}


/* Desktop nav language dropdown */
.baby-header__lang {
    position: relative;
}

.baby-header__lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: rgb(var(--white)) !important;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.baby-header__lang-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    min-width: 160px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 20;
    overflow: hidden;
    padding: 6px 0;
}

[dir="rtl"] .baby-header__lang-menu {
    left: auto;
    right: 0;
}

.baby-header__lang-menu a {
    display: block;
    padding: 9px 18px;
    color: rgb(var(--black)) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.baby-header__lang-menu a:hover,
.baby-header__lang-menu a.active {
    background: rgb(var(--bg-light));
    color: rgb(var(--primary-color)) !important;
}
/* ==========================================================================
   Responsive Enhancements
   ========================================================================== */

body.fronted {
    overflow-x: hidden;
}

/* Large tablets / small laptops (1280px and below) */
@media (max-width: 1280px) {
    .baby-container {
        width: min(1500px, calc(100% - 48px));
    }
    .baby-section {
        padding: 80px 0;
    }
    .baby-service-band {
        padding: 64px 0;
    }
    .baby-newsletter {
        padding: 64px 0 0;
    }
    .baby-newsletter__box {
        padding: 48px 40px;
        gap: 40px;
    }
    .baby-footer__grid {
        gap: 40px;
    }
    .baby-promo .baby-container {
        padding: 60px 0;
    }
    .baby-promo {
        min-height: 640px;
    }
    .baby-video {
        min-height: 720px;
    }
    .baby-copy h2,
    .baby-feature-copy h2,
    .baby-why-copy h2,
    .baby-product-copy h2,
    .baby-heading h2 {
        font-size: 40px;
    }
    .baby-hero-slide__content {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

/* Tablets (1024px and below) */
@media (max-width: 1024px) {
    .baby-section {
        padding: 64px 0;
    }
    .baby-hero-slide__content h1 {
        font-size: 52px;
    }
    .baby-promo {
        min-height: 580px;
    }
    .baby-video {
        min-height: 640px;
    }
}

/* Medium tablets / large phones (900px and below) */
@media (max-width: 900px) {
    .baby-container {
        width: min(100% - 32px, 680px);
    }
    .baby-section {
        padding: 56px 0;
    }
    .baby-service-band {
        padding: 48px 0;
    }
    .baby-newsletter {
        padding: 48px 0 0;
    }
    .baby-copy h2,
    .baby-feature-copy h2,
    .baby-why-copy h2,
    .baby-product-copy h2,
    .baby-heading h2 {
        font-size: 32px;
    }
    .baby-hero-slide__content h1 {
        font-size: 42px;
    }
    .baby-hero-slide__content {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    .baby-hero-arrow {
        width: 48px !important;
        height: 48px !important;
    }
    .baby-hero-arrow i,
    .baby-hero-arrow svg {
        font-size: 28px !important;
    }
    .baby-btn {
        min-height: 44px;
        padding: 0 24px;
        font-size: 13px;
    }
    .baby-header__actions a span:not(.count-badge):not(#cart-count):not(.wishlist-count),
    .baby-header__actions button span {
        display: none;
    }
    .baby-footer__grid {
        gap: 32px;
    }
    .baby-footer__bottom {
        flex-wrap: wrap;
    }
    .baby-product-card__image img {
        height: 240px;
    }
}

/* Small phones (640px and below) */
@media (max-width: 640px) {
    .baby-hero-slide__content h1 {
        font-size: 36px;
    }
    .baby-product-card__image img {
        height: 220px;
    }
    .baby-promo {
        min-height: 520px;
    }
    .baby-video {
        min-height: 520px;
    }
}

/* Extra small phones (560px and below) */
@media (max-width: 560px) {
    .baby-section {
        padding: 48px 0;
    }
    .baby-container {
        width: calc(100% - 24px);
    }
    .baby-copy h2,
    .baby-feature-copy h2,
    .baby-why-copy h2,
    .baby-product-copy h2,
    .baby-heading h2 {
        font-size: 26px;
    }
    .baby-hero-slide__content h1 {
        font-size: 30px;
    }
    .baby-hero-slide__content {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .baby-btn {
        min-height: 42px;
        padding: 0 20px;
        font-size: 12px;
    }
    .baby-product-card__image img {
        height: 200px;
    }
    .baby-newsletter__box {
        padding: 36px 24px;
    }
}

/* Landscape tiny phones (480px and below) */
@media (max-width: 480px) {
    .baby-hero-slide__content h1 {
        font-size: 26px;
    }
    .baby-hero-slide__content p {
        font-size: 13px;
    }
    .baby-countdown span {
        width: 48px;
        height: 48px;
    }
    .baby-countdown strong {
        font-size: 16px;
    }
    .baby-promo h1.baby-promo-title,
    .baby-promo h2 {
        font-size: 24px;
    }
    .baby-promo .baby-promo-subtitle {
        font-size: 14px;
    }
    .baby-video h2.baby-video-title {
        font-size: 24px;
    }
    .baby-play-btn {
        width: 52px;
        height: 52px;
        font-size: 16px;
    }
}

/* Responsive utility helpers */
@media (max-width: 900px) {
    .baby-text-center-tablet {
        text-align: center !important;
    }
    .baby-hidden-tablet {
        display: none !important;
    }
}
@media (max-width: 560px) {
    .baby-text-center-mobile {
        text-align: center !important;
    }
    .baby-hidden-mobile {
        display: none !important;
    }
}

/* ==========================================================================
   Touch / Tablet Usability Overrides
   ========================================================================== */

@media (max-width: 900px) {
    .baby-product-card__actions {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    .baby-product-card__cart {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 560px) {
    .baby-product-image {
        min-height: 280px;
        padding: 20px;
    }
    .baby-thumbs img {
        width: 64px;
        height: 64px;
    }
    .baby-gallery {
        gap: 16px;
    }
    .baby-product-copy h2 {
        font-size: 24px;
    }
    .baby-price {
        font-size: 26px;
    }
    .baby-desc {
        font-size: 14px;
    }
    .h-15 {
        height: 2.25rem;
    }
}

/* ==========================================================================
   Typography & Word Wrap Safety
   ========================================================================== */

body.fronted :is(h1, h2, h3, h4, h5, h6),
body.fronted p,
body.fronted span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body.fronted .baby-hero-slide__content h1,
body.fronted .baby-hero-slide__content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ==========================================================================
   Header Fix: Inner Pages vs Homepage
   Homepage = position absolute (over hero slider)
   Inner pages = position relative (pushes content down)
   Background, colors, styling SAME on all pages
   ========================================================================== */

.site-header.baby-header {
    position: relative;
}

.home-page .site-header.baby-header {
    position: absolute;
}
