/* =========================================================
   КАТЕГОРИИ НА СТРАНИЦЕ МАГАЗИНА
========================================================= */

.ps-shop-categories {
    width: 100%;
    margin: 0;
    padding: 48px 0 56px;
    background: var(--ps-color-white, #FFFFFF);
}

.ps-shop-categories,
.ps-shop-categories * {
    box-sizing: border-box;
}

.ps-shop-categories__container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

/* Заголовок секции */

.ps-shop-categories__heading {
    margin-bottom: 30px;
}

.ps-shop-categories .ps-shop-categories__title {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ps-color-primary, #063F63) !important;
    font-family: var(--ps-font-heading, 'MULTIROUND', sans-serif) !important;
    font-size: 34px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.ps-shop-categories__description {
    margin: 10px 0 0;
    padding: 0;
    color: var(--ps-color-text-muted, rgba(6, 63, 99, 0.68));
    font-family: var(--ps-font-body, 'Nunito', sans-serif);
    font-size: 15px;
    line-height: 1.5;
}

/* Сетка категорий */

.ps-shop-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 16px;
}

/* Карточка категории */

.ps-shop-categories__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ps-color-border, #DFE5E8);
    border-radius: var(--ps-radius-card, 18px);
    background: #FFFFFF;
    color: var(--ps-color-primary, #063F63);
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.ps-shop-categories__card:hover {
    transform: translateY(-3px);
    border-color: rgba(143, 42, 145, 0.35);
    box-shadow: 0 8px 24px rgba(6, 45, 69, 0.08);
}

/* Изображение категории */

.ps-shop-categories__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #FFFFFF;
}

.ps-shop-categories__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 12px;
    object-fit: contain;
    transition: transform 0.3s ease;
}


/* Подпись и ссылка */

.ps-shop-categories__card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
}

.ps-shop-categories .ps-shop-categories__card-title {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ps-color-primary, #063F63) !important;
    font-family: var(--ps-font-heading, 'MULTIROUND', sans-serif) !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
}

.ps-shop-categories__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--ps-color-accent, #8F2A91);
    font-family: var(--ps-font-body, 'Nunito', sans-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    transition: gap 0.25s ease;
}

.ps-shop-categories__card:hover .ps-shop-categories__link {
    gap: 11px;
}

/* Планшет */

@media (max-width: 900px) {

    .ps-shop-categories {
        padding: 40px 0 48px;
    }

    .ps-shop-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .ps-shop-categories__heading {
        margin-bottom: 24px;
    }

    .ps-shop-categories .ps-shop-categories__title {
        font-size: 30px !important;
    }

    .ps-shop-categories__card-content {
        padding: 15px;
    }
}

/* Мобильные устройства */

@media (max-width: 600px) {

    .ps-shop-categories__container {
        width: calc(100% - 36px);
    }

    .ps-shop-categories {
        padding: 32px 0 40px;
    }

    .ps-shop-categories .ps-shop-categories__title {
        font-size: 25px !important;
    }

    .ps-shop-categories__description {
        font-size: 14px;
    }

    .ps-shop-categories__card-content {
        gap: 10px;
        padding: 12px;
    }

    .ps-shop-categories .ps-shop-categories__card-title {
        font-size: 15px !important;
    }

    .ps-shop-categories__link {
        font-size: 13px;
    }
}

/* Учитываем системную настройку уменьшения анимации */

@media (prefers-reduced-motion: reduce) {

    .ps-shop-categories__card,
    .ps-shop-categories__image img,
    .ps-shop-categories__link {
        transition: none;
    }
}





/* =========================================================
   СКРЫВАЕМ СТАНДАРТНЫЕ ЭЛЕМЕНТЫ НА СТРАНИЦЕ МАГАЗИНА
========================================================= */

body.post-type-archive-product .woocommerce-products-header,
body.post-type-archive-product .woocommerce-no-products-found,
body.post-type-archive-product .ct-no-results,
body.post-type-archive-product .woocommerce.archive .page-title {
    display: none !important;
}