.lab-all-catalog {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 20px 70px;
}

.lab-all-catalog__header {
    margin: 0 0 28px;
    text-align: center;
}

.lab-all-catalog__header h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.lab-all-catalog__header p {
    margin: 0;
    color: #667085;
    font-size: 17px;
}

.lab-all-catalog__categories {
    margin-bottom: 54px;
}

.lab-all-catalog__category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.lab-all-catalog__category {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #edf0f3;
    border-radius: 14px;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.lab-all-catalog__category:hover,
.lab-all-catalog__category:focus-visible {
    border-color: rgba(0, 190, 190, .28);
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.lab-all-catalog__category-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.lab-all-catalog__category span {
    display: flex;
    min-height: 56px;
    padding: 10px 12px;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.25;
}

.lab-all-catalog__products-head {
    display: flex;
    margin-bottom: 24px;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.lab-all-catalog__products-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
}

.lab-all-catalog__products-head span {
    flex: 0 0 auto;
    color: #7a8492;
}

.lab-all-catalog ul.products.lab-all-catalog__grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0 !important;
    padding: 0 !important;
}

.lab-all-catalog ul.products.lab-all-catalog__grid::before,
.lab-all-catalog ul.products.lab-all-catalog__grid::after {
    display: none !important;
}

.lab-all-catalog ul.products.lab-all-catalog__grid li.product {
    display: flex !important;
    width: auto !important;
    height: 100%;
    margin: 0 !important;
    padding: 15px !important;
    float: none !important;
    flex-direction: column;
    border: 1px solid #eceff2;
    border-radius: 13px;
    background: #fff;
    box-sizing: border-box;
}

.lab-all-catalog ul.products.lab-all-catalog__grid li.product .astra-shop-summary-wrap {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.lab-all-catalog ul.products.lab-all-catalog__grid li.product .button {
    width: 100%;
    margin-top: auto !important;
    text-align: center;
    border-radius: 9px;
}

.lab-all-catalog__loader {
    display: none;
    margin: 28px auto 10px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #667085;
}

.lab-all-catalog.is-loading .lab-all-catalog__loader {
    display: flex;
}

.lab-all-catalog__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #d9e0e7;
    border-top-color: #0a7cff;
    border-radius: 50%;
    animation: labCatalogSpin .7s linear infinite;
}

@keyframes labCatalogSpin {
    to { transform: rotate(360deg); }
}

.lab-all-catalog__more {
    display: table;
    margin: 30px auto 0;
    padding: 13px 30px;
    border-radius: 11px;
    background: #0a7cff;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
}

.lab-all-catalog__pagination {
    margin-top: 28px;
    text-align: center;
}

.lab-all-catalog__pagination .page-numbers {
    display: inline-flex;
    min-width: 36px;
    min-height: 36px;
    margin: 2px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e6eb;
    border-radius: 8px;
    text-decoration: none;
}

.lab-catalog-js .lab-all-catalog__pagination {
    display: none;
}

.lab-catalog-product--new {
    opacity: 0;
    transform: translateY(10px);
}

.lab-all-catalog li.product {
    transition: opacity .2s ease, transform .2s ease;
}

@media (max-width: 1100px) {
    .lab-all-catalog__category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lab-all-catalog ul.products.lab-all-catalog__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .lab-all-catalog {
        padding: 4px 14px 90px;
    }

    .lab-all-catalog__category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .lab-all-catalog__category span {
        min-height: 48px;
        padding: 8px 6px;
        font-size: 13px;
    }

    .lab-all-catalog__categories {
        margin-bottom: 38px;
    }

    .lab-all-catalog ul.products.lab-all-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .lab-all-catalog ul.products.lab-all-catalog__grid li.product {
        padding: 10px !important;
    }

    .lab-all-catalog__products-head {
        align-items: center;
    }

    .lab-all-catalog__products-head span {
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    .lab-all-catalog__category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
