/* Layered cards and spring-like entrances, adapted from the Meros storefront. */
.hero.ulc-motion-hero {
    position: relative;
    display: flex;
    align-items: center;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: 220px 0 72px;
    overflow: hidden;
    isolation: isolate;
}
.ulc-motion-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(10, 28, 22, .88), rgba(10, 28, 22, .6) 55%, rgba(10, 28, 22, .35));
    pointer-events: none;
}
.ulc-motion-hero__layout { position: relative; width: 100%; }
.ulc-motion-hero__copy { max-width: 650px; }
.ulc-motion-hero__eyebrow { display: block; margin-bottom: 22px; color: #c3e5cd; font-size: 10px; font-weight: 600; letter-spacing: .18em; }
.ulc-motion-hero__copy p { max-width: 520px; line-height: 1.8; }
.ulc-motion-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding: 16px 24px;
    border: 1px solid #65c285;
    border-radius: 999px;
    background: #45b26b;
    box-shadow: 0 8px 24px #071e1833;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s, transform .25s, box-shadow .25s;
}
.ulc-motion-hero__cta:hover { background: #378f56; box-shadow: 0 12px 28px #071e1855; transform: translateY(-3px); }
.ulc-motion-hero__cta:active { transform: translateY(1px) scale(.98); }
.ulc-motion-hero__cta:focus-visible, .ulc-floating-card:focus-visible, .ulc-floating-catalog:focus-visible { outline: 3px solid #a2e3b6; outline-offset: 5px; }
.ulc-floating-products { display: none; position: relative; width: calc(100% - 64px); max-width: 560px; height: 480px; justify-self: center; perspective: 1200px; }
.ulc-floating-products__glow { position: absolute; inset: 4% -4% -4%; border-radius: 50%; background: radial-gradient(ellipse, #45b26b38, transparent 70%); pointer-events: none; }
.ulc-floating-products__stage { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.ulc-floating-products__slot { position: absolute; display: grid; width: 42%; max-width: 224px; }
.ulc-floating-products__slot--1 { top: 0; left: 4%; transform: translateZ(40px); --card-angle: -5deg; }
.ulc-floating-products__slot--2 { top: 5%; right: 0; transform: translateZ(0); --card-angle: 6deg; }
.ulc-floating-products__slot--3 { bottom: 0; right: 12%; transform: translateZ(75px); --card-angle: -2deg; }
.ulc-floating-card {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
    border: 1px solid #ffffffb3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px #061a2440, 0 4px 12px #061a2414;
    color: #1b3026;
    transform: rotate(var(--card-angle));
    transition: transform .3s, box-shadow .3s;
}
.ulc-floating-card[hidden] { display: none; }
.ulc-floating-card:hover { transform: rotate(var(--card-angle)) scale(1.04); box-shadow: 0 30px 70px #061a2455; }
.ulc-floating-card:active { transform: rotate(var(--card-angle)) scale(.97); }
.ulc-floating-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 11px; background: #f4f4f6; }
.ulc-floating-card__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ulc-floating-card__name { display: -webkit-box; min-height: 2.8em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 10px 4px 3px; font-size: 12px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.ulc-floating-card__price { margin: 0 4px 3px; color: #36834e; font-size: 12px; font-weight: 700; }
.ulc-floating-products__catalog { position: absolute; bottom: 17%; left: 0; width: 260px; transform: translateZ(90px); }
.ulc-floating-catalog { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid #ffffffa6; border-radius: 17px; background: #fff; color: #1b3026; box-shadow: 0 20px 55px #061a243d; transition: transform .3s; }
.ulc-floating-catalog:hover { transform: translateY(-4px); }
.ulc-floating-catalog__mark { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: #e8f3ec; color: #36834e; font: 700 12px/1 Arial, sans-serif; }
.ulc-floating-catalog strong { display: block; margin-bottom: 4px; font-size: 12px; line-height: 1.5; }
.ulc-floating-catalog strong + span { display: block; color: #718077; font-size: 10px; line-height: 1.5; }
.ulc-product-motion { height: 100%; perspective: 1100px; }
[data-motion-surface] { transform: rotateX(var(--motion-x, 0deg)) rotateY(var(--motion-y, 0deg)); }
[data-motion-active] > [data-motion-surface], [data-motion-active] > div > [data-motion-surface] { will-change: transform; }
.ulc-product-card[data-motion-surface] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px 12px 20px;
    border: 1px solid #e4ebe6;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 4px 16px #15372608;
    transform: rotateX(var(--motion-x, 0deg)) rotateY(var(--motion-y, 0deg));
    translate: 0 var(--card-lift, 0px);
    scale: var(--card-scale, 1);
    transform-style: preserve-3d;
    transition: translate .25s cubic-bezier(.22, 1, .36, 1), scale .2s cubic-bezier(.2, 1.4, .5, 1), box-shadow .3s, border-color .3s;
}
.ulc-product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--motion-pointer-x, 50%) var(--motion-pointer-y, 50%), #b6e6c63d, transparent 65%);
    opacity: 0;
    transform: translateZ(1px);
    transition: opacity .3s;
    pointer-events: none;
}
.ulc-product-card__media { position: relative; transform-style: preserve-3d; }
.ulc-product-card .product-preview { transform: translateZ(18px); }
.ulc-product-card .product-preview img { transition: transform .4s; }
.ulc-product-card__favourite { transform: translateZ(42px); }
.ulc-product-card__content { display: flex; flex: 1; flex-direction: column; align-items: center; transform: translateZ(28px); }
.ulc-product-card__content > a:first-child { min-height: 2.8em; }
.ulc-product-card__content form { margin-top: auto; }
.ulc-product-card:focus-within { border-color: #8bc49c; box-shadow: 0 16px 32px #15372614; }
.ulc-product-card:active { --card-scale: .97; --card-lift: -2px; }
.product-gallery__panel > img[data-motion-surface] { transform: perspective(1100px) rotateX(var(--motion-x, 0deg)) rotateY(var(--motion-y, 0deg)); }
.product-gallery__main[data-motion-active] .product-gallery__panel:not([hidden]) > img { will-change: transform; }
@media (hover: hover) and (pointer: fine) {
    .ulc-product-motion:hover { position: relative; z-index: 2; }
    .ulc-product-motion:hover .ulc-product-card { --card-lift: -6px; border-color: #a8d3b5; box-shadow: 0 22px 44px #15372624; }
    .ulc-product-motion:hover .ulc-product-card::after { opacity: 1; }
    .ulc-product-motion:hover .product-preview img { transform: scale(1.035); }
}
[data-motion-reveal="stand"] { transform-origin: center bottom; }
@media (min-width: 1024px) {
    .ulc-motion-hero--products .ulc-motion-hero__layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 48px; }
    .ulc-motion-hero--products .ulc-motion-hero__copy h1 { font-size: clamp(48px, 4.5vw, 72px); }
    .ulc-floating-products { display: block; }
}
@media (min-width: 1280px) {
    .ulc-floating-products { height: 540px; }
}
@media (max-width: 767px) {
    .hero.ulc-motion-hero { align-items: flex-end; padding-top: 190px; padding-bottom: 48px; }
    .ulc-motion-hero__eyebrow { font-size: 9px; letter-spacing: .12em; }
    .ulc-motion-hero__copy h1 { font-size: clamp(40px, 10vw, 60px); }
    .ulc-motion-hero__copy p { font-size: 14px; }
    .ulc-motion-hero__cta { margin-top: 26px; padding: 14px 20px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    [data-motion-surface], .ulc-motion-hero__cta, .ulc-floating-card, .ulc-floating-catalog { transition: none; }
    [data-motion-surface], .ulc-motion-hero__cta:hover, .ulc-motion-hero__cta:active, .ulc-floating-catalog:hover { transform: none; }
    .ulc-floating-card:hover, .ulc-floating-card:active { transform: rotate(var(--card-angle)); }
    [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .ulc-product-card[data-motion-surface], .ulc-product-card .product-preview, .ulc-product-card__favourite, .ulc-product-card__content,
    .ulc-product-motion:hover .product-preview img, .product-gallery__panel > img[data-motion-surface] { transform: none; }
    .ulc-product-card[data-motion-surface] { translate: none; scale: none; }
    .ulc-product-card[data-motion-surface], .ulc-product-card::after, .ulc-product-card .product-preview img { transition: none; }
}
