.beauty-related-products {
    padding: 20px 0 34px;

    background: #ffffff;
}

.beauty-related-products__container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.beauty-related-products__header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;
}

.beauty-related-products__header h2 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 400;
}

.beauty-related-products__view-all {
    color: #f21869;

    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.beauty-related-products__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.beauty-related-product-card {
    min-width: 0;
}

.beauty-related-product-card__image {
    position: relative;

    aspect-ratio: 0.85;

    overflow: hidden;

    border-radius: 5px;

    background: #f5e9e6;
}

.beauty-related-product-card__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.beauty-related-product-card__favorite {
    position: absolute;
    top: 9px;
    right: 9px;

    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border: 1px solid #e4dfe0;
    border-radius: 50%;

    background: #ffffff;

    cursor: pointer;
}

.beauty-related-product-card__name {
    display: block;

    margin-top: 9px;

    overflow: hidden;

    color: #171313;

    font-size: 0.82rem;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.beauty-related-product-card__price {
    margin-top: 4px;

    font-weight: 700;
}

.beauty-related-product-card__colors {
    display: flex;
    gap: 7px;

    margin: 10px 0;
}

.beauty-related-product-card__colors span {
    width: 22px;
    height: 22px;

    border: 1px solid #cfc8ca;
    border-radius: 50%;

    background: var(--related-color);
}

.beauty-related-product-card__cart {
    width: 100%;
    min-height: 38px;

    border: 0;
    border-radius: 4px;

    background: #f21869;
    color: #ffffff;

    font-size: 0.68rem;
    font-weight: 700;

    cursor: pointer;
}

@media (max-width: 900px) {

    .beauty-related-products__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .beauty-related-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}