#home-async-root {
    min-height: 72vh;
}

#home-async-root[data-state="ready"] {
    min-height: 0;
}

.home-async-shell {
    width: 100%;
    padding: 0 0 56px;
}

.home-async-skeleton-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.home-async-shimmer {
    position: relative;
    overflow: hidden;
    background: #eef0f3;
    border: 1px solid rgba(229, 231, 235, 0.85);
}

.home-async-shimmer::after {
    position: absolute;
    inset: 0;
    content: "";
    transform: translateX(-105%);
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.28) 36%,
        rgba(255, 255, 255, 0.92) 50%,
        rgba(255, 255, 255, 0.28) 64%,
        transparent 80%
    );
    animation: home-async-shimmer 1.45s ease-in-out infinite;
}

.home-async-skeleton-promo {
    height: 94px;
    border-radius: 14px;
    background-color: #fbe8e8;
}

.home-async-skeleton-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 20px;
}

.home-async-skeleton-hero-main,
.home-async-skeleton-hero-side {
    min-height: 360px;
    border-radius: 20px;
}

.home-async-skeleton-categories {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.home-async-skeleton-category {
    aspect-ratio: 1.45 / 1;
    border-radius: 16px;
}

.home-async-skeleton-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.home-async-skeleton-heading {
    width: min(360px, 58%);
    height: 34px;
    border-radius: 9px;
}

.home-async-skeleton-heading-short {
    width: min(270px, 46%);
}

.home-async-skeleton-products,
.home-async-module-skeleton__products {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.home-async-skeleton-product,
.home-async-module-skeleton__product {
    min-height: 330px;
    border-radius: 16px;
}

.home-async-skeleton-wide-banner {
    min-height: 170px;
    border-radius: 20px;
    background-color: #f7eaea;
}

.home-async-content {
    animation: home-async-content-in 240ms ease-out both;
}

.home-async-fragment-assets {
    display: none !important;
}

.home-async-module-skeleton {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 270px;
    padding: 8px 0 18px;
}

.home-async-module-skeleton__heading {
    width: min(320px, 55%);
    height: 32px;
    border-radius: 9px;
}

.home-async-module-skeleton__product {
    min-height: 270px;
}

.home-async-error,
.home-async-noscript {
    margin: 24px auto 48px;
    padding: 24px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fff7f7;
    color: #1f2937;
}

.home-async-error {
    width: calc(100% - 32px);
    max-width: 760px;
    text-align: center;
}

.home-async-error__title {
    margin: 0 0 8px;
    color: #111827;
    font-size: 22px;
    font-weight: 700;
}

.home-async-error__text {
    margin: 0;
    color: #6b7280;
}

.home-async-error__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.home-async-error__button,
.home-async-error__link,
.home-async-noscript a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.home-async-error__button {
    border: 1px solid #ef4444;
    background: #ef4444;
    color: #fff;
    cursor: pointer;
}

.home-async-error__button:hover,
.home-async-error__button:focus-visible {
    border-color: #dc2626;
    background: #dc2626;
}

.home-async-error__link,
.home-async-noscript a {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

.home-async-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes home-async-shimmer {
    100% {
        transform: translateX(105%);
    }
}

@keyframes home-async-content-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1279px) {
    .home-async-skeleton-categories {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-async-skeleton-categories .home-async-skeleton-category:nth-child(n + 5) {
        display: none;
    }

    .home-async-skeleton-products,
    .home-async-module-skeleton__products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-async-skeleton-products .home-async-skeleton-product:last-child,
    .home-async-module-skeleton__products .home-async-module-skeleton__product:last-child {
        display: none;
    }
}

@media (max-width: 767px) {
    .home-async-shell {
        padding-bottom: 36px;
    }

    .home-async-skeleton-stack {
        gap: 20px;
    }

    .home-async-skeleton-promo {
        height: 116px;
        border-radius: 12px;
    }

    .home-async-skeleton-hero {
        display: block;
    }

    .home-async-skeleton-hero-main {
        min-height: 220px;
        border-radius: 14px;
    }

    .home-async-skeleton-hero-side {
        display: none;
    }

    .home-async-skeleton-categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .home-async-skeleton-categories .home-async-skeleton-category:nth-child(4) {
        display: none;
    }

    .home-async-skeleton-category {
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }

    .home-async-skeleton-products,
    .home-async-module-skeleton__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-async-skeleton-products .home-async-skeleton-product:nth-child(n + 3),
    .home-async-module-skeleton__products .home-async-module-skeleton__product:nth-child(n + 3) {
        display: none;
    }

    .home-async-skeleton-product,
    .home-async-module-skeleton__product {
        min-height: 245px;
        border-radius: 12px;
    }

    .home-async-skeleton-wide-banner {
        min-height: 112px;
        border-radius: 14px;
    }

    .home-async-error__actions {
        flex-direction: column;
    }

    .home-async-error__button,
    .home-async-error__link {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-async-shimmer::after,
    .home-async-content {
        animation: none;
    }
}
