@keyframes colizantFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes colizantFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes colizantScaleIn {
    from {
        opacity: 0;
        transform: scale(.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

main,
.page-content {
    animation: colizantFadeUp .55s ease both;
}

.component-card,
.product-card,
.build-card,
.order-card,
.category-card {
    animation: colizantFadeUp .5s ease both;
    transition: transform .25s ease, box-shadow .25s ease;
}

.component-card:hover,
.product-card:hover,
.build-card:hover,
.order-card:hover,
.category-card:hover {
    transform: translateY(-4px);
}

.btn,
button,
.component-action {
    transition:
            background-color .2s ease,
            color .2s ease,
            border-color .2s ease,
            box-shadow .2s ease,
            opacity .2s ease;
}

.btn:hover,
button:hover {
    filter: brightness(0.97);
}

.image-carousel button:hover {
    filter: none;
}

.main-nav a {
    transition: color .2s ease, opacity .2s ease;
}

.component-visual img,
.product-image img {
    transition: transform .35s ease;
}

.component-visual img:hover,
.product-image img:hover {
    transform: scale(1.04);
}

.alert {
    animation: colizantFadeIn .35s ease both;
}

dialog[open] {
    animation: colizantScaleIn .2s ease both;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

.hero {
    animation: colizantFadeUp .7s ease both;
}

.hero-grid > *:first-child {
    animation: colizantFadeUp .65s ease .1s both;
}

.build-sheet {
    animation: colizantScaleIn .65s ease .2s both;
}

.build-row {
    animation: colizantFadeUp .4s ease both;
}

.build-row:nth-child(1) { animation-delay: .25s; }
.build-row:nth-child(2) { animation-delay: .35s; }
.build-row:nth-child(3) { animation-delay: .45s; }

.auth-wrapper {
    animation: colizantFadeIn .5s ease both;
}

.auth-aside {
    animation: colizantFadeUp .6s ease .1s both;
}

.auth-card {
    animation: colizantScaleIn .55s ease .15s both;
}

.auth-card h1 {
    animation: colizantFadeUp .4s ease .25s both;
}

.auth-card .form-group {
    animation: colizantFadeUp .4s ease both;
}

.auth-card .form-group:nth-child(1) {
    animation-delay: .3s;
}

.auth-card .form-group:nth-child(2) {
    animation-delay: .4s;
}

.auth-card .form-group:nth-child(3) {
    animation-delay: .5s;
}

.auth-card button {
    animation: colizantFadeUp .4s ease .55s both;
}

.catalog-toolbar {
    animation: colizantFadeUp .5s ease .1s both;
}

.page-head {
    animation: colizantFadeUp .5s ease both;
}

.product-card {
    animation: colizantFadeUp .5s ease both;
}

.product-card:nth-child(1) { animation-delay: .08s; }
.product-card:nth-child(2) { animation-delay: .16s; }
.product-card:nth-child(3) { animation-delay: .24s; }
.product-card:nth-child(4) { animation-delay: .32s; }
.product-card:nth-child(5) { animation-delay: .40s; }
.product-card:nth-child(6) { animation-delay: .48s; }
.product-card:nth-child(7) { animation-delay: .56s; }
.product-card:nth-child(8) { animation-delay: .64s; }

.pagination {
    animation: colizantFadeUp .45s ease .3s both;
}

@media (prefers-reduced-motion: reduce) {
    .hero,
    .hero-grid > *,
    .build-sheet,
    .build-row,
    .auth-wrapper,
    .auth-aside,
    .auth-card,
    .auth-card h1,
    .auth-card .form-group,
    .auth-card button,
    .catalog-toolbar,
    .page-head,
    .product-card,
    .pagination {
        animation: none !important;
    }
}