.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    max-width: 1200px;
    padding: 0 10px;
    margin: var(--spacing-large) auto;
}

.products-element {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    padding: 25px 20px;
    background-color: var(--color-white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.products-element__name {
    margin-bottom: auto;
    font-weight: bold;
}

.products-element__img {
    width: 100%;
    height: 270px;
    object-fit: contain;
    margin-top: var(--spacing-medium);
}

.products-element__price {
    margin-top: var(--spacing-medium);
    color: var(--color-annaccent);
}

.products-element__button {
    margin-top: var(--spacing-medium);
    padding: var(--spacing-small) var(--spacing-medium);
    border: 1px solid var(--color-annaccent);
    border-radius: var(--border-radius);
    cursor: pointer;
    outline: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

.products-element__button_active {
    border: 1px solid transparent;
    background: var(--linear-gradient);
}