
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}
.cart {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.cart-header, .cart-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr auto; /* Mantiene alineación */
    text-align: center;
    row-gap: 10px; /* Agrega espacio entre filas */
    padding: 10px 0; /* Espaciado adicional */
}
.cart-header {
    font-weight: bold;
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}
.cart-item-details {
    flex: 1;
    margin-left: 10px;
}
.cart-item-quantity {
    display: flex;
    align-items: center;
}
.cart-item-quantity button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}
.cart-item-quantity input {
    width: 40px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
}
.cart-item-remove {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}
.checkout {
    text-align: right;
    margin-top: 20px;
}
.checkout button {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}
.cart-item button {
    width: auto; /* Permite que el botón mantenga su tamaño natural */
    padding: 5px 10px;
    text-align: center;
}
