/**
 * Product feature bottles.
 *
 * Desktop and mobile use the same edge-to-edge crop. Portrait catalogue
 * photos are rotated into the horizontal composition used by this section.
 */
.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: calc(100% - 16px);
    margin-top: 8px;
    object-fit: contain !important;
    object-position: left center !important;
    /* Keep the bottle base beyond the outer viewport edge on every slide. */
    transform: translateX(-3.5%) !important;
    transform-origin: center !important;
    pointer-events: none;
    user-select: none;
}

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

.product-bottles.product-image .product-bottle__image--portrait,
.product-bottles.product-image.from-right .product-bottle__image--portrait {
    object-fit: contain !important;
    object-position: center !important;
    transform: rotate(90deg) scale(2) !important;
}

.product-bottles__placeholder {
    background: #e7e9ec;
}

/* Grow with desktop columns so wide screens retain the full bottle contour. */
@media (min-width: 1024px) {
    .product-bottles-stage {
        height: max(298px, 20.7vw);
    }

    .product-bottles-stage.lg\:order-2 {
        height: max(270px, 18.75vw);
    }
}

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

}

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