
/* =========================================
   SHOP BUNDLES
========================================= */

.bundle-section {
    width: 100%;
    margin: 0;
    padding: 24px 0;
    background: #ffffff;
    box-sizing: border-box;
}

.bundle-section__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 20px;
    box-sizing: border-box;
}

/* =========================================
   SECTION HEADER
========================================= */

.bundle-section__header {
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    text-align: left;
}

.bundle-section__title {
    margin: 0;
    color: #171717;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.7px;
    text-align: left;
}

.bundle-section__description {
    max-width: 520px;
    margin: 7px 0 0;
    padding: 0;
    color: #777777;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

/* =========================================
   CAROUSEL
========================================= */

.bundle-carousel {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Navigation */

.bundle-carousel__controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
}

.bundle-carousel__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
    padding: 0;

    border: 1px solid #e9e9e9;
    border-radius: 50%;
    background: #ffffff;

    color: #171717;
    font-size: 15px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.bundle-carousel__arrow:hover:not(:disabled) {
    border-color: #171717;
    background: #171717;
    color: #ffffff;
}

.bundle-carousel__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* =========================================
   VIEWPORT
========================================= */

.bundle-carousel__viewport {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;

    scrollbar-width: none;
    -ms-overflow-style: none;

    box-sizing: border-box;
}

.bundle-carousel__viewport::-webkit-scrollbar {
    display: none;
}

/* =========================================
   GRID TRACK
========================================= */

.bundle-carousel__track {
    display: grid;
    grid-auto-flow: column;

    /* Four cards visible on desktop */
    grid-auto-columns: calc((100% - 42px) / 4);

    width: 100%;
    min-width: 0;

    gap: 14px;
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

/* =========================================
   INDIVIDUAL PRODUCT ITEMS
========================================= */

.bundle-carousel__item {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;

    scroll-snap-align: start;
    box-sizing: border-box;
}

/* Force the shared product card to respect its column */

.bundle-carousel__item .ssg-product-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Product image wrapper */

.bundle-carousel__item .ssg-product-card__image {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Product images */

.bundle-carousel__item .ssg-product-card img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .bundle-carousel__track {
        grid-auto-columns: 31%;
        gap: 12px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .bundle-section {
        padding: 18px 0;
    }

    .bundle-section__inner {
        padding-right: 20px;
        padding-left: 20px;
    }

    .bundle-section__header {
        margin-bottom: 14px;
    }

    .bundle-section__title {
        font-size: 25px;
        letter-spacing: -0.5px;
    }

    .bundle-section__description {
        max-width: 300px;
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.5;
    }

    .bundle-carousel__controls {
        display: none;
    }

    .bundle-carousel__track {
        grid-auto-columns: 76%;
        gap: 10px;
    }
}
