.carrito-container {
    padding: 30px 0;
    min-height: 60vh;
}

.carrito-vacio {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
}

.carrito-vacio i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.carrito-vacio p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #666;
}

.carrito-contenido {
    display: none;
}

/* Lista de productos el carrito*/
.carrito-productos {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

/* Producto individual en carrito*/
.producto-carrito {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
    transition: var(--transition);
}

.producto-carrito:hover {
    background-color: #f9f9f9;
}

.producto-carrito:last-child {
    border-bottom: none;
}

.producto-carrito img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 4px;
}

.producto-info {
    flex-grow: 1;
}

.producto-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--color-dark);
}

.producto-info .precio-unitario {
    color: #666;
    font-size: 0.9rem;
}

/* Contador*/
.contador-cantidad {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.contador-cantidad button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.contador-cantidad button:hover {
    background: #e9e9e9;
}

.contador-cantidad input {
    width: 40px;
    height: 30px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Precio total por produc */
.producto-total {
    font-weight: bold;
    margin: 10px 0;
    color: var(--color-secondary);
    font-size: 1.1rem;
}

/* eliminar producto */
.eliminar-producto {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: var(--transition);
}

.eliminar-producto:hover {
    color: var(--color-danger);
}

/* Resumen*/
.carrito-resumen {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.resumen-total h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: var(--color-dark);
}

.resumen-linea {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.resumen-linea.total {
    font-weight: bold;
    font-size: 1.2rem;
    border-top: 1px solid #eee;
    padding-top: 10px;
    color: var(--color-secondary);
}

/* Accioness*/
.carrito-acciones {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.carrito-acciones .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 180px;
    justify-content: center;
}

/* Modal de confirmación vacia carrito */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-acciones {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Notificación de acciones */
.notificacion {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-success);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notificacion.mostrar {
    transform: translateX(0);
}

.notificacion.error {
    background: var(--color-danger);
}

/* Responsive */
@media (max-width: 768px) {
    .producto-carrito {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .producto-carrito img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .carrito-acciones {
        flex-direction: column;
    }
    
    .carrito-acciones .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .carrito-container {
        padding: 15px 0;
    }
    
    .carrito-vacio {
        padding: 20px;
    }
    
    .carrito-resumen {
        padding: 15px;
    }
    
    .resumen-linea {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .resumen-linea.total {
        flex-direction: row;
    }
}