




@media (min-width:850px) {
    main {
        width: 80%;
        margin: 50px auto 0;
        display: flex;
        height: 620px;
    }
    .subtotal-mobile{
        display: none;
    }
    .article-list {
        width: 70%;
        overflow: auto;
        /* border-right: 1px solid black; */
    }
    .subtotal-desktop{
        width: 100%;
        display: flex;
        
        padding-bottom: 35px ;
        font-size: 20px;
    }
    .subtotal-desktop span{
        font-weight: 600;
        padding-right: 15px;
    }
    .article-list::-webkit-scrollbar-thumb {
        background-color: black;
        border-radius: 15px;
    }
    #payment-form{
       position: relative;
       height: 100%;
    }
    .codeVerif label {
        font-weight: bold;
        /* margin-bottom: 15px; */
        font-size: 20px;
       display: flex;
    }
    .form-paiement h2{
        font-size: 22px;
        font-weight: bold;
        padding-bottom:35px;
    }
    .codeVerif input{
        margin: 35px 10px 35px 0;
        width: 60%;
        border-radius: 10px;
        padding:    2px;
    }
    #delivery-cost{
        font-size: 18px;
        padding-bottom: 35px;
    }
    .codeVerif button{
        padding: 0 7px;
        color: #235af0;
        border-radius: 9px;
        border: 1px solid #235af0;
        background-color: transparent;
    }
    .adress label{
        font-size: 20px;
        font-weight: 600;
    }
    .adress select{
        margin: 35px 0;
        font-size: 18px;

    }
    #checkout-button{
        color:white;
        background-color: black;
        border-radius: 15px;
        width: 100%;
       font-size: 16px;
       font-weight: 600;
    position: absolute;
    bottom: 20px;
    }
    #total{
        position: absolute;
        bottom: 100px;
        font-size: 26px;
        font-weight: bolder;
    }
    #total span{
        padding-left: 10px;
        font-weight: 500;
        font-size: 20px;
    }
    .article-list::-webkit-scrollbar-thumb:hover {
        background-color: #555;
    }
    
    .article-list::-webkit-scrollbar {
        width: 5px;
    
    }
    
    .article-list ul {
        width: 90%;
    }
    
    .article-list li {
        padding-bottom: 28px;
    
    }
    
    .article-list li,
    .article-list li div {
        display: flex;
    }
    
    .article-list li div:first-of-type {
        position: relative;
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        padding-left: 50px;
        font-size: 24px;
    
    
    }
    
    .form-paiement {
        padding-left: 70px;
    }
    
    fieldset {
        border: none;
        display: flex;
        flex-direction: column;
      
        justify-content: space-around;
    
    }
    
    .adress {
        display: flex;
    
    
    }
    
    .top-p {
        width: 100%;
    
    }
    
    .top-p span {
        font-size: 32px;
        font-weight: bold;
        padding-right: 5px;
    }
    
    .article-list li div::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 15%;
        border-bottom: 1px solid #ddd5d5;
        width: 70%;
        margin: auto;
    
    }
    
    .article-list li img {
        width: 150px;
    }
    
    .zip {
        width: 50%;
    }
    
    .cart-container {
        visibility: hidden;
    }
}

@media (max-width:850px) {
    main{
       
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    main, .article-list{
        width: 100%;
        margin: auto;
    }
    
    .article-list img {
        width: 160px;
       
    }
    .article-list li, .article-list li div{
        display: flex;
        flex-wrap: wrap;
        
       
    }
    .article-list ul li{
        position: relative;
        padding: 15px 0;
        width: 90%;
        margin: auto;   
        justify-content: space-around; 
        font-size: 18px;
    }
    .article-list li div{
        justify-content: space-between;
        width: 60%;
    }
    .top-p{
       display: flex;
       width: 100%;
       font-weight: bold;
       
    }
    .article-list ul {
        overflow-y: auto;
        min-height: 590px;
        max-height: 590px;
    }
    .article-list ul::-webkit-scrollbar {
        width: 12px;
        margin-right: 3px;
    }
    .subtotal-mobile{
        width: 100%;
        display: flex;
        justify-content: center;
        padding-bottom: 15px;
        font-size: 18px;
       
    }
    .subtotal-mobile span{
        font-weight: 600;
    }
    
    .article-list ul::-webkit-scrollbar-thumb {
        background-color: black;
        border-radius: 15px;
    }
    
    .article-list ul::-webkit-scrollbar-thumb:hover {
        background-color: #555;
    }
    .price{
        font-size: 20px;
    }
    .article-list li:not(:last-of-type)::after {
        content: "";
        height: 1px;
        width: 80%;
        text-align: center;
        background-color: rgb(177, 177, 177);
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
    }
    .top-p span{
        padding-right: 10px ;
    }
    .form-paiement{
        width: 100%;
        position: relative;
        padding: 15px 0;
        
    }
    .details-paiement{
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-around;
    
    }
    .details-paiement div{
        display: flex;
        justify-content: center;
    }
    .details-paiement input, select{
        border: #235af0 1px solid;
        border-radius: 6px; 
        text-align: center;
        font-size: 16px;
        
    }
    .codeVerif button{
        padding: 0 10px;
        color: #235af0;
        border-radius: 9px;
        border: 1px solid #235af0;
        background-color: transparent;
        margin-left: 10px;

    }
    .details-paiement label{
        display: none;
    }
    fieldset{
        border: none;
    }
    .delivery-infos{
        display: flex;
        justify-content: space-between;
        width: 90%;
        margin: auto;
        padding: 15px 0;
    }
    .codeVerif input{
        width: 40%;
        padding: 2px 0;
    }
 #order{
    display: none;
 }
    h2{
        font-size: 18px;
        font-weight: 600;
    }
    #checkout-button{
        color:white;
        background-color: black;
        padding: 8px 0;
        width: 100%;
       font-size: 16px;
    font-weight: 550;
  
    }
    .codeVerif, .adress{
        /* display: flex; */
        flex-wrap: wrap;
        width: 45%;
    }
    .subtotal-desktop{
        display: none;
    }
}