.catalog__content {
    grid-template-rows: repeat(2, auto) 1fr;
}

.catalog__brands-section {
    padding: 0 .25rem;
    grid-column: 1 / -1;
    grid-row: 1;
}

.catalog__brands-section > :not(:last-child) {
    margin-bottom: 1.5rem;
}

.catalog__collections-section {
    padding: 0 .25rem;
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 900px;
}

.catalog__collections-section > :not(:last-child) {
    margin-bottom: .5rem;
}

.catalog__collections-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    align-content: start;
    justify-content: center;
    place-items: center;
    flex-shrink: 0;
    width: 100%;
    gap: .375rem;
    padding: .25rem .125rem;
    scroll-snap-align: center;
    background: var(--bg-color-primary);
}

.catalog__colors-section {
    padding: .25rem;
    grid-column: 1 / -1;
    grid-row: 3;
}

.catalog__colors-section > :not(:last-child) {
    margin-bottom: 1rem;
}

.catalog__colors-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    justify-items: center;
}

.catalog__text-card {
    max-width: 450px;
}

.catalog__color-card {
    height: 150px;
    width: 150px;
}

.catalog__color-card__inner {
    display: block;
    height: 100%;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    overflow: hidden;
}

.catalog__color-card__image {
    width: 150px;
    height: 150px;
}

.catalog__color-card__title {
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 400;
    text-align: center;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: .25rem 0;
    background-color: var(--bg-color-secondary);
    color: var(--text-color-primary);
}

@media (min-width: 1024px) {
    .catalog__content {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .catalog__content {
        max-width: 1280px;
        grid-template-rows: 1fr 1fr;
    }

    .catalog__brands-section {
        grid-column: span 3;
        grid-row: 1;
    }

    .catalog__collections-section {
        grid-column: 5 / -1;
        grid-row: 1;
    }

    .catalog__colors-section {
        grid-row: 2;
    }
}
