/* ---------- SECTION SEPARATOR ---------- */

.section-separator {
    width: 100%;
    height: 130px;
    background: linear-gradient(90deg, #f6f6f6 0%, #d7cfcd 50%, #bfb6b4 100%);
}

.carousel-track-wrapper {
    overflow: hidden;
    flex: 1;
    border-radius: 4px;
    background: #fff;
}

.carousel-track {
    display: flex;
    transition: transform 400ms cubic-bezier(.22, .9, .32, 1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.carousel-slide {
    min-width: 100%;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 3px;
}

/* ---------- CAROUSEL CONTROLS ---------- */

.carousel-control {
    background: rgba(0, 0, 0, 0.06);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    transition: background .2s;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.14);
}

/* ---------- CAPTION ---------- */

.carousel-caption {
    margin-top: 18px;
    text-align: center;
}

.caption-title {
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.caption-desc {
    font-size: clamp(13px, 1.6vw, 16px);
    color: #333;
    max-width: 820px;
    margin: 0 auto;
}

/* ---------- DOTS ---------- */

.carousel-dots {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #d6d6d6;
    cursor: pointer;
    padding: 0;
}

.carousel-dots button[aria-selected="true"] {
    background: #111;
    transform: scale(1.12);
}


/* Special-case layout: force the row to stack (carousel BELOW bullets)
   and make the bullet text occupy most of the available width. */
.container-carousel-bottom .product-row {
    /* keep grid but force a single column so items stack */
    display: grid;
    /* ensure it's a grid (explicit) */
    grid-template-columns: 1fr;
    /* stack: bullets first, carousel below */
    gap: 28px;
    align-items: start;
}

/* Make the bullets take full width but limit how wide the text can get
   so it doesn't become unreadably long on very large screens. */
.container-carousel-bottom .product-bullets {
    width: 100%;
    max-width: 1100px;
    /* increase this if you want even wider text */
    margin: 0 auto;
    /* center the bullets block if there's extra space */
    padding-right: 4px;
    /* tiny breathing room so bullets line-wrap nicely */
}

/* Ensure the carousel stretches full width below the bullets */
.container-carousel-bottom .products-carousel {
    width: 100%;
    margin-top: 20px;
    justify-content: center;
    /* keep controls + track centered */
}

/* Optional: if you want the caption and dots to be no wider than the bullets */
.container-carousel-bottom .carousel-caption,
.container-carousel-bottom .carousel-dots {
    max-width: 1100px;
    margin: 14px auto 0;
}

/* Add / merge these rules into your css/index.css */

/* ensure the track and slide sizing (keeps compatibility with your existing carousel.js) */
.carousel-track {
    display: flex;
    /* script already sets this; keep for safety */
    width: 100%;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    flex: 0 0 100%;
    position: relative;
    /* for overlayed title */
    box-sizing: border-box;
    /* Remove default padding/margins that might distort layout */
    padding: 0;
    margin: 0;
}

/* The split container inside each slide: two halves (left / right) */
.split-slide {
    position: relative;
    display: flex;
    width: 100%;
    height: 520px;
    /* adjust as needed to match your design */
    overflow: hidden;
    background: #f4f4f4;
}

/* each half */
.split-side {
    flex: 1 1 50%;
    overflow: hidden;
    position: relative;
}

/* images fill their half and are cropped if necessary */
.split-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fills and crops preserving aspect ratio */
    display: block;
}

/* overlay title centered horizontally and positioned at the top */
.split-title {
    position: absolute;
    top: 30px;
    /* distance from top - tweak to taste */
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    font-size: 48px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.72);
    /* makes text readable over images */
    color: #111;
    border-radius: 4px;
    pointer-events: none;
    /* clicks pass through to carousel controls */
}

/* preserve your existing .carousel-control button locations but ensure z-index */
.carousel-control {
    z-index: 30;
}

/* optional: style dots and caption if you want to keep them visible and consistent */
.carousel-caption {
    margin-top: 18px;
    text-align: center;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: 0;
    padding: 0;
}

.carousel-dot[aria-selected="true"] {
    background: #333;
}

@media (max-width: 600px) {

    /* stack vertically on very small devices if you prefer */
    .split-slide {
        flex-direction: column;
        height: auto;
    }

    .split-side {
        height: 220px;
    }

    .split-title {
        font-size: 20px;
        top: 10px;
        padding: 4px 10px;
    }
}

/* Smaller screens: reduce height and font sizes */
@media (max-width: 900px) {
    .split-slide {
        height: 420px;
    }

    .split-title {
        font-size: 36px;
        top: 20px;
        padding: 6px 14px;
    }
}

@media (max-width: 420px) {

    .section-separator {
        height: 48px;
    }


    .carousel-slide img {
        max-height: 220px;
    }
}