/**
 * Product feature bottles.
 *
 * Desktop keeps the edge-to-edge crop from the approved composition. On
 * phones the stage is shorter and the complete horizontal bottle stays in
 * frame instead of inheriting the desktop cover crop.
 */
.product-bottles-stage {
    isolation: isolate;
    background: #fefefe;
}

.product-bottles.product-image {
    --product-bottle-cycle-offset: -6%;
    transform: translate3d(-110%, 0, 0);
    opacity: 0;
    overflow: hidden;
    transition:
        transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.6s ease;
    will-change: transform, opacity;
}

.product-bottles.product-image.from-right {
    --product-bottle-cycle-offset: 6%;
    transform: translate3d(110%, 0, 0);
}

.product-bottles.product-image.is-visible {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.product-bottles__slides {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-bottle {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transform: translate3d(var(--product-bottle-cycle-offset), 0, 0);
    pointer-events: none;
    transition:
        transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.7s ease;
    will-change: transform, opacity;
}

.product-bottle.is-active {
    z-index: 1;
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.product-bottles.product-image .product-bottle__image {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover !important;
    object-position: right center !important;
    transform: none !important;
    transform-origin: center !important;
    pointer-events: none;
    user-select: none;
}

.product-bottles.product-image.from-right .product-bottle__image {
    object-position: left center !important;
    transform: translateX(11%) !important;
}

.product-bottles__placeholder {
    background: #e7e9ec;
}

@media (max-width: 767px) {
    .product-bottles-stage {
        height: clamp(10rem, 46vw, 11.5rem) !important;
    }

    .product-bottles.product-image .product-bottle__image,
    .product-bottles.product-image.from-right .product-bottle__image {
        object-fit: contain !important;
        object-position: center !important;
    }

    .product-bottles.product-image:not(.from-right) .product-bottle__image {
        transform: translateX(-11%) !important;
    }

    .product-bottles.product-image.from-right .product-bottle__image {
        transform: translateX(11%) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-bottles.product-image,
    .product-bottle {
        transition: none !important;
    }
}
