/* Automatic related products: rows of product cards. Colours fall back when the theme has no variables. */

.ch-autorelated {
    margin: 0;
    padding: 48px 0 8px;
}

.ch-autorelated__title {
    color: var(--color-navy-950, #01123b);
    font-family: var(--font-display, inherit);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin: 0 0 24px;
}

.ch-autorelated__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.ch-autorelated__grid > li {
    margin: 0;
    min-width: 0;
}

@media (max-width: 479px) {
    .ch-autorelated__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 900px) {
    .ch-autorelated__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .ch-autorelated__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ch-autorelated__plain {
    color: inherit;
    display: grid;
    gap: 6px;
    text-decoration: none;
}

.ch-autorelated__plain img {
    aspect-ratio: 1;
    object-fit: contain;
    width: 100%;
}
