/* Shared lightweight page boot for catalog / cart / account */

.at-page-boot {
    position: relative;
}

.at-page-skel {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 20;
    background: #fff;
    padding: 16px 0 40px;
    min-height: min(70vh, 640px);
    display: none;
}
html.at-page-booting .at-page-skel:not([hidden]) {
    display: block;
}
.at-page-skel[hidden] {
    display: none !important;
}

.at-page-skel__inner {
    width: min(1200px, calc(100% - 24px));
    margin: 0 auto;
}

.at-page-skel__row {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}
.at-page-skel__row.is-catalog {
    grid-template-columns: 260px 1fr;
}
.at-page-skel__row.is-cart {
    grid-template-columns: 1.4fr 0.8fr;
}

.at-page-skel__side {
    height: 420px;
    border-radius: 12px;
}
.at-page-skel__main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.at-page-skel__card {
    height: 260px;
    border-radius: 12px;
}
.at-page-skel__line {
    height: 56px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.at-page-skel__box {
    height: 220px;
    border-radius: 12px;
}

.at-page-shimmer {
    background: linear-gradient(90deg, #f1f1f3 18%, #e6e6ea 50%, #f1f1f3 82%);
    background-size: 200% 100%;
    animation: at-page-shimmer 1.05s linear infinite;
}

@keyframes at-page-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.at-page-content {
    opacity: 1;
    transition: opacity 0.24s ease;
}
html.at-page-booting .at-page-content:not(.is-ready) {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 991px) {
    .at-page-skel__row.is-catalog,
    .at-page-skel__row.is-cart {
        grid-template-columns: 1fr;
    }
    .at-page-skel__side {
        height: 120px;
    }
    .at-page-skel__main {
        grid-template-columns: repeat(2, 1fr);
    }
}
