
/* Common styles for cart items */
.cart-item {
    display: flex;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}
.cart-item img {
    max-width: 40%;
    height: auto;
    margin-right: 10px;
}
.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.button-container .text-left,
.button-container .text-right {
    flex: 1;
}
.button-container .text-left {
    text-align: left;
}
.button-container .text-right {
    text-align: right;
}
.trash,
.remove-button {
    text-decoration: none;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.trash:hover,
.remove-button:hover {
    background-color: #f2f2f2;
}
.trash i,
.remove-button i {
    margin-right: 5px;
}
.cart-buttons a {
        display: block;
        width: 200px;
        margin-bottom: 10px; /* Space between buttons */
}

/* Media query for smaller screens (up to 768px) */
@media (max-width: 768px) {
    .cart .table {
        display: none; 
    }
    .cart-items {
        display: block;
    }
    .hide-on-mobile {
        display: none;
    }
    .cart-item img {
        max-width: 80px; 
        height: 80px;
        margin-right: 10px;
    }
    .cart-item-details {
        flex: 1;
    }
    .button-container {
        flex-direction: column;
    }
    .button-container .text-left,
    .button-container .text-right {
        text-align: center;
        margin-top: 10px;
    }
    .remove-button {
        background-color: #dc3545;
        color: white;
        border: none;
    }
    .remove-button:hover {
        background-color: #c82333;
    }
    .same-row {
        display: flex;
    }

    .text-left {
        flex: 1; /* Take up remaining space */
    }

    .text-right {
        margin-left: auto; /* Push to the right */
    }

    .buy-button {
        display: inline-block;
        padding: 8px 16px;
        background-color: #007bff;
        color: white;
        text-decoration: none;
        border-radius: 4px;
    }

    .buy-button i {
        margin-right: 5px;
    }

    .trash {
        text-decoration: none;
        padding: 8px 16px;
        color: white;
        background-color: red;
        display: inline-flex;
        align-items: center;
    }

    .trash i {
        margin-right: 5px;
    }
    
    .button-container {
        display: flex;
        align-items: center; /* Center vertically */
        width: 100%; /* Full width, adjust as necessary */
    }
    
    .btn1 {
        background-color: #032140;
        color: white;
        text-decoration: none;
        width: 200px;
        height: 45px;
        display: flex;
        font-size: 18px;
        justify-content: center;
        align-items: center;
    }
    .cart-buttons a {
        width: 380px;
        margin-bottom: 10px; /* Space between buttons */
    } 
     

}
/* Styles for larger screens (above 768px) */
@media (min-width: 769px) {
    .cart .table {
        display: table;
    }
    .cart-items {
        display: none;
    }
}
