.article-list ul li,
.article-list ul li div {
    display: flex;

}

.article-list ul li {
    padding: 10px 0;
    position: relative;
}



.article-list::-webkit-scrollbar-thumb {
    background-color: black;
    border-radius: 15px;
}

.article-list::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.article-list {
    overflow-y: auto;
}



.quantity-container button {
    font-size: 20px;
    width: 30px;
    height: 30px;
    border: none;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
}

input[type="number"] {
    text-align: center;


   
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Pour Opera */
input[type="number"]::-o-inner-spin-button,
input[type="number"]::-o-outer-spin-button {
    -o-appearance: none;
    margin: 0;
}

.subtotal {
    width: 100%;
    display: flex;
    align-content: flex-end;
    justify-content: center;
    flex-direction: column;
    height: 10vh;

}

.subtotal span {
    font-weight: bold;
}

.subtotal p {
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
}

.button-container-cart {
    display: flex;
    

}

.subtotal p:last-of-type {
    font-size: small;
}
.article-list ul{
    height: 90%;
}
.no-articles{
    height: 100%;
}
@media (max-width: 850px) {

    input[type="number"] {
        width: 32px;
        border: 1px solid #ccc;
        height: 30px;
        border-radius: 5px;
    }
    
    .article-list {
        height: 60vh;
        overflow-y: auto;
        width: 95%;
        padding: 0 10px;
        margin: auto;
        font-size: 18px;

    }

    .article-list::-webkit-scrollbar {
        width: 5px;

    }
    .subtotal p:first-of-type{
        font-size: large;
        padding-bottom: 2px;
    }
    .subtotal p:last-of-type {
        font-size: small;
    }




 

    .button-container-cart {
        align-items: flex-end;
        width: 100%;
    }

    .button-container-cart a {
        flex: 1;
        width:100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .button-container-cart button {
        width: 50%;
        height: 40px;
    }

    .button-container button {
        background-color: transparent;
    }

    .button-container a:first-child {
        background-color: #f8f6f7;
    }

    .checkout button {
        background-color: black;
        color: white;
        width:100%;
    }

    .article-list ul {

        width: 100%;

    }





    .article-list img {
        width: 140px;
        margin-right: 3%;
    }



    .details-container {

        justify-content: space-between;
        align-items: center;
        height: 30px;
        width: 100%;
    }

    .article-list ul li>div:first-of-type {

        flex-direction: column;
        width: 100%;
        justify-content: space-between;

    }

    .article-list ul li>div:first-of-type p:last-of-type {
        display: flex;
        justify-content: flex-end;
        padding-right: 5px;
    }


    .article-list li>div>p:first-of-type {
        font-weight: bolder;
    }

    .article-list span {

        margin-right: 10px;
    }
    .article-list li:not(:last-of-type)::after {
        content: "";
        height: 1px;
        width: 50%;
        text-align: center;
        background-color: rgb(149, 147, 147);
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
    }


    .remove-link img {
        width: 20px;
    }

}

@media (min-width : 850px) {
    main {
        width: 80%;
        margin: auto;
    }
    input[type="number"], .details-container, .price{
        font-size: 24px;
    }
    input[type="number"] {

        border: none;
        border-bottom: #555 1px solid;
        font-size: 20px;
    }
    .article-list img {
        width: 200px;
        margin-right: 40px;
    }

    .article-list {
        overflow-y: auto;
        height: 50vh;
        border: 1px solid black;

    }

    .article-list::-webkit-scrollbar {
        width: 5px;

    }
    .remove-link{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .remove-link img {
        width: 40px;

    }

    .article-list ul {
        padding: 20px 40px;
    }

    .article-list ul li>div:first-of-type {

        padding-top: 10px;
        flex-direction: column;
        width: 100%;
      
        position: relative;
        

    }
    .subtotal p:first-of-type{
        font-size: 28px;
        
    }
    .subtotal p:last-of-type {
        padding-top: 15px;
        font-size: 16px;
    }
    .price {
        position: absolute;
        top:53%;
        right: 20%;
        
    }

    .top-p{
        align-self: flex-start;
    }
    .top-p{
        font-size: 24px;
    }
    .top-p span{
        font-weight: bolder;
        padding-right: 40px;
        font-size: 28px;
    }
 
    
    .button-container-cart {
        justify-content: space-between;
        width: 90%;
        margin: auto;

    }
    .button-container-cart button{
        width: 200px;
        height: 35px;
        font-size: 20px;
        border-radius: 15px;
    }
    .clear-cart{
        font-weight: bold;
    }
    .details-container {

        justify-content: space-between;
        align-items: center;
        height: 30px;
        width: 100%;
        align-self: flex-end;
        margin: auto 0px;
       
    }
    
}