/* Estilo general de la página del carrito */
.carrito {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-top: 8rem;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
}

/* Contenedor de los productos en el carrito */

.carrito {
    margin-bottom: 20rem;
}

#productos-carrito {
    margin-bottom: 40px;
}

.producto-carrito {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.producto-imagen {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.producto-info {
    flex: 1;
}

.producto-info h4 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.producto-info p {
    margin: 5px 0;
    font-size: 1.2rem;
}

/* Estilo para el total */
.total {
    text-align: right;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.total h3 {
    margin-bottom: 0;
}

/* Botones de vaciar y finalizar compra */
button {
    padding: 12px 20px;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

button:hover {
    background-color: #0056b3;
    color: white;
}

/* Estilo específico para el botón de vaciar carrito */
button:nth-child(1) {
    background-color: #ff0000;
    color: white;
    margin-right: 20px;
}

button:nth-child(1):hover {
    background-color: #e60000;
}

/* Estilo específico para el botón de finalizar compra */
button:nth-child(2) {
    background-color: #007bff;
    color: white;
}

button:nth-child(2):hover {
    background-color: #0056b3;
}
