/* ===========================
        PASALAVENTA
        CARRITO PREMIUM
===========================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:Segoe UI,Arial,sans-serif;
    background:#f3f4f6;
    color:#222;

}

/* ================= LAYOUT ================= */

.layout{

    display:flex;
    min-height:100vh;

}

/* ================= SIDEBAR ================= */

.sidebar{

    width:240px;

    background:#101010;

    color:white;

    padding:25px;

    display:flex;

    flex-direction:column;

    gap:12px;

    box-shadow:4px 0 20px rgba(0,0,0,.15);

}

.logo{

    font-size:24px;

    font-weight:bold;

    color:#ff2d2d;

    margin-bottom:20px;

    letter-spacing:1px;

}

.sidebar button{

    border:none;

    background:transparent;

    color:white;

    text-align:left;

    padding:14px;

    border-radius:12px;

    cursor:pointer;

    transition:.25s;

    font-size:15px;

}

.sidebar button:hover{

    background:#1d1d1d;

    transform:translateX(5px);

}

.sidebar .active{

    background:#ff2d2d;

    font-weight:bold;

}

/* ================= MAIN ================= */

.main{

    flex:1;

    padding:30px;

}

/* ================= TOPBAR ================= */

.topbar{

    background:white;

    border-radius:18px;

    padding:20px 25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    margin-bottom:25px;

}

.topbar h1{

    font-size:30px;

}

.usuario{

    display:flex;

    align-items:center;

    gap:12px;

    font-weight:600;

}

.usuario img{

    width:55px;

    height:55px;

    border-radius:50%;

    object-fit:cover;

    border:3px solid #ff2d2d;

}

/* ================= STATS ================= */

.stats{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

    margin-bottom:25px;

}

.card{

    background:white;

    border-radius:18px;

    padding:25px;

    box-shadow:0 10px 25px rgba(0,0,0,.06);

    transition:.25s;

}

.card:hover{

    transform:translateY(-6px);

}

.card h2{

    font-size:35px;

    color:#ff2d2d;

    margin-bottom:8px;

}

.card p{

    color:#666;

}

/* ================= CONTENIDO ================= */

.contenido{

    display:grid;

    grid-template-columns:2fr 380px;

    gap:25px;

}

/* ================= PRODUCTOS ================= */

.productos{

    display:flex;

    flex-direction:column;

    gap:18px;

}

/* TARJETA */

.item{

    background:white;

    border-radius:18px;

    padding:18px;

    display:flex;

    gap:20px;

    align-items:center;

    box-shadow:0 10px 20px rgba(0,0,0,.06);

    transition:.25s;

}

.item:hover{

    transform:translateY(-5px);

}

.item img{

    width:140px;

    height:140px;

    border-radius:15px;

    object-fit:cover;

}

/* INFO */

.info{

    flex:1;

}

.info h2{

    margin-bottom:8px;

    font-size:22px;

}

.info p{

    color:#666;

    margin:4px 0;

}

.precio{

    font-size:25px;

    color:#ff2d2d;

    font-weight:bold;

    margin-top:10px;

}

/* CONTROLES */

.controles{

    display:flex;

    gap:12px;

    align-items:center;

    margin-top:15px;

}

.controles button{

    width:38px;

    height:38px;

    border:none;

    border-radius:10px;

    background:#ff2d2d;

    color:white;

    cursor:pointer;

    font-size:20px;

    transition:.2s;

}

.controles button:hover{

    transform:scale(1.08);

}

/* BOTONES */

.acciones{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.acciones button{

    border:none;

    border-radius:12px;

    padding:12px;

    cursor:pointer;

    transition:.2s;

    font-weight:bold;

}

.favorito{

    background:#fff0f0;

    color:#ff2d2d;

}

.eliminar{

    background:#ff2d2d;

    color:white;

}

.acciones button:hover{

    transform:scale(1.05);

}

/* ================= RESUMEN ================= */

.resumen{

    background:white;

    border-radius:20px;

    padding:25px;

    height:max-content;

    position:sticky;

    top:25px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.resumen h2{

    margin-bottom:20px;

}

.fila{

    display:flex;

    justify-content:space-between;

    margin:14px 0;

}

.total{

    font-size:22px;

    font-weight:bold;

    color:#ff2d2d;

}

.resumen button{

    width:100%;

    padding:15px;

    border:none;

    border-radius:14px;

    cursor:pointer;

    font-size:16px;

    margin-top:15px;

    transition:.25s;

}

.comprar{

    background:#ff2d2d;

    color:white;

}

.vaciar{

    background:#ececec;

}

.resumen button:hover{

    transform:translateY(-3px);

}

/* ================= CARRITO VACÍO ================= */

.vacio{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    background:white;

    border-radius:20px;

    padding:70px;

    box-shadow:0 10px 25px rgba(0,0,0,.05);

}

.emoji{

    font-size:90px;

    margin-bottom:20px;

}

.vacio h2{

    margin-bottom:10px;

}

.vacio p{

    color:#666;

    margin-bottom:25px;

}

.vacio button{

    background:#ff2d2d;

    color:white;

    border:none;

    border-radius:14px;

    padding:15px 30px;

    cursor:pointer;

    transition:.2s;

}

.vacio button:hover{

    transform:scale(1.05);

}

/* ================= RESPONSIVE ================= */

@media(max-width:1200px){

.contenido{

grid-template-columns:1fr;

}

.resumen{

position:static;

}

}

@media(max-width:850px){

.sidebar{

display:none;

}

.stats{

grid-template-columns:1fr;

}

.item{

flex-direction:column;

text-align:center;

}

.item img{

width:200px;

height:200px;

}

.topbar{

flex-direction:column;

gap:15px;

}

}