﻿body {
    font-family: 'Bebas Neue', sans-serif;
    background-color: #4b4b4b;
    margin: 0;
    padding: 0;
}

.contenedor {
    margin-top: 150px;
    max-width: 1400px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

section {
    flex: 2;
    background-color: #4e342e;
    color: #f7d774;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.resumen-carrito {
    width: 300px; /* ancho fijo */
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    height: fit-content;
}

h1, h2 {
    color: #1c140d;
}

.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

    .item img {
        width: 70px;
        height: 70px;
        border-radius: 8px;
        object-fit: cover;
    }

.info {
    flex: 1;
    margin-left: 10px;
}

    .info p {
        margin: 4px 0;
    }

.cantidad {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .cantidad button {
        width: 25px;
        height: 25px;
        border: none;
        background: #eee;
        border-radius: 5px;
        cursor: pointer;
    }

        .cantidad button:hover {
            background: #ccc;
        }

.resumen {
    font-size: 14px;
}

    .resumen div {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
    }

.total {
    border-top: 1px dashed #aaa;
    padding-top: 10px;
    font-weight: bold;
    font-size: 18px;
}

.boton {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #f48c25;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

    .boton:hover {
        background-color: royalblue;
    }
.delete{
    display:block;
    width:100%;
    border:none;
    border-radius:8px;
}
.delete:hover{
    background-color:#aaa;
}

.boton-vaciar {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #f48c25;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.boton-vaciar:hover {
    background-color: red;
}

@media (max-width: 800px) {
    .contenedor {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    .contenedor > * {
        width: 100%;
    }
}