/* Performance helpers for storefront Core Web Vitals */

/* Prefer swap if icon font CSS is cached without font-display */
@font-face {
    font-family: "uicons-regular-rounded";
    src: url("../../fashion/icons/uicons-regular-rounded/webfonts/uicons-regular-rounded.woff2") format("woff2");
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

/* Keep decorative home motion off the main thread where possible */
.gf-home-ambient,
.gf-home-petal,
.gf-home-glow {
    will-change: transform, opacity;
    contain: layout style paint;
}

@media (prefers-reduced-motion: reduce) {
    .gf-home-ambient,
    .gf-home-petal,
    .gf-home-glow,
    .wow,
    .animate__animated {
        animation: none !important;
        transition: none !important;
    }
}

/* Mobile: drop decorative ambient layer (paint/compositor cost) */
@media (max-width: 767.98px) {
    .gf-home-ambient {
        display: none !important;
    }
}

/* Stabilize common icon/image boxes to reduce CLS */
.footer-nav-link img,
.gf-classic-card-image,
.egBanner {
    height: auto;
    max-width: 100%;
}
