.productlist {
    margin-top: 5px;
    width: 98%;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    padding: 0;
    margin-bottom: 20px;
    column-gap: 2rem;
    row-gap: 0.5rem;
    align-items: center;
    align-content: flex-start;
    transition: all 200ms ease
}

.productlist:has(.product:nth-child(6)){
    width: 98%;
}

.button_image {
    background-color: var(--black-grey);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}



.product {
    position: relative;
    width: 12vw;
    height: 17rem;
    transition: all 200ms ease;
    flex-grow: 1;
    background-color: var(--black-grey);
    border-radius: 10px;
}

.container {
    position: absolute;
    width: -moz-available;
    width: -webkit-fill-available;
    height: 15rem;
    top: 0;
    left: 0;
    transition: all 200ms ease;
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-self: end;
    justify-content: space-between;
    padding: 1rem 10%;
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
}

.textcontainer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    background-color: var(--black-grey);
    opacity: 0.90;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Montserrat';
    font-weight: 500;
}

.textcontainer>p {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    width: 80%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.container>i {
    margin-bottom: 3px;
    font-size: 1.5rem;
}


.product:hover {
    width: 19rem
}

.flex_center {
    display: flex;
    flex-direction: row;
    width: 60%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem 1rem;
    margin: 15px 0;
}

@media only screen and (max-width: 768px) {

    .productlist {
        margin-top: 5px;
        width: 80%;
        display: flex;
        justify-content: center;
        /* overflow-x: scroll; */
        flex-direction: row;
        align-items: flex-end;
        padding: 0;
        margin-bottom: 20px;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .product {
    position: relative;
    width: 20rem;
    height: 17rem;
    transition: all 200ms ease;
    flex-grow: 1;
    background-color: var(--black-grey);
}

    .flex_center {
        justify-content: center;
    }
}