/* Reusable [ms_home_catalog_categories] component. */

.ms-home-catalog .ms-home-catalog__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.ms-home-catalog .ms-home-catalog-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 280px;
    padding: 60px 14px 14px;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
}

.ms-home-catalog .ms-home-catalog-card__main-link:hover {
    color: inherit;
    text-decoration: none;
}

.ms-home-catalog .ms-home-catalog-card__main-link:focus-visible,
.ms-home-catalog .ms-home-catalog-card__subcategory a:focus-visible,
.ms-home-catalog .ms-home-catalog-card__more:focus-visible,
.ms-home-catalog .ms-home-catalog-banner:focus-visible {
    outline: 2px solid #f26b21;
    outline-offset: 3px;
}

.ms-home-catalog .ms-home-catalog-card__image-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 110px;
    margin-bottom: 40px;
}

.ms-home-catalog .ms-home-catalog-card__image {
    display: block;
    width: auto;
    height: auto;
    padding: 15px 15px 25px 0;
    object-fit: contain;
}

.ms-home-catalog .ms-home-catalog-card__title {
    display: block;
    margin: 0 0 12px;
    color: #1f2933;
    font-size: 22px;
    font-weight: 600;
}

.ms-home-catalog .ms-home-catalog-card__subcategories {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ms-home-catalog .ms-home-catalog-card__subcategory a {
    display: inline;
    color: #354052;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}

.ms-home-catalog .ms-home-catalog-card__subcategory a:hover {
    color: #f58220;
    text-decoration: none;
}

.ms-home-catalog .ms-home-catalog-card__more {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    padding: 19px 6px 3px 0;
    border: 0;
    border-radius: 4px;
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.1;
    cursor: pointer;
}

.ms-home-catalog .ms-home-catalog-card__more:hover,
.ms-home-catalog .ms-home-catalog-card__more:focus {
    box-shadow: none;
}

.ms-home-catalog .ms-home-catalog-card__more::after {
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

.ms-home-catalog .ms-home-catalog-card__more[aria-expanded="true"]::after {
    margin-top: 4px;
    transform: rotate(225deg);
}

.ms-home-catalog .ms-home-catalog-banner {
    grid-column: span 2;
    min-height: 280px;
    padding-top: 60px;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
}

@media (max-width: 1200px) {
    .ms-home-catalog .ms-home-catalog__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ms-home-catalog .ms-home-catalog-banner {
        grid-column: span 2;
    }
}

@media (max-width: 991px) {
    .ms-home-catalog .ms-home-catalog__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ms-home-catalog .ms-home-catalog-card,
    .ms-home-catalog .ms-home-catalog-banner {
        min-height: 270px;
    }
}

@media (max-width: 767px) {
    .ms-home-catalog .ms-home-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ms-home-catalog .ms-home-catalog-card {
        min-height: 150px;
        padding: 14px 12px;
        border: 1px solid #e9e9e9;
        border-radius: 12px;
    }

    .ms-home-catalog .ms-home-catalog-card__image-wrap {
        height: 190px;
        margin-top: 35px;
        margin-bottom: 25px;
    }

    .ms-home-catalog .ms-home-catalog-card__title {
        font-size: 15px;
    }

    .ms-home-catalog .ms-home-catalog-banner {
        grid-column: span 2;
        min-height: 250px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .ms-home-catalog .ms-home-catalog__grid {
        grid-template-columns: 1fr;
    }

    .ms-home-catalog .ms-home-catalog-banner {
        grid-column: span 1;
    }

    .ms-home-catalog .ms-home-catalog-card__title {
        font-size: 20px;
    }

    .ms-home-catalog .ms-home-catalog-card__image-wrap {
        width: 100px;
        height: 10px;
        margin-top: 35px;
        margin-bottom: 25px;
    }
}
