/* The image/content remain native Elementor widgets. Only the float is custom. */
.ld-hero__content:has(.ld-hero-product) {
    --flex-wrap: nowrap;
}
.ld-hero__copy.elementor-element { min-width: 0; }
.ld-hero__product.elementor-element { min-width: 0; }
.ld-hero-product img {
    filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .3));
    animation: ld-product-float 6s ease-in-out infinite;
}
@keyframes ld-product-float {
    0%, 100% { transform: translateY(8px) rotate(-.6deg); }
    50% { transform: translateY(-10px) rotate(.6deg); }
}
@media (max-width: 1024px) {
    .ld-hero__product.elementor-element { max-width: 390px; margin: 35px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ld-hero-product img { animation: none; }
}
.elementor-editor-active .ld-hero-product img { animation: none; }

/* Native image widgets share the original hero footprint. Translation belongs
   to the widget; the existing gentle float remains on the image itself. */
.ld-product-carousel.elementor-element { position: relative; isolation: isolate; }
.ld-product-carousel > .ld-hero-product {
    opacity: 0;
    transform: translateY(-85%) scale(.96);
    pointer-events: none;
    transition: transform 900ms cubic-bezier(.22,.75,.2,1), opacity 650ms ease;
    will-change: transform, opacity;
}
.ld-product-carousel > .ld-hero-product:not(:first-child) {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ld-product-carousel > .ld-hero-product:not(:first-child) .elementor-widget-container {
    width: 100%;
}
.ld-product-carousel:not(.is-carousel-ready) > .ld-hero-product:first-child,
.ld-product-carousel > .ld-hero-product.is-current {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 2;
    pointer-events: auto;
}
.ld-product-carousel > .ld-hero-product.is-leaving {
    opacity: 0;
    transform: translateY(85%) scale(.96);
    z-index: 1;
}
/* The navigator selects a static slide; no animation obstructs editing. */
body.elementor-editor-active .ld-product-carousel > .ld-hero-product {
    transition: none;
    transform: none;
}
body.elementor-editor-active .ld-product-carousel > .ld-hero-product:first-child,
body.elementor-editor-active .ld-product-carousel > .ld-hero-product.elementor-element-edit-mode {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
body.elementor-editor-active .ld-product-carousel:has(> .ld-hero-product:not(:first-child).elementor-element-edit-mode) > .ld-hero-product:first-child {
    opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
    .ld-product-carousel > .ld-hero-product { transition: none; transform: none; }
}
