/* ============ product-categories (catalog-categories) ============ */

.art-product-categories {
    padding: 3.125rem 0;
}

.art-product-categories .section-title {
    font-size: 2.25rem;
    line-height: 110%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    margin: 0 0 1.5rem;
}

.art-product-categories .catalog-categories__block {
    position: relative;
}

/* arrows */
.art-product-categories .catalog-categories__arrow {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    top: 0;
    bottom: 0;
    width: 3rem;
    height: 3rem;
    background-color: #0075FF;
    border: 0.0625rem solid #0075FF;
    z-index: 2;
    border-radius: 100%;
    cursor: pointer;
    transition: background-color .2s ease;
}

.art-product-categories .catalog-categories__arrow:hover { background-color: #005fd1; }

.art-product-categories .catalog-categories__arrow .icon { width: 1.5rem; height: 1.5rem; }
.art-product-categories .catalog-categories__arrow .icon svg { width: 100%; height: 100%; }

.art-product-categories .catalog-categories__arrow-prev { left: -1.5rem; }
.art-product-categories .catalog-categories__arrow-next { right: -1.5rem; }

/* card */
.art-product-categories .catalog-categories-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.625rem 1.3125rem 2.125rem;
    border: 0.0625rem solid #D1D7EA;
    border-radius: 0.625rem;
    height: 12.8125rem;
    text-decoration: none;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.art-product-categories .catalog-categories-card:hover {
    border-color: #0075FF;
    box-shadow: 0 0.5rem 1.875rem rgba(80, 85, 136, 0.11);
}

.art-product-categories .catalog-categories-card__image {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 7.3125rem;
}

.art-product-categories .catalog-categories-card__box {
    /*width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;*/
}

.art-product-categories .catalog-categories-card__box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.art-product-categories .catalog-categories-card__name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3125rem;
}

.art-product-categories .catalog-categories-card__name .name-text {
    font-size: 1.125rem;
    line-height: 100%;
    color: #262831;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-align: center;
}

.art-product-categories .catalog-categories-card__name .name-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.375rem;
    height: 0.625rem;
    flex-shrink: 0;
}

.art-product-categories .catalog-categories-card__name .name-icon svg { width: 100%; height: 100%; }

/* splide slides sizing (desktop) */
.art-product-categories .pcat-splide .splide__slide { height: auto; }

@media screen and (max-width: 1023px) {
    .art-product-categories { padding: 2rem 0; }
    .art-product-categories .section-title { font-size: 1.25rem; }
}

/* Mobile: карусель заменяется сеткой 2 колонки (splide destroy: true на этом брейкпоинте) */
@media screen and (max-width: 767px) {
    .art-product-categories .pcat-splide .splide__list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    .art-product-categories .catalog-categories__arrow { display: none; }

    .art-product-categories .pcat-splide .splide__slide {
        width: 100% !important;
        margin: 0 !important;
    }

    .art-product-categories .catalog-categories-card {
        height: auto;
        padding: 1rem 0.75rem 1.25rem;
    }

    .art-product-categories .catalog-categories-card__image { height: 5.5rem; }

    .art-product-categories .catalog-categories-card__name .name-text { font-size: 0.9375rem; }
}
