/* Existing styles */

* {
    font-family: 'Times New Roman', Times, serif;
}

#cart {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; 
    height: auto;
}

td {
}

table {
    width: 70%;
    border-collapse: collapse;
    
    overflow-y: auto;
    display: block;
}

th, td {
  
    padding: 8px;
    text-align:center;
    font-weight: 700;
    font-size: 18px;
    color: black;
}
thead tr{
    background-color: #e2f4ff;
}

.remove-item {
    background-color: #033157;
    color: #f3f1f1;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
}

#cart tbody td:nth-child(4) {

    font-weight: 600;          
  
}





#cart table td:nth-child(2) { 
    width: 300px;
}


#cart table td:nth-child(3) { 
    width: 300px;
}

#cart table td:nth-child(4) { 
    width: 40px; 
}

#cart table td:nth-child(5) { 
    width: 100px;
}

#cart table td:nth-child(6) { 
    width: 200px; 
}

/*styles for the right section */

.right-section {
    width: 26%; 
    height:500px; 
    padding: 10px; 
    border: 1px solid #ccc; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
    margin-left: 20px;
    overflow-y: auto;
    margin-right: 40px;
}
.right-section h2 {
    font-size: 32px;
    background-color: #e2f4ff;
}


.total-section, .coupon-section, .checkout-button {
    text-align: center;
}
#coupon-code{
    font-size: 21px;
    height: 41px;
    width: 230px;
    border-radius: 15px;
    border: 1px solid black;
    margin-top: 23px;
  
    
}

#apply-coupon{
    background-color: #b57a2a;
    height: 41px;
    font-size: 19px;
    width: 145px;
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: bolder;
    font-family: monospace;
    cursor: pointer;
    
}
.total-section p, .coupon-section p {
    font-size: 23px;
    font-weight: 1000;
    color: black;
    margin-bottom: 35px;
    margin-top: 40px;
}

.checkout-button a {
    padding: 10px 20px;
    background-color: #ce8d33;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 23px;
    font-weight: bold;
    border-radius: 12px;
}

.empty-cart-button {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh; 
    padding: 20px 0; 
}

.empty-cart-center {
    display: flex;
    justify-content: center; 
    align-items: center;     
    height: 100%;  

}

.empty-cart-button p{
    font-size: 23px;
    font-family: monospace;
   
}



#shopping-button {
    padding: 10px 20px;
    background-color: #ce8d33;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    font-family: monospace;
    transition: background-color 0.3s ease;
}


a {
    text-decoration: none;
}



#empty-cart-image {
    width: 400px;
    height: auto;
    margin-bottom: 20px;
}



/* Responsive adjustments */

@media screen and (max-width: 768px) {
    #cart {
        flex-direction: column;
    }

    table, .right-section {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    #cart {
        padding: 10px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 3px;
    }

    .remove-item {
        font-size: 16px;
        padding: 4px 8px;
    }

    .checkout-button a {
        padding: 6px 12px;
        font-size: 18px;
    }
}

.cart-content {
    transition: opacity 0.3s ease;
}

/* Assuming the parent container of .empty-cart-center is the body or another full-height container */


.empty-cart-center {
    text-align: center;
}





.empty-cart-center p {
    font-size: 20px;
    margin-bottom: 20px;
}



#shopping-button:hover {
    background-color: #b57a2a;
}

.line {
    height: 2px;
    background-color: #ccc; 
    margin: 22px 0; 
}


/* For medium screens like tablets */
@media screen and (max-width: 768px) {
    #cart {
        flex-direction: column;
    }

    table, .right-section {
        width: 100%;
    }

    /* Adjustments for the shopping button */
    #shopping-button {
        font-size: 16px;
        padding: 8px 16px;
    }
}

/* For smaller screens like mobile devices */
@media screen and (max-width: 480px) {
    #cart {
        padding: 10px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 3px;
    }

    .remove-item {
        font-size: 14px;
        padding: 3px 6px;
    }

    .checkout-button a {
        padding: 5px 10px;
        font-size: 16px;
    }

    /* Adjustments for the shopping button */
    #shopping-button {
        font-size: 14px;
        padding: 7px 14px;
    }
}

/* For larger screens */
@media screen and (min-width: 1200px) {
   
}


#shopping-button:hover {
    background-color: #b57a2a;
}